rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
_dirname_field = 'dirname' else: _dirname_field = 'name' name_for = obj._name.split('.')[-1] | _dirname_field = 'dirname' name_for = obj._name.split('.')[-1] | def _child_get(self, nodename=False): if self.type not in ('collection','database'): return [] res = self.directory_list_for_child(nodename) result= map(lambda x: node_class(self.cr, self.uid, self.path+'/'+x.name, x, x.type=='directory' and self.object2 or False, context=self.context, root=self.root), res) if self.typ... | d05bfafb5145c24561f9040bb39dba1d10318ea6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d05bfafb5145c24561f9040bb39dba1d10318ea6/document.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
14003,
1069,
33,
8381,
4672,
309,
365,
18,
723,
486,
316,
7707,
5548,
17023,
6231,
11,
4672,
327,
5378,
400,
273,
365,
18,
5149,
67,
1098,
67,
1884,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3624,
67,
588,
12,
2890,
16,
14003,
1069,
33,
8381,
4672,
309,
365,
18,
723,
486,
316,
7707,
5548,
17023,
6231,
11,
4672,
327,
5378,
400,
273,
365,
18,
5149,
67,
1098,
67,
1884,
... |
otherwise append value as a new row. | otherwise append value as a new row. Note: value.process_id need not equal key. | def __setitem__(self, key, value): """ If a row has proces ID equal to key, replace it with value, otherwise append value as a new row. """ for i in range(len(self)): if self.rows[i].process_id == key: self.rows[i] = value return self.appendRow(value) | 68f3f91e703183aa282de0c00a66accba7437755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/68f3f91e703183aa282de0c00a66accba7437755/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
3536,
971,
279,
1027,
711,
450,
764,
1599,
3959,
358,
498,
16,
1453,
518,
598,
460,
16,
3541,
714,
460,
487,
279,
394,
1027,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
3536,
971,
279,
1027,
711,
450,
764,
1599,
3959,
358,
498,
16,
1453,
518,
598,
460,
16,
3541,
714,
460,
487,
279,
394,
1027,
1... |
return Eval('AddStrucMember(%d, "%s", %d, %d, %d, %d, %d, %d, %d);' % (sid, name, offset, flag, typeid, nbytes, | return Eval('AddStrucMember(%d, "%s", %d, %d, %d, %d, %d, %d, %d);' % (sid, name, offset, flag, typeid, nbytes, | def AddStrucMember(sid, name, offset, flag, typeid, nbytes, target=-1, tdelta=0, reftype=REF_OFF32): """ Add structure member @param sid: structure type ID @param name: name of the new member @param offset: offset of the new member -1 means to add at the end of the structure @param flag: type of the new member. Should... | 486fd3a57b65bc452ce1f58a6fb03fdd6bf07745 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3410/486fd3a57b65bc452ce1f58a6fb03fdd6bf07745/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
1585,
5286,
4419,
12,
7453,
16,
508,
16,
1384,
16,
2982,
16,
618,
350,
16,
26689,
16,
1018,
29711,
21,
16,
268,
9878,
33,
20,
16,
1278,
723,
33,
10771,
67,
8797,
1578,
4672,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
1585,
5286,
4419,
12,
7453,
16,
508,
16,
1384,
16,
2982,
16,
618,
350,
16,
26689,
16,
1018,
29711,
21,
16,
268,
9878,
33,
20,
16,
1278,
723,
33,
10771,
67,
8797,
1578,
4672,
35... |
cookies = self.cookies(environ, mobile="false") | cookies = self.cookies(environ, mobile="true") | def __call__(self, environ, start_response): cookies = self.cookies(environ, mobile="false") # delegate to mobile app when cookie mobile is set to true. if cookies.mobile == "true" or self.is_mobile_device(environ): return mobile_wsgi_app(environ, start_response) else: return self.wsgi_app(environ, start_response) | 6dc0c4addbf7702eec35d6a49f21e2ef32abf76f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/6dc0c4addbf7702eec35d6a49f21e2ef32abf76f/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
7237,
273,
365,
18,
16240,
12,
28684,
16,
13411,
1546,
3767,
7923,
468,
7152,
358,
13411,
595,
1347,
3878,
13411,
353,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
7237,
273,
365,
18,
16240,
12,
28684,
16,
13411,
1546,
3767,
7923,
468,
7152,
358,
13411,
595,
1347,
3878,
13411,
353,
444,
... |
pkg = package.RpmPackage(config, source, verify, strict, hdronly, db) | pkg = package.RpmPackage(config, source, verify, hdronly, db) | def readRpmPackage(config, source, verify=None, strict=None, hdronly=None, db=None, tags=None): """Read RPM package from source and close it. tags, if defined, specifies tags to load. Raise ValueError on invalid data, IOError.""" pkg = package.RpmPackage(config, source, verify, strict, hdronly, db) pkg.read(tags=tag... | f05014977f556638c73a5f4dcc5f0916db25a21e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/f05014977f556638c73a5f4dcc5f0916db25a21e/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
54,
7755,
2261,
12,
1425,
16,
1084,
16,
3929,
33,
7036,
16,
5490,
33,
7036,
16,
15921,
1949,
715,
33,
7036,
16,
1319,
33,
7036,
16,
2342,
33,
7036,
4672,
3536,
1994,
534,
12728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
54,
7755,
2261,
12,
1425,
16,
1084,
16,
3929,
33,
7036,
16,
5490,
33,
7036,
16,
15921,
1949,
715,
33,
7036,
16,
1319,
33,
7036,
16,
2342,
33,
7036,
4672,
3536,
1994,
534,
12728,
... |
print i.lineno, i.text, | pass | def printError(nav, *misc): """Print error associated with a given file; avoid printing duplicates""" if nav.fname: silenceValue = ' '.join(map(str, misc)) if nav.fname not in silenceErrors: print >>sys.stderr, nav.fname silenceErrors[nav.fname] = set() elif silenceValue in silenceErrors[nav.fname]: return # do not pri... | 865ca7d7a7eda3861a541f720cc7928347bac983 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9355/865ca7d7a7eda3861a541f720cc7928347bac983/wmliterator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
668,
12,
11589,
16,
380,
23667,
4672,
3536,
5108,
555,
3627,
598,
279,
864,
585,
31,
4543,
19171,
11211,
8395,
309,
8775,
18,
12749,
30,
31468,
620,
273,
296,
2418,
5701,
12,
1458,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
668,
12,
11589,
16,
380,
23667,
4672,
3536,
5108,
555,
3627,
598,
279,
864,
585,
31,
4543,
19171,
11211,
8395,
309,
8775,
18,
12749,
30,
31468,
620,
273,
296,
2418,
5701,
12,
1458,... |
for mem in self.cells.column(column): | for mem in self._cells.column(column): | def disable_widget(self, row=None, column=None): Container.disable_widget(self) if row != None and column != None: if self.cells[column, row]: self.cells[column, row].disable_widget() elif row != None: for mem in self.cells.row(row): if mem: mem.disable_widget() elif column != None: for mem in self.cells.column(column)... | 662fb650fe03bef79dfed18e63f89b71da14e59a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/662fb650fe03bef79dfed18e63f89b71da14e59a/layout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4056,
67,
6587,
12,
2890,
16,
1027,
33,
7036,
16,
1057,
33,
7036,
4672,
4039,
18,
8394,
67,
6587,
12,
2890,
13,
309,
1027,
480,
599,
471,
1057,
480,
599,
30,
309,
365,
18,
14741,
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,
4056,
67,
6587,
12,
2890,
16,
1027,
33,
7036,
16,
1057,
33,
7036,
4672,
4039,
18,
8394,
67,
6587,
12,
2890,
13,
309,
1027,
480,
599,
471,
1057,
480,
599,
30,
309,
365,
18,
14741,
63,... |
except Exception, err: raise xmlrpclib.Fault(104, 'Error in call: %s' %err) | except Exception, err: raise xmlrpclib.Fault(104, 'Error in call: %s' %err) | def _dispatch(self, method_name_unicode, args): method_name = str(method_name_unicode) try: method = api_method_dict[method_name] except KeyError: api_method_list = api_method_dict.keys() api_method_list.sort() raise xmlrpclib.Fault(100, 'Invalid API method %s. Valid choices are %s' % \ (method_name, ', '.join(api_met... | 0c25694725cfc416cacf435e83541629d4f7c911 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6995/0c25694725cfc416cacf435e83541629d4f7c911/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
707,
67,
529,
67,
9124,
16,
833,
4672,
707,
67,
529,
273,
609,
12,
2039,
67,
529,
67,
9124,
13,
775,
30,
707,
273,
1536,
67,
2039,
67,
1576,
63,
2039,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
707,
67,
529,
67,
9124,
16,
833,
4672,
707,
67,
529,
273,
609,
12,
2039,
67,
529,
67,
9124,
13,
775,
30,
707,
273,
1536,
67,
2039,
67,
1576,
63,
2039,
67,... |
msg = self._set_error(cr, uid, self.server[serverid]['id']) if (not self.server[serverid]['code'] and msg!='server_not_confirm') or (self.server[serverid]['code'] and msg in error_msg.keys()) : pooler.get_pool(cr.dbname).get('email.smtpclient.history').create \ (cr, uid, {'date_create':time.strftime('%Y-%m-%d %H:%M:%... | def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid) msg = self._set_error(cr, uid, self.server[serverid]['id']) | e7d99963b015b563bad2cb7e7fb95792c2acc1ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/e7d99963b015b563bad2cb7e7fb95792c2acc1ad/smtpclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8705,
67,
3652,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
358,
3652,
16,
1842,
33,
8381,
16,
981,
33,
8381,
4672,
225,
1438,
350,
273,
3258,
63,
20,
65,
365,
18,
3190,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8705,
67,
3652,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
358,
3652,
16,
1842,
33,
8381,
16,
981,
33,
8381,
4672,
225,
1438,
350,
273,
3258,
63,
20,
65,
365,
18,
3190,
... | |
v = pari.primes_up_to_n(stop-1) | try: v = pari.primes_up_to_n(stop-1) except OverflowError: return list(primes(start, stop)) | def prime_range(start, stop=None, leave_pari=False): r""" List of all primes between start and stop-1, inclusive. If the second argument is omitted, returns the primes up to the first argument. Use this function when both start and stop are not too large, since in all cases this function makes a table of primes up to... | 4e51b551112a041327d57334649dc279d2444b09 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4e51b551112a041327d57334649dc279d2444b09/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17014,
67,
3676,
12,
1937,
16,
2132,
33,
7036,
16,
8851,
67,
1065,
77,
33,
8381,
4672,
436,
8395,
987,
434,
777,
846,
4485,
3086,
787,
471,
2132,
17,
21,
16,
13562,
18,
225,
971,
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,
17014,
67,
3676,
12,
1937,
16,
2132,
33,
7036,
16,
8851,
67,
1065,
77,
33,
8381,
4672,
436,
8395,
987,
434,
777,
846,
4485,
3086,
787,
471,
2132,
17,
21,
16,
13562,
18,
225,
971,
326... |
return '<html><body bgcolor="white"><font color="black">%s</font></body></html>'%text | return '<font color=" | def html(text): text=string.replace(text,'"','"') text=string.replace(text,'&','&') text=string.replace(text,'<','<') text=string.replace(text,'>','>') text=string.replace(text,"\n","<br>") return '<html><body bgcolor="white"><font color="black">%s</font></body></html>'%text | 28bdb79aea86d6e01d931782373667889a8023b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/28bdb79aea86d6e01d931782373667889a8023b2/tocsupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
12,
955,
4672,
977,
33,
1080,
18,
2079,
12,
955,
16,
4970,
17023,
18642,
5026,
4359,
13,
977,
33,
1080,
18,
2079,
12,
955,
11189,
10,
931,
31,
17023,
10,
6134,
977,
33,
1080,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1729,
12,
955,
4672,
977,
33,
1080,
18,
2079,
12,
955,
16,
4970,
17023,
18642,
5026,
4359,
13,
977,
33,
1080,
18,
2079,
12,
955,
11189,
10,
931,
31,
17023,
10,
6134,
977,
33,
1080,
1... |
return ret | return ret | def _wordinfoget(self, word): ret = self.wordinfo.get(word) if not ret: r = self.db.get(word) if r: ret = self.WordInfoClass() ret.__setstate__(r) self.wordinfo[word] = ret return ret | 8934bf213d00c110950d4b6e2a67eb5506e39aed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/8934bf213d00c110950d4b6e2a67eb5506e39aed/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1095,
1376,
588,
12,
2890,
16,
2076,
4672,
325,
273,
365,
18,
1095,
1376,
18,
588,
12,
1095,
13,
309,
486,
325,
30,
436,
273,
365,
18,
1966,
18,
588,
12,
1095,
13,
309,
436,
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,
1095,
1376,
588,
12,
2890,
16,
2076,
4672,
325,
273,
365,
18,
1095,
1376,
18,
588,
12,
1095,
13,
309,
486,
325,
30,
436,
273,
365,
18,
1966,
18,
588,
12,
1095,
13,
309,
436,
3... |
if verbose: print "compiling string with syntax error" | def test_complex_args(self): | exec 'def f(a, a): pass' | cfaee582698839a2f4c5a779f9a4b3f30c7efa67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cfaee582698839a2f4c5a779f9a4b3f30c7efa67/test_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1196,
296,
536,
284,
12,
69,
16,
279,
4672,
1342,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1196,
296,
536,
284,
12,
69,
16,
279,
4672,
1342,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
assert self.__gamma_kbar > 0 and self.__gamma_kbar < 1, \ | assert self.__gamma_kbar >= 0 and self.__gamma_kbar < 1, \ | def __init__(self, kbar, m0, sigma, gamma_kbar, b): """ INPUT: kbar -- positive integer m0 -- float with 0 <= m0 <= 2 sigma -- positive float gamma_kbar -- float with 0 < gamma_kbar < 1 b -- float > 1 | 17f3c572c4264e18952ca4b2260d0e71eb890ac1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/17f3c572c4264e18952ca4b2260d0e71eb890ac1/markov_multifractal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
417,
3215,
16,
312,
20,
16,
7299,
16,
9601,
67,
79,
3215,
16,
324,
4672,
3536,
12943,
30,
417,
3215,
282,
1493,
6895,
3571,
312,
20,
377,
1493,
1431,
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,
1001,
2738,
972,
12,
2890,
16,
417,
3215,
16,
312,
20,
16,
7299,
16,
9601,
67,
79,
3215,
16,
324,
4672,
3536,
12943,
30,
417,
3215,
282,
1493,
6895,
3571,
312,
20,
377,
1493,
1431,
5... |
def resource_isdir(self,name): | def resource_isdir(self,resource_name): | def resource_isdir(self,name): return self._isdir(self._fn(self.module_path, resource_name)) | 29e3a5517beac5b384354f5f46f605022a1be2eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/29e3a5517beac5b384354f5f46f605022a1be2eb/pkg_resources.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1058,
67,
291,
1214,
12,
2890,
16,
3146,
67,
529,
4672,
327,
365,
6315,
291,
1214,
12,
2890,
6315,
4293,
12,
2890,
18,
2978,
67,
803,
16,
1058,
67,
529,
3719,
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,
1,
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,
1058,
67,
291,
1214,
12,
2890,
16,
3146,
67,
529,
4672,
327,
365,
6315,
291,
1214,
12,
2890,
6315,
4293,
12,
2890,
18,
2978,
67,
803,
16,
1058,
67,
529,
3719,
2,
-100,
-100,
-100,
-1... |
header = "\033[01;32m" | header = "\033[01;32m\n" | def update(self, index, left_score, rigt_score, valid): global g_max_sub | 1a0845aae3a4d151cacc187ac0ea10dd21a91b1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/1a0845aae3a4d151cacc187ac0ea10dd21a91b1f/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
770,
16,
2002,
67,
6355,
16,
436,
360,
88,
67,
6355,
16,
923,
4672,
2552,
314,
67,
1896,
67,
1717,
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,
1089,
12,
2890,
16,
770,
16,
2002,
67,
6355,
16,
436,
360,
88,
67,
6355,
16,
923,
4672,
2552,
314,
67,
1896,
67,
1717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.lines: | if self.lines and self._cur_line is None: | def reopenCurrentLine(self): if self.lines: self._cur_line = self.lines[-1] | 5d2eefc042f1fcbcae28d9c4fe65326e0f207f37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7434/5d2eefc042f1fcbcae28d9c4fe65326e0f207f37/mgp2pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31563,
3935,
1670,
12,
2890,
4672,
309,
365,
18,
3548,
471,
365,
6315,
1397,
67,
1369,
353,
599,
30,
365,
6315,
1397,
67,
1369,
273,
365,
18,
3548,
18919,
21,
65,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31563,
3935,
1670,
12,
2890,
4672,
309,
365,
18,
3548,
471,
365,
6315,
1397,
67,
1369,
353,
599,
30,
365,
6315,
1397,
67,
1369,
273,
365,
18,
3548,
18919,
21,
65,
2,
-100,
-100,
-100,
... |
dkey = _winreg.OpenKeyEx( key, 'Dynamic DST' ) | dkey = _winreg.OpenKeyEx(key, 'Dynamic DST') | def _LoadDynamicInfoFromKey( self, key ): try: dkey = _winreg.OpenKeyEx( key, 'Dynamic DST' ) except WindowsError: return info = _RegKeyDict( dkey ) del info['FirstEntry'] del info['LastEntry'] years = map( int, info.keys() ) values = map( WinTZI, info.values() ) # create a range mapping that searches by descending yea... | 59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2563,
9791,
966,
1265,
653,
12,
365,
16,
498,
262,
30,
775,
30,
302,
856,
273,
389,
8082,
1574,
18,
3678,
653,
424,
12,
856,
16,
296,
9791,
463,
882,
6134,
1335,
8202,
668,
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,
389,
2563,
9791,
966,
1265,
653,
12,
365,
16,
498,
262,
30,
775,
30,
302,
856,
273,
389,
8082,
1574,
18,
3678,
653,
424,
12,
856,
16,
296,
9791,
463,
882,
6134,
1335,
8202,
668,
30,
... |
return self.listLenght | return self.listLength | def getLength(self): return self.listLenght | e058cb26c1fe4a6352ac5987c94694c0ecc1ff98 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/e058cb26c1fe4a6352ac5987c94694c0ecc1ff98/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9888,
12,
2890,
4672,
327,
365,
18,
1098,
2891,
75,
647,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9888,
12,
2890,
4672,
327,
365,
18,
1098,
2891,
75,
647,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if prefixlen < 0: return 0 if _ipVersionToLen(version) < prefixlen: return 0 return 1 | return 0 | def _checkNetaddrWorksWithPrefixlen(net, prefixlen, version): """Check if a base addess of a network is compatible with a prefixlen""" global check_addr_prefixlen if check_addr_prefixlen: if net & _prefixlenToNetmask(prefixlen, version) == net: return 1 else: return 0 else: if prefixlen < 0: return 0 if _ipVersionToLen... | 190a5ca170362c7b09eea5d60eb2716fd85d501c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14367/190a5ca170362c7b09eea5d60eb2716fd85d501c/IPy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
50,
1167,
3069,
16663,
1190,
2244,
1897,
12,
2758,
16,
1633,
1897,
16,
1177,
4672,
3536,
1564,
309,
279,
1026,
527,
403,
434,
279,
2483,
353,
7318,
598,
279,
1633,
1897,
8395,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
50,
1167,
3069,
16663,
1190,
2244,
1897,
12,
2758,
16,
1633,
1897,
16,
1177,
4672,
3536,
1564,
309,
279,
1026,
527,
403,
434,
279,
2483,
353,
7318,
598,
279,
1633,
1897,
8395,... |
write("Attempting to run mythtranscode --mpeg2 to fix any errors") | write("Running mythtranscode --mpeg2 to fix any errors") | def processFile(file, folder): """Process a single video/recording file ready for burning.""" write( "*************************************************************") write( "Processing file " + file.attributes["filename"].value + " of type " + file.attributes["type"].value) write( "************************************... | 7e074fe168c880a2ceaa8181d90e1cd0f876a6b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/7e074fe168c880a2ceaa8181d90e1cd0f876a6b8/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
812,
12,
768,
16,
3009,
4672,
3536,
2227,
279,
2202,
6191,
19,
3366,
310,
585,
5695,
364,
18305,
310,
12123,
225,
1045,
12,
315,
5021,
19482,
1007,
7388,
13,
1045,
12,
315,
7798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
12,
768,
16,
3009,
4672,
3536,
2227,
279,
2202,
6191,
19,
3366,
310,
585,
5695,
364,
18305,
310,
12123,
225,
1045,
12,
315,
5021,
19482,
1007,
7388,
13,
1045,
12,
315,
7798,
... |
href = href[:href.find('"')] | quote_idx = href.find('"') if quote_idx > -1: href = href[:quote_idx] | def writeLink(self,obj): """ Link nodes are intra wiki links """ href = obj.url # obj.url is a utf-8 string if not href: log.warning('no link target specified') if not obj.children: return [] else: href = href[:href.find('"')] if obj.children: txt = self.renderInline(obj) t = ''.join(txt).strip() if not href: return ... | f043c1e6fa1face75411884be9b188f99f105b94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12390/f043c1e6fa1face75411884be9b188f99f105b94/rlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2098,
12,
2890,
16,
2603,
4672,
3536,
4048,
2199,
854,
316,
2033,
9050,
4716,
3536,
3897,
273,
1081,
18,
718,
468,
1081,
18,
718,
353,
279,
7718,
17,
28,
533,
225,
309,
486,
3897... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2098,
12,
2890,
16,
2603,
4672,
3536,
4048,
2199,
854,
316,
2033,
9050,
4716,
3536,
3897,
273,
1081,
18,
718,
468,
1081,
18,
718,
353,
279,
7718,
17,
28,
533,
225,
309,
486,
3897... |
p = Package.objects.filter(pkgname=dep.depname) | p = Package.objects.get( pkgname=dep.depname, arch=self.arch) | def depends_urlize(self): urls = [] for dep in self.packagedepends_set.all(): try: p = Package.objects.filter(pkgname=dep.depname) except IndexError: # couldn't find a package in the DB # it might be a virtual depend urls.append('<li>%s (v)</li>' % dep.depname) continue urls.append( '<li><a href="/packages/%d">%s</a></... | 37361f664f5092d5f4cc7bb2a20e1e86cbbf558d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11256/37361f664f5092d5f4cc7bb2a20e1e86cbbf558d/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10935,
67,
718,
554,
12,
2890,
4672,
6903,
273,
5378,
364,
5993,
316,
365,
18,
5610,
27360,
67,
542,
18,
454,
13332,
775,
30,
293,
273,
7508,
18,
6911,
18,
588,
12,
29348,
33,
15037,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10935,
67,
718,
554,
12,
2890,
4672,
6903,
273,
5378,
364,
5993,
316,
365,
18,
5610,
27360,
67,
542,
18,
454,
13332,
775,
30,
293,
273,
7508,
18,
6911,
18,
588,
12,
29348,
33,
15037,
... |
encoded_replacement = gyp.common.EncodePOSIXShellList(replacement) | output = "".join([output[:match_group.start('replace')], gyp.common.EncodePOSIXShellList(replacement), output[match_group.end('replace'):]]) | def ExpandVariables(input, is_late, variables, build_file): # Look for the pattern that gets expanded into variables if not is_late: variable_re = early_variable_re else: variable_re = late_variable_re matches = map(None, variable_re.finditer(input)) output = input if matches != None: # Reverse the list of matches so ... | 50c3217c7f6c4b58c978f07dfac8b651edb8498f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/50c3217c7f6c4b58c978f07dfac8b651edb8498f/input.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16429,
6158,
12,
2630,
16,
353,
67,
20293,
16,
3152,
16,
1361,
67,
768,
4672,
468,
10176,
364,
326,
1936,
716,
5571,
8406,
1368,
3152,
309,
486,
353,
67,
20293,
30,
2190,
67,
266,
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,
16429,
6158,
12,
2630,
16,
353,
67,
20293,
16,
3152,
16,
1361,
67,
768,
4672,
468,
10176,
364,
326,
1936,
716,
5571,
8406,
1368,
3152,
309,
486,
353,
67,
20293,
30,
2190,
67,
266,
273,... |
import zope | self.__original=original attrs=[] | def __init__(self, original, interfaces=None): import zope if interfaces is None: interfaces = zope.interface.providedBy(original) for interface in interfaces: for name in interface.names(): attr = interface[name] if zope.interface.interfaces.IMethod.providedBy(attr): setattr(self, name, _functionWrapper(original, nam... | 749403e84eca087d99022ef3cb45d36a859a9aa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/749403e84eca087d99022ef3cb45d36a859a9aa3/iproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2282,
16,
7349,
33,
7036,
4672,
365,
16186,
8830,
33,
8830,
3422,
33,
8526,
225,
309,
7349,
353,
599,
30,
7349,
273,
998,
1306,
18,
5831,
18,
29206,
858,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2282,
16,
7349,
33,
7036,
4672,
365,
16186,
8830,
33,
8830,
3422,
33,
8526,
225,
309,
7349,
353,
599,
30,
7349,
273,
998,
1306,
18,
5831,
18,
29206,
858,... |
except urllib2.URLError, e: | except URLError, e: | def get_prules(): global prules, prules_etag, allow_rule, block_rule, allow_rule_identities, block_rule_identities prules = None prules_etag = None allow_rule = None allow_rule_identities = None block_rule = None block_rule_identities = None try: doc = xcap_client.get('pres-rules') except urllib2.URLError, e: print "Ca... | b9aaccdd55771fc8d597f3c053901e8d89a19936 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/b9aaccdd55771fc8d597f3c053901e8d89a19936/sip_subscribe_winfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
683,
1513,
13332,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1699,
67,
5345,
16,
1203,
67,
5345,
16,
1699,
67,
5345,
67,
6392,
1961,
16,
1203,
67,
5345,
67,
6392,
1961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
683,
1513,
13332,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1699,
67,
5345,
16,
1203,
67,
5345,
16,
1699,
67,
5345,
67,
6392,
1961,
16,
1203,
67,
5345,
67,
6392,
1961,
... |
q = aitem(room, s).text() | q = aitem(room, s) s = q.text(False, False) del_from_alists(room, s) | def append(self, room, s): q = aitem(room, s).text() p = self.lists[room.jid] p.append(q) p.sort() self.lists[room.jid] = p self.apply_to_room(room) | bab40efca50c4e0d03eaefce7b8f5193f06e5b64 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2729/bab40efca50c4e0d03eaefce7b8f5193f06e5b64/alists.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
7725,
16,
272,
4672,
1043,
273,
279,
1726,
12,
13924,
16,
272,
13,
272,
273,
1043,
18,
955,
12,
8381,
16,
1083,
13,
1464,
67,
2080,
67,
287,
1486,
12,
13924,
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,
714,
12,
2890,
16,
7725,
16,
272,
4672,
1043,
273,
279,
1726,
12,
13924,
16,
272,
13,
272,
273,
1043,
18,
955,
12,
8381,
16,
1083,
13,
1464,
67,
2080,
67,
287,
1486,
12,
13924,
16,
... |
answer = "%s(%s" % (self.__class__, repr(self.location)) | answer = "%s(%s" % (self.__class__.__name__, repr(self.location)) | def __repr__(self): """A string representation of the record for debugging.""" answer = "%s(%s" % (self.__class__, repr(self.location)) if self.type : answer += ", type=%s" % repr(self.type) if self.location_operator : answer += ", location_operator=%s" % repr(self.location_operator) if self.strand : answer += ", stran... | 34fbf98369b53f32c18676dcd11873bcdf336bb6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/34fbf98369b53f32c18676dcd11873bcdf336bb6/SeqFeature.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
37,
533,
4335,
434,
326,
1409,
364,
10450,
12123,
5803,
273,
2213,
87,
9275,
87,
6,
738,
261,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
8480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
972,
12,
2890,
4672,
3536,
37,
533,
4335,
434,
326,
1409,
364,
10450,
12123,
5803,
273,
2213,
87,
9275,
87,
6,
738,
261,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
8480,
... |
self.eventlist[-1] = str(self.eventlist[-1]) + str(eventlisttmp[-1]) | self.eventlist[-1] = self.eventlist[-1] + eventlisttmp[-1] | def run(self): '''This is the main workhorse function. Keeps popping events off the queue, and processing them, until program quits ''' ## line format: ## date; time (1 minute resolution); fullapppath; hwnd; username; window title; eventdata ## ## if we are logging keystroke count, that field becomes the penultimate fi... | 9fc00e0f77899b22f4d3227d98afdc7fbcb0f077 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3638/9fc00e0f77899b22f4d3227d98afdc7fbcb0f077/logwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
9163,
2503,
353,
326,
2774,
1440,
76,
23035,
445,
18,
10498,
87,
1843,
1382,
2641,
3397,
326,
2389,
16,
471,
4929,
2182,
16,
3180,
5402,
719,
1282,
9163,
7541,
980,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9163,
2503,
353,
326,
2774,
1440,
76,
23035,
445,
18,
10498,
87,
1843,
1382,
2641,
3397,
326,
2389,
16,
471,
4929,
2182,
16,
3180,
5402,
719,
1282,
9163,
7541,
980,... |
sage: G = abelian_2group(3).gcs() | sage: G = elementary_abelian_2group(3).gcs() | def is_uniquely_completable(self): """ Returns True if the partial latin square self has exactly one completion to a latin square. This is just a wrapper for the current best-known algorithm, Dancing Links by Knuth. See dancing_links.spyx | b912fcc3f6e81017bcafed666fd88a387d1cf679 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b912fcc3f6e81017bcafed666fd88a387d1cf679/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
318,
18988,
2357,
67,
7806,
429,
12,
2890,
4672,
3536,
2860,
1053,
309,
326,
4702,
30486,
8576,
365,
711,
8950,
1245,
8364,
358,
279,
30486,
8576,
18,
1220,
353,
2537,
279,
4053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
18988,
2357,
67,
7806,
429,
12,
2890,
4672,
3536,
2860,
1053,
309,
326,
4702,
30486,
8576,
365,
711,
8950,
1245,
8364,
358,
279,
30486,
8576,
18,
1220,
353,
2537,
279,
4053... |
debug = 0 connected = 0 accepting = 0 closing = 0 | debug = False connected = False accepting = False closing = False | def loop(timeout=30.0, use_poll=0, map=None): if map is None: map = socket_map if use_poll and hasattr(select, 'poll'): poll_fun = poll2 else: poll_fun = poll while map: poll_fun(timeout, map) | 68522b18956b4417f5ab53ad513a6922370c9f2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/68522b18956b4417f5ab53ad513a6922370c9f2e/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
12,
4538,
33,
5082,
18,
20,
16,
999,
67,
13835,
33,
20,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
225,
309,
999,
67,
13835,
471,
3859,
12,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2798,
12,
4538,
33,
5082,
18,
20,
16,
999,
67,
13835,
33,
20,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
225,
309,
999,
67,
13835,
471,
3859,
12,
40... |
out += _("Here is a list, sorted by total number of reports, of all users who have had at least one report to one of their comments.") | out += _("Here is a list, sorted by total number of reports, of all users who have had a comment reported at least once.") | def tmpl_admin_users(self, ln, users_data): """ @param users_data: tuple of ct, i.e. (ct, ct, ...) where ct is a tuple (total_number_reported, total_comments_reported, total_reviews_reported, total_nb_votes_yes_of_reported, total_nb_votes_total_of_reported, user_id, user_email, user_nickname) sorted by order of ct hav... | 296bcca753c813ccbedfb3b7ad1e51580f7b48bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3302/296bcca753c813ccbedfb3b7ad1e51580f7b48bb/webcomment_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
3666,
67,
5577,
12,
2890,
16,
7211,
16,
3677,
67,
892,
4672,
3536,
632,
891,
3677,
67,
892,
30,
225,
3193,
434,
5691,
16,
277,
18,
73,
18,
261,
299,
16,
5691,
16,
1372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10720,
67,
3666,
67,
5577,
12,
2890,
16,
7211,
16,
3677,
67,
892,
4672,
3536,
632,
891,
3677,
67,
892,
30,
225,
3193,
434,
5691,
16,
277,
18,
73,
18,
261,
299,
16,
5691,
16,
1372,
... |
maximal. Note that this may not be the term which actually appears first when ``self`` is printed. If the default term ordering is not what is desired, a comparison function, cmp(x,y), can be provided. | maximal. Note that this may not be the term which actually appears first when ``self`` is printed. If the default term ordering is not what is desired, a comparison function, cmp(x,y), can be provided. | def leading_coefficient(self, cmp=None): r""" Returns the leading coefficient of ``self``. | af11dfe919a0b487f6e716e60a01a0379a53e463 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/af11dfe919a0b487f6e716e60a01a0379a53e463/modules_with_basis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7676,
67,
8075,
8714,
12,
2890,
16,
9411,
33,
7036,
4672,
436,
8395,
2860,
326,
7676,
16554,
434,
12176,
2890,
68,
8338,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7676,
67,
8075,
8714,
12,
2890,
16,
9411,
33,
7036,
4672,
436,
8395,
2860,
326,
7676,
16554,
434,
12176,
2890,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"""The function that processes creating the records from an XML string, and prints these records to the | """The function that processes creating the records from an XML string, and prints these records to the | def recxml2recmarc(xmltext, options): """The function that processes creating the records from an XML string, and prints these records to the standard output stream. @param xmltext: An XML MARC record in string form. @param options: Various options about the record to be created, as passed from the command line. @retur... | 1c137b3ae4c91d53f88470c4ddccfbb819938f16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/1c137b3ae4c91d53f88470c4ddccfbb819938f16/xmlmarc2textmarclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1950,
2902,
22,
3927,
3684,
71,
12,
2902,
955,
16,
702,
4672,
3536,
1986,
445,
716,
8488,
4979,
326,
3853,
628,
392,
3167,
533,
16,
471,
14971,
4259,
3853,
358,
326,
4529,
876,
1407,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1950,
2902,
22,
3927,
3684,
71,
12,
2902,
955,
16,
702,
4672,
3536,
1986,
445,
716,
8488,
4979,
326,
3853,
628,
392,
3167,
533,
16,
471,
14971,
4259,
3853,
358,
326,
4529,
876,
1407,
1... |
if type(fmt) == type(''): | if type(fmt) in (types.StringType, types.UnicodeType): | def fort_write(self,fmt,*args): """Write a Fortran binary record. | 6078c659529054b5167f615a37dce51fe41fc76c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/6078c659529054b5167f615a37dce51fe41fc76c/mio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
364,
88,
67,
2626,
12,
2890,
16,
8666,
16,
14,
1968,
4672,
3536,
3067,
279,
2457,
13171,
3112,
1409,
18,
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,
364,
88,
67,
2626,
12,
2890,
16,
8666,
16,
14,
1968,
4672,
3536,
3067,
279,
2457,
13171,
3112,
1409,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"""Return a dictionary containing all the Fields in a schema.""" | """Return a dictionary containing all the attributes in an interface. The type specifies whether we are looking for attributes or methods. Example:: >>> from zope.interface import Interface, Attribute >>> from zope.schema import Field >>> class IFoo(Interface): ... foo = Field() ... bar = Field() ... de... | def _get(iface, type): """Return a dictionary containing all the Fields in a schema.""" iface = removeAllProxies(iface) items = {} for name in iface: attr = iface[name] if type.providedBy(attr): items[name] = attr return items | 8473912e22d1506b9091ee78e7e1c2f1b2eab272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/8473912e22d1506b9091ee78e7e1c2f1b2eab272/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
12,
31479,
16,
618,
4672,
3536,
990,
279,
3880,
4191,
777,
326,
1677,
316,
392,
1560,
18,
225,
1021,
618,
11470,
2856,
732,
854,
7849,
364,
1677,
578,
2590,
18,
225,
5090,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
31479,
16,
618,
4672,
3536,
990,
279,
3880,
4191,
777,
326,
1677,
316,
392,
1560,
18,
225,
1021,
618,
11470,
2856,
732,
854,
7849,
364,
1677,
578,
2590,
18,
225,
5090,
28... |
_block_update(error=1) | self._block_update(error=1) | def set_result(self, type): # combination of self.tally() and self.history() self.history(type[0]) self.tally(type=type) if type: if type[0] == 'C': _block_update(correct=1) elif type[0] == 'E': _block_update(error=1) else: _block_update(other=1) | 1111420d4e59d089954755446e90abfedd49d671 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/1111420d4e59d089954755446e90abfedd49d671/pype.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2088,
12,
2890,
16,
618,
4672,
468,
10702,
434,
365,
18,
88,
1230,
1435,
471,
365,
18,
8189,
1435,
365,
18,
8189,
12,
723,
63,
20,
5717,
365,
18,
88,
1230,
12,
723,
33,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2088,
12,
2890,
16,
618,
4672,
468,
10702,
434,
365,
18,
88,
1230,
1435,
471,
365,
18,
8189,
1435,
365,
18,
8189,
12,
723,
63,
20,
5717,
365,
18,
88,
1230,
12,
723,
33,
72... |
return parent.base_extend(self.base_ring().fraction_field())(self).rescale(a) | return self.parent().base_extend(self.base_ring().fraction_field())(self).rescale(a) | def rescale(self, a): r""" Return f(a*X) """ negval = False try: a = self.base_ring()(a) except ValueError, msg: if msg == "element has negative valuation.": negval = True else: raise ValueError, msg if negval: return parent.base_extend(self.base_ring().fraction_field())(self).rescale(a) if self.base_ring().is_field() ... | 04fbc0922cf1afbc8d5e2f783cea01d23cbba31a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/04fbc0922cf1afbc8d5e2f783cea01d23cbba31a/polynomial_padic_capped_relative_dense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30323,
12,
2890,
16,
279,
4672,
436,
8395,
2000,
284,
12,
69,
14,
60,
13,
3536,
4251,
1125,
273,
1083,
775,
30,
279,
273,
365,
18,
1969,
67,
8022,
1435,
12,
69,
13,
1335,
2068,
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,
30323,
12,
2890,
16,
279,
4672,
436,
8395,
2000,
284,
12,
69,
14,
60,
13,
3536,
4251,
1125,
273,
1083,
775,
30,
279,
273,
365,
18,
1969,
67,
8022,
1435,
12,
69,
13,
1335,
2068,
16,
... |
rlib_get_output_length = _librlib.rlib_get_output_length | rlib_get_output_length = _rlib.rlib_get_output_length | def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name | 5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
30,
... |
def __init__(self, node, name=None): if not name: fields = node.split(':', 1) if len(fields) == 2: n, name = fields self.node, self.name = bin(n), name else: self.node, self.name = None, None else: self.node, self.name = node, name | def __init__(self, node, name): self.node, self.name = node, name | def __init__(self, node, name=None): if not name: fields = node.split(':', 1) if len(fields) == 2: n, name = fields self.node, self.name = bin(n), name else: self.node, self.name = None, None else: self.node, self.name = node, name | c3fb9b13f9f3b0c5438dd558e62124d8c567ec43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/c3fb9b13f9f3b0c5438dd558e62124d8c567ec43/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
16,
508,
33,
7036,
4672,
309,
486,
508,
30,
1466,
273,
756,
18,
4939,
2668,
30,
2187,
404,
13,
309,
562,
12,
2821,
13,
422,
576,
30,
290,
16,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
756,
16,
508,
33,
7036,
4672,
309,
486,
508,
30,
1466,
273,
756,
18,
4939,
2668,
30,
2187,
404,
13,
309,
562,
12,
2821,
13,
422,
576,
30,
290,
16,
50... |
of $(O_K/I)^*$ (with generators) and not the special \emph{bid} structure. | of `(O_K/I)^*` (with generators) and not the special ``bid`` structure. | def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K. | e462b4d226d7b8f741f48ed1e071494aa5463b8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e462b4d226d7b8f741f48ed1e071494aa5463b8a/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
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,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
434,
... |
if self.tag in NO_CLOSE_TAGS: return False | for tag in NO_CLOSE_TAGS: if self.match_tag(tag): return False | def matches_endtag (self): """ See if this rule matches end tags. """ if self.tag in NO_CLOSE_TAGS: return False return self.part not in [ wc.filter.html.ATTR, wc.filter.html.ATTRVAL, wc.filter.html.ATTRNAME, ] | 5df9a57bb2b61cf160c233fd653800d8acb18754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5df9a57bb2b61cf160c233fd653800d8acb18754/HtmlrewriteRule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1885,
67,
409,
2692,
261,
2890,
4672,
3536,
2164,
309,
333,
1720,
1885,
679,
2342,
18,
3536,
364,
1047,
316,
3741,
67,
13384,
67,
29915,
30,
309,
365,
18,
1916,
67,
2692,
12,
2692,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1885,
67,
409,
2692,
261,
2890,
4672,
3536,
2164,
309,
333,
1720,
1885,
679,
2342,
18,
3536,
364,
1047,
316,
3741,
67,
13384,
67,
29915,
30,
309,
365,
18,
1916,
67,
2692,
12,
2692,
467... |
TargetAdd('parse_file.exe', opts=['ADVAPI', 'OPENSSL']) | TargetAdd('parse_file.exe', opts=['ADVAPI', 'OPENSSL', 'WINSHELL']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | df94195ce3f8ffd384b0a72bb5770e836e9e9d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/df94195ce3f8ffd384b0a72bb5770e836e9e9d2e/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
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,
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,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
and only if `p_2` dominates `p_1`. | and only if the conjugate of `p_2` dominates `p_1`. | def gale_ryser_theorem(p1, p2, algorithm="ryser"): r""" Returns the binary matrix given by the Gale-Ryser theorem. The Gale Ryser theorem asserts that if `p_1,p_2` are two partitions of `n` of respective lengths `k_1,k_2`, then there is a binary `k_1\times k_2` matrix `M` such that `p_1` is the vector of row sums and ... | 5042528c30472deb47d299c5d4d6f9e23d490cf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5042528c30472deb47d299c5d4d6f9e23d490cf3/integer_vector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
5349,
67,
1176,
550,
67,
5787,
479,
81,
12,
84,
21,
16,
293,
22,
16,
4886,
1546,
1176,
550,
6,
4672,
436,
8395,
2860,
326,
3112,
3148,
864,
635,
326,
611,
5349,
17,
54,
93,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
314,
5349,
67,
1176,
550,
67,
5787,
479,
81,
12,
84,
21,
16,
293,
22,
16,
4886,
1546,
1176,
550,
6,
4672,
436,
8395,
2860,
326,
3112,
3148,
864,
635,
326,
611,
5349,
17,
54,
93,
55... |
res = [] | def _listbloc(n, nbrepets, listint=None): """ listbloc decomposes a set of n*nbrepets integers (the list listint) in nbrepets parts. It is used in the algorithm to generate all set partitions. Not to be called by the user. EXAMPLES: sage: sage.combinat.set_partition._listbloc(2,1) [{{1, 2}}] sage: l = [Set([Set([3, ... | 9a6b5050d0dd868fd1f7db43e417529babaf7e6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9a6b5050d0dd868fd1f7db43e417529babaf7e6d/set_partition.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1098,
70,
1829,
12,
82,
16,
4264,
14462,
2413,
16,
666,
474,
33,
7036,
4672,
3536,
666,
70,
1829,
9862,
10522,
279,
444,
434,
290,
14,
82,
6073,
84,
2413,
12321,
261,
5787,
666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1098,
70,
1829,
12,
82,
16,
4264,
14462,
2413,
16,
666,
474,
33,
7036,
4672,
3536,
666,
70,
1829,
9862,
10522,
279,
444,
434,
290,
14,
82,
6073,
84,
2413,
12321,
261,
5787,
666,
... | |
self.get_contents_to_file(fp) | self.get_contents_to_file(fp, headers) | def get_contents_to_filename(self, filename): fp = open(filename, 'wb') self.get_contents_to_file(fp) fp.close() | b4a218ce53b6f8a240518674f16c867df6dac508 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/b4a218ce53b6f8a240518674f16c867df6dac508/key.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3980,
67,
869,
67,
3459,
12,
2890,
16,
1544,
4672,
4253,
273,
1696,
12,
3459,
16,
296,
9464,
6134,
365,
18,
588,
67,
3980,
67,
869,
67,
768,
12,
7944,
16,
1607,
13,
4253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3980,
67,
869,
67,
3459,
12,
2890,
16,
1544,
4672,
4253,
273,
1696,
12,
3459,
16,
296,
9464,
6134,
365,
18,
588,
67,
3980,
67,
869,
67,
768,
12,
7944,
16,
1607,
13,
4253,
... |
view_name = tb[-2][2] | def __js_dir(fs_path, web_prefix): """Adds all of the .js files in a given directory to the javascripts array, to be included in the <head>. Also checks for a single file js with the same name as the directory. (dir_name/*.js and dir_name.js)""" if os.path.exists(fs_path): rs_dict["javascripts"].extend([ "%s/%s" % (we... | c875b73113c653c03f1a75038574842e1a1999c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/c875b73113c653c03f1a75038574842e1a1999c1/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2924,
67,
1214,
12,
2556,
67,
803,
16,
3311,
67,
3239,
4672,
3536,
3655,
777,
434,
326,
263,
2924,
1390,
316,
279,
864,
1867,
358,
326,
5152,
3691,
6513,
526,
16,
358,
506,
5849,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2924,
67,
1214,
12,
2556,
67,
803,
16,
3311,
67,
3239,
4672,
3536,
3655,
777,
434,
326,
263,
2924,
1390,
316,
279,
864,
1867,
358,
326,
5152,
3691,
6513,
526,
16,
358,
506,
5849,... | |
node = nodes.Element(u'Möhren', nodes.Text(u'Möhren', u'Möhren')) self.assertEquals(unicode(node), u'<Element>Möhren</Element>') | node = nodes.Element(u'Möhren', nodes.Text(unicode('Möhren', 'utf8'), unicode('Möhren', 'utf8'))) self.assertEquals(unicode(node), unicode('<Element>Möhren</Element>', 'utf8')) | def test_unicode(self): node = nodes.Element(u'Möhren', nodes.Text(u'Möhren', u'Möhren')) self.assertEquals(unicode(node), u'<Element>Möhren</Element>') | 786a2da9af01bcea9681dab2e783fa5182905d06 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/786a2da9af01bcea9681dab2e783fa5182905d06/test_nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9124,
12,
2890,
4672,
756,
273,
2199,
18,
1046,
12,
89,
11,
49,
132,
119,
76,
1187,
2187,
2199,
18,
1528,
12,
89,
11,
49,
132,
119,
76,
1187,
2187,
582,
11,
49,
132,
119,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9124,
12,
2890,
4672,
756,
273,
2199,
18,
1046,
12,
89,
11,
49,
132,
119,
76,
1187,
2187,
2199,
18,
1528,
12,
89,
11,
49,
132,
119,
76,
1187,
2187,
582,
11,
49,
132,
119,... |
"\x00\x00\x00\x00\x00\x11\x11\x00".decode("unicode_internal") | b"\x00\x00\x00\x00\x00\x11\x11\x00".decode("unicode_internal") | def test_decode_error_attributes(self): if sys.maxunicode > 0xffff: try: "\x00\x00\x00\x00\x00\x11\x11\x00".decode("unicode_internal") except UnicodeDecodeError as ex: self.assertEquals("unicode_internal", ex.encoding) self.assertEquals("\x00\x00\x00\x00\x00\x11\x11\x00", ex.object) self.assertEquals(4, ex.start) self.... | 1975d6fcb90a8e177469f7023acbc81a4a45db34 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/1975d6fcb90a8e177469f7023acbc81a4a45db34/test_codecs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3922,
67,
1636,
67,
4350,
12,
2890,
4672,
309,
2589,
18,
1896,
9124,
405,
374,
20431,
30,
775,
30,
324,
12691,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3922,
67,
1636,
67,
4350,
12,
2890,
4672,
309,
2589,
18,
1896,
9124,
405,
374,
20431,
30,
775,
30,
324,
12691,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713,
64,
92,
713... |
if _name == 'posix': def symlink(src, dst): """symlink(src, dst) Create a symbolic link pointing to src named dst. """ _posix_impl.symlink(src, sys.getPath(dst)) def readlink(path): """readlink(path) -> path Return a string representing the path to which the symbolic link points. """ return _posix_impl.readlink(sys.... | def getenv(key, default=None): """Get an environment variable, return None if it doesn't exist. The optional second argument can specify an alternate default.""" import os return os.environ.get(key, default) | 377fcf02cf893fba251bf49ca00b645720665fb7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6753/377fcf02cf893fba251bf49ca00b645720665fb7/posix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11740,
12,
856,
16,
805,
33,
7036,
4672,
3536,
967,
392,
3330,
2190,
16,
327,
599,
309,
518,
3302,
1404,
1005,
18,
1021,
3129,
2205,
1237,
848,
4800,
392,
12184,
805,
12123,
1930,
1140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11740,
12,
856,
16,
805,
33,
7036,
4672,
3536,
967,
392,
3330,
2190,
16,
327,
599,
309,
518,
3302,
1404,
1005,
18,
1021,
3129,
2205,
1237,
848,
4800,
392,
12184,
805,
12123,
1930,
1140,
... | |
For a dialect-specific instance of :class:`Inspector`, see | For a dialect-specific instance of :class:`.Inspector`, see | def __init__(self, bind): """Initialize a new :class:`Inspector`. | 914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/914ae5bcd4dbac844d26c70eeeb2f8bffd03c20d/reflection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1993,
4672,
3536,
7520,
279,
394,
294,
1106,
28288,
19443,
8338,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1993,
4672,
3536,
7520,
279,
394,
294,
1106,
28288,
19443,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print "Mouse down at global:", where print "\tUnknown part code:", partcode | if DEBUG: print "Mouse down at global:", where if DEBUG: print "\tUnknown part code:", partcode MacOS.HandleEvent(event) | def do_unknownpartcode(self, partcode, window, event): (what, message, when, where, modifiers) = event print "Mouse down at global:", where print "\tUnknown part code:", partcode | a67a39b61261e14a924785aee0199e094d466e35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a67a39b61261e14a924785aee0199e094d466e35/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8172,
2680,
710,
12,
2890,
16,
1087,
710,
16,
2742,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
309,
6369,
30,
1172,
315,
9186,
2588,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8172,
2680,
710,
12,
2890,
16,
1087,
710,
16,
2742,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
309,
6369,
30,
1172,
315,
9186,
2588,
62... |
spinlabel = gtk.Label(_("Delay for switching between popups")) | spinlabel = gtk.Label(_("Delay for switching between window lists")) | def __init__ (self): | 25580906cd313a0ce8d618137f7433f0450896b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/25580906cd313a0ce8d618137f7433f0450896b2/dbx_preference.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1001,
2738,
972,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
$q$-expansion of this expression to be zero is a system of v + k linear equations in d**2 coefficients, where k is the number of nonzero negative coefficients that can appear. | $q$-expansion of this expression to be zero is a system of $v + k$ linear equations in $d**2$ coefficients, where $k$ is the number of nonzero negative coefficients that can appear. | def eta_poly_relations(eta_elements, degree, labels=['x1','x2'], verbose=False): r""" Find polynomial relations between eta products. INPUTS: -- eta_elements (list): a list of EtaGroupElement objects. Not implemented unless this list has precisely two elements. -- degree (integer): the maximal degree of polynomial to ... | 168e37e93cbeca34b78cfefc67168ffe5a8e0622 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/168e37e93cbeca34b78cfefc67168ffe5a8e0622/etaproducts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14251,
67,
16353,
67,
15018,
12,
1066,
67,
6274,
16,
10782,
16,
3249,
33,
3292,
92,
21,
17023,
92,
22,
17337,
3988,
33,
8381,
4672,
436,
8395,
4163,
16991,
7467,
3086,
14251,
10406,
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,
14251,
67,
16353,
67,
15018,
12,
1066,
67,
6274,
16,
10782,
16,
3249,
33,
3292,
92,
21,
17023,
92,
22,
17337,
3988,
33,
8381,
4672,
436,
8395,
4163,
16991,
7467,
3086,
14251,
10406,
18,
... |
self._temporary_changes = False | if close_changes_on_close is None: close_changes_on_close = True | def __init__(self, name=None, base=None, changes=None): if base is None: base = ZODB.MappingStorage.MappingStorage() self._temporary_base = True else: self._temporary_base = False self.base = base | 0ceb7cf7c06b30e08f976fce181bed2d5bafd02a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10048/0ceb7cf7c06b30e08f976fce181bed2d5bafd02a/DemoStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
1026,
33,
7036,
16,
3478,
33,
7036,
4672,
309,
1026,
353,
599,
30,
1026,
273,
2285,
19786,
18,
3233,
3245,
18,
3233,
3245,
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,
508,
33,
7036,
16,
1026,
33,
7036,
16,
3478,
33,
7036,
4672,
309,
1026,
353,
599,
30,
1026,
273,
2285,
19786,
18,
3233,
3245,
18,
3233,
3245,
1435,
365,
... |
if 'filepos-id' in attrib: attrib['id'] = attrib.pop('filepos-id') if 'filepos' in attrib: filepos = int(attrib.pop('filepos')) attrib['href'] = " if tag.tag == 'img': | elif tag.tag == 'img': | def upshift_markup(self, root): if self.verbose: print 'Converting style information to CSS...' size_map = { 'xx-small' : '0.5', 'x-small' : '1', 'small' : '2', 'medium' : '3', 'large' : '4', 'x-large' : '5', 'xx-large' : '6', } mobi_version = self.book_header.mobi_version for tag in root.iter(etree.Element):... | 2326873b7c8bfc11478b59c7c8ec10d4776e99c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/2326873b7c8bfc11478b59c7c8ec10d4776e99c6/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
731,
4012,
67,
15056,
12,
2890,
16,
1365,
4672,
309,
365,
18,
11369,
30,
1172,
296,
2723,
310,
2154,
1779,
358,
6765,
7821,
963,
67,
1458,
273,
288,
296,
5279,
17,
12019,
11,
294,
296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
731,
4012,
67,
15056,
12,
2890,
16,
1365,
4672,
309,
365,
18,
11369,
30,
1172,
296,
2723,
310,
2154,
1779,
358,
6765,
7821,
963,
67,
1458,
273,
288,
296,
5279,
17,
12019,
11,
294,
296,... |
command = command.replace('\\\\', '\n\\backslash') | command = command.replace('\\\\', '\n\\backslash\n') | def revert_unicode(document): '''Transform unicode characters that can not be written using the | 586a07709fa2111e5db88487dfe5c19b9bdcf689 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/586a07709fa2111e5db88487dfe5c19b9bdcf689/lyx_1_5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
9124,
12,
5457,
4672,
9163,
4059,
5252,
3949,
716,
848,
486,
506,
5941,
1450,
326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15226,
67,
9124,
12,
5457,
4672,
9163,
4059,
5252,
3949,
716,
848,
486,
506,
5941,
1450,
326,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if size_avail < 0: size_avail = 0 buff_frame = NATFrame() buff_frame.initAsConnBufSizeMsg(client_address,size_avail) this_server['to_server_buff'].append(buff_frame.toString()) | if size_avail > 0: buff_frame = NATFrame() buff_frame.initAsConnBufSizeMsg(client_address,size_avail) this_server['to_server_buff'].append(buff_frame.toString()) | def write_to_client(client_address,server_address): while (True): # if this client or server is not connected break try: this_client = client[client_address][server_address] this_server = server[server_address] except KeyError: print"stopping write thread to: "+client_address+" from server: "+server_address break bu... | 897f88e49e805b22daa72a0ec3858d79d3f403f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/897f88e49e805b22daa72a0ec3858d79d3f403f6/forwarder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
869,
67,
2625,
12,
2625,
67,
2867,
16,
3567,
67,
2867,
4672,
1323,
261,
5510,
4672,
225,
468,
309,
333,
1004,
578,
1438,
353,
486,
5840,
898,
775,
30,
333,
67,
2625,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
869,
67,
2625,
12,
2625,
67,
2867,
16,
3567,
67,
2867,
4672,
1323,
261,
5510,
4672,
225,
468,
309,
333,
1004,
578,
1438,
353,
486,
5840,
898,
775,
30,
333,
67,
2625,
273,
1... |
dleft_col.add_attribute (render_text, "markup", self.TASK_MODEL_DLEFT) | dleft_col.add_attribute (render_text, "markup", self.TASK_MODEL_DLEFT_STR) | def __create_task_tview(self): | c5a0b65696467294e7b6a10bde93ac3f353da81b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/c5a0b65696467294e7b6a10bde93ac3f353da81b/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
4146,
67,
88,
1945,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
4146,
67,
88,
1945,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
TryKillingOldServer(port) | def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port # Try to free up the port if there's an orphaned old instance. TryKillingOldServer(port) if options.server_type == SERVER_HTTP: if opt... | adb0428576b6cdbbc9542319b5af8309057a17d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/adb0428576b6cdbbc9542319b5af8309057a17d1/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... | |
Either x or x-m must be an integer. | Either m or x-m must be an integer. | def binomial(x,m): r""" Return the binomial coefficient $$ x (x-1) \cdots (x-m+1) / m! $$ which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. If x-m is an integer we define: binomial(x,m)= binomial(x,x-m) (This rule makes sense if x is assumed to be an integer) INPUT:: x,m -- numbers or symbolic expre... | 2801864e031d8121c8e1b7c65ed110b98b0394fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2801864e031d8121c8e1b7c65ed110b98b0394fc/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... |
Double leading '.', and change Unix newline '\n' into | Double leading '.', and change Unix newline '\n', or Mac '\r' into | def quotedata(data): """Quote data for email. Double leading '.', and change Unix newline '\n' into Internet CRLF end-of-line.""" return re.sub(r'(?m)^\.', '..', re.sub(r'\r?\n', CRLF, data)) | 9cc6c7b00f7761dd722ad6a9440a98985710edf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9cc6c7b00f7761dd722ad6a9440a98985710edf2/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9298,
396,
12,
892,
4672,
3536,
10257,
501,
364,
2699,
18,
225,
3698,
7676,
2611,
16,
471,
2549,
9480,
9472,
2337,
82,
2187,
578,
13217,
2337,
86,
11,
1368,
21352,
21791,
679,
17,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9298,
396,
12,
892,
4672,
3536,
10257,
501,
364,
2699,
18,
225,
3698,
7676,
2611,
16,
471,
2549,
9480,
9472,
2337,
82,
2187,
578,
13217,
2337,
86,
11,
1368,
21352,
21791,
679,
17,
792,
... |
if v < 0: v=t32+v | if v < 0: v = t32 + v | def u64(v, unpack=struct.unpack): """Unpack an 8-byte string into a 64-bit (or long) integer""" h, v = unpack(">ii", v) if v < 0: v=t32+v if h: if h < 0: h=t32+h v=h*t32+v return v | eabb01316360e16ae64ab20021ed2e9801cf72d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/eabb01316360e16ae64ab20021ed2e9801cf72d2/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
582,
1105,
12,
90,
16,
6167,
33,
1697,
18,
17309,
4672,
3536,
23649,
392,
1725,
17,
7229,
533,
1368,
279,
5178,
17,
3682,
261,
280,
1525,
13,
3571,
8395,
366,
16,
331,
273,
6167,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
582,
1105,
12,
90,
16,
6167,
33,
1697,
18,
17309,
4672,
3536,
23649,
392,
1725,
17,
7229,
533,
1368,
279,
5178,
17,
3682,
261,
280,
1525,
13,
3571,
8395,
366,
16,
331,
273,
6167,
2932,... |
This is called by the http_error_30x methods when a redirection response is received. If a redirection should take place, return a new Request to allow http_error_30x to perform the redirect. Otherwise, raise HTTPError if no-one else should try to handle this url. Return None if you can't but another Handler might. | This is called by the http_error_30x methods when a redirection response is received. If a redirection should take place, return a new Request to allow http_error_30x to perform the redirect. Otherwise, raise HTTPError if no-one else should try to handle this url. Return None if you can't but another Handler might. | def redirect_request(self, req, fp, code, msg, headers, newurl): """Return a Request or None in response to a redirect. | 1bf8c490086752f54983a2d2cad6cb78af5ecfd0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1bf8c490086752f54983a2d2cad6cb78af5ecfd0/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
67,
2293,
12,
2890,
16,
1111,
16,
4253,
16,
981,
16,
1234,
16,
1607,
16,
394,
718,
4672,
3536,
990,
279,
1567,
578,
599,
316,
766,
358,
279,
3136,
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,
1,
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,
3136,
67,
2293,
12,
2890,
16,
1111,
16,
4253,
16,
981,
16,
1234,
16,
1607,
16,
394,
718,
4672,
3536,
990,
279,
1567,
578,
599,
316,
766,
358,
279,
3136,
18,
2,
-100,
-100,
-100,
-100... |
return user.replace(' ','').lower() | return None | def getUsernameSlcs1(user, dn, domain): #the DC stuff has to be at the start of the string?? if(isSlcs1(dn)): user = user.split(' ')[:-1] username = '' for string in user: username += string.lower() username = checkLength(user, username, domain) #username = checkExisting(username, domain) return username else: return u... | aac6216d29f27f38350e4a7b85eaea698d79c9c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1913/aac6216d29f27f38350e4a7b85eaea698d79c9c3/dnToUserDomain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17827,
3738,
2143,
21,
12,
1355,
16,
8800,
16,
2461,
4672,
468,
5787,
21533,
10769,
711,
358,
506,
622,
326,
787,
434,
326,
533,
14646,
309,
12,
291,
3738,
2143,
21,
12,
5176,
3719,
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,
17827,
3738,
2143,
21,
12,
1355,
16,
8800,
16,
2461,
4672,
468,
5787,
21533,
10769,
711,
358,
506,
622,
326,
787,
434,
326,
533,
14646,
309,
12,
291,
3738,
2143,
21,
12,
5176,
3719,
30... |
res = run_sql("SELECT id, title, body FROM portalbox") | res = run_sql("SELECT id, title, body FROM portalbox ORDER by title,body") | def get_pbx(): """Returns all portalboxes""" try: res = run_sql("SELECT id, title, body FROM portalbox") return res except StandardError, e: return "" | f6160160ea8915b75fb34d9a1b108d7ad76d9b0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/f6160160ea8915b75fb34d9a1b108d7ad76d9b0c/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5733,
92,
13332,
3536,
1356,
777,
11899,
15918,
8395,
225,
775,
30,
400,
273,
1086,
67,
4669,
2932,
4803,
612,
16,
2077,
16,
1417,
4571,
11899,
2147,
10205,
635,
2077,
16,
3432,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
5733,
92,
13332,
3536,
1356,
777,
11899,
15918,
8395,
225,
775,
30,
400,
273,
1086,
67,
4669,
2932,
4803,
612,
16,
2077,
16,
1417,
4571,
11899,
2147,
10205,
635,
2077,
16,
3432,... |
ofss = macfs.FSSpec(out) | ofss = FSSpec(out) | def hexbin(inp, out): """(infilename, outfilename) - Decode binhexed file""" ifp = HexBin(inp) finfo = ifp.FInfo if not out: out = ifp.FName if os.name == 'mac': ofss = macfs.FSSpec(out) out = ofss.as_pathname() ofp = open(out, 'wb') # XXXX Do translation on non-mac systems while 1: d = ifp.read(128000) if not d: brea... | 68592ff5cbebaee726a82dc0995f5da2d71fae85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/68592ff5cbebaee726a82dc0995f5da2d71fae85/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
4757,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
6209,
4158,
7118,
329,
585,
8395,
309,
84,
273,
15734,
9913,
12,
31647,
13,
15190,
273,
309,
84,
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,
3827,
4757,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
6209,
4158,
7118,
329,
585,
8395,
309,
84,
273,
15734,
9913,
12,
31647,
13,
15190,
273,
309,
84,
18,
... |
if opt[0] == '-U': | if opt[0] == '-S': server = opt[1] elif opt[0] == '-D': database = opt[1] elif opt[0] == '-U': | def process(objectKey): # # retrieve Assay (GXD) images that have thumbnails and are in pixel DB # cmd = 'select i._Image_key, i._MGIType_key, i._Refs_key, i._ThumbnailImage_key, ' + \ 'i.figureLabel, ip._ImagePane_key, ip.paneLabel, r.year, a.numericPart ' + \ 'into #images ' + \ 'from IMG_Image i, BIB_Refs r, IMG_I... | 66f59595d919a0b550e44e24b1b872459e2f05de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/343/66f59595d919a0b550e44e24b1b872459e2f05de/imgcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
1612,
653,
4672,
225,
468,
468,
4614,
4725,
528,
261,
43,
22953,
13,
4602,
716,
1240,
30526,
471,
854,
316,
4957,
2383,
468,
225,
1797,
273,
296,
4025,
277,
6315,
2040,
67,
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,
1207,
12,
1612,
653,
4672,
225,
468,
468,
4614,
4725,
528,
261,
43,
22953,
13,
4602,
716,
1240,
30526,
471,
854,
316,
4957,
2383,
468,
225,
1797,
273,
296,
4025,
277,
6315,
2040,
67,
8... |
`skypanel.model.Person` object that will identify the user | `model.Person` object that will identify the user | # def authorise(self, email_address, role=None, signed_in=None): | 71a12f21ddfdc07f4078c1252dba18fa876ea11a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/71a12f21ddfdc07f4078c1252dba18fa876ea11a/auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
377,
1652,
2869,
784,
12,
2890,
16,
2699,
67,
2867,
16,
2478,
33,
7036,
16,
6726,
67,
267,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
377,
1652,
2869,
784,
12,
2890,
16,
2699,
67,
2867,
16,
2478,
33,
7036,
16,
6726,
67,
267,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
try: from setuptools.sandbox import DirectorySandbox def _violation(*args): pass DirectorySandbox._violation = _violation except ImportError: pass | def _rename_path(path): new_name = path + '.OLD.%s' % time.time() log.warn('Renaming %s into %s', path, new_name) try: from setuptools.sandbox import DirectorySandbox def _violation(*args): pass DirectorySandbox._violation = _violation except ImportError: pass os.rename(path, new_name) return new_name | 5348eb9ca06287ebe73802715d183db4f9671be3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8186/5348eb9ca06287ebe73802715d183db4f9671be3/distribute_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18539,
67,
803,
12,
803,
4672,
394,
67,
529,
273,
589,
397,
2418,
11846,
7866,
87,
11,
738,
813,
18,
957,
1435,
613,
18,
8935,
2668,
16290,
7772,
738,
87,
1368,
738,
87,
2187,
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,
18539,
67,
803,
12,
803,
4672,
394,
67,
529,
273,
589,
397,
2418,
11846,
7866,
87,
11,
738,
813,
18,
957,
1435,
613,
18,
8935,
2668,
16290,
7772,
738,
87,
1368,
738,
87,
2187,
5... | |
uniqfn = "%012databasebackup.zip" % randrange(0, 999999999999) | uniqfn = "%012ddatabasebackup.zip" % randrange(0, 999999999999) | def _backup_support_dir(self): # backs up the support directories to a zip file # returns the name of the zip file logging.info("Attempting to back up support directory") app.db.close() | 8d69da8cc4abf12c516db223fa08d0f00a06b679 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/8d69da8cc4abf12c516db223fa08d0f00a06b679/controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9572,
67,
13261,
67,
1214,
12,
2890,
4672,
468,
1473,
87,
731,
326,
2865,
6402,
358,
279,
3144,
585,
468,
1135,
326,
508,
434,
326,
3144,
585,
2907,
18,
1376,
2932,
23089,
358,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9572,
67,
13261,
67,
1214,
12,
2890,
4672,
468,
1473,
87,
731,
326,
2865,
6402,
358,
279,
3144,
585,
468,
1135,
326,
508,
434,
326,
3144,
585,
2907,
18,
1376,
2932,
23089,
358,
14... |
""" | """ data = masked_array(data, subok=True, copy=not inplace) | def mask_period(data, start_date=None, end_date=None, inside=True, include_edges=True, inplace=True): """Returns x as an array masked where dates fall outside the selection period, | 26473aaf16313449a41d336d5ca377489341bb6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/26473aaf16313449a41d336d5ca377489341bb6b/tseries.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3066,
67,
6908,
12,
892,
16,
787,
67,
712,
33,
7036,
16,
679,
67,
712,
33,
7036,
16,
4832,
33,
5510,
16,
2341,
67,
8746,
33,
5510,
16,
11783,
33,
5510,
4672,
3536,
1356,
619,
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,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3066,
67,
6908,
12,
892,
16,
787,
67,
712,
33,
7036,
16,
679,
67,
712,
33,
7036,
16,
4832,
33,
5510,
16,
2341,
67,
8746,
33,
5510,
16,
11783,
33,
5510,
4672,
3536,
1356,
619,
487,
... |
cUri = Path.posifyPath(self._classes[fileId]["uri"]) cUri = Path.rel_from_to(self.approot, cUri) | cUri = Path.rel_from_to(self.approot, self._classes[fileId]["uri"]) cUri = Path.posifyPath(cUri) | def generateSourcePackageCode(self, parts, packages, boot, format=False): if not parts: return "" | 6d7639c0bd5955db20ea3be16a616563466a3bc8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/6d7639c0bd5955db20ea3be16a616563466a3bc8/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1830,
2261,
1085,
12,
2890,
16,
2140,
16,
5907,
16,
4835,
16,
740,
33,
8381,
4672,
309,
486,
2140,
30,
327,
1408,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2103,
1830,
2261,
1085,
12,
2890,
16,
2140,
16,
5907,
16,
4835,
16,
740,
33,
8381,
4672,
309,
486,
2140,
30,
327,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
assert g.has_focus() | assert g.is_padded() | def exercise_flex_grid(): g = flex.grid() assert g.nd() == 0 assert g.size_1d() == 0 assert not g.has_origin() assert g.origin() == () assert g.all() == () assert g.last() == () assert g.last(1) == () assert g.last(0) == () assert g.is_0_based() assert not g.is_padded() assert not g.is_trivial_1d() g = flex.grid((2,3,5... | bbf8bb0a447c23a4aef85ae21b929ee322041ec6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/bbf8bb0a447c23a4aef85ae21b929ee322041ec6/tst_flex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
27592,
67,
5222,
13332,
314,
273,
16600,
18,
5222,
1435,
1815,
314,
18,
4880,
1435,
422,
374,
1815,
314,
18,
1467,
67,
21,
72,
1435,
422,
374,
1815,
486,
314,
18,
5332,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
27592,
67,
5222,
13332,
314,
273,
16600,
18,
5222,
1435,
1815,
314,
18,
4880,
1435,
422,
374,
1815,
314,
18,
1467,
67,
21,
72,
1435,
422,
374,
1815,
486,
314,
18,
5332,
67,
... |
self.curr_index = cursor[0] | if cursor == None: self.curr_index = 0 else: self.curr_index = cursor[0] | def set_selection(self, selection): """Tell the playlist what we currently have selected""" (cursor, thing) = self.view.get_cursor() self.curr_index = cursor[0] | 34e6274959148895500315f765480b7ab720f4fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4997/34e6274959148895500315f765480b7ab720f4fc/playlistui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
10705,
12,
2890,
16,
4421,
4672,
3536,
21009,
326,
16428,
4121,
732,
4551,
1240,
3170,
8395,
261,
9216,
16,
7757,
13,
273,
365,
18,
1945,
18,
588,
67,
9216,
1435,
365,
18,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
10705,
12,
2890,
16,
4421,
4672,
3536,
21009,
326,
16428,
4121,
732,
4551,
1240,
3170,
8395,
261,
9216,
16,
7757,
13,
273,
365,
18,
1945,
18,
588,
67,
9216,
1435,
365,
18,
170... |
default=os.path.normpath(os.path.join(os.path.dirname(sys.argv[0]), '..','share','dws'))), | buildTop,os.path.join('share','dws')), | def __init__(self): siteTop = Pathname('siteTop', 'Root of the tree where the website is generated and thus where *remoteSiteTop* is cached on the local system', default=os.getcwd()) remoteSiteTop = Pathname('remoteSiteTop', 'Root of the remote tree that holds the published website (ex: url:/var/cache).', default='') i... | 021d0af4493896ff6811cfbbd2baaa38effbe930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/021d0af4493896ff6811cfbbd2baaa38effbe930/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2834,
3401,
273,
2666,
529,
2668,
4256,
3401,
2187,
296,
2375,
434,
326,
2151,
1625,
326,
12504,
353,
4374,
471,
12493,
1625,
380,
7222,
4956,
3401,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2834,
3401,
273,
2666,
529,
2668,
4256,
3401,
2187,
296,
2375,
434,
326,
2151,
1625,
326,
12504,
353,
4374,
471,
12493,
1625,
380,
7222,
4956,
3401,
14,
... |
return re.search('^[A-F0-9]+$', string) | return re.search('^[A-F0-9]+$', string) | def ishex(string): return re.search('^[A-F0-9]+$', string) | 4ad0c2d979019c9dfdd8cb2810cbc56f296fe42a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2336/4ad0c2d979019c9dfdd8cb2810cbc56f296fe42a/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
7118,
12,
1080,
4672,
327,
283,
18,
3072,
2668,
66,
63,
37,
17,
42,
20,
17,
29,
3737,
8,
2187,
533,
13,
282,
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,
1652,
353,
7118,
12,
1080,
4672,
327,
283,
18,
3072,
2668,
66,
63,
37,
17,
42,
20,
17,
29,
3737,
8,
2187,
533,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if languages and lang not in languages: | if languages and lang not in pull_languages: | def pull(self, languages=[], resources=[], overwrite=True, fetchall=False, force=False): """ Pull all translations file from transifex server """ if resources: resource_list = resources else: resource_list = self.get_resource_list() | bceb97c06a0a1c5adf7d9663bdf2dade5e4c87c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11326/bceb97c06a0a1c5adf7d9663bdf2dade5e4c87c2/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6892,
12,
2890,
16,
8191,
22850,
6487,
2703,
22850,
6487,
6156,
33,
5510,
16,
24780,
33,
8381,
16,
2944,
33,
8381,
4672,
3536,
14899,
777,
7863,
585,
628,
906,
430,
338,
1438,
3536,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6892,
12,
2890,
16,
8191,
22850,
6487,
2703,
22850,
6487,
6156,
33,
5510,
16,
24780,
33,
8381,
16,
2944,
33,
8381,
4672,
3536,
14899,
777,
7863,
585,
628,
906,
430,
338,
1438,
3536,
309,... |
object. @type container: L{UID} | object. If no container is specified, then L{__builtin__} is used. @type container: L{UID} or C{None} | def findUID(name, container, docmap=None): """ Attempt to find the UID for the object that can be accessed with the name C{name} from the module C{module}. @param name: The name used to identify the object. @type name: C{string} @param container: The UID of the class or module containing the object. @type container: L... | 39553d71a9526086eba3011e50a8751439d26877 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/39553d71a9526086eba3011e50a8751439d26877/uid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3060,
12,
529,
16,
1478,
16,
997,
1458,
33,
7036,
4672,
3536,
12864,
358,
1104,
326,
10034,
364,
326,
733,
716,
848,
506,
15539,
598,
326,
508,
385,
95,
529,
97,
628,
326,
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,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3060,
12,
529,
16,
1478,
16,
997,
1458,
33,
7036,
4672,
3536,
12864,
358,
1104,
326,
10034,
364,
326,
733,
716,
848,
506,
15539,
598,
326,
508,
385,
95,
529,
97,
628,
326,
1605,
... |
elif key[1] == 'Maintenance': | elif key[1] in ['Maintenance', 'JobEnd']: | def data_sumup(self): """ Perform Sum-ups for Preparation and Production. The Sum-ups will be performed in two stages: 1. Simple Sum-ups to process through all selected lines and record the start and end lines of the Sum-ups. The results are saved in a intermediate dictionary. 2. Process dictionary to decide whether a ... | 41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
1364,
416,
12,
2890,
4672,
3536,
11217,
9352,
17,
18294,
364,
2962,
20961,
471,
10856,
349,
18,
1021,
9352,
17,
18294,
903,
506,
9591,
316,
2795,
20298,
30,
404,
18,
4477,
9352,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
501,
67,
1364,
416,
12,
2890,
4672,
3536,
11217,
9352,
17,
18294,
364,
2962,
20961,
471,
10856,
349,
18,
1021,
9352,
17,
18294,
903,
506,
9591,
316,
2795,
20298,
30,
404,
18,
4477,
9352,... |
pass | self.Report.vis = None break | def ParseReport(self, MetarReport=None): """Take report with raw info only and return it with in parsed values filled in. Note: This function edits the WeatherReport object you supply!""" if self.Report is None and MetarReport is None: raise EmptyReportException, \ "No report given on init and ParseReport()." elif Meta... | fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4602/fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8/pymetar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
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,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
326,
... |
self.body_prefix.append('\\begin{document}\n') | def visit_document(self, node): self.body_prefix.append('\\begin{document}\n') if self.settings.use_titlepage_env: self.body_prefix.append('\\begin{titlepage}\n') # titled document? if (self.use_latex_docinfo or len(node) and isinstance(node[0], nodes.title)): self.body_prefix.append('\\maketitle\n\n') self.body.append... | e6dd1bf37f940e4bb62e65a85b414caa9a5c54aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/e6dd1bf37f940e4bb62e65a85b414caa9a5c54aa/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
5457,
12,
2890,
16,
756,
4672,
309,
365,
18,
4272,
18,
1202,
67,
2649,
2433,
67,
3074,
30,
365,
18,
3432,
67,
3239,
18,
6923,
2668,
1695,
10086,
95,
2649,
2433,
6280,
82,
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,
3757,
67,
5457,
12,
2890,
16,
756,
4672,
309,
365,
18,
4272,
18,
1202,
67,
2649,
2433,
67,
3074,
30,
365,
18,
3432,
67,
3239,
18,
6923,
2668,
1695,
10086,
95,
2649,
2433,
6280,
82,
6... | |
filter(database.commands_on_host.c.current_state != 'done').\ | def getDependancies(myCommandOnHostID): (myCoH, myC, myT) = gatherCoHStuff(myCommandOnHostID) if myCoH == None: return [] session = sqlalchemy.orm.create_session() database = MscDatabase() # look for CoH from same bundle # look for CoH from lower order # look for unfinished CoH # look for CoH on same host coh_depende... | 321313c05802923dc31717f6bbd064db82e37e55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/321313c05802923dc31717f6bbd064db82e37e55/scheduling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4584,
304,
13689,
12,
4811,
2189,
1398,
2594,
734,
4672,
261,
4811,
4249,
44,
16,
3399,
39,
16,
3399,
56,
13,
273,
11090,
4249,
44,
510,
3809,
12,
4811,
2189,
1398,
2594,
734,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4584,
304,
13689,
12,
4811,
2189,
1398,
2594,
734,
4672,
261,
4811,
4249,
44,
16,
3399,
39,
16,
3399,
56,
13,
273,
11090,
4249,
44,
510,
3809,
12,
4811,
2189,
1398,
2594,
734,
13,... | |
tag = config.get(config.get("rank_method", "function"), "publication_journal_tag") | tag = config.get(function, "pubinfo_journal_title") | def get_citation_informations(recid_list, config): """scans the collections searching references (999C5x -fields) and citations for items in the recid_list returns a 4 list of dictionaries that contains the citation information of cds records examples: [ {} {} {} {} ] [ {5: 'SUT-DP-92-70-5'}, { 93: ['astro-ph/9812088']... | 6bd8928789e2be0641fc3eec567c56491b4ba708 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/6bd8928789e2be0641fc3eec567c56491b4ba708/bibrank_citation_indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
71,
8773,
67,
267,
687,
1012,
12,
3927,
350,
67,
1098,
16,
642,
4672,
3536,
1017,
634,
326,
6980,
15300,
5351,
261,
11984,
39,
25,
92,
300,
2821,
13,
471,
276,
18282,
364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
8773,
67,
267,
687,
1012,
12,
3927,
350,
67,
1098,
16,
642,
4672,
3536,
1017,
634,
326,
6980,
15300,
5351,
261,
11984,
39,
25,
92,
300,
2821,
13,
471,
276,
18282,
364,
1... |
def get_object(self, action, params, cls, path='/'): | def get_object(self, action, params, cls, path='/', parent=None): if not parent: parent = self | def get_object(self, action, params, cls, path='/'): response = self.make_request(action, params, path) body = response.read() if response.status == 200: obj = cls(self) h = handler.XmlHandler(obj, self) xml.sax.parseString(body, h) return obj else: boto.log.error('%s %s' % (response.status, response.reason)) boto.log.... | 63cb23a89100fe16c57994b574ed45e7a2780688 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/63cb23a89100fe16c57994b574ed45e7a2780688/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1612,
12,
2890,
16,
1301,
16,
859,
16,
2028,
16,
589,
2218,
19,
2187,
982,
33,
7036,
4672,
309,
486,
982,
30,
982,
273,
365,
766,
273,
365,
18,
6540,
67,
2293,
12,
1128,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1612,
12,
2890,
16,
1301,
16,
859,
16,
2028,
16,
589,
2218,
19,
2187,
982,
33,
7036,
4672,
309,
486,
982,
30,
982,
273,
365,
766,
273,
365,
18,
6540,
67,
2293,
12,
1128,
1... |
f = fields[fpos] | f = fields[fpos] | def check_type(field_type): if field_type == 'float': return 0.0 elif field_type == 'integer': return 0 elif field_type == 'boolean': return False return '' | 19c6bf3cbf9c418ef8f4c3664582e8a20fbf6749 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/19c6bf3cbf9c418ef8f4c3664582e8a20fbf6749/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
723,
12,
1518,
67,
723,
4672,
309,
652,
67,
723,
422,
296,
5659,
4278,
327,
374,
18,
20,
1327,
652,
67,
723,
422,
296,
7745,
4278,
327,
374,
1327,
652,
67,
723,
422,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
723,
12,
1518,
67,
723,
4672,
309,
652,
67,
723,
422,
296,
5659,
4278,
327,
374,
18,
20,
1327,
652,
67,
723,
422,
296,
7745,
4278,
327,
374,
1327,
652,
67,
723,
422,
296,
... |
if signature: | if signature is not None: | def __init__(self, func=None, name=None, signature=None, defaults=None, doc=None, module=None, funcdict=None): if func: # func can also be a class or a callable self.name = func.__name__ if self.name == '<lambda>': # small hack for lambda functions self.name = '_lambda_' self.doc = func.__doc__ self.module = func.__mod... | f1f691a6a455aa49e68f1b55d21d241b848142a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8313/f1f691a6a455aa49e68f1b55d21d241b848142a4/decorator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1326,
33,
7036,
16,
508,
33,
7036,
16,
3372,
33,
7036,
16,
3467,
33,
7036,
16,
997,
33,
7036,
16,
1605,
33,
7036,
16,
1326,
1576,
33,
7036,
4672,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1326,
33,
7036,
16,
508,
33,
7036,
16,
3372,
33,
7036,
16,
3467,
33,
7036,
16,
997,
33,
7036,
16,
1605,
33,
7036,
16,
1326,
1576,
33,
7036,
4672,
309,
... |
text = self._descr.childNodes[0].childNodes[0].childNodes[0] text.data = FuncDoc._SIGNATURE_RE.sub('', text.data, 1) if (text.data == '' and len(self._descr.childNodes) == 1 and len(self._descr.childNodes[0].childNodes) == 1 and len(self._descr.childNodes[0].childNodes[0].childNodes) == 1): self._descr = None | return 1 | def _init_builtin_signature(self, func): """ Construct the signature for a builtin function or method from its docstring. If the docstring uses the standard convention of including a signature in the first line of the docstring (and formats that signature according to standard conventions), then it will be used to ext... | d0164ceec6b7c656820c9cc53370c59eb64d4605 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d0164ceec6b7c656820c9cc53370c59eb64d4605/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
24553,
67,
8195,
12,
2890,
16,
1326,
4672,
3536,
14291,
326,
3372,
364,
279,
15273,
445,
578,
707,
628,
2097,
14525,
18,
225,
971,
326,
14525,
4692,
326,
4529,
15797,
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,
389,
2738,
67,
24553,
67,
8195,
12,
2890,
16,
1326,
4672,
3536,
14291,
326,
3372,
364,
279,
15273,
445,
578,
707,
628,
2097,
14525,
18,
225,
971,
326,
14525,
4692,
326,
4529,
15797,
434,... |
print "ERROR:",resultSW['Message'] return | print "ERROR:", resultSW['Message'] return | def do_show(self,args): """ Add a record to the File Catalog usage: show software - show components for which software is available show installed - show components installed in the host show status - show status of the installed components show database - show the status of the databases show my... | b68208f4ea74e3c61aead9e641ff73054212c46c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b68208f4ea74e3c61aead9e641ff73054212c46c/SystemAdministratorClientCLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4500,
12,
2890,
16,
1968,
4672,
3536,
1436,
279,
1409,
358,
326,
1387,
14953,
225,
4084,
30,
225,
2405,
17888,
1377,
300,
2405,
4085,
364,
1492,
17888,
353,
2319,
2405,
5876,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4500,
12,
2890,
16,
1968,
4672,
3536,
1436,
279,
1409,
358,
326,
1387,
14953,
225,
4084,
30,
225,
2405,
17888,
1377,
300,
2405,
4085,
364,
1492,
17888,
353,
2319,
2405,
5876,
37... |
parser.add_option("-s", "--sleep",dest="sleept",default=0,nargs=1,help="Time to sleep between sending next group of packets") | parser.add_option("-s", "--sleep",dest="slept",default=0,nargs=1,type="int",help="Time to sleep between sending each packet") | def OUIupdate(): """ update the ouilist """ #note to self why the hell am i calling another function hear? #must be marfi's code # Marfi: Which was working.... message.printMessage("Updating OUI list...") ouiUpdate() sys.exit(0) | fa857b01093718726fcfae8d4894e406c4919f54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9343/fa857b01093718726fcfae8d4894e406c4919f54/airdrop-ng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
531,
5370,
2725,
13332,
3536,
1089,
326,
16694,
330,
376,
3536,
468,
7652,
358,
365,
11598,
326,
366,
1165,
2125,
277,
4440,
4042,
445,
366,
2091,
35,
468,
11926,
506,
21282,
22056,
1807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
531,
5370,
2725,
13332,
3536,
1089,
326,
16694,
330,
376,
3536,
468,
7652,
358,
365,
11598,
326,
366,
1165,
2125,
277,
4440,
4042,
445,
366,
2091,
35,
468,
11926,
506,
21282,
22056,
1807,
... |
standard. | standard. This uses the inverse of Robinson Schensted algorithm. | def Permutation(l): """ Converts l to a permutation. INPUT: - an instance of Permutation_class, - list of integers, viewed as one-line permutation notation, - string, expressing the permutation in cycle notation, - list of tuples of integers, the permutation in cycle notation. - a PermutationGroupElement -... | bb47ab2a2c4bd9a71263ccdcacccf181a1408806 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/bb47ab2a2c4bd9a71263ccdcacccf181a1408806/permutation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13813,
9245,
12,
80,
4672,
3536,
20377,
328,
358,
279,
17440,
18,
225,
12943,
30,
282,
300,
225,
392,
791,
434,
13813,
9245,
67,
1106,
16,
225,
300,
225,
666,
434,
12321,
16,
1476,
329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13813,
9245,
12,
80,
4672,
3536,
20377,
328,
358,
279,
17440,
18,
225,
12943,
30,
282,
300,
225,
392,
791,
434,
13813,
9245,
67,
1106,
16,
225,
300,
225,
666,
434,
12321,
16,
1476,
329... |
for k in params.keys(): | for k in params: | def process_command(test, params, env, command, command_timeout, command_noncritical): """ Pre- or post- custom commands to be executed before/after a test is run @param test: An Autotest test object. @param params: A dict containing all VM and image parameters. @param env: The environment (a dict-like object). @param... | 46933f5a93936e1b66188f88f123ad4cb3048655 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/46933f5a93936e1b66188f88f123ad4cb3048655/kvm_preprocessing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
3076,
12,
3813,
16,
859,
16,
1550,
16,
1296,
16,
1296,
67,
4538,
16,
1296,
67,
5836,
28000,
4672,
3536,
2962,
17,
578,
1603,
17,
1679,
4364,
358,
506,
7120,
1865,
19,
5205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3076,
12,
3813,
16,
859,
16,
1550,
16,
1296,
16,
1296,
67,
4538,
16,
1296,
67,
5836,
28000,
4672,
3536,
2962,
17,
578,
1603,
17,
1679,
4364,
358,
506,
7120,
1865,
19,
5205,
... |
if containsAbstractMethods(classNode.getChild("methods-pub", False), visitedMethodNames) \ or containsAbstractMethods(classNode.getChild("methods-prot", False), visitedMethodNames): | if containsAbstractMethods(classNode.getChild("methods", False), visitedMethodNames): | def isClassAbstract(docTree, classNode, visitedMethodNames): if containsAbstractMethods(classNode.getChild("methods-pub", False), visitedMethodNames) \ or containsAbstractMethods(classNode.getChild("methods-prot", False), visitedMethodNames): # One of the methods is abstract return True # No abstract methods found -> ... | fd01ef3295a1176e645fcf0fc494b5b463177087 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/fd01ef3295a1176e645fcf0fc494b5b463177087/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25975,
7469,
12,
2434,
2471,
16,
25822,
16,
9711,
1305,
1557,
4672,
309,
1914,
7469,
4712,
12,
1106,
907,
18,
588,
1763,
2932,
5163,
3113,
1083,
3631,
9711,
1305,
1557,
4672,
468,
6942,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25975,
7469,
12,
2434,
2471,
16,
25822,
16,
9711,
1305,
1557,
4672,
309,
1914,
7469,
4712,
12,
1106,
907,
18,
588,
1763,
2932,
5163,
3113,
1083,
3631,
9711,
1305,
1557,
4672,
468,
6942,
... |
test_module = imp.load_module(full_module_name, f, test_file, ('.py', 'r', 1)) | test_module = imp.load_module(test_module_name, f, test_file, ('.py', 'r', 1)) | def _get_module_tests(self,module,level,verbosity): mstr = self._module_str d,f = os.path.split(module.__file__) | 7adb2e2d0abc93ca9572ff451ff3ca1acdfce4cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/7adb2e2d0abc93ca9572ff451ff3ca1acdfce4cb/numpytest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2978,
67,
16341,
12,
2890,
16,
2978,
16,
2815,
16,
16629,
8807,
4672,
312,
701,
273,
365,
6315,
2978,
67,
701,
302,
16,
74,
273,
1140,
18,
803,
18,
4939,
12,
2978,
1618... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2978,
67,
16341,
12,
2890,
16,
2978,
16,
2815,
16,
16629,
8807,
4672,
312,
701,
273,
365,
6315,
2978,
67,
701,
302,
16,
74,
273,
1140,
18,
803,
18,
4939,
12,
2978,
1618... |
def __init__(self, deferred, non_wontfix, all, fixable_count): | def __init__(self, deferred, non_wontfix, all, fixable, fixable_count): | def __init__(self, deferred, non_wontfix, all, fixable_count): self.deferred = deferred self.non_wontfix = non_wontfix self.all = all self.fixable_count = fixable_count | b087abeb1eb29b792b17098068c35d4db926103c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/b087abeb1eb29b792b17098068c35d4db926103c/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7045,
16,
1661,
67,
91,
1580,
904,
16,
777,
16,
2917,
429,
16,
2917,
429,
67,
1883,
4672,
365,
18,
26622,
273,
7045,
365,
18,
5836,
67,
91,
1580,
904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7045,
16,
1661,
67,
91,
1580,
904,
16,
777,
16,
2917,
429,
16,
2917,
429,
67,
1883,
4672,
365,
18,
26622,
273,
7045,
365,
18,
5836,
67,
91,
1580,
904,
... |
'L,LoaderFlags', 'L,NumberOfRvaAndSizes' )) __IMAGE_NT_HEADERS_format__ = ('IMAGE_NT_HEADERS', ('L,Signature',)) | 'I,LoaderFlags', 'I,NumberOfRvaAndSizes' )) __IMAGE_NT_HEADERS_format__ = ('IMAGE_NT_HEADERS', ('I,Signature',)) | def __init__(self, **args): for key, value in args.items(): setattr(self, key, value) | d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4/pefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
364,
498,
16,
460,
316,
833,
18,
3319,
13332,
9241,
12,
2890,
16,
498,
16,
460,
13,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
364,
498,
16,
460,
316,
833,
18,
3319,
13332,
9241,
12,
2890,
16,
498,
16,
460,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tests = [Signed_TestCase, Unsigned_TestCase] | tests = [Signed_TestCase, Unsigned_TestCase, Tuple_TestCase] | def test_main(): tests = [Signed_TestCase, Unsigned_TestCase] try: from _testcapi import getargs_L, getargs_K except ImportError: pass # PY_LONG_LONG not available else: tests.append(LongLong_TestCase) test_support.run_unittest(*tests) | 5f135787ec4040bfbeb16f2944086028635151db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5f135787ec4040bfbeb16f2944086028635151db/test_getargs2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
7434,
273,
306,
12294,
67,
4709,
2449,
16,
1351,
5679,
67,
4709,
2449,
16,
7257,
67,
4709,
2449,
65,
775,
30,
628,
389,
3813,
71,
2425,
1930,
336,
1968,
67,
48,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
13332,
7434,
273,
306,
12294,
67,
4709,
2449,
16,
1351,
5679,
67,
4709,
2449,
16,
7257,
67,
4709,
2449,
65,
775,
30,
628,
389,
3813,
71,
2425,
1930,
336,
1968,
67,
48,
... |
s = shelve.open(self.fn, protocol=1) | def test_binary_file_shelf(self): try: s = shelve.open(self.fn, protocol=1) s['key1'] = (1,2,3,4) self.assertEqual(s['key1'], (1,2,3,4)) s.close() finally: for f in glob.glob(self.fn+"*"): os.unlink(f) | dbb86a52dd4b50d221d9b67922e19b8215364f24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/dbb86a52dd4b50d221d9b67922e19b8215364f24/test_shelve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8578,
67,
768,
67,
674,
19079,
12,
2890,
4672,
775,
30,
272,
3292,
856,
21,
3546,
273,
261,
21,
16,
22,
16,
23,
16,
24,
13,
365,
18,
11231,
5812,
12,
87,
3292,
856,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8578,
67,
768,
67,
674,
19079,
12,
2890,
4672,
775,
30,
272,
3292,
856,
21,
3546,
273,
261,
21,
16,
22,
16,
23,
16,
24,
13,
365,
18,
11231,
5812,
12,
87,
3292,
856,
21,
... | |
@with_warning_restore def check_float_coerce(self, format, number): if PY_STRUCT_FLOAT_COERCE == 2: packed = struct.pack(format, number) floored = struct.unpack(format, packed)[0] self.assertEqual(floored, int(number), "did not correcly coerce float to int") return try: struct.pack(format, number) except (struct.err... | def decorator(*args, **kw): with warnings.catch_warnings(): # We need this function to warn every time, so stick an # unqualifed 'always' at the head of the filter list warnings.simplefilter("always") warnings.filterwarnings("error", category=DeprecationWarning) return func(*args, **kw) | c2855101b1c45ce48ac42876bda87060beeb9923 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c2855101b1c45ce48ac42876bda87060beeb9923/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7367,
30857,
1968,
16,
2826,
9987,
4672,
598,
5599,
18,
14683,
67,
12103,
13332,
468,
1660,
1608,
333,
445,
358,
1894,
3614,
813,
16,
1427,
25608,
392,
468,
640,
3369,
430,
329,
296,
177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7367,
30857,
1968,
16,
2826,
9987,
4672,
598,
5599,
18,
14683,
67,
12103,
13332,
468,
1660,
1608,
333,
445,
358,
1894,
3614,
813,
16,
1427,
25608,
392,
468,
640,
3369,
430,
329,
296,
177... | |
if self.s_type == "light": | if self.stype == "light": | def makeShaderMenu(self): self.shadersMenu = [] path = self.searchPaths.getValue() self.shadersMenu.append("None Selected") found = False if self.s_type == "light": if not self.settings.shadersLight.has_key(path): found = False print "setting found to False at key test" elif len(self.settings.shadersLight[path]) < 1: f... | 21d2bc48c8d049a163df549d2052804caf25f582 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/21d2bc48c8d049a163df549d2052804caf25f582/BtoRMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
19396,
4599,
12,
2890,
4672,
365,
18,
674,
361,
414,
4599,
273,
5378,
589,
273,
365,
18,
3072,
4466,
18,
24805,
1435,
365,
18,
674,
361,
414,
4599,
18,
6923,
2932,
7036,
4352,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19396,
4599,
12,
2890,
4672,
365,
18,
674,
361,
414,
4599,
273,
5378,
589,
273,
365,
18,
3072,
4466,
18,
24805,
1435,
365,
18,
674,
361,
414,
4599,
18,
6923,
2932,
7036,
4352,
82... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.