rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
free_reflections_per_bin = 200, max_number_of_bins = 30, | free_reflections_per_bin = 140, max_number_of_bins = 20, | def r_factors_in_resolution_bins(self, free_reflections_per_bin = 200, max_number_of_bins = 30, out=None): results = self.r_values(table=True, rows=True) return results #self.twin_fraction_scan(n=15) | 993233c08e80b963496300ffb6bffd66195ae28f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/993233c08e80b963496300ffb6bffd66195ae28f/twin_f_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
67,
22108,
67,
267,
67,
19182,
67,
11862,
12,
2890,
16,
4843,
67,
26606,
87,
67,
457,
67,
4757,
273,
31907,
16,
943,
67,
2696,
67,
792,
67,
11862,
225,
273,
4200,
16,
596,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
67,
22108,
67,
267,
67,
19182,
67,
11862,
12,
2890,
16,
4843,
67,
26606,
87,
67,
457,
67,
4757,
273,
31907,
16,
943,
67,
2696,
67,
792,
67,
11862,
225,
273,
4200,
16,
596,
33,
... |
payment_line() | payment_line() | def onchange_move_line(self, cr, uid, ids, move_line_id, payment_type, date_prefered, date_planned, currency=False, company_currency=False, context=None): # Adds account.move.line name to the payment line communication res = super(payment_line, self).onchange_move_line(cr, uid, ids, move_line_id, payment_type, date_prefered, date_planned, currency, company_currency, context) if move_line_id: line = self.pool.get('account.move.line').browse(cr, uid, move_line_id) if line.name != '/': res['value']['communication'] = res['value']['communication'] + '. ' + line.name return res | 6645b0fd328b27609c10f43a98d1c00193addc6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9833/6645b0fd328b27609c10f43a98d1c00193addc6e/payment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8501,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3635,
67,
1369,
67,
350,
16,
5184,
67,
723,
16,
1509,
67,
1484,
586,
329,
16,
1509,
67,
412,
10041,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
8501,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3635,
67,
1369,
67,
350,
16,
5184,
67,
723,
16,
1509,
67,
1484,
586,
329,
16,
1509,
67,
412,
10041,
16,
5... |
def GetMemberSize(id, member_offset): | def GetMemberSize(sid, member_offset): | def GetMemberSize(id, member_offset): """ Get size of a member @param id: structure type ID @param member_offset: member offset. The offset can be any offset in the member. For example, is a member is 4 bytes long and starts at offset 2, then 2,3,4,5 denote the same structure member. @return: -1 if bad structure type ID is passed or no such member in the structure otherwise returns size of the specified member in bytes. """ s = idaapi.get_struc(id) if not s: return None m = idaapi.get_member(s, member_offset) if not m: return None return idaapi.get_member_size(m) | 4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4419,
1225,
12,
7453,
16,
3140,
67,
3348,
4672,
3536,
968,
963,
434,
279,
3140,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
3140,
1384,
18,
1021,
1384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4419,
1225,
12,
7453,
16,
3140,
67,
3348,
4672,
3536,
968,
963,
434,
279,
3140,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
3140,
1384,
18,
1021,
1384,
... |
gtypename = '_TYPE_'.join(prefix.upper().rsplit('_',1)) | gtypename = '_TYPE_'.join(prefix.upper().split('_',1)) | stream.write ("typedef struct _%sClass %sClass;\n\n" % (classname,classname)) | 1e6e4b43621fb4b742bdee4b444b00498c00a83e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8150/1e6e4b43621fb4b742bdee4b444b00498c00a83e/gengobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1407,
18,
2626,
7566,
723,
536,
1958,
389,
9,
87,
797,
738,
87,
797,
9747,
82,
64,
82,
6,
738,
261,
18340,
16,
18340,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1407,
18,
2626,
7566,
723,
536,
1958,
389,
9,
87,
797,
738,
87,
797,
9747,
82,
64,
82,
6,
738,
261,
18340,
16,
18340,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if len(tuning.sat.choices): transponderlist = nimmanager.getTransponders(int(tuning.sat.value)) | if len(tuning.sat.satList): transponderlist = nimmanager.getTransponders(tuning.sat.orbital_position) | def updateTransponders(self): if len(tuning.sat.choices): transponderlist = nimmanager.getTransponders(int(tuning.sat.value)) tps = [] cnt=0 for x in transponderlist: if x[3] == 0: pol = "H" elif x[3] == 1: pol = "V" elif x[3] == 2: pol = "CL" elif x[3] == 3: pol = "CR" else: pol = "??" if x[4] == 0: fec = "FEC Auto" elif x[4] == 1: fec = "FEC 1/2" elif x[4] == 2: fec = "FEC 2/3" elif x[4] == 3: fec = "FEC 3/4" elif x[4] == 4: fec = "FEC 5/6" elif x[4] == 5: fec = "FEC 7/8" elif x[4] == 6: fec = "FEC 8/9" elif x[4] == 7: fec = "FEC 3/5" elif x[4] == 8: fec = "FEC 4/5" elif x[4] == 9: fec = "FEC 9/10" elif x[4] == 15: fec = "FEC None" else: fec = "FEC Unknown" tps.append(str(x[1]) + "," + str(x[2]) + "," + pol + "," + fec) tuning.transponder = ConfigSelection(choices=tps) | 56068e5ec25361c2a06eb9f0133eeebb32cf44c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/56068e5ec25361c2a06eb9f0133eeebb32cf44c1/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1429,
3111,
414,
12,
2890,
4672,
309,
562,
12,
88,
13036,
18,
12973,
18,
12973,
682,
4672,
906,
17707,
1098,
273,
290,
381,
4181,
18,
588,
1429,
3111,
414,
12,
88,
13036,
18,
129... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
3111,
414,
12,
2890,
4672,
309,
562,
12,
88,
13036,
18,
12973,
18,
12973,
682,
4672,
906,
17707,
1098,
273,
290,
381,
4181,
18,
588,
1429,
3111,
414,
12,
88,
13036,
18,
129... |
rational number times the square root of a rational number (if prec=None), or real number if a precision is given | Rational number times the square root of a rational number (if ``prec=None``), or real number if a precision is given. | def wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None): r""" Calculate the Wigner 9j symbol `Wigner9j(j_1,j_2,j_3,j_4,j_5,j_6,j_7,j_8,j_9)`. INPUT: - ``j_1``, ..., ``j_9`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES: A couple of examples and test cases, note that for speed reasons a precision is given:: sage: wigner_9j(1,1,1, 1,1,1, 1,1,0 ,prec=64) # ==1/18 0.0555555555555555555 sage: wigner_9j(1,1,1, 1,1,1, 1,1,1) 0 sage: wigner_9j(1,1,1, 1,1,1, 1,1,2 ,prec=64) # ==1/18 0.0555555555555555556 sage: wigner_9j(1,2,1, 2,2,2, 1,2,1 ,prec=64) # ==-1/150 -0.00666666666666666667 sage: wigner_9j(3,3,2, 2,2,2, 3,3,2 ,prec=64) # ==157/14700 0.0106802721088435374 sage: wigner_9j(3,3,2, 3,3,2, 3,3,2 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.00944247746651111739 sage: wigner_9j(3,3,1, 3.5,3.5,2, 3.5,3.5,1 ,prec=64) # ==3221*sqrt(70)/(246960*sqrt(105)) - 365/(3528*sqrt(70)*sqrt(105)) 0.0110216678544351364 sage: wigner_9j(100,80,50, 50,100,70, 60,50,100 ,prec=1000)*1.0 1.05597798065761e-7 sage: wigner_9j(30,30,10, 30.5,30.5,20, 30.5,30.5,10 ,prec=1000)*1.0 # ==(80944680186359968990/95103769817469)*sqrt(1/682288158959699477295) 0.0000325841699408828 sage: wigner_9j(64,62.5,114.5, 61.5,61,112.5, 113.5,110.5,60, prec=1000)*1.0 -3.41407910055520e-39 sage: wigner_9j(15,15,15, 15,3,15, 15,18,10, prec=1000)*1.0 -0.0000778324615309539 sage: wigner_9j(1.5,1,1.5, 1,1,1, 1.5,1,1.5) 0 It is an error to have arguments that are not integer or half integer values or do not fulfil the triangle relation:: sage: wigner_9j(0.5,0.5,0.5, 0.5,0.5,0.5, 0.5,0.5,0.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation sage: wigner_9j(1,1,1, 0.5,1,1.5, 0.5,1,2.5,prec=64) Traceback (most recent call last): ... ValueError: j values must be integer or half integer and fulfil the triangle relation ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 3j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) """ imin = 0 imax = min(j_1 + j_9, j_2 + j_6, j_4 + j_8) sumres = 0 for kk in range(imin, imax + 1): sumres = sumres + (2 * kk + 1) * \ racah(j_1, j_2, j_9, j_6, j_3, kk, prec) * \ racah(j_4, j_6, j_8, j_2, j_5, kk, prec) * \ racah(j_1, j_4, j_9, j_8, j_7, kk, prec) return sumres | c6a90d820f57455b2ff6063db98cb5e6f7a11f83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c6a90d820f57455b2ff6063db98cb5e6f7a11f83/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
6... |
return coord(self.i*other, self.j*other) | return Coord(self.i*other, self.j*other) | def __mul__(self, other): return coord(self.i*other, self.j*other) | e571d502c19abfb5a3320300c347793da7b43d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/e571d502c19abfb5a3320300c347793da7b43d05/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
4672,
327,
2745,
12,
2890,
18,
77,
14,
3011,
16,
365,
18,
78,
14,
3011,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16411,
972,
12,
2890,
16,
1308,
4672,
327,
2745,
12,
2890,
18,
77,
14,
3011,
16,
365,
18,
78,
14,
3011,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for node in l[:K]: | for node in l: | def schedule(self): | b67d64cc271cd334cfc49e98107b88655885514d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/b67d64cc271cd334cfc49e98107b88655885514d/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self._configure_counter != 0: self._configure_counter -=1 | if self._window_configures != 0: self._window_configures -=1 | def window_on_configure_notify(self, event): if self._configure_counter != 0: self._configure_counter -=1 else: self._configure_counter += 1 actor = self.client.actor geom = Rect.from_object(event) window = self.client.window window_border = 0 config = self.plugin.config border = 2 title_height = config.get('decorator.title.height', 20) actor.configure( # dont forget the borders of client.border in this calculation width = geom.width + (2*border) + (2*window_border), height = geom.height + title_height + (2*border) + (2*window_border), ) | b2a7bc565aa93e3014504ba23722739df6abcbf0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/b2a7bc565aa93e3014504ba23722739df6abcbf0/decorator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
265,
67,
14895,
67,
12336,
12,
2890,
16,
871,
4672,
309,
365,
6315,
5668,
67,
1425,
1823,
480,
374,
30,
365,
6315,
5668,
67,
1425,
1823,
3947,
21,
469,
30,
365,
6315,
14895,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2742,
67,
265,
67,
14895,
67,
12336,
12,
2890,
16,
871,
4672,
309,
365,
6315,
5668,
67,
1425,
1823,
480,
374,
30,
365,
6315,
5668,
67,
1425,
1823,
3947,
21,
469,
30,
365,
6315,
14895,
... |
def __init__(self, filenames=()): | def __init__(self, filenames=(), strict=True): | def __init__(self, filenames=()): if not inited: init() self.encodings_map = encodings_map.copy() self.suffix_map = suffix_map.copy() self.types_map = types_map.copy() self.common_types = common_types.copy() for name in filenames: self.read(name) | b0945ca0ad01e7fdc7cc8a5703d1e114970042b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b0945ca0ad01e7fdc7cc8a5703d1e114970042b7/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9066,
33,
9334,
5490,
33,
5510,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9066,
33,
9334,
5490,
33,
5510,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
... |
print ServiceReference(x).frontendStatusInfo().getFrontendData(True) | def updateAlternatives(self): self.alternativeslist = [] if len(self.serviceslist) > 0: alternativelist = self.alternatives[self["serviceslist"].getCurrent()[1]] | e78b5b9f8180bbad1808926b2c35dd691709281d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/e78b5b9f8180bbad1808926b2c35dd691709281d/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
22111,
12,
2890,
4672,
365,
18,
16025,
8785,
1098,
273,
5378,
225,
309,
562,
12,
2890,
18,
8387,
1098,
13,
405,
374,
30,
6416,
270,
427,
5449,
273,
365,
18,
16025,
8785,
63,
2890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
22111,
12,
2890,
4672,
365,
18,
16025,
8785,
1098,
273,
5378,
225,
309,
562,
12,
2890,
18,
8387,
1098,
13,
405,
374,
30,
6416,
270,
427,
5449,
273,
365,
18,
16025,
8785,
63,
2890... | |
sys.stderr.write('Done processing %s\n' % filename) | def process_file(filename, error=error): """Performs cpp_style on a single file. Args: filename: The name of the file to parse. error: The function to call with any errors found. """ try: # Support the UNIX convention of using "-" for stdin. Note that # we are not opening the file with universal newline support # (which codecs doesn't support anyway), so the resulting lines do # contain trailing '\r' characters if we are reading a file that # has CRLF endings. # If after the split a trailing '\r' is present, it is removed # below. If it is not expected to be present (i.e. os.linesep != # '\r\n' as in Windows), a warning is issued below if this file # is processed. if filename == '-': lines = codecs.StreamReaderWriter(sys.stdin, codecs.getreader('utf8'), codecs.getwriter('utf8'), 'replace').read().split('\n') else: lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n') carriage_return_found = False # Remove trailing '\r'. for line_number in range(len(lines)): if lines[line_number].endswith('\r'): lines[line_number] = lines[line_number].rstrip('\r') carriage_return_found = True except IOError: sys.stderr.write( "Skipping input '%s': Can't open for reading\n" % filename) return # Note, if no dot is found, this will give the entire filename as the ext. file_extension = filename[filename.rfind('.') + 1:] # When reading from stdin, the extension is unknown, so no cpp_style tests # should rely on the extension. if (filename != '-' and file_extension != 'h' and file_extension != 'cpp' and file_extension != 'c'): sys.stderr.write('Ignoring %s; not a .cpp, .c or .h file\n' % filename) else: process_file_data(filename, file_extension, lines, error) if carriage_return_found and os.linesep != '\r\n': # Use 0 for line_number since outputing only one error for potentially # several lines. error(filename, 0, 'whitespace/newline', 1, 'One or more unexpected \\r (^M) found;' 'better to use only a \\n') sys.stderr.write('Done processing %s\n' % filename) | dd15348b3cffd2faf0c5170abad6c15f23de0160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/dd15348b3cffd2faf0c5170abad6c15f23de0160/cpp_style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
768,
12,
3459,
16,
555,
33,
1636,
4672,
3536,
9409,
3283,
84,
67,
4060,
603,
279,
2202,
585,
18,
225,
6634,
30,
1544,
30,
1021,
508,
434,
326,
585,
358,
1109,
18,
555,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
768,
12,
3459,
16,
555,
33,
1636,
4672,
3536,
9409,
3283,
84,
67,
4060,
603,
279,
2202,
585,
18,
225,
6634,
30,
1544,
30,
1021,
508,
434,
326,
585,
358,
1109,
18,
555,
30,
... | |
result.append('') | result += [''] | def look_down(buffer, parent_bbox): for child in node.iterchildren(): _scan(child, buffer, parent_bbox, settings) if node.tail and node.tail.strip(): buffer += node.tail, if node.text and node.text.strip(): buffer += node.text, | 315f18ffb86f09b9e28e8cd561c13dfcf911d770 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3685/315f18ffb86f09b9e28e8cd561c13dfcf911d770/hocr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1947,
13,
309,
756,
18,
13101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1947,
13,
309,
756,
18,
13101,
... |
y -= self.viewport_y x -= self.viewport_x | def pixel_from_screen(self, x, y): '''Look up the map-space pixel matching the screen-space pixel. | dc12c8db72ac8ef494cbc580d2bb583bba1b57cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/dc12c8db72ac8ef494cbc580d2bb583bba1b57cb/tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4957,
67,
2080,
67,
9252,
12,
2890,
16,
619,
16,
677,
4672,
9163,
9794,
731,
326,
852,
17,
2981,
4957,
3607,
326,
5518,
17,
2981,
4957,
18,
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,
0,
0,
0,
0,
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,
4957,
67,
2080,
67,
9252,
12,
2890,
16,
619,
16,
677,
4672,
9163,
9794,
731,
326,
852,
17,
2981,
4957,
3607,
326,
5518,
17,
2981,
4957,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
rows = opth-2 cols = optw / wl | rows = opth-2 cols = shared.optw / wl or 1 | def calc_lsize(r): """Calculate the size required on screen to display the list.""" | bcb1496c968881715634380c9e6bc4206a4388d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/bcb1496c968881715634380c9e6bc4206a4388d6/bpython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
80,
1467,
12,
86,
4672,
3536,
8695,
326,
963,
1931,
603,
5518,
358,
2562,
326,
666,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
80,
1467,
12,
86,
4672,
3536,
8695,
326,
963,
1931,
603,
5518,
358,
2562,
326,
666,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.log_error("command: %s", cmdline) | self.log_message("command: %s", cmdline) | def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = rest.rfind('?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = rest.find('/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.translate_path(scriptname) if not os.path.exists(scriptfile): self.send_error(404, "No such CGI script (%s)" % `scriptname`) return if not os.path.isfile(scriptfile): self.send_error(403, "CGI script is not a plain file (%s)" % `scriptname`) return ispy = self.is_python(scriptname) if not ispy: if not (self.have_fork or self.have_popen2): self.send_error(403, "CGI script is not a Python script (%s)" % `scriptname`) return if not self.is_executable(scriptfile): self.send_error(403, "CGI script is not executable (%s)" % `scriptname`) return | bcbdc95e90794794081927b81006ce8563974969 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/bcbdc95e90794794081927b81006ce8563974969/CGIHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... |
new = dok_matrix() | new = dok_matrix(self.shape, dtype=self.dtype) | def __add__(self, other): # First check if argument is a scalar if isscalar(other) or (isdense(other) and rank(other)==0): new = dok_matrix() # Add this scalar to every element. M, N = self.shape for i in range(M): for j in range(N): aij = self.get((i, j), 0) + other if aij != 0: new[i, j] = aij #new.dtype.char = self.dtype.char elif isinstance(other, dok_matrix): new = dok_matrix() new.update(self) new.shape = self.shape for key in other.keys(): new[key] += other[key] elif isspmatrix(other): csc = self.tocsc() new = csc + other else: # Perhaps it's a dense matrix? new = self.todense() + other return new | cc9a850083c66543ac7901fd68022fbe73610704 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cc9a850083c66543ac7901fd68022fbe73610704/sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
4672,
468,
5783,
866,
309,
1237,
353,
279,
4981,
309,
3385,
3473,
12,
3011,
13,
578,
261,
291,
25942,
12,
3011,
13,
471,
6171,
12,
3011,
13,
631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
972,
12,
2890,
16,
1308,
4672,
468,
5783,
866,
309,
1237,
353,
279,
4981,
309,
3385,
3473,
12,
3011,
13,
578,
261,
291,
25942,
12,
3011,
13,
471,
6171,
12,
3011,
13,
631,
... |
dd = cur.detection_distance | dd = self.cur.detection_distance | def AsteroidNear (unit, how): num_ships=0 count=0 un = VS.getUnit (count) while (un): dd = cur.detection_distance if (unit.getSignificantDistance(un,unit)<how): if (unit.isAsteroid (un)): _io.printf ("asty near") return 1 count=count+1 if (un): un = _unit.getUnit(count) return 0 | 0196b99221f192e1640b9a18a3f627096af1b5a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/0196b99221f192e1640b9a18a3f627096af1b5a1/random_encounters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
432,
8190,
839,
24686,
261,
4873,
16,
3661,
4672,
818,
67,
3261,
87,
33,
20,
1056,
33,
20,
640,
273,
776,
55,
18,
588,
2802,
261,
1883,
13,
1323,
261,
318,
4672,
6957,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
432,
8190,
839,
24686,
261,
4873,
16,
3661,
4672,
818,
67,
3261,
87,
33,
20,
1056,
33,
20,
640,
273,
776,
55,
18,
588,
2802,
261,
1883,
13,
1323,
261,
318,
4672,
6957,
273,
365,
18,
... |
get_filename_and_save_in_prefs(parent, gmspath_prefs_key, 'Choose Nano-Hive Executable') | get_filename_and_save_in_prefs(parent, nanohive_path_prefs_key, 'Choose Nano-Hive Executable') | def _validate_nanohive_program(self): '''Private method: Checks that the Nano-Hive program path exists in the user pref database and that the file it points to exists. If the Nano-Hive path does not exist, the user will be prompted with the file chooser to select the Nano-Hive executable. This function does not check whether the Nano-Hive path is actually Nano-Hive. Returns: 0 = Valid 1 = Invalid ''' # Get Nano-Hive executable path from the user preferences prefs = preferences.prefs_context() self.server.program = prefs.get(nanohive_prefs_key) if not self.server.program: msg = "The Nano-Hive executable path is not set.\n" elif os.path.exists(self.server.program): return 0 else: msg = self.server.program + " does not exist.\n" # Nano-Hive Dialog is the parent for messagebox and file chooser. parent = self.edit_cntl # THIS IS WRONG. ret = QMessageBox.warning( parent, "Nano-Hive Executable Path", msg + "Please select OK to set the location of Nano-Hive for this computer.", "&OK", "Cancel", None, 0, 1 ) if ret==0: # OK #from UserPrefs import get_gamess_path #self.server.program = get_gamess_path(parent) from UserPrefs import get_filename_and_save_in_prefs self.server.program = \ get_filename_and_save_in_prefs(parent, gmspath_prefs_key, 'Choose Nano-Hive Executable') if not self.server.program: return 1 # Cancelled from file chooser. elif ret==1: # Cancel return 1 | af3cb5b13b18245272507c91c33b1a18ca9e1c1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/af3cb5b13b18245272507c91c33b1a18ca9e1c1c/NanoHive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
67,
13569,
16699,
688,
67,
12890,
12,
2890,
4672,
9163,
6014,
707,
30,
13074,
716,
326,
23294,
83,
17,
44,
688,
5402,
589,
1704,
316,
326,
729,
11307,
2063,
471,
716,
326,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5662,
67,
13569,
16699,
688,
67,
12890,
12,
2890,
4672,
9163,
6014,
707,
30,
13074,
716,
326,
23294,
83,
17,
44,
688,
5402,
589,
1704,
316,
326,
729,
11307,
2063,
471,
716,
326,
5... |
self.assert_(self._box.get_string(key0) == | self.assertEqual(self._box.get_string(key0), | def test_update(self): # Modify multiple messages using update() key0 = self._box.add(self._template % 'original 0') key1 = self._box.add(self._template % 'original 1') key2 = self._box.add(self._template % 'original 2') self._box.update({key0: self._template % 'changed 0', key2: _sample_message}) self.assertEqual(len(self._box), 3) self.assert_(self._box.get_string(key0) == self._template % 'changed 0') self.assert_(self._box.get_string(key1) == self._template % 'original 1') self._check_sample(self._box[key2]) self._box.update([(key2, self._template % 'changed 2'), (key1, self._template % 'changed 1'), (key0, self._template % 'original 0')]) self.assertEqual(len(self._box), 3) self.assert_(self._box.get_string(key0) == self._template % 'original 0') self.assert_(self._box.get_string(key1) == self._template % 'changed 1') self.assert_(self._box.get_string(key2) == self._template % 'changed 2') self.assertRaises(KeyError, lambda: self._box.update({'foo': 'bar', key0: self._template % "changed 0"})) self.assertEqual(len(self._box), 3) self.assert_(self._box.get_string(key0) == self._template % "changed 0") self.assert_(self._box.get_string(key1) == self._template % "changed 1") self.assert_(self._box.get_string(key2) == self._template % "changed 2") | ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2725,
12,
2890,
4672,
468,
9518,
3229,
2743,
1450,
1089,
1435,
498,
20,
273,
365,
6315,
2147,
18,
1289,
12,
2890,
6315,
3202,
738,
296,
8830,
374,
6134,
498,
21,
273,
365,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2725,
12,
2890,
4672,
468,
9518,
3229,
2743,
1450,
1089,
1435,
498,
20,
273,
365,
6315,
2147,
18,
1289,
12,
2890,
6315,
3202,
738,
296,
8830,
374,
6134,
498,
21,
273,
365,
63... |
except ValueError: | except Exception: | def __setstate__(self, state): state.pop('__dummy__', None) for name, value in state.iteritems(): attribute = getattr(self.__class__, name, None) if isinstance(attribute, (SettingsGroupMeta, Setting)): try: setattr(self, name, value) except ValueError: pass #FIXME: add log message saying that stored value could not be used. -Luci if isinstance(attribute, Setting): attribute.clear_dirty(self) | 0e87cc260f61017d4510663d48ab352573490ab1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/0e87cc260f61017d4510663d48ab352573490ab1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2019,
972,
12,
2890,
16,
919,
4672,
919,
18,
5120,
2668,
972,
21050,
972,
2187,
599,
13,
364,
508,
16,
460,
316,
919,
18,
2165,
3319,
13332,
1566,
273,
3869,
12,
2890,
16186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
2019,
972,
12,
2890,
16,
919,
4672,
919,
18,
5120,
2668,
972,
21050,
972,
2187,
599,
13,
364,
508,
16,
460,
316,
919,
18,
2165,
3319,
13332,
1566,
273,
3869,
12,
2890,
16186... |
scenario.append(scenario) | scenarios.append(scenario) | def usage(): print """Periodically monitor working directory for Continuous and Nightly builds | 7c4b94345b2caec32a64a7ee992e6bc3128ef15f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8531/7c4b94345b2caec32a64a7ee992e6bc3128ef15f/run_continuous.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
3536,
5027,
6478,
6438,
5960,
1867,
364,
1816,
16295,
471,
423,
750,
715,
10736,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4084,
13332,
1172,
3536,
5027,
6478,
6438,
5960,
1867,
364,
1816,
16295,
471,
423,
750,
715,
10736,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return sources + self.sources | return sources | def allSources(self): sources = [] for (tarball, extractdir) in self.tarballs: sources.append(tarball) for (patch, level, backup) in self.patches: sources.append(patch) | 25b1a55d2da41bc4a61b3a90457498c8e62ef599 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/25b1a55d2da41bc4a61b3a90457498c8e62ef599/recipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
8628,
12,
2890,
4672,
5550,
273,
5378,
364,
261,
88,
23846,
16,
2608,
1214,
13,
316,
365,
18,
88,
23846,
87,
30,
5550,
18,
6923,
12,
88,
23846,
13,
364,
261,
2272,
16,
1801,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
8628,
12,
2890,
4672,
5550,
273,
5378,
364,
261,
88,
23846,
16,
2608,
1214,
13,
316,
365,
18,
88,
23846,
87,
30,
5550,
18,
6923,
12,
88,
23846,
13,
364,
261,
2272,
16,
1801,
16,... |
blocking: whether to block while trying to acquire or to operate in try-lock mode. this locking mode is not supported yet. | blocking: whether to block while trying to acquire or to operate in try-lock mode. this locking mode is not supported yet. | def acquire(self, blocking=1, shared=0): """Acquire a shared lock. | 4e07ec8c3bd5f6288f53a61c33558c1f423781bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/4e07ec8c3bd5f6288f53a61c33558c1f423781bc/locking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10533,
12,
2890,
16,
9445,
33,
21,
16,
5116,
33,
20,
4672,
3536,
27761,
279,
5116,
2176,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10533,
12,
2890,
16,
9445,
33,
21,
16,
5116,
33,
20,
4672,
3536,
27761,
279,
5116,
2176,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not opts['all'] or fstate[fn]: pos, neg = display(fn, rev, m, fstate[fn]) count += pos + neg if pos and not opts['all']: | if fn in prev or fstate[fn]: r = display(fn, rev, m, fstate[fn]) found = found or r if r and not opts['all']: | def display(fn, rev, states, prevstates): counts = {'-': 0, '+': 0} filerevmatches = {} if not opts['all']: a, b, r = prevstates, states, rev else: a, b, r = states, prevstates, prev.get(fn, -1) for change, l in difflinestates(a, b): cols = [fn, str(r)] if opts['line_number']: cols.append(str(l.linenum)) if opts['all']: cols.append(change) if opts['user']: cols.append(ui.shortuser(get(r)[1])) if opts['files_with_matches']: c = (fn, r) if c in filerevmatches: continue filerevmatches[c] = 1 else: cols.append(l.line) ui.write(sep.join(cols), eol) counts[change] += 1 return counts['+'], counts['-'] | 68d8aa6f8792bba0d73e8b285df038642e32a5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/68d8aa6f8792bba0d73e8b285df038642e32a5c5/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
6880,
273,
13666,
17,
4278,
374,
16,
15126,
4278,
374,
97,
661,
822,
90,
8436,
273,
2618,
309,
486,
1500,
3292,
454,
3546,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
6880,
273,
13666,
17,
4278,
374,
16,
15126,
4278,
374,
97,
661,
822,
90,
8436,
273,
2618,
309,
486,
1500,
3292,
454,
3546,
30,... |
capitals = (("Clydesdale","watson","archimedes","kahan","Hawking"), | capitals = (("Clydesdale","watson","Archimedes","Kahan","Hawking"), | def Precache(): pass#fixme | d63fd07c1902819d53e2b6e33c3c67ba3b9ddd7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2883/d63fd07c1902819d53e2b6e33c3c67ba3b9ddd7d/faction_ships.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2962,
2493,
13332,
1342,
7,
904,
3501,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2962,
2493,
13332,
1342,
7,
904,
3501,
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,
-10... |
modulename = "imaging.tools.%s"%toolname | modulename = "imaging.tools.%s"%classname | def getToolByName(toolname): if not tool_map.has_key(toolname): raise ValueError("No tool called '%s'."%toolname) classname = tool_map[toolname] modulename = "imaging.tools.%s"%toolname try: return import_from(modulename, toolname) except ImportError: raise RuntimeError("Tool class %s.%s not found."%(modulename.toolname)) | f5e8dfd0ff9fdce2dea9763a9a4cdf119b3c07e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7241/f5e8dfd0ff9fdce2dea9763a9a4cdf119b3c07e5/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6364,
5911,
12,
6738,
529,
4672,
309,
486,
5226,
67,
1458,
18,
5332,
67,
856,
12,
6738,
529,
4672,
1002,
2068,
2932,
2279,
5226,
2566,
1995,
87,
14550,
9,
6738,
529,
13,
7479,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6364,
5911,
12,
6738,
529,
4672,
309,
486,
5226,
67,
1458,
18,
5332,
67,
856,
12,
6738,
529,
4672,
1002,
2068,
2932,
2279,
5226,
2566,
1995,
87,
14550,
9,
6738,
529,
13,
7479,
273... |
return self.crypt_handler.decrpyt(password_encrypted) | return self.crypt_handler.decrypt(password_encrypted) | def decrypt(self,password_encrypted): """Decrypt the password using the CryptAPI. """ return self.crypt_handler.decrpyt(password_encrypted) | b230b1f706f036bec6b49665a469441f2d4c8f54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5209/b230b1f706f036bec6b49665a469441f2d4c8f54/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8420,
12,
2890,
16,
3664,
67,
18702,
4672,
3536,
17306,
326,
2201,
1450,
326,
22752,
2557,
18,
3536,
327,
365,
18,
22784,
67,
4176,
18,
323,
3353,
2074,
88,
12,
3664,
67,
18702,
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,
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,
8420,
12,
2890,
16,
3664,
67,
18702,
4672,
3536,
17306,
326,
2201,
1450,
326,
22752,
2557,
18,
3536,
327,
365,
18,
22784,
67,
4176,
18,
323,
3353,
2074,
88,
12,
3664,
67,
18702,
13,
2,... |
arr = numpy.empty(depth * bytes_per_image, dtype=numpy.uint8) | arr = numpy.empty(depth * bytes_per_image, dtype=self.dtypes.uint8) | def get_samples(self, subfile_type=0, verbose=False): """ Return samples and sample names. | 67eb5b913784e716184933d99aa3bcc5629e8fe1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8227/67eb5b913784e716184933d99aa3bcc5629e8fe1/tiff_file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7319,
12,
2890,
16,
720,
768,
67,
723,
33,
20,
16,
3988,
33,
8381,
4672,
3536,
2000,
5216,
471,
3296,
1257,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7319,
12,
2890,
16,
720,
768,
67,
723,
33,
20,
16,
3988,
33,
8381,
4672,
3536,
2000,
5216,
471,
3296,
1257,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
package = tuple (path[0:-1]) | package = string.join(path[0:-1], '.') | def find_modules (self): """Finds individually-specified Python modules, ie. those listed by module name in 'self.py_modules'. Returns a list of tuples (package, module_base, filename): 'package' is a tuple of the path through package-space to the module; 'module_base' is the bare (no packages, no dots) module name, and 'filename' is the path to the ".py" file (relative to the distribution root) that implements the module. """ | 312008e2cd00c81cfaa67acd97343a2d1001e865 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/312008e2cd00c81cfaa67acd97343a2d1001e865/build_py.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6400,
261,
2890,
4672,
3536,
8947,
28558,
17,
13827,
6600,
4381,
16,
9228,
18,
5348,
12889,
635,
1605,
508,
316,
296,
2890,
18,
2074,
67,
6400,
10332,
225,
2860,
279,
666,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6400,
261,
2890,
4672,
3536,
8947,
28558,
17,
13827,
6600,
4381,
16,
9228,
18,
5348,
12889,
635,
1605,
508,
316,
296,
2890,
18,
2074,
67,
6400,
10332,
225,
2860,
279,
666,
434,... |
import re _typeprog = re.compile('^([^/:]+):') match = _typeprog.match(url) | import re _typeprog = re.compile('^([^/:]+):') match = _typeprog.match(url) | def splittype(url): global _typeprog if _typeprog is None: import re _typeprog = re.compile('^([^/:]+):') match = _typeprog.match(url) if match: scheme = match.group(1) return scheme, url[len(scheme) + 1:] return None, url | 52c990fef6d843442d24f88c38914bc52c0210e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/52c990fef6d843442d24f88c38914bc52c0210e0/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
723,
12,
718,
4672,
2552,
389,
723,
14654,
309,
389,
723,
14654,
353,
599,
30,
1930,
283,
389,
723,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
16880,
7941,
2497,
13,
225,
845,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
723,
12,
718,
4672,
2552,
389,
723,
14654,
309,
389,
723,
14654,
353,
599,
30,
1930,
283,
389,
723,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
16880,
7941,
2497,
13,
225,
845,
2... |
self.space = test.objspace('std') | self.space = test.objspace() | def setUp(self): self.space = test.objspace('std') | 21fc0408f9f61cab03a343529c8b106ae469b8d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/21fc0408f9f61cab03a343529c8b106ae469b8d0/test_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
2981,
273,
1842,
18,
2603,
2981,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
2981,
273,
1842,
18,
2603,
2981,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
By default, smtplib.SMTP_PORT is used. | By default, smtplib.SMTP_PORT is used. An SMTPConnectError is raised if the specified `host' doesn't respond correctly. | def __init__(self, host = '', port = 0): """Initialize a new instance. | 296e14301a7aa23a5ee2bfaa1210af54e594cbbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/296e14301a7aa23a5ee2bfaa1210af54e594cbbf/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
273,
10226,
1756,
273,
374,
4672,
3536,
7520,
279,
394,
791,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
273,
10226,
1756,
273,
374,
4672,
3536,
7520,
279,
394,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return Utils.collapse_rfc2231_value(boundary).strip() | return Utils.collapse_rfc2231_value(boundary).rstrip() | def get_boundary(self, failobj=None): """Return the boundary associated with the payload if present. | 46b73ec3b62163aa0a03b482c970078a6a6f8190 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/46b73ec3b62163aa0a03b482c970078a6a6f8190/Message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16604,
12,
2890,
16,
2321,
2603,
33,
7036,
4672,
3536,
990,
326,
7679,
3627,
598,
326,
2385,
309,
3430,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16604,
12,
2890,
16,
2321,
2603,
33,
7036,
4672,
3536,
990,
326,
7679,
3627,
598,
326,
2385,
309,
3430,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
indent += "\t", | indent += "\t" | def ShowPipelineTree(self, pipeline, recurseDepth = 0, maxDepth = 3): '''Display a tree of pipeline elements and their children''' if recurseDepth > maxDepth: return | ad45600a360afafb52e42b236a78e0e640e1c3a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/ad45600a360afafb52e42b236a78e0e640e1c3a8/JokDebug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
8798,
2471,
12,
2890,
16,
5873,
16,
11502,
6148,
273,
374,
16,
22074,
273,
890,
4672,
9163,
4236,
279,
2151,
434,
5873,
2186,
471,
3675,
2325,
26418,
309,
11502,
6148,
405,
22074,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
8798,
2471,
12,
2890,
16,
5873,
16,
11502,
6148,
273,
374,
16,
22074,
273,
890,
4672,
9163,
4236,
279,
2151,
434,
5873,
2186,
471,
3675,
2325,
26418,
309,
11502,
6148,
405,
22074,
... |
p | def do_proxy(self, p, req): p return self.parent.open(req) | 1368ca273a7d8e771a6c120d96e6e55429c9ebbd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1368ca273a7d8e771a6c120d96e6e55429c9ebbd/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5656,
12,
2890,
16,
293,
16,
1111,
4672,
327,
365,
18,
2938,
18,
3190,
12,
3658,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5656,
12,
2890,
16,
293,
16,
1111,
4672,
327,
365,
18,
2938,
18,
3190,
12,
3658,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
'origin': porder.origin, | 'origin': porder.origin or '', | def make_key(br, fields): list_key = [] for field in fields: field_val = getattr(br, field) if field in ('product_id','move_dest_id'): if not field_val: field_val = False if isinstance(field_val, browse_record): field_val = field_val.id if isinstance(field_val, browse_null): field_val = False elif isinstance(field_val, list): field_val = ((6, 0, tuple([v.id for v in field_val])),) list_key.append((field, field_val)) list_key.sort() return tuple(list_key) | a99a3022baa933e0da76583cb15a8b9d3e7e763f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/a99a3022baa933e0da76583cb15a8b9d3e7e763f/wizard_merge_purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
856,
12,
2848,
16,
1466,
4672,
666,
67,
856,
273,
5378,
364,
652,
316,
1466,
30,
652,
67,
1125,
273,
3869,
12,
2848,
16,
652,
13,
309,
652,
316,
7707,
5896,
67,
350,
17023,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
856,
12,
2848,
16,
1466,
4672,
666,
67,
856,
273,
5378,
364,
652,
316,
1466,
30,
652,
67,
1125,
273,
3869,
12,
2848,
16,
652,
13,
309,
652,
316,
7707,
5896,
67,
350,
17023,... |
attachment_ids.append(attachment.id) if attachment_ids: | attachment_id = attachment.id else: key = (object_name, object_id) attachment_id = cache['_model&id&name2attachment_ids']\ [key].get(name, [False])[0] if attachment_id: | def _uri2object(self, cursor, user, uri, object_name=_name, object_id=False, context=None, cache=None): attachment_obj = self.pool.get('ir.attachment') report_obj = self.pool.get('ir.action.report') cache_uri = uri | 993ff2d321de105954db9e2ba9648c6707becb87 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/993ff2d321de105954db9e2ba9648c6707becb87/webdav.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1650,
22,
1612,
12,
2890,
16,
3347,
16,
729,
16,
2003,
16,
733,
67,
529,
33,
67,
529,
16,
733,
67,
350,
33,
8381,
16,
819,
33,
7036,
16,
1247,
33,
7036,
4672,
6042,
67,
2603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1650,
22,
1612,
12,
2890,
16,
3347,
16,
729,
16,
2003,
16,
733,
67,
529,
33,
67,
529,
16,
733,
67,
350,
33,
8381,
16,
819,
33,
7036,
16,
1247,
33,
7036,
4672,
6042,
67,
2603,
... |
cmd = ['pg_dump', '--format=c'] | cmd = ['pg_dump', '--format=c', '--no-owner'] | def dump(self, password, db_name): security.check_super(password) logger = netsvc.Logger() | 4d5631e29cdfd4899b89b3a5a92ec6a8934ae17c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/4d5631e29cdfd4899b89b3a5a92ec6a8934ae17c/web_services.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
2201,
16,
1319,
67,
529,
4672,
4373,
18,
1893,
67,
9565,
12,
3664,
13,
1194,
273,
21954,
4227,
18,
3328,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
2201,
16,
1319,
67,
529,
4672,
4373,
18,
1893,
67,
9565,
12,
3664,
13,
1194,
273,
21954,
4227,
18,
3328,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
tardy_model_start = scitbx.rigid_body.tardy_model( | tardy_model = scitbx.rigid_body.tardy_model( | def generate_rotamers(comp, rotamer_info, bonds_to_omit, strip_hydrogens): resname = comp.chem_comp.id comp_atom_names = set([atom.atom_id for atom in comp.atom_list]) pdb_inp = iotbx.pdb.input( file_name=op.join( protein_pdb_files, reference_pdb_file_name_lookup[resname])) pdb_atoms = pdb_inp.atoms() pdb_atoms.reset_i_seq() matched_atom_names = iotbx.pdb.atom_name_interpretation.interpreters[ resname].match_atom_names(atom_names=pdb_atoms.extract_name()) names = matched_atom_names.unexpected if (len(names) != 0): raise RuntimeError("%: unexpected atoms: %s" % ( resname, " ".join(sorted(names)))) names = matched_atom_names.missing_atom_names(ignore_hydrogen=True) if (len(names) != 0): raise RuntimeError("%: missing atoms: %s" % ( resname, " ".join(sorted(names)))) pdb_hierarchy = pdb_inp.construct_hierarchy() ag = pdb_hierarchy.only_atom_group() if (strip_hydrogens): for atom in ag.atoms(): if (atom.element == " H"): ag.remove_atom(atom=atom) pdb_residue = pdb_hierarchy.only_residue() else: pdb_residue = pdb_hierarchy.only_residue() remove_name = {"ASP": " HD2", "GLU": " HE2"}.get(pdb_residue.resname) if (remove_name is not None): for atom in ag.atoms(): if (atom.name == remove_name): ag.remove_atom(atom=atom) pdb_residue = pdb_hierarchy.only_residue() pdb_atoms = pdb_residue.atoms() matched_mon_lib_atom_names = flex.select( sequence=matched_atom_names.mon_lib_names(), permutation=pdb_atoms.extract_i_seq()) for p,m in zip(pdb_atoms, matched_mon_lib_atom_names): print 'atom name mapping: pdb="%s" -> %s' % (p.name, m) if (strip_hydrogens): assert len(matched_mon_lib_atom_names) == comp.chem_comp.number_atoms_nh comp_atom_name_set = set([atom.atom_id for atom in comp.atom_list]) for name in matched_mon_lib_atom_names: if (name not in comp_atom_name_set): raise RuntimeError( "Missing comp atom: %s %s" % (pdb_residue.resname, name)) # pdb_atoms.reset_i_seq() pdb_atoms.set_occ(new_occ=flex.double(pdb_atoms.size(), 1)) pdb_atoms.set_b(new_b=flex.double(pdb_atoms.size(), 0)) rg = pdb_hierarchy.only_residue_group() rg.resseq = 1 rg.icode = " " assert pdb_hierarchy.only_atom_group().altloc == "" # # XXX severe duplication of source code tree_root_atom_names = set(["CA", "C", "O"]) if (("N", "CA") not in bonds_to_omit): tree_root_atom_names.add("N") fixed_vertices = [] atom_indices = {} for i,matched_atom_name in enumerate(matched_mon_lib_atom_names): atom_id = matched_atom_name assert atom_id not in atom_indices atom_indices[atom_id] = i if (atom_id in tree_root_atom_names): fixed_vertices.append(i) assert len(atom_indices) == len(matched_mon_lib_atom_names) assert len(fixed_vertices) == len(tree_root_atom_names) edge_list = [] for bond in comp.bond_list: bond_atom_ids = bond.atom_ids() if (bond_atom_ids not in bonds_to_omit): ai = [atom_indices.get(atom_id) for atom_id in bond_atom_ids] if (ai.count(None) == 0): edge_list.append(tuple(sorted(ai))) external_clusters = [] if (rotamer_info is not None): for tor in comp.tor_list: if ( tor.value_angle_esd <= rotamer_info.constrain_dihedrals_with_sigma_less_than_or_equal_to): ai = [atom_indices.get(atom_id) for atom_id in tor.atom_ids()] if (ai.count(None) == 0): external_clusters.append(sorted(ai)) for plane in comp.get_planes(): ai = [] for atom_id in plane.plane_atoms: i = atom_indices.get(atom_id) if (i is not None): ai.append(i) external_clusters.append(sorted(ai)) tardy_tree = scitbx.graph.tardy_tree.construct( n_vertices=pdb_atoms.size(), edge_list=edge_list, external_clusters=external_clusters, fixed_vertex_lists=[fixed_vertices]).build_tree() assert len(tardy_tree.cluster_manager.loop_edges) == 0 tardy_model_start = scitbx.rigid_body.tardy_model( labels=pdb_atoms.extract_name(), sites=pdb_atoms.extract_xyz(), masses=flex.double(pdb_atoms.size(), 1), tardy_tree=tardy_tree, potential_obj=None) joint_dofs = tardy_model_start.degrees_of_freedom_each_joint() for ib in xrange(len(joint_dofs)): c = tardy_tree.cluster_manager.clusters[ib] print "cluster:", joint_dofs[ib], [pdb_atoms[i].name for i in c] assert joint_dofs[0] == 0 assert joint_dofs[1:].all_eq(1) # if (rotamer_info is None): return None # tor_dict = {} for tor in comp.tor_list: atom_names = tuple(sorted([tor.atom_id_2, tor.atom_id_3])) tor_dict.setdefault(atom_names, []).append(tor) # tor_id_i_q_packed_matches = {} number_of_trees = 0 for i_body,he in enumerate(tardy_tree.cluster_manager.hinge_edges): if (he[0] == -1): number_of_trees += 1 continue hinge_atom_names = [tardy_model_start.labels[i].strip() for i in he] atom_names = tuple(sorted(hinge_atom_names)) tors = tor_dict.get(atom_names) if (len(tors) == 1): tor = tors[0] else: used_tors = [] for tor in tors: if (tor.id in rotamer_info.tor_ids): used_tors.append(tor) assert len(used_tors) == 1 tor = used_tors[0] tor_id_i_q_packed_matches[tor.id] = i_body - 1 assert number_of_trees == 1 # rotamer_tor = [None] * len(rotamer_info.tor_ids) lookup = {} for i,tor_id in enumerate(rotamer_info.tor_ids): lookup[tor_id] = i for tor in comp.tor_list: i = lookup.get(tor.id) if (i is not None): assert rotamer_tor[i] is None rotamer_tor[i] = tor assert rotamer_tor.count(None) == 0 # print "tardy_tree tors:", ", ".join(sorted(tor_id_i_q_packed_matches.keys())) print "rotamer tors:", ", ".join([tor.id for tor in rotamer_tor]) if (len(rotamer_tor) != len(tor_id_i_q_packed_matches)): msg = "tardy_tree tor vs. rotamer info differences: %s" \ % pdb_residue.resname if (not strip_hydrogens): raise RuntimeError(msg) print "Info:", msg # def get_q_packed_for_zero_dihedrals(tardy_model): uninitialized = -1e20 result = flex.double(tardy_model.q_packed_size, uninitialized) rotamer_tor_id = set([tor.id for tor in rotamer_tor]) for tor in comp.tor_list: i_q_packed = tor_id_i_q_packed_matches.get(tor.id) if (i_q_packed is not None): ai = [atom_indices[atom_id] for atom_id in tor.atom_ids()] d_sites = [tardy_model.sites[i] for i in ai] d = cctbx.geometry_restraints.dihedral( sites=d_sites, angle_ideal=0, weight=1) if (tor.id in rotamer_tor_id): result[i_q_packed] = -math.radians(d.angle_model) else: result[i_q_packed] = 0 # keep fixed assert result.all_ne(uninitialized) return result tardy_model_start.unpack_q( q_packed=get_q_packed_for_zero_dihedrals(tardy_model=tardy_model_start)) tardy_model_work = scitbx.rigid_body.tardy_model( labels=tardy_model_start.labels, sites=tardy_model_start.sites_moved(), masses=tardy_model_start.masses, tardy_tree=tardy_tree, potential_obj=None) q_packed_zero = get_q_packed_for_zero_dihedrals( tardy_model=tardy_model_work) assert flex.abs(q_packed_zero).all_lt(1e-6) # if (strip_hydrogens): rotamers_sub_dir = "rotamers_no_h" else: rotamers_sub_dir = "rotamers_with_h" if (not os.path.isdir(rotamers_sub_dir)): os.mkdir(rotamers_sub_dir) remark_strings = [] atom_strings = [] atom_serial_first_value = 1 for i_rotamer,rotamer in enumerate(rotamer_info.rotamer): q_packed = flex.double(tardy_model_work.q_packed_size, 0) for tor,angle in zip(rotamer_tor, rotamer.angles): i_q_packed = tor_id_i_q_packed_matches.get(tor.id) if (i_q_packed is not None and angle is not None): q_packed[i_q_packed] = math.radians(angle) tardy_model_work.unpack_q(q_packed=q_packed) rotamer_sites = tardy_model_work.sites_moved() rotamer_sites += matrix.col((4,4,4)) * i_rotamer pdb_atoms.set_xyz(new_xyz=rotamer_sites) report_tors( comp=comp, residue_sites=rotamer_sites, matched_mon_lib_atom_names=matched_mon_lib_atom_names, targets=dict(zip(rotamer_info.tor_ids, rotamer.angles))) pdb_atoms.reset_serial(first_value=atom_serial_first_value) atom_serial_first_value += pdb_atoms.size() chain_id = (string.uppercase + string.lowercase)[i_rotamer] pdb_hierarchy.only_chain().id = chain_id remark_strings.append( "REMARK %s %s = chain %s" % (pdb_residue.resname, rotamer.id, chain_id)) atom_strings.append(pdb_hierarchy.as_pdb_string(append_end=False)) file_name = "%s/%s.pdb" % (rotamers_sub_dir, pdb_residue.resname) print "Writing file:", file_name f = open(file_name, "w") for s in remark_strings: print >> f, s for s in atom_strings: f.write(s) print >> f, "END" del f | 2660185393d07f44d74af45c3a4be3afec180d44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/2660185393d07f44d74af45c3a4be3afec180d44/tst_tor_vs_tardy_tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
8342,
301,
414,
12,
2919,
16,
4168,
24458,
67,
1376,
16,
15692,
67,
869,
67,
362,
305,
16,
2569,
67,
18112,
9005,
23730,
4672,
400,
529,
273,
1161,
18,
1036,
67,
2919,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
8342,
301,
414,
12,
2919,
16,
4168,
24458,
67,
1376,
16,
15692,
67,
869,
67,
362,
305,
16,
2569,
67,
18112,
9005,
23730,
4672,
400,
529,
273,
1161,
18,
1036,
67,
2919,
18,
... |
Semistandard tableaux of shape [2, 1] | Semistandard tableaux of shape [2, 1] and maximum entry 3 | def SemistandardTableaux(p=None, mu=None): """ Returns the combinatorial class of semistandard tableaux. If p is specified and is a partition, then it returns the class of semistandard tableaux of shape p (and max entry sum(p)) If p is specified and is an integer, it returns the class of semistandard tableaux of size p. If mu is also specified, then it returns the class of semistandard tableaux with evaluation/content mu. EXAMPLES:: sage: SST = SemistandardTableaux([2,1]); SST Semistandard tableaux of shape [2, 1] sage: SST.list() [[[1, 1], [2]], [[1, 1], [3]], [[1, 2], [2]], [[1, 2], [3]], [[1, 3], [2]], [[1, 3], [3]], [[2, 2], [3]], [[2, 3], [3]]] :: sage: SST = SemistandardTableaux(3); SST Semistandard tableaux of size 3 sage: SST.list() [[[1, 1, 1]], [[1, 1, 2]], [[1, 1, 3]], [[1, 2, 2]], [[1, 2, 3]], [[1, 3, 3]], [[2, 2, 2]], [[2, 2, 3]], [[2, 3, 3]], [[3, 3, 3]], [[1, 1], [2]], [[1, 1], [3]], [[1, 2], [2]], [[1, 2], [3]], [[1, 3], [2]], [[1, 3], [3]], [[2, 2], [3]], [[2, 3], [3]], [[1], [2], [3]]] """ if p == None: return SemistandardTableaux_all() elif p in partition.Partitions(): if mu == None: return SemistandardTableaux_p(p) else: if sum(p) != sum(mu): #Error size mismatch raise TypeError, "p and mu must be of the same size" else: return SemistandardTableaux_pmu(p, mu) elif isinstance(p, (int, Integer)): if mu == None: return SemistandardTableaux_n(p) else: if p != sum(mu): #Error size mismatch raise TypeError, "mu must be of size p (= %s)"%p else: return SemistandardTableaux_nmu(p, mu) else: raise ValueError | 6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/6ec7d5a4cd0b83ae5413f0375d51a0339f12b4b7/tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15661,
376,
2958,
1388,
18196,
12,
84,
33,
7036,
16,
4129,
33,
7036,
4672,
3536,
2860,
326,
3894,
4240,
649,
667,
434,
6111,
376,
2958,
1014,
18196,
18,
225,
971,
293,
353,
1269,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15661,
376,
2958,
1388,
18196,
12,
84,
33,
7036,
16,
4129,
33,
7036,
4672,
3536,
2860,
326,
3894,
4240,
649,
667,
434,
6111,
376,
2958,
1014,
18196,
18,
225,
971,
293,
353,
1269,
471,
... |
return ('id','=',0) | self.__exp[i] = ('id','=',0) | def _get_expression(field_obj,cr, uid, left, right, operator, context=None): if context is None: context = {} c = context.copy() c['active_test'] = False dict_op = {'not in':'!=','in':'='} if isinstance(right,tuple): right = list(right) if (not isinstance(right,list)) and operator in ['not in','in']: operator = dict_op[operator] res_ids = field_obj.name_search(cr, uid, right, [], operator, limit=None, context=c) if not res_ids: return ('id','=',0) else: right = map(lambda x: x[0], res_ids) return (left, 'in', right) | 3611160e5257828994e4f80aaa743c66914eb652 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3611160e5257828994e4f80aaa743c66914eb652/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
8692,
12,
1518,
67,
2603,
16,
3353,
16,
4555,
16,
2002,
16,
2145,
16,
3726,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
276,
273,
819,
18,
3530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8692,
12,
1518,
67,
2603,
16,
3353,
16,
4555,
16,
2002,
16,
2145,
16,
3726,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
276,
273,
819,
18,
3530,
... |
""" return self.display2d(onscreen=False) | sage: f = (exp(x)-1)/(exp(x/2)+1) sage: g = exp(x/2)-1 sage: print f(10), g(10) 10 e - 1 -------- 5 e + 1 5 e - 1 """ return '\n' + self.display2d(onscreen=False) | def __str__(self): """ Printing an object explicitly gives ASCII art: | 1cc30c845d871988cf52ae707e5d4687f5934472 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1cc30c845d871988cf52ae707e5d4687f5934472/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
3038,
310,
392,
733,
8122,
14758,
11768,
3688,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
3038,
310,
392,
733,
8122,
14758,
11768,
3688,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for queue in self.queues: lostMembers = [i for i in self.queues[queue]['members'].keys() if i not in self.queueMemberStatus[queue]] for member in lostMembers: log.log('MonAst.handlerQueueStatusComplete :: Removing lost member: %s' % member) del self.queues[queue]['members'][member] self.enqueue('RemoveQueueMember: %s:::%s:::FAKE' % (queue, member)) lostClients = [i for i in self.queues[queue]['clients'].keys() if i not in self.queueClientStatus[queue]] for client in lostClients: log.log('MonAst.handlerQueueStatusComplete :: Removing lost client: %s' % client) Channel = self.queues[queue]['clients'][client]['Channel'] del self.queues[queue]['clients'][client] Count = len(self.queues[queue]['clients']) self.enqueue('RemoveQueueClient: %s:::%s:::%s:::%s:::FAKE' % (queue, client, Channel, Count)) | queue = self.queueStatusOrder.pop(0) lostMembers = [i for i in self.queues[queue]['members'].keys() if i not in self.queueMemberStatus[queue]] for member in lostMembers: log.log('MonAst.handlerQueueStatusComplete :: Removing lost member %s from queue %s' % (member, queue)) del self.queues[queue]['members'][member] self.enqueue('RemoveQueueMember: %s:::%s:::FAKE' % (queue, member)) lostClients = [i for i in self.queues[queue]['clients'].keys() if i not in self.queueClientStatus[queue]] for client in lostClients: log.log('MonAst.handlerQueueStatusComplete :: Removing lost client %s from queue %s' % (client, queue)) Channel = self.queues[queue]['clients'][client]['Channel'] del self.queues[queue]['clients'][client] Count = len(self.queues[queue]['clients']) self.enqueue('RemoveQueueClient: %s:::%s:::%s:::%s:::FAKE' % (queue, client, Channel, Count)) | def handlerQueueStatusComplete(self, lines): log.info('MonAst.handlerQueueStatusComplete :: Running...') self.queuesLock.acquire() for queue in self.queues: lostMembers = [i for i in self.queues[queue]['members'].keys() if i not in self.queueMemberStatus[queue]] for member in lostMembers: log.log('MonAst.handlerQueueStatusComplete :: Removing lost member: %s' % member) del self.queues[queue]['members'][member] self.enqueue('RemoveQueueMember: %s:::%s:::FAKE' % (queue, member)) lostClients = [i for i in self.queues[queue]['clients'].keys() if i not in self.queueClientStatus[queue]] for client in lostClients: log.log('MonAst.handlerQueueStatusComplete :: Removing lost client: %s' % client) Channel = self.queues[queue]['clients'][client]['Channel'] del self.queues[queue]['clients'][client] Count = len(self.queues[queue]['clients']) self.enqueue('RemoveQueueClient: %s:::%s:::%s:::%s:::FAKE' % (queue, client, Channel, Count)) self.queuesLock.release() | 8eb2ec980fafd459704d4facda9d1e4c0a8a0462 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12004/8eb2ec980fafd459704d4facda9d1e4c0a8a0462/monast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
3183,
1482,
6322,
12,
2890,
16,
2362,
4672,
225,
613,
18,
1376,
2668,
11415,
21385,
18,
4176,
3183,
1482,
6322,
493,
20480,
7821,
13,
225,
365,
18,
18924,
2531,
18,
1077,
1039,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1838,
3183,
1482,
6322,
12,
2890,
16,
2362,
4672,
225,
613,
18,
1376,
2668,
11415,
21385,
18,
4176,
3183,
1482,
6322,
493,
20480,
7821,
13,
225,
365,
18,
18924,
2531,
18,
1077,
1039,
143... |
panel.SetScrollRate(5,5) | def BuildColorPanel(self): """Select components by color and reassign labels if desired.""" panel = wx.ScrolledWindow(self, -1, style=wx.VSCROLL) color_names = self.model.GetZLabels(self.model.GetCurrentZ()) self.cbs = [wx.CheckBox(panel, -1, name) for name in color_names] | 97423d7ac527f9bf70871352542e85a329374f1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9486/97423d7ac527f9bf70871352542e85a329374f1c/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
2957,
5537,
12,
2890,
4672,
3536,
3391,
4085,
635,
2036,
471,
283,
6145,
3249,
309,
6049,
12123,
6594,
273,
7075,
18,
1541,
25054,
3829,
12,
2890,
16,
300,
21,
16,
2154,
33,
27226,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3998,
2957,
5537,
12,
2890,
4672,
3536,
3391,
4085,
635,
2036,
471,
283,
6145,
3249,
309,
6049,
12123,
6594,
273,
7075,
18,
1541,
25054,
3829,
12,
2890,
16,
300,
21,
16,
2154,
33,
27226,... | |
def list(self, n): return [self(i) for i in range(1,n+1)] | def list(self, n): return [self(i) for i in range(1,n+1)] | 2c9ec0e9ee4b6a66dba3cad312fef1c27ffc8925 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2c9ec0e9ee4b6a66dba3cad312fef1c27ffc8925/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
327,
306,
2890,
12,
77,
13,
364,
277,
316,
1048,
12,
21,
16,
82,
15,
21,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
327,
306,
2890,
12,
77,
13,
364,
277,
316,
1048,
12,
21,
16,
82,
15,
21,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
assy.update_parts(do_post_event_updates = False) | assy.update_parts() | def _reset_grouplist(assy, grouplist): #bruce 050302 split this out of readmmp; # it should be entirely rewritten and become an assy method """ [private] Stick a new just-read grouplist into assy, within readmmp. If grouplist is None, indicating file had bad format, do some but not all of the usual side effects. [appropriateness of behavior for grouplist is None is unreviewed] Otherwise grouplist must be a list of exactly 3 Groups (though this is not fully checked here), which we treat as viewdata, tree, shelf. Changed viewdata behavior 050418: We used to assume (if necessary) that viewdata contains Csys records which, when parsed during _readmmp, had side effects of storing themselves in assy (which was a bad design). Now we scan it and perform those side effects ourselves. """ #bruce 050418: revising this for assy/part split if grouplist is None: # do most of what old code did (most of which probably shouldn't be done, # but this needs more careful review (especially in case old code has # already messed things up by clearing assy), and merging with callers, # which don't even check for any kind of error return from readmmp), # except (as of 050418) don't do any side effects from viewdata. # Note: this is intentionally duplicated with code from the other case, # since the plan is to clean up each case independently. assy.shelf.name = "Clipboard" assy.shelf.open = False assy.root = Group("ROOT", assy, None, [assy.tree, assy.shelf]) assy.kluge_patch_toplevel_groups() assy.update_parts() return viewdata, tree, shelf = grouplist # don't yet store these in any Part, since those will all be replaced # with new ones by update_parts, below! assy.tree = tree assy.shelf = shelf # below, we'll scan viewdata for Csys records to store into mainpart assy.shelf.name = "Clipboard" if not assy.shelf.open_specified_by_mmp_file: #bruce 050421 added condition assy.shelf.open = False assy.root = Group("ROOT", assy, None, [assy.tree, assy.shelf]) assy.kluge_patch_toplevel_groups() assy.update_parts(do_post_event_updates = False) #bruce 050309 for assy/part split; 080117 added option = False # Now the parts exist, so it's safe to store the viewdata into the mainpart; # this imitates what the pre-050418 code did when the csys records were parsed; # note that not all mmp files have anything at all in viewdata # (e.g. some sim-input files don't). mainpart = assy.tree.part for m in viewdata.members: if isinstance(m, Csys): if m.name == "HomeView" or m.name == "OldVersion": # "OldVersion" will be changed to "HomeView" later... see comment elsewhere mainpart.homeCsys = m elif m.name == "LastView": mainpart.lastCsys = m elif m.name.startswith("HomeView"): maybe_set_partview(assy, m, "HomeView", 'homeCsys') elif m.name.startswith("LastView"): maybe_set_partview(assy, m, "LastView", 'lastCsys') return | 5ab7078870c7da1d9b23f1248aa39b43690b6113 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/5ab7078870c7da1d9b23f1248aa39b43690b6113/files_mmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6208,
67,
75,
14004,
17842,
12,
428,
93,
16,
314,
14004,
17842,
4672,
468,
2848,
3965,
374,
3361,
23,
3103,
1416,
333,
596,
434,
855,
81,
1291,
31,
468,
518,
1410,
506,
21658,
267... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6208,
67,
75,
14004,
17842,
12,
428,
93,
16,
314,
14004,
17842,
4672,
468,
2848,
3965,
374,
3361,
23,
3103,
1416,
333,
596,
434,
855,
81,
1291,
31,
468,
518,
1410,
506,
21658,
267... |
""" | """ | def flimage_write_via_filter(pImage, p2, p3, p4): """ flimage_write_via_filter(pImage, p2, p3, p4) -> num. """ retval = _flimage_write_via_filter(pImage, p2, p3, p4) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
2626,
67,
21985,
67,
2188,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
4672,
3536,
1183,
2730,
67,
2626,
67,
21985,
67,
2188,
12,
84,
2040,
16,
293,
22,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
2626,
67,
21985,
67,
2188,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
4672,
3536,
1183,
2730,
67,
2626,
67,
21985,
67,
2188,
12,
84,
2040,
16,
293,
22,
16... |
self._func = key | self._func = key or self.default | def __init__(self, parent, key=Collection.default): UserDict.__init__(self) self.parent = weakref.ref(parent) self.list = [] self._func = key | 2c172de5cd84e8542a52f0380a86720572828228 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/2c172de5cd84e8542a52f0380a86720572828228/Utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
498,
33,
2532,
18,
1886,
4672,
2177,
5014,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2938,
273,
16046,
1734,
18,
1734,
12,
2938,
13,
365,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
982,
16,
498,
33,
2532,
18,
1886,
4672,
2177,
5014,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2938,
273,
16046,
1734,
18,
1734,
12,
2938,
13,
365,
18,
1... |
text=None, extension_elements=None, extension_attributes=None): | extension_elements=None, extension_attributes=None, text=None): | def __init__(self, author=None, category=None, contributor=None, generator=None, icon=None, atom_id=None, link=None, logo=None, rights=None, subtitle=None, title=None, updated=None, entry=None, total_results=None, start_index=None, items_per_page=None, text=None, extension_elements=None, extension_attributes=None): gdata.GDataFeed.__init__(self, author=author, category=category, contributor=contributor, generator=generator, icon=icon, atom_id=atom_id, link=link, logo=logo, rights=rights, subtitle=subtitle, title=title, updated=updated, entry=entry, total_results=total_results, start_index=start_index, items_per_page=items_per_page, text=text, extension_elements=extension_elements, extension_attributes=extension_attributes) | 0ba6315ab8118b874d87e51c8f024bfc6f59e8a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/0ba6315ab8118b874d87e51c8f024bfc6f59e8a9/gcalendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
31123,
33,
7036,
16,
4456,
33,
7036,
16,
4126,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
31123,
33,
7036,
16,
4456,
33,
7036,
16,
4126,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
... |
sys.stderr.write(u'\n! Warning: Skipping "%s" as there is no IMDB number for this movie.\nUse interactive option (-i) or (-I) to select the IMDB number.\n\n' % (cfile['file_seriesname'])) | sys.stderr.write(u'\n! Warning: Skipping "%s" as there is no IMDB number for this movie.\nUse interactive option (-i) or (-I) to select the IMDB number.\n\n' % (cfile['file_seriesname'])) | def processMythTvMetaData(self): '''Check each video file in the mythvideo directories download graphics files and meta data then update MythTV data base meta data with any new information. ''' # If there were directories specified move them and update the MythTV db meta data accordingly if self.config['video_dir']: if len(self.config['video_dir']) % 2 == 0: validFiles = self._moveVideoFiles(self.config['video_dir']) else: sys.stderr.write(u"\n! Error: When specifying target (file or directory) to move to a destination (directory) they must always be in pairs (target and destination directory).\nYou specified an uneven number of variables (%d) for target and destination pairs.\nVariable count (%s)\n" % (len(self.config['video_dir']), self.config['video_dir'])) sys.exit(False) | 6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12062,
451,
56,
90,
6998,
12,
2890,
4672,
9163,
1564,
1517,
6191,
585,
316,
326,
3399,
451,
9115,
6402,
4224,
17313,
1390,
471,
2191,
501,
1508,
1089,
8005,
451,
15579,
501,
1026,
... |
print i, w['key'], w['title'] | print i, work['key'], work['title'] | def read_works(): i = 0 pages = {} page_marc = {} for w, marc in work_and_marc(): lines = [] for loc in marc: data = get_data(loc) if not data: continue found = [v for k, v in get_tag_lines(data, set(['600']))] if found: lines.append((loc, found)) if not lines: continue w['lines'] = lines i += 1 print i, w['key'], w['title'] try: people, marc_alt = read_people(j[1] for j in lines) except AssertionError: print w['lines'] continue marc_alt_reverse = defaultdict(set) for k, v in marc_alt.items(): marc_alt_reverse[v].add(k) w = ol.get(w['key']) w['subject_people'] = [] for p, num in people.iteritems(): print ' %2d %s' % (num, ' '.join("%s: %s" % (k, v) for k, v in p)) print ' ', p if p in page_marc: w['subject_people'].append('/subjects/people/' + page_marc[p]) continue obj = build_person_object(p, marc_alt_reverse.get(p, [])) key = obj['name'].replace(' ', '_') full_key = '/subjects/people/' + key w['subject_people'].append(full_key) if key in pages: print key pages[key]['marc'].append(p) continue for m in obj['marc']: page_marc[m] = key pages[key] = obj obj_for_db = obj.copy() del obj_for_db['marc'] obj_for_db['key'] = full_key print ol.save(full_key, obj_for_db, 'create a new person page') print ol.save(w['key'], w, 'add links to people that this work is about') | ea3116f4fd6d199f513adfc9355c2f70530e7b4c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/ea3116f4fd6d199f513adfc9355c2f70530e7b4c/from_works.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
18597,
13332,
277,
273,
374,
4689,
273,
2618,
1363,
67,
3684,
71,
273,
2618,
225,
364,
341,
16,
312,
11828,
316,
1440,
67,
464,
67,
3684,
71,
13332,
2362,
273,
5378,
364,
1515... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
18597,
13332,
277,
273,
374,
4689,
273,
2618,
1363,
67,
3684,
71,
273,
2618,
225,
364,
341,
16,
312,
11828,
316,
1440,
67,
464,
67,
3684,
71,
13332,
2362,
273,
5378,
364,
1515... |
if (label == ""): label = "Site" + str(len(positions)+1) | if (label == ""): label = "Site" + str(len(self.positions)+1) | def __init__(self, ucparams, sgsymbol, convention, format, coor_type, skip_columns, coordinates): self.ucparams = ucparams self.sgsymbol = sgsymbol self.convention = convention if (format == "generic"): skip_columns = int(skip_columns) self.positions = [] for line in coordinates: label, coor = interpret_generic_coordinate_line(line, skip_columns) if (label == ""): label = "Site" + str(len(positions)+1) if (coor_type != "Fractional"): coor = xsym.UnitCell.fractionalize(coor) self.positions.append(emma.labeled_position(label, coor)) else: from cctbx.macro_mol import cns_sdb_reader self.sdb_files = cns_sdb_reader.multi_sdb_parser(coordinates) self.i_next_model = 0 | dd653ee51ade87b9856d81e625e11bacc389e06b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/dd653ee51ade87b9856d81e625e11bacc389e06b/emma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6232,
2010,
16,
272,
564,
3284,
16,
15797,
16,
740,
16,
1825,
280,
67,
723,
16,
2488,
67,
5112,
16,
5513,
4672,
365,
18,
5286,
2010,
273,
6232,
2010,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6232,
2010,
16,
272,
564,
3284,
16,
15797,
16,
740,
16,
1825,
280,
67,
723,
16,
2488,
67,
5112,
16,
5513,
4672,
365,
18,
5286,
2010,
273,
6232,
2010,
3... |
Returns the Molien series of a transtive permutation group. The | Returns the Molien series of a transitive permutation group. The | def molien_series(self): r""" Returns the Molien series of a transtive permutation group. The function | 2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
30442,
17440,
1041,
18,
1021,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
30442,
17440,
1041,
18,
1021,
445,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
inslen = idaapi.ua_code(ea) | inslen = idaapi.decode_insn(ea) | def GetOpType(ea, n): """ Get type of instruction operand @param ea: linear address of instruction @param n: number of operand: 0 - the first operand 1 - the second operand @return: any of o_* constants or -1 on error """ inslen = idaapi.ua_code(ea) if inslen == 0: return -1 insn = idaapi.get_current_instruction() if not insn: return -1 op = idaapi.get_instruction_operand(insn, n) if not op: return -1 return op.type | 32fd13f56d8a9cb5cd4ce4b2e106630ac7b86cf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/32fd13f56d8a9cb5cd4ce4b2e106630ac7b86cf4/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3817,
559,
12,
24852,
16,
290,
4672,
3536,
968,
618,
434,
7592,
9886,
225,
632,
891,
24164,
30,
9103,
1758,
434,
7592,
632,
891,
290,
30,
1300,
434,
9886,
30,
374,
300,
326,
1122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3817,
559,
12,
24852,
16,
290,
4672,
3536,
968,
618,
434,
7592,
9886,
225,
632,
891,
24164,
30,
9103,
1758,
434,
7592,
632,
891,
290,
30,
1300,
434,
9886,
30,
374,
300,
326,
1122,... |
portal_path = self.get_portal_path(metatype) | portal_path = self.get_portal_path(portal) | def get_fs_template_content(self, id, metatype): """ return the content of the filesystem template """ portal_path = self.get_portal_path(metatype) skel_handler, error = skel_parser().parse(readFile(join(portal_path, 'skel', 'skel.xml'), 'r')) if skel_handler.root.forms is not None: return readFile(join(portal_path, 'skel', 'forms', '%s.zpt' % id), 'r') | 0116da894b0fd06e2befe1c4b6331ce460957cbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/0116da894b0fd06e2befe1c4b6331ce460957cbc/NaayaUpdater.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2556,
67,
3202,
67,
1745,
12,
2890,
16,
612,
16,
5100,
6361,
4672,
3536,
327,
326,
913,
434,
326,
6496,
1542,
3536,
11899,
67,
803,
273,
365,
18,
588,
67,
24386,
67,
803,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2556,
67,
3202,
67,
1745,
12,
2890,
16,
612,
16,
5100,
6361,
4672,
3536,
327,
326,
913,
434,
326,
6496,
1542,
3536,
11899,
67,
803,
273,
365,
18,
588,
67,
24386,
67,
803,
12... |
eq(msg.get_payload(1).get_payload(decode=1), | eq(msg.get_payload(1).get_payload(decode=True), | def test_get_decoded_payload(self): eq = self.assertEqual msg = self._msgobj('msg_10.txt') # The outer message is a multipart eq(msg.get_payload(decode=1), None) # Subpart 1 is 7bit encoded eq(msg.get_payload(0).get_payload(decode=1), 'This is a 7bit encoded message.\n') # Subpart 2 is quopri eq(msg.get_payload(1).get_payload(decode=1), '\xa1This is a Quoted Printable encoded message!\n') # Subpart 3 is base64 eq(msg.get_payload(2).get_payload(decode=1), 'This is a Base64 encoded message.') # Subpart 4 has no Content-Transfer-Encoding: header. eq(msg.get_payload(3).get_payload(decode=1), 'This has no Content-Transfer-Encoding: header.\n') | 825154870b11bdae0cd2b37ef150eaa3dfe363e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/825154870b11bdae0cd2b37ef150eaa3dfe363e2/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
26646,
67,
7648,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
1234,
273,
365,
6315,
3576,
2603,
2668,
3576,
67,
2163,
18,
5830,
6134,
468,
1021,
6390,
883,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
26646,
67,
7648,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
1234,
273,
365,
6315,
3576,
2603,
2668,
3576,
67,
2163,
18,
5830,
6134,
468,
1021,
6390,
883,
353,
... |
'return in finally clause causes java.lang.VerifyError at compile time' exec code32 def test | 'return in finally clause causes java.lang.VerifyError at compile time' exec code32 | def test32(): 'return in finally clause causes java.lang.VerifyError at compile time' exec code32 | 255f4210c1e3b967db40828e7c0a557465f32371 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/255f4210c1e3b967db40828e7c0a557465f32371/bugs101.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1578,
13332,
296,
2463,
316,
3095,
6591,
14119,
2252,
18,
4936,
18,
8097,
668,
622,
4074,
813,
11,
1196,
981,
1578,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1578,
13332,
296,
2463,
316,
3095,
6591,
14119,
2252,
18,
4936,
18,
8097,
668,
622,
4074,
813,
11,
1196,
981,
1578,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"""Under Development. Output similar to the web page can be printed to the screen | """Output similar to the web page can be printed to the screen | def getJobSummary(self,jobID,outputFile=None,printOutput=False): """Under Development. Output similar to the web page can be printed to the screen or stored as a file or just returned as a dictionary for further usage. | 2762b06242602a0ca2e8c502d626d42c8ff88c1b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/2762b06242602a0ca2e8c502d626d42c8ff88c1b/Dirac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13024,
4733,
12,
2890,
16,
4688,
734,
16,
2844,
812,
33,
7036,
16,
1188,
1447,
33,
8381,
4672,
3536,
1447,
7281,
358,
326,
3311,
1363,
848,
506,
14099,
358,
326,
5518,
578,
4041,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13024,
4733,
12,
2890,
16,
4688,
734,
16,
2844,
812,
33,
7036,
16,
1188,
1447,
33,
8381,
4672,
3536,
1447,
7281,
358,
326,
3311,
1363,
848,
506,
14099,
358,
326,
5518,
578,
4041,
487,
... |
if verbose: | if verbose and mode[0] != 'l': | def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open(infofilename, 'r').read() except IOError, msg: text = '{}' try: info = eval(text) except (SyntaxError, NameError): print 'Bad mirror info in %s' % infofilename info = {} subdirs = [] listing = [] if verbose: print 'Listing remote directory %s...' % pwd f.retrlines('LIST', listing.append) filesfound = [] for line in listing: if verbose > 1: print '-->', `line` if mac: # Mac listing has just filenames; # trailing / means subdirectory filename = string.strip(line) mode = '-' if filename[-1:] == '/': filename = filename[:-1] mode = 'd' infostuff = '' else: # Parse, assuming a UNIX listing words = string.split(line, None, 8) if len(words) < 6: if verbose > 1: print 'Skipping short line' continue filename = words[-1] if string.find(filename, " -> ") >= 0: if verbose > 1: print 'Skipping symbolic link %s' % \ filename continue infostuff = words[-5:-1] mode = words[0] skip = 0 for pat in skippats: if fnmatch(filename, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', filename skip = 1 break if skip: continue if mode[0] == 'd': if verbose > 1: print 'Remembering subdirectory', filename subdirs.append(filename) continue filesfound.append(filename) if info.has_key(filename) and info[filename] == infostuff: if verbose > 1: print 'Already have this version of', filename continue fullname = os.path.join(localdir, filename) tempname = os.path.join(localdir, '@'+filename) if interactive: doit = askabout('file', filename, pwd) if not doit: if not info.has_key(filename): info[filename] = 'Not retrieved' continue try: os.unlink(tempname) except os.error: pass try: fp = open(tempname, 'wb') except IOError, msg: print "Can't create %s: %s" % (tempname, str(msg)) continue if verbose: print 'Retrieving %s from %s as %s...' % \ (filename, pwd, fullname) if verbose: fp1 = LoggingFile(fp, 1024, sys.stdout) else: fp1 = fp t0 = time.time() try: f.retrbinary('RETR ' + filename, fp1.write, 8*1024) except ftplib.error_perm, msg: print msg t1 = time.time() bytes = fp.tell() fp.close() if fp1 != fp: fp1.close() try: os.unlink(fullname) except os.error: pass # Ignore the error try: os.rename(tempname, fullname) except os.error, msg: print "Can't rename %s to %s: %s" % (tempname, fullname, str(msg)) continue info[filename] = infostuff writedict(info, infofilename) if verbose: dt = t1 - t0 kbytes = bytes / 1024.0 print int(round(kbytes)), print 'Kbytes in', print int(round(dt)), print 'seconds', if t1 > t0: print '(~%d Kbytes/sec)' % \ int(round(kbytes/dt),) print # # Remove files from info that are no longer remote deletions = 0 for filename in info.keys(): if filename not in filesfound: if verbose: print "Removing obsolete info entry for", print filename, "in", localdir or "." del info[filename] deletions = deletions + 1 if deletions: writedict(info, infofilename) # # Remove local files that are no longer in the remote directory try: if not localdir: names = os.listdir(os.curdir) else: names = os.listdir(localdir) except os.error: names = [] for name in names: if name[0] == '.' or info.has_key(name) or name in subdirs: continue skip = 0 for pat in skippats: if fnmatch(name, pat): if verbose > 1: print 'Skip pattern', pat, print 'matches', name skip = 1 break if skip: continue fullname = os.path.join(localdir, name) if not rmok: if verbose: print 'Local file', fullname, print 'is no longer pertinent' continue if verbose: print 'Removing local file/dir', fullname remove(fullname) # # Recursively mirror subdirectories for subdir in subdirs: if interactive: doit = askabout('subdirectory', subdir, pwd) if not doit: continue if verbose: print 'Processing subdirectory', subdir localsubdir = os.path.join(localdir, subdir) pwd = f.pwd() if verbose > 1: print 'Remote directory now:', pwd print 'Remote cwd', subdir try: f.cwd(subdir) except ftplib.error_perm, msg: print "Can't chdir to", subdir, ":", msg else: if verbose: print 'Mirroring as', localsubdir mirrorsubdir(f, localsubdir) if verbose > 1: print 'Remote cwd ..' f.cwd('..') newpwd = f.pwd() if newpwd != pwd: print 'Ended up in wrong directory after cd + cd ..' print 'Giving up now.' break else: if verbose > 1: print 'OK.' | 177e24029a050d5f78171d466185e2fd80d527b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/177e24029a050d5f78171d466185e2fd80d527b6/ftpmirror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
471,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
471,
19... |
wx.Panel.SetWindowStyleFlag(self, style) | wx.PyPanel.SetWindowStyleFlag(self, style) | def SetWindowStyleFlag(self, style): """ Sets the L{FlatNotebook} window style flags. """ wx.Panel.SetWindowStyleFlag(self, style) renderer = self._pages._mgr.GetRenderer(self.GetWindowStyleFlag()) renderer._tabHeight = None | 3a0b1f421ffd09b66f7f6a99913173fbe0ebb517 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12725/3a0b1f421ffd09b66f7f6a99913173fbe0ebb517/flatnotebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
3829,
2885,
4678,
12,
2890,
16,
2154,
4672,
3536,
11511,
326,
511,
95,
16384,
19751,
97,
2742,
2154,
2943,
18,
3536,
225,
7075,
18,
9413,
5537,
18,
694,
3829,
2885,
4678,
12,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
3829,
2885,
4678,
12,
2890,
16,
2154,
4672,
3536,
11511,
326,
511,
95,
16384,
19751,
97,
2742,
2154,
2943,
18,
3536,
225,
7075,
18,
9413,
5537,
18,
694,
3829,
2885,
4678,
12,
2890,... |
result = fstr.safe_substitute(NAME=self.pprint_repr(f.name), DESCRIPTION=self.pprint_repr(f.description), CATEGORY=self.pprint_repr(f.category), DOC=self.pprint_repr(f.doc), INPUTS=self.pprint_repr(f.inputs), OUTPUTS=self.pprint_repr(f.outputs), ELT_FACTORY=self.pprint_repr(f.elt_factory), ELT_CONNECTIONS=self.pprint_repr(f.connections), ELT_DATA=self.pprint_repr(f.elt_data), ELT_VALUE=self.pprint_repr(f.elt_value), LAZY=self.pprint_repr(f.lazy), | result = fstr.safe_substitute(NAME=pprint_repr(f.name), DESCRIPTION=pprint_repr(f.description), CATEGORY=pprint_repr(f.category), DOC=pprint_repr(f.doc), INPUTS=pprint_repr(f.inputs), OUTPUTS=pprint_repr(f.outputs), ELT_FACTORY=pprint_repr(f.elt_factory), ELT_CONNECTIONS=pprint_repr(f.connections), ELT_DATA=pprint_repr(f.elt_data), ELT_VALUE=pprint_repr(f.elt_value), LAZY=pprint_repr(f.lazy), | def __repr__(self): """ Return the python string representation """ | 7fe5f722eda62264074d3197975bdb97b6505cbf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/7fe5f722eda62264074d3197975bdb97b6505cbf/compositenode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
2000,
326,
5790,
533,
4335,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
2000,
326,
5790,
533,
4335,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
% (t_bold, t_normal)) | % (t_bold, t_reset)) | def format_line(line, conflicts=conflicts): if line.startswith('C '): conflicts.append(line) return '%s%s%s' % (t_colour[12], line, t_reset) elif line.startswith('M '): return '%s%s%s' % (t_colour[10], line, t_reset) elif line.startswith('? '): return '%s%s%s' % (t_colour[8], line, t_reset) else: return line | eea98b0b4b51c9727bf260e66213669b8269f2e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/eea98b0b4b51c9727bf260e66213669b8269f2e4/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
1369,
12,
1369,
16,
14450,
33,
20340,
87,
4672,
309,
980,
18,
17514,
1918,
2668,
39,
296,
4672,
14450,
18,
6923,
12,
1369,
13,
327,
1995,
87,
9,
87,
9,
87,
11,
738,
261,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
1369,
12,
1369,
16,
14450,
33,
20340,
87,
4672,
309,
980,
18,
17514,
1918,
2668,
39,
296,
4672,
14450,
18,
6923,
12,
1369,
13,
327,
1995,
87,
9,
87,
9,
87,
11,
738,
261,
8... |
val = int(value.split(',')[1].split(',')[0].strip('(')) | default_val = int(value.split(',')[1].split(',')[0].strip('(')) | def set(self, cursor, user, name, model, res_id, val, context=None): """ Set property value for res_id """ model_field_obj = self.pool.get('ir.model.field') | 70a898af6d79d43cb4bc81eb74dcd15bf049afb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/70a898af6d79d43cb4bc81eb74dcd15bf049afb0/property.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
3347,
16,
729,
16,
508,
16,
938,
16,
400,
67,
350,
16,
1244,
16,
819,
33,
7036,
4672,
3536,
1000,
1272,
460,
364,
400,
67,
350,
3536,
938,
67,
1518,
67,
2603,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
3347,
16,
729,
16,
508,
16,
938,
16,
400,
67,
350,
16,
1244,
16,
819,
33,
7036,
4672,
3536,
1000,
1272,
460,
364,
400,
67,
350,
3536,
938,
67,
1518,
67,
2603,
27... |
self.vboxlayout_selfilter.setMargin(0) | self.vboxlayout_selfilter.setMargin(pmGrpBoxVboxLayoutMargin) | def ui_selectionFilter_GroupBox(self, MMKitDialog): #Start Selection Filter GroupBox self.selectionFilter_groupBox = QtGui.QGroupBox(MMKitDialog) self.selectionFilter_groupBox.setObjectName("selectionFilter_groupBox") self.selectionFilter_groupBox.setAutoFillBackground(True) palette = MMKitDialog.getGroupBoxPalette() self.selectionFilter_groupBox.setPalette(palette) styleSheet = MMKitDialog.getGroupBoxStyleSheet() self.selectionFilter_groupBox.setStyleSheet(styleSheet) self.hboxlayout_selfilter = QtGui.QHBoxLayout() self.hboxlayout_selfilter.setMargin(0) self.hboxlayout_selfilter.setSpacing(6) self.hboxlayout_selfilter.setObjectName("hboxlayout_selfilter") self.vboxlayout_selfilter = QtGui.QVBoxLayout(self.selectionFilter_groupBox) self.vboxlayout_selfilter.setMargin(0) self.vboxlayout_selfilter.setSpacing(6) self.vboxlayout_selfilter.setObjectName("vboxlayout_selfilter") | 025f56a97bb06f65e7eca6eb146078b276dd199e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/025f56a97bb06f65e7eca6eb146078b276dd199e/MMKitDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5915,
67,
10705,
1586,
67,
1114,
3514,
12,
2890,
16,
18295,
14102,
6353,
4672,
468,
1685,
12977,
4008,
3756,
3514,
365,
18,
10705,
1586,
67,
1655,
3514,
273,
23425,
18,
53,
1114,
3514,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5915,
67,
10705,
1586,
67,
1114,
3514,
12,
2890,
16,
18295,
14102,
6353,
4672,
468,
1685,
12977,
4008,
3756,
3514,
365,
18,
10705,
1586,
67,
1655,
3514,
273,
23425,
18,
53,
1114,
3514,
1... |
Block.objects.exclude(right_city=SHORT_NAME.upper()).exclude(left_city=SHORT_NAME.upper()).delete() | Block.objects.exclude(right_city=settings.SHORT_NAME.upper()).exclude(left_city=settings.SHORT_NAME.upper()).delete() | def update_block_numbers(): Block.objects.exclude(right_city=SHORT_NAME.upper()).exclude(left_city=SHORT_NAME.upper()).delete() for b in Block.objects.all(): (from_num, to_num) = make_block_numbers(b.left_from_num, b.left_to_num, b.right_from_num, b.right_to_num) if b.from_num != from_num and b.to_num != to_num: b.from_num = from_num b.to_num = to_num b.save() | 4cf41664f1cab2cac49f504dd1e5f107a11cf172 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10327/4cf41664f1cab2cac49f504dd1e5f107a11cf172/fix_block_numbers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2629,
67,
13851,
13332,
3914,
18,
6911,
18,
10157,
12,
4083,
67,
14240,
33,
4272,
18,
15993,
67,
1985,
18,
5797,
1435,
2934,
10157,
12,
4482,
67,
14240,
33,
4272,
18,
15993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
2629,
67,
13851,
13332,
3914,
18,
6911,
18,
10157,
12,
4083,
67,
14240,
33,
4272,
18,
15993,
67,
1985,
18,
5797,
1435,
2934,
10157,
12,
4482,
67,
14240,
33,
4272,
18,
15993,
... |
print "Latch [%s]"%(req.cur_tf.child_frame_id) | print "Latch [%s]/[%shz]"%(req.cur_tf.child_frame_id,req.freq) | def set_tf(self,req): print "Latch [%s]"%(req.cur_tf.child_frame_id) tf_sleep_time = 1.0/req.freq self.cur_tf[req.cur_tf.child_frame_id] = req.cur_tf self.publish_tf(req.cur_tf.child_frame_id) return SetDynamicTFResponse() | ea9e14e3ca28ad9d0b97605890c7b0cb874376b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7888/ea9e14e3ca28ad9d0b97605890c7b0cb874376b1/tf_publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6632,
12,
2890,
16,
3658,
4672,
1172,
315,
23463,
9799,
87,
18537,
14451,
674,
94,
4279,
17105,
3658,
18,
1397,
67,
6632,
18,
3624,
67,
3789,
67,
350,
16,
3658,
18,
10212,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6632,
12,
2890,
16,
3658,
4672,
1172,
315,
23463,
9799,
87,
18537,
14451,
674,
94,
4279,
17105,
3658,
18,
1397,
67,
6632,
18,
3624,
67,
3789,
67,
350,
16,
3658,
18,
10212,
13,... |
attributes = [attribute for attribute in attributes \ if hasattr(object, attribute)] | def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of unique attributes, including inherited, for object.""" attributes = [] dict = {} if not hasattrAlwaysReturnsTrue(object): # Add some attributes that don't always get picked up. If # they don't apply, they'll get filtered out at the end. attributes += ['__bases__', '__class__', '__dict__', '__name__', 'func_closure', 'func_code', 'func_defaults', 'func_dict', 'func_doc', 'func_globals', 'func_name'] if includeMagic: try: attributes += object._getAttributeNames() except: pass # Get all attribute names. attrdict = getAllAttributeNames(object) for attrlist in attrdict.values(): attributes += attrlist # Remove duplicates from the attribute list. for item in attributes: dict[item] = None attributes = dict.keys() # new-style swig wrappings can result in non-string attributes # e.g. ITK http://www.itk.org/ attributes = [attribute for attribute in attributes \ if type(attribute) == str] attributes.sort(lambda x, y: cmp(x.upper(), y.upper())) if not includeSingle: attributes = filter(lambda item: item[0]!='_' \ or item[1]=='_', attributes) if not includeDouble: attributes = filter(lambda item: item[:2]!='__', attributes) # Make sure we haven't picked up any bogus attributes somehow. attributes = [attribute for attribute in attributes \ if hasattr(object, attribute)] return attributes | 8d9be42a2821ffed248db455c4976a079e2fe2cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/8d9be42a2821ffed248db455c4976a079e2fe2cb/introspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4061,
1557,
12,
1612,
16,
2341,
19289,
33,
21,
16,
2341,
5281,
33,
21,
16,
2341,
5265,
33,
21,
4672,
3536,
990,
666,
434,
3089,
1677,
16,
6508,
12078,
16,
364,
733,
12123,
1677,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4061,
1557,
12,
1612,
16,
2341,
19289,
33,
21,
16,
2341,
5281,
33,
21,
16,
2341,
5265,
33,
21,
4672,
3536,
990,
666,
434,
3089,
1677,
16,
6508,
12078,
16,
364,
733,
12123,
1677,
273,
... | |
new_doc.childNodes[0].appendChild(lines) | new_doc.append(lines) | def _append_node(name, text): n = new_doc.createElement(name) t = new_doc.createTextNode(text) n.appendChild(t) config.appendChild(n) | 32aa89f603ce93d4388ce6f049f482862969ced9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/32aa89f603ce93d4388ce6f049f482862969ced9/custom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
394,
67,
2434,
18,
2640,
1046,
12,
529,
13,
268,
273,
394,
67,
2434,
18,
2640,
17299,
12,
955,
13,
290,
18,
6923,
1763,
12,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
394,
67,
2434,
18,
2640,
1046,
12,
529,
13,
268,
273,
394,
67,
2434,
18,
2640,
17299,
12,
955,
13,
290,
18,
6923,
1763,
12,
8... |
if self.valid( job.runningJob ) : | if self.valid( job.runningJob ) or objType == 'node': | def query(self, obj, service='', objType='node') : """ query status and eventually other scheduler related information """ # Can the check on objType be deprecated? ... talk with Giuseppe # the object passed is a Task: if type(obj) == Task : | 3e4422e8b47493dfc63c8923517b77387fe8d28e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/3e4422e8b47493dfc63c8923517b77387fe8d28e/SchedulerGLite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1081,
16,
1156,
2218,
2187,
30078,
2218,
2159,
6134,
294,
3536,
843,
1267,
471,
18011,
1308,
8129,
3746,
1779,
3536,
468,
4480,
326,
866,
603,
30078,
506,
6849,
35,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1081,
16,
1156,
2218,
2187,
30078,
2218,
2159,
6134,
294,
3536,
843,
1267,
471,
18011,
1308,
8129,
3746,
1779,
3536,
468,
4480,
326,
866,
603,
30078,
506,
6849,
35,
13... |
return str[len(prefix)] == sep and str[:len(prefix)] == prefix | scripts = { 'tinu_run_versions' : '''CREATE TABLE tinu_run_versions ( id INTEGER PRIMARY KEY AUTOINCREMENT, create_time INTEGER )''', 'tinu_summary' : '''CREATE TABLE tinu_summary ( run_id INTEGER REFERENCES tinu_run_versions(id) ON DELETE CASCADE, passed INTEGER, failed INTEGER, segfault INTEGER )''', 'tinu_messages' : '''CREATE TABLE tinu_messages ( run_id INTEGER REFERENCES tinu_run_versions(id) ON DELETE CASCADE, critical INTEGER, error INTEGER, warning INTEGER, notice INTEGER, info INTEGER, debug INTEGER )''', 'tinu_suites' : '''CREATE TABLE tinu_suites ( id INTEGER PRIMARY KEY AUTOINCREMENT, run_id INTEGER REFERENCES tinu_run_versions(id) ON DELETE CASCADE, name TEXT, result INTEGER, assert_passed INTEGER, assert_total INTEGER )''', 'tinu_tests' : '''CREATE TABLE tinu_tests ( id INTEGER PRIMARY KEY AUTOINCREMENT, suite_id INTEGER REFERENCES tinu_suites(id) ON DELETE CASCADE, name TEXT, result INTEGER, assert_passed INTEGER, assert_total INTEGER, run_time FLOAT )''' } | def is_prefix(str, prefix, sep = '.'): if len(str) <= len(prefix): return False return str[len(prefix)] == sep and str[:len(prefix)] == prefix | f809f388ba16b0d594155c0b3703be8316710995 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13126/f809f388ba16b0d594155c0b3703be8316710995/sqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
3239,
12,
701,
16,
1633,
16,
5478,
273,
2611,
4672,
309,
562,
12,
701,
13,
1648,
562,
12,
3239,
4672,
327,
1083,
225,
8873,
273,
288,
296,
88,
6860,
67,
2681,
67,
10169,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
67,
3239,
12,
701,
16,
1633,
16,
5478,
273,
2611,
4672,
309,
562,
12,
701,
13,
1648,
562,
12,
3239,
4672,
327,
1083,
225,
8873,
273,
288,
296,
88,
6860,
67,
2681,
67,
10169,
11,... |
def compare_to_sort(self, other_media): return self.compare_filename(other_media) | def get_date_taken(self): return self.get_datetime() | def compare_to_sort(self, other_media): return self.compare_filename(other_media) | 9579e648e4ad1b612154d0158eb22191dd83872c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4663/9579e648e4ad1b612154d0158eb22191dd83872c/sourcetree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
869,
67,
3804,
12,
2890,
16,
1308,
67,
5829,
4672,
327,
365,
18,
9877,
67,
3459,
12,
3011,
67,
5829,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
869,
67,
3804,
12,
2890,
16,
1308,
67,
5829,
4672,
327,
365,
18,
9877,
67,
3459,
12,
3011,
67,
5829,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
service_dir = os.path.dirname(sys.argv[0]) server_dir = os.path.split(service_dir)[0] server_path = os.path.join(server_dir, 'openerp-server.exe') self.terpprocess = subprocess.Popen([server_path], \ cwd=server_dir, creationflags=win32process.CREATE_NO_WINDOW) | service_dir = os.path.dirname(sys.argv[0]) server_dir = os.path.split(service_dir)[0] server_path = os.path.join(server_dir, 'openerp-server.exe') self.terpprocess = subprocess.Popen([server_path], cwd=server_dir, creationflags=win32process.CREATE_NO_WINDOW) | def StartTERP(self): | 262ca045dbaef82145f04cc8ee8db4582bce9c5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/262ca045dbaef82145f04cc8ee8db4582bce9c5f/OpenERPServerService.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
2560,
52,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
2560,
52,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def create_shortcut(self, cr, uid, values, context={}): | def create_shortcut(self, cr, uid, values, context=None): | def create_shortcut(self, cr, uid, values, context={}): dataobj = self.pool.get('ir.model.data') new_context = context.copy() for key in context: if key.startswith('default_'): del new_context[key] | 9dd8d6a482b3154fbd83d47d36e3bece67de416a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/9dd8d6a482b3154fbd83d47d36e3bece67de416a/ir_ui_menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
24744,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
819,
33,
7036,
4672,
501,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
394,
67,
2472,
273,
819,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
24744,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
819,
33,
7036,
4672,
501,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
394,
67,
2472,
273,
819,
... |
"""Completes a scan for available access points, and returns them in Iwscanresult format | """ Completes a scan for available access points, and returns them in Iwscanresult format. | def scan(self, fullscan=True): """Completes a scan for available access points, and returns them in Iwscanresult format fullscan: If False, data is read from a cache of the last scan If True, a scan is conducted, and then the data is read """ # By default everything is fine, do not wait result = 1 if fullscan: self.setScan() if self.errorflag > pythonwifi.flags.EPERM: errormsg = "setScan failure %s %s" % (str(self.errorflag), str(self.error)) raise RuntimeError(errormsg) return None elif self.errorflag < pythonwifi.flags.EPERM: # Permission was NOT denied, therefore we must WAIT to get results result = 250 while (result > 0): time.sleep(result/1000) result = self.getScan() if result < 0 or self.errorflag != 0: raise RuntimeError, 'getScan failure ' + str(self.errorflag) + " " + str(self.error) return self.aplist | 05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258/iwlibs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
12,
2890,
16,
1983,
9871,
33,
5510,
4672,
3536,
8359,
281,
279,
4135,
364,
2319,
2006,
3143,
16,
471,
1135,
2182,
316,
467,
91,
9871,
2088,
740,
18,
225,
1983,
9871,
30,
971,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4135,
12,
2890,
16,
1983,
9871,
33,
5510,
4672,
3536,
8359,
281,
279,
4135,
364,
2319,
2006,
3143,
16,
471,
1135,
2182,
316,
467,
91,
9871,
2088,
740,
18,
225,
1983,
9871,
30,
971,
108... |
def __init__(self,parent,id,label,url): | def __init__(self,parent,id,label,url,background=None): | def __init__(self,parent,id,label,url): wx.HyperlinkCtrl.__init__(self,parent,id,label,url) | 9ba3a023e7510312f20c9bccdc7fd95d158d37f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/9ba3a023e7510312f20c9bccdc7fd95d158d37f4/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
350,
16,
1925,
16,
718,
16,
9342,
33,
7036,
4672,
7075,
18,
15996,
1232,
12418,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
350,
16,
1925,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
16,
350,
16,
1925,
16,
718,
16,
9342,
33,
7036,
4672,
7075,
18,
15996,
1232,
12418,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
350,
16,
1925,
16,
... |
self.connected = 1 | self.connected = True | def __init__(self, sock=None, map=None): if map is None: self._map = socket_map else: self._map = map | f94fbfa5fad912cd8d3e8c9796714e413449545b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f94fbfa5fad912cd8d3e8c9796714e413449545b/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
33,
7036,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
365,
6315,
1458,
273,
2987,
67,
1458,
469,
30,
365,
6315,
1458,
273,
852,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7313,
33,
7036,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
365,
6315,
1458,
273,
2987,
67,
1458,
469,
30,
365,
6315,
1458,
273,
852,
2,
-100,
-10... |
"""Calculate the date the machine which emitted the packet booted using TCP timestamp | """Calculate the date the machine which emitted the packet booted using TCP timestamp | def pkt2uptime(pkt, HZ=100): """Calculate the date the machine which emitted the packet booted using TCP timestamp | bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984/p0f.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11536,
22,
3648,
494,
12,
5465,
88,
16,
670,
62,
33,
6625,
4672,
3536,
8695,
326,
1509,
326,
5228,
1492,
17826,
326,
4414,
4835,
329,
1450,
9911,
2858,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11536,
22,
3648,
494,
12,
5465,
88,
16,
670,
62,
33,
6625,
4672,
3536,
8695,
326,
1509,
326,
5228,
1492,
17826,
326,
4414,
4835,
329,
1450,
9911,
2858,
2,
-100,
-100,
-100,
-100,
-100,
... |
except: | except (KeyboardInterrupt, SystemExit): raise except Exception, err: | def recover(inp, outp, verbose=0, partial=0, force=0, pack=0): print 'Recovering', inp, 'into', outp if os.path.exists(outp) and not force: die("%s exists" % outp) file = open(inp, "rb") if file.read(4) != ZODB.FileStorage.packed_version: die("input is not a file storage") file.seek(0,2) file_size = file.tell() ofs = ZODB.FileStorage.FileStorage(outp, create=1) _ts = None ok = 1 prog1 = 0 preindex = {} undone = 0 pos = 4 while pos: try: npos, transaction = read_transaction_header(file, pos, file_size) except EOFError: break except: print "\n%s: %s\n" % sys.exc_info()[:2] if not verbose: progress(prog1) pos = scan(file, pos) continue if transaction is None: undone = undone + npos - pos pos = npos continue else: pos = npos tid = transaction.tid if _ts is None: _ts = TimeStamp(tid) else: t = TimeStamp(tid) if t <= _ts: if ok: print ('Time stamps out of order %s, %s' % (_ts, t)) ok = 0 _ts = t.laterThan(_ts) tid = `_ts` else: _ts = t if not ok: print ('Time stamps back in order %s' % (t)) ok = 1 if verbose: print 'begin', if verbose > 1: print sys.stdout.flush() ofs.tpc_begin(transaction, tid, transaction.status) if verbose: print 'begin', pos, _ts, if verbose > 1: print sys.stdout.flush() nrec = 0 try: for r in transaction: oid = r.oid if verbose > 1: print u64(oid), r.version, len(r.data) pre = preindex.get(oid) s = ofs.store(oid, pre, r.data, r.version, transaction) preindex[oid] = s nrec += 1 except: if partial and nrec: ofs._status = 'p' ofs.tpc_vote(transaction) ofs.tpc_finish(transaction) if verbose: print 'partial' else: ofs.tpc_abort(transaction) print "\n%s: %s\n" % sys.exc_info()[:2] if not verbose: progress(prog1) pos = scan(file, pos) else: ofs.tpc_vote(transaction) ofs.tpc_finish(transaction) if verbose: print 'finish' sys.stdout.flush() if not verbose: prog = pos * 20l / file_size while prog > prog1: prog1 = prog1 + 1 iprogress(prog1) bad = file_size - undone - ofs._pos print "\n%s bytes removed during recovery" % bad if undone: print "%s bytes of undone transaction data were skipped" % undone if pack is not None: print "Packing ..." from ZODB.referencesf import referencesf ofs.pack(pack, referencesf) ofs.close() | 9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814/fsrecover.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5910,
12,
31647,
16,
596,
84,
16,
3988,
33,
20,
16,
4702,
33,
20,
16,
2944,
33,
20,
16,
2298,
33,
20,
4672,
1172,
296,
27622,
310,
2187,
12789,
16,
296,
18591,
2187,
596,
84,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5910,
12,
31647,
16,
596,
84,
16,
3988,
33,
20,
16,
4702,
33,
20,
16,
2944,
33,
20,
16,
2298,
33,
20,
4672,
1172,
296,
27622,
310,
2187,
12789,
16,
296,
18591,
2187,
596,
84,
225,
... |
longOptList = ["help", "GMEMCEIL="] if len(sys.argv) == 1: usage() else: filename = sys.argv[1] sys.argv.pop(1) if string.find(filename, ".pqr") == -1: usage() | longOptList = ["help", "CFAC=", "SPACE=", "GMEMFAC=", "GMEMCEIL=", \ "OFAC=", "REDFAC=", "TFAC_ALPHA=", "TFAC_XEON=", "TFAC_ALPHA="] | def main(): import getopt filename = "" shortOptList = "" longOptList = ["help", "GMEMCEIL="] if len(sys.argv) == 1: usage() else: filename = sys.argv[1] sys.argv.pop(1) if string.find(filename, ".pqr") == -1: usage() try: opts, args = getopt.getopt(sys.argv[1:], shortOptList, longOptList) except getopt.GetoptError: usage() psize = Psize() for o, a in opts: if o == "--help": usage() if o == "--CFAC": psize.setConstant("CFAC", int(a)) if o == "--SPACE": psize.setConstant("SPACE", int(a)) if o == "--GMEMFAC": psize.setConstant("GMEMFAC", int(a)) if o == "--GMEMCEIL": psize.setConstant("GMEMCEIL", int(a)) if o == "--OFAC": psize.setConstant("OFAC", int(a)) if o == "--REDFAC": psize.setConstant("REDFAC", int(a)) if o == "--TFAC_ALPHA": psize.setConstant("TFAC_ALPHA", int(a)) if o == "--TFAC_XEON": psize.setConstant("TFAC_XEON", int(a)) if o == "--TFAC_SPARC": psize.setConstant("TFAC_SPARC", int(a)) psize.runPsize(filename) sys.stdout.write("Default constants used (./psize.py --help for more information):\n") sys.stdout.write("%s\n" % psize.constants) sys.stdout.write(psize.printResults()) | 6665cc764c783c9ecf9bd3ffa66639aeba8434c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8179/6665cc764c783c9ecf9bd3ffa66639aeba8434c0/psize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1930,
336,
3838,
1544,
273,
1408,
3025,
6179,
682,
273,
1408,
1525,
6179,
682,
273,
8247,
5201,
3113,
315,
39,
2046,
39,
1546,
16,
315,
6616,
1546,
16,
315,
43,
12286,
2046,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1930,
336,
3838,
1544,
273,
1408,
3025,
6179,
682,
273,
1408,
1525,
6179,
682,
273,
8247,
5201,
3113,
315,
39,
2046,
39,
1546,
16,
315,
6616,
1546,
16,
315,
43,
12286,
2046,... |
//a little timeout. | //a little timeout. Safari also has this problem. | def javascript(): s = async_lib() s+= r""" | c2aaa66812ebd6574ef2d6949428068ed58dba1b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c2aaa66812ebd6574ef2d6949428068ed58dba1b/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
4326,
67,
2941,
1435,
272,
15,
33,
436,
8395,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
4326,
67,
2941,
1435,
272,
15,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not handleInfoFile(dirpath, parts, ".fac", sceneryObject, authors): return | def handleFacade(dirpath, filename, libraryFileHandle, libraryPlaceholderFileHandle, facades, authors): objectSourcePath = os.path.join(dirpath, filename) parts = dirpath.split("/", 2) print "Handling facade: " + objectSourcePath # Create an instance of the SceneryObject class sceneryObject = classes.SceneryObject(parts[2], filename) # Set up paths and copy files if not copySupportFiles(dirpath, parts): return # Handle the info.txt file if not handleInfoFile(dirpath, parts, ".fac", sceneryObject, authors): return # Copy the facade file shutil.copyfile(objectSourcePath, os.path.join(classes.Configuration.osxFolder, parts[2], filename)) # Open the facade file = open(objectSourcePath, "rU") objectFileContents = file.readlines() file.close() # Define the regex patterns: texturePattern = re.compile("TEXTURE\s+(.*)") for line in objectFileContents: result = texturePattern.match(line) if result: textureFile = os.path.join(dirpath, result.group(1)) if (result.group(1) == ""): print " WARNING: Object specifies a blank texture - valid but may not be as intended" elif os.path.isfile(textureFile): shutil.copyfile(textureFile, os.path.join(classes.Configuration.osxFolder, parts[2], result.group(1))) break else: print " ERROR: Cannot find texture - object excluded (" + textureFile + ")" return # Facade is valid, append it to the list facades.append(sceneryObject) # Write to the library.txt file for virtualPath in sceneryObject.virtualPaths: libraryFileHandle.write("EXPORT opensceneryx/" + virtualPath + " " + sceneryObject.getFilePath() + "\n") libraryPlaceholderFileHandle.write("EXPORT_BACKUP opensceneryx/" + virtualPath + " opensceneryx/placeholder.fac\n") | 5d85d733c345934088eebd21200220a1ee2d66fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5176/5d85d733c345934088eebd21200220a1ee2d66fa/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12467,
12,
1214,
803,
16,
1544,
16,
5313,
812,
3259,
16,
5313,
14038,
812,
3259,
16,
5853,
16601,
16,
14494,
4672,
733,
1830,
743,
273,
1140,
18,
803,
18,
5701,
12,
1214,
803,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12467,
12,
1214,
803,
16,
1544,
16,
5313,
812,
3259,
16,
5313,
14038,
812,
3259,
16,
5853,
16601,
16,
14494,
4672,
733,
1830,
743,
273,
1140,
18,
803,
18,
5701,
12,
1214,
803,
16... | |
def __init__(self, logFile, ignoreStrings=[]): | def __init__(self, logFile, ignoreStrings=None): | def __init__(self, logFile, ignoreStrings=[]): if not logFile: raise Exception("No log file specified!") if not(os.path.exists(logFile)): raise Exception("Specified log file does not exist!") self.log = open(logFile, "r") self.ignore = [] for string in ignoreStrings: reg = re.compile(string) self.ignore.append(reg) self.simulationsList = None | c669adde24710f434b837da02218493181885817 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/c669adde24710f434b837da02218493181885817/simulationLogParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
20169,
16,
2305,
7957,
33,
7036,
4672,
309,
486,
20169,
30,
1002,
1185,
2932,
2279,
613,
585,
1269,
4442,
13,
225,
309,
486,
12,
538,
18,
803,
18,
1808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
20169,
16,
2305,
7957,
33,
7036,
4672,
309,
486,
20169,
30,
1002,
1185,
2932,
2279,
613,
585,
1269,
4442,
13,
225,
309,
486,
12,
538,
18,
803,
18,
1808,
... |
def install(self): sys.path.insert(0, self) | def install(self): sys.path.insert(0, self) | 84fc7ddb7a93f029d7ea47386fbacf965b511ab2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/84fc7ddb7a93f029d7ea47386fbacf965b511ab2/imputil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
2589,
18,
803,
18,
6387,
12,
20,
16,
365,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
2589,
18,
803,
18,
6387,
12,
20,
16,
365,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
class CWCmdLineTests(WCmdLineTests): | class CWCmdLineTests(BaseTest, WCmdLineTests): | def test_improper_input(self): # Uses the private _setoption() function to test the parsing # of command-line warning arguments with test_support.catch_warning(self.module): self.assertRaises(self.module._OptionError, self.module._setoption, '1:2:3:4:5:6') self.assertRaises(self.module._OptionError, self.module._setoption, 'bogus::Warning') self.assertRaises(self.module._OptionError, self.module._setoption, 'ignore:2::4:-5') self.module._setoption('error::Warning::0') self.assertRaises(UserWarning, self.module.warn, 'convert to error') | c234aa4a542d628a9341637977fc458f47a485ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/c234aa4a542d628a9341637977fc458f47a485ae/test_warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
381,
22754,
67,
2630,
12,
2890,
4672,
468,
14854,
326,
3238,
389,
542,
3482,
1435,
445,
358,
1842,
326,
5811,
468,
434,
1296,
17,
1369,
3436,
1775,
598,
1842,
67,
13261,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
381,
22754,
67,
2630,
12,
2890,
4672,
468,
14854,
326,
3238,
389,
542,
3482,
1435,
445,
358,
1842,
326,
5811,
468,
434,
1296,
17,
1369,
3436,
1775,
598,
1842,
67,
13261,
18,
... |
yield "<div class='%s unit %s' id='%s-%s'>" % (type, status, type, id) yield "<a href=\"javascript:handle('%s');\">" % id yield "<img id='img-%s' name='img-%s' alt='%s' src='%s' />" %(id, id, status, icon) yield "<div class='%s title'>%s</div></a>\n" % (type, title) yield "<div class='%s status %s'>%s</div>\n" % (type, status, status) yield "<div class='%s output' id='output-%s'>\n" % (type, id) | ret = "<div class='%s unit %s' id='%s-%s'>" % (type, status, type, id) ret += "<a href=\"javascript:handle('%s');\">" % id ret += "<img id='img-%s' name='img-%s' alt='%s' src='%s' />" %(id, id, status, icon) ret += "<div class='%s title'>%s</div></a>" % (type, title) ret += "<div class='%s status %s'>%s</div>" % (type, status, status) ret += "<div class='%s output' id='output-%s'>" % (type, id) | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.png' # trim leading and trailing whitespace output = output.strip() # note that we may be inside a <pre>, so we don't put any extra whitespace # in this html yield "<div class='%s unit %s' id='%s-%s'>" % (type, status, type, id) yield "<a href=\"javascript:handle('%s');\">" % id yield "<img id='img-%s' name='img-%s' alt='%s' src='%s' />" %(id, id, status, icon) yield "<div class='%s title'>%s</div></a>\n" % (type, title) yield "<div class='%s status %s'>%s</div>\n" % (type, status, status) yield "<div class='%s output' id='output-%s'>\n" % (type, id) if output and len(output): yield "<pre>%s</pre>\n" % (output) yield "</div></div>\n" | 6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1293,
3762,
2736,
67,
2620,
12,
723,
16,
2077,
16,
876,
16,
612,
16,
1267,
1546,
6,
4672,
3536,
7163,
1729,
364,
279,
9262,
2736,
2442,
225,
294,
891,
618,
30,
326,
6374,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1293,
3762,
2736,
67,
2620,
12,
723,
16,
2077,
16,
876,
16,
612,
16,
1267,
1546,
6,
4672,
3536,
7163,
1729,
364,
279,
9262,
2736,
2442,
225,
294,
891,
618,
30,
326,
6374,
6... |
self.model.editor.clearAllStepPoints() self.stackView.load_stack([]) | if hasattr(self.model, 'editor'): self.model.editor.clearAllStepPoints() self.stackView.load_stack([]) self.frame = None self.stopMainLoop() | def OnStop(self, event): wxPhonyApp.inMainLoop = false self.set_quit() self.model.editor.clearAllStepPoints() self.stackView.load_stack([]) | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4947,
12,
2890,
16,
871,
4672,
7075,
3731,
6598,
3371,
18,
267,
6376,
6452,
273,
629,
365,
18,
542,
67,
27176,
1435,
365,
18,
2284,
18,
9177,
18,
8507,
1595,
4160,
5636,
1435,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4947,
12,
2890,
16,
871,
4672,
7075,
3731,
6598,
3371,
18,
267,
6376,
6452,
273,
629,
365,
18,
542,
67,
27176,
1435,
365,
18,
2284,
18,
9177,
18,
8507,
1595,
4160,
5636,
1435,
36... |
hash ( | hash ( | def _skip_to_nonblank(f, spacegroup): """Read lines from f until a nonblank line not starting with a hash (#) is encountered and returns the line.""" while True: line = f.readline() if not line: raise SpacegroupNotFoundError( 'invalid spacegroup %s, not found in data base'%spacegroup) line.strip() if line and not line.startswith('#'): break return line | 6f4c55ef5b482e5dd9b72e728a5ba02ca06ab5d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/6f4c55ef5b482e5dd9b72e728a5ba02ca06ab5d6/spacegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7457,
67,
869,
67,
5836,
12111,
12,
74,
16,
3476,
1655,
4672,
3536,
1994,
2362,
628,
284,
3180,
279,
1661,
12111,
980,
486,
5023,
598,
279,
1651,
23885,
13,
353,
9919,
471,
1135,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7457,
67,
869,
67,
5836,
12111,
12,
74,
16,
3476,
1655,
4672,
3536,
1994,
2362,
628,
284,
3180,
279,
1661,
12111,
980,
486,
5023,
598,
279,
1651,
23885,
13,
353,
9919,
471,
1135,
... |
desc = split(__import__(modname).__doc__ or '', '\n')[0] | desc = split(freshimp(modname).__doc__ or '', '\n')[0] | def run(self, key, callback, completer=None): self.quit = 0 seen = {} | 2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
498,
16,
1348,
16,
31848,
33,
7036,
4672,
365,
18,
27176,
273,
374,
5881,
273,
2618,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
498,
16,
1348,
16,
31848,
33,
7036,
4672,
365,
18,
27176,
273,
374,
5881,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
]) .setName('expression') | ]) .setName('expression') | def _defineLanguageSyntax(self): ''' Here is Siml's BNF Creates the objects of the pyParsing library, that do all the work. ''' #define short alias so they don't clutter the text kw = self.defineKeyword # Usage: test = kw('variable') L = Literal # Usage: L('+') S = Suppress ES = ErrStop | 8d423a3a49fcffb9fd2045c1638eeede3472d2e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2720/8d423a3a49fcffb9fd2045c1638eeede3472d2e1/simlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11255,
3779,
8070,
12,
2890,
4672,
9163,
13743,
353,
9587,
80,
1807,
605,
26473,
10210,
326,
2184,
434,
326,
2395,
13963,
5313,
16,
716,
741,
777,
326,
1440,
18,
9163,
468,
11255,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11255,
3779,
8070,
12,
2890,
4672,
9163,
13743,
353,
9587,
80,
1807,
605,
26473,
10210,
326,
2184,
434,
326,
2395,
13963,
5313,
16,
716,
741,
777,
326,
1440,
18,
9163,
468,
11255,
3... |
<InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>)), | <InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>), {}), | def test_w_for_factory(): """ >>> context = Context() >>> addMenuItem(context, for_=IX, factory="x.y.z", title="Add an X", ... permission="zope.ManageContent", description="blah blah", ... filter="context/foo") >>> context ((None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>)), (('adapter', (<InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X'), <function handler>, ('registerAdapter', <zope.app.publisher.browser.menumeta.MenuItemFactory object>, (<InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X', '')), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>)), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>)), (None, <function provideInterface>, ('', <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>))) """ | a9a3a1a5c0e09bd96df2bc32787c0f82fca1e8b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9523/a9a3a1a5c0e09bd96df2bc32787c0f82fca1e8b4/test_addMenuItem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
91,
67,
1884,
67,
6848,
13332,
3536,
4080,
819,
273,
1772,
1435,
4080,
527,
12958,
12,
2472,
16,
364,
67,
33,
12507,
16,
3272,
1546,
92,
18,
93,
18,
94,
3113,
2077,
1546,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
91,
67,
1884,
67,
6848,
13332,
3536,
4080,
819,
273,
1772,
1435,
4080,
527,
12958,
12,
2472,
16,
364,
67,
33,
12507,
16,
3272,
1546,
92,
18,
93,
18,
94,
3113,
2077,
1546,
9... |
self.copy_file(name, outfile, preserve_mode = 0) | self.copy_file(os.path.join(package_dir, name), outfile, preserve_mode = 0) | def run(self): # Copies all .py files, then also copies the txt and gif files build_py.run(self) assert self.packages == [idlelib] for name in txt_files: outfile = self.get_plain_outfile(self.build_lib, [idlelib], name) dir = os.path.dirname(outfile) self.mkpath(dir) self.copy_file(name, outfile, preserve_mode = 0) for name in Icons: outfile = self.get_plain_outfile(self.build_lib, [idlelib,"Icons"], name) dir = os.path.dirname(outfile) self.mkpath(dir) self.copy_file(os.path.join("Icons",name), outfile, preserve_mode = 0) | 448165dc450c349b1322045e675e20df1d0322e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/448165dc450c349b1322045e675e20df1d0322e4/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
28506,
606,
777,
263,
2074,
1390,
16,
1508,
2546,
13200,
326,
6463,
471,
27618,
1390,
1361,
67,
2074,
18,
2681,
12,
2890,
13,
1815,
365,
18,
10308,
422,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
468,
28506,
606,
777,
263,
2074,
1390,
16,
1508,
2546,
13200,
326,
6463,
471,
27618,
1390,
1361,
67,
2074,
18,
2681,
12,
2890,
13,
1815,
365,
18,
10308,
422,
306,
... |
data = [unanswered[0]] data += [i[1] for i in per_choice] | data = [i[1] for i in per_choice] data.append(unanswered[1]) | def render(self, answers): """Render statistics as HTML code""" total, answered, unanswered, per_choice = self.calculate(self.question, answers) chart = pygooglechart.PieChart3D(600, 170) data = [unanswered[0]] data += [i[1] for i in per_choice] chart.add_data(data) legend = ['No choice'] # TODO translate 'No choice' legend.extend(self.question.choices) chart.set_pie_labels(legend) # chart.set_colours(['303020', '3030f0']) return self.page(question=self.question, chart_url=chart.get_url()) | 5762cdb4c194bd459723a00b15de1e457a8e66b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/5762cdb4c194bd459723a00b15de1e457a8e66b4/MultipleChoicePieChartStatistics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
12415,
4672,
3536,
3420,
7691,
487,
3982,
981,
8395,
2078,
16,
5803,
329,
16,
640,
13490,
329,
16,
1534,
67,
11569,
273,
365,
18,
11162,
12,
2890,
18,
4173,
16,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
12415,
4672,
3536,
3420,
7691,
487,
3982,
981,
8395,
2078,
16,
5803,
329,
16,
640,
13490,
329,
16,
1534,
67,
11569,
273,
365,
18,
11162,
12,
2890,
18,
4173,
16,
124... |
This is similar to getallmatchingheaders, but it returns only the first matching header (and its continuation lines). | This is similar to getallmatchingheaders, but it returns only the first matching header (and its continuation lines). | def getfirstmatchingheader(self, name): """Get the first header line matching name. | b6f6fad5b96d38181611f28a27ba278b112ea9c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b6f6fad5b96d38181611f28a27ba278b112ea9c9/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3645,
16271,
3374,
12,
2890,
16,
508,
4672,
3536,
967,
326,
1122,
1446,
980,
3607,
508,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3645,
16271,
3374,
12,
2890,
16,
508,
4672,
3536,
967,
326,
1122,
1446,
980,
3607,
508,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
import ArrayPrinter | def __import__(*args, **kws): arg = args[0] print >>sys.stderr, "about to import " + arg # helps determine which module had the problem return _old_import(*args, **kws) | b128a3e33d34c4973ef3c73f191ef346245b4c5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/b128a3e33d34c4973ef3c73f191ef346245b4c5e/all_mac_imports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
972,
30857,
1968,
16,
2826,
79,
4749,
4672,
1501,
273,
833,
63,
20,
65,
1172,
1671,
9499,
18,
11241,
16,
315,
21071,
358,
1930,
315,
397,
1501,
468,
21814,
4199,
1492,
1605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5666,
972,
30857,
1968,
16,
2826,
79,
4749,
4672,
1501,
273,
833,
63,
20,
65,
1172,
1671,
9499,
18,
11241,
16,
315,
21071,
358,
1930,
315,
397,
1501,
468,
21814,
4199,
1492,
1605,
... | |
this = apply(_quickfix.new_MinPriceIncrement, args) | this = _quickfix.new_MinPriceIncrement(*args) | def __init__(self, *args): this = apply(_quickfix.new_MinPriceIncrement, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2930,
5147,
10798,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2930,
5147,
10798,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
lineno: current line number of line | def _GetPlatformUpdateAction(self, line, lineno, tests, platform): """Check the platform option and return the action needs to be taken. | 211a3ffcbe86cd75b6c6053d87df43b574b52ab2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/211a3ffcbe86cd75b6c6053d87df43b574b52ab2/test_expectations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
8201,
1891,
1803,
12,
2890,
16,
980,
16,
7586,
16,
7434,
16,
4072,
4672,
3536,
1564,
326,
4072,
1456,
471,
327,
326,
1301,
4260,
358,
506,
9830,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
8201,
1891,
1803,
12,
2890,
16,
980,
16,
7586,
16,
7434,
16,
4072,
4672,
3536,
1564,
326,
4072,
1456,
471,
327,
326,
1301,
4260,
358,
506,
9830,
18,
2,
-100,
-100,
-100,
-100... | |
gdal_ds = self.layer.parent.get_dataset() | gdal_ds = self.layer.get_dataset() | def create_imageinfo(self): iipane = gtk.VBox(spacing=10) iipane.set_border_width(10) self.notebook.append_page( iipane, gtk.Label('Image Info') ) | 0a9f3291528240d019f1755ce071bd15e36e112d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/0a9f3291528240d019f1755ce071bd15e36e112d/gvrasterpropdlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2730,
1376,
12,
2890,
4672,
277,
625,
8806,
273,
22718,
18,
58,
3514,
12,
14080,
33,
2163,
13,
277,
625,
8806,
18,
542,
67,
8815,
67,
2819,
12,
2163,
13,
365,
18,
24422,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2730,
1376,
12,
2890,
4672,
277,
625,
8806,
273,
22718,
18,
58,
3514,
12,
14080,
33,
2163,
13,
277,
625,
8806,
18,
542,
67,
8815,
67,
2819,
12,
2163,
13,
365,
18,
24422,
18,... |
r'Software\\Microsoft\\VisualStudio\\' + version + '\\' + key_suffix ) | 'Software\\Microsoft\\VisualStudio\\' + version + '\\' + key_suffix ) | def get_visualstudio8_suites(version = '8.0'): """ Returns a sorted list of all installed Visual Studio 2005 suites found in the registry. The highest version should be the first entry in the list. """ suites = [] # Detect Standard, Professional and Team edition try: idk = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, r'Software\\Microsoft\\VisualStudio\\' + version) id = SCons.Util.RegQueryValueEx(idk, 'InstallDir') editions = { 'PRO': r'Setup\VS\Pro' } # ToDo: add standard and team editions edition_name = 'STD' for name, key_suffix in editions.items(): try: idk = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, r'Software\\Microsoft\\VisualStudio\\' + version + '\\' + key_suffix ) edition_name = name except SCons.Util.RegError: pass suites.append(edition_name) except SCons.Util.RegError: pass # Detect Express edition try: idk = SCons.Util.RegOpenKeyEx(SCons.Util.HKEY_LOCAL_MACHINE, r'Software\\Microsoft\\VCExpress\\' + version) id = SCons.Util.RegQueryValueEx(idk, 'InstallDir') suites.append('EXPRESS') except SCons.Util.RegError: pass return suites | b0f2ea3adf6bc7a051d46942cf2c0e96c1cbe2bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6357/b0f2ea3adf6bc7a051d46942cf2c0e96c1cbe2bf/msvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26671,
334,
4484,
28,
67,
26560,
2997,
12,
1589,
273,
296,
28,
18,
20,
11,
4672,
3536,
2860,
279,
3115,
666,
434,
777,
5876,
26832,
934,
4484,
4044,
25,
27208,
1392,
316,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26671,
334,
4484,
28,
67,
26560,
2997,
12,
1589,
273,
296,
28,
18,
20,
11,
4672,
3536,
2860,
279,
3115,
666,
434,
777,
5876,
26832,
934,
4484,
4044,
25,
27208,
1392,
316,
326,... |
return 'images/icons/projects/%s' % uuid.uuid4().hex | return 'images/icons/projects/%s.png' % uuid.uuid4().hex | def get_icon_path(instance, filename): # MEDIA_ROOT is prefixed automatically. return 'images/icons/projects/%s' % uuid.uuid4().hex | cab5c4b60216cd601460662bf4833d84e476f6eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/cab5c4b60216cd601460662bf4833d84e476f6eb/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3950,
67,
803,
12,
1336,
16,
1544,
4672,
468,
26312,
67,
9185,
353,
12829,
6635,
18,
327,
296,
7369,
19,
14516,
19,
13582,
5258,
87,
11,
738,
3822,
18,
7080,
24,
7675,
7118,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3950,
67,
803,
12,
1336,
16,
1544,
4672,
468,
26312,
67,
9185,
353,
12829,
6635,
18,
327,
296,
7369,
19,
14516,
19,
13582,
5258,
87,
11,
738,
3822,
18,
7080,
24,
7675,
7118,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.