rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
self.fd.seek(max(0,self.file_offset)) | self.fd.seek(max(0, offset)) | def cache_screen(self, offset, length): if self.screen_offset != offset: self.fd.seek(max(0,self.file_offset)) self.screen_cache = cStringIO.StringIO(self.fd.read(length)) self.screen_offset = offset | cf0b1fe13eba43ab7567307bb554e1832896a5aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/cf0b1fe13eba43ab7567307bb554e1832896a5aa/Hexeditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
67,
9252,
12,
2890,
16,
1384,
16,
769,
4672,
309,
365,
18,
9252,
67,
3348,
480,
1384,
30,
365,
18,
8313,
18,
16508,
12,
1896,
12,
20,
16,
1384,
3719,
365,
18,
9252,
67,
2493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
67,
9252,
12,
2890,
16,
1384,
16,
769,
4672,
309,
365,
18,
9252,
67,
3348,
480,
1384,
30,
365,
18,
8313,
18,
16508,
12,
1896,
12,
20,
16,
1384,
3719,
365,
18,
9252,
67,
2493,
... |
print(line, end=' ') | print(line, end='') | def pair(x0, x1): # x0:x1 are 0-based slice indices; convert to 1-based line indices. x0 += 1 if x0 >= x1: return "line " + str(x0) else: return "lines %d-%d" % (x0, x1) | 13d5f7abba88cf1c2d293e88603c1e91b115a553 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/13d5f7abba88cf1c2d293e88603c1e91b115a553/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3082,
12,
92,
20,
16,
619,
21,
4672,
468,
619,
20,
30,
92,
21,
854,
374,
17,
12261,
2788,
4295,
31,
1765,
358,
404,
17,
12261,
980,
4295,
18,
619,
20,
1011,
404,
309,
619,
20,
1545... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3082,
12,
92,
20,
16,
619,
21,
4672,
468,
619,
20,
30,
92,
21,
854,
374,
17,
12261,
2788,
4295,
31,
1765,
358,
404,
17,
12261,
980,
4295,
18,
619,
20,
1011,
404,
309,
619,
20,
1545... |
policies_options += \ '<option img="%s" value="%s" caption="%s"/>' % \ (policy.__image__, policy.id, policy.displayName.value) self.params['POLICIES_OPTIONS'] = policies_options | policies_options += [xmlUtils.XMLEncode(policy.__image__), policy.id, xmlUtils.XMLEncode(policy.displayName.value)] self.params['POLICIES'] = ';'.join(policies_options) | def setParams(self): self.response.setHeader('cache-control', 'no-cache') sLang = self.request.getLang() | 19d016592fde3a93ded6b6761dfcf716d2874a72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/19d016592fde3a93ded6b6761dfcf716d2874a72/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31705,
12,
2890,
4672,
365,
18,
2740,
18,
542,
1864,
2668,
2493,
17,
7098,
2187,
296,
2135,
17,
2493,
6134,
272,
7275,
273,
365,
18,
2293,
18,
588,
7275,
1435,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31705,
12,
2890,
4672,
365,
18,
2740,
18,
542,
1864,
2668,
2493,
17,
7098,
2187,
296,
2135,
17,
2493,
6134,
272,
7275,
273,
365,
18,
2293,
18,
588,
7275,
1435,
2,
-100,
-100,
-100,
-10... |
self.assertEqual(temp_file.readline().rstrip(), "ENSG00000172135 AGGGAAAGCCCCTAAGCTC--CTGATCTATGCTGCATCCAGTTTGCAAAGTGGGGTCCC") | line = temp_file.readline().rstrip() if line == "Score 114" : line = temp_file.readline().rstrip() if line == "ENSG00000172135 AGGGAAAGCCCCTAAGCTC--CTGATCTATGCTGCATCCAGTTTGCAAAGTGGGGTCCC" : pass elif line == "ENSG00000172135 AGGGAAAGCCCCTAAGCTC--CTGATCTATGCTGCATCCAGTTTGCAAAG-TGGGGTCC" : pass else : self.assert_... | def test_align(self): temp_file = Wise.align(["dnal"], ("Wise/human_114_g01_exons.fna_01", "Wise/human_114_g02_exons.fna_01"), kbyte=100000, force_type="DNA", quiet=True) self.assertEqual(temp_file.readline().rstrip(), "ENSG00000172135 AGGGAAAGCCCCTAAGCTC--CTGATCTATGCTGCATCCAGTTTGCAAAGTGGGGTCCC") | f58d93abc9a10704c301199e9f18f050e55e7083 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/f58d93abc9a10704c301199e9f18f050e55e7083/test_Wise.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7989,
12,
2890,
4672,
1906,
67,
768,
273,
678,
784,
18,
7989,
3816,
6,
5176,
287,
6,
6487,
7566,
59,
784,
19,
24270,
67,
22214,
67,
75,
1611,
67,
338,
7008,
18,
4293,
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,
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,
7989,
12,
2890,
4672,
1906,
67,
768,
273,
678,
784,
18,
7989,
3816,
6,
5176,
287,
6,
6487,
7566,
59,
784,
19,
24270,
67,
22214,
67,
75,
1611,
67,
338,
7008,
18,
4293,
69,
... |
for r in self.engine.resources.values() : | if sorting: context.occursAs[SUBJ].sort() for s in context.occursAs[SUBJ] : if context is s.triple[CONTEXT]and s.triple[PRED] is self.forSome: self._outputStatement(sink, s) rs = self.engine.resources.values() if sorting: rs.sort() for r in rs : if sorting: r.occursAs[SUBJ].sort() | def dumpBySubject(self, context, sink): | a7d0c800568125609e0fc58e331b9a6f318031c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a7d0c800568125609e0fc58e331b9a6f318031c6/cwm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
858,
6638,
12,
2890,
16,
819,
16,
9049,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
858,
6638,
12,
2890,
16,
819,
16,
9049,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
this.a = e.modifiers | 1; this.c = e.modifiers | 2; this.s = e.modifiers | 4; | this.v = e.modifiers; | def notebook_lib(): s= r""" | 4871fd1c89246b34259e08f76dc2f42fa44becb7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/4871fd1c89246b34259e08f76dc2f42fa44becb7/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
gotPassword, host, port).addErrback( | gotPassword, host, port, usn).addErrback( | def connectionError(err, host, port, usn): if isinstance(err.value, Pearl.AuthenticationError): # Bad password, let the user try again keychain.lookup(usn, ignoreStored=True).addCallback( gotPassword, host, port).addErrback( connectionError, host, port, usn) else: # Pass on other errors result.errback(err) | 611979562d81b77dfdab8259963aef58691d1412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/611979562d81b77dfdab8259963aef58691d1412/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
668,
12,
370,
16,
1479,
16,
1756,
16,
584,
82,
4672,
309,
1549,
12,
370,
18,
1132,
16,
453,
2091,
80,
18,
6492,
668,
4672,
468,
6107,
2201,
16,
2231,
326,
729,
775,
3382,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
668,
12,
370,
16,
1479,
16,
1756,
16,
584,
82,
4672,
309,
1549,
12,
370,
18,
1132,
16,
453,
2091,
80,
18,
6492,
668,
4672,
468,
6107,
2201,
16,
2231,
326,
729,
775,
3382,
498,
... |
self.assertEqual(020000000000, -2147483648L) self.assertEqual(037777777777, -1) self.assertEqual(-(020000000000), 2147483648L) self.assertEqual(-(037777777777), 1) self.assertEqual(-020000000000, 2147483648L) self.assertEqual(-037777777777, 1) | if platform_long_is_32_bits: self.assertEqual(020000000000, -2147483648L) self.assertEqual(037777777777, -1) self.assertEqual(-(020000000000), 2147483648L) self.assertEqual(-(037777777777), 1) self.assertEqual(-020000000000, 2147483648L) self.assertEqual(-037777777777, 1) else: self.assertEqual(0100000000000000000... | def test_oct_unsigned(self): # This test is in a <string> so we can ignore the warnings exec """if 1: # Positive-looking constants with negavive values self.assertEqual(020000000000, -2147483648L) self.assertEqual(037777777777, -1) # Ditto with a minus sign and parentheses self.assertEqual(-(020000000000), 2147483648L)... | dcfdceb9a21881b58f0278dda92a7cdce6782614 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dcfdceb9a21881b58f0278dda92a7cdce6782614/test_hexoct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13410,
67,
22297,
12,
2890,
4672,
468,
1220,
1842,
353,
316,
279,
411,
1080,
34,
1427,
732,
848,
2305,
326,
5599,
1196,
3536,
430,
404,
30,
468,
6818,
3720,
17,
7330,
310,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13410,
67,
22297,
12,
2890,
4672,
468,
1220,
1842,
353,
316,
279,
411,
1080,
34,
1427,
732,
848,
2305,
326,
5599,
1196,
3536,
430,
404,
30,
468,
6818,
3720,
17,
7330,
310,
68... |
path = self._relpath | path = self.request_path | def mkcol(self): """Creates a subdirectory, given an absolute path.""" path = self._relpath parent_path = os.path.dirname(path) # check for duplicate if Resource.exists_with_path(path): return self.response.set_status(405,"Method Not Allowed") # fetch parent if parent_path: parent = Resource.get_by_path(parent_path) ... | 9869f0209db866324231063296f1d83027eb102e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14790/9869f0209db866324231063296f1d83027eb102e/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
1293,
12,
2890,
4672,
3536,
2729,
279,
29869,
16,
864,
392,
4967,
589,
12123,
589,
273,
365,
18,
2293,
67,
803,
982,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
803,
13,
225,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
1293,
12,
2890,
4672,
3536,
2729,
279,
29869,
16,
864,
392,
4967,
589,
12123,
589,
273,
365,
18,
2293,
67,
803,
982,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
803,
13,
225,
4... |
if not tests and not control_file: | if not tests and not client_control_file: | def generate_control_file(tests=(), kernel=None, label=None, profilers=(), client_control_file='', use_container=False): """ Generates a client-side control file to load a kernel and run tests. @param tests List of tests to run. @param kernel Kernel to install in generated control file. @param label Name of label to g... | dd5994f029f1cb0973bb81a1d2a0ebcce2d4e4a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/dd5994f029f1cb0973bb81a1d2a0ebcce2d4e4a8/rpc_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
7098,
67,
768,
12,
16341,
33,
9334,
5536,
33,
7036,
16,
1433,
33,
7036,
16,
450,
7540,
414,
33,
9334,
1004,
67,
7098,
67,
768,
2218,
2187,
999,
67,
3782,
33,
8381,
4672,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
7098,
67,
768,
12,
16341,
33,
9334,
5536,
33,
7036,
16,
1433,
33,
7036,
16,
450,
7540,
414,
33,
9334,
1004,
67,
7098,
67,
768,
2218,
2187,
999,
67,
3782,
33,
8381,
4672,
35... |
def on_darken_background_scale_change_value(self, widget): | def on_darken_background_scale_change_value(self, widget, scroll, value): | def on_darken_background_scale_change_value(self, widget): """Background darkness setting changed""" self.config['background_darkness'] = widget.get_value() self.config.save() | c8954fbdaf45bdc1ce88274f05129c89a6dd8eb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/c8954fbdaf45bdc1ce88274f05129c89a6dd8eb5/prefseditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
25045,
275,
67,
9342,
67,
5864,
67,
3427,
67,
1132,
12,
2890,
16,
3604,
16,
5532,
16,
460,
4672,
3536,
8199,
23433,
4496,
3637,
3550,
8395,
365,
18,
1425,
3292,
9342,
67,
2504... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
67,
25045,
275,
67,
9342,
67,
5864,
67,
3427,
67,
1132,
12,
2890,
16,
3604,
16,
5532,
16,
460,
4672,
3536,
8199,
23433,
4496,
3637,
3550,
8395,
365,
18,
1425,
3292,
9342,
67,
2504... |
res[r.builder][0][r.num - min] = r.iterations res[r.builder][1][r.num - min] = r.nsperop self.response.out.write(str(res)) | res[r.builder][0][r.num - minv] = r.iterations res[r.builder][1][r.num - minv] = r.nsperop minhash = node(minv).node maxhash = node(maxv).node if self.request.get('fmt') == 'json': self.response.headers['Content-Type'] = 'text/plain; charset=utf-8' self.response.out.write('{"min": "%s", "max": "%s", "data": {' % (minh... | def get(self): self.response.headers['Content-Type'] = 'application/json; charset=utf-8' benchmark = self.request.path[12:].decode('hex').encode('base64') | d5b946f43dd9078baac61400559a67557a9dfc53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6483/d5b946f43dd9078baac61400559a67557a9dfc53/gobuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
365,
18,
2740,
18,
2485,
3292,
1350,
17,
559,
3546,
273,
296,
3685,
19,
1977,
31,
4856,
33,
3158,
17,
28,
11,
14128,
273,
365,
18,
2293,
18,
803,
63,
2138,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
365,
18,
2740,
18,
2485,
3292,
1350,
17,
559,
3546,
273,
296,
3685,
19,
1977,
31,
4856,
33,
3158,
17,
28,
11,
14128,
273,
365,
18,
2293,
18,
803,
63,
2138,
30,
... |
str = '\\textbf{Modules}\n' | str = self._start_of('Modules') str += self._section('Modules', 1) | def _module_list(self, modules, sortorder): """ @return: The HTML code for the module hierarchy tree, containing the given modules. This is used by L{_module_to_latex} to list the submodules of a package. @rtype: C{string} """ if len(modules) == 0: return '' str = '\\textbf{Modules}\n' str += '\\begin{itemize}\n' str ... | 718e913e37bd564ee3425ab6734ad7a7748f8a8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/718e913e37bd564ee3425ab6734ad7a7748f8a8a/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
1098,
12,
2890,
16,
4381,
16,
1524,
1019,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
1605,
9360,
2151,
16,
4191,
326,
864,
4381,
18,
225,
1220,
353,
1399,
635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2978,
67,
1098,
12,
2890,
16,
4381,
16,
1524,
1019,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
326,
1605,
9360,
2151,
16,
4191,
326,
864,
4381,
18,
225,
1220,
353,
1399,
635... |
except wikipedia.isRedirectPage: | except wikipedia.IsRedirectPage: | def workon(page): try: text = page.get() except wikipedia.isRedirectPage: return # Here go edit text in whatever way you want. If you find you do not # want to edit this page, just return if text != page.get(): page.put(text) # Adding a summary text would be good | f8c6355ea6c90ed7f5f529c305e425d7c3b5aaed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/f8c6355ea6c90ed7f5f529c305e425d7c3b5aaed/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
265,
12,
2433,
4672,
775,
30,
977,
273,
1363,
18,
588,
1435,
1335,
21137,
18,
2520,
5961,
1964,
30,
327,
468,
13743,
1960,
3874,
977,
316,
15098,
4031,
1846,
2545,
18,
971,
1846,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
265,
12,
2433,
4672,
775,
30,
977,
273,
1363,
18,
588,
1435,
1335,
21137,
18,
2520,
5961,
1964,
30,
327,
468,
13743,
1960,
3874,
977,
316,
15098,
4031,
1846,
2545,
18,
971,
1846,
... |
data = etree.fromstring(data) | try: data = etree.fromstring(data) except etree.XMLSyntaxError: self.oeb.logger.warn('Stripping comments from %s'% self.href) data = re.compile(r'<!--.*?-->', re.DOTALL).sub('', data) data = etree.fromstring(data) | def _parse_xhtml(self, data): self.oeb.log.debug('Parsing', self.href, '...') # Convert to Unicode and normalize line endings data = self.oeb.decode(data) data = self.oeb.html_preprocessor(data) # Try with more & more drastic measures to parse try: data = etree.fromstring(data) except etree.XMLSyntaxError: repl = lambd... | af9e34b6d6aca0e7a2de0f3b508455e0e742953c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/af9e34b6d6aca0e7a2de0f3b508455e0e742953c/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
26341,
12,
2890,
16,
501,
4672,
365,
18,
15548,
70,
18,
1330,
18,
4148,
2668,
13963,
2187,
365,
18,
7547,
16,
20243,
13,
468,
4037,
358,
9633,
471,
3883,
980,
679,
899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
26341,
12,
2890,
16,
501,
4672,
365,
18,
15548,
70,
18,
1330,
18,
4148,
2668,
13963,
2187,
365,
18,
7547,
16,
20243,
13,
468,
4037,
358,
9633,
471,
3883,
980,
679,
899,
... |
None, [cty.c_int], | None, [cty.c_int], | def fl_set_tooltip_color(p1, p2): """ fl_set_tooltip_color(p1, p2) """ _fl_set_tooltip_color(p1, p2) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
19798,
67,
3266,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
19798,
67,
3266,
12,
84,
21,
16,
293,
22,
13,
3536,
225,
389,
2242,
67,
542,
67,
19798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
19798,
67,
3266,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
19798,
67,
3266,
12,
84,
21,
16,
293,
22,
13,
3536,
225,
389,
2242,
67,
542,
67,
19798,
... |
expectedFullMessage = 'None\n%s%s' % (expectedOutMessage, expectedErrMessage) | expectedFullMessage = 'A traceback%s%s' % (expectedOutMessage, expectedErrMessage) | def testBufferOutputAddErrorOrFailure(self): for message_attr, add_attr, include_error in [ ('errors', 'addError', True), ('failures', 'addFailure', False), ('errors', 'addError', True), ('failures', 'addFailure', False) ]: result = self.getStartedResult() buffered_out = sys.stdout buffered_err = sys.stderr result._ori... | 804cb0fab05bab7ddddf9a77fb077bb540bdeabb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/804cb0fab05bab7ddddf9a77fb077bb540bdeabb/test_result.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
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,
1842,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
2... |
err = "WARNING: maximum recursion depth exceeded (input='%s')" % input.encode(self._textEncoding) | err = "WARNING: maximum recursion depth exceeded (input='%s')" % input.encode(self._textEncoding, 'replace') | def _respond(self, input, sessionID): "Private version of respond(), does the real work." if len(input) == 0: return "" | b6f936c082e355668775b0cc69ba36110e530529 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/b6f936c082e355668775b0cc69ba36110e530529/Kernel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
17863,
12,
2890,
16,
810,
16,
13737,
4672,
315,
6014,
1177,
434,
6846,
9334,
1552,
326,
2863,
1440,
1199,
309,
562,
12,
2630,
13,
422,
374,
30,
327,
1408,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
17863,
12,
2890,
16,
810,
16,
13737,
4672,
315,
6014,
1177,
434,
6846,
9334,
1552,
326,
2863,
1440,
1199,
309,
562,
12,
2630,
13,
422,
374,
30,
327,
1408,
2,
-100,
-100,
-100,
-10... |
def _poolJobs(self, db_name, check=False): | def _poolJobs(self, db_name, check=False): | def _poolJobs(self, db_name, check=False): try: db, pool = pooler.get_db_and_pool(db_name) except: return False | 9174672fb432f24bc683fb83a1ffb1c9921a1012 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/9174672fb432f24bc683fb83a1ffb1c9921a1012/ir_cron.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6011,
7276,
12,
2890,
16,
1319,
67,
529,
16,
866,
33,
8381,
4672,
775,
30,
1319,
16,
2845,
273,
2845,
264,
18,
588,
67,
1966,
67,
464,
67,
6011,
12,
1966,
67,
529,
13,
1335,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6011,
7276,
12,
2890,
16,
1319,
67,
529,
16,
866,
33,
8381,
4672,
775,
30,
1319,
16,
2845,
273,
2845,
264,
18,
588,
67,
1966,
67,
464,
67,
6011,
12,
1966,
67,
529,
13,
1335,
3... |
log.warning("JSONField decode error. Expected dictionary, got " "string for input '%s'" % s) | logging.warning("JSONField decode error. Expected dictionary, got " "string for input '%s'" % s) | def loads(self, s): val = simplejson.loads(s, encoding=settings.DEFAULT_CHARSET) | eb7c5a391456ea459e19b6e6665836674bde6f07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6757/eb7c5a391456ea459e19b6e6665836674bde6f07/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6277,
12,
2890,
16,
272,
4672,
1244,
273,
4143,
1977,
18,
17135,
12,
87,
16,
2688,
33,
4272,
18,
5280,
67,
26977,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6277,
12,
2890,
16,
272,
4672,
1244,
273,
4143,
1977,
18,
17135,
12,
87,
16,
2688,
33,
4272,
18,
5280,
67,
26977,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.pathTrigger = Config().get('dir', 'pathFluxd').strip() + 'trigger/' self.fileTrigger = self.pathTrigger + 'trigger.jobs' | self.pathTrigger = Config().get('dir', 'pathFluxd').strip() + 'trigger/' self.fileTrigger = self.pathTrigger + 'trigger.jobs' | def __init__(self, name, *p, **k): | 1bc3f8ee0f5585b25b04dc37e869f107a4a3f4c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2550/1bc3f8ee0f5585b25b04dc37e869f107a4a3f4c1/Trigger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
380,
84,
16,
2826,
79,
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,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
508,
16,
380,
84,
16,
2826,
79,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
stat_style = ' style="font-weight:bold"' | stat_style = ' style="font-weight:bold"' | def tmpl_display_inbox(self, messages, infos=[], warnings=[], nb_messages=0, no_quota=0, ln=cdslang): """ Displays a list of messages, with the appropriate links and buttons @param messages: a list of tuples: [(message_id, user_from_id, user_from_nickname, subject, sent_date, status=] @param infos: a list of informatio... | f4a9e182650614f9c75111360ff7aaa98e5eeb52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f4a9e182650614f9c75111360ff7aaa98e5eeb52/webmessage_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5417,
67,
267,
2147,
12,
2890,
16,
2743,
16,
10626,
22850,
6487,
5599,
22850,
6487,
4264,
67,
6833,
33,
20,
16,
1158,
67,
23205,
33,
20,
16,
7211,
33,
4315,
2069,
539,
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,
10720,
67,
5417,
67,
267,
2147,
12,
2890,
16,
2743,
16,
10626,
22850,
6487,
5599,
22850,
6487,
4264,
67,
6833,
33,
20,
16,
1158,
67,
23205,
33,
20,
16,
7211,
33,
4315,
2069,
539,
4672,... |
if s1.key in self.ways_of_bonding: self.ways_of_bonding[s1.key] += 1 else: self.ways_of_bonding[s1.key] = 1 if s2.key in self.ways_of_bonding: self.ways_of_bonding[s2.key] += 1 else: self.ways_of_bonding[s2.key] = 1 | if s1.key in self.ways_of_bonding: self.ways_of_bonding[s1.key] += 1 else: self.ways_of_bonding[s1.key] = 1 if s2.key in self.ways_of_bonding: self.ways_of_bonding[s2.key] += 1 else: self.ways_of_bonding[s2.key] = 1 | def find_bondable_pairs(self): '''Checks the open bonds of the selected chunk to see if they are close enough to bond with any other open bonds in the part. Hidden chunks are skipped. ''' self.bondable_pairs = [] self.ways_of_bonding = {} # Get center of the selected chunk. self.selected_chunk_ctr = self.selected_chu... | f2621bfb8c8fbaf55c74ea81309b850ca7387098 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f2621bfb8c8fbaf55c74ea81309b850ca7387098/fusechunksMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
26425,
429,
67,
11545,
12,
2890,
4672,
9163,
4081,
326,
1696,
15692,
434,
326,
3170,
2441,
358,
2621,
309,
2898,
854,
1746,
7304,
358,
8427,
598,
1281,
1308,
1696,
15692,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
26425,
429,
67,
11545,
12,
2890,
4672,
9163,
4081,
326,
1696,
15692,
434,
326,
3170,
2441,
358,
2621,
309,
2898,
854,
1746,
7304,
358,
8427,
598,
1281,
1308,
1696,
15692,
316,
... |
dialog.action_area.get_children()[0].set_label(_("Search")) | dialog.action_area.get_children()[0].set_label(_("_Search")) | def on_lyrics_search(self, event): artist = self.songinfo.artist title = self.songinfo.title dialog = gtk.Dialog('Lyrics Search', self.infowindow, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_FIND, gtk.RESPONSE_ACCEPT)) dialog.action_area.get_children()[0].set_lab... | a1409e65098800c571c8d9462682648389074256 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/a1409e65098800c571c8d9462682648389074256/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
715,
1512,
87,
67,
3072,
12,
2890,
16,
871,
4672,
15469,
273,
365,
18,
816,
75,
1376,
18,
25737,
2077,
273,
365,
18,
816,
75,
1376,
18,
2649,
6176,
273,
22718,
18,
6353,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
715,
1512,
87,
67,
3072,
12,
2890,
16,
871,
4672,
15469,
273,
365,
18,
816,
75,
1376,
18,
25737,
2077,
273,
365,
18,
816,
75,
1376,
18,
2649,
6176,
273,
22718,
18,
6353,
266... |
registry.String('Maveric', "Current development release")) | registry.String('Maverick', "Current development release")) | def configure(advanced): from supybot.questions import yn, something, anything, output from supybot.utils.str import format import sqlite import re Encyclopedia = conf.registerPlugin('Encyclopedia', True) enabled = yn("Enable Encyclopedia for all channels?", default=Encyclopedia.enabled._default) if advanced: datadir ... | 46f1113b2da4c4395501f26b130a05a91a716523 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3105/46f1113b2da4c4395501f26b130a05a91a716523/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
27080,
4672,
628,
1169,
93,
4819,
18,
9758,
1930,
677,
82,
16,
5943,
16,
6967,
16,
876,
628,
1169,
93,
4819,
18,
5471,
18,
701,
1930,
740,
1930,
16184,
1930,
283,
1374,
2431,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
27080,
4672,
628,
1169,
93,
4819,
18,
9758,
1930,
677,
82,
16,
5943,
16,
6967,
16,
876,
628,
1169,
93,
4819,
18,
5471,
18,
701,
1930,
740,
1930,
16184,
1930,
283,
1374,
2431,... |
qw = max(1, self.index.query_weight(text)) factor = 100.0 / qw / 1024 | qw = self.index.query_weight(text) | def formatresults(self, text, results, maxlines=MAXLINES, lo=0, hi=sys.maxint): stop = self.stopdict.has_key words = [w for w in re.findall(r"\w+\*?", text.lower()) if not stop(w)] pattern = r"\b(" + "|".join(words) + r")\b" pattern = pattern.replace("*", ".*") # glob -> re syntax prog = re.compile(pattern, re.IGNORECA... | eb784ec34a945530a320a2b434a8c422fe90aa7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/eb784ec34a945530a320a2b434a8c422fe90aa7f/mhindex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
4717,
12,
2890,
16,
977,
16,
1686,
16,
943,
3548,
33,
6694,
5997,
55,
16,
437,
33,
20,
16,
10118,
33,
9499,
18,
1896,
474,
4672,
2132,
273,
365,
18,
5681,
1576,
18,
5332,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
4717,
12,
2890,
16,
977,
16,
1686,
16,
943,
3548,
33,
6694,
5997,
55,
16,
437,
33,
20,
16,
10118,
33,
9499,
18,
1896,
474,
4672,
2132,
273,
365,
18,
5681,
1576,
18,
5332,
67,
... |
w['condition'].set_markup("<i>%s</i>" % self._conditions[item['cond']]) | if str(item['cond']) in [ str(i) for i in range(len(self._conditions)) ]: w['condition'].set_markup("<i>%s</i>" % self._conditions[item['cond']]) else: w['condition'].set_text('') self.debug.show("Wrong value in 'condition' field (movie_id=%s, cond=%s)" % (item['movie_id'], item['cond'])) | def set_details(self, item=None):#{{{ from loan import get_loan_info, get_loan_history if item is None: item = {} if item.has_key('movie_id') and item['movie_id']: self._movie_id = item['movie_id'] else: self._movie_id = None w = self.widgets['movie'] if item.has_key('number') and item['number']: w['number'].set_text(... | 09bf804fd06a71bff5e39e0f22692ba391d6bfc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2687/09bf804fd06a71bff5e39e0f22692ba391d6bfc6/main_treeview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6395,
12,
2890,
16,
761,
33,
7036,
4672,
3642,
12187,
628,
28183,
1930,
336,
67,
383,
304,
67,
1376,
16,
336,
67,
383,
304,
67,
8189,
309,
761,
353,
599,
30,
761,
273,
2618,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6395,
12,
2890,
16,
761,
33,
7036,
4672,
3642,
12187,
628,
28183,
1930,
336,
67,
383,
304,
67,
1376,
16,
336,
67,
383,
304,
67,
8189,
309,
761,
353,
599,
30,
761,
273,
2618,... |
subscribers = dict([(key, set([interp(value)])) for key, value in self.events.items()]) | subscribers = dict() for event, subscriber in self.events.items(): if not event in subscribers: subscribers[event] = set() subscribers[event].add(subscriber) | def run(self): | 52dcf638f6ef2886b9f82cc8816d66ed0e0531ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12796/52dcf638f6ef2886b9f82cc8816d66ed0e0531ae/tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.show_variables() | self.show_variables() | def add_watch(self, name, local): self.watches.add_watch(name, local) self.nbBottom.SetSelection(0) self.show_variables() | 872f754eafee36b7b9b20954604570707e5cd36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/872f754eafee36b7b9b20954604570707e5cd36c/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7585,
12,
2890,
16,
508,
16,
1191,
4672,
365,
18,
7585,
281,
18,
1289,
67,
7585,
12,
529,
16,
1191,
13,
365,
18,
6423,
10393,
18,
694,
6233,
12,
20,
13,
365,
18,
4500,
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,
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,
67,
7585,
12,
2890,
16,
508,
16,
1191,
4672,
365,
18,
7585,
281,
18,
1289,
67,
7585,
12,
529,
16,
1191,
13,
365,
18,
6423,
10393,
18,
694,
6233,
12,
20,
13,
365,
18,
4500,
67,... |
raise Sorry(("Anomalous map coefficients ('%s') requested, but input "+ "data are not anomalous.") % map_coeffs.map_type) | raise Sorry(("Anomalous map type ('%s') requested, but input "+ "data are not anomalous.") % map.map_type) | def run(args, log = sys.stdout): print >> log, legend print >> log, "-"*79 if(len(args) == 0): parameter_file_name = "maps.params" print >> log, "Creating parameter file '%s' in the following directory:\n%s"%( parameter_file_name, os.path.abspath('.')) if(os.path.isfile(parameter_file_name)): msg="File '%s' exists alre... | ed797edc31c99c9d9f7673158c55b641d22f4116 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/ed797edc31c99c9d9f7673158c55b641d22f4116/maps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1968,
16,
613,
273,
2589,
18,
10283,
4672,
1172,
1671,
613,
16,
7241,
1172,
1671,
613,
16,
7514,
14,
7235,
309,
12,
1897,
12,
1968,
13,
422,
374,
4672,
1569,
67,
768,
67,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1968,
16,
613,
273,
2589,
18,
10283,
4672,
1172,
1671,
613,
16,
7241,
1172,
1671,
613,
16,
7514,
14,
7235,
309,
12,
1897,
12,
1968,
13,
422,
374,
4672,
1569,
67,
768,
67,
5... |
next += 'Next ' + str(self.max_per_page) if page < self.flickr.TOTAL_PAGES: self.addDir(next + ' photos ->',url,mode,os.path.join(IMAGES_PATH,'next.png'),page=str(page+1),userid=kwargs.get('userid','')) | next += __language__(30512)+' ' + str(self.max_per_page) if page < self.flickr.TOTAL_PAGES: self.addDir(next + ' '+__language__(30514)+' ->',url,mode,os.path.join(IMAGES_PATH,'next.png'),page=str(page+1),userid=kwargs.get('userid','')) | def addPhotos(self,method,mode,url='BLANK',page='1',mapOption=True,**kwargs): page = int(page) #Add Previous Header if necessary if page > 1: if page == 2: self.addDir('<- Previous ' + str(self.max_per_page) + ' photos',url,mode,os.path.join(IMAGES_PATH,'previous.png'),page='-1',userid=kwargs.get('userid','')) else: s... | a3305f1cd1ae2e5ede9780e451b285854021a8f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9429/a3305f1cd1ae2e5ede9780e451b285854021a8f5/default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3731,
12440,
12,
2890,
16,
2039,
16,
3188,
16,
718,
2218,
38,
24307,
2187,
2433,
2218,
21,
2187,
1458,
1895,
33,
5510,
16,
636,
4333,
4672,
1363,
273,
509,
12,
2433,
13,
225,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3731,
12440,
12,
2890,
16,
2039,
16,
3188,
16,
718,
2218,
38,
24307,
2187,
2433,
2218,
21,
2187,
1458,
1895,
33,
5510,
16,
636,
4333,
4672,
1363,
273,
509,
12,
2433,
13,
225,
468,... |
sage: E.padic_height_pairing_matrix(5, 10) | def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group. | d3a85cde5bd869ed67966c8af12c72f47350d84f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/d3a85cde5bd869ed67966c8af12c72f47350d84f/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... | |
"name" : tr_lang(transproj.language.fullname) +" "+tr_lang(transproj.project.fullname), | "name" : _('"%(project)s" in %(language)s', details), | def transproj_notices(request, language_code, project_code): can_add = False can_view = False transproj = TranslationProject.objects.get(real_path = project_code + "/" + language_code) if 'view' in get_matching_permissions(get_profile(request.user), transproj.directory): can_view = True if request.user.is_authenticate... | 3364c8bd093f0a053689033c82d071d0242abde0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/3364c8bd093f0a053689033c82d071d0242abde0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
906,
17995,
67,
902,
1242,
12,
2293,
16,
2653,
67,
710,
16,
1984,
67,
710,
4672,
225,
848,
67,
1289,
273,
1083,
848,
67,
1945,
273,
1083,
906,
17995,
273,
17427,
4109,
18,
6911,
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,
906,
17995,
67,
902,
1242,
12,
2293,
16,
2653,
67,
710,
16,
1984,
67,
710,
4672,
225,
848,
67,
1289,
273,
1083,
848,
67,
1945,
273,
1083,
906,
17995,
273,
17427,
4109,
18,
6911,
18,
... |
Returns a list keyed by parameter location of all the values by that key in that parameter location | Returns a list keyed by parameter location of all the values by that key in that parameter location | def params(): doc = textwrap.dedent("""\ MultiDict of keys from POST, GET, URL dicts | 314228f7a3afa0fe6c1e4bba47a296bf3ad1a4bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/314228f7a3afa0fe6c1e4bba47a296bf3ad1a4bd/request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
859,
13332,
997,
273,
30271,
18,
785,
319,
2932,
3660,
64,
5991,
5014,
434,
1311,
628,
5485,
16,
4978,
16,
1976,
15838,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
859,
13332,
997,
273,
30271,
18,
785,
319,
2932,
3660,
64,
5991,
5014,
434,
1311,
628,
5485,
16,
4978,
16,
1976,
15838,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return self.__disk.delete_partition(partition.getPedPartition()) | if self.__disk.delete_partition(partition.getPedPartition()): self._refreshPartitions = True return True else: return False | def deletePartition(self, partition): """Removes specified Partition from this Disk under the same conditions as removePartition(), but also destroy the removed Partition.""" return self.__disk.delete_partition(partition.getPedPartition()) | 6c5023786f21173a96a177fedf7b1e979538307b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/6c5023786f21173a96a177fedf7b1e979538307b/disk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
7003,
12,
2890,
16,
3590,
4672,
3536,
6220,
1269,
12598,
628,
333,
12951,
3613,
326,
1967,
4636,
487,
1206,
7003,
9334,
1496,
2546,
5546,
326,
3723,
12598,
12123,
327,
365,
16186,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
7003,
12,
2890,
16,
3590,
4672,
3536,
6220,
1269,
12598,
628,
333,
12951,
3613,
326,
1967,
4636,
487,
1206,
7003,
9334,
1496,
2546,
5546,
326,
3723,
12598,
12123,
327,
365,
16186,
10... |
self.peerStatus = _("%d seen now") % statistics['numPeers'] if not self.errors: print _("Log: none") | self.peerStatus = _("%d") % statistics['numPeers'] | def display(self, statistics): fractionDone = statistics.get('fractionDone') activity = statistics.get('activity') timeEst = statistics.get('timeEst') downRate = statistics.get('downRate') upRate = statistics.get('upRate') spew = statistics.get('spew') | 20742370d1a08cc5f982b88b4e2dc8a71de7ebf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2550/20742370d1a08cc5f982b88b4e2dc8a71de7ebf0/tfmainline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
7691,
4672,
8330,
7387,
273,
7691,
18,
588,
2668,
16744,
7387,
6134,
5728,
273,
7691,
18,
588,
2668,
9653,
6134,
813,
9122,
273,
7691,
18,
588,
2668,
957,
9122,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
7691,
4672,
8330,
7387,
273,
7691,
18,
588,
2668,
16744,
7387,
6134,
5728,
273,
7691,
18,
588,
2668,
9653,
6134,
813,
9122,
273,
7691,
18,
588,
2668,
957,
9122,
6134,... |
raise TypeError | raise TypeError("cannot determine field from %s!" % other) | def coerce_field(self, other): """ Return the number type that contains both `self.field()` and `other`. | ec32553b7b00a5ff90111c3c1c654046e3a1e835 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/ec32553b7b00a5ff90111c3c1c654046e3a1e835/polyhedra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12270,
67,
1518,
12,
2890,
16,
1308,
4672,
3536,
2000,
326,
1300,
618,
716,
1914,
3937,
1375,
2890,
18,
1518,
20338,
471,
1375,
3011,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
12270,
67,
1518,
12,
2890,
16,
1308,
4672,
3536,
2000,
326,
1300,
618,
716,
1914,
3937,
1375,
2890,
18,
1518,
20338,
471,
1375,
3011,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
""" subclass should call this as soon as it has located its spec data """ | """subclass should call this as soon as it has located its spec data""" | def initializeLevel(self, levelId, levelSpec, scenarioIndex): """ subclass should call this as soon as it has located its spec data """ self.levelId = levelId self.levelSpec = levelSpec self.scenarioIndex = scenarioIndex | 5642bbee4459a58077015fb639004a95f5e4ec2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/5642bbee4459a58077015fb639004a95f5e4ec2e/Level.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
2355,
12,
2890,
16,
1801,
548,
16,
1801,
1990,
16,
10766,
1016,
4672,
3536,
10678,
1410,
745,
333,
487,
17136,
487,
518,
711,
13801,
2097,
857,
501,
8395,
365,
18,
2815,
548,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
2355,
12,
2890,
16,
1801,
548,
16,
1801,
1990,
16,
10766,
1016,
4672,
3536,
10678,
1410,
745,
333,
487,
17136,
487,
518,
711,
13801,
2097,
857,
501,
8395,
365,
18,
2815,
548,
273,
... |
if getattr(datatype, 'mandatory', False): | if is_mandatory: | def build_namespace(self, resource, context): """This utility method builds a namespace suitable to use to produce an HTML form. Its input data is a dictionnary that defines the form variables to consider: | 52375d4189af8cf288a07a69f93f5de0e04a0cd6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/52375d4189af8cf288a07a69f93f5de0e04a0cd6/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
4937,
12,
2890,
16,
1058,
16,
819,
4672,
3536,
2503,
12788,
707,
10736,
279,
1981,
10631,
358,
999,
358,
11402,
392,
3982,
646,
18,
29517,
810,
501,
353,
279,
302,
2228,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
4937,
12,
2890,
16,
1058,
16,
819,
4672,
3536,
2503,
12788,
707,
10736,
279,
1981,
10631,
358,
999,
358,
11402,
392,
3982,
646,
18,
29517,
810,
501,
353,
279,
302,
2228,
82,
... |
>>> badRequest1 = RequestPasswordReset(u'foo@bar') | >>> badRequest1 = RequestPasswordReset('foo@bar') | ... def __init__(self, email): | 8f458dcf19119f271c2cde0c87dacd12a12a146f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6273/8f458dcf19119f271c2cde0c87dacd12a12a146f/test_emailEntry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
2738,
972,
12,
2890,
16,
2699,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
2738,
972,
12,
2890,
16,
2699,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
except ImportError: | import ctypes lib_name = find_readline_lib() if lib_name is not None: lib = ctypes.cdll.LoadLibrary(lib_name) global rl_completion_suppress_append rl_completion_suppress_append = ctypes.c_int.in_dll(lib, "rl_completion_suppress_append") except Exception: | def __init__(self, envdir=None): cmd.Cmd.__init__(self) try: import readline delims = readline.get_completer_delims() for c in '-/:': delims = delims.replace(c, '') readline.set_completer_delims(delims) except ImportError: pass self.interactive = False if envdir: self.env_set(os.path.abspath(envdir)) | 4bdaa2a7093e15317e70aed0181266eed93e17a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2831/4bdaa2a7093e15317e70aed0181266eed93e17a4/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1550,
1214,
33,
7036,
4672,
1797,
18,
5931,
16186,
2738,
972,
12,
2890,
13,
775,
30,
1930,
12023,
10508,
87,
273,
12023,
18,
588,
67,
832,
17754,
67,
377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1550,
1214,
33,
7036,
4672,
1797,
18,
5931,
16186,
2738,
972,
12,
2890,
13,
775,
30,
1930,
12023,
10508,
87,
273,
12023,
18,
588,
67,
832,
17754,
67,
377... |
match = _passwdprog.match(user) | match = _passwdprog.match(user) | def splitpasswd(user): global _passwdprog if _passwdprog is None: import re _passwdprog = re.compile('^([^:]*):(.*)$') match = _passwdprog.match(user) if match: return match.group(1, 2) return user, None | 5cef536ace5c35cbe83aa00d5e5361f4d8e54352 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5cef536ace5c35cbe83aa00d5e5361f4d8e54352/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
24002,
12,
1355,
4672,
2552,
389,
24002,
14654,
309,
389,
24002,
14654,
353,
599,
30,
1930,
283,
389,
24002,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
30,
5772,
4672,
14361,
8,
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,
1416,
24002,
12,
1355,
4672,
2552,
389,
24002,
14654,
309,
389,
24002,
14654,
353,
599,
30,
1930,
283,
389,
24002,
14654,
273,
283,
18,
11100,
2668,
66,
8178,
30,
5772,
4672,
14361,
8,
6... |
self.assert_(max_a_gpu == max_a) | assert max_a_gpu == max_a | def test_max(self): from pycuda.curandom import rand as curand from pycuda.reduction import get_max_kernel | b961de6e4d12b33f3e3e7a683eded03d8757a940 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12870/b961de6e4d12b33f3e3e7a683eded03d8757a940/test_gpuarray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1896,
12,
2890,
4672,
628,
2395,
71,
13177,
18,
1397,
2111,
1930,
5605,
487,
662,
464,
628,
2395,
71,
13177,
18,
1118,
4062,
1930,
336,
67,
1896,
67,
8111,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1896,
12,
2890,
4672,
628,
2395,
71,
13177,
18,
1397,
2111,
1930,
5605,
487,
662,
464,
628,
2395,
71,
13177,
18,
1118,
4062,
1930,
336,
67,
1896,
67,
8111,
2,
-100,
-100,
-10... |
self.editmodel.hasretencion=True | def on_ckretencion_toggled( self, on ): """ """ if not self.editmodel is None: self.editmodel.hasretencion=True if on : self.retencionwidget.setCurrentIndex(1) else: self.retencionwidget.setCurrentIndex(0) #self.cboretencion. | f38d7ad9828a00d9b509f69765dcdb30f4071109 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11009/f38d7ad9828a00d9b509f69765dcdb30f4071109/cheques.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
363,
1349,
1331,
285,
67,
88,
23972,
1259,
12,
365,
16,
603,
262,
30,
3536,
3536,
309,
486,
365,
18,
4619,
2284,
353,
599,
30,
225,
309,
603,
294,
365,
18,
1349,
1331,
285,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
363,
1349,
1331,
285,
67,
88,
23972,
1259,
12,
365,
16,
603,
262,
30,
3536,
3536,
309,
486,
365,
18,
4619,
2284,
353,
599,
30,
225,
309,
603,
294,
365,
18,
1349,
1331,
285,
... | |
colls_nicely_ordered = get_nicely_ordered_collection_list() | colls_nicely_ordered = get_nicely_ordered_collection_list(ln=ln) | def create_search_box(cc, colls, p, f, rg, sf, so, sp, rm, of, ot, as, ln, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, pl, d1y, d1m, d1d, d2y, d2m, d2d, jrec, ec, action=""): "Create search box for 'search again in the results page' functionality." # load the right message language _ = gettext_set_language(ln) ... | 52e97757d0b9b7898bdc5d9d4e74647b1dbff5ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/52e97757d0b9b7898bdc5d9d4e74647b1dbff5ca/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3072,
67,
2147,
12,
952,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
16,
9033,
16,
1427,
16,
1694,
16,
6692,
16,
434,
16,
15835,
16,
487,
16,
7211,
16,
293,
21,
16,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3072,
67,
2147,
12,
952,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
16,
9033,
16,
1427,
16,
1694,
16,
6692,
16,
434,
16,
15835,
16,
487,
16,
7211,
16,
293,
21,
16,
284,
... |
print "%s" % tuple(ap.rate[line * 5 + rate_remainder - 1:]) | sys.stdout.write(ap.rate[line * 5 + rate_remainder - 1]) print | def print_scanning_results(wifi): try: results = wifi.scan() except IOError, (errno, strerror): print "%s" % (strerror, ) sys.exit(0) (num_channels, frequencies) = wifi.getChannelInfo() index = 1 for ap in results: print " Cell %02d - Address: %s" % (index, ap.bssid) print " ESSID:\"%s\"" %... | e6bea8a8b8a981b17d52677a8edf233dff4c3a77 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/e6bea8a8b8a981b17d52677a8edf233dff4c3a77/pyiwlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1017,
10903,
67,
4717,
12,
91,
704,
4672,
775,
30,
1686,
273,
341,
704,
18,
9871,
1435,
1335,
8340,
16,
261,
19088,
16,
609,
1636,
4672,
1172,
2213,
87,
6,
738,
261,
701,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1017,
10903,
67,
4717,
12,
91,
704,
4672,
775,
30,
1686,
273,
341,
704,
18,
9871,
1435,
1335,
8340,
16,
261,
19088,
16,
609,
1636,
4672,
1172,
2213,
87,
6,
738,
261,
701,
1... |
if mtime < os.path.getmtime (filename): | if os.path.exists (filename) and mtime < os.path.getmtime (filename): | def write (self, filename): | 04b5d6c23d0819c33f4f0af5c7664d151c661ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4747/04b5d6c23d0819c33f4f0af5c7664d151c661ba5/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
261,
2890,
16,
1544,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
261,
2890,
16,
1544,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
target[key] = source[key] | target[key] = source[key] | def mergeEntry(target, source): for key in source: if not target.has_key(key): target[key] = source[key] | e3364bd2416dfe75fd85aeea0ded427372ef3d08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/e3364bd2416dfe75fd85aeea0ded427372ef3d08/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
1622,
12,
3299,
16,
1084,
4672,
364,
498,
316,
1084,
30,
309,
486,
1018,
18,
5332,
67,
856,
12,
856,
4672,
1018,
63,
856,
65,
273,
1084,
63,
856,
65,
282,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
1622,
12,
3299,
16,
1084,
4672,
364,
498,
316,
1084,
30,
309,
486,
1018,
18,
5332,
67,
856,
12,
856,
4672,
1018,
63,
856,
65,
273,
1084,
63,
856,
65,
282,
2,
-100,
-100,
-100,
... |
testPath = os.path.join("twisted", 'test') testFiles = ['server.pem', 'template.tpl'] | loreTestPath = os.path.join('twisted', 'lore', 'test') loreTestFiles = ['template.tpl'] webTestPath = os.path.join('twisted', 'web', 'test') webTestFiles = ['server.pem'] | def _detect_modules(self): """ Determine which extension modules we should build on this system. """ | 23c7ff5d98540aacf22ef4457fecfa52fff787c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/23c7ff5d98540aacf22ef4457fecfa52fff787c1/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16518,
67,
6400,
12,
2890,
4672,
3536,
10229,
1492,
2710,
4381,
732,
1410,
1361,
603,
333,
2619,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16518,
67,
6400,
12,
2890,
4672,
3536,
10229,
1492,
2710,
4381,
732,
1410,
1361,
603,
333,
2619,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"Repository format version mismatch, expected version 0x%08x, but got 0x%08x" | __doc__ = "Repository format version mismatch, expected version 0x%08x, but got 0x%08x" | def __str__(self): return self.__doc__ %(self.args[0], self.args[1]) | 43ec45bd1519334fa54f35ea0dc700ba1d97d890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/43ec45bd1519334fa54f35ea0dc700ba1d97d890/RepositoryError.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
365,
16186,
2434,
972,
8975,
2890,
18,
1968,
63,
20,
6487,
365,
18,
1968,
63,
21,
5717,
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,
701,
972,
12,
2890,
4672,
327,
365,
16186,
2434,
972,
8975,
2890,
18,
1968,
63,
20,
6487,
365,
18,
1968,
63,
21,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) | return eval(maxima.eval("jacobi_sn(%s,%s)"%(float(x),float(m)))) | def jacobi(sym,x,m): r""" Here sym = "pq", where p,q in {c,d,n,s}. This returns the value of the Jacobi function pq(x,m), as described in the documentation for SAGE's "special" module. There are a total of 12 functions described by this. EXAMPLES: sage: jacobi("sn",1,1) 0.76159415595576485 sage: jacobi("cd",1,1/2) 0.7... | 9a0ab89f387827fef6f9118a65362ee1e0032bd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/9a0ab89f387827fef6f9118a65362ee1e0032bd5/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
4... |
if self._winamp.getRunning() == False: self.launchBackground() | self.launchBackground() self._logger.info("Adding \'"+filepath+"\' to playlist.") | def addTrack(self, filepath): if self._winamp.getRunning() == False: self.launchBackground() self._winamp.enqueue(filepath) | da886acbcc9c38f3930b9097dec2ddde85a2a568 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/da886acbcc9c38f3930b9097dec2ddde85a2a568/WinampWindows.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4402,
12,
2890,
16,
3608,
4672,
365,
18,
20738,
8199,
1435,
365,
6315,
4901,
18,
1376,
2932,
13962,
521,
4970,
15,
10561,
9078,
3730,
358,
16428,
1199,
13,
365,
6315,
8082,
931,
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,
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,
4402,
12,
2890,
16,
3608,
4672,
365,
18,
20738,
8199,
1435,
365,
6315,
4901,
18,
1376,
2932,
13962,
521,
4970,
15,
10561,
9078,
3730,
358,
16428,
1199,
13,
365,
6315,
8082,
931,
18,... |
self.log = logging.getLogger() | self.log = logging.getLogger( '%s.%s' % (__name__, self.__class__.__name__)) self.workingbranch_dir = os.path.abspath( os.path.join(os.path.dirname(__file__), '..')) self.build_dir = os.path.join(self.workingbranch_dir, 'build') if not os.path.isdir(self.build_dir): self.log.debug('Creating build dir: %s' % (self.b... | def __init__(self, buildversion, log=None): self.buildversion = buildversion if log is not None: self.log = log else: self.log = logging.getLogger() | 4f4741d8826978150a3c1338624b357d26b9d480 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3694/4f4741d8826978150a3c1338624b357d26b9d480/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
1589,
16,
613,
33,
7036,
4672,
365,
18,
3510,
1589,
273,
1361,
1589,
309,
613,
353,
486,
599,
30,
365,
18,
1330,
273,
613,
469,
30,
365,
18,
1330... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
1589,
16,
613,
33,
7036,
4672,
365,
18,
3510,
1589,
273,
1361,
1589,
309,
613,
353,
486,
599,
30,
365,
18,
1330,
273,
613,
469,
30,
365,
18,
1330... |
def write(s): | def write(self, s): | def write(s): pass | f25386ba8df1750e2b1a62d8ee8d933cd0930202 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f25386ba8df1750e2b1a62d8ee8d933cd0930202/ShellEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
272,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
272,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
gX[i] = self.mag[i]*self.signlogsig(glX[i])''' | gX[i] = self.mag[i]*self.signlogsig(glX[i]) | def newEKF(self, glX): gX = glX '''for i in range(len(glX)): if(self.signed[i] > 0): | 34d4f09b039e70487059f0c0f57fcf51fdda7ac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14739/34d4f09b039e70487059f0c0f57fcf51fdda7ac3/cwru_ekf_kalibrater_thrun2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
11325,
42,
12,
2890,
16,
5118,
60,
4672,
314,
60,
273,
5118,
60,
9163,
1884,
277,
316,
1048,
12,
1897,
12,
7043,
60,
3719,
30,
309,
12,
2890,
18,
5679,
63,
77,
65,
405,
374,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
394,
11325,
42,
12,
2890,
16,
5118,
60,
4672,
314,
60,
273,
5118,
60,
9163,
1884,
277,
316,
1048,
12,
1897,
12,
7043,
60,
3719,
30,
309,
12,
2890,
18,
5679,
63,
77,
65,
405,
374,
4... |
def my_list2_clear(bt, li, *args, **kwargs): | def my_list2_clear(bt, li): | def my_list2_clear(bt, li, *args, **kwargs): li.clear() | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
1098,
22,
67,
8507,
12,
23602,
16,
4501,
4672,
4501,
18,
8507,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
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,
3399,
67,
1098,
22,
67,
8507,
12,
23602,
16,
4501,
4672,
4501,
18,
8507,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
c= time.strptime(record.date_to,'%Y-%m-%d %H:%M:%S').tm_mday d= time.strptime(record.date_from,'%Y-%m-%d %H:%M:%S').tm_mday vals['duration']= (c-d) * 8 | epoch_c = time.mktime(time.strptime(record.date_to,'%Y-%m-%d %H:%M:%S')) epoch_d = time.mktime(time.strptime(record.date_from,'%Y-%m-%d %H:%M:%S')) diff_day = (epoch_c - epoch_d)/(3600*24) vals['duration']= (diff_day) * 8 | def check_holidays(self,cr,uid,ids): | b627bb2865e0fea455aa9adedc4fdb776787d9ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/b627bb2865e0fea455aa9adedc4fdb776787d9ba/hr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
76,
22999,
12,
2890,
16,
3353,
16,
1911,
16,
2232,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
76,
22999,
12,
2890,
16,
3353,
16,
1911,
16,
2232,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if self.page_title() == self.portal_title(): return u"<title>%s</title>" % ( escape(safe_unicode(self.portal_title()))) | portal_title = safe_unicode(self.portal_title()) page_title = safe_unicode(self.page_title()) if page_title == portal_title: return u"<title>%s</title>" % (escape(portal_title)) | def render(self): if self.page_title() == self.portal_title(): return u"<title>%s</title>" % ( escape(safe_unicode(self.portal_title()))) else: return u"<title>%s — %s</title>" % ( escape(safe_unicode(self.page_title())), escape(safe_unicode(self.portal_title()))) | 6eedac445f589988fe58bb007b34f9bdab05c597 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12185/6eedac445f589988fe58bb007b34f9bdab05c597/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
11899,
67,
2649,
273,
4183,
67,
9124,
12,
2890,
18,
24386,
67,
2649,
10756,
1363,
67,
2649,
273,
4183,
67,
9124,
12,
2890,
18,
2433,
67,
2649,
10756,
309,
1363,
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,
1743,
12,
2890,
4672,
11899,
67,
2649,
273,
4183,
67,
9124,
12,
2890,
18,
24386,
67,
2649,
10756,
1363,
67,
2649,
273,
4183,
67,
9124,
12,
2890,
18,
2433,
67,
2649,
10756,
309,
1363,
6... |
extra += ' <td class="admintd">%s</td>\n' % (row, ) | extra += ' <td class="%s">%s</td>\n' % (align[0], firstrow) | def tupletotable(header=[], tuple=[], start='', end='', extracolumn=''): """create html table for a tuple. header - optional header for the columns tuple - create table of this start - text to be added in the beginning, most likely beginning of a form end - text to be added in the end, mot likely end of a form. ex... | d5c421bd0fb517578e6a485b6cc1f60455de2c85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/d5c421bd0fb517578e6a485b6cc1f60455de2c85/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28325,
1469,
352,
429,
12,
3374,
22850,
6487,
3193,
22850,
6487,
787,
2218,
2187,
679,
2218,
2187,
7582,
1077,
355,
755,
2218,
11,
4672,
3536,
2640,
1729,
1014,
364,
279,
3193,
18,
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,
28325,
1469,
352,
429,
12,
3374,
22850,
6487,
3193,
22850,
6487,
787,
2218,
2187,
679,
2218,
2187,
7582,
1077,
355,
755,
2218,
11,
4672,
3536,
2640,
1729,
1014,
364,
279,
3193,
18,
225,
... |
return filter(lambda arg: not arg.haschild('RibValue'), argList) | return filter(lambda arg: not arg.findall('RibValue'), argList) | def ribArgs(argList): return filter(lambda arg: not arg.haschild('RibValue'), argList) | 955727445029de8de2b01125125b85498dbc2345 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11560/955727445029de8de2b01125125b85498dbc2345/codegenutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
495,
2615,
12,
3175,
682,
4672,
327,
1034,
12,
14661,
1501,
30,
486,
1501,
18,
4720,
454,
2668,
54,
495,
620,
19899,
1501,
682,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
495,
2615,
12,
3175,
682,
4672,
327,
1034,
12,
14661,
1501,
30,
486,
1501,
18,
4720,
454,
2668,
54,
495,
620,
19899,
1501,
682,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
- ``deprecated`` - If the option being renamed is deprecated, this is the Sage version where the deprecation initially occurs. - the rest of the arguments is a list of keyword arguments in the form ``renamed_option='existing_option'``. This will have the effect of renaming ``renamed_option`` so that the function only s... | - ``deprecated`` - If the option being renamed is deprecated, this is the Sage version where the deprecation initially occurs. - the rest of the arguments is a list of keyword arguments in the form ``renamed_option='existing_option'``. This will have the effect of renaming ``renamed_option`` so that the function only... | def __init__(self, deprecated=None, **renames): """ A decorator which renames keyword arguments and optionally deprecates the new keyword. INPUT: - ``deprecated`` - If the option being renamed is deprecated, this is the Sage version where the deprecation initially occurs. - the rest of the arguments is a list of keyw... | 6c16e91b11295f93fc8dd582603df7ad9451da5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/6c16e91b11295f93fc8dd582603df7ad9451da5f/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6849,
33,
7036,
16,
2826,
1187,
753,
4672,
3536,
432,
7367,
1492,
1654,
753,
4932,
1775,
471,
8771,
443,
4036,
815,
326,
394,
4932,
18,
225,
12943,
30,
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,
1001,
2738,
972,
12,
2890,
16,
6849,
33,
7036,
16,
2826,
1187,
753,
4672,
3536,
432,
7367,
1492,
1654,
753,
4932,
1775,
471,
8771,
443,
4036,
815,
326,
394,
4932,
18,
225,
12943,
30,
2... |
log( 'Changing channel | log( 'Changing channel | def on_itemEditChannel_activate(self, widget, *args): if self.active_channel == None: title = _('No channel selected') message = _('Please select a channel in the channels list to edit.') self.show_message( message, title) return gpc = Gpodderchannel( gpodderwindow = self.gPodder) result = gpc.edit_channel( self.activ... | 23cb5ce36adee0e52eb33fd99c9c1ead88cee6aa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12778/23cb5ce36adee0e52eb33fd99c9c1ead88cee6aa/gpodder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1726,
4666,
2909,
67,
10014,
12,
2890,
16,
3604,
16,
380,
1968,
4672,
309,
365,
18,
3535,
67,
4327,
422,
599,
30,
2077,
273,
389,
2668,
2279,
1904,
3170,
6134,
883,
273,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1726,
4666,
2909,
67,
10014,
12,
2890,
16,
3604,
16,
380,
1968,
4672,
309,
365,
18,
3535,
67,
4327,
422,
599,
30,
2077,
273,
389,
2668,
2279,
1904,
3170,
6134,
883,
273,
389,
... |
WglFunction(Void, "glGetProgramivARB", [(GLenum, "target"), (GLenum, "pname"), (Pointer(GLint), "params")]), WglFunction(Void, "glGetVertexAttribdv", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLdouble), "params")]), WglFunction(Void, "glGetVertexAttribdvARB", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLdoub... | WglFunction(Void, "glGetProgramivARB", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLint), "params")]), WglFunction(Void, "glGetVertexAttribdv", [(GLuint, "index"), (GLenum, "pname"), (OutPointer(GLdouble), "params")]), WglFunction(Void, "glGetVertexAttribdvARB", [(GLuint, "index"), (GLenum, "pname"), (OutPoint... | def get_true_pointer(self): ptype = self.pointer_type() pvalue = self.pointer_value() print ' if(!%s)' % (pvalue,) self.fail_impl() | 82b589b74a04ee43b7da197fd9dfa17e60ee6ca5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12828/82b589b74a04ee43b7da197fd9dfa17e60ee6ca5/opengl32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3767,
67,
10437,
12,
2890,
4672,
24203,
273,
365,
18,
10437,
67,
723,
1435,
293,
1132,
273,
365,
18,
10437,
67,
1132,
1435,
1172,
296,
565,
309,
12,
5,
9,
87,
2506,
738,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
3767,
67,
10437,
12,
2890,
4672,
24203,
273,
365,
18,
10437,
67,
723,
1435,
293,
1132,
273,
365,
18,
10437,
67,
1132,
1435,
1172,
296,
565,
309,
12,
5,
9,
87,
2506,
738,
261... |
u = unicode(self.photo.title) | u = unicode(self._photo.title) | def GetTitle(self): """ Returns the title of the slide. """ u = unicode(self.photo.title) return u.encode("utf8", "replace") | 8b145ec3886f2560fe340a405ee784ce2a6775ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4583/8b145ec3886f2560fe340a405ee784ce2a6775ae/slideshowmodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4247,
12,
2890,
4672,
3536,
2860,
326,
2077,
434,
326,
12701,
18,
3536,
582,
273,
5252,
12,
2890,
6315,
17232,
18,
2649,
13,
327,
582,
18,
3015,
2932,
3158,
28,
3113,
315,
2079,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
968,
4247,
12,
2890,
4672,
3536,
2860,
326,
2077,
434,
326,
12701,
18,
3536,
582,
273,
5252,
12,
2890,
6315,
17232,
18,
2649,
13,
327,
582,
18,
3015,
2932,
3158,
28,
3113,
315,
2079,
7... |
host = hosts.create_host(hostname, user, port, | host = hosts.create_host(hostname, user=user, port=port, | def install(machine): hostname, user, passwd, port = parse_machine(machine, ssh_user, ssh_port, ssh_pass) host = hosts.create_host(hostname, user, port, initialize=False, password=passwd) host.machine_install() | d53df032188aa484d2b6a3dbce1b79577e00c3b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/d53df032188aa484d2b6a3dbce1b79577e00c3b5/server_job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
9149,
4672,
5199,
16,
729,
16,
19093,
16,
1756,
273,
1109,
67,
9149,
12,
9149,
16,
7056,
67,
1355,
16,
7056,
67,
655,
16,
7056,
67,
5466,
13,
225,
1479,
273,
7206,
18,
2640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9149,
4672,
5199,
16,
729,
16,
19093,
16,
1756,
273,
1109,
67,
9149,
12,
9149,
16,
7056,
67,
1355,
16,
7056,
67,
655,
16,
7056,
67,
5466,
13,
225,
1479,
273,
7206,
18,
2640... |
P ( contents = [ | P ( contents = [ | def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['home'], href=makeURL( '.', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/englishlogo.png', width = 16, height = 10), A( 'English', href='%(BASE)s.' )])... | 6f57d571cb5a191a538d1b271f46a3e100233a4d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/6f57d571cb5a191a538d1b271f46a3e100233a4d/page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... |
def open(self, url, new=1): | def open(self, url, new=1, autoraise=1): | def open(self, url, new=1): # XXX Currently I know no way to prevent KFM from opening a new win. self._remote("openURL %s" % url) | cfa4096618650f6317c8872b8cbe7daaf90ccb03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cfa4096618650f6317c8872b8cbe7daaf90ccb03/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
21,
16,
2059,
10610,
784,
33,
21,
4672,
468,
11329,
15212,
467,
5055,
1158,
4031,
358,
5309,
1475,
42,
49,
628,
10890,
279,
394,
5657,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
21,
16,
2059,
10610,
784,
33,
21,
4672,
468,
11329,
15212,
467,
5055,
1158,
4031,
358,
5309,
1475,
42,
49,
628,
10890,
279,
394,
5657,
18,
365,
... |
got = tb.as_data_dict_for_bug_object() | got = tb.as_data_dict_for_bug_object(tracbug_tests_extract_tracker_specific_data) | def test_create_bug_object_data_dict_more_recent(self, m): m.return_value = { 'branch': '', 'branch_author': '', 'cc': 'thijs_ exarkun', 'component': 'core', 'description': "This package hasn't been touched in 4 years which either means it's stable or not being used at all. Let's deprecate it (also see #4111).", 'id': ... | b26a024a65e2e84149f3e8a313e7dc626cc32725 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/b26a024a65e2e84149f3e8a313e7dc626cc32725/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2640,
67,
925,
67,
1612,
67,
892,
67,
1576,
67,
10161,
67,
20872,
12,
2890,
16,
312,
4672,
312,
18,
2463,
67,
1132,
273,
288,
296,
7500,
4278,
10226,
296,
7500,
67,
4161,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2640,
67,
925,
67,
1612,
67,
892,
67,
1576,
67,
10161,
67,
20872,
12,
2890,
16,
312,
4672,
312,
18,
2463,
67,
1132,
273,
288,
296,
7500,
4278,
10226,
296,
7500,
67,
4161,
4... |
return SubmitOpCode(op, cl=cl, feedback_fn=feedback_fn) | return SubmitOpCode(op, cl=cl, feedback_fn=feedback_fn, opts=opts) def SetGenericOpcodeOpts(opcode_list, options): """Processor for generic options. This function updates the given opcodes based on generic command line options (like debug, dry-run, etc.). @param opcode_list: list of opcodes @param options: command ... | def SubmitOrSend(op, opts, cl=None, feedback_fn=None): """Wrapper around SubmitOpCode or SendJob. This function will decide, based on the 'opts' parameter, whether to submit and wait for the result of the opcode (and return it), or whether to just send the job and print its identifier. It is used in order to simplify ... | 293ba2d8b9a8303b4dd82c0f71aa3fe3e243c52c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/293ba2d8b9a8303b4dd82c0f71aa3fe3e243c52c/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17320,
1162,
3826,
12,
556,
16,
1500,
16,
927,
33,
7036,
16,
10762,
67,
4293,
33,
7036,
4672,
3536,
3611,
6740,
17320,
3817,
1085,
578,
2479,
2278,
18,
225,
1220,
445,
903,
16288,
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,
17320,
1162,
3826,
12,
556,
16,
1500,
16,
927,
33,
7036,
16,
10762,
67,
4293,
33,
7036,
4672,
3536,
3611,
6740,
17320,
3817,
1085,
578,
2479,
2278,
18,
225,
1220,
445,
903,
16288,
16,
... |
existed = sectdict.has_key(key) | existed = sectdict.has_key(option) | def remove_option(self, section, option): """Remove an option.""" if not section or section == "DEFAULT": sectdict = self.__defaults else: try: sectdict = self.__sections[section] except KeyError: raise NoSectionError(section) existed = sectdict.has_key(key) if existed: del sectdict[key] return existed | 27409c95b33b971c499c359698bbd01a7181f64b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/27409c95b33b971c499c359698bbd01a7181f64b/ConfigParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
3482,
12,
2890,
16,
2442,
16,
1456,
4672,
3536,
3288,
392,
1456,
12123,
309,
486,
2442,
578,
2442,
422,
315,
5280,
6877,
29140,
1576,
273,
365,
16186,
7606,
469,
30,
775,
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,
1206,
67,
3482,
12,
2890,
16,
2442,
16,
1456,
4672,
3536,
3288,
392,
1456,
12123,
309,
486,
2442,
578,
2442,
422,
315,
5280,
6877,
29140,
1576,
273,
365,
16186,
7606,
469,
30,
775,
30,
... |
self.assertEqual(zlib.crc32(foo), 2486878355) | self.assertEqual(zlib.crc32(foo), -1808088941) | def test_crc32_adler32_unsigned(self): foo = 'abcdefghijklmnop' # explicitly test signed behavior self.assertEqual(zlib.crc32(foo), 2486878355) self.assertEqual(zlib.crc32('spam'), 1138425661) self.assertEqual(zlib.adler32(foo+foo), 3573550353) self.assertEqual(zlib.adler32('spam'), 72286642) | 6bbdcc9659ec1638c0a4d5d5a513fd0eba8ae861 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/6bbdcc9659ec1638c0a4d5d5a513fd0eba8ae861/test_zlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22988,
1578,
67,
361,
749,
1578,
67,
22297,
12,
2890,
4672,
8431,
273,
296,
28953,
17680,
8302,
16391,
13607,
556,
11,
468,
8122,
1842,
6726,
6885,
365,
18,
11231,
5812,
12,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22988,
1578,
67,
361,
749,
1578,
67,
22297,
12,
2890,
4672,
8431,
273,
296,
28953,
17680,
8302,
16391,
13607,
556,
11,
468,
8122,
1842,
6726,
6885,
365,
18,
11231,
5812,
12,
94... |
sqlJobP = "SELECT jobParameters FROM ATLAS_PANDA.jobParamsTable WHERE PandaID=:PandaID" | jobParamTableName = re.sub('jobsArchived','jobParamsTable_ARCH',table) sqlJobP = "SELECT jobParameters FROM %s WHERE PandaID=:PandaID" % jobParamTableName | def peekJobLog(self,pandaID): comment = ' /* DBProxy.peekJobLog */' _logger.debug("peekJob : %s" % pandaID) # return None for NULL PandaID if pandaID in ['NULL','','None',None]: return None sql1_0 = "SELECT %s FROM %s " sql1_1 = "WHERE PandaID=:PandaID AND modificationTime>(CURRENT_DATE-30) " # select varMap = {} varMa... | 23213e61ab8dd53c22fecb26ec5cecc346fd3333 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7525/23213e61ab8dd53c22fecb26ec5cecc346fd3333/OraDBProxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8032,
2278,
1343,
12,
2890,
16,
84,
464,
69,
734,
4672,
2879,
273,
296,
1748,
2383,
3886,
18,
347,
3839,
2278,
1343,
1195,
11,
389,
4901,
18,
4148,
2932,
347,
3839,
2278,
294,
738,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8032,
2278,
1343,
12,
2890,
16,
84,
464,
69,
734,
4672,
2879,
273,
296,
1748,
2383,
3886,
18,
347,
3839,
2278,
1343,
1195,
11,
389,
4901,
18,
4148,
2932,
347,
3839,
2278,
294,
738,
87,... |
normalizedWeight=normalizeWeight(value,weightLimits) | normalizedWeight=normalizeValue(value,weightLimits) | def setEdgeWidth(value,weightLimits,minwidth,maxwidth): # Transforms edge weights to widths in the range (minwidth,maxwidth). # If given minwidth and maxwidth are the same, simply use that given width. if not(weightLimits[0]-weightLimits[1])==0: normalizedWeight=normalizeWeight(value,weightLimits) # normalizes the we... | 1b046154581ac107eda7faef67d10c4c19528a4c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/1b046154581ac107eda7faef67d10c4c19528a4c/visuals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
6098,
2384,
12,
1132,
16,
4865,
12768,
16,
1154,
2819,
16,
1896,
2819,
4672,
468,
2604,
9741,
3591,
5376,
358,
15801,
316,
326,
1048,
225,
261,
1154,
2819,
16,
1896,
2819,
2934,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6098,
2384,
12,
1132,
16,
4865,
12768,
16,
1154,
2819,
16,
1896,
2819,
4672,
468,
2604,
9741,
3591,
5376,
358,
15801,
316,
326,
1048,
225,
261,
1154,
2819,
16,
1896,
2819,
2934,
468... |
assert status == 0x100 | exitstatus = os.WEXITSTATUS(status) assert exitstatus != 0 | def run(): maker = su.SuProxyMaker( 'Need to become root to test this module.') yield maker.blocker root = maker.get_root() | 85c9953b0f04e63a0ea0812a82c796505bc2ea6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/85c9953b0f04e63a0ea0812a82c796505bc2ea6b/testsu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
312,
6388,
273,
1597,
18,
17072,
3886,
12373,
12,
296,
14112,
358,
12561,
1365,
358,
1842,
333,
1605,
1093,
13,
2824,
312,
6388,
18,
2629,
264,
1365,
273,
312,
6388,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
312,
6388,
273,
1597,
18,
17072,
3886,
12373,
12,
296,
14112,
358,
12561,
1365,
358,
1842,
333,
1605,
1093,
13,
2824,
312,
6388,
18,
2629,
264,
1365,
273,
312,
6388,
18,
588... |
'verify': options.verify } | 'verify': options.verify or __debug__ } | def initRepository(directory, options): repository = DBRepository(directory) kwds = { 'stderr': options.stderr, 'ramdb': options.ramdb, 'create': True, 'recover': options.recover, 'exclusive': True, 'refcounted': True, 'logged': not not options.logging, 'verify': options.verify } if options.restore: kwds['restore'] ... | 6f142f461ebb1fc8a240ff72ddbf9b539c50ff75 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6f142f461ebb1fc8a240ff72ddbf9b539c50ff75/Utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
3305,
12,
5149,
16,
702,
4672,
225,
3352,
273,
2383,
3305,
12,
5149,
13,
225,
17149,
273,
288,
296,
11241,
4278,
702,
18,
11241,
16,
296,
1940,
1966,
4278,
702,
18,
1940,
1966,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3305,
12,
5149,
16,
702,
4672,
225,
3352,
273,
2383,
3305,
12,
5149,
13,
225,
17149,
273,
288,
296,
11241,
4278,
702,
18,
11241,
16,
296,
1940,
1966,
4278,
702,
18,
1940,
1966,
1... |
def _internal_poll(self, _deadstate=None): | def _internal_poll(self, _deadstate=None, _WaitForSingleObject=WaitForSingleObject, _WAIT_OBJECT_0=WAIT_OBJECT_0, _GetExitCodeProcess=GetExitCodeProcess): | def _internal_poll(self, _deadstate=None): """Check if child process has terminated. Returns returncode attribute.""" if self.returncode is None: if(_subprocess.WaitForSingleObject(self._handle, 0) == _subprocess.WAIT_OBJECT_0): self.returncode = _subprocess.GetExitCodeProcess(self._handle) return self.returncode | 3e77f45be7d91ffd1e8dba1d604782652eb3b659 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/3e77f45be7d91ffd1e8dba1d604782652eb3b659/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7236,
67,
13835,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
16,
389,
29321,
5281,
921,
33,
29321,
5281,
921,
16,
389,
19046,
67,
9422,
67,
20,
33,
19046,
67,
9422,
67,
20,
16,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7236,
67,
13835,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
16,
389,
29321,
5281,
921,
33,
29321,
5281,
921,
16,
389,
19046,
67,
9422,
67,
20,
33,
19046,
67,
9422,
67,
20,
16,
38... |
"""Locates a bitmap file of the name name.xpm or name in one of the bitmap directories (self, see the tix_addbitmapdir command above). By using tix_getbitmap, you can advoid hard coding the pathnames of the bitmap files in your application. When successful, it returns the complete pathname of the bitmap f... | """Locates a bitmap file of the name name.xpm or name in one of the bitmap directories (see the tix_addbitmapdir command above). By using tix_getbitmap, you can avoid hard coding the pathnames of the bitmap files in your application. When successful, it returns the complete pathname of the bitmap file, prefixed with t... | def tix_getbitmap(self, name): """Locates a bitmap file of the name name.xpm or name in one of the bitmap directories (self, see the tix_addbitmapdir command above). By using tix_getbitmap, you can advoid hard coding the pathnames of the bitmap files in your application. When successful, it returns the co... | 723293cb49f479a41dc893d72c2d6502587d52cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/723293cb49f479a41dc893d72c2d6502587d52cb/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
697,
67,
588,
3682,
1458,
12,
2890,
16,
508,
4672,
3536,
1333,
815,
279,
9389,
585,
434,
326,
508,
508,
18,
92,
7755,
578,
508,
316,
1245,
434,
326,
9389,
6402,
261,
5946,
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,
268,
697,
67,
588,
3682,
1458,
12,
2890,
16,
508,
4672,
3536,
1333,
815,
279,
9389,
585,
434,
326,
508,
508,
18,
92,
7755,
578,
508,
316,
1245,
434,
326,
9389,
6402,
261,
5946,
326,
... |
self.sql_log_model = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING) | self.sql_log_model = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING) | def __init__(self): #~ self.read_query( | 7dda6efe0ce5eb9252a0950001c0288c1a84bb9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8147/7dda6efe0ce5eb9252a0950001c0288c1a84bb9f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
468,
98,
365,
18,
896,
67,
2271,
12,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
4672,
468,
98,
365,
18,
896,
67,
2271,
12,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
d2[hit[6]] = r | signature = hit[6].encode('ascii','ignore') d2[signature] = r | def create_channel_query_reply(self,id,hits): d = {} d['id'] = id d2 = {} for hit in hits: r = {} r['publisher_id'] = hit[0] r['publisher_name'] = hit[1] r['infohash'] = hit[2] r['torrenthash'] = hit[3] r['torrentname'] = hit[4] r['time_stamp'] = hit[5] # hit[6]: signature, which is unique for any torrent published by ... | 32dd328def9431eb7334c38960d11f3917fe3675 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/32dd328def9431eb7334c38960d11f3917fe3675/RemoteQueryMsgHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4327,
67,
2271,
67,
10629,
12,
2890,
16,
350,
16,
15173,
4672,
302,
273,
2618,
302,
3292,
350,
3546,
273,
612,
302,
22,
273,
2618,
364,
6800,
316,
11076,
30,
436,
273,
2618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
4327,
67,
2271,
67,
10629,
12,
2890,
16,
350,
16,
15173,
4672,
302,
273,
2618,
302,
3292,
350,
3546,
273,
612,
302,
22,
273,
2618,
364,
6800,
316,
11076,
30,
436,
273,
2618,
... |
self.title = feed.feed.get('title', self.url) | self.title = re.sub('\s+', ' ', feed.feed.get('title', self.url)) | def _consume_updated_feed(self, feed, max_episodes=0, mimetype_prefs=''): self.parse_error = feed.get('bozo_exception', None) | 83a6f36e28862d83be65dfb388acf6020748c492 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/83a6f36e28862d83be65dfb388acf6020748c492/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21224,
67,
7007,
67,
7848,
12,
2890,
16,
4746,
16,
943,
67,
881,
27134,
33,
20,
16,
12595,
67,
1484,
2556,
2218,
11,
4672,
365,
18,
2670,
67,
1636,
273,
4746,
18,
588,
2668,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21224,
67,
7007,
67,
7848,
12,
2890,
16,
4746,
16,
943,
67,
881,
27134,
33,
20,
16,
12595,
67,
1484,
2556,
2218,
11,
4672,
365,
18,
2670,
67,
1636,
273,
4746,
18,
588,
2668,
107... |
fieldname = 'sf', | fieldname = 'rm', | def create_rankoptions(self, ln=CFG_SITE_LANG): "Produces 'Rank options' portal box." | 46ea15dd64530ffd61013886d1d335fb273217d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2139/46ea15dd64530ffd61013886d1d335fb273217d5/websearch_webcoll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
11500,
2116,
12,
2890,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
315,
27291,
296,
12925,
702,
11,
11899,
3919,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
11500,
2116,
12,
2890,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
315,
27291,
296,
12925,
702,
11,
11899,
3919,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
xsd = 'xsd' wsdl = 'wsdl' soap = 'soap' soapenc = 'soapenc' mime = 'mime' http = 'http' | def __str__(self): XMLBase.__rlock.acquire() XMLBase.__indent += 1 tmp = "<" + str(self.__class__) + '>\n' for k,v in self.__dict__.items(): tmp += "%s* %s = %s\n" %(XMLBase.__indent*' ', k, v) XMLBase.__indent -= 1 XMLBase.__rlock.release() return tmp | e50368f02a007b522df43404acf761191b9356f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/e50368f02a007b522df43404acf761191b9356f0/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3167,
2171,
16186,
86,
739,
18,
1077,
1039,
1435,
3167,
2171,
16186,
9355,
1011,
404,
1853,
273,
18165,
397,
609,
12,
2890,
16186,
1106,
972,
13,
397,
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,
1001,
701,
972,
12,
2890,
4672,
3167,
2171,
16186,
86,
739,
18,
1077,
1039,
1435,
3167,
2171,
16186,
9355,
1011,
404,
1853,
273,
18165,
397,
609,
12,
2890,
16186,
1106,
972,
13,
397,
296... | |
if count < 100: continue | if count > 100: break | def createDeviceModel(self, restore = False): if self.device_model is None: return if self.pid: return # Execute device model. #todo: Error handling args = self.getDeviceModelArgs(restore) env = dict(os.environ) if self.display: env['DISPLAY'] = self.display if self.xauthority: env['XAUTHORITY'] = self.xauthority uniqu... | be016c846d7f99b0aae1ef436f49246d85685052 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/be016c846d7f99b0aae1ef436f49246d85685052/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3654,
1488,
12,
2890,
16,
5217,
273,
1083,
4672,
309,
365,
18,
5964,
67,
2284,
353,
599,
30,
327,
309,
365,
18,
6610,
30,
327,
468,
7903,
2346,
938,
18,
468,
9012,
30,
1068,
505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3654,
1488,
12,
2890,
16,
5217,
273,
1083,
4672,
309,
365,
18,
5964,
67,
2284,
353,
599,
30,
327,
309,
365,
18,
6610,
30,
327,
468,
7903,
2346,
938,
18,
468,
9012,
30,
1068,
505... |
global dbmodule, connect, make_connect_string, do_commit, sane_rowcount, dialect | global dbmodule, connect, make_connect_string, do_commit, sane_rowcount, dialect, colspecs, ischema_names | def use_adodbapi(): global dbmodule, connect, make_connect_string, do_commit, sane_rowcount, dialect import adodbapi as dbmodule # ADODBAPI has a non-standard Connection method connect = dbmodule.Connection make_connect_string = lambda keys: \ [["Provider=SQLOLEDB;Data Source=%s;User Id=%s;Password=%s;Initial Catalog=%... | fc53d244b74c32d68c7144bd7a419f16ec528d52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/fc53d244b74c32d68c7144bd7a419f16ec528d52/mssql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
67,
361,
10605,
2425,
13332,
2552,
1319,
2978,
16,
3077,
16,
1221,
67,
3612,
67,
1080,
16,
741,
67,
7371,
16,
30426,
67,
492,
1883,
16,
10864,
16,
645,
15115,
16,
353,
1243,
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,
999,
67,
361,
10605,
2425,
13332,
2552,
1319,
2978,
16,
3077,
16,
1221,
67,
3612,
67,
1080,
16,
741,
67,
7371,
16,
30426,
67,
492,
1883,
16,
10864,
16,
645,
15115,
16,
353,
1243,
67,
... |
return None | overrides_file = self.path_from_chromium_base('webkit', 'tools', 'layout_tests', 'test_expectations.txt') if os.path.exists(overrides_file): return file(overrides_file, "r").read() else: return None | def test_expectations_overrides(self): # FIXME: uncomment this when we're convinced the upstream code # is working. #overrides_file = self.path_from_chromium_base('webkit', 'tools', # 'layout_tests', 'test_expectations.txt') #if os.path.exists(overrides_file): # return file(overrides_file, "r").read() #else: # ... | 0b991d23c6081ba45928989966f2f4f1ecb758ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/0b991d23c6081ba45928989966f2f4f1ecb758ed/chromium.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12339,
1012,
67,
19775,
12,
2890,
4672,
468,
9852,
30,
12704,
475,
333,
1347,
732,
4565,
6292,
2410,
72,
326,
13505,
981,
468,
353,
5960,
18,
468,
19775,
67,
768,
273,
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,
1842,
67,
12339,
1012,
67,
19775,
12,
2890,
4672,
468,
9852,
30,
12704,
475,
333,
1347,
732,
4565,
6292,
2410,
72,
326,
13505,
981,
468,
353,
5960,
18,
468,
19775,
67,
768,
273,
365,
1... |
return self.__parents | return _output_lines('git-rev-list --parents --max-count=1 %s' % self.__id_hash)[0].split()[1:] | def get_parents(self): return self.__parents | 2406f7d16cad24d396b3e8ea5605813f4011b5a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/2406f7d16cad24d396b3e8ea5605813f4011b5a6/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12606,
12,
2890,
4672,
327,
365,
16186,
12606,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12606,
12,
2890,
4672,
327,
365,
16186,
12606,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
i = M.rfind('[C\x1b[C\n') if i != -1: M = M[i+len('[C\x1b[C\n'):] x.append(M) | if UNAME == 'Darwin': phrase = L else: phrase = '[C\x1b[C\n' i = M.rfind(phrase) if i > 1: M = M[i+len(phrase):] x.append(M.strip()) | def eval(self, code, strip=True): self._synchronize() code = str(code) code = code.strip() code = code.replace('\n',' ') x = [] for L in code.split('\n'): if L != '': try: s = self.__in_seq + 1 pr = '\[%s\]>'%s #M = self._eval_line(L, wait_for_prompt=pr) M = self._eval_line(L, wait_for_prompt=self._prompt) i = M.rfind(... | 9ac4706a0b4cd0a6e019becdabbf831b2676dc4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9ac4706a0b4cd0a6e019becdabbf831b2676dc4f/lisp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
12,
2890,
16,
981,
16,
2569,
33,
5510,
4672,
365,
6315,
87,
2600,
554,
1435,
981,
273,
609,
12,
710,
13,
981,
273,
981,
18,
6406,
1435,
981,
273,
981,
18,
2079,
2668,
64,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
12,
2890,
16,
981,
16,
2569,
33,
5510,
4672,
365,
6315,
87,
2600,
554,
1435,
981,
273,
609,
12,
710,
13,
981,
273,
981,
18,
6406,
1435,
981,
273,
981,
18,
2079,
2668,
64,
82,
... |
self.load_autostart(group, key, check) check.connect("toggled", self.autostart_changed, (group, key)) self.client.notify_add(group, key, self.reload_autostart, check) def load_autostart(self, group, key, check): check.set_active(self.client.get_bool(group, key)) | self.load_autostart(check) check.connect("toggled", self.autostart_changed) def load_autostart(self, check): autostart_file = self.get_autostart_file_path() check.set_active(os.path.isfile(autostart_file)) | def setup_autostart(self, group, key, check): """sets up checkboxes""" self.load_autostart(group, key, check) check.connect("toggled", self.autostart_changed, (group, key)) self.client.notify_add(group, key, self.reload_autostart, check) | 578e7de85087a2fe2729d8795d24467d6202461a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/578e7de85087a2fe2729d8795d24467d6202461a/awnPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
5854,
669,
485,
12,
2890,
16,
1041,
16,
498,
16,
866,
4672,
3536,
4424,
731,
11832,
281,
8395,
365,
18,
945,
67,
5854,
669,
485,
12,
1655,
16,
498,
16,
866,
13,
866,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
5854,
669,
485,
12,
2890,
16,
1041,
16,
498,
16,
866,
4672,
3536,
4424,
731,
11832,
281,
8395,
365,
18,
945,
67,
5854,
669,
485,
12,
1655,
16,
498,
16,
866,
13,
866,
18,
... |
self.save(sage.misc.misc.SAGE_TMP + '/test.png', | self.save(DOCTEST_MODE_FILE, | def show(self, filename=None, dpi=DEFAULT_DPI, figsize=DEFAULT_FIGSIZE, axes = None, **args): r""" Show this graphics array using the default viewer. | a871eb6e7b9b9c77e30c4e96bcbc3975003ca111 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a871eb6e7b9b9c77e30c4e96bcbc3975003ca111/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
1544,
33,
7036,
16,
16361,
33,
5280,
67,
40,
1102,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
6515,
273,
599,
16,
2826,
1968,
4672,
436,
8395,
9674,
333,
17313,
526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
12,
2890,
16,
1544,
33,
7036,
16,
16361,
33,
5280,
67,
40,
1102,
16,
14697,
33,
5280,
67,
5236,
4574,
16,
6515,
273,
599,
16,
2826,
1968,
4672,
436,
8395,
9674,
333,
17313,
526,
... |
def showAllData(ec2Data): api_ver = '2008-02-01' metadata = None base_url = 'http://169.254.169.254/%s/meta-data' % api_ver | def getAllData(ec2Data): | def showAllData(ec2Data): api_ver = '2008-02-01' metadata = None base_url = 'http://169.254.169.254/%s/meta-data' % api_ver for x in ec2Data: data = urllib.urlopen('%s/%s' %(base_url,x)).read() print "%s: %s" %(ec2data,data) | 7fc548cf64af5a6a6d3b1b56a8147995102bf6e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7197/7fc548cf64af5a6a6d3b1b56a8147995102bf6e4/ec2-get-info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5514,
751,
12,
557,
22,
751,
4672,
364,
619,
316,
6557,
22,
751,
30,
501,
273,
11527,
18,
295,
18589,
29909,
87,
5258,
87,
11,
8975,
1969,
67,
718,
16,
92,
13,
2934,
896,
1435,
1172,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5514,
751,
12,
557,
22,
751,
4672,
364,
619,
316,
6557,
22,
751,
30,
501,
273,
11527,
18,
295,
18589,
29909,
87,
5258,
87,
11,
8975,
1969,
67,
718,
16,
92,
13,
2934,
896,
1435,
1172,... |
except KeyboardInterrupt: if verbose: print "KeyboardInterrupt (the alarm() went off)" | handler_b_exception_raised = False | def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-... | 99d3744d692f422a8786422bd8080f3980cb2b40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/99d3744d692f422a8786422bd8080f3980cb2b40/test_signal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
67,
3813,
67,
8593,
13332,
468,
348,
2031,
16,
3937,
10095,
19264,
4573,
358,
4543,
1334,
18,
1930,
1140,
12515,
67,
6610,
273,
1140,
18,
23335,
1435,
309,
12515,
67,
6610,
30,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
67,
3813,
67,
8593,
13332,
468,
348,
2031,
16,
3937,
10095,
19264,
4573,
358,
4543,
1334,
18,
1930,
1140,
12515,
67,
6610,
273,
1140,
18,
23335,
1435,
309,
12515,
67,
6610,
30,
468... |
def next(self, bytes): | def next(self, bytes, timestamp): | def next(self, bytes): """Decode higher layer packets contained in TCP.""" if (self.dport in tcp_map.map): return tcp_map.map[self.dport](bytes) if (self.sport in tcp_map.map): return tcp_map.map[self.sport](bytes) return None | 90eca6707436c8c94eb6d30d2166f02e1b21f5e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/90eca6707436c8c94eb6d30d2166f02e1b21f5e8/tcp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
16,
1731,
16,
2858,
4672,
3536,
6615,
10478,
3018,
12640,
7542,
316,
9911,
12123,
309,
261,
2890,
18,
72,
655,
316,
9658,
67,
1458,
18,
1458,
4672,
327,
9658,
67,
1458,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
16,
1731,
16,
2858,
4672,
3536,
6615,
10478,
3018,
12640,
7542,
316,
9911,
12123,
309,
261,
2890,
18,
72,
655,
316,
9658,
67,
1458,
18,
1458,
4672,
327,
9658,
67,
1458,
... |
if sys.platform[:3] == "os2" and _iscommand("netscape.exe"): _tryorder = ["os2netscape"] | if sys.platform[:3] == "os2" and _iscommand("netscape"): _tryorder = [] _browsers = {} | def open_new(self, url): self.open(url) | e8f244305ef4f257f6999b69601f4316b31faa5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e8f244305ef4f257f6999b69601f4316b31faa5e/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
p.sale_id = ANY(%s) GROUP BY mp.state, p.sale_id''') | p.sale_id = ANY(%s) GROUP BY mp.state, p.sale_id''',(ids,)) | def _picked_rate(self, cr, uid, ids, name, arg, context=None): if context is None: context = {} if not ids: return {} res = {} for id in ids: res[id] = [0.0, 0.0] cr.execute('''SELECT p.sale_id,sum(m.product_qty), mp.state as mp_state FROM stock_move m LEFT JOIN stock_picking p on (p.id=m.picking_id) LEFT JOIN mrp_proc... | 0a2641b0df245ce8ce72113af93f760d7234526b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0a2641b0df245ce8ce72113af93f760d7234526b/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11503,
329,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
2618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11503,
329,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
2618,
... |
length = length+500 | def move_to_category(self, article, original_cat, current_cat): ''' Given an article which is in category original_cat, ask the user if it should be moved to one of original_cat's subcategories. Recursively run through subcategories' subcategories. NOTE: current_cat is only used for internal recursion. You should alway... | c155583c16bb5574b722d20b9144d99630aae92f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/c155583c16bb5574b722d20b9144d99630aae92f/category.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
869,
67,
4743,
12,
2890,
16,
7559,
16,
2282,
67,
2574,
16,
783,
67,
2574,
4672,
9163,
16803,
392,
7559,
1492,
353,
316,
3150,
2282,
67,
2574,
16,
6827,
326,
729,
309,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
869,
67,
4743,
12,
2890,
16,
7559,
16,
2282,
67,
2574,
16,
783,
67,
2574,
4672,
9163,
16803,
392,
7559,
1492,
353,
316,
3150,
2282,
67,
2574,
16,
6827,
326,
729,
309,
518,
... | |
harness_logger.info("Starting full run through...") | harness_logger.info("---------------------\n Starting full run through...") | def dofullrun(kinit, kend, deltak): """Complete full model run of 1st, source and 2nd order calculations.""" harness_logger.info("Starting full run through...") fofile = runfomodel(kinit, kend, deltak, foargs=FOARGS) sourcefile = runfullsourceintegration(fofile) sohelpers.copy_source_to_fofile(sourcefile, fofile) sofil... | 2bb9b2dff6931edf5c042e0856421c583a456cbb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/2bb9b2dff6931edf5c042e0856421c583a456cbb/harness.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2854,
2681,
12,
79,
2738,
16,
417,
409,
16,
1464,
88,
581,
4672,
3536,
6322,
1983,
938,
1086,
434,
404,
334,
16,
1084,
471,
576,
4880,
1353,
20882,
12123,
366,
1303,
403,
67,
4901... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2854,
2681,
12,
79,
2738,
16,
417,
409,
16,
1464,
88,
581,
4672,
3536,
6322,
1983,
938,
1086,
434,
404,
334,
16,
1084,
471,
576,
4880,
1353,
20882,
12123,
366,
1303,
403,
67,
4901... |
def prepare_rebuild_ops(self, instnode, rebuild_ops, memo): box = instnode.source | def prepare_rebuild_ops(self, instnode, rebuild_ops, memo, box=None): if box is None: box = instnode.source | def prepare_rebuild_ops(self, instnode, rebuild_ops, memo): box = instnode.source if not isinstance(box, Box): return box if box in memo: return memo[box] if instnode.virtual: newbox = BoxPtr() ld = instnode.cls.source if isinstance(ld, FixedList): ad = ld.arraydescr sizebox = ConstInt(instnode.cursize) op = ResOperati... | 79190106133823d3a24c3ea421404f6fd33f936d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/79190106133823d3a24c3ea421404f6fd33f936d/optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
266,
3510,
67,
4473,
12,
2890,
16,
1804,
2159,
16,
13419,
67,
4473,
16,
11063,
16,
3919,
33,
7036,
4672,
309,
3919,
353,
599,
30,
3919,
273,
1804,
2159,
18,
3168,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
266,
3510,
67,
4473,
12,
2890,
16,
1804,
2159,
16,
13419,
67,
4473,
16,
11063,
16,
3919,
33,
7036,
4672,
309,
3919,
353,
599,
30,
3919,
273,
1804,
2159,
18,
3168,
309,
486,
... |
OUTPUT: - ``int`` - smallest cond - ``int`` - largest conductor plus one | OUTPUT: tuple of ints (N1,N2+1) where N1 is the smallest and N2 the largest conductor for which the database is complete. | def conductor_range(self): """ Return the range of conductors that are covered by the database. OUTPUT: - ``int`` - smallest cond - ``int`` - largest conductor plus one EXAMPLES:: sage: from sage.databases.cremona import LargeCremonaDatabase # optional - database_cremona_ellcurve sage: c = LargeCremonaDatabas... | 2f49488c3344bc60432b3c71255ae35616667fc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/2f49488c3344bc60432b3c71255ae35616667fc5/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
356,
1828,
280,
67,
3676,
12,
2890,
4672,
3536,
2000,
326,
1048,
434,
356,
1828,
1383,
716,
854,
18147,
635,
326,
2063,
18,
225,
11550,
30,
3193,
434,
15542,
261,
50,
21,
16,
50,
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,
356,
1828,
280,
67,
3676,
12,
2890,
4672,
3536,
2000,
326,
1048,
434,
356,
1828,
1383,
716,
854,
18147,
635,
326,
2063,
18,
225,
11550,
30,
3193,
434,
15542,
261,
50,
21,
16,
50,
22,
... |
k, v = item.split(':', 1) k = k.strip().lower() v = v.strip() self._info[k] = v | if ':' in item: k, v = item.split(':', 1) k = k.strip().lower() v = v.strip() self._info[k] = v lastk = k elif lastk: self._info[lastk] += '\n' + item | def _parse(self, fp): """Override this method to support alternative .mo formats.""" unpack = struct.unpack filename = getattr(fp, 'name', '') # Parse the .mo file header, which consists of 5 little endian 32 # bit words. self._catalog = catalog = {} self.plural = lambda n: int(n != 1) # germanic plural by default buf ... | e0ea83ebf4c410e6b64a653a819cc85d54d5339d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e0ea83ebf4c410e6b64a653a819cc85d54d5339d/gettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
4253,
4672,
3536,
6618,
333,
707,
358,
2865,
10355,
263,
8683,
6449,
12123,
6167,
273,
1958,
18,
17309,
1544,
273,
3869,
12,
7944,
16,
296,
529,
2187,
28707,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
4253,
4672,
3536,
6618,
333,
707,
358,
2865,
10355,
263,
8683,
6449,
12123,
6167,
273,
1958,
18,
17309,
1544,
273,
3869,
12,
7944,
16,
296,
529,
2187,
28707,
468... |
P = lambda x: scipy.stats.t.sf(x, self.dfd) | P = lambda x: stats.t.sf(x, self.dfd) | def __call__(self, x, search=None): """ Get expected EC for a search region (default is self.search which itself defaults to [1] giving the survival function. """ | b251694b7d7fc8fce6e39eac693410d6577055a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12658/b251694b7d7fc8fce6e39eac693410d6577055a1/rft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
1623,
33,
7036,
4672,
3536,
968,
2665,
7773,
364,
279,
1623,
3020,
261,
1886,
353,
365,
18,
3072,
1492,
6174,
3467,
358,
306,
21,
65,
21057,
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,
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,
619,
16,
1623,
33,
7036,
4672,
3536,
968,
2665,
7773,
364,
279,
1623,
3020,
261,
1886,
353,
365,
18,
3072,
1492,
6174,
3467,
358,
306,
21,
65,
21057,
326... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.