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 |
|---|---|---|---|---|---|---|
'fi': u'Hikipeli', 'nl': u'Ongerijmd', 'th': u'บอร์ด', 'zh-hk': u'詞意分道', 'zh-tw': u'詞意分道' | 'fi': u'Hikipeli', 'nl': u'Ongerijmd', 'th': u'บอร์ด', 'zh-hk': u'詞意分道', 'zh-tw': u'詞意分道' | def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia' | 5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
551,
93,
7550,
1845,
1155,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
551,
93,
7550,
1845,
1155,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.cookie.load(os.getenv('HTTP_COOKIE')) | if os.getenv('HTTP_COOKIE'): self.cookie.load(os.getenv('HTTP_COOKIE')) | def init_request(self): Request.init_request(self) self.cgi_location = os.getenv('SCRIPT_NAME') self.remote_addr = os.getenv('REMOTE_ADDR') self.remote_user = os.getenv('REMOTE_USER') self.cookie.load(os.getenv('HTTP_COOKIE')) | a16ddeb6c2615939560d48742a1e6e3f27e7b8c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/a16ddeb6c2615939560d48742a1e6e3f27e7b8c4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
2293,
12,
2890,
4672,
1567,
18,
2738,
67,
2293,
12,
2890,
13,
365,
18,
19062,
67,
3562,
273,
1140,
18,
588,
3074,
2668,
10885,
67,
1985,
6134,
365,
18,
7222,
67,
4793,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
2293,
12,
2890,
4672,
1567,
18,
2738,
67,
2293,
12,
2890,
13,
365,
18,
19062,
67,
3562,
273,
1140,
18,
588,
3074,
2668,
10885,
67,
1985,
6134,
365,
18,
7222,
67,
4793,
273,
... |
cmd = 'rm %s'%proxy | cmd = 'rm %s'%userKerb | def destroyCredential(self, userKerb): """ """ if userKerb == None: msg = "Error no valid user kerberos to remove " raise Exception(msg) | 9ff36f7b04cc8c20a4d86a872b428f8ff09da695 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/9ff36f7b04cc8c20a4d86a872b428f8ff09da695/Token.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
8605,
12,
2890,
16,
729,
47,
264,
70,
4672,
3536,
3536,
309,
729,
47,
264,
70,
422,
599,
30,
1234,
273,
315,
668,
1158,
923,
729,
417,
24704,
358,
1206,
315,
1002,
1185,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
8605,
12,
2890,
16,
729,
47,
264,
70,
4672,
3536,
3536,
309,
729,
47,
264,
70,
422,
599,
30,
1234,
273,
315,
668,
1158,
923,
729,
417,
24704,
358,
1206,
315,
1002,
1185,
12,
35... |
return zread(f) | return util.chunkbuffer(zgenerator(util.filechunkiter(f))) | def read(self, l): while l > len(self.buf): r = self.f.read(4096) if r: self.buf += self.zd.decompress(r) else: self.buf += self.zd.flush() break d, self.buf = self.buf[:l], self.buf[l:] return d | a38238fbe5f6680f438e6be4163c7576df99e53c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/a38238fbe5f6680f438e6be4163c7576df99e53c/httprepo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
328,
4672,
1323,
328,
405,
562,
12,
2890,
18,
4385,
4672,
436,
273,
365,
18,
74,
18,
896,
12,
24,
5908,
26,
13,
309,
436,
30,
365,
18,
4385,
1011,
365,
18,
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,
855,
12,
2890,
16,
328,
4672,
1323,
328,
405,
562,
12,
2890,
18,
4385,
4672,
436,
273,
365,
18,
74,
18,
896,
12,
24,
5908,
26,
13,
309,
436,
30,
365,
18,
4385,
1011,
365,
18,
94,
... |
self._stop_alert.props.msg = _('%s' % self._get_file_name()) | self._stop_alert.props.msg = self._get_file_name() | def onStateChange(self, web_progress, request, state_flags, status): if state_flags & interfaces.nsIWebProgressListener.STATE_START: self._create_journal_object() self._object_id = self.dl_jobject.object_id | 02604d764ab5d48f62df9b21fe011679e6808c7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6905/02604d764ab5d48f62df9b21fe011679e6808c7a/downloadmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
22505,
12,
2890,
16,
3311,
67,
8298,
16,
590,
16,
919,
67,
7133,
16,
1267,
4672,
309,
919,
67,
7133,
473,
7349,
18,
2387,
45,
4079,
5491,
2223,
18,
7998,
67,
7570,
30,
365,
6315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
22505,
12,
2890,
16,
3311,
67,
8298,
16,
590,
16,
919,
67,
7133,
16,
1267,
4672,
309,
919,
67,
7133,
473,
7349,
18,
2387,
45,
4079,
5491,
2223,
18,
7998,
67,
7570,
30,
365,
6315... |
print "would show PiP now" | def extensionCallback(self, answer): if answer[1] == "pipon": self.pip = self.session.instantiateDialog(PictureInPicture) self.pip.show() self.pipshown = True print "would show PiP now" elif answer[1] == "pipoff": self.pip.hide() del self.pip self.pipshown = False | 029213648e109b21463d018752e103fc577ffee9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/029213648e109b21463d018752e103fc577ffee9/InfoBarGenerics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2710,
2428,
12,
2890,
16,
5803,
4672,
309,
5803,
63,
21,
65,
422,
315,
7259,
500,
6877,
365,
18,
16104,
273,
365,
18,
3184,
18,
24628,
3840,
6353,
12,
24061,
382,
24061,
13,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2710,
2428,
12,
2890,
16,
5803,
4672,
309,
5803,
63,
21,
65,
422,
315,
7259,
500,
6877,
365,
18,
16104,
273,
365,
18,
3184,
18,
24628,
3840,
6353,
12,
24061,
382,
24061,
13,
365,
18,
... | |
moveDir = moveDirectory() | moveDir = MoveDirectory() | def handleStartMoveDirectory(wfile, request, session): productionId=int(request["production_id"]) production=indexer.getProduction(productionId) sourceDirectory= str(request["source_directory"]) targetDirectory= str(request["target_directory"]) targetAbsoluteDirectory = os.path.join(production[indexer.INDEX_PRODUCTION_... | 0d45ee831a13f6613079d388ddc735757f234188 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4259/0d45ee831a13f6613079d388ddc735757f234188/servicerefactor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1685,
7607,
2853,
12,
91,
768,
16,
590,
16,
1339,
4672,
12449,
548,
33,
474,
12,
2293,
9614,
17273,
67,
350,
6,
5717,
12449,
33,
24541,
18,
588,
31590,
12,
17273,
548,
13,
1084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1685,
7607,
2853,
12,
91,
768,
16,
590,
16,
1339,
4672,
12449,
548,
33,
474,
12,
2293,
9614,
17273,
67,
350,
6,
5717,
12449,
33,
24541,
18,
588,
31590,
12,
17273,
548,
13,
1084,
... |
self.assert_((time.time() - now) >= 1) | self.assert_((time.time() - now) >= 1) | def run(): with JSContext(g) as ctxt: ctxt.eval(""" started.wait(); for (i=0; i<10; i++) { sleep(100); } finished.release(); """) | 550f86f8e1997ee990877076421feaf1936da8eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5451/550f86f8e1997ee990877076421feaf1936da8eb/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
598,
6756,
1042,
12,
75,
13,
487,
14286,
30,
14286,
18,
8622,
2932,
3660,
5746,
18,
7048,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
31,
277,
27245,
288,
5329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
598,
6756,
1042,
12,
75,
13,
487,
14286,
30,
14286,
18,
8622,
2932,
3660,
5746,
18,
7048,
5621,
225,
364,
261,
77,
33,
20,
31,
277,
32,
2163,
31,
277,
27245,
288,
5329,
... |
_compiler_status = (bool(m.group(1)), bool(m.group(2)), bool(m.group(3))) | _compiler_status = (bool(int(m.group(1))), bool(int(m.group(2))), bool(int(m.group(3)))) | def configuration(parent_name='',top_path=None): global config from numpy.distutils.misc_util import Configuration config = Configuration('', parent_name, top_path) return config | 733ebda112453f0dc51d326e230bc2613704195a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/733ebda112453f0dc51d326e230bc2613704195a/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
529,
2218,
2187,
3669,
67,
803,
33,
7036,
4672,
2552,
642,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
642,
273,
4659,
2668,
2187,
982,
67,
529,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
529,
2218,
2187,
3669,
67,
803,
33,
7036,
4672,
2552,
642,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
642,
273,
4659,
2668,
2187,
982,
67,
529,
16,... |
def cb_quit(self, args): | def cb_quit(self, *args): | def cb_quit(self, args): self.close_input() self.close_output() sys.exit(0) | 89a8f9532953b87e4128e8ce87609893e92d59eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/89a8f9532953b87e4128e8ce87609893e92d59eb/Vedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
27176,
12,
2890,
16,
380,
1968,
4672,
365,
18,
4412,
67,
2630,
1435,
365,
18,
4412,
67,
2844,
1435,
2589,
18,
8593,
12,
20,
13,
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,
2875,
67,
27176,
12,
2890,
16,
380,
1968,
4672,
365,
18,
4412,
67,
2630,
1435,
365,
18,
4412,
67,
2844,
1435,
2589,
18,
8593,
12,
20,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if modulename in self._ignore: return self._ignore[modulename] if filename.startswith('<doctest'): self._ignore[modulename] = True return trace.Ignore.names(self, filename, modulename) class MyTrace(trace.Trace): | ignore = self._ignored(modulename) if ignore is None: ignore = True if filename is not None: for d in self._test_dirs: if filename.startswith(d): ignore = False break self._ignore[modulename] = ignore return ignore class TestTrace(trace.Trace): | def names(self, filename, modulename): if modulename in self._ignore: return self._ignore[modulename] | 218761f5207e87fe4d707491732658fb073f0c07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10007/218761f5207e87fe4d707491732658fb073f0c07/testrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1257,
12,
2890,
16,
1544,
16,
31961,
4672,
309,
31961,
316,
365,
6315,
6185,
30,
327,
365,
6315,
6185,
63,
1711,
332,
1069,
65,
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,
1257,
12,
2890,
16,
1544,
16,
31961,
4672,
309,
31961,
316,
365,
6315,
6185,
30,
327,
365,
6315,
6185,
63,
1711,
332,
1069,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
running = False | break | def DefineSign(welcomesite, SignPage): Page = wikipedia.Page(welcomesite, SignPage) SignText = Page.get() reg = "\* (.*?)\n" list_sign = re.findall(reg, SignText) return list_sign | bf50a20b7e53b37ac1a5a7ffeb2895c56bcf1f38 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/bf50a20b7e53b37ac1a5a7ffeb2895c56bcf1f38/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13184,
2766,
12,
91,
292,
10127,
1137,
16,
4383,
1964,
4672,
3460,
273,
21137,
18,
1964,
12,
91,
292,
10127,
1137,
16,
4383,
1964,
13,
4383,
1528,
273,
3460,
18,
588,
1435,
960,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13184,
2766,
12,
91,
292,
10127,
1137,
16,
4383,
1964,
4672,
3460,
273,
21137,
18,
1964,
12,
91,
292,
10127,
1137,
16,
4383,
1964,
13,
4383,
1528,
273,
3460,
18,
588,
1435,
960,
273,
1... |
return self.get_property('ikaaro:username') | return self.get_property('ikaaro:email') | def get_login_name(self): username = self.get_property('ikaaro:username') if username: return username return self.get_property('ikaaro:username') | c9aa66fa5a1a1452988334cab113ec6f1ccdc7c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/c9aa66fa5a1a1452988334cab113ec6f1ccdc7c5/users.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5819,
67,
529,
12,
2890,
4672,
2718,
273,
365,
18,
588,
67,
4468,
2668,
21256,
14349,
30,
5053,
6134,
309,
2718,
30,
327,
2718,
327,
365,
18,
588,
67,
4468,
2668,
21256,
14349... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
5819,
67,
529,
12,
2890,
4672,
2718,
273,
365,
18,
588,
67,
4468,
2668,
21256,
14349,
30,
5053,
6134,
309,
2718,
30,
327,
2718,
327,
365,
18,
588,
67,
4468,
2668,
21256,
14349... |
self.itemDeleteSelected.set_sensitive(can_play and not can_download) | self.itemDeleteSelected.set_sensitive(can_delete or not can_cancel) | def play_or_download(self): if not gpodder.ui.fremantle: if self.wNotebook.get_current_page() > 0: if gpodder.ui.desktop: self.toolCancel.set_sensitive(True) return | 7d12529786792c121765ec2988e490e6deff689e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/7d12529786792c121765ec2988e490e6deff689e/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
67,
280,
67,
7813,
12,
2890,
4672,
309,
486,
4178,
369,
765,
18,
4881,
18,
74,
2764,
970,
298,
30,
309,
365,
18,
91,
19751,
18,
588,
67,
2972,
67,
2433,
1435,
405,
374,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
67,
280,
67,
7813,
12,
2890,
4672,
309,
486,
4178,
369,
765,
18,
4881,
18,
74,
2764,
970,
298,
30,
309,
365,
18,
91,
19751,
18,
588,
67,
2972,
67,
2433,
1435,
405,
374,
30,
3... |
@param warnings: A list of the warnings generated by parsing. Any new warnings generated while will tokenizing this paragraph | @param errors: A list of the errors generated by parsing. Any new errors generated while will tokenizing this paragraph | def _tokenize_literal(lines, start, block_indent, tokens, warnings): """ Construct a L{Token} containing the literal block starting at C{lines[start]}, and append it to C{tokens}. C{block_indent} should be the indentation of the literal block. Any warnings generated while tokenizing the literal block will be appended... | 36ace726c8fc4e9c1a450d16c75087d594ead7cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36ace726c8fc4e9c1a450d16c75087d594ead7cf/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2316,
554,
67,
13107,
12,
3548,
16,
787,
16,
1203,
67,
9355,
16,
2430,
16,
5599,
4672,
3536,
14291,
279,
511,
95,
1345,
97,
4191,
326,
7158,
1203,
5023,
622,
385,
95,
3548,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2316,
554,
67,
13107,
12,
3548,
16,
787,
16,
1203,
67,
9355,
16,
2430,
16,
5599,
4672,
3536,
14291,
279,
511,
95,
1345,
97,
4191,
326,
7158,
1203,
5023,
622,
385,
95,
3548,
63,
... |
report_custom('report.dm.statistics.so.all', 'dm.campaign', '', 'addons/report_dm_advanced/report/order_statistics_all_reports.xsl') | report_custom('report.dm.statistics.so.all', 'dm.campaign', '', 'addons/report_dm_advanced/report/order_statistics_html.xsl' , report_type='html2html') | def create_xml(self, cr, uid, ids, data, context): pool = pooler.get_pool(cr.dbname) # Computing the dates (start of month: som, and end of month: eom) som = datetime.datetime.strptime(data['form']['start_date'],'%Y-%m-%d') eom = datetime.datetime.strptime(data['form']['end_date'],'%Y-%m-%d') | 58aac59cf6f64baf6ff2f6754f6c492d74a0626c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/58aac59cf6f64baf6ff2f6754f6c492d74a0626c/order_statistics_all_reports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
282,
468,
14169,
310,
326,
7811,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
282,
468,
14169,
310,
326,
7811,
261,... |
g['__builtins__']['__import__'] = _imp | del g['__builtins__']['__import__'] del g['__builtins__']['eval'] del g['__builtins__']['dir'] | def _imp(name, globals={}, locals={}, from_list=[], level=-1): raise ImportError | 3a5ff0e42055d6dd0ad6ac045677d13d7a543d77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12347/3a5ff0e42055d6dd0ad6ac045677d13d7a543d77/standard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14532,
12,
529,
16,
10941,
28793,
8985,
28793,
628,
67,
1098,
22850,
6487,
1801,
29711,
21,
4672,
1002,
11308,
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,
14532,
12,
529,
16,
10941,
28793,
8985,
28793,
628,
67,
1098,
22850,
6487,
1801,
29711,
21,
4672,
1002,
11308,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
tx._canvas.line(t_off+x1, y, t_off+x2, y) _doLink(tx, link, (t_off+x1, y, t_off+x2, yl)) | tx._canvas.line(x1, y, x2, y) _doLink(tx, link, (x1, y, x2, yl)) | def _do_post_text(t_off, tx): xs = tx.XtraState leading = xs.style.leading autoLeading = xs.autoLeading f = xs.f if autoLeading=='max': leading = max(leading,1.2*f.fontSize) elif autoLeading=='min': leading = 1.2*f.fontSize ff = 0.125*f.fontSize y0 = xs.cur_y y = y0 - ff csc = None for x1,x2,c in xs.underlines: if c!=c... | b19a51020189c8b6e9ec7ae35919fe53a13f8572 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/b19a51020189c8b6e9ec7ae35919fe53a13f8572/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
2767,
67,
955,
12,
88,
67,
3674,
16,
2229,
4672,
9280,
273,
2229,
18,
60,
2033,
1119,
7676,
273,
9280,
18,
4060,
18,
27200,
3656,
19112,
273,
9280,
18,
6079,
19112,
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,
389,
2896,
67,
2767,
67,
955,
12,
88,
67,
3674,
16,
2229,
4672,
9280,
273,
2229,
18,
60,
2033,
1119,
7676,
273,
9280,
18,
4060,
18,
27200,
3656,
19112,
273,
9280,
18,
6079,
19112,
284,... |
print(pop.indInfo('a')) | self.assertEqual(pop.indInfo('a'), tuple([0.0]*100 + [1.0]*100)) pop.setVirtualSplitter(SexSplitter()) pop.evolve( initOps=InfoExec('a=0'), matingScheme=RandomMating(ops= [MendelianGenoTransmitter(), InfoExec('a=1', subPops=[(ALL_AVAIL,0)]), InfoExec('a=2', subPops=[(ALL_AVAIL,1)])]), gen=1 ) for ind in pop.individual... | def testSubPopsOfDuringMatingOperator(self): 'Testing subPops parameter of during mating operators' pop = Population([100]*10, infoFields='a') pop.evolve( matingScheme=RandomSelection(ops= [CloneGenoTransmitter()] + [InfoExec('a=%d' % i, subPops=i) for i in range(10)]), gen=1 ) print(pop.indInfo('a')) | cce5d124e1db3b5d07ad36209f4f883f29071a2d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/cce5d124e1db3b5d07ad36209f4f883f29071a2d/test_03_operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1676,
52,
4473,
951,
26424,
49,
1776,
5592,
12,
2890,
4672,
296,
22218,
720,
52,
4473,
1569,
434,
4982,
312,
1776,
12213,
11,
1843,
273,
10264,
6234,
3816,
6625,
5772,
2163,
16,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1676,
52,
4473,
951,
26424,
49,
1776,
5592,
12,
2890,
4672,
296,
22218,
720,
52,
4473,
1569,
434,
4982,
312,
1776,
12213,
11,
1843,
273,
10264,
6234,
3816,
6625,
5772,
2163,
16,
11... |
if o == "-p": | if o == '-p': | def opts(): try: opts, args = getopt.getopt(sys.argv[1:], "-p:-h", ["port", "host"]) except getopt.GetoptError, err: print str(err) sys.exit() global host global port host = "localhost" port = 1984 for o, a in opts: if o == "-p": port = int(a) if o == "-h": host = a | 2c08272f70137ab264e2522f23535b6805965cfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13081/2c08272f70137ab264e2522f23535b6805965cfd/BaseX.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1500,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
3701,
84,
30,
17,
76,
3113,
8247,
655,
3113,
315,
2564,
6,
5717,
1335,
336,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1500,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
3701,
84,
30,
17,
76,
3113,
8247,
655,
3113,
315,
2564,
6,
5717,
1335,
336,... |
ses.add_extension(lt.create_ut_pex_plugin); ses.add_extension(lt.create_metadata_plugin); | def main(): from optparse import OptionParser parser = OptionParser() parser.add_option('-p', '--port', type='int', help='set listening port') parser.add_option('-r', '--ratio', type='float', help='set the preferred upload/download ratio. 0 means infinite. Values smaller than 1 are clamped to 1') parser.add_option(... | 4da7a90a0d04a8592ac31e365ce6a9c12e8a6eba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6320/4da7a90a0d04a8592ac31e365ce6a9c12e8a6eba/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
628,
2153,
2670,
1930,
18862,
225,
2082,
273,
18862,
1435,
225,
2082,
18,
1289,
67,
3482,
2668,
17,
84,
2187,
3534,
655,
2187,
618,
2218,
474,
2187,
2809,
2218,
542,
13895,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
628,
2153,
2670,
1930,
18862,
225,
2082,
273,
18862,
1435,
225,
2082,
18,
1289,
67,
3482,
2668,
17,
84,
2187,
3534,
655,
2187,
618,
2218,
474,
2187,
2809,
2218,
542,
13895,
... | |
print "open", askopenfilename(filetypes=[("all files", "*")]).encode(enc) print "saveas", asksaveasfilename().encode(enc) | def askdirectory (**options): "Ask for a directory, and return the file name" return Directory(**options).show() | 8509ebc8f7f5ba7a5691e890179225ba5457a688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8509ebc8f7f5ba7a5691e890179225ba5457a688/tkFileDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
5149,
261,
636,
2116,
4672,
315,
23663,
364,
279,
1867,
16,
471,
327,
326,
585,
508,
6,
327,
8930,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
6827,
5149,
261,
636,
2116,
4672,
315,
23663,
364,
279,
1867,
16,
471,
327,
326,
585,
508,
6,
327,
8930,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
'<a href="http://localhost:8888/echo">back to referring page</a></div>' | '<a href="/echo">back to referring page</a></div>' | def EchoAllHandler(self): """This handler yields a (more) human-readable page listing information about the request header & contents.""" | fd6cfaf721f4da81f4fb19983b73f96c1005f0d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/fd6cfaf721f4da81f4fb19983b73f96c1005f0d8/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28995,
1595,
1503,
12,
2890,
4672,
3536,
2503,
1838,
16932,
279,
261,
10161,
13,
8672,
17,
11018,
1363,
11591,
1779,
2973,
326,
590,
1446,
473,
2939,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
28995,
1595,
1503,
12,
2890,
4672,
3536,
2503,
1838,
16932,
279,
261,
10161,
13,
8672,
17,
11018,
1363,
11591,
1779,
2973,
326,
590,
1446,
473,
2939,
12123,
2,
-100,
-100,
-100,
-100,
-100... |
module = module_set.modules.get_module(modname, ignore_case = True) | module = module_set.get_module(modname, ignore_case = True) | def run(self, config, options, args): packagedb = jhbuild.frontends.get_buildscript(config, []).packagedb module_set = jhbuild.moduleset.load(config) | de2fb74bb5a7672d1534b89ff27ac24b4b4a9ef8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4596/de2fb74bb5a7672d1534b89ff27ac24b4b4a9ef8/info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
642,
16,
702,
16,
833,
4672,
2298,
11349,
70,
273,
525,
76,
3510,
18,
10211,
5839,
18,
588,
67,
3510,
4263,
12,
1425,
16,
5378,
2934,
2920,
11349,
70,
1605,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
642,
16,
702,
16,
833,
4672,
2298,
11349,
70,
273,
525,
76,
3510,
18,
10211,
5839,
18,
588,
67,
3510,
4263,
12,
1425,
16,
5378,
2934,
2920,
11349,
70,
1605,
67,
5... |
update_object(group, 'is_public', _encode(task.is_public)) update_object(group, 'is_deleted', _encode(task.is_deleted)) update_object(group, 'is_current', _encode(task.is_current)) update_object(group, 'user', _encode(task.user.username)) update_object(group, 'downloads', task.downloads) update_object(group, 'hits', ta... | def update_description(h5, task): """Update description group in Task file. @param h5: opened HDF5 file @type h5: h5py.File @param task: Task object as of mldata.org @type task: repository.Task @return: if update was successful @rtype: boolean """ if not 'task_descr' in h5: group = h5.create_group('task_descr') else:... | 03ecd5943db4f7f975ba7af40bdff84d0e42a047 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/03ecd5943db4f7f975ba7af40bdff84d0e42a047/task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
3384,
12,
76,
25,
16,
1562,
4672,
3536,
1891,
2477,
1041,
316,
3837,
585,
18,
225,
632,
891,
366,
25,
30,
10191,
21673,
25,
585,
632,
723,
366,
25,
30,
366,
25,
2074,
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,
1089,
67,
3384,
12,
76,
25,
16,
1562,
4672,
3536,
1891,
2477,
1041,
316,
3837,
585,
18,
225,
632,
891,
366,
25,
30,
10191,
21673,
25,
585,
632,
723,
366,
25,
30,
366,
25,
2074,
18,
... | |
raise casKurImportException("Current\ Model does not contain effective\ temperature:\n\n--------\n\n%s"%model) | raise casKurImportException( "Current Model does not contain effective temperature:" "\n\n--------\n\n%s" % (model,)) | def splitModel(srcPath, dstPath, overwrite=False, verbose=False): """Imports the standard CasKur Modelgrid from srcPath and writes single files to dstPath""" srcPath = os.path.abspath(srcPath) dstPath = os.path.abspath(dstPath) modelData = [] for fname in glob(os.path.join(srcPath,'*.dat')): modelSrc = file(fname).read... | b76c0e53227fd06c62f3298e0a1eb4981bbd5a54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7433/b76c0e53227fd06c62f3298e0a1eb4981bbd5a54/fileio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
1488,
12,
4816,
743,
16,
29845,
16,
6156,
33,
8381,
16,
3988,
33,
8381,
4672,
3536,
13347,
326,
4529,
23561,
47,
295,
3164,
5222,
628,
19497,
471,
7262,
2202,
1390,
358,
29845,
839... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1488,
12,
4816,
743,
16,
29845,
16,
6156,
33,
8381,
16,
3988,
33,
8381,
4672,
3536,
13347,
326,
4529,
23561,
47,
295,
3164,
5222,
628,
19497,
471,
7262,
2202,
1390,
358,
29845,
839... |
print 'Thank you for using Slimv.' | sys.stdout.write( 'Thank you for using Slimv.\n' ) | def server(): """Main server routine: starts REPL and helper threads for sending and receiving data to/from REPL. """ global terminate # First check if server already runs s = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) try: s.connect( ( 'localhost', PORT ) ) except socket.error, msg: # Server not found, our t... | fd081abd0af582428041d7b17f7ef9f605828342 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10890/fd081abd0af582428041d7b17f7ef9f605828342/slimv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
13332,
3536,
6376,
1438,
12245,
30,
2542,
2438,
6253,
471,
4222,
7403,
364,
5431,
471,
15847,
501,
358,
19,
2080,
2438,
6253,
18,
3536,
2552,
10850,
225,
468,
5783,
866,
309,
1438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
13332,
3536,
6376,
1438,
12245,
30,
2542,
2438,
6253,
471,
4222,
7403,
364,
5431,
471,
15847,
501,
358,
19,
2080,
2438,
6253,
18,
3536,
2552,
10850,
225,
468,
5783,
866,
309,
1438,
... |
if det1 == det2: return 0.0 | def response( gpsTime, ra_rad, de_rad, iota_rad, psi_rad, det ): """ Calculates the antenna factors for a detector 'det' (e.g. 'H1') at a given gps time (as integer) for a given sky location (ra_deg, dec_deg) [degree]. This computation also takes into account a specific inclination iota_deg and polarization psi_deg, a... | 2b713dfe9f4c4fcbee429db057b5ade8ece61b2a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/2b713dfe9f4c4fcbee429db057b5ade8ece61b2a/antenna.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
20985,
950,
16,
767,
67,
6012,
16,
443,
67,
6012,
16,
277,
25441,
67,
6012,
16,
23921,
67,
6012,
16,
3023,
262,
30,
225,
3536,
26128,
326,
392,
2253,
6582,
14490,
364,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
20985,
950,
16,
767,
67,
6012,
16,
443,
67,
6012,
16,
277,
25441,
67,
6012,
16,
23921,
67,
6012,
16,
3023,
262,
30,
225,
3536,
26128,
326,
392,
2253,
6582,
14490,
364,
279,
... | |
os.chdir(_CHROMIUMOS_OVERLAYS_DIRECTORY) | overlay_directory = '%s/third_party/chromiumos-overlay' % gflags.FLAGS.srcroot os.chdir(overlay_directory) | def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split() if gflags.FLAGS.commit_ids: commit_id_list = gflags.FLAGS.commit_ids.split() e... | 52ed3f969a6f70a1ba9767de39064db467fdc4b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/52ed3f969a6f70a1ba9767de39064db467fdc4b9/cros_mark_as_stable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
5261,
273,
314,
7133,
18,
17836,
12,
19485,
13,
309,
562,
12,
19485,
13,
480,
576,
30,
389,
5108,
5357,
1876,
23196,
2668,
10136,
4800,
279,
923,
1296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
5261,
273,
314,
7133,
18,
17836,
12,
19485,
13,
309,
562,
12,
19485,
13,
480,
576,
30,
389,
5108,
5357,
1876,
23196,
2668,
10136,
4800,
279,
923,
1296,
... |
dirlist = get_list_to_remove(root, proj_tree, options.revision) | dirlist = get_list_to_remove(root_url, proj_tree, options.revision) | def main(): global verbose parser = OptionParser("Usage: %prog [options] project") parser.add_option("-v", "--verbose", action="store_true", dest="verbose") parser.add_option("-m", "--message", dest="message", help="SVN message", default="Release tagged") parser.add_option("-f", "--project-file", dest="proj_file", defa... | f40bb500c4085ce9f38ae6a88f49954490860e4c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/310/f40bb500c4085ce9f38ae6a88f49954490860e4c/svn_tag_release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
3988,
2082,
273,
18862,
2932,
5357,
30,
738,
14654,
306,
2116,
65,
1984,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
90,
3113,
5238,
11369,
3113,
1301,
1546,
2233,
67,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
3988,
2082,
273,
18862,
2932,
5357,
30,
738,
14654,
306,
2116,
65,
1984,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
90,
3113,
5238,
11369,
3113,
1301,
1546,
2233,
67,
3... |
_log.debug("%s interrupted" % self._name) | _log.debug("%s interrupted" % self.getName()) | def _covered_run(self): # FIXME: this is a separate routine to work around a bug # in coverage: see http://bitbucket.org/ned/coveragepy/issue/85. self._thread_id = thread.get_ident() self._start_time = time.time() try: _log.debug('%s starting' % (self._name)) self._run(test_runner=None, result_summary=None) _log.debug(... | e504b6729ab450a70b4055619c3d2bf16926c6c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e504b6729ab450a70b4055619c3d2bf16926c6c7/dump_render_tree_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16810,
67,
2681,
12,
2890,
4672,
468,
9852,
30,
333,
353,
279,
9004,
12245,
358,
1440,
6740,
279,
7934,
468,
316,
11196,
30,
2621,
1062,
2207,
3682,
7242,
18,
3341,
19,
11748,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16810,
67,
2681,
12,
2890,
4672,
468,
9852,
30,
333,
353,
279,
9004,
12245,
358,
1440,
6740,
279,
7934,
468,
316,
11196,
30,
2621,
1062,
2207,
3682,
7242,
18,
3341,
19,
11748,
19,
... |
close_sudo(self, child) | close_sudo(self, child, sudo_passwd) | def close_sudo(self, child): """packed into a function because we maybe need to call it again and again...""" res = child.expect([response.ENTER_SUDO_PASSWORD, response.SUDO_WRONG_PASSWORD, response.DISMOUNTING_SUCCESSFULL, pexpect.EOF], timeout=200) if res == 0: child.sendline(sudo_passwd) return self.close_sudo(child... | 60b3b9a27c4ff72b2dcd101c13a745afaffb647f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3000/60b3b9a27c4ff72b2dcd101c13a745afaffb647f/truecrypt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
67,
20566,
12,
2890,
16,
1151,
4672,
3536,
2920,
329,
1368,
279,
445,
2724,
732,
6944,
1608,
358,
745,
518,
3382,
471,
3382,
7070,
3660,
400,
273,
1151,
18,
12339,
3816,
2740,
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,
1746,
67,
20566,
12,
2890,
16,
1151,
4672,
3536,
2920,
329,
1368,
279,
445,
2724,
732,
6944,
1608,
358,
745,
518,
3382,
471,
3382,
7070,
3660,
400,
273,
1151,
18,
12339,
3816,
2740,
18,
... |
ascent, descent = getAscentDescent(f.fontName) ascent *= fontSize/1000. descent *= fontSize/1000. | ascent, descent = getAscentDescent(fontName,fontSize) | def breakLines(self, width): """ Returns a broken line structure. There are two cases | b20593b0e74d80d5e38c0378da65b41d2a71c9b4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/b20593b0e74d80d5e38c0378da65b41d2a71c9b4/xpreformatted.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
5763,
12,
2890,
16,
1835,
4672,
3536,
2860,
279,
12933,
980,
3695,
18,
6149,
854,
2795,
6088,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
5763,
12,
2890,
16,
1835,
4672,
3536,
2860,
279,
12933,
980,
3695,
18,
6149,
854,
2795,
6088,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._unlinkFiles( newProxyLocation ) | File.deleteMultiProxy( proxyDict ) | def getDelegatedProxy( self, proxyChain, lifeTime = 604800, useDNAsUserName = False ): """ Get delegated proxy from MyProxy server return S_OK( X509Chain ) / S_ERROR """ #TODO: Set the proxy coming in proxyString to be the proxy to use | 0e1b6f62ad60bdfc987791709c4dba8510acf5ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e1b6f62ad60bdfc987791709c4dba8510acf5ab/MyProxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
13451,
690,
3886,
12,
365,
16,
2889,
3893,
16,
17140,
950,
273,
1666,
3028,
17374,
16,
999,
8609,
1463,
15296,
273,
1083,
262,
30,
3536,
968,
30055,
2889,
628,
8005,
3886,
1438,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
13451,
690,
3886,
12,
365,
16,
2889,
3893,
16,
17140,
950,
273,
1666,
3028,
17374,
16,
999,
8609,
1463,
15296,
273,
1083,
262,
30,
3536,
968,
30055,
2889,
628,
8005,
3886,
1438,
32... |
for axis,group,data,subplot in mgr.subplots: | for axis,group,data,cb,subplot in mgr.subplots: | def update(G=None, x=-1, y=-1): mgr = plt.get_current_fig_manager() if G is None: for axis,group,data,subplot in mgr.subplots: if hasattr(group, 'mask'): D = np.where(group.mask,data,np.NaN) else: D = data axis.set_data(D) else: for axis,group,data,subplot in mgr.subplots: axis.set_data(np.empty_like(data)*np.NaN) if h... | e02ec6ba73972ecb234700295bf10aa4a5906799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12213/e02ec6ba73972ecb234700295bf10aa4a5906799/display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
43,
33,
7036,
16,
619,
29711,
21,
16,
677,
29711,
21,
4672,
13333,
273,
5451,
18,
588,
67,
2972,
67,
470,
67,
4181,
1435,
309,
611,
353,
599,
30,
364,
2654,
16,
1655,
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,
1089,
12,
43,
33,
7036,
16,
619,
29711,
21,
16,
677,
29711,
21,
4672,
13333,
273,
5451,
18,
588,
67,
2972,
67,
470,
67,
4181,
1435,
309,
611,
353,
599,
30,
364,
2654,
16,
1655,
16,
... |
self.assertEqual(pickle.dumps(True), "I01\n.") self.assertEqual(pickle.dumps(False), "I00\n.") self.assertEqual(pickle.dumps(True, True), "I01\n.") self.assertEqual(pickle.dumps(False, True), "I00\n.") | self.assertEqual(pickle.dumps(True, protocol=0), b"I01\n.") self.assertEqual(pickle.dumps(False, protocol=0), b"I00\n.") self.assertEqual(pickle.dumps(True, protocol=1), b"I01\n.") self.assertEqual(pickle.dumps(False, protocol=1), b"I00\n.") self.assertEqual(pickle.dumps(True, protocol=2), b'\x80\x02\x88.') self.assert... | def test_picklevalues(self): # Test for specific backwards-compatible pickle values import pickle self.assertEqual(pickle.dumps(True), "I01\n.") self.assertEqual(pickle.dumps(False), "I00\n.") self.assertEqual(pickle.dumps(True, True), "I01\n.") self.assertEqual(pickle.dumps(False, True), "I00\n.") | 8b12bf09e94767aa29b819398658823de9a5f5fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/8b12bf09e94767aa29b819398658823de9a5f5fa/test_bool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20847,
2372,
12,
2890,
4672,
468,
7766,
364,
2923,
12727,
17,
10943,
13379,
924,
1930,
13379,
365,
18,
11231,
5812,
12,
20847,
18,
13302,
1121,
12,
5510,
3631,
315,
45,
1611,
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,
1842,
67,
20847,
2372,
12,
2890,
4672,
468,
7766,
364,
2923,
12727,
17,
10943,
13379,
924,
1930,
13379,
365,
18,
11231,
5812,
12,
20847,
18,
13302,
1121,
12,
5510,
3631,
315,
45,
1611,
6... |
get().open(url, new, autoraise) | for name in _tryorder: browser = get(name) if browser.open(url, new, autoraise): return True return False | def open(url, new=0, autoraise=1): get().open(url, new, autoraise) | 2e17d91b4cf4bb0fb2a60b21783a4491e2a33017 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2e17d91b4cf4bb0fb2a60b21783a4491e2a33017/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
718,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
364,
508,
316,
389,
698,
1019,
30,
4748,
273,
336,
12,
529,
13,
309,
4748,
18,
3190,
12,
718,
16,
394,
16,
2059,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
12,
718,
16,
394,
33,
20,
16,
2059,
10610,
784,
33,
21,
4672,
364,
508,
316,
389,
698,
1019,
30,
4748,
273,
336,
12,
529,
13,
309,
4748,
18,
3190,
12,
718,
16,
394,
16,
2059,... |
if status is not None and status.has_key(id): value = status[id] | if status is not None and status.has_key(name): value = status[name] | vdef = self.variables[name] | 451342a55ed46c94055c88135197de43f91d2ff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/451342a55ed46c94055c88135197de43f91d2ff2/DCWorkflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
331,
536,
273,
365,
18,
7528,
63,
529,
65,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
331,
536,
273,
365,
18,
7528,
63,
529,
65,
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,
-1... |
def fix_makefile(makefile, m32): """Fix makefile for 64bit | def create_makefile64(makefile, m32): """Create and fix makefile for 64bit | def fix_makefile(makefile, m32): """Fix makefile for 64bit Replace 32 with 64bit directories """ if not os.path.isfile(m32): return with open(m32) as fin: with open(makefile, 'w') as fout: for line in fin: line = line.replace("=tmp32", "=tmp64") line = line.replace("=out32", "=out64") line = line.replace("=inc32", "=i... | e732b709d10fd43a880521cee186491db89ee95d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/e732b709d10fd43a880521cee186491db89ee95d/build_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6540,
768,
1105,
12,
6540,
768,
16,
312,
1578,
4672,
3536,
1684,
471,
2917,
1221,
768,
364,
5178,
3682,
225,
6910,
3847,
598,
5178,
3682,
6402,
3536,
309,
486,
1140,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6540,
768,
1105,
12,
6540,
768,
16,
312,
1578,
4672,
3536,
1684,
471,
2917,
1221,
768,
364,
5178,
3682,
225,
6910,
3847,
598,
5178,
3682,
6402,
3536,
309,
486,
1140,
18,
803,
... |
raise NameError, "ERROR: DATASETNAME not defined" | print "DATASETNAME not defined !" if not datasettype == 'TIER3': sys.exit(EC_Configuration) else: datasetnames = [] | def register_datasets_in_container(container, dataset): """Register dataset in container""" if not container.endswith('/'): containerName = container+'/' # Check if container already exists containerinfo = {} try: dq2_lock.acquire() try: containerinfo = dq2.listDatasets(containerName) except: containerinfo = {} final... | 69f483dfa5790282a13e8434a914e975bc2f1891 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/69f483dfa5790282a13e8434a914e975bc2f1891/ganga-stage-in-out-dq2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
21125,
67,
267,
67,
3782,
12,
3782,
16,
3709,
4672,
3536,
3996,
3709,
316,
1478,
8395,
225,
309,
486,
1478,
18,
5839,
1918,
2668,
2473,
4672,
20408,
273,
1478,
6797,
2473,
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,
1744,
67,
21125,
67,
267,
67,
3782,
12,
3782,
16,
3709,
4672,
3536,
3996,
3709,
316,
1478,
8395,
225,
309,
486,
1478,
18,
5839,
1918,
2668,
2473,
4672,
20408,
273,
1478,
6797,
2473,
225,... |
event_list = client.event.getList(datetime = (starttime, endtime)) | event_list = client.event.getList(datetime=(starttime, endtime)) | def xcorrEvents(starttime, endtime, network_id='*', station_id='*', location_id='', channel_id='EHE', phase='P', time_window=(-10, 40), winlen=10.0): """ """ # get all events betwenn start and end time event_list = client.event.getList(datetime = (starttime, endtime)) for event in event_list: print "EVENT:", event['dat... | eaae164587ff3e53e5bb057afc519a3a6dac28e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/eaae164587ff3e53e5bb057afc519a3a6dac28e5/eventcluster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
17515,
3783,
12,
1937,
957,
16,
31361,
16,
2483,
67,
350,
2218,
14,
2187,
13282,
67,
350,
2218,
14,
2187,
2117,
67,
350,
2218,
2187,
1904,
67,
350,
2218,
41,
3900,
2187,
6855,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
17515,
3783,
12,
1937,
957,
16,
31361,
16,
2483,
67,
350,
2218,
14,
2187,
13282,
67,
350,
2218,
14,
2187,
2117,
67,
350,
2218,
2187,
1904,
67,
350,
2218,
41,
3900,
2187,
6855,
221... |
count = N.product(shape)*dtype.itemsize res = N.fromstring(datastring, count=count) | count = N.product(shape) res = N.fromstring(datastring, dtype=dtype, count=count) | def fromstring(datastring, type=None, shape=None, typecode=None, dtype=None): dtype = type2dtype(typecode, type, dtype, True) if shape is None: count = -1 else: count = N.product(shape)*dtype.itemsize res = N.fromstring(datastring, count=count) if shape is not None: res.shape = shape return res | 514e1f74f8aec7da732a181a071afc060ef1669e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/514e1f74f8aec7da732a181a071afc060ef1669e/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21376,
12,
13178,
371,
16,
618,
33,
7036,
16,
2179,
33,
7036,
16,
618,
710,
33,
7036,
16,
3182,
33,
7036,
4672,
3182,
273,
618,
22,
8972,
12,
723,
710,
16,
618,
16,
3182,
16,
1053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21376,
12,
13178,
371,
16,
618,
33,
7036,
16,
2179,
33,
7036,
16,
618,
710,
33,
7036,
16,
3182,
33,
7036,
4672,
3182,
273,
618,
22,
8972,
12,
723,
710,
16,
618,
16,
3182,
16,
1053,
... |
result.append(' CoreIPC::handleMessage<Messages::%s::%s>(arguments, this, &%s);\n' % (receiver.name, message.name, handler_function(receiver, message))) | result.append(' CoreIPC::%s<Messages::%s::%s>(arguments, this, &%s);\n' % (dispatch_function, receiver.name, message.name, handler_function(receiver, message))) | def async_case_statement(receiver, message): result = [] result.append(' case Messages::%s::%s:\n' % (receiver.name, message.id())) result.append(' CoreIPC::handleMessage<Messages::%s::%s>(arguments, this, &%s);\n' % (receiver.name, message.name, handler_function(receiver, message))) result.append(' re... | 2890b51ee1644f32844678d46d455c20d95f32fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/2890b51ee1644f32844678d46d455c20d95f32fb/messages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4326,
67,
3593,
67,
11516,
12,
24454,
16,
883,
4672,
563,
273,
5378,
563,
18,
6923,
2668,
565,
648,
4838,
2866,
9,
87,
2866,
9,
87,
5581,
82,
11,
738,
261,
24454,
18,
529,
16,
883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4326,
67,
3593,
67,
11516,
12,
24454,
16,
883,
4672,
563,
273,
5378,
563,
18,
6923,
2668,
565,
648,
4838,
2866,
9,
87,
2866,
9,
87,
5581,
82,
11,
738,
261,
24454,
18,
529,
16,
883,
... |
self.aliasList = [ NSMutableDictionary.dictionaryWithDictionary_(x) for x in self.selectedAccount.aliases ] | self.aliasList = self.selectedAccount.aliases | def redrawArray(self): self.aliasList = [ NSMutableDictionary.dictionaryWithDictionary_(x) for x in self.selectedAccount.aliases ] self.arrayController.setContent_(self.aliasList) | 57ab6bef5efa47b78e83a444732ea9cdacaf9295 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4895/57ab6bef5efa47b78e83a444732ea9cdacaf9295/mailVirtualAppDelegate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16540,
1076,
12,
2890,
4672,
365,
18,
4930,
682,
273,
365,
18,
8109,
3032,
18,
13831,
365,
18,
1126,
2933,
18,
542,
1350,
67,
12,
2890,
18,
4930,
682,
13,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16540,
1076,
12,
2890,
4672,
365,
18,
4930,
682,
273,
365,
18,
8109,
3032,
18,
13831,
365,
18,
1126,
2933,
18,
542,
1350,
67,
12,
2890,
18,
4930,
682,
13,
2,
-100,
-100,
-100,
-100,
... |
f = _fileio._FileIO("/dev/tty", "a") self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) self.assertEquals(f.isatty(), True) f.close() | if not sys.platform.startswith("win"): f = _fileio._FileIO("/dev/tty", "a") self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) if sys.platform != "darwin": self.assertEquals(f.seekable(), False) self.assertEquals(f.isatty(), True) f.close() | def testAbles(self): try: f = _fileio._FileIO(TESTFN, "w") self.assertEquals(f.readable(), False) self.assertEquals(f.writable(), True) self.assertEquals(f.seekable(), True) f.close() f = _fileio._FileIO(TESTFN, "r") self.assertEquals(f.readable(), True) self.assertEquals(f.writable(), False) self.assertEquals(f.seeka... | 4f8c879737ba380278c81ebc3b898690e4d74e6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/4f8c879737ba380278c81ebc3b898690e4d74e6b/test_fileio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5895,
1040,
12,
2890,
4672,
775,
30,
284,
273,
389,
768,
1594,
6315,
812,
4294,
12,
16961,
19793,
16,
315,
91,
7923,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1083,
13,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5895,
1040,
12,
2890,
4672,
775,
30,
284,
273,
389,
768,
1594,
6315,
812,
4294,
12,
16961,
19793,
16,
315,
91,
7923,
365,
18,
11231,
8867,
12,
74,
18,
11018,
9334,
1083,
13,
365,... |
check(make_url('/', c='Poetry', as=0, ln=CFG_SITE_LANG), make_url('/collection/Poetry')) | check(make_url('/', c='Poetry', as=0), make_url('/collection/Poetry', ln=CFG_SITE_LANG)) | def check(legacy, new, browser=browser): browser.open(legacy) got = browser.geturl() | 3f3352e2fd761214c39d2c825fc6666c39234fe2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2139/3f3352e2fd761214c39d2c825fc6666c39234fe2/websearch_regression_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
17386,
16,
394,
16,
4748,
33,
11213,
4672,
4748,
18,
3190,
12,
17386,
13,
2363,
273,
4748,
18,
588,
718,
1435,
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,
866,
12,
17386,
16,
394,
16,
4748,
33,
11213,
4672,
4748,
18,
3190,
12,
17386,
13,
2363,
273,
4748,
18,
588,
718,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def string_reverse(s): chars = list(s) chars.reverse() return "".join(chars) def bigendian_to_native(value): if isbigendian: return value else: return string_reverse(value) | def any_err(func, *args): try: apply(func, args) except (struct.error, OverflowError, TypeError): pass else: raise TestFailed, "%s%s did not raise error" % ( func.__name__, args) | a33eaf4d5875d32d04010e17db485499c6b664cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a33eaf4d5875d32d04010e17db485499c6b664cc/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1281,
67,
370,
12,
644,
16,
380,
1968,
4672,
775,
30,
2230,
12,
644,
16,
833,
13,
1335,
261,
1697,
18,
1636,
16,
10752,
2426,
668,
16,
3580,
4672,
1342,
469,
30,
1002,
7766,
2925,
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,
1281,
67,
370,
12,
644,
16,
380,
1968,
4672,
775,
30,
2230,
12,
644,
16,
833,
13,
1335,
261,
1697,
18,
1636,
16,
10752,
2426,
668,
16,
3580,
4672,
1342,
469,
30,
1002,
7766,
2925,
16... | |
bspline.__init__(self, knots, order=order, coef=coef, M=M) | BSpline.__init__(self, knots, order=order, coef=coef, M=M) | def __init__(self, knots, order=4, coef=None, M=None, target_df=None): if target_df is not None: self.target_df = target_df bspline.__init__(self, knots, order=order, coef=coef, M=M) self.target_reached = False | 40727adec0b22a7020a211ad7515e12deded0d80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/40727adec0b22a7020a211ad7515e12deded0d80/smoothers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22278,
87,
16,
1353,
33,
24,
16,
17332,
33,
7036,
16,
490,
33,
7036,
16,
1018,
67,
2180,
33,
7036,
4672,
309,
1018,
67,
2180,
353,
486,
599,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22278,
87,
16,
1353,
33,
24,
16,
17332,
33,
7036,
16,
490,
33,
7036,
16,
1018,
67,
2180,
33,
7036,
4672,
309,
1018,
67,
2180,
353,
486,
599,
30,
365,
... |
label.set_markup ("<span color=' | label.set_markup ("<span color=' | def __init__ (self, context, name, plugins=None): gtk.VBox.__init__ (self) | 5ac5c72d9f7a641d58bafe27739b373e7ae36b4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7183/5ac5c72d9f7a641d58bafe27739b373e7ae36b4d/Widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
819,
16,
508,
16,
4799,
33,
7036,
4672,
22718,
18,
58,
3514,
16186,
2738,
972,
261,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
819,
16,
508,
16,
4799,
33,
7036,
4672,
22718,
18,
58,
3514,
16186,
2738,
972,
261,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.tts.speak("") | self.tts.initialized=1 try: self.tts.select(value) except: pass | def _set_voice(self,value): try: self.tts.select(value) except: pass self.tts.speak("") | 614a2d9712da05f6a447b03b3260a6718cef4bec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/614a2d9712da05f6a447b03b3260a6718cef4bec/sapi4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
25993,
12,
2890,
16,
1132,
4672,
775,
30,
365,
18,
748,
87,
18,
4025,
12,
1132,
13,
1335,
30,
1342,
365,
18,
748,
87,
18,
87,
10244,
2932,
7923,
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,
389,
542,
67,
25993,
12,
2890,
16,
1132,
4672,
775,
30,
365,
18,
748,
87,
18,
4025,
12,
1132,
13,
1335,
30,
1342,
365,
18,
748,
87,
18,
87,
10244,
2932,
7923,
2,
-100,
-100,
-100,
... |
def export(self, filename=None, text=False, options=''): | def export(self, revs, filename='%R.patch', text=False, options=''): | def export(self, filename=None, text=False, options=''): r""" dump the header and diffs for one or more changesets | 26f1ce262139178120e57ecce50a701a3c58d851 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/26f1ce262139178120e57ecce50a701a3c58d851/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
5588,
87,
16,
1544,
28713,
54,
18,
2272,
2187,
977,
33,
8381,
16,
702,
2218,
11,
4672,
436,
8395,
4657,
326,
1446,
471,
15250,
364,
1245,
578,
1898,
3478,
2413,
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,
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,
3359,
12,
2890,
16,
5588,
87,
16,
1544,
28713,
54,
18,
2272,
2187,
977,
33,
8381,
16,
702,
2218,
11,
4672,
436,
8395,
4657,
326,
1446,
471,
15250,
364,
1245,
578,
1898,
3478,
2413,
2,
... |
sys.stderr.write("Skipping %s because of memory " "constraint\n" % (f.__name__,)) | sys.stderr.write("Skipping %s checking CPython-specific " "implementation details\n" % (f.__name__,)) | def _skip_check_impl_detail(*args, **kwds): if verbose: sys.stderr.write("Skipping %s because of memory " "constraint\n" % (f.__name__,)) return | c4afa60dba789ba7a70b03630bfc7d1b7e57015b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/c4afa60dba789ba7a70b03630bfc7d1b7e57015b/test_support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7457,
67,
1893,
67,
11299,
67,
8992,
30857,
1968,
16,
2826,
25577,
4672,
309,
3988,
30,
2589,
18,
11241,
18,
2626,
2932,
16877,
738,
87,
6728,
5181,
18490,
17,
12524,
315,
315,
3081... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
7457,
67,
1893,
67,
11299,
67,
8992,
30857,
1968,
16,
2826,
25577,
4672,
309,
3988,
30,
2589,
18,
11241,
18,
2626,
2932,
16877,
738,
87,
6728,
5181,
18490,
17,
12524,
315,
315,
3081... |
copyfile(source, d, "pyblosxom.cgi") | copyfile(source, d, "pyblosxom.cgi", fix=True) | def copyfile(frompath, topath, fn, fix=False): if verbose: print "Creating file '%s'..." % os.path.join(topath, fn) fp = open(os.path.join(frompath, fn), "r") filedata = fp.readlines() fp.close() | f80a9bff55385d2291231db39bcc1d93c837288d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/f80a9bff55385d2291231db39bcc1d93c837288d/commandline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29310,
12,
2080,
803,
16,
358,
803,
16,
2295,
16,
2917,
33,
8381,
4672,
309,
3988,
30,
1172,
315,
11092,
585,
1995,
87,
11,
7070,
738,
1140,
18,
803,
18,
5701,
12,
3669,
421,
16,
229... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29310,
12,
2080,
803,
16,
358,
803,
16,
2295,
16,
2917,
33,
8381,
4672,
309,
3988,
30,
1172,
315,
11092,
585,
1995,
87,
11,
7070,
738,
1140,
18,
803,
18,
5701,
12,
3669,
421,
16,
229... |
] | ] | def _debug_timepycode(self): #bruce 051117 debug_timing_test_pycode_from_a_dialog( ) return | 0a362081acc304c266ff5f7c9038a2e2a7a41b9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/0a362081acc304c266ff5f7c9038a2e2a7a41b9c/DebugMenuMixin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4148,
67,
957,
2074,
710,
12,
2890,
4672,
468,
2848,
3965,
15331,
2499,
4033,
1198,
67,
8584,
310,
67,
3813,
67,
2074,
710,
67,
2080,
67,
69,
67,
12730,
12,
262,
327,
225,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4148,
67,
957,
2074,
710,
12,
2890,
4672,
468,
2848,
3965,
15331,
2499,
4033,
1198,
67,
8584,
310,
67,
3813,
67,
2074,
710,
67,
2080,
67,
69,
67,
12730,
12,
262,
327,
225,
2,
-1... |
try: errcode = string.atoi(code) except(ValueError): errcode = -1 | def getreply(self): """Get a reply from the server. Returns a tuple consisting of: | 2472395e599e7cdf7eccb72df39ca58c3c0c78ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2472395e599e7cdf7eccb72df39ca58c3c0c78ff/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
10629,
12,
2890,
4672,
3536,
967,
279,
4332,
628,
326,
1438,
18,
225,
2860,
279,
3193,
23570,
434,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10629,
12,
2890,
4672,
3536,
967,
279,
4332,
628,
326,
1438,
18,
225,
2860,
279,
3193,
23570,
434,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
else: | elif ctx: | def _action_inv(self, cursor, user, menu_id, name, value, arg, context=None): if context is None: context = {} ctx = context.copy() if self.CONCURRENCY_CHECK_FIELD in ctx: del ctx[self.CONCURRENCY_CHECK_FIELD] values_obj = self.pool.get('ir.values') values_ids = values_obj.search(cursor, user, [ ('model', '=', self._na... | 9bcf97fa2d8268d95b64691cfe128d3c47a63646 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/9bcf97fa2d8268d95b64691cfe128d3c47a63646/ir_ui_menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1128,
67,
5768,
12,
2890,
16,
3347,
16,
729,
16,
3824,
67,
350,
16,
508,
16,
460,
16,
1501,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
1103,
273,
819,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1128,
67,
5768,
12,
2890,
16,
3347,
16,
729,
16,
3824,
67,
350,
16,
508,
16,
460,
16,
1501,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
1103,
273,
819,
18... |
def hashlib_wrap( string ): | def hashlib_wrap( self, string ): | def hashlib_wrap( string ): ''' enable python2.4 / python2.6 compatibility ''' try: from hashlib import sha1 h=sha1(string) except: from sha import sha h=sha.new(string) | 978c929d4c13df89b73a9d8e3f60058f0533230b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/978c929d4c13df89b73a9d8e3f60058f0533230b/Proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15956,
67,
4113,
12,
365,
16,
533,
262,
30,
9163,
4237,
5790,
22,
18,
24,
342,
5790,
22,
18,
26,
8926,
9163,
775,
30,
628,
15956,
1930,
6056,
21,
366,
33,
7819,
21,
12,
1080,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15956,
67,
4113,
12,
365,
16,
533,
262,
30,
9163,
4237,
5790,
22,
18,
24,
342,
5790,
22,
18,
26,
8926,
9163,
775,
30,
628,
15956,
1930,
6056,
21,
366,
33,
7819,
21,
12,
1080,
13,
1... |
return False | return False | def ChangeDirToSCClassLibraryFolder(self): # first, we check if the current working folder # contains an item called 'SCClassLibrary' curPath = os.getcwd() listOfFolders = os.listdir(curPath) | cc443dd98e01d739acfd83b09946a7583c28ee2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14712/cc443dd98e01d739acfd83b09946a7583c28ee2f/Psycollider.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1621,
774,
2312,
797,
9313,
3899,
12,
2890,
4672,
468,
1122,
16,
732,
866,
309,
326,
783,
5960,
3009,
468,
1914,
392,
761,
2566,
296,
2312,
797,
9313,
11,
662,
743,
273,
1140,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1621,
774,
2312,
797,
9313,
3899,
12,
2890,
4672,
468,
1122,
16,
732,
866,
309,
326,
783,
5960,
3009,
468,
1914,
392,
761,
2566,
296,
2312,
797,
9313,
11,
662,
743,
273,
1140,
18... |
if i == int(m.group(1), 16): if int(m.group(2), 16) >= maxmapping: | if i >= low and i <= high: if val >= maxmapping: | def printTable(f, t): i = f while i <= t: c = array[i] print "0x%04x," % c, i = i + 1 if not i % 8: print "\n\t", | fa94fc6f77863e36f009e4fa867c60b51eeb19df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/fa94fc6f77863e36f009e4fa867c60b51eeb19df/generate_table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1388,
12,
74,
16,
268,
4672,
277,
273,
284,
1323,
277,
1648,
268,
30,
276,
273,
526,
63,
77,
65,
1172,
315,
20,
92,
9,
3028,
92,
10837,
738,
276,
16,
277,
273,
277,
397,
404,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
1388,
12,
74,
16,
268,
4672,
277,
273,
284,
1323,
277,
1648,
268,
30,
276,
273,
526,
63,
77,
65,
1172,
315,
20,
92,
9,
3028,
92,
10837,
738,
276,
16,
277,
273,
277,
397,
404,... |
version.""" | version. Note ---- If for some reason the requested version could not be found, an exception which inherits from VisualCException will be raised.""" | def find_vc_pdir(msvc_version): """Try to find the product directory for the given version.""" root = 'Software\\' if common.is_win64(): root = root + 'Wow6432Node\\' try: hkeys = _VCVER_TO_PRODUCT_DIR[msvc_version] except KeyError: debug("Unknown version of MSVC: %s" % msvc_version) raise UnsupportedVersion("Unknown v... | 8f7b6c272c2bb736d96cedc641953d5e5b55dd2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12817/8f7b6c272c2bb736d96cedc641953d5e5b55dd2f/vc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4227,
67,
84,
1214,
12,
959,
4227,
67,
1589,
4672,
3536,
7833,
358,
1104,
326,
3017,
1867,
364,
326,
864,
1177,
18,
225,
3609,
27927,
971,
364,
2690,
3971,
326,
3764,
1177,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4227,
67,
84,
1214,
12,
959,
4227,
67,
1589,
4672,
3536,
7833,
358,
1104,
326,
3017,
1867,
364,
326,
864,
1177,
18,
225,
3609,
27927,
971,
364,
2690,
3971,
326,
3764,
1177,
3... |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SelectItem(self, item, select=True): """Selects/deselects an item.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6766,
1180,
12,
2890,
16,
761,
16,
2027,
33,
5510,
4672,
3536,
24093,
19,
5489,
13759,
87,
392,
761,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6766,
1180,
12,
2890,
16,
761,
16,
2027,
33,
5510,
4672,
3536,
24093,
19,
5489,
13759,
87,
392,
761,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
raise Exception('[Error] unknown error for "'+self.bot.nickname+'" on bridge "'+str(self)+'", limit seems to be '+str(arguments[0])) | raise Exception('[Error] unknown error for "'+self.bot.nickname+'" on bridge "'+str(self)+'"') | def _irc_nick_callback(self, error, arguments=[]): if error == None: if self.mode == None: return self.irc_connection.join(self.irc_room) self.bot.error('===> Debug: successfully connected on IRC side of bridge "'+str(self)+'"', debug=True) self.say('[Notice] bridge "'+str(self)+'" is running in '+self.mode+' mode', on... | ce50101a01b0559af8845fa4c4bfbc1432c29caf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/ce50101a01b0559af8845fa4c4bfbc1432c29caf/bridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
481,
71,
67,
17091,
67,
3394,
12,
2890,
16,
555,
16,
1775,
33,
8526,
4672,
309,
555,
422,
599,
30,
309,
365,
18,
3188,
422,
599,
30,
327,
365,
18,
481,
71,
67,
4071,
18,
5701,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
481,
71,
67,
17091,
67,
3394,
12,
2890,
16,
555,
16,
1775,
33,
8526,
4672,
309,
555,
422,
599,
30,
309,
365,
18,
3188,
422,
599,
30,
327,
365,
18,
481,
71,
67,
4071,
18,
5701,... |
if not is_unavailable_exception(e): expected_err = "invalid literal for int() with base 10: 'I am broken'" self.assertEqual(e.headers.get("x-exception"), expected_err) self.assertTrue(e.headers.get("x-traceback") is not None) | expected_err = "invalid literal for int() with base 10: 'I am broken'" self.assertEqual(e.headers.get("x-exception"), expected_err) self.assertTrue(e.headers.get("x-traceback") is not None) | def test_fail_with_info(self): # use the broken message class SimpleXMLRPCServer.SimpleXMLRPCRequestHandler.MessageClass = FailingMessageClass | 15c974651f7bb8e54a008359cf306a8e8ec13c12 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/15c974651f7bb8e54a008359cf306a8e8ec13c12/test_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6870,
67,
1918,
67,
1376,
12,
2890,
4672,
468,
999,
326,
12933,
883,
667,
4477,
4201,
8087,
2081,
18,
5784,
4201,
8087,
28773,
18,
1079,
797,
273,
8911,
310,
1079,
797,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6870,
67,
1918,
67,
1376,
12,
2890,
4672,
468,
999,
326,
12933,
883,
667,
4477,
4201,
8087,
2081,
18,
5784,
4201,
8087,
28773,
18,
1079,
797,
273,
8911,
310,
1079,
797,
2,
-1... |
dirList.append(dirID) | dirList.append( dirID ) | def __findSubdirByMeta(self,meta,value,subdirFlag=True): """ Find directories for the given meta datum. If the the meta datum type is a list, combine values in OR. In case the meta datum is 'Any', finds all the subdirectories for which the meta datum is defined at all. """ if type(value) == types.DictType: selectList ... | 127f98379e5064d0a5d5df2ba7ce74c780770faa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/127f98379e5064d0a5d5df2ba7ce74c780770faa/DirectoryMetadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4720,
1676,
1214,
858,
2781,
12,
2890,
16,
3901,
16,
1132,
16,
1717,
1214,
4678,
33,
5510,
4672,
3536,
4163,
6402,
364,
326,
864,
2191,
12059,
18,
971,
326,
326,
2191,
12059,
618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
1676,
1214,
858,
2781,
12,
2890,
16,
3901,
16,
1132,
16,
1717,
1214,
4678,
33,
5510,
4672,
3536,
4163,
6402,
364,
326,
864,
2191,
12059,
18,
971,
326,
326,
2191,
12059,
618,
... |
return 0; | return 0 | def start(self): session = self.hypervisor.vm_manager.mgr.getSessionObject(self.hypervisor.vm_manager.vbox) progress = self.hypervisor.vm_manager.vbox.openRemoteSession(session, self.uuid, "gui", "") progress.waitForCompletion(-1) completed = progress.completed rc = int(progress.resultCode) if rc == 0: self.machine = s... | 3a89e543af7614fcd4d402ec1f00a1a8cdd1d489 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1208/3a89e543af7614fcd4d402ec1f00a1a8cdd1d489/ufovboxapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
1339,
273,
365,
18,
17203,
10227,
18,
3489,
67,
4181,
18,
13552,
18,
588,
2157,
921,
12,
2890,
18,
17203,
10227,
18,
3489,
67,
4181,
18,
90,
2147,
13,
4007,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
1339,
273,
365,
18,
17203,
10227,
18,
3489,
67,
4181,
18,
13552,
18,
588,
2157,
921,
12,
2890,
18,
17203,
10227,
18,
3489,
67,
4181,
18,
90,
2147,
13,
4007,
273,
... |
os.system("tar chf - -C %s . | tar xf - -C %s" %(src_dir,dest_dir)) | cmd = "tar chf - -C %s . | tar xf - -C %s" %(src_dir,dest_dir) if 0 != os.system(cmd) raise Exception("getInputSandbox() failed to execute command: %s"%cmd) | def getInputSandbox(src_dir,dest_dir='.'): """Get all input sandbox_files from tarball and write them to the workdir. This function is called by wrapper script at the run time. Arguments: 'src_dir': a source directory with InputSandbox files. 'dest_dir': a destination directory """ os.system("tar chf - -C %s . | tar ... | 87003da009f3dbe1629e2fd2971d80aaad71ee07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/87003da009f3dbe1629e2fd2971d80aaad71ee07/WNSandbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12353,
17881,
12,
4816,
67,
1214,
16,
10488,
67,
1214,
2218,
1093,
4672,
3536,
967,
777,
810,
15202,
67,
2354,
628,
29441,
471,
1045,
2182,
358,
326,
22231,
18,
1220,
445,
353,
2566,
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,
12353,
17881,
12,
4816,
67,
1214,
16,
10488,
67,
1214,
2218,
1093,
4672,
3536,
967,
777,
810,
15202,
67,
2354,
628,
29441,
471,
1045,
2182,
358,
326,
22231,
18,
1220,
445,
353,
2566,
635... |
* method='median' assigns math:`$d(s,t)$` like the ``centroid`` method. When two clusters s and t are combined into a new cluster :math:`u`, the average of centroids s and t give the new centroid :math:`u`. This is also known as the WPGMC algorithm. | * method='median' assigns math:`d(s,t)` like the ``centroid`` method. When two clusters :math:`s` and :math:`t` are combined into a new cluster :math:`u`, the average of centroids s and t give the new centroid :math:`u`. This is also known as the WPGMC algorithm. | def linkage(y, method='single', metric='euclidean'): r""" Performs hierarchical/agglomerative clustering on the condensed distance matrix y. y must be a :math:`{n \choose 2}` sized vector where n is the number of original observations paired in the distance matrix. The behavior of this function is very similar to the M... | cfdcf17d058d049f899de9ca9e6d013a8ec22d84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/cfdcf17d058d049f899de9ca9e6d013a8ec22d84/hierarchy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
410,
12,
93,
16,
707,
2218,
7526,
2187,
3999,
2218,
73,
22392,
11,
4672,
436,
8395,
27391,
26633,
19,
346,
7043,
362,
264,
1535,
18743,
603,
326,
6941,
28003,
3888,
3148,
677,
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,
1692,
410,
12,
93,
16,
707,
2218,
7526,
2187,
3999,
2218,
73,
22392,
11,
4672,
436,
8395,
27391,
26633,
19,
346,
7043,
362,
264,
1535,
18743,
603,
326,
6941,
28003,
3888,
3148,
677,
18,
... |
if self.a1() != 0 or self.a2() != 0 or self.a3() != 0: raise NotImplementedError, \ "Elliptic curve must be given in the form y^2 = x^3 + ax + b" if self.discriminant().valuation(p) != 0: raise NotImplementedError, \ "Elliptic curve equation must be in minimal form at p" | X = self.weierstrass_model() assert X.discriminant().valuation(p) == 0, "Something's gone wrong. " \ "The discriminant of the weierstrass model should be a unit " \ " at p." | def padic_E2(self, p, prec=20, check=False): r""" Returns the value of the $p$-adic modular form $E2$ for $(E, \omega)$ where $\omega$ is the usual invariant differential $dx/(2y + a_1 x + a_3)$. | 029b3cdf37d807d8760ad36ae0d2d660109923fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/029b3cdf37d807d8760ad36ae0d2d660109923fc/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
41,
22,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
866,
33,
8381,
4672,
436,
8395,
2860,
326,
460,
434,
326,
271,
84,
8,
17,
20333,
681,
2490,
646,
271,
41,
22,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
41,
22,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
866,
33,
8381,
4672,
436,
8395,
2860,
326,
460,
434,
326,
271,
84,
8,
17,
20333,
681,
2490,
646,
271,
41,
22,
8,
... |
return idaapi.set_struc_cmt(id, comment, repeatable) | return idaapi.set_struc_cmt(sid, comment, repeatable) | def SetStrucComment(id, comment, repeatable): """ Change structure comment @param id: structure type ID @param comment: new comment of the structure @param repeatable: 1: change repeatable comment 0: change regular comment @return: != 0 - ok """ return idaapi.set_struc_cmt(id, comment, repeatable) | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1585,
5286,
4469,
12,
350,
16,
2879,
16,
7666,
429,
4672,
3536,
7576,
3695,
2879,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
2879,
30,
394,
2879,
434,
326,
3695,
632,
891... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1585,
5286,
4469,
12,
350,
16,
2879,
16,
7666,
429,
4672,
3536,
7576,
3695,
2879,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
2879,
30,
394,
2879,
434,
326,
3695,
632,
891... |
print ' '*_colwidth, | weeks.append('') | def prcal(year): """Print a year's calendar.""" header = weekheader(2) format3c('', `year`, '') for q in range(January, January+12, 3): print format3c(month_name[q], month_name[q+1], month_name[q+2]) format3c(header, header, header) data = [] height = 0 for month in range(q, q+3): cal = monthcalendar(year, month) if le... | 338398f1cb7106ce99627d71e1839a1616596a76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/338398f1cb7106ce99627d71e1839a1616596a76/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
771,
12,
6874,
4672,
3536,
5108,
279,
3286,
1807,
5686,
12123,
1446,
273,
4860,
3374,
12,
22,
13,
740,
23,
71,
2668,
2187,
1375,
6874,
9191,
28707,
364,
1043,
316,
1048,
12,
46,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
771,
12,
6874,
4672,
3536,
5108,
279,
3286,
1807,
5686,
12123,
1446,
273,
4860,
3374,
12,
22,
13,
740,
23,
71,
2668,
2187,
1375,
6874,
9191,
28707,
364,
1043,
316,
1048,
12,
46,
3... |
gc.move_to(self.x-self.cell_border_width/2.0, y) gc.line_to(self.x+self.width+self.cell_border_width/2.0, y) | gc.move_to(self.x, y) gc.line_to(self.x+self.width, y) | def _draw_grid_lines(self, gc): gc.set_stroke_color(self.cell_border_color_) gc.set_line_dash(self.cell_border_style_) gc.set_line_width(self.cell_border_width) | ef512bbadb70fe942a25ab512540073b0ab2f779 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13166/ef512bbadb70fe942a25ab512540073b0ab2f779/text_grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
5222,
67,
3548,
12,
2890,
16,
8859,
4672,
8859,
18,
542,
67,
16181,
67,
3266,
12,
2890,
18,
3855,
67,
8815,
67,
3266,
67,
13,
8859,
18,
542,
67,
1369,
67,
21817,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
5222,
67,
3548,
12,
2890,
16,
8859,
4672,
8859,
18,
542,
67,
16181,
67,
3266,
12,
2890,
18,
3855,
67,
8815,
67,
3266,
67,
13,
8859,
18,
542,
67,
1369,
67,
21817,
12,
... |
metadata = { 'title' : 'Wall Time used by %s' % reportRequest[ 'grouping' ], | metadata = { 'title' : 'Wall time days used by %s' % reportRequest[ 'grouping' ], | def _plotTotalWallTime( self, reportRequest, plotInfo, filename ): metadata = { 'title' : 'Wall Time used by %s' % reportRequest[ 'grouping' ], 'ylabel' : 'CPU days', 'starttime' : reportRequest[ 'startTime' ], 'endtime' : reportRequest[ 'endTime' ] } return self._generatePiePlot( filename, plotInfo[ 'data'], metadata ... | 7420772aa36b86a744bdb1d0bcf5158d506a729b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7420772aa36b86a744bdb1d0bcf5158d506a729b/JobPlotter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4032,
5269,
26558,
950,
12,
365,
16,
2605,
691,
16,
3207,
966,
16,
1544,
262,
30,
1982,
273,
288,
296,
2649,
11,
294,
296,
26558,
813,
4681,
1399,
635,
738,
87,
11,
738,
2605,
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,
389,
4032,
5269,
26558,
950,
12,
365,
16,
2605,
691,
16,
3207,
966,
16,
1544,
262,
30,
1982,
273,
288,
296,
2649,
11,
294,
296,
26558,
813,
4681,
1399,
635,
738,
87,
11,
738,
2605,
6... |
if authProtocol == usmNoAuthProtocol: | if authProtocol is None: | def __init__(self, securityName, authKey='', privKey='', authProtocol=usmNoAuthProtocol, privProtocol=usmNoPrivProtocol): self.securityName = securityName if authKey: self.authKey = authKey if authProtocol == usmNoAuthProtocol: self.authProtocol = usmHMACMD5AuthProtocol else: self.authProtocol = authProtocol if self.se... | acc19df5bb0be833bdeca2731a697a9996a252bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/acc19df5bb0be833bdeca2731a697a9996a252bd/cmdgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4373,
461,
16,
1357,
653,
2218,
2187,
22849,
2218,
2187,
1357,
5752,
33,
407,
81,
2279,
1730,
5752,
16,
6015,
5752,
33,
407,
81,
2279,
15475,
5752,
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,
1001,
2738,
972,
12,
2890,
16,
4373,
461,
16,
1357,
653,
2218,
2187,
22849,
2218,
2187,
1357,
5752,
33,
407,
81,
2279,
1730,
5752,
16,
6015,
5752,
33,
407,
81,
2279,
15475,
5752,
4672,
... |
self.nsh.getAlias(namespace), | self.nsh.getAlias(tns), | self.typecode += '\n%sdef __init__(self, name=None, ns=None):'\ %(ID1) | a2422a4ff104ae248ad594b02d159d0d4a1b9d0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/a2422a4ff104ae248ad594b02d159d0d4a1b9d0e/wsdl2python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
723,
710,
1011,
2337,
82,
9,
87,
536,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
3153,
33,
7036,
13,
2497,
64,
8975,
734,
21,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
18,
723,
710,
1011,
2337,
82,
9,
87,
536,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
3153,
33,
7036,
13,
2497,
64,
8975,
734,
21,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
return (done, 0, 0, 0) | return (position, 0, 0, 0) | fields_def = self.fields_get(cr, uid, context=context) | efd0cb9412db0c0bcc806b9b089c26c097a70bff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/efd0cb9412db0c0bcc806b9b089c26c097a70bff/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
VerbParent = Q(userbit__verb__parent=GetNode("V/Flags/UserRole")) VerbName = Q(userbit__verb__name=stutype) | def students(self, QObject = False): from django.db.models import Q verb_base = DataTree.get_by_uri('V/Flags/Registration') | 545ad6f6221bca3822368194abdf0f9856d41fcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/545ad6f6221bca3822368194abdf0f9856d41fcf/studentclassregmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10068,
4877,
12,
2890,
16,
2238,
921,
273,
1083,
4672,
628,
13710,
18,
1966,
18,
7665,
1930,
2238,
6405,
67,
1969,
273,
1910,
2471,
18,
588,
67,
1637,
67,
1650,
2668,
58,
19,
5094,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10068,
4877,
12,
2890,
16,
2238,
921,
273,
1083,
4672,
628,
13710,
18,
1966,
18,
7665,
1930,
2238,
6405,
67,
1969,
273,
1910,
2471,
18,
588,
67,
1637,
67,
1650,
2668,
58,
19,
5094,
19,... | |
cr.execute(""" create or replace view report_crm_case_support_user as ( select min(c.id) as id, c.user_id, count(*) as nbr from crm_case c left join project_task t on c.id=t.case_id left join project_project p on p.id = t.project_id where c.section_id = p.section_support_id group by c.user_id, c.name )""") | global project if project: cr.execute(""" create or replace view report_crm_case_support_user as ( select min(c.id) as id, c.user_id, count(*) as nbr from crm_case c left join project_task t on c.id=t.case_id left join project_project p on p.id = t.project_id where c.section_id = p.section_support_id and p.id=%s group ... | def init(self, cr): cr.execute(""" create or replace view report_crm_case_support_user as ( select min(c.id) as id, c.user_id, count(*) as nbr from crm_case c left join project_task t on c.id=t.case_id left join project_project p on p.id = t.project_id where c.section_id = p.section_support_id group by c.user_id, c.nam... | b1d94ef431a6eadea6342813a49fcdf00ea519b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/b1d94ef431a6eadea6342813a49fcdf00ea519b1/portal_project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
2605,
67,
3353,
81,
67,
3593,
67,
13261,
67,
1355,
487,
261,
2027,
1131,
12,
71,
18,
350,
13,
487,
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,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
2605,
67,
3353,
81,
67,
3593,
67,
13261,
67,
1355,
487,
261,
2027,
1131,
12,
71,
18,
350,
13,
487,
6... |
self.add_line("Total Miss Count: %d (in %d matches, %.2f%%)" % (miss_count, miss_matches, miss_matches / float(self.count) * 100)), Color.RED) | self.add_line("Total Miss Count: %d (in %d matches, %.2f%%)" % (miss_count, miss_matches, miss_matches / float(self.count) * 100), Color.RED) | def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) self.add_newline() | 85a5344a1fd4533edaa623f8f9ceabdaf5ea7bcd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/85a5344a1fd4533edaa623f8f9ceabdaf5ea7bcd/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
19068,
67,
2139,
1787,
12,
2890,
4672,
365,
18,
1289,
67,
1369,
12,
2890,
18,
2649,
16,
2036,
33,
2957,
18,
14618,
1821,
13,
365,
18,
1289,
67,
22861,
1435,
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,
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,
741,
67,
19068,
67,
2139,
1787,
12,
2890,
4672,
365,
18,
1289,
67,
1369,
12,
2890,
18,
2649,
16,
2036,
33,
2957,
18,
14618,
1821,
13,
365,
18,
1289,
67,
22861,
1435,
2,
-100,
-100,
-... |
self._cury -= step | self._y0 -= step | def _set_scroll_step(self, step, orientation): """ Callback from the animation """ self._render() # move children if orientation == Grid.HORIZONTAL: self._curx -= step x, y = step, 0 if orientation == Grid.VERTICAL: self._cury -= step x, y = 0, step for child in self.get_children(): child.move_by(x, y) | 7b14a2b208acc2ce1dd643af75f0c785a0bc8172 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/7b14a2b208acc2ce1dd643af75f0c785a0bc8172/grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
12033,
67,
4119,
12,
2890,
16,
2235,
16,
9820,
4672,
3536,
8444,
628,
326,
8794,
3536,
365,
6315,
5902,
1435,
468,
3635,
2325,
309,
9820,
422,
7145,
18,
44,
20344,
30,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
12033,
67,
4119,
12,
2890,
16,
2235,
16,
9820,
4672,
3536,
8444,
628,
326,
8794,
3536,
365,
6315,
5902,
1435,
468,
3635,
2325,
309,
9820,
422,
7145,
18,
44,
20344,
30,
36... |
chooser = AlbumChooser(self, album, candidates) chooser.connect('hide', self.__signal_do_tag, album, chooser, candidates) gobject.idle_add(chooser.show_all) | ret = AlbumChooser(self, album, candidates).run() if ret is None: return else: self.do_tag(album, candidates[ret]) | def __choose_album(self, album, candidates): chooser = AlbumChooser(self, album, candidates) chooser.connect('hide', self.__signal_do_tag, album, chooser, candidates) gobject.idle_add(chooser.show_all) | 9fd073b445c239cf76a63638de181453ba0a619b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/9fd073b445c239cf76a63638de181453ba0a619b/brainz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
25777,
67,
25090,
12,
2890,
16,
14844,
16,
7965,
4672,
5011,
13164,
273,
2262,
10293,
17324,
12,
2890,
16,
14844,
16,
7965,
13,
5011,
13164,
18,
3612,
2668,
11248,
2187,
365,
16186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25777,
67,
25090,
12,
2890,
16,
14844,
16,
7965,
4672,
5011,
13164,
273,
2262,
10293,
17324,
12,
2890,
16,
14844,
16,
7965,
13,
5011,
13164,
18,
3612,
2668,
11248,
2187,
365,
16186,
... |
lab2.configure(text='FileID T Width dB DF') | lab2.configure(text='FileID T Width dB DF') | def ModeJT6M(event=NONE): global slabel,isync,isync6m,itol if g.mode != "JT6M": if lauto: toggleauto() cleartext() ModeFSK441() lab2.configure(text='FileID T Width dB DF') mode.set("JT6M") isync=isync6m lsync.configure(text=slabel+str(isync)) shmsg.configure(state=DISABLED) itol=5 incto... | e20ccd729cece1cf65e686e926bec4c99596f213 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2394/e20ccd729cece1cf65e686e926bec4c99596f213/wsjt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8126,
46,
56,
26,
49,
12,
2575,
33,
9826,
4672,
2552,
272,
1925,
16,
291,
1209,
16,
291,
1209,
26,
81,
16,
305,
355,
309,
314,
18,
3188,
480,
315,
46,
56,
26,
49,
6877,
309,
328,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8126,
46,
56,
26,
49,
12,
2575,
33,
9826,
4672,
2552,
272,
1925,
16,
291,
1209,
16,
291,
1209,
26,
81,
16,
305,
355,
309,
314,
18,
3188,
480,
315,
46,
56,
26,
49,
6877,
309,
328,
... |
pass if options.cleanup is True: print 'removing chunks ...' commandq.wait_for_procs() for host in DB.hostlist: rmCmd = rm_cmd_template % \ (options.username+host.hostname, options.chunk_base_name) commandq.put(rmCmd) commandq.finish() | print '[!] Aborted chunk clean up' for thread in (split_thread, cpq, cpp): thread.kill() commandq.finish() | def main(): # init defaults options = Options() max_procs = MAX_PROCS max_transfers_per_host = MAX_TRANSFERS_PER_HOST rm_cmd_template = RM_CMD_TEMPLATE cat_cmd_template = CAT_CMD_TEMPLATE logfile = LOG_FILE cleanonly = False # just remove chunks and exit chunkdir = CHUNK_DIR # get the command line options try: optlist... | 06772f294757c1ad6f6efefb804370839037d93c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1260/06772f294757c1ad6f6efefb804370839037d93c/scpTsunamiE.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1208,
3467,
702,
273,
5087,
1435,
943,
67,
27537,
273,
4552,
67,
3373,
4596,
943,
67,
2338,
18881,
67,
457,
67,
2564,
273,
4552,
67,
16596,
6553,
55,
67,
3194,
67,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1208,
3467,
702,
273,
5087,
1435,
943,
67,
27537,
273,
4552,
67,
3373,
4596,
943,
67,
2338,
18881,
67,
457,
67,
2564,
273,
4552,
67,
16596,
6553,
55,
67,
3194,
67,
89... |
file.write("<" + _encode(tag, encoding)) | file.write(_encode("<" + tag, encoding)) | def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new na... | d7657fbd21edb2a284db95beac93d0fb6cf519f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d7657fbd21edb2a284db95beac93d0fb6cf519f0/ElementTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
2932,
5586,
413,
738,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
2932,
5586,
413,
738,
8... |
def FetchImage(self): slide = self.FetchSlide() if not slide: raise Exception("No more slides") slide.GetImage(str(self._currentIndex) + ".jpg") | def FetchImage(self, slide, outPath): slide.GetImage(outPath) | def FetchImage(self): slide = self.FetchSlide() if not slide: raise Exception("No more slides") slide.GetImage(str(self._currentIndex) + ".jpg") path = slide.GetLocalPath() print "path = ", path | 1bc06946660e4d7a2e02f0dd8d36d6ad556d4371 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4583/1bc06946660e4d7a2e02f0dd8d36d6ad556d4371/slideshowmodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8065,
2040,
12,
2890,
16,
12701,
16,
596,
743,
4672,
377,
12701,
18,
967,
2040,
12,
659,
743,
13,
225,
589,
273,
12701,
18,
967,
2042,
743,
1435,
225,
1172,
315,
803,
273,
3104,
589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8065,
2040,
12,
2890,
16,
12701,
16,
596,
743,
4672,
377,
12701,
18,
967,
2040,
12,
659,
743,
13,
225,
589,
273,
12701,
18,
967,
2042,
743,
1435,
225,
1172,
315,
803,
273,
3104,
589,
... |
logging.warning("can't automatically detect the file encoding, assuming iso-8859-15 !") | logging.warning("can't automatically detect the file encoding, assuming iso-8859-15!") | def clean_csv_field(field): return field.replace("'","").replace('"','') | a1acd345c6b587c46acec53d660359e9c2c78c73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/a1acd345c6b587c46acec53d660359e9c2c78c73/rwi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
6715,
67,
1518,
12,
1518,
4672,
327,
652,
18,
2079,
29823,
3113,
3660,
2934,
2079,
22076,
17023,
6134,
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,
2721,
67,
6715,
67,
1518,
12,
1518,
4672,
327,
652,
18,
2079,
29823,
3113,
3660,
2934,
2079,
22076,
17023,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
write_serialize_bits(s, v, NUM_BYTES[f.base_type]) | write_serialize_bits_signed(s, v, NUM_BYTES[f.base_type]) | def write_serialize_builtin(s, f, var='msg', lookup_slot=True): v = '(cl:slot-value %s \'%s)'%(var, f.name) if lookup_slot else var if f.base_type == 'string': write_serialize_length(s, v) s.write('(cl:map cl:nil #\'(cl:lambda (c) (cl:write-byte (cl:char-code c) ostream)) %s)'%v) elif f.base_type == 'float32': s.write(... | 3ba8288c6e8b5472575cdac99faae347b6b4ccd5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10530/3ba8288c6e8b5472575cdac99faae347b6b4ccd5/genmsg_lisp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6288,
67,
24553,
12,
87,
16,
284,
16,
569,
2218,
3576,
2187,
3689,
67,
14194,
33,
5510,
4672,
331,
273,
7747,
830,
30,
14194,
17,
1132,
738,
87,
15413,
87,
2506,
17105,
1401,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6288,
67,
24553,
12,
87,
16,
284,
16,
569,
2218,
3576,
2187,
3689,
67,
14194,
33,
5510,
4672,
331,
273,
7747,
830,
30,
14194,
17,
1132,
738,
87,
15413,
87,
2506,
17105,
1401,... |
author_email='murphy@mcu.edu', | author_email='murphy@cmu.edu', | def test_pyversion(): import sys maj,min,_,_,_ = sys.version_info if (maj,min) < (2,5): print "Your Python interpreter is too old for Pyslic.\nUpgrade to 2.5 or newer.\n" sys.exit(1) | 7de092a4a939f654457291cf79b9956572fed799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12199/7de092a4a939f654457291cf79b9956572fed799/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2074,
1589,
13332,
1930,
2589,
29478,
16,
1154,
16,
67,
16,
67,
16,
67,
273,
2589,
18,
1589,
67,
1376,
309,
261,
12585,
16,
1154,
13,
411,
261,
22,
16,
25,
4672,
1172,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2074,
1589,
13332,
1930,
2589,
29478,
16,
1154,
16,
67,
16,
67,
16,
67,
273,
2589,
18,
1589,
67,
1376,
309,
261,
12585,
16,
1154,
13,
411,
261,
22,
16,
25,
4672,
1172,
315,... |
if isinstance(right, basestring): m2o_str = True elif isinstance(right, list) or isinstance(right, tuple): m2o_str = True for ele in right: if not isinstance(ele, basestring): m2o_str = False break | if right: if isinstance(right, basestring): m2o_str = True elif isinstance(right,(list,tuple)): m2o_str = True for ele in right: if not isinstance(ele, basestring): m2o_str = False break else: new_op = '=' if operator in ['not like','not ilike','not in','<>','!=']: new_op = '!=' self.__exp[i] = (left,new_op,False) | def _get_expression(field_obj,cr, uid, left, right, operator, context=None): if context is None: context = {} c = context.copy() c['active_test'] = False dict_op = {'not in':'!=','in':'='} if isinstance(right,tuple): right = list(right) if (not isinstance(right,list)) and operator in ['not in','in']: operator = dict_op... | 6d24cc2bf45306bdc9b62202b4615ed57e97fd80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/6d24cc2bf45306bdc9b62202b4615ed57e97fd80/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
8692,
12,
1518,
67,
2603,
16,
3353,
16,
4555,
16,
2002,
16,
2145,
16,
3726,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
276,
273,
819,
18,
3530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
8692,
12,
1518,
67,
2603,
16,
3353,
16,
4555,
16,
2002,
16,
2145,
16,
3726,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
276,
273,
819,
18,
3530,
... |
ctc = matlib.dot(c.T, c) | """ Hessian matrix = square matrix of secnd order partial derivatives c = matrix of concentrations of various components (depends on parameter count) """ ct = c.T ctc = matlib.dot(ct, c) | def calcHessianJtrA(dc, c, y): ctc = matlib.dot(c.T, c) ctcinv = ctc.I aux = matlib.dot(ctcinv, c.T) a = matlib.dot(aux, y) aux = matlib.dot(c, a) r = aux - y ssq = 0 for i in range(0, r.shape[0]): for j in range(0, r.shape[1]): ssq += r[i,j] * r[i,j] j = matlib.empty([dc[0].shape[0], len(dc)]) dq = [] for p in range(0... | bbe3f10e4c957a215ad479cad9a3a0f1cc9edd6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10129/bbe3f10e4c957a215ad479cad9a3a0f1cc9edd6e/ngml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
44,
20529,
46,
313,
37,
12,
7201,
16,
276,
16,
677,
4672,
3536,
670,
20529,
3148,
273,
8576,
3148,
434,
1428,
4880,
1353,
4702,
9630,
8785,
276,
273,
3148,
434,
20570,
8230,
1012,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
44,
20529,
46,
313,
37,
12,
7201,
16,
276,
16,
677,
4672,
3536,
670,
20529,
3148,
273,
8576,
3148,
434,
1428,
4880,
1353,
4702,
9630,
8785,
276,
273,
3148,
434,
20570,
8230,
1012,
... |
interfaces = zope.interface.providedBy(original) | interfaces = providedBy(original) | def __init__(self, original, interfaces=None): import zope if interfaces is None: interfaces = zope.interface.providedBy(original) for interface in interfaces: for name in interface.names(): attr = interface[name] if zope.interface.interfaces.IMethod.providedBy(attr): setattr(self, name, _functionWrapper(original, nam... | 749403e84eca087d99022ef3cb45d36a859a9aa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/749403e84eca087d99022ef3cb45d36a859a9aa3/iproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2282,
16,
7349,
33,
7036,
4672,
1930,
998,
1306,
309,
7349,
353,
599,
30,
7349,
273,
2112,
858,
12,
8830,
13,
225,
364,
1560,
316,
7349,
30,
364,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2282,
16,
7349,
33,
7036,
4672,
1930,
998,
1306,
309,
7349,
353,
599,
30,
7349,
273,
2112,
858,
12,
8830,
13,
225,
364,
1560,
316,
7349,
30,
364,
508,
... |
(2*13 + O(13^7))*t^2 + (13 + O(13^8))*t + (O(13^7)) | (O(13^7))*t^4 + (2*13 + O(13^7))*t^2 + (13 + O(13^8))*t + (O(13^7)) | def _mul_(self, right): r""" Multiplies self and right. | e9e01a8904ca94f7994c723cd54a5100787e8a31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e9e01a8904ca94f7994c723cd54a5100787e8a31/polynomial_padic_capped_relative_dense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16411,
67,
12,
2890,
16,
2145,
4672,
436,
8395,
5991,
5259,
365,
471,
2145,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
389,
16411,
67,
12,
2890,
16,
2145,
4672,
436,
8395,
5991,
5259,
365,
471,
2145,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 349) else quickfix.StringField.__init__(self, 349, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
7616,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
890,
7616,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
9... |
error_msg.append(_("· El <b>nombre de usuario</b> tiene tamaño incorrecto (permitido entre 3 y 24 caracteres).\n")) | self.user_err_3.show() error = 1 | def info_to_peez (self): """Processing info to peez step tasks.""" | 03d407a24d7c829d66405eefa8e2f07ba1e7deea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2662/03d407a24d7c829d66405eefa8e2f07ba1e7deea/gtkui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
869,
67,
347,
6664,
261,
2890,
4672,
3536,
7798,
1123,
358,
293,
1340,
94,
2235,
4592,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
869,
67,
347,
6664,
261,
2890,
4672,
3536,
7798,
1123,
358,
293,
1340,
94,
2235,
4592,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
output += urlencode(unicode(value)) | output += value | def urlencode_vars(vars): output = "" for varname, value in vars: if output != "": output += "&" output += varname output += "=" output += urlencode(unicode(value)) return output | 30e81dc9deedcb1ae53f43f49e54312ee2f1a47c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/30e81dc9deedcb1ae53f43f49e54312ee2f1a47c/htmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9922,
67,
4699,
12,
4699,
4672,
876,
273,
1408,
364,
15434,
16,
460,
316,
4153,
30,
309,
876,
480,
1408,
30,
876,
1011,
16347,
876,
1011,
15434,
876,
1011,
9671,
876,
1011,
460,
327,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9922,
67,
4699,
12,
4699,
4672,
876,
273,
1408,
364,
15434,
16,
460,
316,
4153,
30,
309,
876,
480,
1408,
30,
876,
1011,
16347,
876,
1011,
15434,
876,
1011,
9671,
876,
1011,
460,
327,
8... |
"That compression method is not supported" | "That compression method is not supported" | def _writecheck(self, zinfo): 'Check for errors before writing a file to the archive' if self.NameToInfo.has_key(zinfo.filename): if self.debug: # Warning for duplicate names print "Duplicate name:", zinfo.filename if self.mode not in ("w", "a"): raise RuntimeError, 'write() requires mode "w" or "a"' if not self.fp: ra... | d6c8480588120e48fba9de106754eef460bdf549 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6c8480588120e48fba9de106754eef460bdf549/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
1893,
12,
2890,
16,
998,
1376,
4672,
296,
1564,
364,
1334,
1865,
7410,
279,
585,
358,
326,
5052,
11,
309,
365,
18,
28455,
966,
18,
5332,
67,
856,
12,
94,
1376,
18,
3459,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
1893,
12,
2890,
16,
998,
1376,
4672,
296,
1564,
364,
1334,
1865,
7410,
279,
585,
358,
326,
5052,
11,
309,
365,
18,
28455,
966,
18,
5332,
67,
856,
12,
94,
1376,
18,
3459,
4... |
self.font_family.pack( anchor="nw", side = 'bottom') | self.font_family.pack( anchor="nw", side='bottom') | def draw( self): self.pages = Pmw.NoteBook( self.body) self.pages.pack( anchor='w', pady=0, padx=0, fill='both', expand=1) # COMMON common_page = self.pages.add( _('Common')) # LINE line_group = Pmw.Group( common_page, tag_text=_('Line')) line_group.pack( fill='x') # line width self.line_width = widgets.WidthChooser( l... | 44901fd1160eff83e92d9cc5cce450b6cad5f742 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4298/44901fd1160eff83e92d9cc5cce450b6cad5f742/dialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
365,
4672,
365,
18,
7267,
273,
453,
81,
91,
18,
8067,
9084,
12,
365,
18,
3432,
13,
365,
18,
7267,
18,
2920,
12,
6984,
2218,
91,
2187,
4627,
93,
33,
20,
16,
4627,
92,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
365,
4672,
365,
18,
7267,
273,
453,
81,
91,
18,
8067,
9084,
12,
365,
18,
3432,
13,
365,
18,
7267,
18,
2920,
12,
6984,
2218,
91,
2187,
4627,
93,
33,
20,
16,
4627,
92,
33,
... |
If `Q` is the ambient quaternion algebra, then the ZZ-span of | If `Q` is the ambient quaternion algebra, then the `\\ZZ`-span of | def basis_matrix(self): """ Return basis matrix `M` in Hermite normal form for self as a matrix with rational entries. | 1ec65dfa0c3aab294b8ecca3f5f5493e154b7172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ec65dfa0c3aab294b8ecca3f5f5493e154b7172/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
67,
5667,
12,
2890,
4672,
3536,
2000,
10853,
3148,
1375,
49,
68,
316,
670,
1035,
1137,
2212,
646,
364,
365,
487,
279,
3148,
598,
436,
8371,
3222,
18,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10853,
67,
5667,
12,
2890,
4672,
3536,
2000,
10853,
3148,
1375,
49,
68,
316,
670,
1035,
1137,
2212,
646,
364,
365,
487,
279,
3148,
598,
436,
8371,
3222,
18,
2,
-100,
-100,
-100,
-100,
... |
""" Returns a strings identifying the Python implementation | """ Returns a string identifying the Python implementation | def python_branch(): """ Returns a strings identifying the Python implementation branch. For CPython this is the Subversion branch from which the Python binary was built. If not available, an empty string is returned. """ return _sys_version()[2] | 9b12f280bf69da97ba1e75eff7777211f663853c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9b12f280bf69da97ba1e75eff7777211f663853c/platform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
7500,
13332,
225,
3536,
2860,
279,
533,
29134,
326,
6600,
4471,
3803,
18,
225,
2457,
5181,
18490,
333,
353,
326,
2592,
1589,
3803,
628,
1492,
326,
6600,
3112,
1703,
6650,
18,
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,
5790,
67,
7500,
13332,
225,
3536,
2860,
279,
533,
29134,
326,
6600,
4471,
3803,
18,
225,
2457,
5181,
18490,
333,
353,
326,
2592,
1589,
3803,
628,
1492,
326,
6600,
3112,
1703,
6650,
18,
2... |
d.applicationId = newid() d.targetId = newid() d.phaseId = [newid(), newid(), newid()] d.buildSettingsId = (newid(), | w("\t%s = { isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = \"%s.app\" ; sourceTree = BUILT_PRODUCTS_DIR; };\n" % (d.applicationId, d.projectName)) elif d.type in ['library', 'static_library', 'plugin']: w("\t%s = { isa = PBXFileReference; explicitFileType = archive.ar; includ... | def writePBXFileReference(self): w = self.file.write w("/* Begin PBXFileReference section */\n") for name, setting, buildfile, fileref in self.buildSettingsId[1]: w("\t%s = { isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = \"%s\"; path = \"%s\" ; sourceTree = \"SOURCE_ROOT\"; };\n" %... | 6d77ca840d0f111f117eabd9374c8d61c557e8ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/6d77ca840d0f111f117eabd9374c8d61c557e8ce/xcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
20724,
60,
812,
2404,
12,
2890,
4672,
341,
273,
365,
18,
768,
18,
2626,
341,
2932,
20308,
14323,
20819,
60,
812,
2404,
2442,
1195,
64,
82,
7923,
364,
508,
16,
3637,
16,
1361,
768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
20724,
60,
812,
2404,
12,
2890,
4672,
341,
273,
365,
18,
768,
18,
2626,
341,
2932,
20308,
14323,
20819,
60,
812,
2404,
2442,
1195,
64,
82,
7923,
364,
508,
16,
3637,
16,
1361,
768... |
resulttype = hop.r_result.lowleveltype) | resulttype = PTR) | def specialize_call(self, hop): v_arg = hop.inputarg(hop.args_r[1], arg=1) assert isinstance(v_arg.concretetype, lltype.Ptr) hop.exception_cannot_occur() return hop.genop('cast_pointer', [v_arg], resulttype = hop.r_result.lowleveltype) | 3e48dd1031b0b67ab62b6386e7cfb185a93701b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/3e48dd1031b0b67ab62b6386e7cfb185a93701b0/annlowlevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
857,
1710,
67,
1991,
12,
2890,
16,
19055,
4672,
331,
67,
3175,
273,
19055,
18,
2630,
3175,
12,
18444,
18,
1968,
67,
86,
63,
21,
6487,
1501,
33,
21,
13,
1815,
1549,
12,
90,
67,
3175,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
857,
1710,
67,
1991,
12,
2890,
16,
19055,
4672,
331,
67,
3175,
273,
19055,
18,
2630,
3175,
12,
18444,
18,
1968,
67,
86,
63,
21,
6487,
1501,
33,
21,
13,
1815,
1549,
12,
90,
67,
3175,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.