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 |
|---|---|---|---|---|---|---|
The email address assoicated with the verification ID is | The email address associated with the verification ID is | def verify_emailAddress(self, verificationId): """Verify the email address associated with the verification ID ARGUMENTS verificationID: The verification code of the email address. RETURNS The email address associated with the verification ID. SIDE EFFECTS The email address assoicated with the verification ID is ver... | 5deb87b67e4e19bfefe7e7b7a1d7b4a56ba3dba9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6270/5deb87b67e4e19bfefe7e7b7a1d7b4a56ba3dba9/CustomUser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
3652,
1887,
12,
2890,
16,
11805,
548,
4672,
3536,
8097,
326,
2699,
1758,
3627,
598,
326,
11805,
1599,
225,
23654,
55,
11805,
734,
30,
1021,
11805,
981,
434,
326,
2699,
1758,
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,
3929,
67,
3652,
1887,
12,
2890,
16,
11805,
548,
4672,
3536,
8097,
326,
2699,
1758,
3627,
598,
326,
11805,
1599,
225,
23654,
55,
11805,
734,
30,
1021,
11805,
981,
434,
326,
2699,
1758,
18... |
buildcmd = os.path.join(buildConf["stageDir"], target + "application", "generate.py") | buildcmd += os.path.join(buildConf["stageDir"], target + "application", "generate.py") | def buildSkeletonApps(self, buildConf): self.log("Building skeleton applications") if not os.path.isdir(buildConf["buildLogDir"]): self.log("Creating build log directory %s" %buildConf["buildLogDir"]) os.mkdir(buildConf["buildLogDir"]) for target in sorted(buildConf["targets"]): self.buildStatus[target] = { "BuildErr... | 1889edf1e0805735aff2d6c5f3840c94f47d7a73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/1889edf1e0805735aff2d6c5f3840c94f47d7a73/qxtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
28070,
16339,
12,
2890,
16,
1361,
3976,
4672,
365,
18,
1330,
2932,
16713,
17761,
12165,
7923,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3510,
3976,
9614,
3510,
1343,
1621,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
28070,
16339,
12,
2890,
16,
1361,
3976,
4672,
365,
18,
1330,
2932,
16713,
17761,
12165,
7923,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
3510,
3976,
9614,
3510,
1343,
1621,
1... |
d = Derived(1, 'x', 'y') d.comments = [Comment(1, 'comment')] d2 = DerivedII(2, 'xx', 'z') d2.comments = [Comment(2, 'comment')] | d = Derived('uid1', 'x', 'y') d.comments = [Comment('uid1', 'comment')] d2 = DerivedII('uid2', 'xx', 'z') d2.comments = [Comment('uid2', 'comment')] | def __init__(self, uid, comment): self.uid = uid self.comment = comment | 645fa5255d899431d489b89d1c567bce96c1bb4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/645fa5255d899431d489b89d1c567bce96c1bb4d/assorted_eager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4555,
16,
2879,
4672,
365,
18,
1911,
273,
4555,
365,
18,
3469,
273,
2879,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4555,
16,
2879,
4672,
365,
18,
1911,
273,
4555,
365,
18,
3469,
273,
2879,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
group_ids=group_obj.search(cr,uid,[('name','=','Extended View')]) | group_ids=group_obj.search(cr,uid,[('name','ilike','Extended')]) | def action_set(self, cr, uid, ids, context=None): res=self.read(cr,uid,ids)[0] users_obj = self.pool.get('res.users') group_obj=self.pool.get('res.groups') if 'view' in res and res['view'] and res['view']=='extended': group_ids=group_obj.search(cr,uid,[('name','=','Extended View')]) if group_ids and len(group_ids): use... | 5c1949e71aa76412cc42f5747878d3c65c1dcf4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/5c1949e71aa76412cc42f5747878d3c65c1dcf4c/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
400,
33,
2890,
18,
896,
12,
3353,
16,
1911,
16,
2232,
25146,
20,
65,
3677,
67,
2603,
273,
365,
18,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
400,
33,
2890,
18,
896,
12,
3353,
16,
1911,
16,
2232,
25146,
20,
65,
3677,
67,
2603,
273,
365,
18,
6... |
'en': u'Game talk', 'ja': u'Game talk', | '_default': u'Game talk', | def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia' | 5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
551,
93,
7550,
1845,
1155,
11,
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,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
551,
93,
7550,
1845,
1155,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
assert 8 <= i2 <= i1 - 4 | assert 4 <= i2 <= i1 - 8 | def fn(): return (s1 * 100000000 + s2 * 1000000 + s3 * 10000 + s4 * 100 + s5) | b87f7ffb9ee98b247dcec152773136d840912d74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/b87f7ffb9ee98b247dcec152773136d840912d74/test_newgc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
13332,
327,
261,
87,
21,
380,
2130,
9449,
397,
272,
22,
380,
15088,
397,
272,
23,
380,
12619,
397,
272,
24,
380,
2130,
397,
272,
25,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2295,
13332,
327,
261,
87,
21,
380,
2130,
9449,
397,
272,
22,
380,
15088,
397,
272,
23,
380,
12619,
397,
272,
24,
380,
2130,
397,
272,
25,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.transDelta += dx | if self.moveOption == 'TRANSX': ma = V(1,0,0) elif self.moveOption == 'TRANSY': ma = V(0,1,0) elif self.moveOption == 'TRANSZ': ma = V(0,0,1) else: print "modifyMode.leftDrag: Error - unknown moveOption value =", self.moveOption return self.transDelta += dx qrot = Q(ma,-dy) self.rotDelta += qrot.angle *180.0/pi * sig... | def leftDrag(self, event): """Move the selected object(s): - in the plane of the screen following the mouse, - or slide and rotate along the an axis """ #Huaicai 3/23/05: This following line will fix bugs like 460. But #the root of the serials of bugs including a lot of cursor bugs is # the mouse event processing funct... | 25893bdce605e53f02b0ac0cd00ab0af3adbf0c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/25893bdce605e53f02b0ac0cd00ab0af3adbf0c7/modifyMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
11728,
12,
2890,
16,
871,
4672,
3536,
7607,
326,
3170,
733,
12,
87,
4672,
300,
316,
326,
11017,
434,
326,
5518,
3751,
326,
7644,
16,
300,
578,
12701,
471,
8534,
7563,
326,
392,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
11728,
12,
2890,
16,
871,
4672,
3536,
7607,
326,
3170,
733,
12,
87,
4672,
300,
316,
326,
11017,
434,
326,
5518,
3751,
326,
7644,
16,
300,
578,
12701,
471,
8534,
7563,
326,
392,
2... |
self.calculate_reclist_run_already = 0 self.update_reclist_run_already = 0 | self.calculate_reclist_run_already = 0 self.update_reclist_run_already = 0 | def __init__(self, name=""): "Creates collection instance by querying the DB configuration database about 'name'." self.calculate_reclist_run_already = 0 # to speed things up wihtout much refactoring self.update_reclist_run_already = 0 # to speed things up wihtout much refactoring self.reclist_with_nonpublic_subcolls =... | 8feaf3dc37480e67e795439507e15c1bbe70ff0e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/8feaf3dc37480e67e795439507e15c1bbe70ff0e/websearch_webcoll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
1546,
6,
4672,
315,
2729,
1849,
791,
635,
23936,
326,
2383,
1664,
2063,
2973,
296,
529,
14550,
365,
18,
11162,
67,
266,
830,
376,
67,
2681,
67,
1758... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1546,
6,
4672,
315,
2729,
1849,
791,
635,
23936,
326,
2383,
1664,
2063,
2973,
296,
529,
14550,
365,
18,
11162,
67,
266,
830,
376,
67,
2681,
67,
1758... |
def parse(self, line, timestamp=None, frame=None): | def parse(self, line, timestamp=None): | def parse(self, line, timestamp=None, frame=None): self.lineNumber += 1 tokens = line.split() try: # Do a small stupid sanity check if this is a correct usbmon log line try: if len(tokens) < 4: return if not(int(tokens[0],16) and int(tokens[1]) and (tokens[2] in ('S', 'C', 'E'))): return except: print "Error on line %d... | c1ec33609c82ccb69daccd59f2eead16288411c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10464/c1ec33609c82ccb69daccd59f2eead16288411c2/Log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
980,
16,
2858,
33,
7036,
4672,
365,
18,
1369,
1854,
1011,
404,
2430,
273,
980,
18,
4939,
1435,
775,
30,
468,
2256,
279,
5264,
384,
416,
350,
16267,
866,
309,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
980,
16,
2858,
33,
7036,
4672,
365,
18,
1369,
1854,
1011,
404,
2430,
273,
980,
18,
4939,
1435,
775,
30,
468,
2256,
279,
5264,
384,
416,
350,
16267,
866,
309,
333,
... |
Testing bad charent includes: <system_message level="3" line="1" source="%s" type="ERROR"> | Testing errors in included file: <system_message level="3" line="1" source="%(source)s" type="ERROR"> | def suite(): s = DocutilsTestSupport.ParserTestSuite() s.generateTests(totest) return s | d3de921e5a593a117ec5f91b17df0b042ec8ccab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/d3de921e5a593a117ec5f91b17df0b042ec8ccab/test_include.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
2678,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
2678,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if r == realm: | if r == self.realm: | def load_htdigest(self, filename, realm): """Load account information from apache style htdigest files, only users from the specified realm are used """ fd = open(filename, 'r') for line in fd.readlines(): line = line.strip() if not line: continue try: u, r, a1 = line.split(':') except ValueError: print >>sys.stderr, '... | 0c86e756a77bc08bebaf4e0d3297733829a86f16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/0c86e756a77bc08bebaf4e0d3297733829a86f16/auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
647,
10171,
12,
2890,
16,
1544,
16,
11319,
4672,
3536,
2563,
2236,
1779,
628,
12291,
2154,
366,
4465,
360,
395,
1390,
16,
1338,
3677,
628,
326,
1269,
11319,
854,
1399,
3536,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
647,
10171,
12,
2890,
16,
1544,
16,
11319,
4672,
3536,
2563,
2236,
1779,
628,
12291,
2154,
366,
4465,
360,
395,
1390,
16,
1338,
3677,
628,
326,
1269,
11319,
854,
1399,
3536,
51... |
"""firebird compiler modifies the lexical structure of Select statements to work under non-ANSI configured Firebird databases, if the use_ansi flag is False.""" def __init__(self, dialect, statement, parameters, **kwargs): self._outertable = None super(FBCompiler, self).__init__(dialect, statement, parameters, **kwarg... | """Firebird specific idiosincrasies""" | def dbapi(self): return self.module | 046703498161bc3cd3851e24e20ce87796440d31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/046703498161bc3cd3851e24e20ce87796440d31/firebird.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
2425,
12,
2890,
4672,
327,
365,
18,
2978,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
2425,
12,
2890,
4672,
327,
365,
18,
2978,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
ip = np.sum(inliers) / float(L) new_max = np.log(0.01) / np.log(1 - ip**model.ndp) if new_max < max_iter and new_max > 100: max_iter = new_max inliers_found = np.sum(inliers) | def __call__(self, data=None, inliers_required=None, confidence=None, max_iter=None, T=None, LO_RANSAC=None): """Execute RANSAC. | 4415ecbc15b6e91c136df75cd0cecd72822fc561 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12843/4415ecbc15b6e91c136df75cd0cecd72822fc561/ransac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
501,
33,
7036,
16,
316,
20756,
67,
4718,
33,
7036,
16,
15588,
33,
7036,
16,
943,
67,
2165,
33,
7036,
16,
399,
33,
7036,
16,
1806,
67,
54,
11607,
2226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
1991,
972,
12,
2890,
16,
501,
33,
7036,
16,
316,
20756,
67,
4718,
33,
7036,
16,
15588,
33,
7036,
16,
943,
67,
2165,
33,
7036,
16,
399,
33,
7036,
16,
1806,
67,
54,
11607,
2226,
... | |
cursor = self.db.cursor() | cursor = db.cursor() | def write_utctime(name, value, params={}): write_prop(name, strftime('%Y%m%dT%H%M%SZ', value), params) | e86006c3cc32892c719c60ca1262aa872518d915 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/e86006c3cc32892c719c60ca1262aa872518d915/Roadmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
322,
21261,
12,
529,
16,
460,
16,
859,
12938,
4672,
1045,
67,
5986,
12,
529,
16,
10405,
29909,
61,
9,
81,
9,
23148,
9,
44,
9,
49,
9,
28830,
2187,
460,
3631,
859,
13,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
67,
322,
21261,
12,
529,
16,
460,
16,
859,
12938,
4672,
1045,
67,
5986,
12,
529,
16,
10405,
29909,
61,
9,
81,
9,
23148,
9,
44,
9,
49,
9,
28830,
2187,
460,
3631,
859,
13,
2,
... |
cty.c_double, [cty.POINTER(FL_OBJECT)], | cty.c_double, [cty.POINTER(FL_OBJECT)], | def fl_set_positioner_yvalue(ob, val): """ fl_set_positioner_yvalue(ob, val) """ _fl_set_positioner_yvalue(ob, val) | 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,
542,
67,
3276,
264,
67,
93,
1132,
12,
947,
16,
1244,
4672,
3536,
1183,
67,
542,
67,
3276,
264,
67,
93,
1132,
12,
947,
16,
1244,
13,
3536,
225,
389,
2242,
67,
542,
67,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
67,
542,
67,
3276,
264,
67,
93,
1132,
12,
947,
16,
1244,
4672,
3536,
1183,
67,
542,
67,
3276,
264,
67,
93,
1132,
12,
947,
16,
1244,
13,
3536,
225,
389,
2242,
67,
542,
67,
327... |
unit = value | unit = str (value) | def parseSchema (self, ch, codec): """ Parse a received schema-description message. """ self.decOutstanding (ch) packageName = codec.read_str8 () className = codec.read_str8 () hash = codec.read_bin128 () configCount = codec.read_uint16 () instCount = codec.read_uint16 () methodCount = codec.read_uint16 () e... | 00ad6c2f3a752d5e4d4798e1400a9afdc6e43f71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/00ad6c2f3a752d5e4d4798e1400a9afdc6e43f71/management.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3078,
261,
2890,
16,
462,
16,
9196,
4672,
3536,
2884,
279,
5079,
1963,
17,
3384,
883,
18,
3536,
365,
18,
4924,
1182,
15167,
261,
343,
13,
9929,
273,
9196,
18,
896,
67,
701,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3078,
261,
2890,
16,
462,
16,
9196,
4672,
3536,
2884,
279,
5079,
1963,
17,
3384,
883,
18,
3536,
365,
18,
4924,
1182,
15167,
261,
343,
13,
9929,
273,
9196,
18,
896,
67,
701,
28,
... |
cogl.set_source_texture(cogl.texture_new_from_file(self._dark_path)) | cogl.set_source_texture(self._dark_texture) | def __paint_rectangle(self, width, height, color, border_color=None): if border_color is not None and self._border_width > 0.0: cogl.path_round_rectangle(0, 0, width, height, self._radius, 1) cogl.path_close() cogl.set_source_color(border_color) cogl.path_fill() w = self._border_width cogl.path_round_rectangle(w, w, w... | 6a2fb1d2abcbb5d3a7984cdb29d88acf2a80ddf4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5279/6a2fb1d2abcbb5d3a7984cdb29d88acf2a80ddf4/roundrect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
84,
1598,
67,
2607,
4341,
12,
2890,
16,
1835,
16,
2072,
16,
2036,
16,
5795,
67,
3266,
33,
7036,
4672,
309,
5795,
67,
3266,
353,
486,
599,
471,
365,
6315,
8815,
67,
2819,
405,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
84,
1598,
67,
2607,
4341,
12,
2890,
16,
1835,
16,
2072,
16,
2036,
16,
5795,
67,
3266,
33,
7036,
4672,
309,
5795,
67,
3266,
353,
486,
599,
471,
365,
6315,
8815,
67,
2819,
405,
3... |
dxl, dxr = get_adjustments(lines, props, x, y) | dxl, dxr, is_lb, is_rb = get_adjustments(lines, props, x, y) | def render(context, grid, props): context.set_line_width(props.line["width"]) lines = grid.lines_of_cell(x, y) for p, q, ltype, side in lines: sx = props.grid_to_screen_x(p, False) sy = props.grid_to_screen_y(q, False) bar = grid.is_valid(x, y) and grid.has_bar(x, y, ltype) border = "border" in side if ltype == "top"... | 6d1c5dd773e800ee5cc58815a12a3eb7a83dbbd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6427/6d1c5dd773e800ee5cc58815a12a3eb7a83dbbd4/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2472,
16,
3068,
16,
3458,
4672,
819,
18,
542,
67,
1369,
67,
2819,
12,
9693,
18,
1369,
9614,
2819,
6,
5717,
225,
2362,
273,
3068,
18,
3548,
67,
792,
67,
3855,
12,
92,
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,
1743,
12,
2472,
16,
3068,
16,
3458,
4672,
819,
18,
542,
67,
1369,
67,
2819,
12,
9693,
18,
1369,
9614,
2819,
6,
5717,
225,
2362,
273,
3068,
18,
3548,
67,
792,
67,
3855,
12,
92,
16,
... |
continue | def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ... | ad36df39a17a332d23f762ca1cf22c7316382793 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ad36df39a17a332d23f762ca1cf22c7316382793/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
2... | |
(run, run == 1 and "" or "s", timeTaken)) | (run, run != 1 and "s" or "", timeTaken)) | def run(self, test): "Run the given test case or test suite." result = self._makeResult() startTime = time.time() test(result) stopTime = time.time() timeTaken = float(stopTime - startTime) result.printErrors() self.stream.writeln(result.separator2) run = result.testsRun self.stream.writeln("Ran %d test%s in %.3fs" % (... | 7616504dcf49d233d38a7518cdd28a9cc6531b74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7616504dcf49d233d38a7518cdd28a9cc6531b74/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1842,
4672,
315,
1997,
326,
864,
1842,
648,
578,
1842,
11371,
1199,
563,
273,
365,
6315,
6540,
1253,
1435,
8657,
273,
813,
18,
957,
1435,
1842,
12,
2088,
13,
2132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1842,
4672,
315,
1997,
326,
864,
1842,
648,
578,
1842,
11371,
1199,
563,
273,
365,
6315,
6540,
1253,
1435,
8657,
273,
813,
18,
957,
1435,
1842,
12,
2088,
13,
2132,
... |
extended_count = struct.unpack('!L', data[4:])[0] | extended_count ,= struct.unpack('!L', data[4:]) | def _parseAttributes(self, data): flags = struct.unpack('!L', data[:4])[0] attrs = {} data = data[4:] if flags & FILEXFER_ATTR_SIZE == FILEXFER_ATTR_SIZE: size = struct.unpack('!Q', data[:8])[0] attrs['size'] = size data = data[8:] if flags & FILEXFER_ATTR_OWNERGROUP == FILEXFER_ATTR_OWNERGROUP: uid, gid = struct.unpac... | aef8d7424b2a725faf6ca18b071ce67e27dc3850 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/aef8d7424b2a725faf6ca18b071ce67e27dc3850/filetransfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
2498,
12,
2890,
16,
501,
4672,
2943,
273,
1958,
18,
17309,
2668,
5,
48,
2187,
501,
10531,
24,
5717,
63,
20,
65,
3422,
273,
2618,
501,
273,
501,
63,
24,
26894,
309,
2943,
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,
389,
2670,
2498,
12,
2890,
16,
501,
4672,
2943,
273,
1958,
18,
17309,
2668,
5,
48,
2187,
501,
10531,
24,
5717,
63,
20,
65,
3422,
273,
2618,
501,
273,
501,
63,
24,
26894,
309,
2943,
4... |
fp = gzip.GzipFile('', 'rb', 9, StringIO(content)) | fp = gzip.GzipFile('', 'rb', 9, StringIO.StringIO(content)) | def decode (page): "gunzip or deflate a compressed page" encoding = page.info().get("Content-Encoding") if encoding in ('gzip', 'x-gzip', 'deflate'): # cannot seek in socket descriptors, so must get content now content = page.read() if encoding == 'deflate': fp = StringIO.StringIO(zlib.decompress(content)) else: fp = g... | 1e1981a11cc7b2970c193ace7a39298a83b5598a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/1e1981a11cc7b2970c193ace7a39298a83b5598a/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
261,
2433,
4672,
315,
19339,
4450,
578,
1652,
20293,
279,
8968,
1363,
6,
2688,
273,
1363,
18,
1376,
7675,
588,
2932,
1350,
17,
4705,
7923,
309,
2688,
316,
7707,
17380,
2187,
296,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
261,
2433,
4672,
315,
19339,
4450,
578,
1652,
20293,
279,
8968,
1363,
6,
2688,
273,
1363,
18,
1376,
7675,
588,
2932,
1350,
17,
4705,
7923,
309,
2688,
316,
7707,
17380,
2187,
296,
9... |
return self._parse_response(h.getfile()) | return self.parse_response(h.getfile()) | def request(self, host, handler, request_body, verbose=0): # issue XML-RPC request | 76afec7dfcb69cb1df40ff404af1a7eb2e9c3217 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/76afec7dfcb69cb1df40ff404af1a7eb2e9c3217/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
1479,
16,
1838,
16,
590,
67,
3432,
16,
3988,
33,
20,
4672,
468,
5672,
3167,
17,
8087,
590,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
1479,
16,
1838,
16,
590,
67,
3432,
16,
3988,
33,
20,
4672,
468,
5672,
3167,
17,
8087,
590,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
"previous-song": lambda: player.playlist.previous(), "next-song": lambda: player.playlist.next(), | "previous": lambda: player.playlist.previous(), "next": lambda: player.playlist.next(), | def __rating(value): song = player.playlist.song if song: try: song["~#rating"] = max(0.0, min(1.0, float(value))) except (ValueError, TypeError): pass else: widgets.watcher.changed([song]) | bd6cf900c56de4e91afb8e923d0ad80837598f6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/bd6cf900c56de4e91afb8e923d0ad80837598f6b/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17326,
12,
1132,
4672,
17180,
273,
7291,
18,
1601,
1098,
18,
816,
75,
309,
17180,
30,
775,
30,
17180,
9614,
98,
7,
17326,
11929,
273,
943,
12,
20,
18,
20,
16,
1131,
12,
21,
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,
17326,
12,
1132,
4672,
17180,
273,
7291,
18,
1601,
1098,
18,
816,
75,
309,
17180,
30,
775,
30,
17180,
9614,
98,
7,
17326,
11929,
273,
943,
12,
20,
18,
20,
16,
1131,
12,
21,
18,... |
write_data_matrix(pheno_data.data_matrix, self.output_fname, header, pheno_data.row_id_ls, pheno_data.row_label_ls) | write_data_matrix(pheno_data.data_matrix, self.output_fname, header, pheno_data.row_id_ls, pheno_data.row_label_ls, \ transform_to_numpy=False) | def run(self): import MySQLdb conn = MySQLdb.connect(db=self.dbname, host=self.hostname, user = self.db_user, passwd = self.db_passwd) curs = conn.cursor() pheno_data = self.getPhenotypeData(curs, self.phenotype_avg_table, self.phenotype_method_table, \ self.ecotype_table, get_raw_data=self.get_raw_data) header = ['e... | 339ac869d54e6144748e13b6884314d8f95506dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9645/339ac869d54e6144748e13b6884314d8f95506dd/OutputPhenotype.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
13485,
1966,
1487,
273,
13485,
1966,
18,
3612,
12,
1966,
33,
2890,
18,
20979,
16,
1479,
33,
2890,
18,
10358,
16,
729,
273,
365,
18,
1966,
67,
1355,
16,
1909... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
13485,
1966,
1487,
273,
13485,
1966,
18,
3612,
12,
1966,
33,
2890,
18,
20979,
16,
1479,
33,
2890,
18,
10358,
16,
729,
273,
365,
18,
1966,
67,
1355,
16,
1909... |
for i in range(0, 5): | for i in range(5): | def find_o3d_root(): path = os.path.abspath(sys.path[0]) for i in range(0, 5): path = os.path.dirname(path) if (os.path.isdir(os.path.join(path, 'o3d')) and os.path.isdir(os.path.join(path, 'third_party'))): return path return '' | 2a3a06654561be5d0a871c950e7a791bea57bb75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/2a3a06654561be5d0a871c950e7a791bea57bb75/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
83,
23,
72,
67,
3085,
13332,
589,
273,
1140,
18,
803,
18,
5113,
803,
12,
9499,
18,
803,
63,
20,
5717,
364,
277,
316,
1048,
12,
25,
4672,
589,
273,
1140,
18,
803,
18,
1228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
83,
23,
72,
67,
3085,
13332,
589,
273,
1140,
18,
803,
18,
5113,
803,
12,
9499,
18,
803,
63,
20,
5717,
364,
277,
316,
1048,
12,
25,
4672,
589,
273,
1140,
18,
803,
18,
1228... |
{'abohm':'Defined to be 10^-9 ohms.', 'ohm':'SI derived unit of resistance.\nDefined to be a volt per ampere.', 'statohm':'CGS unit defined to be statvolt/statampere.\nApproximately equal to 8.98758*10^11 ohms.'}, | {'abohm':'Defined to be 10^-9 ohms.', 'ohm':'SI derived unit of resistance.\nDefined to be a volt per ampere.', 'statohm':'CGS unit defined to be statvolt/statampere.\nApproximately equal to 8.98758*10^11 ohms.'}, | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun... | d9145e61c2e167a847618a21778e0e532a04af5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d9145e61c2e167a847618a21778e0e532a04af5d/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... |
'%s'""" % date[0] if date[1]: query += "and b.modification_date <= '%s'" % date[1] | '%s'""" % dates[0] if dates[1]: query += "and b.modification_date <= '%s'" % dates[1] | def add_date(self, date=""): # If date is not set, then retrieve it from the database. # Reindex all formats newer than the modification date if not date: write_message("Using the last update time for the rank method") query = """SELECT last_updated FROM rnkMETHOD WHERE name='%s' """ % options["current_run"] res = run_... | be497a775e31aa1bbaa16c2d306e7aa635bdfe13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/be497a775e31aa1bbaa16c2d306e7aa635bdfe13/bibrank_word_indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
712,
12,
2890,
16,
1509,
1546,
6,
4672,
468,
971,
1509,
353,
486,
444,
16,
1508,
4614,
518,
628,
326,
2063,
18,
468,
868,
1615,
777,
6449,
16069,
2353,
326,
11544,
1509,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
712,
12,
2890,
16,
1509,
1546,
6,
4672,
468,
971,
1509,
353,
486,
444,
16,
1508,
4614,
518,
628,
326,
2063,
18,
468,
868,
1615,
777,
6449,
16069,
2353,
326,
11544,
1509,
309,
... |
if exe_name in self.fm.executables: return tuple(parts) + tuple(c) else: return self.either(c, 'vim', 'emacs', 'nano') | return self.either(c, 'vim', 'emacs', 'nano') | def app_editor(self, c): default_editor = os.environ['EDITOR'] parts = default_editor.split() exe_name = os.path.basename(parts[0]) | 1b0786f26c8a53104bae8c656e012c82202b2453 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/1b0786f26c8a53104bae8c656e012c82202b2453/apps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
67,
9177,
12,
2890,
16,
276,
4672,
805,
67,
9177,
273,
1140,
18,
28684,
3292,
13208,
3546,
2140,
273,
805,
67,
9177,
18,
4939,
1435,
15073,
67,
529,
273,
1140,
18,
803,
18,
13909,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
595,
67,
9177,
12,
2890,
16,
276,
4672,
805,
67,
9177,
273,
1140,
18,
28684,
3292,
13208,
3546,
2140,
273,
805,
67,
9177,
18,
4939,
1435,
15073,
67,
529,
273,
1140,
18,
803,
18,
13909,... |
update = self.table.update(self.table.c.version == int(startver)) | update = self.table.update(and_(self.table.c.version == int(startver), self.table.c.repository_id == str(self.repository.id))) | def runchange(self,ver,change,step): startver = ver endver = ver + step # Current database version must be correct! Don't run if corrupt! if self.version != startver: raise exceptions.InvalidVersionError("%s is not %s"%(self.version,startver)) # Run the change change.run(self.engine,step) # Update/refresh database vers... | 16144bb606acdc3be28327c1814232642d874016 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/149/16144bb606acdc3be28327c1814232642d874016/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3427,
12,
2890,
16,
502,
16,
3427,
16,
4119,
4672,
787,
502,
273,
1924,
679,
502,
273,
1924,
397,
2235,
468,
6562,
2063,
1177,
1297,
506,
3434,
5,
7615,
1404,
1086,
309,
16899,
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,
1086,
3427,
12,
2890,
16,
502,
16,
3427,
16,
4119,
4672,
787,
502,
273,
1924,
679,
502,
273,
1924,
397,
2235,
468,
6562,
2063,
1177,
1297,
506,
3434,
5,
7615,
1404,
1086,
309,
16899,
5... |
sql = "CREATE TABLE IF NOT EXISTS `%s` (%s) %s" % (tableWhitelist, ",".join(colsCreateWhitelist+idxWhitelist), ListBW.DB_ENGINE) | sql = "CREATE TABLE IF NOT EXISTS `%s` (%s) %s" % (self.tableWhitelist, ",".join(colsCreateWhitelist+idxWhitelist), ListBW.DB_ENGINE) | def start(self): if self.factory == None: raise ParamError("this module need reference to fatory and database connection pool") | 2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
6848,
422,
599,
30,
1002,
3014,
668,
2932,
2211,
1605,
1608,
2114,
358,
284,
8452,
471,
2063,
1459,
2845,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
6848,
422,
599,
30,
1002,
3014,
668,
2932,
2211,
1605,
1608,
2114,
358,
284,
8452,
471,
2063,
1459,
2845,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
column_selection("Sorting", "sort_", max_sort_columns, multisite_sorters, True) | column_selection("4. Sorting", "sort_", max_sort_columns, multisite_sorters, True) | def column_selection(title, var_prefix, maxnum, data, order=False): | d9482b3072e84bbef323078dfe1ccbe7bf8d0f6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/d9482b3072e84bbef323078dfe1ccbe7bf8d0f6f/experimental.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1057,
67,
10705,
12,
2649,
16,
569,
67,
3239,
16,
943,
2107,
16,
501,
16,
1353,
33,
8381,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1057,
67,
10705,
12,
2649,
16,
569,
67,
3239,
16,
943,
2107,
16,
501,
16,
1353,
33,
8381,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.audiobin.add(src, enc, sink) src.link(enc, srccaps) enc.link(sink) | self.audiobin.add(src, queue, enc, sink) src.link(queue, srccaps) gst.element_link_many(queue, enc, sink) | def createAudioBin ( self ): src = gst.element_factory_make("alsasrc", "absrc") srccaps = gst.Caps("audio/x-raw-int,rate=16000,channels=1,depth=16") | e41dbf9b0a4df7fcdb1b7e7996ad185b648158bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6451/e41dbf9b0a4df7fcdb1b7e7996ad185b648158bc/glive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12719,
9913,
261,
365,
262,
30,
1705,
273,
314,
334,
18,
2956,
67,
6848,
67,
6540,
2932,
1031,
345,
1310,
3113,
315,
378,
4816,
7923,
9133,
952,
6679,
273,
314,
334,
18,
24193,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12719,
9913,
261,
365,
262,
30,
1705,
273,
314,
334,
18,
2956,
67,
6848,
67,
6540,
2932,
1031,
345,
1310,
3113,
315,
378,
4816,
7923,
9133,
952,
6679,
273,
314,
334,
18,
24193,
29... |
os.utime(os.path.join(foo_path), (time.time() - 129600 - 2, foo_stat.st_mtime)) | os.utime(foo_path, (time.time() - 129600 - 2, foo_stat.st_mtime)) | def test_clean(self): # Remove old files from 'tmp' foo_path = os.path.join(self._path, 'tmp', 'foo') bar_path = os.path.join(self._path, 'tmp', 'bar') file(foo_path, 'w').close() file(bar_path, 'w').close() self._box.clean() self.assert_(os.path.exists(foo_path)) self.assert_(os.path.exists(bar_path)) foo_stat = os.st... | ae813ce321920ae06029abb695043844263247ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ae813ce321920ae06029abb695043844263247ad/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6200,
12,
2890,
4672,
468,
3581,
1592,
1390,
628,
296,
5645,
11,
8431,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
803,
16,
296,
5645,
2187,
296,
11351,
6134,
4653... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6200,
12,
2890,
4672,
468,
3581,
1592,
1390,
628,
296,
5645,
11,
8431,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
2890,
6315,
803,
16,
296,
5645,
2187,
296,
11351,
6134,
4653... |
tboxfile.write('<table>\n') tboxfile.write('<tr><th></th><th></th>') | tboxfile.write('<table cellspacing="1">\n') tboxfile.write('<tr><th rowspan="2">Test</th><th rowspan="2">0.6<br/>Target</th>') | def generateSummaryPage(self, pagename, tests, startdate, enddate): # tests { testname: { build: { date: { hour: [ (testname, itemDateTime, delta.days, buildname, hour, revision, runs, total, average) ] }}}} | 5be0808eb297f86eae7ff2fd9fd38058349def6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5be0808eb297f86eae7ff2fd9fd38058349def6c/perf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4733,
1964,
12,
2890,
16,
4262,
1069,
16,
7434,
16,
787,
712,
16,
679,
712,
4672,
468,
7434,
288,
1842,
529,
30,
288,
1361,
30,
288,
1509,
30,
288,
6126,
30,
306,
261,
3813,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4733,
1964,
12,
2890,
16,
4262,
1069,
16,
7434,
16,
787,
712,
16,
679,
712,
4672,
468,
7434,
288,
1842,
529,
30,
288,
1361,
30,
288,
1509,
30,
288,
6126,
30,
306,
261,
3813,
52... |
self.addMenu(menu, EditorHelper.wxID_SETUPPY2EXE, 'py2exe', accls, ()) | self.addMenu(menu, EditorHelper.wxID_SETUPPY2EXE, 'setup.py py2exe', accls, ()) | def addMenus(self, menu, model): accls = ModuleController.addMenus(self, menu, model) menu.AppendSeparator() self.addMenu(menu, EditorHelper.wxID_SETUPBUILD, 'build', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPCLEAN, 'clean', accls, ()) self.addMenu(menu, EditorHelper.wxID_SETUPINSTALL, 'install', accls, ()) ... | d53505cef4f317f95650eaeb8dce590f1e2b505c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d53505cef4f317f95650eaeb8dce590f1e2b505c/Controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
29755,
12,
2890,
16,
3824,
16,
938,
4672,
1721,
6429,
273,
5924,
2933,
18,
1289,
29755,
12,
2890,
16,
3824,
16,
938,
13,
3824,
18,
5736,
6581,
1435,
365,
18,
1289,
4599,
12,
5414,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
29755,
12,
2890,
16,
3824,
16,
938,
4672,
1721,
6429,
273,
5924,
2933,
18,
1289,
29755,
12,
2890,
16,
3824,
16,
938,
13,
3824,
18,
5736,
6581,
1435,
365,
18,
1289,
4599,
12,
5414,... |
print 'warning: unknown bugzilla userid %d, recording as anonymous' % userid loginName = 'anonymous' | print """WARNING: unknown bugzilla userid %d, recording as anonymous""" % (userid) loginName = "anonymous" loginName = LOGIN_MAP.get(loginName, loginName) | def getLoginName(self, cursor, userid): if userid not in self.loginNameCache: cursor.execute("SELECT * FROM profiles WHERE userid = %s" % userid) loginName = cursor.fetchall() | 63f7bce156a2ed5a10227f95c07a9ae105efaf62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/63f7bce156a2ed5a10227f95c07a9ae105efaf62/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25128,
461,
12,
2890,
16,
3347,
16,
6709,
4672,
309,
6709,
486,
316,
365,
18,
5819,
461,
1649,
30,
3347,
18,
8837,
2932,
4803,
380,
4571,
11788,
4852,
6709,
273,
738,
87,
6,
738,
6709,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25128,
461,
12,
2890,
16,
3347,
16,
6709,
4672,
309,
6709,
486,
316,
365,
18,
5819,
461,
1649,
30,
3347,
18,
8837,
2932,
4803,
380,
4571,
11788,
4852,
6709,
273,
738,
87,
6,
738,
6709,... |
t = type(value) if not isinstance(t, StringType): if not isinstance(t, TupleType): | if not isinstance(value, StringType): if not isinstance(value, TupleType): | def __init__(self, value=0): t = type(value) if not isinstance(t, StringType): if not isinstance(t, TupleType): if value == 0: value = time.time() value = time.localtime(value) value = time.strftime("%Y%m%dT%H:%M:%S", value) self.value = value | d7d5c0a166bfd40e0617fe88635cb21a32c3bc7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d7d5c0a166bfd40e0617fe88635cb21a32c3bc7a/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
33,
20,
4672,
309,
486,
1549,
12,
1132,
16,
31570,
4672,
309,
486,
1549,
12,
1132,
16,
7257,
559,
4672,
309,
460,
422,
374,
30,
460,
273,
813,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
33,
20,
4672,
309,
486,
1549,
12,
1132,
16,
31570,
4672,
309,
486,
1549,
12,
1132,
16,
7257,
559,
4672,
309,
460,
422,
374,
30,
460,
273,
813,
18,... |
def findBestFWHM(self,tries,rename_images=False,default_fit=P2,min_stars=5): | def findBestFWHM(self,tries,rename_images=False,default_fit=P2,min_stars=15): | def findBestFWHM(self,tries,rename_images=False,default_fit=P2,min_stars=5): # X is FWHM, Y is offset value self.focpos=[] self.fwhm=[] fwhm_min = None self.fwhm_MinimumX = None keys = tries.keys() keys.sort() for k in keys: self.focpos.append(k) if rename_images: tries[k] = self.rename(tries[k],'%b/focusing/%o/%f') tr... | e46c79e2bc6c0ababf1ddd7e86f538e4e59ce1e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6334/e46c79e2bc6c0ababf1ddd7e86f538e4e59ce1e5/focusing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
14173,
42,
12557,
49,
12,
2890,
16,
2007,
16,
18539,
67,
7369,
33,
8381,
16,
1886,
67,
7216,
33,
52,
22,
16,
1154,
67,
334,
5913,
33,
3600,
4672,
468,
1139,
353,
478,
12557,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
14173,
42,
12557,
49,
12,
2890,
16,
2007,
16,
18539,
67,
7369,
33,
8381,
16,
1886,
67,
7216,
33,
52,
22,
16,
1154,
67,
334,
5913,
33,
3600,
4672,
468,
1139,
353,
478,
12557,
49... |
self.enableHistBtns() | self.enableHistButtons() | def _showShim(self, imObj): # delete image from disk, if no longer in history if (self.dispImObj != None) and (self.dispImObj.imageName not in self.imObjDict): # purge file self.dispImObj.expire() #print "showImage(imObj=%s)" % (imObj,) if imObj == None: self.statusBar.setMsg("", RO.Constants.sevNormal) imArr = None e... | d1909c3750f356969ac52bbe45612907850f17e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/d1909c3750f356969ac52bbe45612907850f17e7/GuideWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4500,
1555,
381,
12,
2890,
16,
709,
2675,
4672,
468,
1430,
1316,
628,
4234,
16,
309,
1158,
7144,
316,
4927,
309,
261,
2890,
18,
25453,
1170,
2675,
480,
599,
13,
471,
261,
2890,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4500,
1555,
381,
12,
2890,
16,
709,
2675,
4672,
468,
1430,
1316,
628,
4234,
16,
309,
1158,
7144,
316,
4927,
309,
261,
2890,
18,
25453,
1170,
2675,
480,
599,
13,
471,
261,
2890,
18... |
where k_i is the degree of node i, [1]. A coefficient for | where k_i is the degree of vertex i, [1]. A coefficient for | def clustering_coeff(self, nbunch=None, with_labels=False, weights=False): r""" Returns the clustering coefficient for each node in nbunch as an ordered list. The clustering coefficient of a graph is the fraction of possible triangles that are triangles, c_i = triangles_i / (k_i*(k_i-1)/2) where k_i is the degree of n... | e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18743,
67,
18132,
12,
2890,
16,
4264,
4384,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
5376,
33,
8381,
4672,
436,
8395,
2860,
326,
18743,
16554,
364,
1517,
756,
316,
4264,
4384,
487,
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,
18743,
67,
18132,
12,
2890,
16,
4264,
4384,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
5376,
33,
8381,
4672,
436,
8395,
2860,
326,
18743,
16554,
364,
1517,
756,
316,
4264,
4384,
487,
3... |
Summary: Panda 3D Engine | Summary: The Panda3D free 3D engine | def MakeInstallerNSIS(file,fullname,smdirectory,installdir): print "Building "+fullname+" installer. This can take up to an hour." if (COMPRESSOR != "lzma"): print("Note: you are using zlib, which is faster, but lzma gives better compression.") if (os.path.exists(file)): os.remove(file) if (os.path.exists("nsis-output.... | 701fad9f3c4cdbc218db7326e7541325a9f99e8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/701fad9f3c4cdbc218db7326e7541325a9f99e8f/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
18678,
50,
15664,
12,
768,
16,
21885,
16,
87,
1264,
1292,
16,
5425,
1214,
4672,
1172,
315,
16713,
13773,
21885,
9078,
16050,
18,
1220,
848,
4862,
731,
358,
392,
6126,
1199,
309,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
50,
15664,
12,
768,
16,
21885,
16,
87,
1264,
1292,
16,
5425,
1214,
4672,
1172,
315,
16713,
13773,
21885,
9078,
16050,
18,
1220,
848,
4862,
731,
358,
392,
6126,
1199,
309,
26... |
r = re.search("<td width= '100%' valign='top' colspan=2 class=programmabeschrijving>(.+)<br>",l) if r != None: self.description = escape(r.group(1)) | r = re.search("<td width= '100%' valign='top' colspan=2 class=programmabeschrijving>(.+)<br>",l) if r != None: self.description = escape(r.group(1)) | def __init__(self,block,line,today,tomorrow): | 7b81d7649c303a524c05ce546e3b0939b85ecafa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/7b81d7649c303a524c05ce546e3b0939b85ecafa/xml_tv_be.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2629,
16,
1369,
16,
30064,
16,
3599,
15318,
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... | [
1,
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,
1001,
2738,
972,
12,
2890,
16,
2629,
16,
1369,
16,
30064,
16,
3599,
15318,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.frame is None or filename != filenames[self.frame]: | if self.frame is None or filename != filenames[self.frame] or filename is None: | def set_frame(self, frame=None, focus=False, init=False): if frame is None: frame = self.frame | d257d7b4df6776d17cebd0631ed7477606a9c342 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/d257d7b4df6776d17cebd0631ed7477606a9c342/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3789,
12,
2890,
16,
2623,
33,
7036,
16,
7155,
33,
8381,
16,
1208,
33,
8381,
4672,
309,
2623,
353,
599,
30,
2623,
273,
365,
18,
3789,
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,
444,
67,
3789,
12,
2890,
16,
2623,
33,
7036,
16,
7155,
33,
8381,
16,
1208,
33,
8381,
4672,
309,
2623,
353,
599,
30,
2623,
273,
365,
18,
3789,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
context = get_context() root = context.root | def weekly_view(self, context): context = get_context() root = context.root | bfc19d305f01f49281516d0514c6f873c1681f13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/bfc19d305f01f49281516d0514c6f873c1681f13/ical.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4860,
715,
67,
1945,
12,
2890,
16,
819,
4672,
819,
273,
336,
67,
2472,
1435,
1365,
273,
819,
18,
3085,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4860,
715,
67,
1945,
12,
2890,
16,
819,
4672,
819,
273,
336,
67,
2472,
1435,
1365,
273,
819,
18,
3085,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
for last, migration in problems(reversed(pending), done): missing = [m for m in last.forwards_plan()[:-1] if m not in done] if verbosity: m = ", ".join(str(m) for m in missing) print (" ! Migration %s should not have been applied " "before %s but was." % (last, m)) result.append((last, missing)) return result def back... | for last, migration in problems: to_check = list(last.dependencies) while to_check: checking = to_check.pop() if checking not in done: if verbosity: print (" ! Migration %s should not have been applied " "before %s but was." % (last, checking)) result.append((last, checking)) else: to_check.extend(checking.dependenc... | def forwards_problems(pending, done, verbosity): """ Takes the list of linearised pending migrations, and the set of done ones, and returns the list of problems, if any. """ result = [] for last, migration in problems(reversed(pending), done): missing = [m for m in last.forwards_plan()[:-1] if m not in done] if verbosi... | 74fb969762d0c35952f26dfd4b7dd3fbf6f3776b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/74fb969762d0c35952f26dfd4b7dd3fbf6f3776b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24578,
67,
29812,
12,
9561,
16,
2731,
16,
11561,
4672,
3536,
23004,
326,
666,
434,
9103,
5918,
4634,
9814,
16,
471,
326,
444,
434,
2731,
5945,
16,
471,
1135,
326,
666,
434,
9688,
16,
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,
24578,
67,
29812,
12,
9561,
16,
2731,
16,
11561,
4672,
3536,
23004,
326,
666,
434,
9103,
5918,
4634,
9814,
16,
471,
326,
444,
434,
2731,
5945,
16,
471,
1135,
326,
666,
434,
9688,
16,
3... |
dst = os.path.join(staging_dir, config.get('FILES', option)) | dst = os.path.join(staging_dir, config.get(section, option)) | def CopyFilesToStagingDir(config, staging_dir, output_dir): """Copies files required for installer archive to staging dir. """ for option in config.options('FILES'): if option.endswith('dir'): continue dst = os.path.join(staging_dir, config.get('FILES', option)) if not os.path.exists(dst): os.makedirs(dst) for file in... | 767436a532d7455eafacc75c728565f45936fd02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/767436a532d7455eafacc75c728565f45936fd02/create_installer_archive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
2697,
774,
510,
5755,
1621,
12,
1425,
16,
22207,
67,
1214,
16,
876,
67,
1214,
4672,
3536,
15670,
1390,
1931,
364,
16050,
5052,
358,
22207,
1577,
18,
3536,
364,
1456,
316,
642,
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,
5631,
2697,
774,
510,
5755,
1621,
12,
1425,
16,
22207,
67,
1214,
16,
876,
67,
1214,
4672,
3536,
15670,
1390,
1931,
364,
16050,
5052,
358,
22207,
1577,
18,
3536,
364,
1456,
316,
642,
18,
... |
return render.edit(page) | return render.edit(page, '/addbook', 'Add Book') | def GET(self): page = web.ctx.site.new("", {'type': web.ctx.site.get('/type/edition')}) return render.edit(page) | 99ce6327be0adcd52c3b63c96bfee5357986d90d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/99ce6327be0adcd52c3b63c96bfee5357986d90d/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
1363,
273,
3311,
18,
5900,
18,
4256,
18,
2704,
2932,
3113,
13666,
723,
4278,
3311,
18,
5900,
18,
4256,
18,
588,
2668,
19,
723,
19,
329,
608,
6134,
6792,
327,
1743... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
1363,
273,
3311,
18,
5900,
18,
4256,
18,
2704,
2932,
3113,
13666,
723,
4278,
3311,
18,
5900,
18,
4256,
18,
588,
2668,
19,
723,
19,
329,
608,
6134,
6792,
327,
1743... |
def __new__(cls, *args, **kwargs): """Return an existing instance of the component if it has already been activated, otherwise create a new instance. """ if issubclass(cls, ComponentManager): self = super(Component, cls).__new__(cls) self.compmgr = self return self compmgr = args[0] self = compmgr.components.get(cl... | def maybe_init(self, compmgr, init=init, cls=new_class): if cls not in compmgr.components: compmgr.components[cls] = self if init: try: init(self) except: del compmgr.components[cls] raise | d540f2e8f30786db68aa5ed51e50a2a373209c55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/d540f2e8f30786db68aa5ed51e50a2a373209c55/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6944,
67,
2738,
12,
2890,
16,
1161,
13552,
16,
1208,
33,
2738,
16,
2028,
33,
2704,
67,
1106,
4672,
309,
2028,
486,
316,
1161,
13552,
18,
8119,
30,
1161,
13552,
18,
8119,
63,
6429,
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,
6944,
67,
2738,
12,
2890,
16,
1161,
13552,
16,
1208,
33,
2738,
16,
2028,
33,
2704,
67,
1106,
4672,
309,
2028,
486,
316,
1161,
13552,
18,
8119,
30,
1161,
13552,
18,
8119,
63,
6429,
65,
... | |
def __init__(self, *args, **kwargs): super(FontFactory, self).__init__(*args, **kwargs) | def update(self, count, total): self.frac = 1.0 * count / total | def __init__(self, *args, **kwargs): super(FontFactory, self).__init__(*args, **kwargs) | e7b8a86b0b71ac3ea112ebbd9c2164e51fb322eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2102/e7b8a86b0b71ac3ea112ebbd9c2164e51fb322eb/comics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
5711,
1733,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
2,
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,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
5711,
1733,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... |
print fileTuples | def addReplica(self,replicaTuples,force=False): """ Add new replica to the TransformationDB for an existing lfn. """ gLogger.info("TransformationDB.addReplica: Attempting to add %s replicas." % len(replicaTuples)) fileTuples = [] for lfn,pfn,se,master in replicaTuples: fileTuples.append((lfn,pfn,0,se,'IGNORED-GUID','IG... | 5a5c47e955bd5a1be7125f1a9f51ee35548af729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/5a5c47e955bd5a1be7125f1a9f51ee35548af729/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
14222,
12,
2890,
16,
30065,
25813,
16,
5734,
33,
8381,
4672,
3536,
1436,
394,
12335,
358,
326,
21274,
2290,
364,
392,
2062,
328,
4293,
18,
3536,
314,
3328,
18,
1376,
2932,
15292,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
14222,
12,
2890,
16,
30065,
25813,
16,
5734,
33,
8381,
4672,
3536,
1436,
394,
12335,
358,
326,
21274,
2290,
364,
392,
2062,
328,
4293,
18,
3536,
314,
3328,
18,
1376,
2932,
15292,
22... | |
address:: An integer value. | @param address:: An integer value. | def free_heap_cell(address): """ Frees the heap cell at the specified address. Passing an invalid address will result in a panic. address:: An integer value. """ pass | 88b8a1bd1deaae376f22144e433e9a82abe1b629 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12774/88b8a1bd1deaae376f22144e433e9a82abe1b629/miso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4843,
67,
25506,
67,
3855,
12,
2867,
4672,
3536,
478,
5312,
326,
10500,
2484,
622,
326,
1269,
1758,
18,
31741,
392,
2057,
1758,
903,
563,
316,
279,
3933,
18,
225,
632,
891,
1758,
2866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4843,
67,
25506,
67,
3855,
12,
2867,
4672,
3536,
478,
5312,
326,
10500,
2484,
622,
326,
1269,
1758,
18,
31741,
392,
2057,
1758,
903,
563,
316,
279,
3933,
18,
225,
632,
891,
1758,
2866,
... |
source_path = self.source_path(name) | def _load_module(self, module): """Initialize a module from source.""" name = module.__name__ source_path = self.source_path(name) code_object = self.get_code(module.__name__) if not hasattr(module, '__file__'): module.__file__ = source_path if self.is_package(name): module.__path__ = [module.__file__.rsplit(path_sep,... | 1014d42dd314844c12bddee0d075521da965c60a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/1014d42dd314844c12bddee0d075521da965c60a/_bootstrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
2978,
12,
2890,
16,
1605,
4672,
3536,
7520,
279,
1605,
628,
1084,
12123,
508,
273,
1605,
16186,
529,
972,
981,
67,
1612,
273,
365,
18,
588,
67,
710,
12,
2978,
16186,
529,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
67,
2978,
12,
2890,
16,
1605,
4672,
3536,
7520,
279,
1605,
628,
1084,
12123,
508,
273,
1605,
16186,
529,
972,
981,
67,
1612,
273,
365,
18,
588,
67,
710,
12,
2978,
16186,
529,... | |
def save(self, request, cart, contact, payment_module): | def save(self, request, cart, contact, payment_module, data=None): | def save(self, request, cart, contact, payment_module): """Save the order and the credit card details.""" super(ProtxPayShipForm, self).save(request, cart, contact, payment_module) data = self.cleaned_data log.debug("data: %s", data) card_holder=data.get('card_holder', '') if not card_holder: card_holder = contact.full... | 56aa4a9ae388a8cf05b348160827aa25724010a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13656/56aa4a9ae388a8cf05b348160827aa25724010a4/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
590,
16,
7035,
16,
5388,
16,
5184,
67,
2978,
16,
501,
33,
7036,
4672,
3536,
4755,
326,
1353,
471,
326,
12896,
5270,
3189,
12123,
2240,
12,
626,
978,
9148,
26358,
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,
1923,
12,
2890,
16,
590,
16,
7035,
16,
5388,
16,
5184,
67,
2978,
16,
501,
33,
7036,
4672,
3536,
4755,
326,
1353,
471,
326,
12896,
5270,
3189,
12123,
2240,
12,
626,
978,
9148,
26358,
12... |
print '!!!',result_type,result_list | def processResults(self,ignoreResultsNumber=0,processResultsCount=0): """ ignoreResultsNumber Don't process the first ignoreResultsNumber results. processResultsCount If non-zero this parameters indicates the number of results processed is limited to processResultsCount. """ self.preProcessing() result_counter = 0 end_... | b733cba1d97e23ef671b0d8bd3aec121872d283e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/b733cba1d97e23ef671b0d8bd3aec121872d283e/async.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
3447,
12,
2890,
16,
6185,
3447,
1854,
33,
20,
16,
2567,
3447,
1380,
33,
20,
4672,
3536,
2305,
3447,
1854,
7615,
1404,
1207,
326,
1122,
2305,
3447,
1854,
1686,
18,
1207,
3447,
1380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
12,
2890,
16,
6185,
3447,
1854,
33,
20,
16,
2567,
3447,
1380,
33,
20,
4672,
3536,
2305,
3447,
1854,
7615,
1404,
1207,
326,
1122,
2305,
3447,
1854,
1686,
18,
1207,
3447,
1380,... | |
def handlerB(*args): global b_called b_called = True if verbose: print "handlerB invoked", args raise HandlerBCalled, args | class InterProcessSignalTests(unittest.TestCase): MAX_DURATION = 20 | def handlerB(*args): global b_called b_called = True if verbose: print "handlerB invoked", args raise HandlerBCalled, args | 0069567647481eda3a28530b4cd8342690dda319 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0069567647481eda3a28530b4cd8342690dda319/test_signal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
5294,
2227,
11208,
14650,
12,
4873,
3813,
18,
4709,
2449,
4672,
4552,
67,
24951,
273,
4200,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
5294,
2227,
11208,
14650,
12,
4873,
3813,
18,
4709,
2449,
4672,
4552,
67,
24951,
273,
4200,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def isCollection(self): return self._isCollection @property def parent(self): return self._parent @property def childTag(self): return self._childTag | def _isChild(self): if self._parent and self._uri == self._parent._uri: return True return False | def isCollection(self): return self._isCollection | 3313d042df4985bef89ce45cecf597816a15faa9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7637/3313d042df4985bef89ce45cecf597816a15faa9/proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26506,
12,
2890,
4672,
327,
365,
6315,
291,
2532,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26506,
12,
2890,
4672,
327,
365,
6315,
291,
2532,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self._out.write(content) | self._write(content) | def ignorableWhitespace(self, content): self._out.write(content) | 034b6b7be3cebf53fcb52320123270e2205c4645 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/034b6b7be3cebf53fcb52320123270e2205c4645/saxutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9750,
15514,
9431,
12,
2890,
16,
913,
4672,
365,
6315,
659,
18,
2626,
12,
1745,
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,
9750,
15514,
9431,
12,
2890,
16,
913,
4672,
365,
6315,
659,
18,
2626,
12,
1745,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if save: new_vcard.add(field.content) | def switch_mode(self, edit=False, save=False): self.edit = edit self.addButton.set_sensitive(edit) self.saveButton.set_property("visible", edit) self.editButton.set_property("visible", not edit) self.imagechangeButton.set_property("visible", edit) self.imageremoveButton.set_property("visible", edit and self.hasphoto) s... | 337e2628519817abde9df50dbed69c769add8439 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/337e2628519817abde9df50dbed69c769add8439/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
67,
3188,
12,
2890,
16,
3874,
33,
8381,
16,
1923,
33,
8381,
4672,
365,
18,
4619,
273,
3874,
365,
18,
1289,
3616,
18,
542,
67,
23481,
12,
4619,
13,
365,
18,
5688,
3616,
18,
542,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1620,
67,
3188,
12,
2890,
16,
3874,
33,
8381,
16,
1923,
33,
8381,
4672,
365,
18,
4619,
273,
3874,
365,
18,
1289,
3616,
18,
542,
67,
23481,
12,
4619,
13,
365,
18,
5688,
3616,
18,
542,... | |
-- nodes - the nodes to inspect (default is entire graph) | -- vertices - the vertices to inspect (default is entire graph) | def cliques_containing_node(self, nodes=None, cliques=None, with_labels=False): """ Returns the cliques containing each node, represented as a list of lists. (Returns a single list if only one input node). Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph... | e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
1213,
3280,
67,
2159,
12,
2890,
16,
2199,
33,
7036,
16,
4942,
29896,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
3536,
2860,
326,
4942,
29896,
4191,
1517,
756,
16,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
1213,
3280,
67,
2159,
12,
2890,
16,
2199,
33,
7036,
16,
4942,
29896,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
3536,
2860,
326,
4942,
29896,
4191,
1517,
756,
16,
10... |
Returns a file object. The file has no name, and will cease to exist when it is closed. | Returns an object with a file-like interface. The file has no name, and will cease to exist when it is closed. | def TemporaryFile(mode='w+b', bufsize=-1, suffix="", prefix=template, dir=None): """Create and return a temporary file. Arguments: 'prefix', 'suffix', 'directory' -- as for mkstemp. 'mode' -- the mode argument to os.fdopen (default "w+b"). 'bufsize' -- the buffer size argument to os.fdopen (default -1). The file is cre... | 266d40cd2c546c6666142d55c9ad3fbbed939e9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/266d40cd2c546c6666142d55c9ad3fbbed939e9c/tempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22791,
812,
12,
3188,
2218,
91,
15,
70,
2187,
1681,
1467,
29711,
21,
16,
3758,
1546,
3113,
1633,
33,
3202,
16,
1577,
33,
7036,
4672,
3536,
1684,
471,
327,
279,
6269,
585,
18,
13599,
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,
22791,
812,
12,
3188,
2218,
91,
15,
70,
2187,
1681,
1467,
29711,
21,
16,
3758,
1546,
3113,
1633,
33,
3202,
16,
1577,
33,
7036,
4672,
3536,
1684,
471,
327,
279,
6269,
585,
18,
13599,
30... |
print "build menu !" applet_iface.PopulateMenu(["set min value", "set medium value", "set max value"]) | return_from_bash = os.popen("cd " + app_folder + " && ./" + app_name + ".sh " + " action_on_build_menu").read().rstrip() print return_from_bash | def action_on_build_menu(): print "build menu !" applet_iface.PopulateMenu(["set min value", "set medium value", "set max value"]) | 59fcc46a95d3e69594be6d56e760cc4b5909cce2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6039/59fcc46a95d3e69594be6d56e760cc4b5909cce2/demo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
265,
67,
3510,
67,
5414,
13332,
327,
67,
2080,
67,
28734,
273,
1140,
18,
84,
3190,
2932,
4315,
315,
397,
595,
67,
5609,
397,
315,
597,
263,
4898,
397,
595,
67,
529,
397,
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,
1301,
67,
265,
67,
3510,
67,
5414,
13332,
327,
67,
2080,
67,
28734,
273,
1140,
18,
84,
3190,
2932,
4315,
315,
397,
595,
67,
5609,
397,
315,
597,
263,
4898,
397,
595,
67,
529,
397,
35... |
using floating point arithmetic and the GSL scientific library. | using floating point arithmetic via maxima. | def nintegral(self, x, a, b, desired_relative_error='1e-8', maximum_num_subintervals=200): r""" Return a floating point machine precision numerical approximation to the integral of self from a to b, computed using floating point arithmetic and the GSL scientific library. | 1b87be93340e5497e5b70fe9149625e3449ab01d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1b87be93340e5497e5b70fe9149625e3449ab01d/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
14970,
23811,
12,
2890,
16,
619,
16,
279,
16,
324,
16,
6049,
67,
11626,
67,
1636,
2218,
21,
73,
17,
28,
2187,
4207,
67,
2107,
67,
1717,
19812,
33,
6976,
4672,
436,
8395,
2000,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
14970,
23811,
12,
2890,
16,
619,
16,
279,
16,
324,
16,
6049,
67,
11626,
67,
1636,
2218,
21,
73,
17,
28,
2187,
4207,
67,
2107,
67,
1717,
19812,
33,
6976,
4672,
436,
8395,
2000,
2... |
for bit in UserBit.objects.filter(user__isnull=True).filter(Q(startdate__isnull=True) | Q(startdate__gt=now), Q(enddate__isnull=True) | Q(enddate__lt=now)): if bit.qsc.is_descendant(qsc) & bit.verb.is_antecedent(verb): | for bit in UserBit.objects.filter(user__isnull=True).filter(Q(startdate__isnull=True) | Q(startdate__lte=now), Q(enddate__isnull=True) | Q(enddate__gt=now)): if bit.qsc.is_descendant(qsc) and bit.verb.is_antecedent(verb): | def UserHasPerms(user, qsc, verb, now = datetime.now()): """ Given a user, a permission, and a subject, return True if the user, or all users, has been Granted [subject] on [permission]; False otherwise """ if user != None: for bit in user.userbit_set.all().filter(Q(startdate__isnull=True) | Q(startdate__gt=now), Q(end... | 5f31212f51cbb6dd33692b91926447d101850f1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/5f31212f51cbb6dd33692b91926447d101850f1d/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2177,
5582,
27256,
12,
1355,
16,
1043,
1017,
16,
6405,
16,
2037,
273,
3314,
18,
3338,
1435,
4672,
3536,
16803,
279,
729,
16,
279,
4132,
16,
471,
279,
3221,
16,
327,
1053,
309,
326,
729... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2177,
5582,
27256,
12,
1355,
16,
1043,
1017,
16,
6405,
16,
2037,
273,
3314,
18,
3338,
1435,
4672,
3536,
16803,
279,
729,
16,
279,
4132,
16,
471,
279,
3221,
16,
327,
1053,
309,
326,
729... |
AlvaClose(1) | AlvaLib.AlvaClose(1) | def terminate(self): super(BrailleDisplayDriver, self).terminate() try: self._alva_KeyCheckTimer.Stop() self._alva_KeyCheckTimer = None except: pass AlvaClose(1) | a906a03e97eb70e4e237f1cca7165c019d925c60 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/a906a03e97eb70e4e237f1cca7165c019d925c60/alvaBC6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10850,
12,
2890,
4672,
2240,
12,
38,
354,
14120,
4236,
4668,
16,
365,
2934,
30017,
1435,
775,
30,
365,
6315,
287,
15304,
67,
653,
1564,
6777,
18,
4947,
1435,
365,
6315,
287,
15304,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10850,
12,
2890,
4672,
2240,
12,
38,
354,
14120,
4236,
4668,
16,
365,
2934,
30017,
1435,
775,
30,
365,
6315,
287,
15304,
67,
653,
1564,
6777,
18,
4947,
1435,
365,
6315,
287,
15304,
67,
... |
x, y) | floor(x / scroll_amount), floor(y / scroll_amount)) self.Clear() | def scale(self, scale=None): scroll_amount = self.scroll_amount if scale == None: scale = self.scaling w = self.width * scale - 1 h = self.height * scale - 1 x = max(min(self.GetViewStart()[0] * scale / self.scaling + 1, w - self.GetSize().x) - 2, 0) y = max(min(self.GetViewStart()[1] * scale / self.scaling + 1, h - se... | 6eb1cae57ca1773babed2c1c4d12cf475259fce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/6eb1cae57ca1773babed2c1c4d12cf475259fce5/gamera_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
309,
3159,
422,
599,
30,
3159,
273,
365,
18,
24576,
341,
273,
365,
18,
2819,
380,
3159,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
309,
3159,
422,
599,
30,
3159,
273,
365,
18,
24576,
341,
273,
365,
18,
2819,
380,
3159,
300,
... |
functions. Copyright (c) 2004--2006 Marius Gedminas <marius@pov.lt> | functions. (I think I know how to fix this, see the TODO comments.) Copyright (c) 2004--2007 Marius Gedminas <marius@pov.lt> Copyright (c) 2007 Hanno Schlichting | def fn(n): if n < 2: return 1 else: return n * fn(n-1) | 446ff5c812110e5e63c63c13e72c7f38954e8420 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11054/446ff5c812110e5e63c63c13e72c7f38954e8420/profilehooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
12,
82,
4672,
309,
290,
411,
576,
30,
327,
404,
469,
30,
327,
290,
380,
2295,
12,
82,
17,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
12,
82,
4672,
309,
290,
411,
576,
30,
327,
404,
469,
30,
327,
290,
380,
2295,
12,
82,
17,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
chrs = [c for c in name if ('a' <= c <='z' or 'A' <= c <='Z' or '0' <= c <='9' or '_' == c )] name = ''.join(chrs) | def nameof_float(self, value): name = 'gfloat_%s' % value name = (name.replace('-', 'minus') .replace('.', 'dot')) chrs = [c for c in name if ('a' <= c <='z' or 'A' <= c <='Z' or '0' <= c <='9' or '_' == c )] name = ''.join(chrs) name = self.uniquename(name) self.initcode.append('INITCHK(%s = ' 'PyFloat_FromDouble(%r))... | 0dc65e640af3d8f0a03049ec747a2c942d3f2bd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/0dc65e640af3d8f0a03049ec747a2c942d3f2bd5/genc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
792,
67,
5659,
12,
2890,
16,
460,
4672,
508,
273,
296,
75,
5659,
10185,
87,
11,
738,
460,
508,
273,
261,
529,
18,
2079,
2668,
17,
2187,
296,
19601,
6134,
263,
2079,
2668,
1093,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
792,
67,
5659,
12,
2890,
16,
460,
4672,
508,
273,
296,
75,
5659,
10185,
87,
11,
738,
460,
508,
273,
261,
529,
18,
2079,
2668,
17,
2187,
296,
19601,
6134,
263,
2079,
2668,
1093,
... | |
cc, ns, tt, ct, callers = self.timings[rfn] | timings = self.timings cc, ns, tt, ct, callers = timings[rfn] | def trace_dispatch_return(self, frame, t): # if not frame is self.cur[-2]: raise "Bad return", self.cur[3] | e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
10739,
67,
2463,
12,
2890,
16,
2623,
16,
268,
4672,
468,
309,
486,
2623,
353,
365,
18,
1397,
18919,
22,
14542,
1002,
315,
6434,
327,
3113,
365,
18,
1397,
63,
23,
65,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
10739,
67,
2463,
12,
2890,
16,
2623,
16,
268,
4672,
468,
309,
486,
2623,
353,
365,
18,
1397,
18919,
22,
14542,
1002,
315,
6434,
327,
3113,
365,
18,
1397,
63,
23,
65,
2,
-10... |
MelStruct('DATA','2BH',(_flags,'flags',0L),'flags2','unknown'), | MelFactData('DATA','2BH',(_flags,'flags',0L),'flags2','unknown'), | def loadData(self,record,ins,type,size,readId): if size == 224: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 96: #--Else 96 byte record (skips particle variables, and color keys # Only used twice in test shaders (0004b6d5, 0004b6d6) unpacked = ins.unpack('B3s3I3Bs9f3Bs8fI',size,readId) else:... | 731203d62589855fe8bd96a522bd833f52918903 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/731203d62589855fe8bd96a522bd833f52918903/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29422,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
4672,
309,
963,
422,
576,
3247,
30,
490,
292,
3823,
18,
945,
751,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29422,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
4672,
309,
963,
422,
576,
3247,
30,
490,
292,
3823,
18,
945,
751,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1... |
node = self.DirCacheNode() treeNode.subNodes[restpath[0]] = node | node = self.DirCacheNode(parent = treeNode, name = restpath[0]) | def getDirCacheNode(self, path, create=0): treeNode = self.dirCache restpath = path while restpath: if restpath[0] not in treeNode.subNodes: if create: if restpath[0] in treeNode.oldSubNodes: if debugDirCache: print "Rebirth of node before", restpath[0] node = treeNode.oldSubNodes[restpath[0]] node.invalidate() else: i... | 055c7e9d46f869b104f4f3ac08a20c92d586f5d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/055c7e9d46f869b104f4f3ac08a20c92d586f5d4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26505,
1649,
907,
12,
2890,
16,
589,
16,
752,
33,
20,
4672,
29733,
273,
365,
18,
1214,
1649,
3127,
803,
273,
589,
1323,
3127,
803,
30,
309,
3127,
803,
63,
20,
65,
486,
316,
29733,
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,
26505,
1649,
907,
12,
2890,
16,
589,
16,
752,
33,
20,
4672,
29733,
273,
365,
18,
1214,
1649,
3127,
803,
273,
589,
1323,
3127,
803,
30,
309,
3127,
803,
63,
20,
65,
486,
316,
29733,
18... |
control. | control. | def __iter__(self): return iter(self.tests) | 04cd35a1a0557114ed21c5c47182a7d47450c695 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11821/04cd35a1a0557114ed21c5c47182a7d47450c695/suite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
327,
1400,
12,
2890,
18,
16341,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2165,
972,
12,
2890,
4672,
327,
1400,
12,
2890,
18,
16341,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
result = self.rpc.call_instance_os_add(inst.primary_node, inst, True, 0) | result = self.rpc.call_instance_os_add(inst.primary_node, inst, True, self.op.debug_level) | def Exec(self, feedback_fn): """Reinstall the instance. | dd713605f548fa11acc0d16b87fe2e004e68ec9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/dd713605f548fa11acc0d16b87fe2e004e68ec9c/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
426,
5425,
326,
791,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
426,
5425,
326,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
retval = False if operands: op = DoubleDecimal(" ".join(operands)) if op.isValid(): context.currentRecord.code = op.value context.currentRecord.complete = True retval = True else: context.error("syntax error: %s %s" % (self.mnemonic, operands)) | retval = True op = DoubleDecimal(" ".join(operands)) if op.isValid(): context.currentRecord.code = op.value context.currentRecord.complete = True else: context.error("syntax error: %s %s" % (self.mnemonic, operands)) retval = False | def parse_2DEC(self, context, operands): retval = False if operands: op = DoubleDecimal(" ".join(operands)) if op.isValid(): context.currentRecord.code = op.value context.currentRecord.complete = True retval = True else: context.error("syntax error: %s %s" % (self.mnemonic, operands)) return retval | 1bc9bc702b1a6f16b93c22e262ed22dfd4b79b9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/1bc9bc702b1a6f16b93c22e262ed22dfd4b79b9e/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
22,
1639,
39,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
1053,
1061,
273,
3698,
5749,
2932,
3552,
5701,
12,
4063,
5708,
3719,
309,
1061,
18,
26810,
13332,
819,
18,
2972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
22,
1639,
39,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
1053,
1061,
273,
3698,
5749,
2932,
3552,
5701,
12,
4063,
5708,
3719,
309,
1061,
18,
26810,
13332,
819,
18,
2972,
... |
Though it doesn't change the shap of the graph, increasing num_points can increase the clarity of the graph | Though it doesn't change the shape of the graph, increasing num_points can increase the clarity of the graph. | def list_plot3d(v, interpolation_type='default', texture="automatic", point_list=None,**kwds): """ A 3-dimensional plot of a surface defined by the list $v$ of points in 3-dimensional space. INPUT: v -- something that defines a set of points in 3 space, for example: * a matrix * a list of 3-tuples * a list of lists (a... | fa2b506f18cc0b9ea9ece1d8b4480686c054f008 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fa2b506f18cc0b9ea9ece1d8b4480686c054f008/list_plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434... |
if NewLines == []: | if (not LineControlDirectiveFound) and NewLines == []: | def TrimPreprocessedFile(Source, Target, Convert): f = open (Source, 'r') # read whole file Lines = f.readlines() f.close() PreprocessedFile = "" InjectedFile = "" LineIndexOfOriginalFile = None NewLines = [] for Index in range(len(Lines)): Line = Lines[Index].replace("\r", "") # # Find out the name of files injected ... | 1864ab847de1e11a1b6a5ae1941de042910e8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/1864ab847de1e11a1b6a5ae1941de042910e8fd4/Trim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7105,
1386,
11005,
812,
12,
1830,
16,
5916,
16,
4037,
4672,
284,
273,
1696,
261,
1830,
16,
296,
86,
6134,
468,
855,
7339,
585,
29682,
273,
284,
18,
896,
3548,
1435,
284,
18,
4412,
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,
7105,
1386,
11005,
812,
12,
1830,
16,
5916,
16,
4037,
4672,
284,
273,
1696,
261,
1830,
16,
296,
86,
6134,
468,
855,
7339,
585,
29682,
273,
284,
18,
896,
3548,
1435,
284,
18,
4412,
1435... |
if xb is None: xb=x[0] if xe is None: xe=x[-1] if yb is None: yb=y[0] if ye is None: ye=y[-1] | if xb is None: xb=x.min() if xe is None: xe=x.max() if yb is None: yb=y.min() if ye is None: ye=y.max() | def bisplrep(x,y,z,w=None,xb=None,xe=None,yb=None,ye=None,kx=3,ky=3,task=0,s=None, eps=1e-16,tx=None,ty=None,full_output=0,nxest=None,nyest=None,quiet=1): """Find a bivariate B-spline representation of a surface. Description: Given a set of data points (x[i], y[i], z[i]) representing a surface z=f(x,y), compute a B-s... | 765182827eb04adbfb9c0419d9d947b712c20cb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/765182827eb04adbfb9c0419d9d947b712c20cb8/fitpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17771,
412,
14462,
12,
92,
16,
93,
16,
94,
16,
91,
33,
7036,
16,
6114,
33,
7036,
16,
6554,
33,
7036,
16,
93,
70,
33,
7036,
16,
20513,
33,
7036,
16,
79,
92,
33,
23,
16,
18465,
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,
17771,
412,
14462,
12,
92,
16,
93,
16,
94,
16,
91,
33,
7036,
16,
6114,
33,
7036,
16,
6554,
33,
7036,
16,
93,
70,
33,
7036,
16,
20513,
33,
7036,
16,
79,
92,
33,
23,
16,
18465,
33,... |
stdout = process.read() | stdout = process.read().decode(sys.getfilesystemencoding()) | def _run(self, command, mode): process = os.popen(self._process_command(command)) stdout = process.read() if stdout.endswith('\n'): stdout = stdout[:-1] try: rc = process.close() except IOError: # Has occurred sometimes in Windows rc = -1 # -1 is eventually turned into 255 if rc is None: rc = 0 # In Windows (Pyth... | 22718eb63b64d3e439b3be9903a8d1725b0093cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/22718eb63b64d3e439b3be9903a8d1725b0093cc/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
2890,
16,
1296,
16,
1965,
4672,
1207,
273,
1140,
18,
84,
3190,
12,
2890,
6315,
2567,
67,
3076,
12,
3076,
3719,
3909,
273,
1207,
18,
896,
7675,
3922,
12,
9499,
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,
389,
2681,
12,
2890,
16,
1296,
16,
1965,
4672,
1207,
273,
1140,
18,
84,
3190,
12,
2890,
6315,
2567,
67,
3076,
12,
3076,
3719,
3909,
273,
1207,
18,
896,
7675,
3922,
12,
9499,
18,
588,
... |
pfnDict['Port'] = '' | pfnDict['Port'] = '' | def getUrl(self,path,withPort=True): """ This gets the URL for path supplied. With port is optional. """ pfnDict = pfnparse(path)['Value'] if not re.search(self.path,path): pfnDict['Path'] = "%s/%s" % (self.path,pfnDict['Path']) | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8928,
12,
2890,
16,
803,
16,
1918,
2617,
33,
5510,
4672,
3536,
1220,
5571,
326,
1976,
364,
589,
4580,
18,
3423,
1756,
353,
3129,
18,
3536,
293,
4293,
5014,
273,
293,
4293,
2670,
12,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8928,
12,
2890,
16,
803,
16,
1918,
2617,
33,
5510,
4672,
3536,
1220,
5571,
326,
1976,
364,
589,
4580,
18,
3423,
1756,
353,
3129,
18,
3536,
293,
4293,
5014,
273,
293,
4293,
2670,
12,
80... |
if arrows==1 or arrows==3: glDisable(GL_COLOR_MATERIAL) drawer.drawpolycone(colors[1], [points[1]+0.25*(points[2]-points[1]), points[1]+0.25*(points[2]-points[1]), points[1]-0.25*(points[2]-points[1]), points[1]-0.25*(points[2]-points[1])], [0.0, 0.0, radii[1]*2.0, radii[1]*2.0, ]) if arrows==2 or arrows==3: drawer.dra... | if dir==1: if draw5p and (arrows==1 or arrows==3): qbond = 0.25 * (points[2] - points[1]) drawer.drawpolycone(colors[1], [points[1] + qbond, points[1] + qbond, points[1] - qbond, points[1] - qbond], [0.0, 0.0, radii[1]*2.0, radii[1]*2.0]) if draw3p and (arrows==2 or arrows==3): hbond = 0.5 * (points[n-3] - points[n-2])... | def drawStrand(points, colors, radii, color_style, shape, arrows): """ Renders a strand shape along points array using colors and radii arrays, optionally with arrows. """ n = len(points) if n>3: # copy colors and radii colors[0] = colors[1] colors[n-1] = colors[n-2] radii[0] = radii[1] radii[n-1] = radii[n-2] # draw t... | cbc143d808cf827d03bc69ee526e2fca8459d46d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/cbc143d808cf827d03bc69ee526e2fca8459d46d/DnaCylinderChunks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1585,
464,
12,
4139,
16,
5740,
16,
28125,
16,
2036,
67,
4060,
16,
2179,
16,
419,
3870,
4672,
3536,
534,
10130,
279,
16706,
2179,
7563,
3143,
526,
1450,
5740,
471,
28125,
5352,
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,
3724,
1585,
464,
12,
4139,
16,
5740,
16,
28125,
16,
2036,
67,
4060,
16,
2179,
16,
419,
3870,
4672,
3536,
534,
10130,
279,
16706,
2179,
7563,
3143,
526,
1450,
5740,
471,
28125,
5352,
16,
... |
def notify_content_object_deleted(obj): | def notify_content_object_deleted(obj, event): | def notify_content_object_deleted(obj): """Remove all comments of a content object when the content object has been deleted. """ if IAnnotatable.providedBy(obj): conversation = IConversation(obj) for comment in conversation.getComments(): del conversation[comment.id] | e12d19a6e98fd1764e650d219a4c9891e5fded88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12197/e12d19a6e98fd1764e650d219a4c9891e5fded88/comment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
67,
1745,
67,
1612,
67,
8600,
12,
2603,
16,
871,
4672,
3536,
3288,
777,
5678,
434,
279,
913,
733,
1347,
326,
913,
733,
711,
2118,
4282,
18,
3536,
309,
467,
11280,
8163,
18,
29206... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
67,
1745,
67,
1612,
67,
8600,
12,
2603,
16,
871,
4672,
3536,
3288,
777,
5678,
434,
279,
913,
733,
1347,
326,
913,
733,
711,
2118,
4282,
18,
3536,
309,
467,
11280,
8163,
18,
29206... |
for table in primaryTableList: thisTable = tableDict[table] cmdList = [] for field in thisTable['Fields'].keys(): cmdList.append( '`%s` %s' % ( field, thisTable['Fields'][field] ) ) if thisTable.has_key( 'PrimaryKey' ): cmdList.append( 'PRIMARY KEY ( `%s` )' % thisTable['PrimaryKey'] ) auxTableList = [] if thisTa... | self.log.info( 'Table %s created' % table ) | def _createTables( self, tableDict, force = False ): """ tableDict: tableName: { 'Fields' : { 'Field': 'Description' }, 'ForeignKeys': {'Field': 'Table' }, 'PrimaryKey': 'Id', 'Indexes': { 'Index': [] }, 'UniqueIndexes': { 'Index': [] }, 'Engine': 'InnoDB' } only 'Fields' is a mandatory key. | f880c305d490ff6e14d918705fa41ebcb4540885 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/f880c305d490ff6e14d918705fa41ebcb4540885/MySQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
6905,
12,
365,
16,
1014,
5014,
16,
2944,
273,
1083,
262,
30,
3536,
1014,
5014,
30,
4775,
30,
288,
296,
2314,
11,
294,
288,
296,
974,
4278,
296,
3291,
11,
19879,
296,
28285,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
6905,
12,
365,
16,
1014,
5014,
16,
2944,
273,
1083,
262,
30,
3536,
1014,
5014,
30,
4775,
30,
288,
296,
2314,
11,
294,
288,
296,
974,
4278,
296,
3291,
11,
19879,
296,
28285,
... |
for seg in self: if item in seg: return True return False | i = bisect_left(self, item) return ((i != 0) and (item in self[i-1])) or ((i != len(self)) and (item in self[i])) | def __contains__(self, item): """ Returns True if the given object is wholly contained within one of the segments in self. Does not require the segmentlist to be coalesced. | c6474727058bd547e30ff49a0a111bff233612b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/c6474727058bd547e30ff49a0a111bff233612b7/segments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
761,
4672,
3536,
2860,
1053,
309,
326,
864,
733,
353,
600,
355,
715,
7542,
3470,
1245,
434,
326,
5155,
316,
365,
18,
225,
9637,
486,
2583,
326,
3267,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
761,
4672,
3536,
2860,
1053,
309,
326,
864,
733,
353,
600,
355,
715,
7542,
3470,
1245,
434,
326,
5155,
316,
365,
18,
225,
9637,
486,
2583,
326,
3267,
10... |
URL. Browser-based XSS filters mitigates some classes of cross-site scripting attacks.'), | URL. Browser-based XSS filters mitigates some classes of cross-site scripting attacks.'''), | def __init__(self, key, name, doc): """Initialze a benchmark test. | e4cd8474d22b39babce70f536be5f3a762e6088e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5745/e4cd8474d22b39babce70f536be5f3a762e6088e/test_set.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
498,
16,
508,
16,
997,
4672,
3536,
4435,
8489,
279,
14128,
1842,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
498,
16,
508,
16,
997,
4672,
3536,
4435,
8489,
279,
14128,
1842,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
curs.execute("select distinct s1.id, s1.chromosome, s1.position from %s s1"%(snp_locus_table)) | curs.execute("select distinct s1.id, s1.chromosome, s1.position from %s s1 order by chromosome, position"%(snp_locus_table)) | def get_snp_id2index_m(self, curs, input_table, snp_locus_table): """ 2008-05-05 deal with tables in schema dbsnp 2007-07-11 mysql version of get_snp_id2index 2007-12-13 for 'snps': take only SNPs appearing in input_table for 'snps_250k': take only the SNPs overlapping with 'snps'/149SNP """ sys.stderr.write("Getting s... | 2df54ad520dbc65704483acdafd3b84880e464c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/2df54ad520dbc65704483acdafd3b84880e464c4/dbSNP2data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
87,
6782,
67,
350,
22,
1615,
67,
81,
12,
2890,
16,
25326,
16,
810,
67,
2121,
16,
28648,
67,
1829,
407,
67,
2121,
4672,
3536,
4044,
28,
17,
6260,
17,
6260,
10490,
598,
4606,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
87,
6782,
67,
350,
22,
1615,
67,
81,
12,
2890,
16,
25326,
16,
810,
67,
2121,
16,
28648,
67,
1829,
407,
67,
2121,
4672,
3536,
4044,
28,
17,
6260,
17,
6260,
10490,
598,
4606,
... |
eventloop.add_timeout(1.0, _remove_file, "removing file", args=(self.log_path,)) | clean_up(self.log_path) | def _stop_logging(self, keep_file=False): if not self.log_file.closed: self.log_file.flush() self.log_file.close() self.log_file = None if not keep_file: eventloop.add_timeout(1.0, _remove_file, "removing file", args=(self.log_path,)) self.log_path = None | d2bd0fecf976e959676e6f6e103ea9f4ed0bd3df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/d2bd0fecf976e959676e6f6e103ea9f4ed0bd3df/videoconversion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5681,
67,
11167,
12,
2890,
16,
3455,
67,
768,
33,
8381,
4672,
309,
486,
365,
18,
1330,
67,
768,
18,
12204,
30,
365,
18,
1330,
67,
768,
18,
11330,
1435,
365,
18,
1330,
67,
768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5681,
67,
11167,
12,
2890,
16,
3455,
67,
768,
33,
8381,
4672,
309,
486,
365,
18,
1330,
67,
768,
18,
12204,
30,
365,
18,
1330,
67,
768,
18,
11330,
1435,
365,
18,
1330,
67,
768,
... |
self.system("git clone %s %s" % (server, tree)) | self.system("git clone %s %s" % (url, tree)) | def build(self, server, pkg): # maybe later support protocolls (the first item) other than git? scm = pkg.split('/')[0][:-1] tree = pkg.split('/')[2] pkgarr = pkg.split('/')[3].split('-') pkgname = "-".join(pkgarr[:-3]) pkgver = "-".join(pkgarr[-3:-1]) arch = pkgarr[-1] self.log(pkg, "starting build") sock = os.popen("... | 6e1a504052dad00646ff82cb8e1afeadccf8dcf5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11991/6e1a504052dad00646ff82cb8e1afeadccf8dcf5/syncpkgcd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
1438,
16,
3475,
4672,
468,
6944,
5137,
2865,
1771,
3251,
261,
5787,
1122,
761,
13,
1308,
2353,
5071,
35,
29207,
273,
3475,
18,
4939,
2668,
2473,
25146,
20,
6362,
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,
1361,
12,
2890,
16,
1438,
16,
3475,
4672,
468,
6944,
5137,
2865,
1771,
3251,
261,
5787,
1122,
761,
13,
1308,
2353,
5071,
35,
29207,
273,
3475,
18,
4939,
2668,
2473,
25146,
20,
6362,
30,
... |
settings.BASE_URL += request.META['SCRIPT_NAME'] domain += request.META['SCRIPT_NAME'] | if domain is not None: domain += request.META['SCRIPT_NAME'] | def process_request(self, request): """calculate settings.BASEURL based on HTTP headers""" domain = None if 'HTTP_HOST' in request.META: domain = request.META['HTTP_HOST'] settings.BASE_URL = 'http://' + request.META['HTTP_HOST'] if 'SCRIPT_NAME' in request.META: settings.SCRIPT_NAME = request.META['SCRIPT_NAME'] set... | 9e5920e1756a568f4a5de27f0485b1322a6d755d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/9e5920e1756a568f4a5de27f0485b1322a6d755d/baseurl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
590,
4672,
3536,
11162,
1947,
18,
8369,
1785,
2511,
603,
2239,
1607,
8395,
2461,
273,
599,
225,
309,
296,
3693,
67,
8908,
11,
316,
590,
18,
19294,
30,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2293,
12,
2890,
16,
590,
4672,
3536,
11162,
1947,
18,
8369,
1785,
2511,
603,
2239,
1607,
8395,
2461,
273,
599,
225,
309,
296,
3693,
67,
8908,
11,
316,
590,
18,
19294,
30,
246... |
SN_CHECK = idaapi.SN_CHECK | SN_CHECK = idaapi.SN_CHECK | def MakeNameEx(ea, name, flags): """ Rename an address @param ea: linear address @param name: new name of address. If name == "", then delete old name @param flags: combination of SN_... constants @return: 1-ok, 0-failure """ return idaapi.set_name(ea, name, flags) | f6eb09ba783822659c8520f1385c89f40cdd4a71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/f6eb09ba783822659c8520f1385c89f40cdd4a71/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
461,
424,
12,
24852,
16,
508,
16,
2943,
4672,
3536,
19996,
392,
1758,
225,
632,
891,
24164,
30,
9103,
1758,
632,
891,
508,
30,
394,
508,
434,
1758,
18,
971,
508,
422,
23453,
1508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
461,
424,
12,
24852,
16,
508,
16,
2943,
4672,
3536,
19996,
392,
1758,
225,
632,
891,
24164,
30,
9103,
1758,
632,
891,
508,
30,
394,
508,
434,
1758,
18,
971,
508,
422,
23453,
1508... |
Use set_video_start_callback(usercallback) to correct this problem. """ | Use set_video_event_callback(usercallback) to correct this problem. """ | def __init__(self,msg=None): TriblerException.__init__(self,msg) | 36fa6bf9ee9439da5a52c6f23fac7e2b5d7590c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/36fa6bf9ee9439da5a52c6f23fac7e2b5d7590c1/exceptions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3576,
33,
7036,
4672,
840,
495,
749,
503,
16186,
2738,
972,
12,
2890,
16,
3576,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3576,
33,
7036,
4672,
840,
495,
749,
503,
16186,
2738,
972,
12,
2890,
16,
3576,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def AddMethod (self, function): """ temporary workaround; newer versions of SCons provide this as a global function """ self.__dict__[function.__name__] = function.__get__(self) | def AddMethod (self, function): """ temporary workaround; newer versions of SCons provide this as a global function """ self.__dict__[function.__name__] = function.__get__(self) | 944b7c4dd4f17703d4983fc95dd3ffb551db439a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13677/944b7c4dd4f17703d4983fc95dd3ffb551db439a/LumieraEnvironment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
getweight = self._policy.getWeight | getweight = trans.getPolicy().getWeight | def _updown(self, pkg, changeset, locked, pruneweight, depth=0, force=0): """ If force=1, insists on replacing or removing pkg. """ depth += 1 trace(1, depth, "_updown(%s, pw=%f, f=%d)", (pkg, pruneweight, force)) | c2ff0e2fa3473e5898baf091e7a39f94abf28732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/c2ff0e2fa3473e5898baf091e7a39f94abf28732/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
416,
2378,
12,
2890,
16,
3475,
16,
22463,
16,
8586,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
16,
2944,
33,
20,
4672,
3536,
971,
2944,
33,
21,
16,
2763,
1486,
603,
13993,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
416,
2378,
12,
2890,
16,
3475,
16,
22463,
16,
8586,
16,
846,
318,
359,
1274,
16,
3598,
33,
20,
16,
2944,
33,
20,
4672,
3536,
971,
2944,
33,
21,
16,
2763,
1486,
603,
13993,
578,
... |
key = (order, name, modulus) | key = (order, name, modulus, args, list(kwds)) | def FiniteField(order, name=None, modulus=None, names=None, elem_cache=False, check_irreducible=True, *args, **kwds): """ Return the globally unique finite field of given order with generator labeled by the given name and possibly with given modulus. INPUT: order -- int name -- string; must be specified in not a ... | e599ea4615af590de161e4743496661bb9af9e19 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/e599ea4615af590de161e4743496661bb9af9e19/finite_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9458,
1137,
974,
12,
1019,
16,
508,
33,
7036,
16,
24770,
33,
7036,
16,
1257,
33,
7036,
16,
3659,
67,
2493,
33,
8381,
16,
866,
67,
481,
1118,
5286,
1523,
33,
5510,
16,
380,
1968,
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,
9458,
1137,
974,
12,
1019,
16,
508,
33,
7036,
16,
24770,
33,
7036,
16,
1257,
33,
7036,
16,
3659,
67,
2493,
33,
8381,
16,
866,
67,
481,
1118,
5286,
1523,
33,
5510,
16,
380,
1968,
16,
... |
return self.has_internal(sprite) | try: for spr in sprite: if not self.has(spr): return False except (TypeError, AttributeError): if hasattr(sprite, '_spritegroup'): for spr in sprite.sprites(): if not self.has_internal(spr): return False else: if not self.has_internal(sprite): return False return True else: return False | def has(self, *sprites): """ask if group has a sprite or sprites | fa7b94425edd2d4e70a8ab62ecbffee200be7ce2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/fa7b94425edd2d4e70a8ab62ecbffee200be7ce2/sprite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
12,
2890,
16,
380,
1752,
24047,
4672,
3536,
835,
309,
1041,
711,
279,
16839,
578,
1694,
24047,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
12,
2890,
16,
380,
1752,
24047,
4672,
3536,
835,
309,
1041,
711,
279,
16839,
578,
1694,
24047,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return fcmp(x.real, y.real) == 0 == fcmp(x.imag, y.imag) | return check_close_real(x.real, y.real, eps) and \ check_close_real(x.imag, y.imag, eps) | def check_close(x, y): """Return true iff complexes x and y "are close\"""" return fcmp(x.real, y.real) == 0 == fcmp(x.imag, y.imag) | 239102000fdd59c5f6b11112c52797a041bbd33a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/239102000fdd59c5f6b11112c52797a041bbd33a/test_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
4412,
12,
92,
16,
677,
4672,
3536,
990,
638,
21437,
7233,
281,
619,
471,
677,
315,
834,
1746,
2412,
8395,
327,
866,
67,
4412,
67,
7688,
12,
92,
18,
7688,
16,
677,
18,
7688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
4412,
12,
92,
16,
677,
4672,
3536,
990,
638,
21437,
7233,
281,
619,
471,
677,
315,
834,
1746,
2412,
8395,
327,
866,
67,
4412,
67,
7688,
12,
92,
18,
7688,
16,
677,
18,
7688,
... |
class TestXmlWriterUtils(unittest.TestCase): def setUp(self): self.writer = utils.abstractxmlwriter.AbstractXmlWriter() def test_encode_with_illegal_chars(self): assert_equals(self.writer._encode(u'\x1b[31m'), '[31m') def test_encode_without_illegal_char(self): assert_equals(self.writer._encode('\\x09'), '\\x09') | def _verify_node(self, node, name, text=None, attrs={}): if node is None: node = utils.DomWrapper(PATH) assert_equals(node.name, name) if text is not None: assert_equals(node.text, text) assert_equals(node.attrs, attrs) | cbc1ddc5206f4a6d038ce5dab5597b3559226234 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/cbc1ddc5206f4a6d038ce5dab5597b3559226234/test_xmlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8705,
67,
2159,
12,
2890,
16,
756,
16,
508,
16,
977,
33,
7036,
16,
3422,
12938,
4672,
309,
756,
353,
599,
30,
756,
273,
2990,
18,
8832,
3611,
12,
4211,
13,
1815,
67,
14963,
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,
389,
8705,
67,
2159,
12,
2890,
16,
756,
16,
508,
16,
977,
33,
7036,
16,
3422,
12938,
4672,
309,
756,
353,
599,
30,
756,
273,
2990,
18,
8832,
3611,
12,
4211,
13,
1815,
67,
14963,
12,
... | |
EXAMPLES: | EXAMPLES:: | def __call__(self, n): """ Calls the euler_phi function. | 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,
1001,
1991,
972,
12,
2890,
16,
290,
4672,
3536,
23665,
326,
425,
17040,
67,
9973,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
290,
4672,
3536,
23665,
326,
425,
17040,
67,
9973,
445,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
radAvg = math.atan2( lsum([lsin(radAngle) for radAngle in radAngles])/len_radAngle, lsum([lcos(radAngle) for radAngle in radAngles])/len_radAngle ) avg = math.degrees(radAvg) msum = 0 lpi = math.pi lpi_2 = lpi*2 for radAngle in radAngles: straight = radAngle%lpi_2 - radAvg msum += lpow(straight if straight < lpi e... | if len_radAngle: if len_radAngle == 1: self.stats[key] = [lobs[0].dat[key], 0] else: radAvg = math.atan2( lsum([lsin(radAngle) for radAngle in radAngles])/len_radAngle, lsum([lcos(radAngle) for radAngle in radAngles])/len_radAngle ) avg = math.degrees(radAvg) msum = 0 lpi = math.pi lpi_2 = lpi*2 for radAngle ... | def ComputeStats(self, key, ref=None): #store functions and variables locally for speed optimization lobs = self.obs | beca698cabf4acd5db51cfe16809a8f2abe64688 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6163/beca698cabf4acd5db51cfe16809a8f2abe64688/ConfDistFuncs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8155,
4195,
12,
2890,
16,
498,
16,
1278,
33,
7036,
4672,
468,
2233,
4186,
471,
3152,
13760,
364,
8632,
14850,
437,
2038,
273,
365,
18,
10992,
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,
0,
0,
0,
0,
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,
8155,
4195,
12,
2890,
16,
498,
16,
1278,
33,
7036,
4672,
468,
2233,
4186,
471,
3152,
13760,
364,
8632,
14850,
437,
2038,
273,
365,
18,
10992,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
class BadException: | class BadException(Exception): | def ckmsg(src, msg): try: compile(src, '<fragment>', 'exec') except SyntaxError, e: print e.msg if e.msg == msg: print "ok" else: print "expected:", msg else: print "failed to get expected SyntaxError" | 79be9601db13a78d43b0b3b5f164913cce7dbcf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/79be9601db13a78d43b0b3b5f164913cce7dbcf7/test_exceptions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12622,
3576,
12,
4816,
16,
1234,
4672,
775,
30,
4074,
12,
4816,
16,
2368,
11956,
1870,
16,
296,
4177,
6134,
1335,
18453,
16,
425,
30,
1172,
425,
18,
3576,
309,
425,
18,
3576,
422,
1234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12622,
3576,
12,
4816,
16,
1234,
4672,
775,
30,
4074,
12,
4816,
16,
2368,
11956,
1870,
16,
296,
4177,
6134,
1335,
18453,
16,
425,
30,
1172,
425,
18,
3576,
309,
425,
18,
3576,
422,
1234... |
mail = Message.IncomingMessage() subject = mail.getheader("subject") sender = string.lower(mail.GetSender()) | msg = Message.IncomingMessage() subject = msg.getheader("subject") sender = string.lower(msg.GetSender()) | def ParseMailCommands(self): | 4b2df7e3d338f55697b3a243715d01d52d223317 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/4b2df7e3d338f55697b3a243715d01d52d223317/MailCommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
6759,
9127,
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,
2884,
6759,
9127,
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,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.