rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if verbose: print "testing complex args" | def comp_args(a=2, (b, c)=(3, 4)): return a, b, c self.assertEqual(comp_args(1, (2, 3)), (1, 2, 3)) self.assertEqual(comp_args(), (2, 3, 4)) | exec 'def f(a): global a; a = 1' | 8a99b5023931c5a01540bda67516235a8dfe8470 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8a99b5023931c5a01540bda67516235a8dfe8470/test_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1196,
296,
536,
284,
12,
69,
4672,
2552,
279,
31,
279,
273,
404,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1196,
296,
536,
284,
12,
69,
4672,
2552,
279,
31,
279,
273,
404,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.assertEqual(data.strip(), b'x') | self.assert_(data.startswith(b'x'), data) | def test_unbuffered_input(self): # sys.stdin still works with '-u' code = ("import sys; sys.stdout.write(sys.stdin.read(1))") p = _spawn_python('-u', '-c', code) p.stdin.write(b'x') p.stdin.flush() data, rc = _kill_python_and_exit_code(p) self.assertEqual(rc, 0) self.assertEqual(data.strip(), b'x') | 1058a673bbabd1be0feec86c076640d46b3bcdfb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/1058a673bbabd1be0feec86c076640d46b3bcdfb/test_cmd_line.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
318,
26385,
67,
2630,
12,
2890,
4672,
468,
2589,
18,
21772,
4859,
6330,
598,
2400,
89,
11,
981,
273,
7566,
5666,
2589,
31,
2589,
18,
10283,
18,
2626,
12,
9499,
18,
21772,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
318,
26385,
67,
2630,
12,
2890,
4672,
468,
2589,
18,
21772,
4859,
6330,
598,
2400,
89,
11,
981,
273,
7566,
5666,
2589,
31,
2589,
18,
10283,
18,
2626,
12,
9499,
18,
21772,
18,... |
return str(long((n / (2 ** 10)) * 10) / 10.0) | return str(long((float(n) / (2 ** 10)) * 10) / 10.0) | def kify(n): return str(long((n / (2 ** 10)) * 10) / 10.0) | 7c010455af08d67a6fff4d351a543a7db6d0bc58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/7c010455af08d67a6fff4d351a543a7db6d0bc58/DownloaderFeedback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
1164,
12,
82,
4672,
327,
609,
12,
5748,
12443,
5659,
12,
82,
13,
342,
261,
22,
2826,
1728,
3719,
380,
1728,
13,
342,
1728,
18,
20,
13,
225,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
1164,
12,
82,
4672,
327,
609,
12,
5748,
12443,
5659,
12,
82,
13,
342,
261,
22,
2826,
1728,
3719,
380,
1728,
13,
342,
1728,
18,
20,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
b"a9993e364706816aba3e25717850c26c9cd0d89d") | "a9993e364706816aba3e25717850c26c9cd0d89d") | def test_case_sha1_1(self): self.check('sha1', b"abc", b"a9993e364706816aba3e25717850c26c9cd0d89d") | 558ca847308cc35ed387cf5800269b647c87a51d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/558ca847308cc35ed387cf5800269b647c87a51d/test_hashlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
67,
7819,
21,
67,
21,
12,
2890,
4672,
365,
18,
1893,
2668,
7819,
21,
2187,
324,
6,
18947,
3113,
324,
6,
69,
2733,
11180,
73,
23,
1105,
7301,
9470,
2313,
378,
69,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
67,
7819,
21,
67,
21,
12,
2890,
4672,
365,
18,
1893,
2668,
7819,
21,
2187,
324,
6,
18947,
3113,
324,
6,
69,
2733,
11180,
73,
23,
1105,
7301,
9470,
2313,
378,
69,
23,
... |
assert httplib.HTTP._connection_class == httplib.HTTPConnection httplib.HTTP._connection_class = FakeHTTPConnection | self._connection_class = httplib.HTTPConnection httplib.HTTPConnection = FakeHTTPConnection | def connect(self): self.sock = FakeSocket(fakedata) | 77553ab531c6a98c3d06b7ba4158b06ed0af8c69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/77553ab531c6a98c3d06b7ba4158b06ed0af8c69/test_urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
4672,
365,
18,
15031,
273,
11551,
4534,
12,
507,
79,
329,
396,
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,
3077,
12,
2890,
4672,
365,
18,
15031,
273,
11551,
4534,
12,
507,
79,
329,
396,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
args = ['/sbin/ccs_test', 'get', descr, '/cluster/\@name'] | args = ['/sbin/ccs_test', 'get', descr, '/cluster/@name'] | def getClusterName(self): #Use [root@link-08 ~]# ccs_test connect # Connect successful. #Connection descriptor = 0 # [root@link-08 ~]# ccs_test get 0 /cluster/\@name #Get successful. # Value = <link-cluster> | 5b30cfa8d276d3b7d43994a0d840aee180c427b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/5b30cfa8d276d3b7d43994a0d840aee180c427b6/CommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21206,
461,
12,
2890,
4672,
468,
3727,
225,
306,
3085,
36,
1232,
17,
6840,
4871,
65,
7,
276,
2143,
67,
3813,
3077,
468,
8289,
6873,
18,
468,
1952,
4950,
273,
374,
468,
306,
3085,
36,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21206,
461,
12,
2890,
4672,
468,
3727,
225,
306,
3085,
36,
1232,
17,
6840,
4871,
65,
7,
276,
2143,
67,
3813,
3077,
468,
8289,
6873,
18,
468,
1952,
4950,
273,
374,
468,
306,
3085,
36,
... |
try: config = cozy.configutils.Configuration() target_path = config.get_full_target_path() backup_id = config.get_backup_id() source_paths = [config.get_source_path()] except Exception, e: | config = cozy.configutils.Configuration() target_path = config.full_target_path backup_id = config.backup_id source_paths = [config.source_path] if target_path is None or backup_id is None or None in source_paths: exit('Error: Aborting backup because getting the configuration failed') | def sync(source, target): for dirpath, dirnames, filenames in os.walk(source): rel_path = dirpath.replace(source, '').lstrip('/') for target_dir_file in os.listdir(os.path.join(target, rel_path)): abs_target_path = os.path.join(target, rel_path, target_dir_file) if (os.path.isfile(abs_target_path) or (os.path.islink... | 94e7e2b325a04f02ead6f25ad2941e14fd880f97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/736/94e7e2b325a04f02ead6f25ad2941e14fd880f97/cozy-backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
3168,
16,
1018,
4672,
225,
364,
17803,
16,
1577,
1973,
16,
9066,
316,
1140,
18,
11348,
12,
3168,
4672,
225,
1279,
67,
803,
273,
17803,
18,
2079,
12,
3168,
16,
875,
2934,
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,
3792,
12,
3168,
16,
1018,
4672,
225,
364,
17803,
16,
1577,
1973,
16,
9066,
316,
1140,
18,
11348,
12,
3168,
4672,
225,
1279,
67,
803,
273,
17803,
18,
2079,
12,
3168,
16,
875,
2934,
80,
... |
def focusCallback (entry, direction): self.connectButton.grab_default() self.usernameEntry.connect("focus", focusCallback) | def focusCallback (entry, direction): self.connectButton.grab_default() | 532edc1f739165780974c208f24f58915176ef4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/532edc1f739165780974c208f24f58915176ef4e/Background.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7155,
2428,
261,
4099,
16,
4068,
4672,
365,
18,
3612,
3616,
18,
2752,
70,
67,
1886,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
7155,
2428,
261,
4099,
16,
4068,
4672,
365,
18,
3612,
3616,
18,
2752,
70,
67,
1886,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
self.addlist = ["%s\000%s%s\n" % | text = ["%s\000%s%s\n" % | def calcoffsets(addlist): offsets = [0] * (len(addlist) + 1) offset = 0 i = 0 while i < len(addlist): offsets[i] = offset offset += len(addlist[i]) i += 1 offsets[i] = offset return offsets | 76ca12fee2b5685766b26502ce1628cbacaeb661 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/76ca12fee2b5685766b26502ce1628cbacaeb661/manifest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
16542,
12,
1289,
1098,
4672,
8738,
273,
306,
20,
65,
380,
261,
1897,
12,
1289,
1098,
13,
397,
404,
13,
1384,
273,
374,
277,
273,
374,
1323,
277,
411,
562,
12,
1289,
1098,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
16542,
12,
1289,
1098,
4672,
8738,
273,
306,
20,
65,
380,
261,
1897,
12,
1289,
1098,
13,
397,
404,
13,
1384,
273,
374,
277,
273,
374,
1323,
277,
411,
562,
12,
1289,
1098,
4672,
... |
return super(meeting_confidential_info, self).write(cr, uid, *args) | return super(meeting_confidential_info, self).write(cr, uid, *args, **args2) | def write(self, cr, uid, *args): if 'group' in args[0] and args[0]['group']: if args[0]['group'] == "group1": args[0]['name'] ="Confidential Info of Group 1" else: args[0]['name'] ="Confidential Info of Group 2" return super(meeting_confidential_info, self).write(cr, uid, *args) | 1d32d1ec04c7c435603d63d632589c5cd8b0e9e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/1d32d1ec04c7c435603d63d632589c5cd8b0e9e3/cci_crm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
380,
1968,
4672,
309,
296,
1655,
11,
316,
833,
63,
20,
65,
471,
833,
63,
20,
23962,
1655,
3546,
30,
309,
833,
63,
20,
23962,
1655,
3546,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
380,
1968,
4672,
309,
296,
1655,
11,
316,
833,
63,
20,
65,
471,
833,
63,
20,
23962,
1655,
3546,
30,
309,
833,
63,
20,
23962,
1655,
3546,
422,
... |
[('wing', 'openmdao.recipes.wingproj', 'runwing')], working_set, | [('wing', 'openmdao.recipes.wingproj', 'runwing')], WorkingSet([mydist.location]), | def install(self): if not os.path.isdir(os.path.join(self.partsdir,'wingproj')): os.makedirs(os.path.join(self.partsdir,'wingproj')) newfname = os.path.join(self.partsdir, 'wingproj','wingproj.wpr') if os.path.isfile(newfname): oldfile = newfname else: oldfile = self.wingproj self.logger.info('reading wing config fr... | bfc3a0ab75052795ff278019b560ad81cc566afb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/bfc3a0ab75052795ff278019b560ad81cc566afb/wingproj.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
6019,
1214,
11189,
91,
310,
17995,
26112,
30,
1140,
18,
81,
9477,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
6019,
1214,
11189,
91,
310,
17995,
26112,
30,
1140,
18,
81,
9477,
10539,
... |
pass | pass | def add(request): context = {} entry_form = EntryForm(prefix='entries') file_forms_excludes = ('entry', 'scribd_link', 'scribd_ak', 'size', 'scribd_id', 'name') FileFormSetFactory = modelformset_factory(File, form=FileForm, extra=8, exclude=file_forms_excludes,) file_formset = FileFormSetFactory(prefix='files') if req... | 9e9726ea77828c75060beff22329506bdb7dff39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1776/9e9726ea77828c75060beff22329506bdb7dff39/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2293,
4672,
819,
273,
2618,
1241,
67,
687,
273,
3841,
1204,
12,
3239,
2218,
8219,
6134,
585,
67,
9741,
67,
338,
8993,
273,
7707,
4099,
2187,
296,
4091,
72,
67,
1232,
2187,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2293,
4672,
819,
273,
2618,
1241,
67,
687,
273,
3841,
1204,
12,
3239,
2218,
8219,
6134,
585,
67,
9741,
67,
338,
8993,
273,
7707,
4099,
2187,
296,
4091,
72,
67,
1232,
2187,
296... |
def documentModule0(path, builder=DocBuilder0()): | def documentModule0(path, builder=PdfDocBuilder0()): | def documentModule0(path, builder=DocBuilder0()): """Generate documentation for one Python file in some format. This handles Python standard modules like string, custom modules on the Python search path like e.g. docpy as well as modules specified with their full path like C:/tmp/junk.py. The doc file will always be ... | 9ddc7f3e5a55d990df726a399c74e3167a73b014 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9ddc7f3e5a55d990df726a399c74e3167a73b014/docpy0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1668,
3120,
20,
12,
803,
16,
2089,
33,
18562,
1759,
1263,
20,
1435,
4672,
3536,
4625,
7323,
364,
1245,
6600,
585,
316,
2690,
740,
18,
225,
1220,
7372,
6600,
4529,
4381,
3007,
533,
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,
1668,
3120,
20,
12,
803,
16,
2089,
33,
18562,
1759,
1263,
20,
1435,
4672,
3536,
4625,
7323,
364,
1245,
6600,
585,
316,
2690,
740,
18,
225,
1220,
7372,
6600,
4529,
4381,
3007,
533,
16,
... |
def macro_TemplateList(self, arg): | def macro_TemplateList(self, needle=None): | def macro_TemplateList(self, arg): _ = self._ try: needle_re = re.compile(arg, re.IGNORECASE) except re.error, e: return "<strong>%s: %s</strong>" % ( _("ERROR in regex '%s'") % (arg, ), e) | cbfdb4b4469c418dfd3fc11147ccba9558dd37e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/cbfdb4b4469c418dfd3fc11147ccba9558dd37e0/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
67,
2283,
682,
12,
2890,
16,
9936,
33,
7036,
4672,
225,
389,
273,
365,
6315,
775,
30,
9936,
67,
266,
273,
283,
18,
11100,
12,
3175,
16,
283,
18,
20118,
13415,
13,
1335,
283,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
67,
2283,
682,
12,
2890,
16,
9936,
33,
7036,
4672,
225,
389,
273,
365,
6315,
775,
30,
9936,
67,
266,
273,
283,
18,
11100,
12,
3175,
16,
283,
18,
20118,
13415,
13,
1335,
283,
1... |
self.assertEqual('121', builds[3].rev) self.assertEqual(platform1.id, builds[4].platform) self.assertEqual('120', builds[4].rev) | self.assertEqual('123', builds[3].rev) self.assertEqual(platform2.id, builds[4].platform) self.assertEqual('121', builds[4].rev) | def test_populate_build_all(self): self.env.get_repository = lambda authname=None: Mock( get_changeset=lambda rev: Mock(date=rev * 1000), get_node=lambda path, rev=None: Mock( get_entries=lambda: [Mock(), Mock()], get_history=lambda: [('somepath', 123, 'edit'), ('somepath', 121, 'edit'), ('somepath', 120, 'edit')] ), n... | 5ab30d5423a040ee7e6a7a2607eb0fea9f10f70b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/5ab30d5423a040ee7e6a7a2607eb0fea9f10f70b/queue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19936,
67,
3510,
67,
454,
12,
2890,
4672,
365,
18,
3074,
18,
588,
67,
9071,
273,
3195,
1357,
529,
33,
7036,
30,
7867,
12,
336,
67,
6329,
278,
33,
14661,
5588,
30,
7867,
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,
1842,
67,
19936,
67,
3510,
67,
454,
12,
2890,
4672,
365,
18,
3074,
18,
588,
67,
9071,
273,
3195,
1357,
529,
33,
7036,
30,
7867,
12,
336,
67,
6329,
278,
33,
14661,
5588,
30,
7867,
12,... |
""" | """ | def processManifestForRemovals(manifestpath, installinfo, parentcatalogs=[]): """ Processes manifests for removals. Can be recursive if manifests include other manifests. Probably doesn't handle circular manifest references well... """ cataloglist = getManifestValueForKey(manifestpath, 'catalogs') if cataloglist: getCa... | 5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
9121,
1290,
4579,
1031,
12,
14357,
803,
16,
3799,
1376,
16,
982,
2574,
287,
14072,
33,
8526,
4672,
3536,
4389,
281,
29700,
364,
2797,
1031,
18,
4480,
506,
5904,
309,
29700,
2341,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9121,
1290,
4579,
1031,
12,
14357,
803,
16,
3799,
1376,
16,
982,
2574,
287,
14072,
33,
8526,
4672,
3536,
4389,
281,
29700,
364,
2797,
1031,
18,
4480,
506,
5904,
309,
29700,
2341,
1... |
if _sourceCounts(x)[:-1] == revisionCount ] | if _sourceCounts(x)[:-1] == shadowCounts[:-1] ] | def _sourceCounts(revision): return list(revision.getSourceCount().iterCounts()) | 968897ae919bcf2c1ce8ffc065cac767c011b6a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/968897ae919bcf2c1ce8ffc065cac767c011b6a6/clone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3168,
9211,
12,
13057,
4672,
327,
666,
12,
13057,
18,
588,
1830,
1380,
7675,
2165,
9211,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3168,
9211,
12,
13057,
4672,
327,
666,
12,
13057,
18,
588,
1830,
1380,
7675,
2165,
9211,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
while self.alive: | while self.alive.isSet(): | def ComPortThread(self): """Thread that handles the incomming traffic. Does the basic input transformation (newlines) and generates an SerialRxEvent""" while self.alive: #loop while this flag is true text = self.serial.read(1) #read one, with timout if text: #ch... | 0d51f3e61e2e7fdd7ba8b0b7127260119f627890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/0d51f3e61e2e7fdd7ba8b0b7127260119f627890/wxTerminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1286,
2617,
3830,
12,
2890,
4672,
3536,
3830,
716,
7372,
326,
316,
5702,
310,
16301,
18,
9637,
326,
5337,
810,
8620,
261,
31276,
13,
471,
6026,
392,
7366,
27741,
1133,
8395,
1323,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1286,
2617,
3830,
12,
2890,
4672,
3536,
3830,
716,
7372,
326,
316,
5702,
310,
16301,
18,
9637,
326,
5337,
810,
8620,
261,
31276,
13,
471,
6026,
392,
7366,
27741,
1133,
8395,
1323,
365,
1... |
print >>out, 'migrating reference from Archetypes 1.3. beta2' | print >>out, 'migrating reference from Archetypes 1.3. beta2\n' | def migrateReferences(portal, out): # FIRST # a 1.2 -> 1.3 (new annotation style) migration path at = getToolByName(portal, TOOL_NAME) rc = getToolByName(portal, REFERENCE_CATALOG) uc = getToolByName(portal, UID_CATALOG) count=0 # Old 1.2 style references are stored inside archetype_tool on the 'ref' # attribute ref... | 545e67b439ed8266102d0bdfa5dde36a90e9ffab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/545e67b439ed8266102d0bdfa5dde36a90e9ffab/migrations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
8221,
12,
24386,
16,
596,
4672,
468,
21786,
468,
279,
404,
18,
22,
317,
404,
18,
23,
261,
2704,
3204,
2154,
13,
6333,
589,
225,
622,
273,
336,
6364,
5911,
12,
24386,
16,
8493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
8221,
12,
24386,
16,
596,
4672,
468,
21786,
468,
279,
404,
18,
22,
317,
404,
18,
23,
261,
2704,
3204,
2154,
13,
6333,
589,
225,
622,
273,
336,
6364,
5911,
12,
24386,
16,
8493,
... |
gLogger.info("No output directories found") directories = sortList(directories) return S_OK(directories) def __addDirs(self,transID,newDirs,existingDirs): | gLogger.info( "No output directories found" ) directories = sortList( directories ) return S_OK( directories ) def __addDirs( self, transID, newDirs, existingDirs ): | def getTransformationDirectories(self,transID): """ Get the directories for the supplied transformation from the transformation system """ directories = [] if 'TransformationDB' in self.directoryLocations: res = self.transClient.getTransformationParameters(transID,['OutputDirectories']) if not res['OK']: gLogger.error(... | c3853ad0438058db66814335a87076cdaecd2d33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c3853ad0438058db66814335a87076cdaecd2d33/TransformationCleaningAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15292,
13071,
12,
2890,
16,
2338,
734,
4672,
3536,
968,
326,
6402,
364,
326,
4580,
8620,
628,
326,
8620,
2619,
3536,
6402,
273,
5378,
309,
296,
15292,
2290,
11,
316,
365,
18,
5149,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15292,
13071,
12,
2890,
16,
2338,
734,
4672,
3536,
968,
326,
6402,
364,
326,
4580,
8620,
628,
326,
8620,
2619,
3536,
6402,
273,
5378,
309,
296,
15292,
2290,
11,
316,
365,
18,
5149,
... |
v.mode, v.media_id, v.mplayer_options = id[ref][2:] | v.mode, v.media_id, v.mplayer_options, player, is_playlist = id[ref][2:] if player: v.force_player = player if is_playlist: v.is_playlist = True | def parse_video_child(fxd, node, item, dirname): """ parse a subitem from <video> """ filename = fxd.gettext(node) mode = node.name id = fxd.getattr(node, 'id') media_id = fxd.getattr(node, 'media_id') options = fxd.getattr(node, 'mplayer_options') player = fxd.childcontent(node, 'player') play... | da44f49519d9540a14ce30bc55249fbf897041c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/da44f49519d9540a14ce30bc55249fbf897041c5/fxdhandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
9115,
67,
3624,
12,
74,
7669,
16,
756,
16,
761,
16,
4283,
4672,
3536,
1109,
279,
720,
1726,
628,
411,
9115,
34,
3536,
1544,
282,
273,
284,
7669,
18,
29967,
12,
2159,
13,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
9115,
67,
3624,
12,
74,
7669,
16,
756,
16,
761,
16,
4283,
4672,
3536,
1109,
279,
720,
1726,
628,
411,
9115,
34,
3536,
1544,
282,
273,
284,
7669,
18,
29967,
12,
2159,
13,
19... |
rgb_mask=[1,1,1]): | rgb_mask=[1, 1, 1]): | def subplot_imshow(self, x,y, image, title=None, clear=True, colormap=None, colorbar=False, normalize=True, vmin=0, vmax=1, rgb_mask=[1,1,1]): '''Show an image in a subplot x, y - show image in this subplot image - image to show title - add this title to the subplot clear - clear the subplot axes before display if tr... | 85566b0bd1d42c808fc402bbd3f334d859bd5243 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2870/85566b0bd1d42c808fc402bbd3f334d859bd5243/cpfigure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19826,
67,
381,
4500,
12,
2890,
16,
619,
16,
93,
16,
1316,
16,
2077,
33,
7036,
16,
2424,
33,
5510,
16,
24806,
33,
7036,
16,
20644,
33,
8381,
16,
3883,
33,
5510,
16,
17501,
33,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19826,
67,
381,
4500,
12,
2890,
16,
619,
16,
93,
16,
1316,
16,
2077,
33,
7036,
16,
2424,
33,
5510,
16,
24806,
33,
7036,
16,
20644,
33,
8381,
16,
3883,
33,
5510,
16,
17501,
33,
20,
... |
nsdata[ns] = { 'ip': ns.ip, 'name': ns.name, 'hostname': ns.hostname, 'sys_position': ns.system_position, 'diff': 0, 'is_error_prone': ns.is_error_prone, 'is_global': ns.is_global, 'is_regional': ns.is_regional, 'is_custom': ns.is_custom, 'is_disabled': ns.disabled, 'is_reference': False, 'check_average': ns.check_aver... | def _GenerateNameServerSummary(self): nsdata = {} sorted_averages = sorted(self.ComputeAverages(), key=operator.itemgetter(1)) placed_at = -1 fastest = {} fastest_nonglobal = {} reference = {} | 2d42f76b49e848de6db95484a1fae76a8a3540b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/2d42f76b49e848de6db95484a1fae76a8a3540b3/reporter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
461,
2081,
4733,
12,
2890,
4672,
3153,
892,
273,
2618,
3115,
67,
21851,
1023,
273,
3115,
12,
2890,
18,
7018,
37,
502,
1023,
9334,
498,
33,
9497,
18,
1726,
11990,
12,
21,
371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4625,
461,
2081,
4733,
12,
2890,
4672,
3153,
892,
273,
2618,
3115,
67,
21851,
1023,
273,
3115,
12,
2890,
18,
7018,
37,
502,
1023,
9334,
498,
33,
9497,
18,
1726,
11990,
12,
21,
371... | |
if self._private_messages and len(forgave)<3: v.message(self.getMessage('forgive_many', { 'vname' : v.exactName, 'attackers' : string.join(forgave, ', ') })) for attacker in forgave: attacker.message(self.getMessage('forgive_many', { 'vname' : v.exactName, 'attackers' : string.join(forgave, ', ') })) | if self._private_messages: client.message(self.getMessage('forgive_many', { 'vname' : client.exactName, 'attackers' : string.join(forgave, ', ') })) | def cmd_forgiveall(self, data, client, cmd=None): """\ - forgive all attackers' tk points """ v = self.getClientTkInfo(client) if len(v.attackers) > 0: forgave = [] for cid,points in v.attackers.items(): if v.isGrudged(cid): continue | 738f8e587dace03c603cbf710b9e2cfa490becb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/738f8e587dace03c603cbf710b9e2cfa490becb0/tk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
1884,
75,
688,
454,
12,
2890,
16,
501,
16,
1004,
16,
1797,
33,
7036,
4672,
3536,
64,
300,
364,
75,
688,
777,
13843,
414,
11,
13030,
3143,
3536,
331,
273,
365,
18,
588,
1227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
1884,
75,
688,
454,
12,
2890,
16,
501,
16,
1004,
16,
1797,
33,
7036,
4672,
3536,
64,
300,
364,
75,
688,
777,
13843,
414,
11,
13030,
3143,
3536,
331,
273,
365,
18,
588,
1227... |
def on_eos (self, event): | def on_eos(self, event): | def on_eos (self, event): """Called when the pipeline reaches EOS.""" | 016aec4a85d3438c0d49f1f8b2012e23eb7805ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/016aec4a85d3438c0d49f1f8b2012e23eb7805ec/audio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
73,
538,
12,
2890,
16,
871,
4672,
3536,
8185,
1347,
326,
5873,
30093,
512,
4618,
12123,
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,
603,
67,
73,
538,
12,
2890,
16,
871,
4672,
3536,
8185,
1347,
326,
5873,
30093,
512,
4618,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return self.substitute(dict, **kwds) | if 'substitute' in kwds: del kwds['substitute'] return self.substitute(dict, **kwds) else: if len(self.variables()) > 0: return self.substitute(dict, **kwds) else: raise ValueError, "trying to substitute into a constant expression, use substitute=True if this is what you really want to do" | def __call__(self, dict=None, **kwds): return self.substitute(dict, **kwds) | e83eab541b157f26e18d0ede717669e858203b41 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e83eab541b157f26e18d0ede717669e858203b41/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
2065,
33,
7036,
16,
2826,
25577,
4672,
327,
365,
18,
1717,
17207,
12,
1576,
16,
2826,
25577,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
1991,
972,
12,
2890,
16,
2065,
33,
7036,
16,
2826,
25577,
4672,
327,
365,
18,
1717,
17207,
12,
1576,
16,
2826,
25577,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pkg_resources.require("distribute>="+version); return | pkg_resources.require("distribute>="+version) return | def use_setuptools( version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, download_delay=15 | e7932397a19380975ae6401d2f13f2f5d6ddb716 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/495/e7932397a19380975ae6401d2f13f2f5d6ddb716/distribute_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
67,
542,
30693,
12,
1177,
33,
5280,
67,
5757,
16,
4224,
67,
1969,
33,
5280,
67,
1785,
16,
358,
67,
1214,
33,
538,
18,
1397,
1214,
16,
4224,
67,
10790,
33,
3600,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
67,
542,
30693,
12,
1177,
33,
5280,
67,
5757,
16,
4224,
67,
1969,
33,
5280,
67,
1785,
16,
358,
67,
1214,
33,
538,
18,
1397,
1214,
16,
4224,
67,
10790,
33,
3600,
2,
-100,
-100,
... |
self.output_write(" * %s: %s\n" % (arch, ", ".join(sorted([b for b in broken if b not in nuninst_comp[arch]])))) | self.output_write(" * %s: %s\n" % (arch, ", ".join(sorted([b for b in nuninst[arch] if b not in nuninst_comp[arch]])))) | def iter_packages(self, packages, selected, hint=False, nuninst=None): """Iter on the list of actions and apply them one-by-one | d5362ad8a66b3cf545afb782387a1c2c01d551e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/d5362ad8a66b3cf545afb782387a1c2c01d551e2/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
... |
if perms in [2,3,6,7]: return S_OK(True) else: return S_OK(False) | if perms in [2, 3, 6, 7]: return S_OK( True ) else: return S_OK( False ) | def __verifyOperationPermission(self,path): res = self.__getClientCertInfo() if not res['OK']: if res['Message'] == "Can't find a valid proxy": return S_OK(True) return res clientInfo = res['Value'] | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8705,
2988,
5041,
12,
2890,
16,
803,
4672,
400,
273,
365,
16186,
588,
1227,
5461,
966,
1435,
309,
486,
400,
3292,
3141,
3546,
30,
309,
400,
3292,
1079,
3546,
422,
315,
2568,
1404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8705,
2988,
5041,
12,
2890,
16,
803,
4672,
400,
273,
365,
16186,
588,
1227,
5461,
966,
1435,
309,
486,
400,
3292,
3141,
3546,
30,
309,
400,
3292,
1079,
3546,
422,
315,
2568,
1404,
... |
if disposition in options["Headers", "notate_to"]: | if isinstance(options["Headers", "notate_to"], types.StringTypes): notate_to = (options["Headers", "notate_to"],) else: notate_to = options["Headers", "notate_to"] if disposition in notate_to: | def addSBHeaders(self, prob, clues): """Add hammie header, and remember message's classification. Also, add optional headers if needed.""" | cc485477116160fad4824aeaa1b66831d5349c30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/cc485477116160fad4824aeaa1b66831d5349c30/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
14541,
3121,
12,
2890,
16,
3137,
16,
927,
3610,
4672,
3536,
986,
366,
301,
81,
1385,
1446,
16,
471,
11586,
883,
1807,
13804,
18,
225,
8080,
16,
527,
3129,
1607,
309,
3577,
12123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
14541,
3121,
12,
2890,
16,
3137,
16,
927,
3610,
4672,
3536,
986,
366,
301,
81,
1385,
1446,
16,
471,
11586,
883,
1807,
13804,
18,
225,
8080,
16,
527,
3129,
1607,
309,
3577,
12123,
... |
return '<a href="'+uri+'" title="'+uri+'">'+vis+' ('+str(count)+')'+'</a><br />' | return '<a href="'+uri+'" title="'+uri+'">'+vis+' ('+str(count)+')'+'</a><br />\n' | def url(tuple): """ Markup (and truncate) a referrer URL """ uri = tuple[0] count = tuple[1] size = 40 vis = uri # process blacklist if self._py.has_key('refer_blacklist'): bad_list = string.split(self._py['refer_blacklist'],',') for pat in bad_list: if re.search(pat, uri): return "" if len(uri) > size: vis = vis[:size... | 682b4c34c9e4ad10233c8c07d60353f7247ab1f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/682b4c34c9e4ad10233c8c07d60353f7247ab1f0/logstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
8052,
4672,
3536,
26420,
261,
464,
10310,
13,
279,
14502,
1976,
3536,
2003,
273,
3193,
63,
20,
65,
1056,
273,
3193,
63,
21,
65,
963,
273,
8063,
2281,
273,
2003,
468,
1207,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
8052,
4672,
3536,
26420,
261,
464,
10310,
13,
279,
14502,
1976,
3536,
2003,
273,
3193,
63,
20,
65,
1056,
273,
3193,
63,
21,
65,
963,
273,
8063,
2281,
273,
2003,
468,
1207,
117... |
print | print >> stream | def do_generate(self): moduleDoc = self.typelib.GetDocumentation(-1) docDesc = "" if moduleDoc[1]: docDesc = moduleDoc[1] self.progress.Starting(docDesc) self.progress.SetDescription("Building definitions from type library...") | cfd84d318292d699ca53899ee423b08bfb797445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/cfd84d318292d699ca53899ee423b08bfb797445/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7163,
12,
2890,
4672,
1605,
1759,
273,
365,
18,
12846,
30575,
18,
967,
18905,
19236,
21,
13,
997,
4217,
273,
1408,
309,
1605,
1759,
63,
21,
14542,
997,
4217,
273,
1605,
1759,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7163,
12,
2890,
4672,
1605,
1759,
273,
365,
18,
12846,
30575,
18,
967,
18905,
19236,
21,
13,
997,
4217,
273,
1408,
309,
1605,
1759,
63,
21,
14542,
997,
4217,
273,
1605,
1759,
... |
"""%(number, number,number,number) html_in +=""" </td> <tr><td align=center bgcolor=' <table border=0 cellpadding=4 cellspacing=0 bgcolor=' <textarea style="border: 0px;width: 100%%;" name='%s' bgcolor='%s' rows='%s' cols='%s' id='in%s' onkeypress='ifShiftEnter(%s,event);'>%s</textarea> </td> </tr></table></td> <td al... | """%(number, cmd_color, cmd_nrows, ncols, number, number, self.cmd,number,number,number,number) | def html(self, number, nrows, ncols, out_nrows=4, cmd_color='#FFFFFF', out_color='#FFFFFF'): if self.cmd != '': cmd_nrows = len(self.cmd.split('\n')) else: cmd_nrows = nrows | 6cf90912d43b30422003f1adcb76e6bef700950d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/6cf90912d43b30422003f1adcb76e6bef700950d/server1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
12,
2890,
16,
1300,
16,
18871,
16,
21330,
16,
596,
67,
82,
3870,
33,
24,
16,
1797,
67,
3266,
2218,
7,
18343,
2187,
596,
67,
3266,
2218,
7,
18343,
11,
4672,
309,
365,
18,
4172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
12,
2890,
16,
1300,
16,
18871,
16,
21330,
16,
596,
67,
82,
3870,
33,
24,
16,
1797,
67,
3266,
2218,
7,
18343,
2187,
596,
67,
3266,
2218,
7,
18343,
11,
4672,
309,
365,
18,
4172,
... |
if hasattr(self.fp, "fileno"): self.fileno = self.fp.fileno | if hasattr(self.fp, "fileno"): self.fileno = self.fp.fileno else: self.fileno = lambda: None | def __init__(self, fp): self.fp = fp self.read = self.fp.read self.readline = self.fp.readline if hasattr(self.fp, "readlines"): self.readlines = self.fp.readlines if hasattr(self.fp, "fileno"): self.fileno = self.fp.fileno if hasattr(self.fp, "__iter__"): self.__iter__ = self.fp.__iter__ if hasattr(self.fp, "next"): s... | a92a7d7afd7fff55e301af8ee291cbd5ceac957f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a92a7d7afd7fff55e301af8ee291cbd5ceac957f/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
365,
18,
7944,
273,
4253,
365,
18,
896,
273,
365,
18,
7944,
18,
896,
365,
18,
896,
1369,
273,
365,
18,
7944,
18,
896,
1369,
309,
3859,
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,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
365,
18,
7944,
273,
4253,
365,
18,
896,
273,
365,
18,
7944,
18,
896,
365,
18,
896,
1369,
273,
365,
18,
7944,
18,
896,
1369,
309,
3859,
12,
... |
places, sep = self.decimalPlaces, self.decimalSeparator | places, sep = self.places, self.dot | def format(self, num): # positivize the numbers sign=num<0 if sign: num = -num places, sep = self.decimalPlaces, self.decimalSeparator strip = places<=0 if places and strip: places = -places strInt, strFrac = (('%.' + str(places) + 'f') % num).split('.') | f50c707e627f0fcc934f23550edf6e4b3826fc61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/f50c707e627f0fcc934f23550edf6e4b3826fc61/formatters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
818,
4672,
468,
949,
305,
427,
554,
326,
5600,
1573,
33,
2107,
32,
20,
309,
1573,
30,
818,
273,
300,
2107,
12576,
16,
5478,
273,
365,
18,
11350,
16,
365,
18,
9811,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
818,
4672,
468,
949,
305,
427,
554,
326,
5600,
1573,
33,
2107,
32,
20,
309,
1573,
30,
818,
273,
300,
2107,
12576,
16,
5478,
273,
365,
18,
11350,
16,
365,
18,
9811,... |
return 'trees.html' | return self._trees_url | def _find_top_page(self, pagename): """ Find the top page for the API documentation. This page is used as the default page shown in the main frame, when frames are used. When frames are not used, this page is copied to C{index.html}. | 5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
3669,
67,
2433,
12,
2890,
16,
4262,
1069,
4672,
3536,
4163,
326,
1760,
1363,
364,
326,
1491,
7323,
18,
225,
1220,
1363,
353,
1399,
487,
326,
805,
1363,
12188,
316,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
3669,
67,
2433,
12,
2890,
16,
4262,
1069,
4672,
3536,
4163,
326,
1760,
1363,
364,
326,
1491,
7323,
18,
225,
1220,
1363,
353,
1399,
487,
326,
805,
1363,
12188,
316,
326,
... |
(object.__class__.__name__, event, method.__name__)) | (object.__class__.__name__, safeRepr(event), method.__name__)) | def accept(self, event, object, method, extraArgs=[], persistent=1): """ accept(self, string, DirectObject, Function, List, Boolean) | 740aca460fb6f6b0ac98020067810164a9874ae8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/740aca460fb6f6b0ac98020067810164a9874ae8/Messenger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
16,
871,
16,
733,
16,
707,
16,
2870,
2615,
22850,
6487,
9195,
33,
21,
4672,
3536,
2791,
12,
2890,
16,
533,
16,
9908,
921,
16,
4284,
16,
987,
16,
3411,
13,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2791,
12,
2890,
16,
871,
16,
733,
16,
707,
16,
2870,
2615,
22850,
6487,
9195,
33,
21,
4672,
3536,
2791,
12,
2890,
16,
533,
16,
9908,
921,
16,
4284,
16,
987,
16,
3411,
13,
2,
-100,
... |
conditional : boolean (False) | conditional : boolean (False) | def expect(self, func=None, args=(), loc=0, lb=None, ub=None, conditional=False): """calculate expected value of a function with respect to the distribution for discrete distribution | 8b3a4224a0eebc7cef8c46d42fde0301ea131ef1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/8b3a4224a0eebc7cef8c46d42fde0301ea131ef1/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
1326,
33,
7036,
16,
833,
33,
9334,
1515,
33,
20,
16,
7831,
33,
7036,
16,
13910,
33,
7036,
16,
11139,
33,
8381,
4672,
3536,
11162,
2665,
460,
434,
279,
445,
598,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
1326,
33,
7036,
16,
833,
33,
9334,
1515,
33,
20,
16,
7831,
33,
7036,
16,
13910,
33,
7036,
16,
11139,
33,
8381,
4672,
3536,
11162,
2665,
460,
434,
279,
445,
598,
8... |
if self.config['version'] == 'auto' or self.config['revision'] == 'auto': | if self.config['version'] == 'auto' or self.config['release'] == 'auto': | def __init__(self, srcdirname, outdirname, options, env=None, status_stream=None, warning_stream=None, confoverrides=None): self.srcdir = srcdirname self.outdir = outdirname if not path.isdir(path.join(outdirname, '.doctrees')): os.mkdir(path.join(outdirname, '.doctrees')) | 20c30170c54cd2b52964d1a7fa7ae2d0cfd06b7a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7032/20c30170c54cd2b52964d1a7fa7ae2d0cfd06b7a/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1705,
12287,
16,
596,
12287,
16,
702,
16,
1550,
33,
7036,
16,
1267,
67,
3256,
33,
7036,
16,
3436,
67,
3256,
33,
7036,
16,
356,
617,
9857,
33,
7036,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1705,
12287,
16,
596,
12287,
16,
702,
16,
1550,
33,
7036,
16,
1267,
67,
3256,
33,
7036,
16,
3436,
67,
3256,
33,
7036,
16,
356,
617,
9857,
33,
7036,
467... |
sage: print T1 [0 6 4] [1 0 5] [2 1 6] [3 2 0] [4 3 1] [5 4 2] [6 5 3] sage: print T2 [6 4 0] [0 5 1] [1 6 2] [2 0 3] [3 1 4] [4 2 5] [5 3 6] | sage: T1 [ 0 1 2 -1 -1 -1 -1] [ 2 4 3 -1 -1 -1 -1] [ 4 0 5 -1 -1 -1 -1] [ 3 5 1 -1 -1 -1 -1] [ 6 3 0 -1 -1 -1 -1] [ 1 6 4 -1 -1 -1 -1] [ 5 2 6 -1 -1 -1 -1] sage: T2 [ 2 0 1 -1 -1 -1 -1] [ 3 2 4 -1 -1 -1 -1] [ 5 4 0 -1 -1 -1 -1] [ 1 3 5 -1 -1 -1 -1] [ 0 6 3 -1 -1 -1 -1] [ 4 1 6 -1 -1 -1 -1] [ 6... | def tau123(T1, T2): """ Compute the tau_i representation for a bitrade (T1, T2). See the functions tau1, tau2, and tau3 for the mathematical definitions. RETURNS: (cells_map, t1, t2, t3) where cells_map is a map to/from the filled cells of T1, and t1, t2, t3 are the tau1, tau2, tau3 permutations. EXAMPLES: sage: fro... | 79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
12936,
12,
56,
21,
16,
399,
22,
4672,
3536,
8155,
326,
12284,
67,
77,
4335,
364,
279,
2831,
354,
323,
261,
56,
21,
16,
399,
22,
2934,
2164,
326,
4186,
12284,
21,
16,
12284,
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,
12284,
12936,
12,
56,
21,
16,
399,
22,
4672,
3536,
8155,
326,
12284,
67,
77,
4335,
364,
279,
2831,
354,
323,
261,
56,
21,
16,
399,
22,
2934,
2164,
326,
4186,
12284,
21,
16,
12284,
22... |
if self.getChecked (item): imagePrefix = imagePrefix + "Checked" if mouseOverFlag: if self.buttonState['screenMouseDown'] != self.buttonState['blockChecked']: mouseState = "MouseDown" else: mouseState = "MouseOver" else: mouseState = "" | mouseState = "" if self.allowOverlay (item): if self.getChecked (item): imagePrefix = imagePrefix + "Checked" if mouseOverFlag: if self.buttonState['screenMouseDown'] != self.buttonState['blockChecked']: mouseState = "MouseDown" else: mouseState = "MouseOver" | def getButtonImage (self, item, mouseOverFlag, isSelected): """ The rules for naming icons are complicated, which is a reflection of complexity of our sidebar design. Here is a description of the rules: | eeb8f8642f8e940a272c27dd17b6f63c70c0e085 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/eeb8f8642f8e940a272c27dd17b6f63c70c0e085/SideBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
2644,
2040,
261,
2890,
16,
761,
16,
7644,
4851,
4678,
16,
20956,
4672,
3536,
1021,
2931,
364,
14634,
17455,
854,
31312,
16,
1492,
353,
279,
5463,
434,
21610,
434,
3134,
23364,
8281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
2644,
2040,
261,
2890,
16,
761,
16,
7644,
4851,
4678,
16,
20956,
4672,
3536,
1021,
2931,
364,
14634,
17455,
854,
31312,
16,
1492,
353,
279,
5463,
434,
21610,
434,
3134,
23364,
8281,
... |
self.path=path file=open(path, 'rb') data=file.read() file.close() self.content_type, enc = guess_content_type(path, data) self.__name__=path[path.rfind('/')+1:] self.lmt=float(stat(path)[8]) or time() self.lmh=rfc1123_date(self.lmt) class Image(File): def __init__(self, path): | def __init__(self, path): | afaa0fa31f432eed4d492a70665a79a4b381b727 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/afaa0fa31f432eed4d492a70665a79a4b381b727/fileresource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
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,... | |
'3' : '-mms-bitfields' } | '3' : '-mms-bitfields', '4' : '-mms-bitfields'} | def init_extra_compile_args(self): self.extra_compile_args = [] if sys.platform == 'win32' and \ self.compiler.compiler_type == 'mingw32': # MSVC compatible struct packing is required. # Note gcc2 uses -fnative-struct while gcc3 # uses -mms-bitfields. Based on the version # the proper flag is used below. msnative_struc... | 9a2f81d63012fef23fdde2b4d903bd69601c07c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/9a2f81d63012fef23fdde2b4d903bd69601c07c6/dsextras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
7763,
67,
11100,
67,
1968,
12,
2890,
4672,
365,
18,
7763,
67,
11100,
67,
1968,
273,
5378,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
11,
471,
521,
365,
18,
9576,
18,
9576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
7763,
67,
11100,
67,
1968,
12,
2890,
4672,
365,
18,
7763,
67,
11100,
67,
1968,
273,
5378,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
11,
471,
521,
365,
18,
9576,
18,
9576,
... |
>>> process(576, [(n, str(n)) for n in [1, 2, 3, 4, 5, 6]]) | >>> process(576, map(get_strnum, [1, 2, 3, 4, 5, 6])) | def process(final, numstrs, show_approx=False): """Recursive function to search 'final', making operations on numstrs. Numstrings are tuples containing (integer, operation_string) >>> process(576, [(n, str(n)) for n in [1, 2, 3, 4, 5, 6]]) (576, '(((4*(2+1))*6)*(5+3))') """ for i1 in xrange(len(numstrs)): for i2 in x... | 60c7aebc8b2891d0ccb154e6cb392938ead6036f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4835/60c7aebc8b2891d0ccb154e6cb392938ead6036f/cifras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
6385,
16,
818,
24432,
16,
2405,
67,
26742,
33,
8381,
4672,
3536,
10483,
445,
358,
1623,
296,
6385,
2187,
10480,
5295,
603,
818,
24432,
18,
225,
6805,
10219,
854,
10384,
4191,
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,
1207,
12,
6385,
16,
818,
24432,
16,
2405,
67,
26742,
33,
8381,
4672,
3536,
10483,
445,
358,
1623,
296,
6385,
2187,
10480,
5295,
603,
818,
24432,
18,
225,
6805,
10219,
854,
10384,
4191,
2... |
m[i,j] = 0 | mat[i,j] = 0 | def hecke_matrix(self, m, n, use_recurrence = False, exact_arith = False): r""" Calculate the matrix of the `T_m` operator in the basis of this space, truncated to an `n \times n` matrix. Conventions are that operators act on the left on column vectors (this is the opposite of the conventions of the sage.modules.matrix... | ed0a3ce8f392224845d699a88cf40b90f375c64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ed0a3ce8f392224845d699a88cf40b90f375c64a/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
5667,
12,
2890,
16,
312,
16,
290,
16,
999,
67,
266,
17131,
273,
1083,
16,
5565,
67,
297,
483,
273,
1083,
4672,
436,
8395,
9029,
326,
3148,
434,
326,
1375,
56,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
5667,
12,
2890,
16,
312,
16,
290,
16,
999,
67,
266,
17131,
273,
1083,
16,
5565,
67,
297,
483,
273,
1083,
4672,
436,
8395,
9029,
326,
3148,
434,
326,
1375,
56,
67,
... |
if _methodTypeCache.has_key( (method, obj) ): | try: hash( (method, obj) ) except TypeError: tryCache = false else: tryCache = true if tryCache and _methodTypeCache.has_key( (method, obj) ): | def getMethodType(method, obj, dict): """ classify methods according to prefix return category, property name, getter, setter """ | 263058ff5d67dafc7be51f6417f92f271c955fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/263058ff5d67dafc7be51f6417f92f271c955fc3/RTTI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6272,
559,
12,
2039,
16,
1081,
16,
2065,
4672,
3536,
19974,
2590,
4888,
358,
1633,
327,
3150,
16,
1272,
508,
16,
7060,
16,
7794,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6272,
559,
12,
2039,
16,
1081,
16,
2065,
4672,
3536,
19974,
2590,
4888,
358,
1633,
327,
3150,
16,
1272,
508,
16,
7060,
16,
7794,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
base = os.path.dirname(os.path.abspath(sys.executable)) | buildir = os.path.dirname(sys.executable) | def get_python_inc(plat_specific=0, prefix=None): """Return the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pycon... | a5cd18275e333cde162281e7919adfa415b42b07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/a5cd18275e333cde162281e7919adfa415b42b07/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
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,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
35... |
def _var_array(self): """Read all variables.""" assert self.read(4) in [ZERO, NC_VARIABLE] self._read_recsize() self.variables = {} | def _read_var_array(self): assert self.fp.read(4) in [ZERO, NC_VARIABLE] begin = 0 dtypes = {'names': [], 'formats': []} rec_vars = [] | def _var_array(self): """Read all variables.""" assert self.read(4) in [ZERO, NC_VARIABLE] | c5eeb7a30fccf949fe4b4d016a566826aaaf111c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/c5eeb7a30fccf949fe4b4d016a566826aaaf111c/pupynere.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
1126,
12,
2890,
4672,
3536,
1994,
777,
3152,
12123,
1815,
365,
18,
896,
12,
24,
13,
316,
306,
24968,
16,
423,
39,
67,
16444,
65,
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,
389,
1401,
67,
1126,
12,
2890,
4672,
3536,
1994,
777,
3152,
12123,
1815,
365,
18,
896,
12,
24,
13,
316,
306,
24968,
16,
423,
39,
67,
16444,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
dNr[0:r2:2,3] =-(1+eta)/4. dNr[1:r2+1:2,0] =-(1-xsi)/4. dNr[1:r2+1:2,1] =-(1+xsi)/4. | dNr[0:r2:2,3] = -(1+eta)/4. dNr[1:r2+1:2,0] = -(1-xsi)/4. dNr[1:r2+1:2,1] = -(1+xsi)/4. | def flw2i4e(ex,ey,ep,D,eq=None): """ Compute element stiffness (conductivity) matrix for 4 node isoparametric field element Parameters: ex = [x1 x2 x3 x4] element coordinates ey = [y1 y2 y3 y4] ep = [t ir] thickness and integration rule D = [[kxx kxy], [kyx kyy]] constitutive matrix eq ... | 802fb797c1c505715968b6bf327cad5ed7e0e712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1235/802fb797c1c505715968b6bf327cad5ed7e0e712/pycalfem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
91,
22,
77,
24,
73,
12,
338,
16,
402,
16,
881,
16,
40,
16,
11253,
33,
7036,
4672,
3536,
8155,
930,
384,
3048,
4496,
261,
591,
1828,
2818,
13,
3148,
364,
1059,
756,
353,
556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
91,
22,
77,
24,
73,
12,
338,
16,
402,
16,
881,
16,
40,
16,
11253,
33,
7036,
4672,
3536,
8155,
930,
384,
3048,
4496,
261,
591,
1828,
2818,
13,
3148,
364,
1059,
756,
353,
556,
... |
mchirp_phi_scale = 45.0*cmath.pi/float(180) | mchirp_phi_scale = 180.0*cmath.pi/float(180) | def getTriggersWithinEpsilon(self, candidate, epsilon, epsilon_ball_type = "version2"): | f423289bd30e1207ae4a4aef9ba4c2fba9f047b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/f423289bd30e1207ae4a4aef9ba4c2fba9f047b1/CoincInspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15114,
18949,
29889,
10327,
12,
2890,
16,
5500,
16,
12263,
16,
12263,
67,
19067,
67,
723,
273,
315,
1589,
22,
6,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15114,
18949,
29889,
10327,
12,
2890,
16,
5500,
16,
12263,
16,
12263,
67,
19067,
67,
723,
273,
315,
1589,
22,
6,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if test_support.verbose: print 'create large file via seek (may be sparse file) ...' f = open(name, 'wb') try: f.write('z') f.seek(0) f.seek(size) f.write('a') f.flush() if test_support.verbose: print 'check file size with os.fstat' expect(os.fstat(f.fileno())[stat.ST_SIZE], size+1) finally: f.close() if test_suppor... | if __name__ == '__main__': main_test() | def expect(got_this, expect_this): if test_support.verbose: print '%r =?= %r ...' % (got_this, expect_this), if got_this != expect_this: if test_support.verbose: print 'no' raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print 'yes' | 152cb89fb6b8d7ac91b02907a24fec7570b2a56a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/152cb89fb6b8d7ac91b02907a24fec7570b2a56a/test_largefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
1995,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
1995,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... |
k = (bayes_prior-extended_model.beta[0])/(logistic_prior-extended_model.beta[0]) betas_ap = [k*x for x in betas_ap] | dif = bayes_prior - logistic_prior positives = sum(filter(lambda x: x>=0, betas_ap)) negatives = -sum(filter(lambda x: x<0, betas_ap)) if not negatives == 0: kPN = positives/negatives diffNegatives = dif/(1+kPN) diffPositives = kPN*diffNegatives kNegatives = (negatives-diffNegatives)/negatives kPositives = posit... | def findZero(model, at): if at.varType == orange.VarTypes.Discrete: for i_a in range(len(model.domain.attributes)): if model.domain.attributes[i_a].name == at.name+"="+at.name+"X": return model.beta[i_a+1] else: for i_a in range(len(model.domain.attributes)): if model.domain.attributes[i_a].name == at.name+"Disc": retu... | 4ae7da6ee8b6f203a5502fe34e8cd40ceb01f647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/4ae7da6ee8b6f203a5502fe34e8cd40ceb01f647/orngLR.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
7170,
12,
2284,
16,
622,
4672,
309,
622,
18,
1401,
559,
422,
578,
726,
18,
1537,
2016,
18,
1669,
6883,
30,
364,
277,
67,
69,
316,
1048,
12,
1897,
12,
2284,
18,
4308,
18,
4350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7170,
12,
2284,
16,
622,
4672,
309,
622,
18,
1401,
559,
422,
578,
726,
18,
1537,
2016,
18,
1669,
6883,
30,
364,
277,
67,
69,
316,
1048,
12,
1897,
12,
2284,
18,
4308,
18,
4350,
... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.BoolField.__init__(self, 411) else quickfix.BoolField.__init__(self, 411, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
7464,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
2499,
13,
469,
9549,
904,
18,
7464,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
7464,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
2499,
13,
469,
9549,
904,
18,
7464,
974,
16186,
2738,
... |
def get_text_value(self, parent_node): value = '' for node in parent_node.childNodes: if node.nodeType == node.TEXT_NODE: value += node.data return value | def get_text_value(self, parent_node): value = '' for node in parent_node.childNodes: if node.nodeType == node.TEXT_NODE: value += node.data return value | 88c9f552a156ee972c88891a1fdc79060dffec5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/88c9f552a156ee972c88891a1fdc79060dffec5d/xmlmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
955,
67,
1132,
12,
2890,
16,
982,
67,
2159,
4672,
460,
273,
875,
364,
756,
316,
982,
67,
2159,
18,
3624,
3205,
30,
309,
756,
18,
2159,
559,
422,
756,
18,
5151,
67,
8744,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
955,
67,
1132,
12,
2890,
16,
982,
67,
2159,
4672,
460,
273,
875,
364,
756,
316,
982,
67,
2159,
18,
3624,
3205,
30,
309,
756,
18,
2159,
559,
422,
756,
18,
5151,
67,
8744,
3... | |
def train(training_set, results, feature_fns, update_fn=None): | def train(training_set, results, feature_fns, update_fn=None, max_iis_iterations=10000, iis_converge=1.0e-5, max_newton_iterations=100, newton_converge=1.0e-10): | def train(training_set, results, feature_fns, update_fn=None): """Train a maximum entropy classifier, returns MaxEntropy object. Train a maximum entropy classifier on a training set. training_set is a list of observations. results is a list of the class assignments for each observation. feature_fns is a list of the ... | 230ddfffe0c863a6de97e38fd9fa516b5020e9d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/230ddfffe0c863a6de97e38fd9fa516b5020e9d6/MaxEntropy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4691,
12,
17584,
67,
542,
16,
1686,
16,
2572,
67,
74,
2387,
16,
1089,
67,
4293,
33,
7036,
16,
943,
67,
77,
291,
67,
19330,
33,
23899,
16,
277,
291,
67,
591,
502,
908,
33,
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,
4691,
12,
17584,
67,
542,
16,
1686,
16,
2572,
67,
74,
2387,
16,
1089,
67,
4293,
33,
7036,
16,
943,
67,
77,
291,
67,
19330,
33,
23899,
16,
277,
291,
67,
591,
502,
908,
33,
21,
18,
... |
if len(probs) == 1: | if not isscalar(probs) and len(probs) == 1: | def ttest_rel (a,b,axis=None,printit=False,name1='Samp1',name2='Samp2',writemode='a'): """ | 0c04c1e7f2fc7002edae986ffab22eeee61f5d26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/0c04c1e7f2fc7002edae986ffab22eeee61f5d26/stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3574,
395,
67,
2878,
261,
69,
16,
70,
16,
4890,
33,
7036,
16,
1188,
305,
33,
8381,
16,
529,
21,
2218,
55,
931,
21,
2187,
529,
22,
2218,
55,
931,
22,
2187,
5363,
351,
390,
2218,
69,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3574,
395,
67,
2878,
261,
69,
16,
70,
16,
4890,
33,
7036,
16,
1188,
305,
33,
8381,
16,
529,
21,
2218,
55,
931,
21,
2187,
529,
22,
2218,
55,
931,
22,
2187,
5363,
351,
390,
2218,
69,... |
rgb = [ float( spectrum[c][:4] ) / 255, \ float( '0x' + spectrum[c][4:6] ) / 255, \ float( '0x' + spectrum[c][6:] ) / 255 ] | rgb = [ float( T.hex2int(spectrum[c][:4]) ) / 255, \ float( T.hex2int('0x' + spectrum[c][4:6]) ) / 255, \ float( T.hex2int('0x' + spectrum[c][6:]) ) / 255 ] | def addColors( self, nColors, firstColor=[1.0, 0.0, 0.0], lastColor=[0.0, 1.0, 0.0] ): """ Define a range of colors that can be called in PyMol by name. @param nColors: numbers of colors generated @type nColors: int @param firstColor: first rgb color (default: [1.0, 0.0, 0.0]) @type firstColor: [float] @param lastCo... | 584258d6a561a8e1724a7953739441b9634fa6c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/584258d6a561a8e1724a7953739441b9634fa6c8/Pymoler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12570,
12,
365,
16,
290,
12570,
16,
1122,
2957,
22850,
21,
18,
20,
16,
374,
18,
20,
16,
374,
18,
20,
6487,
1142,
2957,
22850,
20,
18,
20,
16,
404,
18,
20,
16,
374,
18,
20,
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,
527,
12570,
12,
365,
16,
290,
12570,
16,
1122,
2957,
22850,
21,
18,
20,
16,
374,
18,
20,
16,
374,
18,
20,
6487,
1142,
2957,
22850,
20,
18,
20,
16,
404,
18,
20,
16,
374,
18,
20,
6... |
if config['until-failure']: call_until_failure(suite, suite.run, config['random']) else: suite.run(config['random']) | suite.run(config['random']) | def reallyRun(config, suite): if config['debug']: _setUpDebugging(config, suite) elif config['profile']: _doProfilingRun(config, suite) else: if config['until-failure']: call_until_failure(suite, suite.run, config['random']) else: suite.run(config['random']) return suite | 5584962440ea64de685830c76e42f7a16ae3c06b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5584962440ea64de685830c76e42f7a16ae3c06b/trial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8654,
1997,
12,
1425,
16,
11371,
4672,
309,
642,
3292,
4148,
3546,
30,
389,
542,
1211,
2829,
1998,
12,
1425,
16,
11371,
13,
1327,
642,
3292,
5040,
3546,
30,
389,
2896,
27012,
4973,
1997,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8654,
1997,
12,
1425,
16,
11371,
4672,
309,
642,
3292,
4148,
3546,
30,
389,
542,
1211,
2829,
1998,
12,
1425,
16,
11371,
13,
1327,
642,
3292,
5040,
3546,
30,
389,
2896,
27012,
4973,
1997,... |
if getattr(self, "histLegendItem", None) is not None: | if self.histLegendItem is not None: | def setHistogramConstructor(self, constructor): self.histogramConstructor = constructor self.somItem.setHistogramConstructor(constructor) if getattr(self, "histLegendItem", None) is not None: self.scene().removeItem(self.histLegendItem) self.histLegendItem = None if constructor and getattr(constructor, "legendItemConst... | c2b295319c990527bd9bf9a858df173321bdb062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/c2b295319c990527bd9bf9a858df173321bdb062/OWSOMVisualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12874,
6293,
12,
2890,
16,
3885,
4672,
365,
18,
22702,
6293,
273,
3885,
365,
18,
87,
362,
1180,
18,
542,
12874,
6293,
12,
12316,
13,
309,
365,
18,
11488,
16812,
1180,
353,
486,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12874,
6293,
12,
2890,
16,
3885,
4672,
365,
18,
22702,
6293,
273,
3885,
365,
18,
87,
362,
1180,
18,
542,
12874,
6293,
12,
12316,
13,
309,
365,
18,
11488,
16812,
1180,
353,
486,
59... |
['orientation', 'options'], cnf, kw) | ['orientation', 'options'], cnf, kw) | def __init__(self, master=None, cnf={}, **kw): TixWidget.__init__(self, master, 'tixButtonBox', ['orientation', 'options'], cnf, kw) | f6251f98f783a2e87344774cc7be0958561e5a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f6251f98f783a2e87344774cc7be0958561e5a16/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
3616,
3514,
2187,
10228,
19235,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
3616,
3514,
2187,
10228,
19235,... |
val2 = hlr_utils.get_value(right,i,r_descr,"x") err2_2 = hlr_utils.get_err2(right,i,r_descr,"x") | val2 = hlr_utils.get_value(right, i, r_descr, "x") err2_2 = hlr_utils.get_err2(right, i, r_descr, "x") | def energy_transfer(left,right,**kwargs): """ This function takes a tuple and a SOM, a tuple and a SO or two tuples and calculates the energy transfer in units of THz. The SOM principle axis must be in units of meV. The SO and tuples are assumed to be in units of meV. Parameters: ---------- -> left is a SOM, SO or tup... | 6616e35e539c4c6226057c57a0d82efcc16edee3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/6616e35e539c4c6226057c57a0d82efcc16edee3/hlr_energy_transfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12929,
67,
13866,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
3193,
471,
279,
348,
1872,
16,
279,
3193,
471,
279,
7460,
578,
2795,
10384,
471,
17264,
326,
12929,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12929,
67,
13866,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
3193,
471,
279,
348,
1872,
16,
279,
3193,
471,
279,
7460,
578,
2795,
10384,
471,
17264,
326,
12929,... |
buffer.write('<reference type="') self.serialize_text(ref.type, quot=True) buffer.write('" ') if ref.title is not None: buffer.write('title="') self.serialize_text(ref.title, quot=True) | if ref.type == 'other.start' : buffer.write('<reference title="Startup Page" ') buffer.write('type="start" ') self.serialize_href(ref.href) buffer.write(' />') else: buffer.write('<reference type="') self.serialize_text(ref.type, quot=True) | def serialize_guide(self): buffer = self.buffer hrefs = self.oeb.manifest.hrefs buffer.write('<guide>') for ref in self.oeb.guide.values(): path = urldefrag(ref.href)[0] if hrefs[path].media_type not in OEB_DOCS: continue buffer.write('<reference type="') self.serialize_text(ref.type, quot=True) buffer.write('" ') if r... | 17003b9d32c40e4f9708fc57425e196de0b035e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/17003b9d32c40e4f9708fc57425e196de0b035e6/writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
67,
12118,
12,
2890,
4672,
1613,
273,
365,
18,
4106,
3897,
87,
273,
365,
18,
15548,
70,
18,
14357,
18,
7547,
87,
1613,
18,
2626,
2668,
32,
12118,
1870,
13,
364,
1278,
316,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
67,
12118,
12,
2890,
4672,
1613,
273,
365,
18,
4106,
3897,
87,
273,
365,
18,
15548,
70,
18,
14357,
18,
7547,
87,
1613,
18,
2626,
2668,
32,
12118,
1870,
13,
364,
1278,
316,
365,
... |
'Library', 'Python', sys.version[:3], 'site-packages') | 'Library', 'Python', sys.version[:3], 'site-packages') | def _init(): import macresource import sys, os macresource.need('DITL', 468, "PythonIDE.rsrc") widgetrespathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE", "Widgets.rsrc"] widgetresfile = os.path.join(*widgetrespathsegs) if not os.path.exists(widgetresfile): widgetrespathsegs = [os.pardir, "Tools", "IDE", "Widgets.rsrc... | c3fd3666bdd512a74cbbc6490653ac9c7364368a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c3fd3666bdd512a74cbbc6490653ac9c7364368a/PackageManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
13332,
1930,
5318,
3146,
1930,
2589,
16,
1140,
5318,
3146,
18,
14891,
2668,
40,
1285,
48,
2187,
1059,
9470,
16,
315,
15774,
10385,
18,
86,
4816,
7923,
3604,
455,
803,
307,
564... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
13332,
1930,
5318,
3146,
1930,
2589,
16,
1140,
5318,
3146,
18,
14891,
2668,
40,
1285,
48,
2187,
1059,
9470,
16,
315,
15774,
10385,
18,
86,
4816,
7923,
3604,
455,
803,
307,
564... |
'pypy\\lib\\_pypy_interact.py' in r.lower()) and | r'pypy\\lib\\_pypy_interact.py' in r.lower()) and | def test_repr(self): import sys r = repr(sys) assert r == "<module 'sys' (built-in)>" import _pypy_interact # known to be in pypy/lib r = repr(_pypy_interact) assert (r.startswith("<module '_pypy_interact' from ") and ('pypy/lib/_pypy_interact.py' in r or 'pypy\\lib\\_pypy_interact.py' in r.lower()) and r.endswith('>'... | 89c0fa63f27de81a97012395bc6bc1cc2aa1aaff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/89c0fa63f27de81a97012395bc6bc1cc2aa1aaff/test_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12715,
12,
2890,
4672,
1930,
2589,
436,
273,
8480,
12,
9499,
13,
1815,
436,
422,
3532,
2978,
296,
9499,
11,
261,
12406,
17,
267,
13,
2984,
225,
1930,
389,
22680,
93,
67,
2761... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
12,
2890,
4672,
1930,
2589,
436,
273,
8480,
12,
9499,
13,
1815,
436,
422,
3532,
2978,
296,
9499,
11,
261,
12406,
17,
267,
13,
2984,
225,
1930,
389,
22680,
93,
67,
2761... |
(('field_'+self._table+'_'+k)[:64], context['module'], 'ir.model.fields', id) | (name1[:64], context['module'], 'ir.model.fields', id) | def _field_create(self, cr, context={}): cr.execute("SELECT id FROM ir_model WHERE model=%s", (self._name,)) if not cr.rowcount: cr.execute('SELECT nextval(%s)', ('ir_model_id_seq',)) model_id = cr.fetchone()[0] cr.execute("INSERT INTO ir_model (id,model, name, info,state) VALUES (%s, %s, %s, %s, %s)", (model_id, self.... | 676b4f214689d0d21005bcf37f8048da4a079d3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/676b4f214689d0d21005bcf37f8048da4a079d3e/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1518,
67,
2640,
12,
2890,
16,
4422,
16,
819,
12938,
4672,
4422,
18,
8837,
2932,
4803,
612,
4571,
9482,
67,
2284,
4852,
938,
5095,
87,
3113,
261,
2890,
6315,
529,
16,
3719,
309,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1518,
67,
2640,
12,
2890,
16,
4422,
16,
819,
12938,
4672,
4422,
18,
8837,
2932,
4803,
612,
4571,
9482,
67,
2284,
4852,
938,
5095,
87,
3113,
261,
2890,
6315,
529,
16,
3719,
309,
48... |
node = self.tree.openElements.pop() while node.name != token["name"]: node = self.tree.openElements.pop() | self.tree.openElements.remove(node) | def endTagForm(self, token): self.tree.formPointer = None if not self.tree.elementInScope(token["name"]): self.parser.parseError("unexpected-end-tag", {"name":"form"}) else: self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != token["name"]: self.parser.parseError("end-tag-too-early-ignored", {"name... | f7c0a79b761481fb9a9fdeee4f279a118e5fc373 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10463/f7c0a79b761481fb9a9fdeee4f279a118e5fc373/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
1204,
12,
2890,
16,
1147,
4672,
365,
18,
3413,
18,
687,
4926,
273,
599,
309,
486,
365,
18,
3413,
18,
2956,
382,
3876,
12,
2316,
9614,
529,
11929,
4672,
365,
18,
4288,
18,
2670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
1204,
12,
2890,
16,
1147,
4672,
365,
18,
3413,
18,
687,
4926,
273,
599,
309,
486,
365,
18,
3413,
18,
2956,
382,
3876,
12,
2316,
9614,
529,
11929,
4672,
365,
18,
4288,
18,
2670,
... |
res = res.id result[k[8:]] = res | res = res.id result[k[8:]] = res | def context_get(self, cr, uid, context=None): user = self.browse(cr, uid, uid, context) result = {} for k in self._columns.keys(): if k.startswith('context_'): res = getattr(user,k) if isinstance(res, browse_record): res = res.id result[k[8:]] = res return result | 0a5f82bd3b22aa2fc8fe3a0baa53c7020b314313 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0a5f82bd3b22aa2fc8fe3a0baa53c7020b314313/res_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
819,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
819,
33,
7036,
4672,
729,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
4555,
16,
819,
13,
563,
273,
2618,
364,
417,
316,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
819,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
819,
33,
7036,
4672,
729,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
4555,
16,
819,
13,
563,
273,
2618,
364,
417,
316,
365,
6315,
... |
return tuple(map(lambda x: int((x*255)&255), self.rgb())) | return tuple(map(lambda x: int(x*255)&255, self.rgb())) | def bitmap_rgb(self): return tuple(map(lambda x: int((x*255)&255), self.rgb())) | 0653f3a14bd08605e86b2ed13323585ad02b5549 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/0653f3a14bd08605e86b2ed13323585ad02b5549/colors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9389,
67,
10948,
12,
2890,
4672,
327,
3193,
12,
1458,
12,
14661,
619,
30,
509,
12443,
92,
14,
10395,
13,
10,
10395,
3631,
365,
18,
10948,
1435,
3719,
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,
9389,
67,
10948,
12,
2890,
4672,
327,
3193,
12,
1458,
12,
14661,
619,
30,
509,
12443,
92,
14,
10395,
13,
10,
10395,
3631,
365,
18,
10948,
1435,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-... |
if not cr_warning and data.find( "\r" ) >= 0: cr_warning = True | if not warning_printed and data.find( "\r" ) >= 0: warning_printed = True | def __convert_eol( self, node ): """Convert EOL of a node""" | 03d768509b4c7e580bf8896746b9db8672aa7762 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/03d768509b4c7e580bf8896746b9db8672aa7762/eolfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
67,
30951,
12,
365,
16,
756,
262,
30,
3536,
2723,
19995,
434,
279,
756,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
6283,
67,
30951,
12,
365,
16,
756,
262,
30,
3536,
2723,
19995,
434,
279,
756,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print "\t | print >> stream, "\t | ret = [ "\tdef __len__(self):\n\t\treturn self._ApplyTypes_(*%s)" % propArgs] | d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
325,
273,
306,
1548,
88,
536,
1001,
1897,
972,
12,
2890,
4672,
64,
82,
64,
88,
64,
88,
2463,
365,
6315,
7001,
2016,
67,
30857,
9,
87,
2225,
738,
2270,
2615,
65,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
325,
273,
306,
1548,
88,
536,
1001,
1897,
972,
12,
2890,
4672,
64,
82,
64,
88,
64,
88,
2463,
365,
6315,
7001,
2016,
67,
30857,
9,
87,
2225,
738,
2270,
2615,
65,
2,
-100,
-100,
-100,
-100,
... |
return self._dict.__contains__(elem) | return elem in self._dict | def __contains__(self, elem): return self._dict.__contains__(elem) | df8b146eb0ed4ec51ea2ff8cec3b642c375153e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/df8b146eb0ed4ec51ea2ff8cec3b642c375153e2/collections_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
3659,
4672,
327,
365,
6315,
1576,
16186,
12298,
972,
12,
10037,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12298,
972,
12,
2890,
16,
3659,
4672,
327,
365,
6315,
1576,
16186,
12298,
972,
12,
10037,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not self.fd: raise portNotOpenError | if self.fd is None: raise portNotOpenError | def setDTR(self,on=1): """Set terminal status line: Data Terminal Ready""" if not self.fd: raise portNotOpenError if on: fcntl.ioctl(self.fd, TIOCMBIS, TIOCM_DTR_str) else: fcntl.ioctl(self.fd, TIOCMBIC, TIOCM_DTR_str) | c6178260b0154cee256732353dc988e9464d50be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/c6178260b0154cee256732353dc988e9464d50be/serialposix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
40,
4349,
12,
2890,
16,
265,
33,
21,
4672,
3536,
694,
8651,
1267,
980,
30,
1910,
18778,
26732,
8395,
309,
365,
18,
8313,
353,
599,
30,
1002,
1756,
1248,
3678,
668,
309,
603,
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,
444,
40,
4349,
12,
2890,
16,
265,
33,
21,
4672,
3536,
694,
8651,
1267,
980,
30,
1910,
18778,
26732,
8395,
309,
365,
18,
8313,
353,
599,
30,
1002,
1756,
1248,
3678,
668,
309,
603,
30,
... |
if (name == None): self.__MeterName = "" else: self.__MeterName = name | self.__MeterName = name | def setMeterName(self,name): if (name == None): self.__MeterName = "" else: self.__MeterName = name | 2f1fc4569fbaa7a475cb2c0c298dd5ffdf929547 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/2f1fc4569fbaa7a475cb2c0c298dd5ffdf929547/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15430,
847,
461,
12,
2890,
16,
529,
4672,
309,
261,
529,
422,
599,
4672,
365,
16186,
16935,
461,
273,
1408,
469,
30,
365,
16186,
16935,
461,
273,
508,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15430,
847,
461,
12,
2890,
16,
529,
4672,
309,
261,
529,
422,
599,
4672,
365,
16186,
16935,
461,
273,
1408,
469,
30,
365,
16186,
16935,
461,
273,
508,
2,
-100,
-100,
-100,
-100,
-100,
... |
return result['imageinfo'][0]['thumburl'] except KeyError: | url = result['imageinfo'][0]['thumburl'] if url: return url return None except (KeyError, IndexError): | def getURL(self, name, size=None): """Return image URL for image with given name @param name: image name (without namespace, i.e. without 'Image:') @type name: unicode @returns: URL to original image @rtype: str """ assert isinstance(name, unicode), 'name must be of type unicode' for api_helper in self.api_helpers:... | c9069ecbcaba9017d079af21987f99ce7e917f2b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/c9069ecbcaba9017d079af21987f99ce7e917f2b/mwapidb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19341,
12,
2890,
16,
508,
16,
963,
33,
7036,
4672,
3536,
990,
1316,
1976,
364,
1316,
598,
864,
508,
225,
632,
891,
508,
30,
1316,
508,
261,
13299,
1981,
16,
277,
18,
73,
18,
2887,
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,
19341,
12,
2890,
16,
508,
16,
963,
33,
7036,
4672,
3536,
990,
1316,
1976,
364,
1316,
598,
864,
508,
225,
632,
891,
508,
30,
1316,
508,
261,
13299,
1981,
16,
277,
18,
73,
18,
2887,
29... |
self.staticLine1 = wxStaticLine(id=wxID_STCSTYLEEDITDLGSTATICLINE1, name='staticLine1', parent=self, pos=wxPoint(48, 62), size=wxSize(120, 2), style=wxLI_HORIZONTAL) | self.staticLine1 = wx.StaticLine(id=wxID_STCSTYLEEDITDLGSTATICLINE1, name='staticLine1', parent=self, pos=wx.Point(48, 64), size=wx.Size(135, 0), style=wx.LI_HORIZONTAL) | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... |
"as %s (it scored %d%%)." % (original_class, original_score*100)) | "as %s (it scored %d%%)." % (original_class, original_score)) | def ShowClues(mgr, explorer): from cgi import escape app = explorer.Application msgstore_message = explorer.GetSelectedMessages(False) if msgstore_message is None: return item = msgstore_message.GetOutlookItem() score, clues = mgr.score(msgstore_message, evidence=True) new_msg = app.CreateItem(0) # NOTE: Silly Outloo... | 55b575da5389edd04dacc97abc67871a38b1ffcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/55b575da5389edd04dacc97abc67871a38b1ffcd/addin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
2009,
3610,
12,
13552,
16,
22147,
4672,
628,
276,
10052,
1930,
4114,
225,
595,
273,
22147,
18,
3208,
1234,
2233,
67,
2150,
273,
22147,
18,
967,
7416,
5058,
12,
8381,
13,
309,
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,
9674,
2009,
3610,
12,
13552,
16,
22147,
4672,
628,
276,
10052,
1930,
4114,
225,
595,
273,
22147,
18,
3208,
1234,
2233,
67,
2150,
273,
22147,
18,
967,
7416,
5058,
12,
8381,
13,
309,
1234,... |
inherit = bool(form_vars.get('inherit', False)) | inherit = bool(self.request.form.get('inherit', False)) | def updateSharingInfo(self, search_term='', form_vars={}): sharing = getMultiAdapter((self.context, self.request,), name="sharing") inherit = bool(form_vars.get('inherit', False)) sharing.update_inherit(inherit) # XXX: This doesn't work because the request marshalling appears to # be wrong, especially when there are... | 7c4620aa6c8891709610d6cdc54dac819598d89f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12187/7c4620aa6c8891709610d6cdc54dac819598d89f/kss_sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
22897,
966,
12,
2890,
16,
1623,
67,
6408,
2218,
2187,
646,
67,
4699,
12938,
4672,
225,
21001,
273,
31863,
4216,
12443,
2890,
18,
2472,
16,
365,
18,
2293,
16,
3631,
508,
1546,
31615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
22897,
966,
12,
2890,
16,
1623,
67,
6408,
2218,
2187,
646,
67,
4699,
12938,
4672,
225,
21001,
273,
31863,
4216,
12443,
2890,
18,
2472,
16,
365,
18,
2293,
16,
3631,
508,
1546,
31615... |
qualityraw = results2.group(0) quality = string.upper(qualityraw) | qualityraw = results2.group(0) quality = string.upper(qualityraw) | def getfileinfo(filename): fileext = os.path.splitext(filename) results = re.search('s[0-9][0-9]e[0-9][0-9]', filename, re.I) try: sxxexx = results.group(0) snum = sxxexx[1:3] enum = sxxexx[4:6] except: try: results = re.search('[0-9][0-9]x[0-9][0-9]', filename, re.I) sxxexx = results.group(0) snum = sxxexx[0:2] enum ... | 0dace5e13519b49a10fec8a5cdaff7b36ee5fb6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13915/0dace5e13519b49a10fec8a5cdaff7b36ee5fb6b/tvwrangler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
1376,
12,
3459,
4672,
225,
585,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
3459,
13,
1686,
273,
283,
18,
3072,
2668,
87,
63,
20,
17,
29,
6362,
20,
17,
29,
65,
73,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
1376,
12,
3459,
4672,
225,
585,
408,
273,
1140,
18,
803,
18,
4939,
408,
12,
3459,
13,
1686,
273,
283,
18,
3072,
2668,
87,
63,
20,
17,
29,
6362,
20,
17,
29,
65,
73,
63,
... |
self.transient(parent) | if parent.winfo_viewable(): self.transient(parent) | def __init__(self, parent, title = None): | 874576ede7e22304799cd1a57de9de10cd1e6596 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/874576ede7e22304799cd1a57de9de10cd1e6596/tkSimpleDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
273,
599,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
del(results); | del(results) | def fit(self, which='mean', df=None): """ Go through an iterator, instantiating model and passing data, going through outputs. """ | f0e2655f44d499d396a50e4540091600a8f5d107 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12658/f0e2655f44d499d396a50e4540091600a8f5d107/onesample.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4845,
12,
2890,
16,
1492,
2218,
7079,
2187,
3013,
33,
7036,
4672,
3536,
4220,
3059,
392,
2775,
16,
5934,
22906,
938,
471,
9588,
501,
16,
8554,
3059,
6729,
18,
3536,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4845,
12,
2890,
16,
1492,
2218,
7079,
2187,
3013,
33,
7036,
4672,
3536,
4220,
3059,
392,
2775,
16,
5934,
22906,
938,
471,
9588,
501,
16,
8554,
3059,
6729,
18,
3536,
2,
-100,
-100,
-100,
... |
unicode_names= [] | unicode_names = [] | def main(args): unicode_names= [] for ix in range(sys.maxunicode+1): try: unicode_names.append( (ix, unicodedata.name(unichr(ix))) ) except ValueError: # no name for the character pass for arg in args: pat = re.compile(arg, re.I) matches = [(x,y) for (x,y) in unicode_names if pat.search(y) is not None] if matches: prin... | 3c531ff74ae7d943b8c50bdd89b1f0393015b964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/3c531ff74ae7d943b8c50bdd89b1f0393015b964/find-uname.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
5252,
67,
1973,
273,
5378,
364,
8288,
316,
1048,
12,
9499,
18,
1896,
9124,
15,
21,
4672,
775,
30,
5252,
67,
1973,
18,
6923,
12,
261,
697,
16,
5252,
892,
18,
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,
2774,
12,
1968,
4672,
5252,
67,
1973,
273,
5378,
364,
8288,
316,
1048,
12,
9499,
18,
1896,
9124,
15,
21,
4672,
775,
30,
5252,
67,
1973,
18,
6923,
12,
261,
697,
16,
5252,
892,
18,
529... |
except Errors.MMNotAMemberError: self.AddError("%s isn't subscribed to this list." % mail.GetSender()) | def ShowSetUsage(s=self, od = option_descs): options = od.keys() options.sort() s.AddError("Usage: set <option> <on|off> <password>") s.AddError("Valid options are:") for option in options: s.AddError("%s: %s" % (option, od[option])) | 0a919953f3aeb83d34438b52889876260af6802f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/0a919953f3aeb83d34438b52889876260af6802f/MailCommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
694,
5357,
12,
87,
33,
2890,
16,
28541,
273,
1456,
67,
5569,
87,
4672,
702,
273,
28541,
18,
2452,
1435,
702,
18,
3804,
1435,
272,
18,
986,
668,
2932,
5357,
30,
444,
411,
3482,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
694,
5357,
12,
87,
33,
2890,
16,
28541,
273,
1456,
67,
5569,
87,
4672,
702,
273,
28541,
18,
2452,
1435,
702,
18,
3804,
1435,
272,
18,
986,
668,
2932,
5357,
30,
444,
411,
3482,
... | |
return self.tk.call(self._w, 'info', 'parent', entry) | return self.tk.call(self._w, 'info', 'parent', entry) | def info_parent(self, entry): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
2938,
12,
2890,
16,
1241,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
2938,
12,
2890,
16,
1241,
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,... |
e2 = grp.getgrnam(e.gr_name) | name = e.gr_name if name.startswith('+') or name.startswith('-'): continue e2 = grp.getgrnam(name) | def test_values(self): entries = grp.getgrall() | c7ffff250e27db444546d984abbd76b8909f8d70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/c7ffff250e27db444546d984abbd76b8909f8d70/test_grp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.server.socket.shutdown( hasattr(socket, 'SHUT_RDWR') and socket.SHUT_RDWR or 2 ) | try: self.server.socket.shutdown( hasattr(socket, 'SHUT_RDWR') and socket.SHUT_RDWR or 2) except socket.error, e: if e.errno != 57: raise Logger().notifyChannel( 'server', LOG_DEBUG, '"%s" when shutting down server socket, ' 'this is normal under OS X'%e) | def stop(self): self.running = False if os.name != 'nt': self.server.socket.shutdown( hasattr(socket, 'SHUT_RDWR') and socket.SHUT_RDWR or 2 ) self.server.socket.close() | fdcbed339b52e6e8f8170c7259f6a502d9bb028d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fdcbed339b52e6e8f8170c7259f6a502d9bb028d/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
8704,
273,
1083,
309,
1140,
18,
529,
480,
296,
496,
4278,
775,
30,
365,
18,
3567,
18,
7814,
18,
15132,
12,
3859,
12,
7814,
16,
296,
2664,
1693,
67,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
8704,
273,
1083,
309,
1140,
18,
529,
480,
296,
496,
4278,
775,
30,
365,
18,
3567,
18,
7814,
18,
15132,
12,
3859,
12,
7814,
16,
296,
2664,
1693,
67,
204... |
check('c' in unicode('abc'), "'c' not in u'abc'") check('d' not in unicode('abc'), "'d' in u'abc'") check('' in unicode(''), "'' not in u''") check(unicode('') in '', "u'' not in ''") check(unicode('') in unicode(''), "u'' not in u''") check('' in unicode('abc'), "'' not in u'abc'") check(unicode('') in 'abc', "u'' ... | if __name__ == '__main__': test_main() | def check(ok, *args): if not ok: raise TestFailed, " ".join(map(str, args)) | a5a67e669b57a43ff3266b63863ffe4af30713d7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/a5a67e669b57a43ff3266b63863ffe4af30713d7/test_contains.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
601,
16,
380,
1968,
4672,
309,
486,
1529,
30,
1002,
7766,
2925,
16,
315,
3552,
5701,
12,
1458,
12,
701,
16,
833,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
601,
16,
380,
1968,
4672,
309,
486,
1529,
30,
1002,
7766,
2925,
16,
315,
3552,
5701,
12,
1458,
12,
701,
16,
833,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.linkHistory[url]['modified'] = modified | self.linkHistory[url]['modified'] = unicodify(modified) | def __init__(self,url,ufeed, title = None, visible = True, initialHTML = None,etag=None,modified = None,charset = None): FeedImpl.__init__(self,url,ufeed,title,visible) self.initialHTML = initialHTML self.initialCharset = charset self.linkHistory = {} self.linkHistory[url] = {} self.tempHistory = {} if not etag is None... | ea997e042c875d2171a160414e94bfe5b908717a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/ea997e042c875d2171a160414e94bfe5b908717a/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
718,
16,
696,
73,
329,
16,
2077,
273,
599,
16,
6021,
273,
1053,
16,
2172,
4870,
273,
599,
16,
20788,
33,
7036,
16,
7342,
273,
599,
16,
9999,
273,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
718,
16,
696,
73,
329,
16,
2077,
273,
599,
16,
6021,
273,
1053,
16,
2172,
4870,
273,
599,
16,
20788,
33,
7036,
16,
7342,
273,
599,
16,
9999,
273,
599,
... |
threading.Thread(target=run).start() | threading.Thread(target=run).start() | def run(): with JSContext(g) as ctxt: ctxt.eval(""" started.wait(); for (i=0; i<10; i++) { sleep(100); } finished.release(); """) | 39238494c6380764c75b46d3d726c011640ecf54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/39238494c6380764c75b46d3d726c011640ecf54/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
598,
6756,
1042,
12,
75,
13,
487,
14286,
30,
14286,
18,
8622,
2932,
3660,
5746,
18,
7048,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
31,
277,
27245,
288,
5329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
13332,
598,
6756,
1042,
12,
75,
13,
487,
14286,
30,
14286,
18,
8622,
2932,
3660,
5746,
18,
7048,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
31,
277,
27245,
288,
5329,
... |
pInfo = self.pInfo flags = pInfo.GetFlags() self['toFile'] = (flags&win32ui.PD_PRINTTOFILE != 0) self['direct'] = pInfo.GetDirect() self['preview'] = pInfo.GetPreview() self['continuePrinting'] = pInfo.GetContinuePrinting() self['curPage'] = pInfo.GetCurPage() self['numPreviewPages'] = pInfo.GetNumPreviewPages() self[... | pInfo = self.pInfo flags = pInfo.GetFlags() self['toFile'] = (flags&win32ui.PD_PRINTTOFILE != 0) self['direct'] = pInfo.GetDirect() self['preview'] = pInfo.GetPreview() self['continuePrinting'] = pInfo.GetContinuePrinting() self['curPage'] = pInfo.GetCurPage() self['numPreviewPages'] = pInfo.GetNumPreviewPages() self[... | def OnOK(self): '''DoModal has finished. Can now access the users choices''' self._obj_.OnOK() pInfo = self.pInfo # user values flags = pInfo.GetFlags() self['toFile'] = (flags&win32ui.PD_PRINTTOFILE != 0) self['direct'] = pInfo.GetDirect() self['preview'] = pInfo.GetPreview() self['continuePrinting'] = pInfo.GetContin... | 318a7b2b30f85e8eb9ae2f252d492d44d86a6ac8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/318a7b2b30f85e8eb9ae2f252d492d44d86a6ac8/dialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3141,
12,
2890,
4672,
9163,
3244,
20191,
711,
6708,
18,
4480,
2037,
2006,
326,
3677,
7246,
26418,
365,
6315,
2603,
27799,
1398,
3141,
1435,
293,
966,
273,
365,
18,
84,
966,
468,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3141,
12,
2890,
4672,
9163,
3244,
20191,
711,
6708,
18,
4480,
2037,
2006,
326,
3677,
7246,
26418,
365,
6315,
2603,
27799,
1398,
3141,
1435,
293,
966,
273,
365,
18,
84,
966,
468,
72... |
return dict(self.get_substitution_pairs(minLen=minLen,vars=vars,exclude=exclude)) | return dict(self.get_substitution_pairs(minLen=minLen,vars=vars, exclude=exclude)) | def get_substitution_dict( self, minLen=3, vars={}, exclude=[] ): return dict(self.get_substitution_pairs(minLen=minLen,vars=vars,exclude=exclude)) | 3c3e49363a7a3c916b648c6154d8aef255c31d3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/3c3e49363a7a3c916b648c6154d8aef255c31d3e/LocalPath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1717,
14278,
67,
1576,
12,
365,
16,
1131,
2891,
33,
23,
16,
4153,
28793,
4433,
33,
8526,
262,
30,
327,
2065,
12,
2890,
18,
588,
67,
1717,
14278,
67,
11545,
12,
1154,
2891,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1717,
14278,
67,
1576,
12,
365,
16,
1131,
2891,
33,
23,
16,
4153,
28793,
4433,
33,
8526,
262,
30,
327,
2065,
12,
2890,
18,
588,
67,
1717,
14278,
67,
11545,
12,
1154,
2891,
3... |
self._nodeid, classname) | self._nodeid, classname, property, itemid) | def hasPermission(self, permission, classname=_marker, property=None, itemid=None): '''Determine if the user has the Permission. | 099b5098303db0a11e91541d6b52474112749871 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/099b5098303db0a11e91541d6b52474112749871/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26097,
12,
2890,
16,
4132,
16,
7479,
33,
67,
11145,
16,
1272,
33,
7036,
16,
16862,
33,
7036,
4672,
9163,
8519,
309,
326,
729,
711,
326,
8509,
18,
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,
26097,
12,
2890,
16,
4132,
16,
7479,
33,
67,
11145,
16,
1272,
33,
7036,
16,
16862,
33,
7036,
4672,
9163,
8519,
309,
326,
729,
711,
326,
8509,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
if audioop.lin2ulaw(data[0], 1) != '\377\347\333' or \ audioop.lin2ulaw(data[1], 2) != '\377\377\377' or \ audioop.lin2ulaw(data[2], 4) != '\377\377\377': | if audioop.lin2ulaw(data[0], 1) != '\xff\xe7\xdb' or \ audioop.lin2ulaw(data[1], 2) != '\xff\xff\xff' or \ audioop.lin2ulaw(data[2], 4) != '\xff\xff\xff': | def testlin2ulaw(data): if verbose: print 'lin2ulaw' if audioop.lin2ulaw(data[0], 1) != '\377\347\333' or \ audioop.lin2ulaw(data[1], 2) != '\377\377\377' or \ audioop.lin2ulaw(data[2], 4) != '\377\377\377': return 0 return 1 | 54d99dab72aad0665e98e2bf193eed9903f9fa3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54d99dab72aad0665e98e2bf193eed9903f9fa3e/test_audioop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7511,
22,
332,
2219,
12,
892,
4672,
309,
3988,
30,
1172,
296,
7511,
22,
332,
2219,
11,
309,
7447,
556,
18,
7511,
22,
332,
2219,
12,
892,
63,
20,
6487,
404,
13,
480,
2337,
5297,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7511,
22,
332,
2219,
12,
892,
4672,
309,
3988,
30,
1172,
296,
7511,
22,
332,
2219,
11,
309,
7447,
556,
18,
7511,
22,
332,
2219,
12,
892,
63,
20,
6487,
404,
13,
480,
2337,
5297,... |
factor = 1024*1024 | factor = pow(base, 2) | def checkDigit(self, filter, value, factorize = True): op = ">=" if filter[:1] in (">", "<", "="): op, filter = filter[:1]+"=", filter[1:] | c14e8ee86adf2fdb7bf0da6095d7af05adb49479 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/c14e8ee86adf2fdb7bf0da6095d7af05adb49479/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
10907,
12,
2890,
16,
1034,
16,
460,
16,
5578,
554,
273,
1053,
4672,
1061,
273,
14402,
1546,
309,
1034,
10531,
21,
65,
316,
7566,
2984,
16,
3532,
3113,
9671,
4672,
1061,
16,
1034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
10907,
12,
2890,
16,
1034,
16,
460,
16,
5578,
554,
273,
1053,
4672,
1061,
273,
14402,
1546,
309,
1034,
10531,
21,
65,
316,
7566,
2984,
16,
3532,
3113,
9671,
4672,
1061,
16,
1034,
... |
lookup = template_lookup(environ) template = lookup.get_template('/ajax/search.html') from pprint import pformat kwargs = dict(title='Search', request_uri=environ['REQUEST_URI'], environ=pformat(environ)) | template = get_template(environ, 'search.html') kwargs = get_template_kwargs(environ, 'Search') | def search(environ, start_response): lookup = template_lookup(environ) template = lookup.get_template('/ajax/search.html') from pprint import pformat kwargs = dict(title='Search', request_uri=environ['REQUEST_URI'], environ=pformat(environ)) start_response('200 OK', [('Content-type', 'text/html')]) return [template.r... | 8f40dd2f2ce7a10320a63d27732dfd91fab605e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12122/8f40dd2f2ce7a10320a63d27732dfd91fab605e0/medin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
28684,
16,
787,
67,
2740,
4672,
1542,
273,
336,
67,
3202,
12,
28684,
16,
296,
3072,
18,
2620,
6134,
1205,
273,
336,
67,
3202,
67,
4333,
12,
28684,
16,
296,
2979,
6134,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
28684,
16,
787,
67,
2740,
4672,
1542,
273,
336,
67,
3202,
12,
28684,
16,
296,
3072,
18,
2620,
6134,
1205,
273,
336,
67,
3202,
67,
4333,
12,
28684,
16,
296,
2979,
6134,
225,
... |
gtk.timeout_add(3000, self.unset_on_error, items) | self.timer = gtk.timeout_add(3000, self.unset_on_error, items) | def set_on_error(self, items): for item in items: item.set( fill_color_rgba= self.error_square_color ) gtk.timeout_add(3000, self.unset_on_error, items) | 0a0e4f57e86817b5ed43489a7c227ec1593d0921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/0a0e4f57e86817b5ed43489a7c227ec1593d0921/sudoku.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
265,
67,
1636,
12,
2890,
16,
1516,
4672,
364,
761,
316,
1516,
30,
761,
18,
542,
12,
3636,
67,
3266,
67,
26198,
33,
365,
18,
1636,
67,
19719,
67,
3266,
262,
225,
365,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
265,
67,
1636,
12,
2890,
16,
1516,
4672,
364,
761,
316,
1516,
30,
761,
18,
542,
12,
3636,
67,
3266,
67,
26198,
33,
365,
18,
1636,
67,
19719,
67,
3266,
262,
225,
365,
18,
1... |
self._title.modify_fg(gtk.STATE_NORMAL, self.terminator.window.get_style().fg[gtk.STATE_SELECTED]) | def on_vte_focus_in(self, vte, event): self._titlebox.modify_bg(gtk.STATE_NORMAL,self.terminator.window.get_style().bg[gtk.STATE_SELECTED]) self._title.modify_fg(gtk.STATE_NORMAL, self.terminator.window.get_style().fg[gtk.STATE_SELECTED]) return | ad8e723178e5cd0d126ab9742a08fce270c88142 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6502/ad8e723178e5cd0d126ab9742a08fce270c88142/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
90,
736,
67,
13923,
67,
267,
12,
2890,
16,
331,
736,
16,
871,
4672,
365,
6315,
2649,
2147,
18,
17042,
67,
12370,
12,
4521,
79,
18,
7998,
67,
15480,
16,
2890,
18,
9505,
639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
90,
736,
67,
13923,
67,
267,
12,
2890,
16,
331,
736,
16,
871,
4672,
365,
6315,
2649,
2147,
18,
17042,
67,
12370,
12,
4521,
79,
18,
7998,
67,
15480,
16,
2890,
18,
9505,
639,
... | |
def start (self): | def start(self): | def start (self): assert self.can_start if self.bin.set_state (gst.STATE_PLAYING): self.__can_start = False self.__running = True else: raise GstPlayingFailledError() | 016aec4a85d3438c0d49f1f8b2012e23eb7805ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/016aec4a85d3438c0d49f1f8b2012e23eb7805ec/audio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
1815,
365,
18,
4169,
67,
1937,
309,
365,
18,
4757,
18,
542,
67,
2019,
261,
75,
334,
18,
7998,
67,
52,
7868,
1360,
4672,
365,
16186,
4169,
67,
1937,
273,
1083,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
1815,
365,
18,
4169,
67,
1937,
309,
365,
18,
4757,
18,
542,
67,
2019,
261,
75,
334,
18,
7998,
67,
52,
7868,
1360,
4672,
365,
16186,
4169,
67,
1937,
273,
1083,
36... |
rawstatus = build.status() status = html_build_status(rawstatus) | status = html_build_status(build.status()) | def build_status_html(myself, build): rawstatus = build.status() status = html_build_status(rawstatus) return build_link(myself, build.tree, build.host, build.compiler, build.revision, status) | 7176a9c37bc30cb60844aca51b605287578ff9eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/7176a9c37bc30cb60844aca51b605287578ff9eb/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
2327,
67,
2620,
12,
4811,
2890,
16,
1361,
4672,
1267,
273,
1729,
67,
3510,
67,
2327,
12,
3510,
18,
2327,
10756,
327,
1361,
67,
1232,
12,
4811,
2890,
16,
1361,
18,
3413,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
2327,
67,
2620,
12,
4811,
2890,
16,
1361,
4672,
1267,
273,
1729,
67,
3510,
67,
2327,
12,
3510,
18,
2327,
10756,
327,
1361,
67,
1232,
12,
4811,
2890,
16,
1361,
18,
3413,
16,
... |
count = 0 | def partial_name(s): count = 0 if s in self.series: return s for x in self.series: if s in x: count += 1 last = x if count > 1: return None if count: return last if len(self.series) > 0 and len(self.applied) > 0: if s == 'qtip': return self.series[self.series_end()-1] if s == 'qbase': return self.series[0] return None | f505e8d10139ea5b506526329d6e0ea983798081 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/f505e8d10139ea5b506526329d6e0ea983798081/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4702,
67,
529,
12,
87,
4672,
309,
272,
316,
365,
18,
10222,
30,
327,
272,
364,
619,
316,
365,
18,
10222,
30,
309,
272,
316,
619,
30,
1056,
1011,
404,
1142,
273,
619,
309,
1056,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4702,
67,
529,
12,
87,
4672,
309,
272,
316,
365,
18,
10222,
30,
327,
272,
364,
619,
316,
365,
18,
10222,
30,
309,
272,
316,
619,
30,
1056,
1011,
404,
1142,
273,
619,
309,
1056,
405,
... | |
if 'arz' in prefixes: return siteinfo['interwikimap'].append({ 'prefix': 'arz', 'language': 'arz', 'url': 'http://arz.wikipedia.org/wiki/$1', 'local': '', }) | for p in "arz pnt".split(): if p in prefixes: return siteinfo['interwikimap'].append({ 'prefix': p, 'language': p, 'url': 'http://%s.wikipedia.org/wiki/$1' % (p, ), 'local': '', }) | def fix_wikipedia_siteinfo(siteinfo): prefixes = [x['prefix'] for x in siteinfo['interwikimap']] if 'arz' in prefixes: return siteinfo['interwikimap'].append({ 'prefix': 'arz', 'language': 'arz', 'url': 'http://arz.wikipedia.org/wiki/$1', 'local': '', }) | 14d3b757676f091c5e791507425b866cec7a2be9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/14d3b757676f091c5e791507425b866cec7a2be9/nshandling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
11999,
13744,
67,
4256,
1376,
12,
4256,
1376,
4672,
9419,
273,
306,
92,
3292,
3239,
3546,
364,
619,
316,
2834,
1376,
3292,
2761,
11999,
12161,
3546,
65,
364,
293,
316,
315,
297... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
11999,
13744,
67,
4256,
1376,
12,
4256,
1376,
4672,
9419,
273,
306,
92,
3292,
3239,
3546,
364,
619,
316,
2834,
1376,
3292,
2761,
11999,
12161,
3546,
65,
364,
293,
316,
315,
297... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.