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 |
|---|---|---|---|---|---|---|
def parse(self): | def parse(self,type_regex=None): | def parse(self): """ Each line of the frame cache file is like the following: | 24b81d2ec6995782c831003011aff6c9c31e0e57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/24b81d2ec6995782c831003011aff6c9c31e0e57/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
723,
67,
7584,
33,
7036,
4672,
3536,
8315,
980,
434,
326,
2623,
1247,
585,
353,
3007,
326,
3751,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
723,
67,
7584,
33,
7036,
4672,
3536,
8315,
980,
434,
326,
2623,
1247,
585,
353,
3007,
326,
3751,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'zope.ucol >= 1.0', 'zope.html >= 0.0.1'], | 'zope.ucol >= 1.0', 'zope.html >= 0.0.1', 'zope.file', 'zope.mimetype'], | def get_version(): version_file = os.path.join('src', 'schooltool', 'version.txt') f = open(version_file, 'r') result = f.read() f.close() return result | 4c4886487ac7b8857d496bd131b88823af59a8e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7127/4c4886487ac7b8857d496bd131b88823af59a8e4/setup.eggs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1589,
13332,
1177,
67,
768,
273,
1140,
18,
803,
18,
5701,
2668,
4816,
2187,
296,
28204,
1371,
6738,
2187,
296,
1589,
18,
5830,
6134,
284,
273,
1696,
12,
1589,
67,
768,
16,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1589,
13332,
1177,
67,
768,
273,
1140,
18,
803,
18,
5701,
2668,
4816,
2187,
296,
28204,
1371,
6738,
2187,
296,
1589,
18,
5830,
6134,
284,
273,
1696,
12,
1589,
67,
768,
16,
296... |
suite.addTest(AlignatorDPLocalTestCase) | suite.addTest(AlignatorDPLocalTestCase) suite.addTest(AlignatorIterativeTestCase) | def suite(): suite = unittest.TestSuite() suite.addTest(AlignatorDPGlobalWithEndGapsPenaltiesTestCase) suite.addTest(AlignatorDPGlobalNoEndGapsPenaltiesTestCase) suite.addTest(AlignatorDPLocalTestCase) return suite | 5e733af4aecd66ad999b1b3957404bcb27462623 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8012/5e733af4aecd66ad999b1b3957404bcb27462623/test_Alignator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
10044,
639,
8640,
5160,
1190,
1638,
43,
6679,
24251,
2390,
606,
4709,
2449,
13,
11371,
18,
1289,
470... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11371,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
10044,
639,
8640,
5160,
1190,
1638,
43,
6679,
24251,
2390,
606,
4709,
2449,
13,
11371,
18,
1289,
470... |
if not cl.__dict__.has_key(name): | if object.im_class is not cl: | def docroutine(self, object, name=None, cl=None): """Produce text documentation for a function or method object.""" realname = object.__name__ name = name or realname note = '' skipdocs = 0 if inspect.ismethod(object): if cl: if not cl.__dict__.has_key(name): base = object.im_class basename = base.__name__ if base.__mo... | 74c8389b13d177e8560524598e1bc08247df81b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/74c8389b13d177e8560524598e1bc08247df81b5/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
22640,
12,
2890,
16,
733,
16,
508,
33,
7036,
16,
927,
33,
7036,
4672,
3536,
25884,
977,
7323,
364,
279,
445,
578,
707,
733,
12123,
2863,
529,
273,
733,
16186,
529,
972,
508,
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,
997,
22640,
12,
2890,
16,
733,
16,
508,
33,
7036,
16,
927,
33,
7036,
4672,
3536,
25884,
977,
7323,
364,
279,
445,
578,
707,
733,
12123,
2863,
529,
273,
733,
16186,
529,
972,
508,
273,
... |
print " $Revision: 1.10 $" print " $Date: 2002/01/08 16:19:51 $" | print " $Revision: 1.11 $" print " $Date: 2002/01/24 01:09:28 $" | def showVersion(): print print "RCS" print " $Revision: 1.10 $" print " $Date: 2002/01/08 16:19:51 $" print " $Author: noel $" print " $Source: /home/noel/active/projects/NoelOTL/RCS/otl2html.py,v $" print | 9f68eab08cc65f8a07b2f97786fc61f5fa8a2985 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/9f68eab08cc65f8a07b2f97786fc61f5fa8a2985/otl2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1444,
13332,
1172,
1172,
315,
54,
4596,
6,
1172,
315,
271,
7939,
30,
404,
18,
2499,
271,
6,
1172,
315,
271,
1626,
30,
4044,
22,
19,
1611,
19,
3247,
8743,
30,
5908,
30,
6030,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1444,
13332,
1172,
1172,
315,
54,
4596,
6,
1172,
315,
271,
7939,
30,
404,
18,
2499,
271,
6,
1172,
315,
271,
1626,
30,
4044,
22,
19,
1611,
19,
3247,
8743,
30,
5908,
30,
6030,
27... |
return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) | return eval(maxima.eval("jacobi_sn(%s,%s)"%(float(x),float(m)))) | def jacobi(sym,x,m): r""" Here sym = "pq", where p,q in {c,d,n,s}. This returns the value of the Jacobi function pq(x,m), as described in the documentation for SAGE's "special" module. There are a total of 12 functions described by this. EXAMPLES: sage: jacobi("sn",1,1) 0.76159415595576485 sage: jacobi("cd",1,1/2) 0.7... | cc779567aa298acc09ea51c1b5c6837eab786d56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/cc779567aa298acc09ea51c1b5c6837eab786d56/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
4... |
active, inactive = universe.get_active_inactive() a = universe.cell[:,active[0]] b = universe.cell[:,active[1]] | active, inactive = universe.cell.active_inactive a = universe.cell.matrix[:,active[0]] b = universe.cell.matrix[:,active[1]] | def create_pattern(): "Read the atom positions and transform them to the flat coordinates" active, inactive = universe.get_active_inactive() a = universe.cell[:,active[0]] b = universe.cell[:,active[1]] c = numpy.cross(a,b) tmp_cell = UnitCell(numpy.array([a,b,c]).transpose()) r = tmp_cell.calc_align_rotation_matrix() | 1a9b8e314b34f747fb6118588cefe2bcf5ba0405 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/1a9b8e314b34f747fb6118588cefe2bcf5ba0405/tube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4951,
13332,
315,
1994,
326,
3179,
6865,
471,
2510,
2182,
358,
326,
3569,
5513,
6,
2695,
16,
16838,
273,
29235,
18,
3855,
18,
3535,
67,
27366,
279,
273,
29235,
18,
3855,
18,
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,
752,
67,
4951,
13332,
315,
1994,
326,
3179,
6865,
471,
2510,
2182,
358,
326,
3569,
5513,
6,
2695,
16,
16838,
273,
29235,
18,
3855,
18,
3535,
67,
27366,
279,
273,
29235,
18,
3855,
18,
5... |
def __init__(self, nagios_instance='http://monitor.mgmt.stage.redhat.com/nagios/cgi-bin/cmd.cgi'): | def __init__(self, nagios_instance='http://monitor.mgmt.stage.redhat.com' + '/nagios/cgi-bin/cmd.cgi'): | def __init__(self, nagios_instance='http://monitor.mgmt.stage.redhat.com/nagios/cgi-bin/cmd.cgi'): """ You need a Kerberos ticket before running this. I'm not going to pass passwords over HTTP. """ self.nagios_instance = nagios_instance opener = urllib2.build_opener(HTTPKerberosAuthHandler()) urllib2.install_opener(ope... | bb29eec751694579f6d2612e2ac277d88fc6328f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12876/bb29eec751694579f6d2612e2ac277d88fc6328f/nagios.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
346,
7441,
67,
1336,
2218,
2505,
2207,
10259,
18,
9319,
18,
12869,
18,
1118,
11304,
18,
832,
11,
397,
1173,
27132,
7441,
19,
19062,
17,
4757,
19,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
290,
346,
7441,
67,
1336,
2218,
2505,
2207,
10259,
18,
9319,
18,
12869,
18,
1118,
11304,
18,
832,
11,
397,
1173,
27132,
7441,
19,
19062,
17,
4757,
19,
41... |
raise ApplicationConfigurationError(None,"The workflow job.inputdata.type='FILE_STAGER' is not enabled for the %s backend." % job.backend._name ) | if job.inputdata and job.inputdata._name in [ 'DQ2Dataset' ] and job.inputdata.type == 'FILE_STAGER': raise ApplicationConfigurationError(None,"The workflow job.inputdata.type='FILE_STAGER' is not enabled for the %s backend." % job.backend._name ) | def master_configure(self): | 5c2cd3646805fac7dd114fed7a3b371f9e556dbc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/5c2cd3646805fac7dd114fed7a3b371f9e556dbc/Athena.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
14895,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
14895,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
class Protocol: | class Protocol(object): | def __repr__(self): return ("<Message header=%r data=%r>"% (self.header, self.data)) | 916065f9c3794df9859b8eab30952cf800414d6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10498/916065f9c3794df9859b8eab30952cf800414d6b/rtmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
7566,
32,
1079,
1446,
5095,
86,
501,
5095,
86,
2984,
9,
261,
2890,
18,
3374,
16,
365,
18,
892,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
7566,
32,
1079,
1446,
5095,
86,
501,
5095,
86,
2984,
9,
261,
2890,
18,
3374,
16,
365,
18,
892,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
gLogger.info("SRM2Storage.putFile: Put file to storage, performing post transfer check.") | gLogger.debug("SRM2Storage.putFile: Put file to storage, performing post transfer check.") | def putFile(self,fileTuple): """Put a file to the physical storage """ if type(fileTuple) == types.TupleType: urls = [fileTuple] elif type(fileTuple) == types.ListType: urls = fileTuple else: return S_ERROR("SRM2Storage.putFile: Supplied file info must be tuple of list of tuples.") | 65f6eeefcc68513bb80614609dded77332a53729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/65f6eeefcc68513bb80614609dded77332a53729/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
812,
12,
2890,
16,
768,
9038,
4672,
3536,
6426,
279,
585,
358,
326,
11640,
2502,
3536,
309,
618,
12,
768,
9038,
13,
422,
1953,
18,
9038,
559,
30,
6903,
273,
306,
768,
9038,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1378,
812,
12,
2890,
16,
768,
9038,
4672,
3536,
6426,
279,
585,
358,
326,
11640,
2502,
3536,
309,
618,
12,
768,
9038,
13,
422,
1953,
18,
9038,
559,
30,
6903,
273,
306,
768,
9038,
65,
... |
groups = gl['groups'] | groups = gl[1]['groups'] | def _syncdb_handler(sender, **kwargs): # Import FAS groups verbosity = kwargs.get('verbosity', 1) if verbosity > 0: print _('Loading FAS groups...') try: gl = connection.group_list({'username': settings.FAS_USERNAME, 'password': settings.FAS_PASSWORD}) except AuthError: if verbosity > 0: print _('Unable to load FAS gro... | 5e4c79558b1f0be23e361dc48f9ae321d39c8b2b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9952/5e4c79558b1f0be23e361dc48f9ae321d39c8b2b/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8389,
1966,
67,
4176,
12,
15330,
16,
2826,
4333,
4672,
468,
6164,
478,
3033,
3252,
11561,
273,
1205,
18,
588,
2668,
16629,
8807,
2187,
404,
13,
309,
11561,
405,
374,
30,
1172,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8389,
1966,
67,
4176,
12,
15330,
16,
2826,
4333,
4672,
468,
6164,
478,
3033,
3252,
11561,
273,
1205,
18,
588,
2668,
16629,
8807,
2187,
404,
13,
309,
11561,
405,
374,
30,
1172,
389,
... |
if fd == 3: | if fd == 13: | def do_ll_os__ll_os_close(self, fd): if fd == 3: self.sock.close() self.sock = None else: raise OSError("Wrong fd %d" % (fd,)) | 1013acb49de18e040a05c64553de836a9724fb9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/1013acb49de18e040a05c64553de836a9724fb9a/sandlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2906,
67,
538,
972,
2906,
67,
538,
67,
4412,
12,
2890,
16,
5194,
4672,
309,
5194,
422,
5958,
30,
365,
18,
15031,
18,
4412,
1435,
365,
18,
15031,
273,
599,
469,
30,
1002,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
67,
2906,
67,
538,
972,
2906,
67,
538,
67,
4412,
12,
2890,
16,
5194,
4672,
309,
5194,
422,
5958,
30,
365,
18,
15031,
18,
4412,
1435,
365,
18,
15031,
273,
599,
469,
30,
1002,
100... |
A DiGraph is a set of vertices connected by oriented edges (cf. http://en.wikipedia.org/wiki/Digraph_%28mathematics%29 ). One can very easily create a directed graph in sage by typing:: sage: g=DiGraph() By typing the name of the DiGraph, one can get some basic information | A digraph or directed graph is a set of vertices connected by oriented edges (cf. http://en.wikipedia.org/wiki/Digraph_%28mathematics%29 ). One can very easily create a directed graph in Sage by typing:: sage: g = DiGraph() By typing the name of the digraph, one can get some basic information | def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False. | de4709933461015623fada3458699ad66b31a1d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/de4709933461015623fada3458699ad66b31a1d7/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
5... |
if commonsActive == True: | if commonsActive == True and site.family.name != "commons": | def checkbot(): """ Main function """ # Command line configurable parameters repeat = True # Restart after having check all the images? limit = 80 # How many images check? time_sleep = 30 # How many time sleep after the check? skip_number = 0 # How many images to skip before checking? waitTime = 0 # How many time sleep... | 6c58ef341b2e48f33504e7485b4b93cee6f7e0c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/6c58ef341b2e48f33504e7485b4b93cee6f7e0c5/checkimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
4819,
13332,
3536,
12740,
445,
3536,
468,
3498,
980,
14593,
1472,
7666,
273,
1053,
468,
20709,
1839,
7999,
866,
777,
326,
4602,
35,
1800,
273,
8958,
468,
9017,
4906,
4602,
866,
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,
866,
4819,
13332,
3536,
12740,
445,
3536,
468,
3498,
980,
14593,
1472,
7666,
273,
1053,
468,
20709,
1839,
7999,
866,
777,
326,
4602,
35,
1800,
273,
8958,
468,
9017,
4906,
4602,
866,
35,
... |
sage: a = animate(v, xmin=0, ymin=0) | sage: a = animate(v, xmin=0, ymin=0) | def graphics_array(self, ncols=3): """ Return a graphics array with the given number of columns with plots of the frames of this animation. | f4789762a95f5ca46886a066896eb6dfd2df3273 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f4789762a95f5ca46886a066896eb6dfd2df3273/animate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17313,
67,
1126,
12,
2890,
16,
21330,
33,
23,
4672,
3536,
2000,
279,
17313,
526,
598,
326,
864,
1300,
434,
2168,
598,
17931,
434,
326,
7793,
434,
333,
8794,
18,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17313,
67,
1126,
12,
2890,
16,
21330,
33,
23,
4672,
3536,
2000,
279,
17313,
526,
598,
326,
864,
1300,
434,
2168,
598,
17931,
434,
326,
7793,
434,
333,
8794,
18,
2,
-100,
-100,
-100,
-1... |
context = self._getContext() | def _start_link(self, attrsD): attrsD.setdefault('rel', 'alternate') attrsD.setdefault('type', 'text/html') attrsD = self._itsAnHrefDamnIt(attrsD) if attrsD.has_key('href'): attrsD['href'] = self.resolveURI(attrsD['href']) expectingText = self.infeed or self.inentry or self.insource context = self._getContext() context... | 44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
1232,
12,
2890,
16,
3422,
40,
4672,
3422,
40,
18,
542,
1886,
2668,
2878,
2187,
296,
16025,
340,
6134,
3422,
40,
18,
542,
1886,
2668,
723,
2187,
296,
955,
19,
2620,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1937,
67,
1232,
12,
2890,
16,
3422,
40,
4672,
3422,
40,
18,
542,
1886,
2668,
2878,
2187,
296,
16025,
340,
6134,
3422,
40,
18,
542,
1886,
2668,
723,
2187,
296,
955,
19,
2620,
6134,... | |
forms of weight $2$ with character $\epsilon. | forms of weight $2$ with character $\epsilon$. | def CohenOesterle(eps, k): r""" Compute the Cohen-Oesterle function associate to eps, $k$. This is a summand in the formula for the dimension of the space of cusp forms of weight $2$ with character $\epsilon. INPUT: eps -- Dirichlet character k -- integer OUTPUT: element of the base ring of eps. EXAMPLES: sage: G.<... | c82112a889c87779a875085f7c30d0e045ec245d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c82112a889c87779a875085f7c30d0e045ec245d/dims.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7695,
76,
275,
51,
7654,
298,
12,
13058,
16,
417,
4672,
436,
8395,
8155,
326,
7695,
76,
275,
17,
51,
7654,
298,
445,
13251,
358,
7785,
16,
271,
79,
8,
18,
225,
1220,
353,
279,
2142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7695,
76,
275,
51,
7654,
298,
12,
13058,
16,
417,
4672,
436,
8395,
8155,
326,
7695,
76,
275,
17,
51,
7654,
298,
445,
13251,
358,
7785,
16,
271,
79,
8,
18,
225,
1220,
353,
279,
2142,
... |
del context[objid] | del context[objid] | def __format(self, object, stream, indent, allowance, context, level): level = level + 1 if context.has_key(id(object)): object = _Recursion(object) self.__recursive = 1 rep = self.__repr(object, context, level - 1) objid = id(object) context[objid] = 1 typ = type(object) sepLines = len(rep) > (self.__width - 1 - inden... | ba4d72bf0a5b1cae692d9b74ac4f71499e942a90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ba4d72bf0a5b1cae692d9b74ac4f71499e942a90/pprint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2139,
12,
2890,
16,
733,
16,
1407,
16,
3504,
16,
1699,
1359,
16,
819,
16,
1801,
4672,
1801,
273,
1801,
397,
404,
309,
819,
18,
5332,
67,
856,
12,
350,
12,
1612,
3719,
30,
733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2139,
12,
2890,
16,
733,
16,
1407,
16,
3504,
16,
1699,
1359,
16,
819,
16,
1801,
4672,
1801,
273,
1801,
397,
404,
309,
819,
18,
5332,
67,
856,
12,
350,
12,
1612,
3719,
30,
733,
... |
u.warn(_("abort: %s - %s\n") % (inst.strerror, inst.filename)) | u.warn(_("abort: %s: %s\n") % (inst.strerror, inst.filename)) | def print_time(): t = get_times() u.warn(_("Time: real %.3f secs (user %.3f+%.3f sys %.3f+%.3f)\n") % (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3])) | f9d9ccf159173372d8688dc87e7c082029077b5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/f9d9ccf159173372d8688dc87e7c082029077b5c/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
957,
13332,
268,
273,
336,
67,
8293,
1435,
582,
18,
8935,
24899,
2932,
950,
30,
2863,
12639,
23,
74,
18043,
261,
1355,
12639,
23,
74,
15,
9,
18,
23,
74,
2589,
12639,
23,
74... |
f = self.frags[0] if 1 and hasattr(self,'blPara') and getattr(self,'_splitpara',0): return f.clone(kind=0, lines=self.blPara.lines) lines = [] lineno = 0 self.height = 0 f = self.frags[0] if hasattr(f,'text'): text = f.text else: text = ''.join(getattr(f,'words',[])) from reportlab.lib.textsplit import wordSplit ... | if hasattr(self,'blPara') and getattr(self,'_splitpara',0): return self.blPara autoLeading = getattr(self,'autoLeading',getattr(style,'autoLeading','')) calcBounds = autoLeading not in ('','off') return cjkFragSplit(frags, maxWidths, calcBounds) | def breakLinesCJK(self, width): """Initially, the dumbest possible wrapping algorithm. Cannot handle font variations.""" | eec5bf031dd52b1c7c781cc7f260f1554571bbc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/eec5bf031dd52b1c7c781cc7f260f1554571bbc1/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
5763,
39,
19474,
12,
2890,
16,
1835,
4672,
3536,
2570,
6261,
16,
326,
302,
3592,
395,
3323,
14702,
4886,
18,
14143,
1640,
3512,
28401,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
898,
5763,
39,
19474,
12,
2890,
16,
1835,
4672,
3536,
2570,
6261,
16,
326,
302,
3592,
395,
3323,
14702,
4886,
18,
14143,
1640,
3512,
28401,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for c in self.children.values(): c.destroy() if self.master.children.has_key(self._name): del self.master.children[self._name] if self.master.subwidget_list.has_key(self._name): del self.master.subwidget_list[self._name] if self.destroy_physically: self.tk.call('destroy', self._w) | for c in self.children.values(): c.destroy() if self.master.children.has_key(self._name): del self.master.children[self._name] if self.master.subwidget_list.has_key(self._name): del self.master.subwidget_list[self._name] if self.destroy_physically: self.tk.call('destroy', self._w) | def destroy(self): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.assertEqual([credit_card], self.GetAutoFillProfile()['credit_cards']) | self.assertEqual([expected_credit_card], self.GetAutoFillProfile()['credit_cards']) | def testAutofillInvalid(self): """Test filling in invalid values for profiles and credit cards.""" # First try profiles with invalid input. without_invalid = {'NAME_FIRST': u'Will', 'ADDRESS_HOME_CITY': 'Sunnyvale', 'ADDRESS_HOME_STATE': 'CA', 'ADDRESS_HOME_ZIP': 'my_zip', 'ADDRESS_HOME_COUNTRY': 'USA'} # Add some inva... | 980e9d73673ae07b048fa98e687be8469d0a3428 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/980e9d73673ae07b048fa98e687be8469d0a3428/autofill.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7150,
792,
737,
1941,
12,
2890,
4672,
3536,
4709,
25740,
316,
2057,
924,
364,
11788,
471,
12896,
18122,
12123,
468,
5783,
775,
11788,
598,
2057,
810,
18,
2887,
67,
5387,
273,
13666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7150,
792,
737,
1941,
12,
2890,
4672,
3536,
4709,
25740,
316,
2057,
924,
364,
11788,
471,
12896,
18122,
12123,
468,
5783,
775,
11788,
598,
2057,
810,
18,
2887,
67,
5387,
273,
13666,
... |
if dodiff: | if dodiff == 'binary': fp.write(''.join(header)) b85diff(fp, to, tn) elif dodiff: | def addmodehdr(header, omode, nmode): if omode != nmode: header.append('old mode %s\n' % omode) header.append('new mode %s\n' % nmode) | 13b19aa85f8698c99c928c81b5592c352d772e5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/13b19aa85f8698c99c928c81b5592c352d772e5c/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3188,
16587,
12,
3374,
16,
320,
3188,
16,
290,
3188,
4672,
309,
320,
3188,
480,
290,
3188,
30,
1446,
18,
6923,
2668,
1673,
1965,
738,
87,
64,
82,
11,
738,
320,
3188,
13,
1446,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3188,
16587,
12,
3374,
16,
320,
3188,
16,
290,
3188,
4672,
309,
320,
3188,
480,
290,
3188,
30,
1446,
18,
6923,
2668,
1673,
1965,
738,
87,
64,
82,
11,
738,
320,
3188,
13,
1446,
1... |
matt.append(bpy.data.materials.new(materials[idx_mat][0])) matt[n].diffuse_color=materials[idx_mat][1][:3] matt[n].alpha=materials[idx_mat][1][3] if materials[idx_mat][1][3]<1.0: matt[n].use_transparency=True matt[n].specular_color=materials[idx_mat][3][:3] matt[n].specular_alpha=materials[idx_mat][3][3] | if idx_mat>=0: matt.append(bpy.data.materials.new(materials[idx_mat][0])) matt[n].diffuse_color=materials[idx_mat][1][:3] matt[n].alpha=materials[idx_mat][1][3] if materials[idx_mat][1][3]<1.0: matt[n].use_transparency=True matt[n].specular_color=materials[idx_mat][3][:3] matt[n].specular_alpha=materials[idx_mat][3][... | def create_materials(groups,materials,textures,orbiterpath,param_vector): ''' To create materials, some steps has to be done: 1. Create unique material+texture pairs with corresponding mesh groups 2. Create textures 3. Create materials,assign textures to them if needed, assign materials to mesh groups ''' #1. =======... | ec8905efedfda89511122eccacd10f493de9b5f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10993/ec8905efedfda89511122eccacd10f493de9b5f3/io_orbiter_msh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
20542,
87,
12,
4650,
16,
20542,
87,
16,
955,
1823,
16,
16640,
2165,
803,
16,
891,
67,
7737,
4672,
9163,
2974,
752,
31824,
16,
2690,
6075,
711,
358,
506,
2731,
30,
404,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
20542,
87,
12,
4650,
16,
20542,
87,
16,
955,
1823,
16,
16640,
2165,
803,
16,
891,
67,
7737,
4672,
9163,
2974,
752,
31824,
16,
2690,
6075,
711,
358,
506,
2731,
30,
404,
18,
1... |
print >>sys.stderr,"rquery: send_query: Sent to",peers_to_query,"peers" | print >>sys.stderr,"rquery: send_query: Sent to",peers_to_query,"peers; query=", query | def network_send_query_callback(self,query,usercallback,max_peers_to_query): """ Called by overlay thread """ p = self.create_query(query,usercallback) m = QUERY+p query_conn_callback_lambda = lambda exc,dns,permid,selversion:self.conn_callback(exc,dns,permid,selversion,m) | e6fadf9a13c1bc37fff325bf57a0aff0c86cdcab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/e6fadf9a13c1bc37fff325bf57a0aff0c86cdcab/RemoteQueryMsgHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2483,
67,
4661,
67,
2271,
67,
3394,
12,
2890,
16,
2271,
16,
1355,
3394,
16,
1896,
67,
30502,
67,
869,
67,
2271,
4672,
3536,
11782,
635,
9218,
2650,
3536,
293,
273,
365,
18,
2640,
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,
2483,
67,
4661,
67,
2271,
67,
3394,
12,
2890,
16,
2271,
16,
1355,
3394,
16,
1896,
67,
30502,
67,
869,
67,
2271,
4672,
3536,
11782,
635,
9218,
2650,
3536,
293,
273,
365,
18,
2640,
67,
... |
if self.datasetname and not (job.application._name in ['Athena','AthenaTask'] and job.backend._name in [ 'LCG', 'Local', 'LSF', 'PBS', 'SGE']): | if self.datasetname and not (job.application._name in ['Athena', 'AthenaTask', 'AMAAthena' ] and job.backend._name in [ 'LCG', 'Local', 'LSF', 'PBS', 'SGE']): | def fill(self, type=None, name=None, **options ): """Determine outputdata and outputsandbox locations of finished jobs and fill output variable""" | 50a5026c4d7db935f42714a90c6e58778ea81f5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/50a5026c4d7db935f42714a90c6e58778ea81f5d/DQ2Dataset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
12,
2890,
16,
618,
33,
7036,
16,
508,
33,
7036,
16,
2826,
2116,
262,
30,
3536,
8519,
876,
892,
471,
6729,
9069,
7838,
434,
6708,
6550,
471,
3636,
876,
2190,
8395,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
12,
2890,
16,
618,
33,
7036,
16,
508,
33,
7036,
16,
2826,
2116,
262,
30,
3536,
8519,
876,
892,
471,
6729,
9069,
7838,
434,
6708,
6550,
471,
3636,
876,
2190,
8395,
2,
-100,
-100,
... |
proxy_auth = base64.b64encode(proxy_passwd.encode()).strip() | proxy_auth = base64.b64encode(proxy_passwd.encode()).decode('ascii') | def _open_generic_http(self, connection_factory, url, data): """Make an HTTP connection using connection_class. | 70ed85ce19963c0378b0b3709d5bbf6fbfb6acaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/70ed85ce19963c0378b0b3709d5bbf6fbfb6acaf/request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
13540,
67,
2505,
12,
2890,
16,
1459,
67,
6848,
16,
880,
16,
501,
4672,
3536,
6464,
392,
2239,
1459,
1450,
1459,
67,
1106,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
13540,
67,
2505,
12,
2890,
16,
1459,
67,
6848,
16,
880,
16,
501,
4672,
3536,
6464,
392,
2239,
1459,
1450,
1459,
67,
1106,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
noheaders(), 'file:'+file) | headers, 'file:'+file) | def open_local_file(self, url): host, file = splithost(url) if not host: return addinfourl( open(url2pathname(file), 'rb'), noheaders(), 'file:'+file) host, port = splitport(host) if not port and socket.gethostbyname(host) in ( localhost(), thishost()): file = unquote(file) return addinfourl( open(url2pathname(file), '... | e9a8940e275731d0de26af6b1360453333f2a907 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e9a8940e275731d0de26af6b1360453333f2a907/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
1479,
16,
585,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
327,
527,
10625,
477,
80,
12,
1696,
12,
718,
22,
28336,
12,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
67,
3729,
67,
768,
12,
2890,
16,
880,
4672,
1479,
16,
585,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
327,
527,
10625,
477,
80,
12,
1696,
12,
718,
22,
28336,
12,
7... |
for lfn,info in lfns.items(): | for lfn, info in lfns.items(): | def setReplicaStatus(self,lfn): res = self.__checkArgumentFormat(lfn) if not res['OK']: return res lfns = res['Value'] created = False if len(lfns) > 2: created = self.__openSession() failed = {} successful = {} for lfn,info in lfns.items(): pfn = info['PFN'] se = info['SE'] status = info['Status'] res = self.__setRepl... | 6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
14222,
1482,
12,
2890,
16,
80,
4293,
4672,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
80,
4293,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
18594,
2387,
273,
400,
3292,
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,
444,
14222,
1482,
12,
2890,
16,
80,
4293,
4672,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
80,
4293,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
18594,
2387,
273,
400,
3292,
62... |
assert checker.check_output(expected, str(result), ELLIPSIS), result | _check_output(result, expected) | def test_freeze_bazaar_clone(): """ Test freezing a Bazaar clone. """ reset_env() env = get_env() checker = OutputChecker() result = env.run('bzr', 'checkout', '-r', '174', 'http://bazaar.launchpad.net/%7Edjango-wikiapp/django-wikiapp/release-0.1/', 'django-wikiapp') result = env.run(os.path.join(env.bin_dir, 'python'... | 23d3d0fdb48cf271676f74c50d5d52819a2e9e01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12982/23d3d0fdb48cf271676f74c50d5d52819a2e9e01/test_freeze.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
29631,
67,
70,
1561,
69,
297,
67,
14056,
13332,
3536,
7766,
4843,
94,
310,
279,
605,
1561,
69,
297,
3236,
18,
225,
3536,
2715,
67,
3074,
1435,
1550,
273,
336,
67,
3074,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29631,
67,
70,
1561,
69,
297,
67,
14056,
13332,
3536,
7766,
4843,
94,
310,
279,
605,
1561,
69,
297,
3236,
18,
225,
3536,
2715,
67,
3074,
1435,
1550,
273,
336,
67,
3074,
1435,... |
minimal. In the integer case, see Integer._xgcd() for minimal | minimal. In the integer case, see :meth:`sage.rings.integer.Integer._xgcd()` for minimal | def xgcd(a, b): """ Returns triple (g,s,t) such that `g = s*a+t*b = gcd(a,b)`. INPUT: - ``a, b`` - integers or univariate polynomials (or any type with an xgcd method). OUTPUT: - ``g, s, t`` - such that g = s\*a + t\*b .. note:: There is no guarantee that the returned cofactors (s and t) are minimal. In the... | 08206c95546f1db2a947692b19f3ca4ec939d5d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/08206c95546f1db2a947692b19f3ca4ec939d5d9/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
75,
4315,
12,
69,
16,
324,
4672,
3536,
2860,
14543,
261,
75,
16,
87,
16,
88,
13,
4123,
716,
1375,
75,
273,
272,
14,
69,
15,
88,
14,
70,
273,
14876,
12,
69,
16,
70,
13,
8338,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
619,
75,
4315,
12,
69,
16,
324,
4672,
3536,
2860,
14543,
261,
75,
16,
87,
16,
88,
13,
4123,
716,
1375,
75,
273,
272,
14,
69,
15,
88,
14,
70,
273,
14876,
12,
69,
16,
70,
13,
8338,... |
if queueObj['commands'] == False: | if queueObj['local_filepath']: | def writeOut(self, queueObj): """Write relevant queueObj information to stdout and/or to the outfile (if one is set)""" if queueObj['commands'] == False: queueObj['commands'] = "sshpt: sftp.put %s %s:%s" % (queueObj['local_filepath'], queueObj['host'], queueObj['remote_filepath']) elif queueObj['sudo'] is False: if len... | 4f8f6cdfc55c998b5417f29f7315b2347d1e9ca3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/4f8f6cdfc55c998b5417f29f7315b2347d1e9ca3/sshpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1182,
12,
2890,
16,
2389,
2675,
4672,
3536,
3067,
9368,
2389,
2675,
1779,
358,
3909,
471,
19,
280,
358,
326,
8756,
261,
430,
1245,
353,
444,
15574,
309,
2389,
2675,
3292,
3729,
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,
1045,
1182,
12,
2890,
16,
2389,
2675,
4672,
3536,
3067,
9368,
2389,
2675,
1779,
358,
3909,
471,
19,
280,
358,
326,
8756,
261,
430,
1245,
353,
444,
15574,
309,
2389,
2675,
3292,
3729,
67,... |
for subarch in subarches: if self.has_key(('base', arch, subarch)): avail = self['base', arch, subarch].get('available', True) | for featureset in featuresets: if self.has_key(('base', arch, featureset)): avail = self['base', arch, featureset].get('available', True) | def _readArch(self, arch): config = ConfigParser(self.schemas) config.read(self.getFiles("%s/%s" % (arch, self.config_name))) | 4fce5d1f110fa164dbdea466ff857ee6aec6f31a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5794/4fce5d1f110fa164dbdea466ff857ee6aec6f31a/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
12269,
12,
2890,
16,
6637,
4672,
642,
273,
25076,
12,
2890,
18,
17928,
13,
642,
18,
896,
12,
2890,
18,
588,
2697,
27188,
87,
5258,
87,
6,
738,
261,
991,
16,
365,
18,
1425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
896,
12269,
12,
2890,
16,
6637,
4672,
642,
273,
25076,
12,
2890,
18,
17928,
13,
642,
18,
896,
12,
2890,
18,
588,
2697,
27188,
87,
5258,
87,
6,
738,
261,
991,
16,
365,
18,
1425,
... |
_do_under_lines(i, t_off, tx) | _do_under_lines(i, t_off+leftIndent, tx) | def drawPara(self,debug=0): """Draws a paragraph according to the given style. Returns the final y position at the bottom. Not safe for paragraphs without spaces e.g. Japanese; wrapping algorithm will go infinite.""" | 6c7e147d9130dacadd2fe093bd3e271add7cebe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/6c7e147d9130dacadd2fe093bd3e271add7cebe3/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
23529,
12,
2890,
16,
4148,
33,
20,
4672,
3536,
25113,
279,
10190,
4888,
358,
326,
864,
2154,
18,
2860,
326,
727,
677,
1754,
622,
326,
5469,
18,
2288,
4183,
364,
24552,
2887,
7292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
23529,
12,
2890,
16,
4148,
33,
20,
4672,
3536,
25113,
279,
10190,
4888,
358,
326,
864,
2154,
18,
2860,
326,
727,
677,
1754,
622,
326,
5469,
18,
2288,
4183,
364,
24552,
2887,
7292,
... |
tls_port=settings.sip.tls_port if 'tls' in settings.sip.transport_list else None, | tls_port=None, | def _initialize_subsystems(self): account_manager = AccountManager() dns_manager = DNSManager() engine = Engine() notification_center = NotificationCenter() session_manager = SessionManager() settings = SIPSimpleSettings() | 588d6c81239e6ba116f0d44589339842c0495b5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/588d6c81239e6ba116f0d44589339842c0495b5d/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11160,
67,
1717,
4299,
87,
12,
2890,
4672,
2236,
67,
4181,
273,
6590,
1318,
1435,
6605,
67,
4181,
273,
8858,
1318,
1435,
4073,
273,
10507,
1435,
3851,
67,
5693,
273,
8050,
8449,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11160,
67,
1717,
4299,
87,
12,
2890,
4672,
2236,
67,
4181,
273,
6590,
1318,
1435,
6605,
67,
4181,
273,
8858,
1318,
1435,
4073,
273,
10507,
1435,
3851,
67,
5693,
273,
8050,
8449,
143... |
sage: I.basis() | sage: I.basis() | def basis(self): """ Return an immutable sequence of elements of this ideal (note: their parent is the number field) that form a basis for this ideal viewed as a ZZ-module. | bc7c504dc9cf63a945e3f2f80173db8800f39ac6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bc7c504dc9cf63a945e3f2f80173db8800f39ac6/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
12,
2890,
4672,
3536,
2000,
392,
11732,
3102,
434,
2186,
434,
333,
23349,
261,
7652,
30,
3675,
982,
353,
326,
1300,
652,
13,
716,
646,
279,
10853,
364,
333,
23349,
1476,
329,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
12,
2890,
4672,
3536,
2000,
392,
11732,
3102,
434,
2186,
434,
333,
23349,
261,
7652,
30,
3675,
982,
353,
326,
1300,
652,
13,
716,
646,
279,
10853,
364,
333,
23349,
1476,
329,
487,... |
except: | except KeyError: | def InstallConfigFile(self, entry): '''Install ConfigFile Entry''' if self.setup['dryrun'] or self.setup['verbose']: print "Installing ConfigFile %s" % (entry.get('name')) if self.setup['dryrun']: return False parent = "/".join(entry.get('name').split('/')[:-1]) if parent: try: sloc = lstat(parent) try: if not S_ISDIR(... | a1e655a987bee4dde768f3b0974bb77cb5c5b723 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/a1e655a987bee4dde768f3b0974bb77cb5c5b723/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
13705,
12,
2890,
16,
1241,
4672,
9163,
6410,
31988,
3841,
26418,
309,
365,
18,
8401,
3292,
25011,
2681,
3546,
578,
365,
18,
8401,
3292,
11369,
3546,
30,
1172,
315,
6410,
310,
31988,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10284,
13705,
12,
2890,
16,
1241,
4672,
9163,
6410,
31988,
3841,
26418,
309,
365,
18,
8401,
3292,
25011,
2681,
3546,
578,
365,
18,
8401,
3292,
11369,
3546,
30,
1172,
315,
6410,
310,
31988,... |
patch = patch and str(patch) | def lookup(self, patch, strict=False): patch = patch and str(patch) | 082c7ebaef0e9bf46ec594f501aab0cfc1a1989a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/082c7ebaef0e9bf46ec594f501aab0cfc1a1989a/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
12,
2890,
16,
4729,
16,
5490,
33,
8381,
4672,
4729,
273,
4729,
471,
609,
12,
2272,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
12,
2890,
16,
4729,
16,
5490,
33,
8381,
4672,
4729,
273,
4729,
471,
609,
12,
2272,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if VALID_SECTOR(w.x,w.y) and game.quad[w.x][w.y]==IHDOT: | if VALID_SECTOR(w.i,w.j) and game.quad[w.i][w.j]==IHDOT: | def mayday(): "Yell for help from nearest starbase." # There's more than one way to move in this game! scanner.chew() # Test for conditions which prevent calling for help if game.condition == "docked": prout(_("Lt. Uhura- \"But Captain, we're already docked.\"")) return if damaged(DRADIO): prout(_("Subspace radio dama... | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2026,
2881,
13332,
315,
61,
1165,
364,
2809,
628,
11431,
10443,
1969,
1199,
468,
6149,
1807,
1898,
2353,
1245,
4031,
358,
3635,
316,
333,
7920,
5,
7683,
18,
343,
359,
1435,
468,
7766,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2026,
2881,
13332,
315,
61,
1165,
364,
2809,
628,
11431,
10443,
1969,
1199,
468,
6149,
1807,
1898,
2353,
1245,
4031,
358,
3635,
316,
333,
7920,
5,
7683,
18,
343,
359,
1435,
468,
7766,
36... |
d0 = mx.DateTime.strptime(proj.date_start,'%Y-%m-%d') | d0 = DateTime.strptime(proj.date_start,'%Y-%m-%d') | def _compute_project(cr, uid, project, date_begin): tasks, last_date = _compute_tasks(cr, uid, project.tasks, date_begin) for proj in project.child_id: d0 = mx.DateTime.strptime(proj.date_start,'%Y-%m-%d') if d0 > last_date: last_date = d0 t2, l2 = _compute_project(cr, uid, proj, last_date) tasks.update(t2) last_date =... | 1d8975eb30ed6fc5207e146b26f41c17b375abf6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/1d8975eb30ed6fc5207e146b26f41c17b375abf6/_date_compute.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9200,
67,
4406,
12,
3353,
16,
4555,
16,
1984,
16,
1509,
67,
10086,
4672,
4592,
16,
1142,
67,
712,
273,
389,
9200,
67,
9416,
12,
3353,
16,
4555,
16,
1984,
18,
9416,
16,
1509,
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,
9200,
67,
4406,
12,
3353,
16,
4555,
16,
1984,
16,
1509,
67,
10086,
4672,
4592,
16,
1142,
67,
712,
273,
389,
9200,
67,
9416,
12,
3353,
16,
4555,
16,
1984,
18,
9416,
16,
1509,
67,... |
print val | sys.stdout.write(val) | def return_(val): """ Return the specified return value in the appropriate format """ if val == True: print "true" sys.exit(0) elif val == False: print "false" sys.exit(1) else: print val sys.exit(255) | 961d2437ed9bcf20019eb9ba61f747546b0d27b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/961d2437ed9bcf20019eb9ba61f747546b0d27b2/cmdline_auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
67,
12,
1125,
4672,
3536,
2000,
326,
1269,
327,
460,
316,
326,
5505,
740,
3536,
309,
1244,
422,
1053,
30,
1172,
315,
3767,
6,
2589,
18,
8593,
12,
20,
13,
1327,
1244,
422,
1083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
327,
67,
12,
1125,
4672,
3536,
2000,
326,
1269,
327,
460,
316,
326,
5505,
740,
3536,
309,
1244,
422,
1053,
30,
1172,
315,
3767,
6,
2589,
18,
8593,
12,
20,
13,
1327,
1244,
422,
1083,
... |
oscmd("built/bin/egg2bam -pr " + preconv + " -o " + bam + " " + egg) | oscmd("built/bin/egg2bam " + preconv + " -o " + bam + " " + egg) | def CompileBam(preconv, bam, egg): if (egg[-4:] == ".flt"): ifile = os.path.basename(egg) oscmd("built/bin/flt2egg -pr " + preconv + " -o built/tmp/"+ifile+".egg" + " " + egg) oscmd("built/bin/egg2bam -o " + bam + " built/tmp/"+ifile+".egg") else: oscmd("built/bin/egg2bam -pr " + preconv + " -o " + bam + " " + egg) | 28070dd33e12beb6eebc9a9bb33e34410c2ce46d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/28070dd33e12beb6eebc9a9bb33e34410c2ce46d/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
38,
301,
12,
1484,
4896,
16,
11400,
16,
25144,
4672,
309,
261,
23171,
18919,
24,
26894,
422,
3552,
31864,
6,
4672,
309,
398,
273,
1140,
18,
803,
18,
13909,
12,
23171,
13,
31476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16143,
38,
301,
12,
1484,
4896,
16,
11400,
16,
25144,
4672,
309,
261,
23171,
18919,
24,
26894,
422,
3552,
31864,
6,
4672,
309,
398,
273,
1140,
18,
803,
18,
13909,
12,
23171,
13,
31476,
... |
self.MaxSecondColumnWidth = 0 | self.MaxFileNamePerformerColumnWidth = 0 self.MaxArtistWidth = 0 | def clear(self): """ Empty the playlist. """ self.Playlist.DeleteAllItems() self.PlaylistSongStructList = [] self.MaxSecondColumnWidth = 0 # Can be the file name or performer name. self.MaxTitleWidth = 0 | 7d6c2cead80b3d812ebc0d6027018fbc93b8714c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12653/7d6c2cead80b3d812ebc0d6027018fbc93b8714c/pykaraoke.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
3536,
8953,
326,
16428,
18,
3536,
365,
18,
30194,
18,
2613,
1595,
3126,
1435,
365,
18,
30194,
55,
932,
3823,
682,
273,
5378,
365,
18,
2747,
4771,
4990,
264,
1494,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2424,
12,
2890,
4672,
3536,
8953,
326,
16428,
18,
3536,
365,
18,
30194,
18,
2613,
1595,
3126,
1435,
365,
18,
30194,
55,
932,
3823,
682,
273,
5378,
365,
18,
2747,
4771,
4990,
264,
1494,
... |
cr.execute('select min(nextcall) as min_next_call from ir_cron where numbercall<>0 and active and nextcall>=now()') | cr.execute('select min(nextcall) as min_next_call from ir_cron where numbercall<>0 and active') | def _poolJobs(self, db_name, check=False): try: db, pool = pooler.get_db_and_pool(db_name) except: return False cr = db.cursor() try: if not pool._init: now = datetime.now() cr.execute('select * from ir_cron where numbercall<>0 and active and nextcall<=now() order by priority') for job in cr.dictfetchall(): nextcall = ... | b0aa6bf32df51adbd0014240b70f115aacafaaaa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/b0aa6bf32df51adbd0014240b70f115aacafaaaa/ir_cron.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6011,
7276,
12,
2890,
16,
1319,
67,
529,
16,
866,
33,
8381,
4672,
775,
30,
1319,
16,
2845,
273,
2845,
264,
18,
588,
67,
1966,
67,
464,
67,
6011,
12,
1966,
67,
529,
13,
1335,
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,
6011,
7276,
12,
2890,
16,
1319,
67,
529,
16,
866,
33,
8381,
4672,
775,
30,
1319,
16,
2845,
273,
2845,
264,
18,
588,
67,
1966,
67,
464,
67,
6011,
12,
1966,
67,
529,
13,
1335,
3... |
model = self.get_model(record.model) | def process_record(self, node): import osv record, fields = node.items()[0] model = self.get_model(record.model) model_bases = model.__class__.__bases__ if osv.osv.osv_memory in model_bases: record_dict=self.create_osv_memory_record(record, fields) else: self.validate_xml_id(record.id) if self.isnoupdate(record) and se... | 754e4abd6996e6b2fca6feeeae686f0703bd1215 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/754e4abd6996e6b2fca6feeeae686f0703bd1215/yaml_import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
3366,
12,
2890,
16,
756,
4672,
1930,
1140,
90,
1409,
16,
1466,
273,
756,
18,
3319,
1435,
63,
20,
65,
938,
67,
18602,
273,
938,
16186,
1106,
972,
16186,
18602,
972,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
3366,
12,
2890,
16,
756,
4672,
1930,
1140,
90,
1409,
16,
1466,
273,
756,
18,
3319,
1435,
63,
20,
65,
938,
67,
18602,
273,
938,
16186,
1106,
972,
16186,
18602,
972,
309,
1140,... | |
allocator = manager.openmdao_main_resource_LocalAllocator(name) | allocator = \ manager.openmdao_main_resource_LocalAllocator(name=name, allow_shell=allow_shell) | def __init__(self, name, machines, authkey=None, allow_shell=False): if authkey is None: authkey = multiprocessing.current_process().authkey if authkey is None: authkey = 'PublicKey' multiprocessing.current_process().authkey = authkey | f365224bf0b748c37566da94c6fb6600942dcd7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/f365224bf0b748c37566da94c6fb6600942dcd7b/resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
15942,
16,
1357,
856,
33,
7036,
16,
1699,
67,
10304,
33,
8381,
4672,
309,
1357,
856,
353,
599,
30,
1357,
856,
273,
21828,
18,
2972,
67,
2567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
15942,
16,
1357,
856,
33,
7036,
16,
1699,
67,
10304,
33,
8381,
4672,
309,
1357,
856,
353,
599,
30,
1357,
856,
273,
21828,
18,
2972,
67,
2567,
... |
print 'load system-stepper' | def loadModel( self, aFileObject ): anEmlParser = eml.EmlParser( aFileObject ) self.__thePreModel = anEmlParser.parse() | 8de54d8253d8992d96fed5ff8e4e3f6e15b0965b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/8de54d8253d8992d96fed5ff8e4e3f6e15b0965b/Session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1488,
12,
365,
16,
279,
21471,
262,
30,
392,
41,
781,
2678,
273,
801,
80,
18,
41,
781,
2678,
12,
279,
21471,
262,
365,
16186,
5787,
1386,
1488,
273,
392,
41,
781,
2678,
18,
267... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
1488,
12,
365,
16,
279,
21471,
262,
30,
392,
41,
781,
2678,
273,
801,
80,
18,
41,
781,
2678,
12,
279,
21471,
262,
365,
16186,
5787,
1386,
1488,
273,
392,
41,
781,
2678,
18,
267... | |
self._create_stylecmds() def _create_stylecmds(self): t2c = self.ttype2cmd = {Token: ''} | self._create_stylesheet() def _create_stylesheet(self): t2n = self.ttype2name = {Token: ''} | def __init__(self, **options): Formatter.__init__(self, **options) self.docclass = options.get('docclass', 'article') self.preamble = options.get('preamble', '') self.linenos = get_bool_opt(options, 'linenos', False) self.linenostart = abs(get_int_opt(options, 'linenostart', 1)) self.linenostep = abs(get_int_opt(option... | 23174d003ddef264e12aea8db04492915ff167fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/23174d003ddef264e12aea8db04492915ff167fc/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
14924,
16186,
2738,
972,
12,
2890,
16,
2826,
2116,
13,
365,
18,
2434,
1106,
273,
702,
18,
588,
2668,
2434,
1106,
2187,
296,
11480,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2826,
2116,
4672,
14924,
16186,
2738,
972,
12,
2890,
16,
2826,
2116,
13,
365,
18,
2434,
1106,
273,
702,
18,
588,
2668,
2434,
1106,
2187,
296,
11480,
6134,
... |
return text.ljust(_tw + len(text) - len(_strip_core_re.sub('', text))) + '\r' | return text.ljust(_tw + len(text) - len(_ansi_re.sub('', text))) + '\r' | def term_width_line(text): if not codes: # if no coloring, don't output fancy backspaces return text + '\n' else: # codes are not displayed and must be taken into account by introducing the correction factor return text.ljust(_tw + len(text) - len(_strip_core_re.sub('', text))) + '\r' | 7eb85e159a23526b823a636ccc956d61be1fba16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/7eb85e159a23526b823a636ccc956d61be1fba16/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2481,
67,
2819,
67,
1369,
12,
955,
4672,
309,
486,
6198,
30,
468,
309,
1158,
2036,
310,
16,
2727,
1404,
876,
31701,
1473,
9554,
327,
977,
397,
2337,
82,
11,
469,
30,
468,
6198,
854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2481,
67,
2819,
67,
1369,
12,
955,
4672,
309,
486,
6198,
30,
468,
309,
1158,
2036,
310,
16,
2727,
1404,
876,
31701,
1473,
9554,
327,
977,
397,
2337,
82,
11,
469,
30,
468,
6198,
854,
... |
printlist( [Response_Message,Response_Code,CURR_CODE,DISPATCH_DATE,ORIGIN_TYPE,ORIGIN_LOCATION_CODE,ORIGIN_CODE, ORIGIN_DESCR,DESTINATION_LOCATION_CODE,DESTINATION_CODE,LTI_ID,LOADING_DATE,ORGANIZATION_ID,TRAN_TYPE_CODE,VEHICLE_REGISTRATION,MODETRANS_CODE, COMMENTS,PERSON_CODE,PERSON_OUC,CERTIFING_TITLE,TRANS_CONTRACTO... | if isBulk: pass strUnitsLoaded=u'1.000' strUnitNet = u'' strUnitGross = u'' strNetTotal = u'%.3f' % UnitsLoaded strGrossTotal = u'%.3f' % UnitsLoaded printlist( [Response_Message,Response_Code,CURR_CODE,DISPATCH_DATE,ORIGIN_TYPE,ORIGIN_LOCATION_CODE,ORIGIN_CODE, ORIGIN_DESCR,DESTINATION_LOCATION_CODE,DESTINATION_CODE... | def write_dispatch_waybill_compas(self,waybill_id): #try: db = cx_Oracle.Connection(self.ConnectionString) cursor = db.cursor() self.ErrorMessages = u'' self.ErrorCodes = u'' # gather wb info the_waybill = Waybill.objects.get(id=waybill_id) lineItems = the_waybill.loadingdetail_set.select_related() LTI= lineItems[0].si... | a725ab4f31235e4d56f98acad31e3de83d373abc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/a725ab4f31235e4d56f98acad31e3de83d373abc/compas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
10739,
67,
1888,
17240,
67,
2919,
345,
12,
2890,
16,
1888,
17240,
67,
350,
4672,
468,
698,
30,
1319,
273,
9494,
67,
23601,
18,
1952,
12,
2890,
18,
1952,
780,
13,
3347,
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,
1045,
67,
10739,
67,
1888,
17240,
67,
2919,
345,
12,
2890,
16,
1888,
17240,
67,
350,
4672,
468,
698,
30,
1319,
273,
9494,
67,
23601,
18,
1952,
12,
2890,
18,
1952,
780,
13,
3347,
273,
... |
if key == 'allowedTypes' and isinstance(kwargs[key], types.ObjectType): | if key == 'allowedTypes' and isinstance(kwargs[key], types.TypeType): | def addOption(self, pos=-1, **kwargs): ''' Append an entry to the parameter specification list. Dictionary entries should be specified as keyword arguments such as ``longarg='option='``. More specifically, you can specify parameters ``arg``, ``longarg`` (required), ``label``, ``allowedTypes``, ``default`` (required), `... | 6531c3fc06bd255a78557c1b5a395ce1613a09e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/6531c3fc06bd255a78557c1b5a395ce1613a09e3/simuOpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12966,
12,
2890,
16,
949,
29711,
21,
16,
2826,
4333,
4672,
9163,
6181,
392,
1241,
358,
326,
1569,
7490,
666,
18,
16447,
3222,
1410,
506,
1269,
487,
4932,
1775,
4123,
487,
12176,
5748,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12966,
12,
2890,
16,
949,
29711,
21,
16,
2826,
4333,
4672,
9163,
6181,
392,
1241,
358,
326,
1569,
7490,
666,
18,
16447,
3222,
1410,
506,
1269,
487,
4932,
1775,
4123,
487,
12176,
5748,
31... |
self.hboxlayout18.addWidget(self.textLabel1_3_2_2) | self.hboxlayout21.addWidget(self.textLabel1_3_2_2) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
name="index.html" template="%s" permission="zope.Public" for="zope.app.component.tests.views.IC" /> """ % path | name="index.html" template="%s" permission="zope.Public" for="zope.app.component.tests.views.IC" /> ''' % path | def testProtectedtemplate(self): | 1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
15933,
3202,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1842,
15933,
3202,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise BuilderError("Cannot have any other activities if the `unknown' activity is specified") | raise BuilderError("Cannot have any other moods if the `unknown' mood is specified") | def _build_element(self, element, nsmap): values = self.values if 'unknown' in values and len(values) > 1: raise BuilderError("Cannot have any other activities if the `unknown' activity is specified") for note in self.notes: note.to_element(parent=element, nsmap=nsmap) XMLMultipleChoiceElement._build_element(self, elem... | ba0ceb4aa7ddb546d08e131174346c7c20bb8f6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/ba0ceb4aa7ddb546d08e131174346c7c20bb8f6d/rpid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
2956,
12,
2890,
16,
930,
16,
3153,
1458,
4672,
924,
273,
365,
18,
2372,
309,
296,
8172,
11,
316,
924,
471,
562,
12,
2372,
13,
405,
404,
30,
1002,
5008,
668,
2932,
4515... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
2956,
12,
2890,
16,
930,
16,
3153,
1458,
4672,
924,
273,
365,
18,
2372,
309,
296,
8172,
11,
316,
924,
471,
562,
12,
2372,
13,
405,
404,
30,
1002,
5008,
668,
2932,
4515... |
dir = f[0] | dir = convert_path(f[0]) | def run (self): self.mkpath(self.install_dir) for f in self.data_files: if type(f) == StringType: # it's a simple file, so copy it if self.warn_dir: self.warn("setup script did not provide a directory for " "'%s' -- installing right in '%s'" % (f, self.install_dir)) (out, _) = self.copy_file(f, self.install_dir) self.o... | bd19d839d25ef41f08709589134bfe9a88571e52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bd19d839d25ef41f08709589134bfe9a88571e52/install_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
365,
18,
24816,
803,
12,
2890,
18,
5425,
67,
1214,
13,
364,
284,
316,
365,
18,
892,
67,
2354,
30,
309,
618,
12,
74,
13,
422,
31570,
30,
468,
518,
1807,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
4672,
365,
18,
24816,
803,
12,
2890,
18,
5425,
67,
1214,
13,
364,
284,
316,
365,
18,
892,
67,
2354,
30,
309,
618,
12,
74,
13,
422,
31570,
30,
468,
518,
1807,
279,
... |
def wmfactory_description(self): | def wmfactory_description(self, request): | def wmfactory_description(self): return str(self.desc) | 1f9b14db77842d9b235b6a5df945c6bf6a18c561 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1f9b14db77842d9b235b6a5df945c6bf6a18c561/form.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18200,
6848,
67,
3384,
12,
2890,
16,
590,
4672,
327,
609,
12,
2890,
18,
5569,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18200,
6848,
67,
3384,
12,
2890,
16,
590,
4672,
327,
609,
12,
2890,
18,
5569,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
... >>> print x/0 | ... >>> print x//0 | >>> def f(x): | 1c5bc1c9d7a4a0d0670565bc03dd9354f9fe2fe5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1c5bc1c9d7a4a0d0670565bc03dd9354f9fe2fe5/test_doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
(fw+fx+fy+fz,(fw,fx,fy,fz),(fwv,fxv,fyv,fzv),1,fwv+fxv+fyv+fzv,'float32'), ((fw+fx)+(fy+fz),(fw,fx,fy,fz),(fwv,fxv,fyv,fzv),1,fwv+fxv+fyv+fzv,'float32'), | (fw+fx+fy+fz,(fw,fx,fy,fz),(fwv,fxv,fyv,fzv),1,fwv+fxv+fyv+fzv,'float32'), ((fw+fx)+(fy+fz),(fw,fx,fy,fz),(fwv,fxv,fyv,fzv),1,fwv+fxv+fyv+fzv,'float32'), | def my_init(shp, dtype='float64', num=0): #ret = theano._asarray(numpy.random.rand(*shp),dtype=dtype) ret = numpy.zeros(shp, dtype=dtype)+num return ret | 2ad632716275d2ff65c4d7210a480fc8166f0ecd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/2ad632716275d2ff65c4d7210a480fc8166f0ecd/test_opt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
2738,
12,
674,
84,
16,
3182,
2218,
5659,
1105,
2187,
818,
33,
20,
4672,
468,
1349,
273,
326,
31922,
6315,
345,
1126,
12,
15974,
18,
9188,
18,
7884,
30857,
674,
84,
3631,
8972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3399,
67,
2738,
12,
674,
84,
16,
3182,
2218,
5659,
1105,
2187,
818,
33,
20,
4672,
468,
1349,
273,
326,
31922,
6315,
345,
1126,
12,
15974,
18,
9188,
18,
7884,
30857,
674,
84,
3631,
8972... |
firstLineIndent = -epsilon, leftIndent = 0*delta + epsilon) levelOneParaStyle = \ ParagraphStyle(name='LevelOne', parent = levelZeroParaStyle, leading=11, firstLineIndent = -epsilon, leftIndent = 1*delta + epsilon) levelTwoParaStyle = \ ParagraphStyle(name='LevelTwo', parent = levelOneParaStyle, leading=11, firstLine... | firstLineIndent = x*delta, leftIndent = x*delta + epsilon) defaultLevelStyles.append(s) | def add(self,x): if x not in self: list.append(self,x) | d97e82cb7278382d065be008ee571313be90209b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/d97e82cb7278382d065be008ee571313be90209b/tableofcontents.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
92,
4672,
309,
619,
486,
316,
365,
30,
666,
18,
6923,
12,
2890,
16,
92,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
12,
2890,
16,
92,
4672,
309,
619,
486,
316,
365,
30,
666,
18,
6923,
12,
2890,
16,
92,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for j in range(3): k = f.v[j].index | for j, v in enumerate(f.v): k = v.index | def file_callback(filename): if not filename.lower().endswith('.ctm'): filename += '.ctm' # Get object mesh from the selected object scn = bpy.data.scenes.active ob = scn.objects.active if not ob: Blender.Draw.PupMenu('Error%t|Select 1 active object') return mesh = BPyMesh.getMeshFromObject(ob, None, False, False, sc... | 3587580bf5c2db8cbc8d00035e389ad054d696e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11511/3587580bf5c2db8cbc8d00035e389ad054d696e8/openctm_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
3394,
12,
3459,
4672,
225,
309,
486,
1544,
18,
8167,
7675,
5839,
1918,
2668,
18,
299,
81,
11,
4672,
1544,
1011,
2418,
299,
81,
11,
225,
468,
968,
733,
6986,
628,
326,
3170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
585,
67,
3394,
12,
3459,
4672,
225,
309,
486,
1544,
18,
8167,
7675,
5839,
1918,
2668,
18,
299,
81,
11,
4672,
1544,
1011,
2418,
299,
81,
11,
225,
468,
968,
733,
6986,
628,
326,
3170,
... |
@match(r'^\s*(?:please\s+)?(tell|pm|privmsg|msg|ask|remind)' | @match(r'^\s*(?:please\s+)?(tell|pm|privmsg|msg|ask)' | def __init__(self, from_id, to_id, memo, private=False): self.from_id = from_id self.to_id = to_id self.memo = memo self.private = private self.delivered = False self.time = datetime.utcnow() | c38358a69a574495233e12ec0a3aa82eaff27376 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/c38358a69a574495233e12ec0a3aa82eaff27376/memo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
628,
67,
350,
16,
358,
67,
350,
16,
11063,
16,
3238,
33,
8381,
4672,
365,
18,
2080,
67,
350,
273,
628,
67,
350,
365,
18,
869,
67,
350,
273,
358,
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,
1001,
2738,
972,
12,
2890,
16,
628,
67,
350,
16,
358,
67,
350,
16,
11063,
16,
3238,
33,
8381,
4672,
365,
18,
2080,
67,
350,
273,
628,
67,
350,
365,
18,
869,
67,
350,
273,
358,
67,
... |
if x[0] == 'string' or x[0] == 'symbol': | if x and (x[0] == 'string' or x[0] == 'symbol'): | def getstring(x, err): if x[0] == 'string' or x[0] == 'symbol': return x[1] raise error.ParseError(err) | 3de03448cbc2250eda25d6fe0ab01b0973319f0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/3de03448cbc2250eda25d6fe0ab01b0973319f0c/revset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1080,
12,
92,
16,
393,
4672,
309,
619,
471,
261,
92,
63,
20,
65,
422,
296,
1080,
11,
578,
619,
63,
20,
65,
422,
296,
7175,
11,
4672,
327,
619,
63,
21,
65,
1002,
555,
18,
210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
1080,
12,
92,
16,
393,
4672,
309,
619,
471,
261,
92,
63,
20,
65,
422,
296,
1080,
11,
578,
619,
63,
20,
65,
422,
296,
7175,
11,
4672,
327,
619,
63,
21,
65,
1002,
555,
18,
210... |
default style of "polymorphic" loading, that is, which tables are queried at once. <classes> is any single or list of mappers and/or classes indicating the inherited classes that should be loaded at once. The special value ``'*'`` may be used to indicate all descending classes should be loaded immediately. The second t... | default style of "polymorphic" loading, that is, which tables are queried at once. <classes> is any single or list of mappers and/or classes indicating the inherited classes that should be loaded at once. The special value ``'*'`` may be used to indicate all descending classes should be loaded immediately. The second t... | def mapper(class_, local_table=None, *args, **params): """Return a new [sqlalchemy.orm#Mapper] object. class\_ The class to be mapped. local_table The table to which the class is mapped, or None if this mapper inherits from another mapper using concrete table inheritance. entity_name A name to be associated with the... | 8b169bdc1a9ad510d1fa7ac55cf02c0a00396ed8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/8b169bdc1a9ad510d1fa7ac55cf02c0a00396ed8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5815,
12,
1106,
67,
16,
1191,
67,
2121,
33,
7036,
16,
380,
1968,
16,
2826,
2010,
4672,
3536,
990,
279,
394,
306,
4669,
24182,
18,
535,
7,
4597,
65,
733,
18,
225,
667,
64,
67,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5815,
12,
1106,
67,
16,
1191,
67,
2121,
33,
7036,
16,
380,
1968,
16,
2826,
2010,
4672,
3536,
990,
279,
394,
306,
4669,
24182,
18,
535,
7,
4597,
65,
733,
18,
225,
667,
64,
67,
1021,
... |
print "FAIL" | print "FAIL"; failures = failures + 1 | def __eq__(self, other): if isinstance(other, FooStruct): return self.bar == other.bar return 0 | 14105f5c7b7349c63655b5a3c3785fe12d84aa68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/14105f5c7b7349c63655b5a3c3785fe12d84aa68/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,
3823,
4672,
327,
365,
18,
3215,
422,
1308,
18,
3215,
327,
374,
2,
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,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,
3823,
4672,
327,
365,
18,
3215,
422,
1308,
18,
3215,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
or (type(uSymbol)==ClassType and issubclass(uSymbol,Widget)) | or (type(x)==ClassType and issubclass(x,Widget)) | def test(self,x): return callable(x) or isinstance(x,Marker) or isinstance(x,Flag) \ or (type(uSymbol)==ClassType and issubclass(uSymbol,Widget)) | 565e8db0942d39b3ade10fd450e16582bc3f51f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/565e8db0942d39b3ade10fd450e16582bc3f51f0/markers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
16,
92,
4672,
327,
4140,
12,
92,
13,
578,
1549,
12,
92,
16,
7078,
13,
578,
1549,
12,
92,
16,
4678,
13,
521,
578,
261,
723,
12,
89,
5335,
13,
631,
18328,
471,
14664,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
12,
2890,
16,
92,
4672,
327,
4140,
12,
92,
13,
578,
1549,
12,
92,
16,
7078,
13,
578,
1549,
12,
92,
16,
4678,
13,
521,
578,
261,
723,
12,
89,
5335,
13,
631,
18328,
471,
14664,... |
_DATE_ADDED_FIELD = ' 961__x:' _DATE_UPDATED_FIELD = ' 961__c:' _DATE_FIELD = ' 269__c:' | _DATE_ADDED_FIELD = '961__x:' _DATE_UPDATED_FIELD = '961__c:' _DATE_FIELD = '269__c:' | def __init__(self, message): """Initialization.""" self.message = message | 855acf1f403f93dbc03543809cdbbd3d0c4c46af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/855acf1f403f93dbc03543809cdbbd3d0c4c46af/search_engine_query_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
except SkipTest as e: | except unittest.SkipTest as e: | def test_main(): tests = [ TestMiscellaneous, TestEnUSNumberFormatting, TestCNumberFormatting, TestFrFRNumberFormatting, ] # SkipTest can't be raised inside unittests, handle it manually instead try: get_enUS_locale() except SkipTest as e: if verbose: print "Some tests will be disabled: %s" % e else: tests += [TestNumb... | 43d460b70def7f16af8ea6b29dbccd189ec463e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/43d460b70def7f16af8ea6b29dbccd189ec463e3/test_locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
7434,
273,
306,
7766,
11729,
3855,
15522,
16,
7766,
664,
3378,
1854,
23974,
16,
7766,
39,
1854,
23974,
16,
7766,
7167,
9981,
1854,
23974,
16,
308,
468,
6611,
4709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7766,
11729,
3855,
15522,
16,
7766,
664,
3378,
1854,
23974,
16,
7766,
39,
1854,
23974,
16,
7766,
7167,
9981,
1854,
23974,
16,
308,
468,
6611,
4709,
... |
if not control.tests_running(): | if do_tests and not control.tests_running(): | def torbel_start(): log.info("TorBEL v%s starting.", __version__) # Configuration check. try: config_check() except ConfigurationError, e: log.error("Configuration error: %s", e.message) return 1 except AttributeError, e: log.error("Configuration error: missing value: %s", e.args[0]) try: control = Controller() if no... | a58c20dc87f7519ed011033c6d68780505f79e23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/a58c20dc87f7519ed011033c6d68780505f79e23/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
13285,
67,
1937,
13332,
613,
18,
1376,
2932,
27266,
38,
2247,
331,
9,
87,
5023,
1199,
16,
1001,
1589,
972,
13,
225,
468,
4659,
866,
18,
775,
30,
642,
67,
1893,
1435,
1335,
27507,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8934,
13285,
67,
1937,
13332,
613,
18,
1376,
2932,
27266,
38,
2247,
331,
9,
87,
5023,
1199,
16,
1001,
1589,
972,
13,
225,
468,
4659,
866,
18,
775,
30,
642,
67,
1893,
1435,
1335,
27507,... |
except KeyboardInterrupt, e: | except (KeyboardInterrupt, IOError): | def getPassword(self, prompt = None): if not prompt: prompt = "%s@%s's password: " % (self.user, self.transport.transport.getPeer().host) try: oldout, oldin = sys.stdout, sys.stdin sys.stdin = sys.stdout = open('/dev/tty','r+') p=getpass.getpass(prompt) sys.stdout,sys.stdin=oldout,oldin return defer.succeed(p) except K... | 3516b3f100dfdd1e6f30c9adbd234b19899bfb0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/3516b3f100dfdd1e6f30c9adbd234b19899bfb0b/default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17397,
12,
2890,
16,
6866,
273,
599,
4672,
309,
486,
6866,
30,
6866,
273,
2213,
87,
36,
9,
87,
1807,
2201,
30,
315,
738,
261,
2890,
18,
1355,
16,
365,
18,
13049,
18,
13049,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17397,
12,
2890,
16,
6866,
273,
599,
4672,
309,
486,
6866,
30,
6866,
273,
2213,
87,
36,
9,
87,
1807,
2201,
30,
315,
738,
261,
2890,
18,
1355,
16,
365,
18,
13049,
18,
13049,
18,
588,
... |
self.failUnless(_approx_eq(z_after, z), (z_orig, z_after, z, z_after - z)) | self.failUnless(_approx_eq(z_after, tz.value), (z_orig, z_after, z, z_after - z)) | def t(z,x,y,a=1.0, b=0.0,l='c|py',dt='float64'): z,a,x,y,b = [theano._asarray(p,dtype=dt) for p in z,a,x,y,b] z_orig = z.copy() z_after = self._gemm(z, a, x, y, b) | 3d5a37e5704efd513ce68d27b4ab0647f4c9548f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/3d5a37e5704efd513ce68d27b4ab0647f4c9548f/test_blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
12,
94,
16,
92,
16,
93,
16,
69,
33,
21,
18,
20,
16,
324,
33,
20,
18,
20,
16,
80,
2218,
71,
96,
2074,
2187,
7510,
2218,
5659,
1105,
11,
4672,
998,
16,
69,
16,
92,
16,
93,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
12,
94,
16,
92,
16,
93,
16,
69,
33,
21,
18,
20,
16,
324,
33,
20,
18,
20,
16,
80,
2218,
71,
96,
2074,
2187,
7510,
2218,
5659,
1105,
11,
4672,
998,
16,
69,
16,
92,
16,
93,
... |
self.watcherThread.start() | self.watcherThread.CreateThread() | def __init__(self, template): self.bAutoReload = GetEditorOption("Auto Reload", 1) self.bDeclinedReload = 0 # Has the user declined to reload. self.fileStat = None self.bReportedFileNotFound = 0 | fa6cea9953bd692f4d83b7fb00bab8aabdb503fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/fa6cea9953bd692f4d83b7fb00bab8aabdb503fa/document.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1542,
4672,
365,
18,
70,
4965,
13013,
273,
968,
6946,
1895,
2932,
4965,
23086,
3113,
404,
13,
365,
18,
70,
3456,
1920,
13013,
273,
374,
468,
4393,
326,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1542,
4672,
365,
18,
70,
4965,
13013,
273,
968,
6946,
1895,
2932,
4965,
23086,
3113,
404,
13,
365,
18,
70,
3456,
1920,
13013,
273,
374,
468,
4393,
326,
7... |
cvsdir = os.path.join(path, "CVS") if os.path.isdir(cvsdir): rev = GetCVSRevision(file) root = GetCVSRoot(file) if rev is not None and root is not None: if srcdir is not None: file = os.path.normpath(file) if file.lower().startswith(srcdir.lower()): file = file[len(srcdir):] (head, tail) = os.path.split(srcdir) i... | fileInfo = None if file in vcsFileInfoCache: fileInfo = vcsFileInfoCache[file] else: if os.path.isdir(os.path.join(path, "CVS")): fileInfo = CVSFileInfo(file, srcdir) elif os.path.isdir(os.path.join(path, ".svn")) or \ os.path.isdir(os.path.join(path, "_svn")): fileInfo = SVNFileInfo(file); vcsFileInfoCache[file] = f... | def GetVCSFilename(file, srcdir): """Given a full path to a file, and the top source directory, look for version control information about this file, and return a specially formatted filename that contains the VCS type, VCS location, relative filename, and revision number, formatted like: vcs:vcs location:filename:revi... | 65c8b64deb53f31755237025916365ad86052f3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/65c8b64deb53f31755237025916365ad86052f3d/symbolstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
58,
4596,
5359,
12,
768,
16,
1705,
1214,
4672,
3536,
6083,
279,
1983,
589,
358,
279,
585,
16,
471,
326,
1760,
1084,
1867,
16,
2324,
364,
1177,
3325,
1779,
2973,
333,
585,
16,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
58,
4596,
5359,
12,
768,
16,
1705,
1214,
4672,
3536,
6083,
279,
1983,
589,
358,
279,
585,
16,
471,
326,
1760,
1084,
1867,
16,
2324,
364,
1177,
3325,
1779,
2973,
333,
585,
16,
471,... |
self.assert_(self._box.get_string(key0) == \ self._template % 'changed 0') | self.assertEqual(self._box.get_string(key0), self._template % 'changed 0') | def test_set_item(self): # Modify messages using __setitem__() key0 = self._box.add(self._template % 'original 0') self.assert_(self._box.get_string(key0) == \ self._template % 'original 0') key1 = self._box.add(self._template % 'original 1') self.assert_(self._box.get_string(key1) == \ self._template % 'original 1') s... | ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
1726,
12,
2890,
4672,
468,
9518,
2743,
1450,
1001,
542,
1726,
972,
1435,
498,
20,
273,
365,
6315,
2147,
18,
1289,
12,
2890,
6315,
3202,
738,
296,
8830,
374,
6134,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
1726,
12,
2890,
4672,
468,
9518,
2743,
1450,
1001,
542,
1726,
972,
1435,
498,
20,
273,
365,
6315,
2147,
18,
1289,
12,
2890,
6315,
3202,
738,
296,
8830,
374,
6134,
36... |
rc_entry = [ r'\converter latex wordhtml "%%" ""' ]) | rc_entry = [ r'\converter latex wordhtml "%%" ""' ]) | def checkProg(description, progs, rc_entry = [], path = [] ): ''' This function will search a program in $PATH plus given path If found, return directory and program name (not the options). description: description of the program progs: check programs, for each prog, the first word is used for searching but the whole... | 41dd4f0be3188829e0dccd1c1ec13e281f4fc00d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/41dd4f0be3188829e0dccd1c1ec13e281f4fc00d/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
626,
75,
12,
3384,
16,
450,
564,
16,
4519,
67,
4099,
273,
5378,
16,
589,
273,
5378,
262,
30,
9163,
1220,
445,
903,
1623,
279,
5402,
316,
271,
4211,
8737,
864,
589,
971,
1392,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
626,
75,
12,
3384,
16,
450,
564,
16,
4519,
67,
4099,
273,
5378,
16,
589,
273,
5378,
262,
30,
9163,
1220,
445,
903,
1623,
279,
5402,
316,
271,
4211,
8737,
864,
589,
971,
1392,
16... |
if request.method == 'POST': return redirect('fieldofficer') else: fieldofficers = FieldOfficer.objects.order_by("-id")[offset:limit] if(fieldofficers): json_subcat = serializers.serialize("json", fieldofficers) else: json_subcat = 'EOF' return HttpResponse(json_subcat, mimetype="application/javascript") | if request.method == 'POST': return redirect('fieldofficer') else: fieldofficers = FieldOfficer.objects.order_by("-id")[offset:limit] if(fieldofficers): json_subcat = serializers.serialize("json", fieldofficers) else: json_subcat = 'EOF' return HttpResponse(json_subcat, mimetype="application/javascript") | def get_fieldofficers_online(request, offset, limit ): if request.method == 'POST': return redirect('fieldofficer') else: fieldofficers = FieldOfficer.objects.order_by("-id")[offset:limit] if(fieldofficers): json_subcat = serializers.serialize("json", fieldofficers) else: json_subcat = 'EOF' return HttpResponse(json_su... | 7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1518,
3674,
335,
414,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
262,
30,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
1518,
3674,
21349,
6134,
469,
30,
652,
3674,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1518,
3674,
335,
414,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
262,
30,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
1518,
3674,
21349,
6134,
469,
30,
652,
3674,... |
return xmldoc, log_data, detectors, -1 | return xmldoc, log_data, temp_data_loc | def populate_inspiral_tables(MBTA_frame, set_keys = MBTA_set_keys, \ event_id_dict = insp_event_id_dict): """ create xml file and populate the SnglInspiral and CoincInspiral tables from a coinc .gwf file from MBTA xmldoc: xml file to append the tables to MBTA_frame: frame file to get info about triggers from set_keys: ... | ddc3e4a0e5930ac72826f2f94ecdf2d23e36cfaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/ddc3e4a0e5930ac72826f2f94ecdf2d23e36cfaf/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
267,
1752,
481,
287,
67,
9373,
12,
7969,
9833,
67,
3789,
16,
444,
67,
2452,
273,
17897,
9833,
67,
542,
67,
2452,
16,
521,
871,
67,
350,
67,
1576,
273,
316,
1752,
67,
2575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
67,
267,
1752,
481,
287,
67,
9373,
12,
7969,
9833,
67,
3789,
16,
444,
67,
2452,
273,
17897,
9833,
67,
542,
67,
2452,
16,
521,
871,
67,
350,
67,
1576,
273,
316,
1752,
67,
2575,
... |
if backtrack: | if bt: | def run(self): loopctrl = {} | e9831a12235fcae7ab1b6189a4d00b2b6f1634cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/e9831a12235fcae7ab1b6189a4d00b2b6f1634cf/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2798,
16277,
273,
2618,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2798,
16277,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
The keys stock_date_end stock_date_start in context can be used to compute stock for arbitrary interval. If with_childs, childs locations are also computed. If skip_zero, list item with quantity equal to zero are not returned. If no product_ids are given the computation is done on all products. | - The keys stock_date_end stock_date_start in context can be used to compute stock for arbitrary interval. - The key stock_assign in context can be used to compute assing move (in conjunction with stock_date_end equal to today). - If with_childs, childs locations are also computed. - If skip_zero, list item with quanti... | def products_by_location(self, cursor, user, location_ids, product_ids=None, with_childs=False, skip_zero=True, context=None): """ Return a dict like : {(location, product): qty} for each location and product given as argument, the implicit uom is the default uom on the product. The keys stock_date_end stock_date_start... | 346cb7915b9fae7b60410c9f08365d4c4b721d58 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/346cb7915b9fae7b60410c9f08365d4c4b721d58/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33... |
self.graphics = None | self.graphic = None | def __init__(self): ObjectClass.Object.__init__(self) self.damage = 5 self.damagePiercing = 2 self.damageRadius = 2 self.deathFrame = None self.graphics = None self.groundBlocked = True self.inaccuracy = 2 self.numDeathFrames = 1 self.numFrames = 1 # this is where it actually draws the graphic # cause it will draw from... | 3ce4f6c7387e8c3bdc96257538ca148a0c40410b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1596/3ce4f6c7387e8c3bdc96257538ca148a0c40410b/WeaponClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1033,
797,
18,
921,
16186,
2738,
972,
12,
2890,
13,
365,
18,
72,
301,
410,
273,
1381,
365,
18,
72,
301,
410,
52,
2453,
2822,
273,
576,
365,
18,
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,
1001,
2738,
972,
12,
2890,
4672,
1033,
797,
18,
921,
16186,
2738,
972,
12,
2890,
13,
365,
18,
72,
301,
410,
273,
1381,
365,
18,
72,
301,
410,
52,
2453,
2822,
273,
576,
365,
18,
72,
... |
raise Exception | def endElement(self, name): if name in ('node','way') and self.valid: if self.tags.get('amenity') in AMENITIES: #print self.node_location, self.tags['amenity'] pass else: self.ignore_count += 1 return # Ignore ways that lay partly outside our bounding box if name == 'way' and not all(id in self.node_locations for id i... | c93ee5733a8e5b0c65963fc04da8bd3c1690ecb9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14173/c93ee5733a8e5b0c65963fc04da8bd3c1690ecb9/update_osm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
309,
508,
316,
7707,
2159,
17023,
1888,
6134,
471,
365,
18,
877,
30,
309,
365,
18,
4156,
18,
588,
2668,
301,
275,
560,
6134,
316,
432,
16196,
25673,
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,
14840,
12,
2890,
16,
508,
4672,
309,
508,
316,
7707,
2159,
17023,
1888,
6134,
471,
365,
18,
877,
30,
309,
365,
18,
4156,
18,
588,
2668,
301,
275,
560,
6134,
316,
432,
16196,
25673,
30,... | |
member_folder.setTitle(member_folder_title) member_folder.setDescription(member_folder_description) | fullname = member_object.getProperty('fullname') member_folder.setTitle(fullname or member_id) | def createMemberarea(self, member_id=None, minimal=True): """ Create a member area for 'member_id' or the authenticated user, but don't assume that member_id is url-safe. | b06b05b86e7dce5ecdbe39b820b9cbf89d7f67a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/b06b05b86e7dce5ecdbe39b820b9cbf89d7f67a1/membership.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4419,
5036,
12,
2890,
16,
3140,
67,
350,
33,
7036,
16,
16745,
33,
5510,
4672,
3536,
1788,
279,
3140,
5091,
364,
296,
5990,
67,
350,
11,
578,
326,
9370,
729,
16,
1496,
2727,
1404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
4419,
5036,
12,
2890,
16,
3140,
67,
350,
33,
7036,
16,
16745,
33,
5510,
4672,
3536,
1788,
279,
3140,
5091,
364,
296,
5990,
67,
350,
11,
578,
326,
9370,
729,
16,
1496,
2727,
1404,
... |
self.dicts[i]['distEpi']) | self.dicts[i]['distHypo']) | def calculateStationMagnitudes(self): for i in range(len(self.streams)): if (self.dicts[i].has_key('MagMin1') and self.dicts[i].has_key('MagMin2') and self.dicts[i].has_key('MagMax1') and self.dicts[i].has_key('MagMax2')): amp = self.dicts[i]['MagMax1'] - self.dicts[i]['MagMin1'] timedelta = abs(self.dicts[i]['MagMax1... | f46eb3773ab1df8b9332ea35469134ee517b70ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/f46eb3773ab1df8b9332ea35469134ee517b70ce/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
16672,
11372,
82,
24751,
12,
2890,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
261,
2890,
18,
16287,
63,
77,
8009,
5332,
67,
856,
2668,
11372,
2930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
16672,
11372,
82,
24751,
12,
2890,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
261,
2890,
18,
16287,
63,
77,
8009,
5332,
67,
856,
2668,
11372,
2930,
... |
i = self.to_bits(i) | i = self.to_bits(i, self.m) | def interpolation_polynomial(self, k=None): r""" Return a univariate polynomial over an extension field representing this S-box. | 16527da1ddc0ac750f609cd58858c5b45d932696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/16527da1ddc0ac750f609cd58858c5b45d932696/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12851,
67,
3915,
13602,
12,
2890,
16,
417,
33,
7036,
4672,
436,
8395,
2000,
279,
640,
27693,
16991,
1879,
392,
2710,
652,
5123,
333,
348,
17,
2147,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12851,
67,
3915,
13602,
12,
2890,
16,
417,
33,
7036,
4672,
436,
8395,
2000,
279,
640,
27693,
16991,
1879,
392,
2710,
652,
5123,
333,
348,
17,
2147,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
blocks=() def __init__(self,case,table,file,inode,sub_inode): self.dbh=DB.DBO(case) self.case=case self.table=table self.dbh.execute("select concat(path,name) as filename from file_%s where inode=%r",(table,inode)) zipfilename=self.dbh.fetch()['filename'] self.dbh.execute("select concat(path,name) as filename from fi... | specifier = 'Z' def __init__(self, case, table, fd, inode): File.__init__(self, case, table, fd, inode) | def seek(self,pos): self.pos=pos | 567960851b06277a215379097c83910f245197ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/567960851b06277a215379097c83910f245197ee/FileSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
917,
4672,
365,
18,
917,
33,
917,
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,
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,
6520,
12,
2890,
16,
917,
4672,
365,
18,
917,
33,
917,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
response = conn_admin.request_post(self.url1, headers=jsonheader, body=C1_full2_wrongpowner1) self.failUnlessEqual('400', response[u'headers']['status']) | self.doTestAndCheckWrongNewPropertyOwner(conn_admin) | def test_AuthorizedAsAdminWrongNewPropertyOwner(self): response = conn_admin.request_post(self.url1, headers=jsonheader, body=C1_full2_wrongpowner1) self.failUnlessEqual('400', response[u'headers']['status']) | 091168d98667491ee6176464a27d5a3e2a269f75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6226/091168d98667491ee6176464a27d5a3e2a269f75/cftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15341,
1463,
4446,
13634,
1908,
1396,
5541,
12,
2890,
4672,
766,
273,
1487,
67,
3666,
18,
2293,
67,
2767,
12,
2890,
18,
718,
21,
16,
1607,
33,
1977,
3374,
16,
1417,
33,
39,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15341,
1463,
4446,
13634,
1908,
1396,
5541,
12,
2890,
4672,
766,
273,
1487,
67,
3666,
18,
2293,
67,
2767,
12,
2890,
18,
718,
21,
16,
1607,
33,
1977,
3374,
16,
1417,
33,
39,
... |
source=source, | source=my_source, | def post(self): if ChromeFrameMe(self): return # Extract description + intrinsic. description = str(self.request.get('description')) m = re.match('^~~~intrinsic: ([0-9]+)~~~(.*)$', description) if m: intrinsic = int(m.group(1)) description = m.group(2) else: intrinsic = 0 # Pick out definition definition = str(self.req... | 0c84d023adea3c40a625ba9babebfa0e54e91be7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3507/0c84d023adea3c40a625ba9babebfa0e54e91be7/iconforth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
309,
15159,
3219,
4667,
12,
2890,
4672,
327,
468,
8152,
2477,
397,
28871,
18,
2477,
273,
609,
12,
2890,
18,
2293,
18,
588,
2668,
3384,
26112,
312,
273,
283,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
309,
15159,
3219,
4667,
12,
2890,
4672,
327,
468,
8152,
2477,
397,
28871,
18,
2477,
273,
609,
12,
2890,
18,
2293,
18,
588,
2668,
3384,
26112,
312,
273,
283,
18,
1... |
oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") | oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec "+ARCH) | def MakeInstallerLinux(): import compileall PYTHONV=os.path.basename(PYTHONSDK) if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") oscmd("rm -rf linuxroot data.tar.gz control.tar.gz rpmarch.txt panda3d.spec") oscmd("mkdir -p linuxroot/usr/bin") oscmd("mkdir -p linuxroot/usr/include") oscmd("mkdir -p linux... | 9c6956b3856f36322acea26128d9cc5a7a883428 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/9c6956b3856f36322acea26128d9cc5a7a883428/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
18678,
19475,
13332,
1930,
4074,
454,
12191,
20131,
58,
33,
538,
18,
803,
18,
13909,
12,
16235,
20131,
22625,
13,
309,
261,
538,
18,
803,
18,
291,
1214,
2932,
20132,
3085,
6,
3719,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4344,
18678,
19475,
13332,
1930,
4074,
454,
12191,
20131,
58,
33,
538,
18,
803,
18,
13909,
12,
16235,
20131,
22625,
13,
309,
261,
538,
18,
803,
18,
291,
1214,
2932,
20132,
3085,
6,
3719,... |
defaults = { "[General]": {"nLines": lines} } | defaults = { "[General]": { "nLines": lines, "bFollowPC": follow_pc } } | def load_options(self): # TODO: move config to MemoryAddress class? # (depends on how monitoring of addresses should work) lines = self.address.get_lines() miss_is_error = False # needed for adding windows defaults = { "[General]": {"nLines": lines} } userconfdir = ".hatari" config = ConfigStore(userconfdir, defaults, ... | 1d157e067f3f85cf67f64ced88e42df15081a1d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2811/1d157e067f3f85cf67f64ced88e42df15081a1d9/debugui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2116,
12,
2890,
4672,
468,
2660,
30,
3635,
642,
358,
9251,
1887,
667,
35,
468,
261,
27360,
603,
3661,
16309,
434,
6138,
1410,
1440,
13,
2362,
273,
365,
18,
2867,
18,
588,
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,
1262,
67,
2116,
12,
2890,
4672,
468,
2660,
30,
3635,
642,
358,
9251,
1887,
667,
35,
468,
261,
27360,
603,
3661,
16309,
434,
6138,
1410,
1440,
13,
2362,
273,
365,
18,
2867,
18,
588,
67,... |
blacklist, recommended): | blacklist, whitelist, recommended): | def __init__(self, basepath, url, version, arches, components, groups, rawurl, blacklist, recommended): self.basepath = basepath self.version = version self.components = components self.url = url self.rawurl = rawurl self.groups = groups self.arches = arches self.deps = dict() self.provides = dict() self.blacklist = se... | 0e9daba224deee78a25e9ec8d2f7096d2d76c3c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/0e9daba224deee78a25e9ec8d2f7096d2d76c3c4/Packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
16,
11709,
16,
10734,
16,
14553,
4672,
365,
18,
1969,
803,
273,
23853,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
16,
11709,
16,
10734,
16,
14553,
4672,
365,
18,
1969,
803,
273,
23853,
365,
18,
... |
""" | """ | def fl_popup_set_min_width(p1, p2): """ fl_popup_set_min_width(p1, p2) -> width num. """ retval = _fl_popup_set_min_width(p1, p2) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
16086,
67,
542,
67,
1154,
67,
2819,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
16086,
67,
542,
67,
1154,
67,
2819,
12,
84,
21,
16,
293,
22,
13,
317,
1835,
818,
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,
1183,
67,
16086,
67,
542,
67,
1154,
67,
2819,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
16086,
67,
542,
67,
1154,
67,
2819,
12,
84,
21,
16,
293,
22,
13,
317,
1835,
818,
18,
... |
self.valueOf_ = valueOf_ if mixedclass_ is None: self.mixedclass_ = MixedContainer else: self.mixedclass_ = mixedclass_ if content_ is None: self.content_ = [] else: self.content_ = content_ self.valueOf_ = valueOf_ | pass | def __init__(self, about=None, meta=None, label=None, id=None, char=None, valueOf_=None, mixedclass_=None, content_=None): super(CharSet, self).__init__(about, meta, label, id, valueOf_, mixedclass_, content_, ) self.char = _cast(None, char) self.valueOf_ = valueOf_ if mixedclass_ is None: self.mixedclass_ = MixedConta... | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2973,
33,
7036,
16,
2191,
33,
7036,
16,
1433,
33,
7036,
16,
612,
33,
7036,
16,
1149,
33,
7036,
16,
4323,
67,
33,
7036,
16,
7826,
1106,
67,
33,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2973,
33,
7036,
16,
2191,
33,
7036,
16,
1433,
33,
7036,
16,
612,
33,
7036,
16,
1149,
33,
7036,
16,
4323,
67,
33,
7036,
16,
7826,
1106,
67,
33,
7036,
... |
exec self.importDynamicUtil() backend_name = self.job_info.backend.__class__.__name__ util_string = "Ganga.Lib.MonitoringServices.Dashboard.%sUtil" % backend_name __import__(util_string) | def getSandboxModules(self): """Return list of module dependencies.""" import Ganga.Lib.MonitoringServices.Dashboard exec self.importDynamicUtil() backend_name = self.job_info.backend.__class__.__name__ util_string = "Ganga.Lib.MonitoringServices.Dashboard.%sUtil" % backend_name __import__(util_string) import sys retur... | 090e1b7010e07c8fbdd32c291de66a4bdbdac62b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/090e1b7010e07c8fbdd32c291de66a4bdbdac62b/BackendMS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
9069,
7782,
12,
2890,
4672,
3536,
990,
666,
434,
1605,
5030,
12123,
1930,
611,
539,
69,
18,
5664,
18,
18410,
5676,
18,
14830,
1930,
2589,
327,
18230,
3537,
18,
588,
17881,
7782,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
9069,
7782,
12,
2890,
4672,
3536,
990,
666,
434,
1605,
5030,
12123,
1930,
611,
539,
69,
18,
5664,
18,
18410,
5676,
18,
14830,
1930,
2589,
327,
18230,
3537,
18,
588,
17881,
7782,
12... | |
self.theQtyValue *= 0.5 self.setValue( self.theQtyFPN, self.theQtyValue ) | self.theValue *= 0.5 self.setProperty( 'Value', self.theValue ) self.thePluginManager.updateAllPluginWindow() | def decreaseValue( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20467,
620,
12,
365,
16,
3568,
67,
1612,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
20467,
620,
12,
365,
16,
3568,
67,
1612,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
text='<div tal:content="python: request.get(\'data\')" />', | text=('<div tal:content="python: ' 'request.get(\'data\')" />'), | def testISO_8859_15(self): manage_addPageTemplate(self.app, 'test', text='<div tal:content="python: request.get(\'data\')" />', encoding='ascii') zpt = self.app['test'] self.app.REQUEST.set('HTTP_ACCEPT_CHARSET', 'ISO-8859-15,utf-8') self.app.REQUEST.set('data', '') result = zpt.pt_render() self.assertEqual(result.star... | 9ee8932389e2937ac17156196be900f498e09cdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9658/9ee8932389e2937ac17156196be900f498e09cdc/testZopePageTemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12609,
67,
17258,
67,
3600,
12,
2890,
4672,
10680,
67,
1289,
1964,
2283,
12,
2890,
18,
2910,
16,
296,
3813,
2187,
977,
33,
2668,
32,
2892,
268,
287,
30,
1745,
1546,
8103,
30,
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,
1842,
12609,
67,
17258,
67,
3600,
12,
2890,
4672,
10680,
67,
1289,
1964,
2283,
12,
2890,
18,
2910,
16,
296,
3813,
2187,
977,
33,
2668,
32,
2892,
268,
287,
30,
1745,
1546,
8103,
30,
296... |
node = pydot.Node(model.model, shape='record', label=label) | if pydot.__version__ == '1.0.2': label = '"' + label + '"' node = pydot.Node(str(model.model), shape='record', label=label) | def fill_graph(self, cursor, user, models, graph, level=1, context=None): import pydot model_obj = self.pool.get('ir.model') | 32b2f3831484c7db96bdb50b27e21d368bbd666a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/32b2f3831484c7db96bdb50b27e21d368bbd666a/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
4660,
12,
2890,
16,
3347,
16,
729,
16,
3679,
16,
2667,
16,
1801,
33,
21,
16,
819,
33,
7036,
4672,
1930,
2395,
9811,
938,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
67,
4660,
12,
2890,
16,
3347,
16,
729,
16,
3679,
16,
2667,
16,
1801,
33,
21,
16,
819,
33,
7036,
4672,
1930,
2395,
9811,
938,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
... |
spmatrix.__init__(self, 'csc') | spmatrix.__init__(self) | def __init__(self,s,ij=None,M=None,N=None,nzmax=100,typecode=Float,copy=0): spmatrix.__init__(self, 'csc') if isinstance(s,spmatrix): if isinstance(s, csc_matrix): # do nothing but copy information self.shape = s.shape if copy: self.data = s.data.copy() self.rowind = s.rowind.copy() self.indptr = s.indptr.copy() else: ... | 2df51902e42db8054709637688b60399fcc84eff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2df51902e42db8054709637688b60399fcc84eff/Sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
87,
16,
8302,
33,
7036,
16,
49,
33,
7036,
16,
50,
33,
7036,
16,
82,
94,
1896,
33,
6625,
16,
723,
710,
33,
4723,
16,
3530,
33,
20,
4672,
1694,
5667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
87,
16,
8302,
33,
7036,
16,
49,
33,
7036,
16,
50,
33,
7036,
16,
82,
94,
1896,
33,
6625,
16,
723,
710,
33,
4723,
16,
3530,
33,
20,
4672,
1694,
5667,
... |
aboutDialog.AboutDialog(root,'About') | aboutDialog.AboutDialog(root, 'About') | def run(): import aboutDialog aboutDialog.AboutDialog(root,'About') | 73453757718f13af156356dabdd0dea7ccc396ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/73453757718f13af156356dabdd0dea7ccc396ba/aboutDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
1930,
2973,
6353,
2973,
6353,
18,
24813,
6353,
12,
3085,
11189,
24813,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
1930,
2973,
6353,
2973,
6353,
18,
24813,
6353,
12,
3085,
11189,
24813,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hklin_spacegroup = o.split(':')[-1].strip() | hklin_spacegroup = o.replace( 'Spacegroup from HKLIN file :', '').strip() | def decide_pointgroup(self): '''Decide on the correct pointgroup for hklin.''' | 6b9529c9f834ca180d86fc49a016081bae0d63b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/6b9529c9f834ca180d86fc49a016081bae0d63b8/Pointless.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16288,
67,
1153,
1655,
12,
2890,
4672,
9163,
1799,
831,
603,
326,
3434,
1634,
1655,
364,
366,
79,
7511,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16288,
67,
1153,
1655,
12,
2890,
4672,
9163,
1799,
831,
603,
326,
3434,
1634,
1655,
364,
366,
79,
7511,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
s.top.geometry("%dx%d" % (s.top.winfo_reqwidth(), s.top.winfo_reqheight())) | s.top.geometry("") | def _togglelog(s): print "togglelog" if s.textenabled: s.oldtextheight = s.text.winfo_height() s.text.pack_forget() s.textenabled = 0 s.menubar.entryconfig('Hide Log', label = 'Show Log') s.top.update() s.top.geometry("%dx%d" % (s.top.winfo_reqwidth(), s.top.winfo_reqheight())) s.top.update() s.top.resizable(width = 0,... | 091ec4b21e72520d3bf162c3d155800d480c7be6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5335/091ec4b21e72520d3bf162c3d155800d480c7be6/Tk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
88,
717,
7043,
12970,
12,
87,
4672,
1172,
315,
88,
717,
7043,
12970,
6,
309,
272,
18,
955,
5745,
30,
272,
18,
1673,
955,
4210,
273,
272,
18,
955,
18,
91,
1376,
67,
4210,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
88,
717,
7043,
12970,
12,
87,
4672,
1172,
315,
88,
717,
7043,
12970,
6,
309,
272,
18,
955,
5745,
30,
272,
18,
1673,
955,
4210,
273,
272,
18,
955,
18,
91,
1376,
67,
4210,
1435,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.