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 |
|---|---|---|---|---|---|---|
if (chunks[i][-1] in punct and chunks[i+1] == " " and islower(chunks[i][-2])): | if chunks[i+1] == " " and pat.search(chunks[i]): | def _fix_sentence_endings (self, chunks): """_fix_sentence_endings(chunks : [string]) | bce52ce3b3a50ba95e694d6e6b4dee7a5d5a0f23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bce52ce3b3a50ba95e694d6e6b4dee7a5d5a0f23/textwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
19335,
67,
409,
899,
261,
2890,
16,
6055,
4672,
3536,
67,
904,
67,
19335,
67,
409,
899,
12,
14691,
294,
306,
1080,
5717,
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,
389,
904,
67,
19335,
67,
409,
899,
261,
2890,
16,
6055,
4672,
3536,
67,
904,
67,
19335,
67,
409,
899,
12,
14691,
294,
306,
1080,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
result += self.__utils.listAllBofs() | result += profs | def profiles(self, keys = index): """Provide information on profiles, either given or found. If keys is ['index'], return a list of info on all found profiles, formatted ['profile_name,s', ...] where s is state of profile. | ebb0d5f1b11dafa37918c94574534637f5735664 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14654/ebb0d5f1b11dafa37918c94574534637f5735664/bee2_agent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11788,
12,
2890,
16,
1311,
273,
770,
4672,
3536,
20632,
1779,
603,
11788,
16,
3344,
864,
578,
1392,
18,
225,
971,
1311,
353,
10228,
1615,
17337,
327,
279,
666,
434,
1123,
603,
777,
1392,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11788,
12,
2890,
16,
1311,
273,
770,
4672,
3536,
20632,
1779,
603,
11788,
16,
3344,
864,
578,
1392,
18,
225,
971,
1311,
353,
10228,
1615,
17337,
327,
279,
666,
434,
1123,
603,
777,
1392,... |
p = subprocess.Popen (["/usr/bin/tracker-thumbnailer", self.path, self.info.get_content_type(), "normal"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout_value, stderr_value = p.communicate () if p.returncode == 0: return gtk.gdk.pixbuf_new_from_file (string.rstrip (stdout_value)) else: return gtk.icon_theme_... | icon_factory = gnome.ui.ThumbnailFactory(gnome.ui.THUMBNAIL_SIZE_NORMAL) mtime = os.path.getmtime(self.path) uri = gnomevfs.make_uri_from_input(self.path) thumb = icon_factory.lookup (uri, mtime) if thumb: return gtk.gdk.pixbuf_new_from_file (thumb) thumb = icon_factory.generate_thumbnail (uri, self.info.get_content_t... | def get_icon (self): #try thumnailer first p = subprocess.Popen (["/usr/bin/tracker-thumbnailer", self.path, self.info.get_content_type(), "normal"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout_value, stderr_value = p.communicate () if p.returncode == 0: return gtk.gdk.pixbuf_new_from_file (string.rstrip (... | 7e67a582cc9490d1f4dd2d3e97ed83ed76cf0da5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11404/7e67a582cc9490d1f4dd2d3e97ed83ed76cf0da5/fileversion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
336,
67,
3950,
261,
2890,
4672,
468,
698,
286,
755,
671,
264,
1122,
293,
273,
6652,
18,
52,
3190,
261,
9614,
19,
13640,
19,
4757,
19,
16543,
17,
14904,
264,
3113,
365,
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,
225,
336,
67,
3950,
261,
2890,
4672,
468,
698,
286,
755,
671,
264,
1122,
293,
273,
6652,
18,
52,
3190,
261,
9614,
19,
13640,
19,
4757,
19,
16543,
17,
14904,
264,
3113,
365,
18,
803,
... |
args = { | args2 = { | def check_lib(self, name, function, includes, libraries): for libs in libraries: res = self.try_link( "%s\nvoid main() { void *tmp = (void *)%s; }" % ( "\n".join('#include <%s>' % i for i in includes), function), libraries=libs, lang='c++') if res: print 'yes' cfg.set('build', 'with-' + name, True) cfg.set(name, 'cflag... | 6b35ec77add2b46f09daa5808019bf904a9be421 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12415/6b35ec77add2b46f09daa5808019bf904a9be421/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2941,
12,
2890,
16,
508,
16,
445,
16,
6104,
16,
14732,
4672,
364,
15042,
316,
14732,
30,
400,
273,
365,
18,
698,
67,
1232,
12,
2213,
87,
64,
82,
6459,
2774,
1435,
288,
918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2941,
12,
2890,
16,
508,
16,
445,
16,
6104,
16,
14732,
4672,
364,
15042,
316,
14732,
30,
400,
273,
365,
18,
698,
67,
1232,
12,
2213,
87,
64,
82,
6459,
2774,
1435,
288,
918,
... |
self.assertRaises(TypeError, list, groupby(N(s))) | self.assertRaises(TypeError, groupby, N(s)) | def test_groupby(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual([k for k, sb in groupby(g(s))], list(g(s))) self.assertRaises(TypeError, groupby, X(s)) self.assertRaises(TypeError, list, groupby(N(s))) self.assertRaises(ZeroDivisionError, ... | 8690c4ed3fa1f1889459249c7e50e11c2052b340 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8690c4ed3fa1f1889459249c7e50e11c2052b340/test_itertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1655,
1637,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
3787,
713,
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,
1842,
67,
1655,
1637,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
3787,
713,
16,... |
(2) SymbolStyle -- sets the style of the symbol. | (2) QwtSymbol.Style -- sets the style of the symbol. | def __init__(self, *rest): """Constructor. | 6561c06e8d0bd707f39b52873538ae208d750051 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5650/6561c06e8d0bd707f39b52873538ae208d750051/qplt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
8792,
4672,
3536,
6293,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
8792,
4672,
3536,
6293,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return None | return None | def findTranslated(page, oursite=None): if not oursite: oursite=wikipedia.getSite() wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<"% page.title()) if page.isRedirectPage(): page = page.getRedirectTarget() try: iw=page.interwiki() except: wikipedia.output(u"no interwiki, giving up") return None ourpage=No... | 9bfb5f23ea16d37a9d5ecdf28fd2fb133fcc1699 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/9bfb5f23ea16d37a9d5ecdf28fd2fb133fcc1699/featured.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
20421,
12,
2433,
16,
3134,
4256,
33,
7036,
4672,
309,
486,
3134,
4256,
30,
3134,
4256,
33,
11999,
13744,
18,
588,
4956,
1435,
21137,
18,
2844,
12,
89,
12691,
82,
64,
82,
23012,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
20421,
12,
2433,
16,
3134,
4256,
33,
7036,
4672,
309,
486,
3134,
4256,
30,
3134,
4256,
33,
11999,
13744,
18,
588,
4956,
1435,
21137,
18,
2844,
12,
89,
12691,
82,
64,
82,
23012,
5... |
i_q_packed = tor_i_q_packed_matches.get(tor.id) | i_q_packed = tor_id_i_q_packed_matches.get(tor.id) | def get_q_packed_for_zero_dihedrals(tardy_model): uninitialized = -1e20 result = flex.double(tardy_model.q_packed_size, uninitialized) for tor in comp.tor_list: i_q_packed = tor_i_q_packed_matches.get(tor.id) if (i_q_packed is not None): ai = [atom_indices[atom_id] for atom_id in tor.atom_ids()] d_sites = [tardy_model.... | 861035685a487b6005302d45332bbaa3ab7f1328 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/861035685a487b6005302d45332bbaa3ab7f1328/tst_tor_vs_tardy_tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
85,
67,
2920,
329,
67,
1884,
67,
7124,
67,
3211,
18550,
86,
1031,
12,
88,
1060,
93,
67,
2284,
4672,
640,
13227,
273,
300,
21,
73,
3462,
563,
273,
16600,
18,
9056,
12,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
85,
67,
2920,
329,
67,
1884,
67,
7124,
67,
3211,
18550,
86,
1031,
12,
88,
1060,
93,
67,
2284,
4672,
640,
13227,
273,
300,
21,
73,
3462,
563,
273,
16600,
18,
9056,
12,
88,
... |
def twolevel(builder, co_dir, co_name, repo_relative = None, rev = None): | def relative(builder, co_dir, co_name, repo_relative = None, rev = None): | def twolevel(builder, co_dir, co_name, repo_relative = None, rev = None): """ A two-level version of checkout.simple.relative(). """ repo = builder.invocation.db.repo.get() if (repo_relative is None): rest = os.path.join(co_dir, co_name) builder.invocation.db.set_checkout_path(co_name, os.path.join(co_dir, co_name)) e... | 9e519468a69b637df1ac0b5a4f59a8414e6f339d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4427/9e519468a69b637df1ac0b5a4f59a8414e6f339d/twolevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3632,
12,
9574,
16,
1825,
67,
1214,
16,
1825,
67,
529,
16,
3538,
67,
11626,
273,
599,
16,
5588,
273,
599,
4672,
3536,
432,
2795,
17,
2815,
1177,
434,
13926,
18,
9647,
18,
11626,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3632,
12,
9574,
16,
1825,
67,
1214,
16,
1825,
67,
529,
16,
3538,
67,
11626,
273,
599,
16,
5588,
273,
599,
4672,
3536,
432,
2795,
17,
2815,
1177,
434,
13926,
18,
9647,
18,
11626,
7675,
... |
devs = map(lambda x: [x.get('virtual-device'), map2sxp(x)], vbd_properties) | vbd_devs = \ map(server.xenapi.VBD.get_device, vbd_refs) vbd_devids = \ map(blkdev_name_to_number, vbd_devs) devs = map(lambda (devid, prop): [devid, map2sxp(prop)], zip(vbd_devids, vbd_properties)) | def xm_block_list(args): (use_long, params) = arg_check_for_resource_list(args, "block-list") dom = params[0] if serverType == SERVER_XEN_API: vbd_refs = server.xenapi.VM.get_VBDs(get_single_vm(dom)) vbd_properties = \ map(server.xenapi.VBD.get_runtime_properties, vbd_refs) devs = map(lambda x: [x.get('virtual-device... | b5e5427981b93bddefe0dca04af1c7de082b571d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/b5e5427981b93bddefe0dca04af1c7de082b571d/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25179,
67,
2629,
67,
1098,
12,
1968,
4672,
261,
1202,
67,
5748,
16,
859,
13,
273,
1501,
67,
1893,
67,
1884,
67,
3146,
67,
1098,
12,
1968,
16,
315,
2629,
17,
1098,
7923,
225,
4092,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25179,
67,
2629,
67,
1098,
12,
1968,
4672,
261,
1202,
67,
5748,
16,
859,
13,
273,
1501,
67,
1893,
67,
1884,
67,
3146,
67,
1098,
12,
1968,
16,
315,
2629,
17,
1098,
7923,
225,
4092,
27... |
macros.append(('MS_WIN64',)) | macros.append(('MS_WIN64', None)) | for undef in ext.undef_macros: macros.append((undef,)) | 45d2c14ee19a23866ef44d4befe9058593c4e15d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/45d2c14ee19a23866ef44d4befe9058593c4e15d/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
364,
640,
536,
316,
1110,
18,
318,
536,
67,
5821,
6973,
30,
24302,
18,
6923,
12443,
318,
536,
16,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
364,
640,
536,
316,
1110,
18,
318,
536,
67,
5821,
6973,
30,
24302,
18,
6923,
12443,
318,
536,
16,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
username = raw_input('Username: ') | username = input('Username: ') | def send_metadata(self): ''' Send the metadata to the package index server. | 18d5662d185043e82271de9cd3fe9a25c1d2d1c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/18d5662d185043e82271de9cd3fe9a25c1d2d1c3/register.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
4165,
12,
2890,
4672,
9163,
2479,
326,
1982,
358,
326,
2181,
770,
1438,
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,
1366,
67,
4165,
12,
2890,
4672,
9163,
2479,
326,
1982,
358,
326,
2181,
770,
1438,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
"can't copy %s: not a regular file" % src | "can't copy '%s': not a regular file" % src | def copy_file (src, dst, preserve_mode=1, preserve_times=1, update=0, verbose=0, dry_run=0): """Copy a file 'src' to 'dst'. If 'dst' is a directory, then 'src' is copied there with the same name; otherwise, it must be a filename. (If the file exists, it will be ruthlessly clobbered.) If 'preserve_mode' is true (the ... | 43b44a023f76e9f81e05b84e217f22174be6ede7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/43b44a023f76e9f81e05b84e217f22174be6ede7/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
768,
261,
4816,
16,
3046,
16,
9420,
67,
3188,
33,
21,
16,
9420,
67,
8293,
33,
21,
16,
1089,
33,
20,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
225,
3536,
2951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
768,
261,
4816,
16,
3046,
16,
9420,
67,
3188,
33,
21,
16,
9420,
67,
8293,
33,
21,
16,
1089,
33,
20,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
225,
3536,
2951,
... |
print entry.description | for line in entry.description.split('\n'): print ' %s' % line | def runCommand(self): if len(self._args) > 0: partial = self._args[0] else: partial = '*' bugfiles = self.findBugsByNumOrPartial(self._args[0]) | b7a79a59faa44848f167a27fe3f6bb067491a719 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3557/b7a79a59faa44848f167a27fe3f6bb067491a719/showcommand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31933,
12,
2890,
4672,
309,
562,
12,
2890,
6315,
1968,
13,
405,
374,
30,
4702,
273,
365,
6315,
1968,
63,
20,
65,
469,
30,
4702,
273,
5306,
225,
7934,
2354,
273,
365,
18,
4720,
31559,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31933,
12,
2890,
4672,
309,
562,
12,
2890,
6315,
1968,
13,
405,
374,
30,
4702,
273,
365,
6315,
1968,
63,
20,
65,
469,
30,
4702,
273,
5306,
225,
7934,
2354,
273,
365,
18,
4720,
31559,
... |
self.failedJobStorage.transferOne(uuid, currentStorageForThisUuid, False, True, ooid.dateFromOoid(uuid)) | self.failedJobStorage.transferOne(uuid, currentStorageForThisUuid, False, True, aDate=ooid.dateFromOoid(uuid)) | def cleanUpCompletedAndFailedJobs (self): logger.debug("%s - dealing with completed and failed jobs", threading.currentThread().getName()) # check the jobs table to and deal with the completed and failed jobs databaseConnection, databaseCursor = self.getDatabaseConnectionPair() try: logger.debug("%s - starting loop", t... | 27833d3e8d7be4df992fd0bd91c025132c9880ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12383/27833d3e8d7be4df992fd0bd91c025132c9880ea/monitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26384,
9556,
1876,
2925,
7276,
261,
2890,
4672,
1194,
18,
4148,
27188,
87,
300,
21964,
598,
5951,
471,
2535,
6550,
3113,
17254,
18,
2972,
3830,
7675,
17994,
10756,
468,
866,
326,
6550,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26384,
9556,
1876,
2925,
7276,
261,
2890,
4672,
1194,
18,
4148,
27188,
87,
300,
21964,
598,
5951,
471,
2535,
6550,
3113,
17254,
18,
2972,
3830,
7675,
17994,
10756,
468,
866,
326,
6550,
101... |
self.area_change = [] | def _set_area_change(self, data): errmsg = 'Area change should contain: \n'\ ' timestep, relative area change' self.area_change = [] for vals in data: if len(vals)==2: obj = AreaChange(timestep=int(vals[0]), rel_change=vals[1]) self.area_change.append(obj) elif vals!=[]: error(errmsg, title='error reading data', button... | bbfcbae9af76ce263b65221ec9ef39d20dbc2975 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1832/bbfcbae9af76ce263b65221ec9ef39d20dbc2975/yasso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
5036,
67,
3427,
12,
2890,
16,
501,
4672,
17460,
273,
296,
5484,
2549,
1410,
912,
30,
521,
82,
8314,
296,
27072,
16,
3632,
5091,
2549,
11,
364,
5773,
316,
501,
30,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
5036,
67,
3427,
12,
2890,
16,
501,
4672,
17460,
273,
296,
5484,
2549,
1410,
912,
30,
521,
82,
8314,
296,
27072,
16,
3632,
5091,
2549,
11,
364,
5773,
316,
501,
30,
309,
... | |
self.sendMessage("305", "You are no longer away.") | self.sendMessage(irc.RPL_UNAWAY, "You are no longer away.") | def irc_AWAY(self, prefix, params): """Away | e2c8b60bc2ec68b14c450480fe935d0baded2950 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e2c8b60bc2ec68b14c450480fe935d0baded2950/ircservice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
12999,
5255,
12,
2890,
16,
1633,
16,
859,
4672,
3536,
37,
1888,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
12999,
5255,
12,
2890,
16,
1633,
16,
859,
4672,
3536,
37,
1888,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
R = QQ[['q']] | R = K[['q']] | def eisenstein_series_qexp(k, prec=10, K=QQ): r""" Return the $q$-expansion of the weight $k$ Eisenstein series to precision prec in the field $K$. Here's a rough description of how the algorithm works: we know $E_k = const + \sum_n sigma(n,k-1) q^n$. Now, we basically just compute all the $\sigma(n,k-1)$ simultaneous... | 655338a7efdf01ea27d9ca425adea6343a86f01d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/655338a7efdf01ea27d9ca425adea6343a86f01d/eis_series.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... |
stswx = XS0(31, XO1=661) stwbrx = XS0(31, XO1=662) | stswx = XSO(31, XO1=661) stwbrx = XSO(31, XO1=662) | def disassemble(cls, inst, labels={}, pc=0): cache = cls.__dict__.get('idesc cache') if cache is None: idescs = cls.get_idescs() cache = {} for n, i in idescs: cache.setdefault(i.specializations[ppc_fields['opcode']], []).append((n,i)) setattr(cls, 'idesc cache', cache) matches = [] idescs = cache[ppc_fields['opcode'].... | 3192ef9071d3cf0da08177f7494e46c73ddc78b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3192ef9071d3cf0da08177f7494e46c73ddc78b4/ppc_assembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
29676,
12,
6429,
16,
1804,
16,
3249,
28793,
6125,
33,
20,
4672,
1247,
273,
2028,
16186,
1576,
25648,
588,
2668,
350,
742,
1247,
6134,
309,
1247,
353,
599,
30,
612,
742,
87,
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,
1015,
29676,
12,
6429,
16,
1804,
16,
3249,
28793,
6125,
33,
20,
4672,
1247,
273,
2028,
16186,
1576,
25648,
588,
2668,
350,
742,
1247,
6134,
309,
1247,
353,
599,
30,
612,
742,
87,
273,
... |
methods = map(lambda (key, value): value, inspect.getmembers(object, inspect.ismethod)) for item in methods: contents = contents + '\n' + self.document(item) | for key, value in inspect.getmembers(object, inspect.ismethod): contents = contents + '\n' + self.document(value, key, name) | def docclass(self, object): """Produce text documentation for a given class object.""" name = object.__name__ bases = object.__bases__ | 2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1106,
12,
2890,
16,
733,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
667,
733,
12123,
508,
273,
733,
16186,
529,
972,
8337,
273,
733,
16186,
18602,
972,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
997,
1106,
12,
2890,
16,
733,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
667,
733,
12123,
508,
273,
733,
16186,
529,
972,
8337,
273,
733,
16186,
18602,
972,
2,
-100,
-100,
-100,
-100,
... |
photo_name=options.photo) | photo_name=options.photo, caption=options.summary) | def _run_post(client, options, args): media_list = options.src + args if not media_list: LOG.error('Must provide paths to media to post!') album = client.GetSingleAlbum(user=options.owner or options.user, title=options.title) if album: client.InsertMediaList(album, media_list, tags=options.tags, user=options.owner or o... | 60e1dd6903c0672676ed9ac2602940222c65a007 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/60e1dd6903c0672676ed9ac2602940222c65a007/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
2767,
12,
2625,
16,
702,
16,
833,
4672,
3539,
67,
1098,
273,
702,
18,
4816,
397,
833,
309,
486,
3539,
67,
1098,
30,
2018,
18,
1636,
2668,
10136,
5615,
2953,
358,
3539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
2767,
12,
2625,
16,
702,
16,
833,
4672,
3539,
67,
1098,
273,
702,
18,
4816,
397,
833,
309,
486,
3539,
67,
1098,
30,
2018,
18,
1636,
2668,
10136,
5615,
2953,
358,
3539,
... |
'http_host':http_host | 'http_host':http_host, 'tag_browse':tag_browse | def user_tag_page(request, username, tags): logging.debug("bookmarks.views.user_tag_page() username=%s tags=%s" % (username, tags)); logging.debug("bookmarks.views.user_tag_page() request.user.username=%s" % (request.user.username)); user = get_object_or_404(User, username=username) http_host = request.META['HTTP_HOST'... | 62c38d62801aab0c289be1c9478307ae39e1dd9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10474/62c38d62801aab0c289be1c9478307ae39e1dd9c/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
67,
2692,
67,
2433,
12,
2293,
16,
2718,
16,
2342,
4672,
2907,
18,
4148,
2932,
3618,
17439,
18,
7061,
18,
1355,
67,
2692,
67,
2433,
1435,
2718,
5095,
87,
2342,
5095,
87,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
67,
2692,
67,
2433,
12,
2293,
16,
2718,
16,
2342,
4672,
2907,
18,
4148,
2932,
3618,
17439,
18,
7061,
18,
1355,
67,
2692,
67,
2433,
1435,
2718,
5095,
87,
2342,
5095,
87,
6,
738,
... |
:rtype: OPDSGeneric/OPDSCatalog/OPDSEntry | :rtype: OPDSGeneric/OPDSCatalogue/OPDSEntry | def get_item(entry): '''\ | 8978e3ddeb096e9a794a9ac570de470be898f2a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10350/8978e3ddeb096e9a794a9ac570de470be898f2a9/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1726,
12,
4099,
4672,
875,
8314,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1726,
12,
4099,
4672,
875,
8314,
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,... |
self._framesize = self._framesize / 2 | self._framesize = self._framesize // 2 | def _read_comm_chunk(self, chunk): self._nchannels = _read_short(chunk) self._nframes = _read_long(chunk) self._sampwidth = (_read_short(chunk) + 7) / 8 self._framerate = int(_read_float(chunk)) self._framesize = self._nchannels * self._sampwidth if self._aifc: #DEBUG: SGI's soundeditor produces a bad size :-( kludge =... | ac23917f909ac429091f6f96e924fad8fc36d260 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/ac23917f909ac429091f6f96e924fad8fc36d260/aifc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
5702,
67,
6551,
12,
2890,
16,
2441,
4672,
365,
6315,
82,
9114,
273,
389,
896,
67,
6620,
12,
6551,
13,
365,
6315,
82,
10278,
273,
389,
896,
67,
5748,
12,
6551,
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,
389,
896,
67,
5702,
67,
6551,
12,
2890,
16,
2441,
4672,
365,
6315,
82,
9114,
273,
389,
896,
67,
6620,
12,
6551,
13,
365,
6315,
82,
10278,
273,
389,
896,
67,
5748,
12,
6551,
13,
365,
... |
os.spawnlp(os.P_WAIT, 'chchan','%s %s %s' % (new_channel, self.cf_norm, self.cf_clist)) self.encoderthread.app.write('reset\n') | self.TunerSetChannel(new_channel) | def EventHandler(self,event): print '%s: %s app got %s event' % (time.time(), self.mode, event) if (event == remote.MENU or event == remote.STOP or event == remote.EXIT or event == remote.SELECT or event == remote.PLAY_END): self.Play('stop') remote.app = tv.eventhandler tv.refresh() return TRUE elif event == remote.CH... | 2977e6ab7a0f3b6f80c9d8f5023c4065f4d68000 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/2977e6ab7a0f3b6f80c9d8f5023c4065f4d68000/timeshift.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26012,
12,
2890,
16,
2575,
4672,
1172,
1995,
87,
30,
738,
87,
595,
2363,
738,
87,
871,
11,
738,
261,
957,
18,
957,
9334,
365,
18,
3188,
16,
871,
13,
309,
261,
2575,
422,
2632,
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,
26012,
12,
2890,
16,
2575,
4672,
1172,
1995,
87,
30,
738,
87,
595,
2363,
738,
87,
871,
11,
738,
261,
957,
18,
957,
9334,
365,
18,
3188,
16,
871,
13,
309,
261,
2575,
422,
2632,
18,
... |
longstring += "[%s] %s " % (user, ticks[user]) | longstring += "[%s] %s " % (user, self.mucous.dlang(ticks[user])) | def DrawTicker(self): try: if self.mucous.mode != "chat" or self.current not in self.tickers or self.mucous.Config["tickers"]["tickers_enabled"] != 'yes': return ticks = self.tickers[self.current] ttickers = ticks.keys() if ttickers == []: self.ticker_timer.cancel() try: self.DrawStatusWin() self.DrawStatusText() curse... | 0a16f9d140e8e1bfbc2fc43f6175f895f97a99dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8737/0a16f9d140e8e1bfbc2fc43f6175f895f97a99dc/MucousChatRooms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
18008,
12,
2890,
4672,
775,
30,
309,
365,
18,
81,
5286,
1481,
18,
3188,
480,
315,
10880,
6,
578,
365,
18,
2972,
486,
316,
365,
18,
6470,
414,
578,
365,
18,
81,
5286,
1481,
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,
10184,
18008,
12,
2890,
4672,
775,
30,
309,
365,
18,
81,
5286,
1481,
18,
3188,
480,
315,
10880,
6,
578,
365,
18,
2972,
486,
316,
365,
18,
6470,
414,
578,
365,
18,
81,
5286,
1481,
18,... |
app.delegate.openExternalURL(config.get(prefs.BUG_TRACKER_URL)) | try: from miro import config from miro import prefs try: from miro import app delegate = app.delegate except: from miro.platform.frontends.html.UIBackendDelegate import UIBackendDelegate delegate = UIBackendDelegate() delegate = UIBackendDelegate() delegate.openExternalURL(config.get(prefs.BUG_TRACKER_URL)) except... | def openBugTracker(self): app.delegate.openExternalURL(config.get(prefs.BUG_TRACKER_URL)) | a1d5b0e7fe73b3a9ec459f6bbc8a4351f71ecfaf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/a1d5b0e7fe73b3a9ec459f6bbc8a4351f71ecfaf/pybridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
19865,
8135,
12,
2890,
4672,
595,
18,
22216,
18,
3190,
6841,
1785,
12,
1425,
18,
588,
12,
1484,
2556,
18,
4827,
67,
28720,
654,
67,
1785,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
19865,
8135,
12,
2890,
4672,
595,
18,
22216,
18,
3190,
6841,
1785,
12,
1425,
18,
588,
12,
1484,
2556,
18,
4827,
67,
28720,
654,
67,
1785,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-... |
return long(imapobj.untagged_responses['APPENDUID'][0].split(' ')[1]) | return long(imapobj.untagged_responses['APPENDUID'][-1].split(' ')[1]) | def savemessage_searchforheader(self, imapobj, headername, headervalue): if imapobj.untagged_responses.has_key('APPENDUID'): return long(imapobj.untagged_responses['APPENDUID'][0].split(' ')[1]) | 440ee1708dc6edc5eb3b05e0e8897350d1728266 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5335/440ee1708dc6edc5eb3b05e0e8897350d1728266/IMAP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4087,
351,
615,
67,
3072,
1884,
3374,
12,
2890,
16,
20226,
2603,
16,
1446,
529,
16,
1446,
1132,
4672,
309,
20226,
2603,
18,
318,
23023,
67,
11822,
18,
5332,
67,
856,
2668,
24176,
3060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4087,
351,
615,
67,
3072,
1884,
3374,
12,
2890,
16,
20226,
2603,
16,
1446,
529,
16,
1446,
1132,
4672,
309,
20226,
2603,
18,
318,
23023,
67,
11822,
18,
5332,
67,
856,
2668,
24176,
3060,
... |
self.__testMethodName = methodName | self._testMethodName = methodName | def __init__(self, methodName='runTest'): """Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name. """ try: self.__testMethodName = methodName testMethod = getattr(self, methodName) self.__testMethodDoc = te... | dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4918,
2218,
2681,
4709,
11,
4672,
3536,
1684,
392,
791,
434,
326,
667,
716,
903,
999,
326,
4141,
1842,
707,
1347,
7120,
18,
20497,
279,
2068,
309,
326,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4918,
2218,
2681,
4709,
11,
4672,
3536,
1684,
392,
791,
434,
326,
667,
716,
903,
999,
326,
4141,
1842,
707,
1347,
7120,
18,
20497,
279,
2068,
309,
326,
7... |
self._distances = (self._polar._vertices.transpose() * self.points()) | V = self._polar._vertices.transpose() P = self.points() self._distances = V * P | def distances(self): r""" Return the matrix of distances for this polytope. | b3e3f4f7a4c35eb27e9fdf82e1deb703178a94d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b3e3f4f7a4c35eb27e9fdf82e1deb703178a94d0/lattice_polytope.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12491,
12,
2890,
4672,
436,
8395,
2000,
326,
3148,
434,
12491,
364,
333,
7573,
869,
347,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12491,
12,
2890,
4672,
436,
8395,
2000,
326,
3148,
434,
12491,
364,
333,
7573,
869,
347,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.response = urllib.urlopen(self.url, data=data) | self.response = urllib2.urlopen(self.url, data=data) | def request(self, data=None): logger.debug("Sending XML data as POST:\n%s" % data) self.response = urllib.urlopen(self.url, data=data) self.responseBody = self.response.read() if self.response.code in self.SUCCESS_CODES: return True else: return False | bd28adff6594de9964ec7a5ec8507102460baf4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7632/bd28adff6594de9964ec7a5ec8507102460baf4b/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
501,
33,
7036,
4672,
1194,
18,
4148,
2932,
16322,
3167,
501,
487,
5485,
5581,
82,
9,
87,
6,
738,
501,
13,
365,
18,
2740,
273,
11527,
22,
18,
295,
18589,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
501,
33,
7036,
4672,
1194,
18,
4148,
2932,
16322,
3167,
501,
487,
5485,
5581,
82,
9,
87,
6,
738,
501,
13,
365,
18,
2740,
273,
11527,
22,
18,
295,
18589,
12,
2890,
... |
docs.sort() | docs.sort(lambda a,b: cmp(a[0], b[0])) | def _module_tree(self): str = '<ul>\n' docs = self._docmap.items() docs.sort() # Find all top-level packages. (what about top-level # modules?) for (uid, doc) in docs: if not isinstance(doc, ModuleDoc): continue if not doc.package(): str += self._module_tree_item(uid) return str +'</ul>\n' | 493b240e73d87b9805c2fa61669017035e0ae245 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/493b240e73d87b9805c2fa61669017035e0ae245/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
67,
3413,
12,
2890,
4672,
609,
273,
2368,
332,
5333,
82,
11,
3270,
273,
365,
6315,
2434,
1458,
18,
3319,
1435,
3270,
18,
3804,
12,
14661,
279,
16,
70,
30,
9411,
12,
69,
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,
2978,
67,
3413,
12,
2890,
4672,
609,
273,
2368,
332,
5333,
82,
11,
3270,
273,
365,
6315,
2434,
1458,
18,
3319,
1435,
3270,
18,
3804,
12,
14661,
279,
16,
70,
30,
9411,
12,
69,
63... |
if src_rgb.ndim != 3 or src_rgb.shape[0] != 3: print 'Source image does not appear to have three bands as required.' sys.exit(1) | outdataset.SetProjection(hilldataset.GetProjection()) outdataset.SetGeoTransform(hilldataset.GetGeoTransform()) hillband = hilldataset.GetRasterBand(1) rBand = colordataset.GetRasterBand(1) gBand = colordataset.GetRasterBand(2) bBand = colordataset.GetRasterBand(3) | def Usage(): print(""" | d2b32f7ef7a71311a63ff51a68be531b5cbce93e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/d2b32f7ef7a71311a63ff51a68be531b5cbce93e/hsv_merge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
2932,
3660,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10858,
13332,
1172,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return S_ERROR('Failed to get Site data from the JobDB') | return S_ERROR( 'Failed to get Site data from the JobDB' ) | def getSiteSummary(self): """ Get the summary of jobs in a given status on all the sites """ | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11021,
4733,
12,
2890,
4672,
3536,
968,
326,
4916,
434,
6550,
316,
279,
864,
1267,
603,
777,
326,
9180,
3536,
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,
11021,
4733,
12,
2890,
4672,
3536,
968,
326,
4916,
434,
6550,
316,
279,
864,
1267,
603,
777,
326,
9180,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def __init__(self, vertices): | def __init__(self, vertices, fits=[]): | def __init__(self, vertices): #{{{2 """ Create a lineament from a given list of (lon,lat) points. | 5fbbfb8841a8a08c3a5afb94b372c8920b111266 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3464/5fbbfb8841a8a08c3a5afb94b372c8920b111266/lineament.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6928,
16,
13351,
33,
8526,
4672,
3735,
12187,
22,
3536,
1788,
279,
980,
14773,
628,
279,
864,
666,
434,
261,
9379,
16,
4801,
13,
3143,
18,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6928,
16,
13351,
33,
8526,
4672,
3735,
12187,
22,
3536,
1788,
279,
980,
14773,
628,
279,
864,
666,
434,
261,
9379,
16,
4801,
13,
3143,
18,
2,
-100,
-100,... |
for fileID,seDict in res['Value'].items(): | for fileID, seDict in res['Value'].items(): | def getReplicas(self,lfns,allStatus,connection=False): connection = self._getConnection(connection) """ Get file replicas from the catalog """ startTime = time.time() res = self._findFiles(lfns,connection=connection) #print 'findFiles',time.time()-startTime failed = res['Value']['Failed'] fileIDLFNs = {} for lfn,fileDi... | 26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5561,
10528,
12,
2890,
16,
20850,
2387,
16,
454,
1482,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
3536,
968,
585,
21545,
628,
326,
6222,
3536,
8657,
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,
5561,
10528,
12,
2890,
16,
20850,
2387,
16,
454,
1482,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
3536,
968,
585,
21545,
628,
326,
6222,
3536,
8657,
273,
... |
debug=0): AWSAuthConnection.__init__(self, self.DefaultHost, | host=DefaultHost, debug=0): AWSAuthConnection.__init__(self, host, | def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=False, port=None, proxy=None, proxy_port=None, debug=0): AWSAuthConnection.__init__(self, self.DefaultHost, aws_access_key_id, aws_secret_access_key, is_secure, port, proxy, proxy_port, debug) | 6798feda267c727fcf80e24bc8444147eb56a76f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/6798feda267c727fcf80e24bc8444147eb56a76f/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2287,
67,
3860,
67,
856,
67,
350,
33,
7036,
16,
2287,
67,
5875,
67,
3860,
67,
856,
33,
7036,
16,
353,
67,
8869,
33,
8381,
16,
1756,
33,
7036,
16,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2287,
67,
3860,
67,
856,
67,
350,
33,
7036,
16,
2287,
67,
5875,
67,
3860,
67,
856,
33,
7036,
16,
353,
67,
8869,
33,
8381,
16,
1756,
33,
7036,
16,
288... |
_repo = getRepoDB(rpmconfig, yumconf, reponame=repo) | _repo = getRepoDB(rpmconfig, yumconf, reponame=repo, replacevars=replacevars) | def load(self, ks, dir, no_discinfo=0): self.dir = dir self.exclude = None | 85394454019899f962190d90ceaf5d359fd11989 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/85394454019899f962190d90ceaf5d359fd11989/installer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
11654,
16,
1577,
16,
1158,
67,
2251,
71,
1376,
33,
20,
4672,
365,
18,
1214,
273,
1577,
365,
18,
10157,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
11654,
16,
1577,
16,
1158,
67,
2251,
71,
1376,
33,
20,
4672,
365,
18,
1214,
273,
1577,
365,
18,
10157,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def parse_type(type_string): if type_string in Sensor.SENSOR_TYPE_LOOKUP: return Sensor.SENSOR_TYPE_LOOKUP[type_string] | def parse_type(cls, type_string): """Parse KATCP formatted type code into Sensor type constant.""" if type_string in cls.SENSOR_TYPE_LOOKUP: return cls.SENSOR_TYPE_LOOKUP[type_string] | def parse_type(type_string): if type_string in Sensor.SENSOR_TYPE_LOOKUP: return Sensor.SENSOR_TYPE_LOOKUP[type_string] else: raise KatcpSyntaxError("Invalid sensor type string %s" % type_string) | ad1a16292e6d7324de6159e90d643ba82d134d99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10400/ad1a16292e6d7324de6159e90d643ba82d134d99/katcp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
723,
12,
6429,
16,
618,
67,
1080,
4672,
3536,
3201,
1475,
789,
4258,
4955,
618,
981,
1368,
28903,
618,
5381,
12123,
309,
618,
67,
1080,
316,
2028,
18,
26753,
916,
67,
2399,
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,
1109,
67,
723,
12,
6429,
16,
618,
67,
1080,
4672,
3536,
3201,
1475,
789,
4258,
4955,
618,
981,
1368,
28903,
618,
5381,
12123,
309,
618,
67,
1080,
316,
2028,
18,
26753,
916,
67,
2399,
6... |
print('name='+name) print('node.astext='+node.astext()) | def visit_docinfo_item(self, node, name): print('name='+name) print('node.astext='+node.astext()) if name == 'author': self.pdfauthor.append(self.attval(node.astext())) if self.use_latex_docinfo: if name in ('author', 'contact', 'address'): # We attach these to the last author. If any of them precedes # the first auth... | 57d484db8d6bcb77e1a5349579b470da76582323 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/57d484db8d6bcb77e1a5349579b470da76582323/rst2beamer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2434,
1376,
67,
1726,
12,
2890,
16,
756,
16,
508,
4672,
309,
508,
422,
296,
4161,
4278,
365,
18,
22353,
507,
795,
280,
18,
6923,
12,
2890,
18,
4558,
1125,
12,
2159,
18,
689... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2434,
1376,
67,
1726,
12,
2890,
16,
756,
16,
508,
4672,
309,
508,
422,
296,
4161,
4278,
365,
18,
22353,
507,
795,
280,
18,
6923,
12,
2890,
18,
4558,
1125,
12,
2159,
18,
689... | |
exec 'import build' in d | exec 'from build import build' in d | def setupRecipeDict(d, filename): exec 'import build' in d exec 'from build.recipe import PackageRecipe' in d exec 'from build.recipe import GroupRecipe' in d exec 'from build.recipe import FilesetRecipe' in d exec 'from build.recipe import loadRecipe' in d exec 'import build, os, package, sys, stat, util' in d exec 'f... | 80b31deb93c51d0e531b8477fab66958bcb9017a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/80b31deb93c51d0e531b8477fab66958bcb9017a/recipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
5650,
3151,
5014,
12,
72,
16,
1544,
4672,
1196,
296,
2080,
1361,
1930,
1361,
11,
316,
302,
1196,
296,
2080,
1361,
18,
3927,
3151,
1930,
7508,
5650,
3151,
11,
316,
302,
1196,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
5650,
3151,
5014,
12,
72,
16,
1544,
4672,
1196,
296,
2080,
1361,
1930,
1361,
11,
316,
302,
1196,
296,
2080,
1361,
18,
3927,
3151,
1930,
7508,
5650,
3151,
11,
316,
302,
1196,
296,
... |
if not isinstance(step[0], basestring): step[0] = step[0].__name__ | step = self.__create_step_tuple(fn, args, dargs) | def next_step_prepend(self, step): """Insert a new step, executing first""" if not isinstance(step[0], basestring): step[0] = step[0].__name__ self.steps.insert(0, step) pickle.dump(self.steps, open(self.control + '.state', 'w')) | fa764631d776324d7bff704fa8425960083dba86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/fa764631d776324d7bff704fa8425960083dba86/job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
4119,
67,
23100,
12,
2890,
16,
2235,
4672,
3536,
4600,
279,
394,
2235,
16,
11274,
1122,
8395,
2235,
273,
365,
16186,
2640,
67,
4119,
67,
8052,
12,
4293,
16,
833,
16,
302,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
4119,
67,
23100,
12,
2890,
16,
2235,
4672,
3536,
4600,
279,
394,
2235,
16,
11274,
1122,
8395,
2235,
273,
365,
16186,
2640,
67,
4119,
67,
8052,
12,
4293,
16,
833,
16,
302,
196... |
working_set = pkg_resources.working_set for path in search_path: working_set.add_entry(path) | distributions, errors = working_set.find_plugins( pkg_resources.Environment(search_path) ) for dist in distributions: env.log.debug('Adding plugin %s from %s', dist, dist.location) working_set.add(dist) | def _load_eggs(env, search_path, auto_enable=None): working_set = pkg_resources.working_set for path in search_path: working_set.add_entry(path) | 4f97e682f87d34e59509f9877bd5ee56864dc858 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/4f97e682f87d34e59509f9877bd5ee56864dc858/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
1332,
564,
12,
3074,
16,
1623,
67,
803,
16,
3656,
67,
7589,
33,
7036,
4672,
5960,
67,
542,
273,
3475,
67,
4683,
18,
20478,
67,
542,
364,
589,
316,
1623,
67,
803,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
1332,
564,
12,
3074,
16,
1623,
67,
803,
16,
3656,
67,
7589,
33,
7036,
4672,
5960,
67,
542,
273,
3475,
67,
4683,
18,
20478,
67,
542,
364,
589,
316,
1623,
67,
803,
30,
... |
[output.write(generateChap(formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1]),i+1,chapType)) for i in range(len(Trims2ts))] | [output.write(generateChap(formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1]),i+1,chapNames[i],chapType)) for i in range(len(Trims2ts))] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.2', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... | 783e706a8cc971cea83a2a5c030b5bfe68c6a872 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14863/783e706a8cc971cea83a2a5c030b5bfe68c6a872/vfr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
293,
273,
2153,
2670,
18,
1895,
2678,
12,
3384,
2218,
14571,
2038,
1712,
291,
878,
451,
2209,
87,
471,
6729,
23580,
585,
16,
22859,
768,
471,
19,
280,
6391,
87,
7447,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
293,
273,
2153,
2670,
18,
1895,
2678,
12,
3384,
2218,
14571,
2038,
1712,
291,
878,
451,
2209,
87,
471,
6729,
23580,
585,
16,
22859,
768,
471,
19,
280,
6391,
87,
7447,
... |
def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(331635635998274737472200656430763,1510028911088401971189590305498785,1,1) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) <= n: self._precompute(n - len(self._b) + 1) return s... | class A083105(RecurrenceSequence2): def __init__(self): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 62638280004239857$, $a(1) = 49463435743205655$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co-prime. It was found by Donald Knuth in 1990. INPUT:... | def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(331635635998274737472200656430763,1510028911088401971189590305498785,1,1) f = self._f self._b += [f.next() for i in range(how_many)] | 8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1484,
9200,
12,
2890,
16,
3661,
67,
9353,
33,
2163,
4672,
775,
30,
284,
273,
365,
6315,
74,
1335,
6394,
30,
365,
6315,
74,
273,
8112,
67,
4507,
22,
12,
3707,
30886,
4313,
4763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1484,
9200,
12,
2890,
16,
3661,
67,
9353,
33,
2163,
4672,
775,
30,
284,
273,
365,
6315,
74,
1335,
6394,
30,
365,
6315,
74,
273,
8112,
67,
4507,
22,
12,
3707,
30886,
4313,
4763,
... |
header = Header() header.stamp = rospy.Time.now() ap = AccessPoint(header=header, essid=essid, macaddr=macaddr, signal=signal, noise=noise, snr=snr, channel=channel, rate=rate, quality=quality, tx_power=tx_power) | header = Header() header.stamp = rospy.Time.now() ap = AccessPoint(header=header, essid=essid, macaddr=macaddr, signal=signal, noise=noise, snr=snr, channel=channel, rate=rate, quality=quality, tx_power=tx_power) | def fetchCurrentAP(self): url = "http://%s/Status_Wireless.live.asp" % self.hostname response = self.br.open(url) body = response.read() | 0226e6e16ffc0b0b34d4c92dc62e5481bda0a482 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9143/0226e6e16ffc0b0b34d4c92dc62e5481bda0a482/ddwrt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
3935,
2203,
12,
2890,
4672,
880,
273,
315,
2505,
23155,
87,
19,
1482,
67,
15249,
2656,
18,
16472,
18,
28264,
6,
738,
365,
18,
10358,
766,
273,
365,
18,
2848,
18,
3190,
12,
718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2158,
3935,
2203,
12,
2890,
4672,
880,
273,
315,
2505,
23155,
87,
19,
1482,
67,
15249,
2656,
18,
16472,
18,
28264,
6,
738,
365,
18,
10358,
766,
273,
365,
18,
2848,
18,
3190,
12,
718,
... |
self.ScrollBy(0, lineno - vl) if offset != -1: self.SetCurrentPosition(self.GetCurrentPos()+offset+1) | self.LineScroll(0, lineno - vl) if offset != -1: self.SetCurrentPos(self.GetCurrentPos()+offset+1) | def gotoLine(self, lineno, offset = -1): self.GotoLine(lineno) vl = self.GetFirstVisibleLine() self.ScrollBy(0, lineno - vl) if offset != -1: self.SetCurrentPosition(self.GetCurrentPos()+offset+1) | f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2897,
1670,
12,
2890,
16,
7586,
16,
1384,
273,
300,
21,
4672,
365,
18,
43,
6302,
1670,
12,
17782,
13,
19755,
273,
365,
18,
967,
3759,
6207,
1670,
1435,
365,
18,
6806,
858,
12,
20,
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,
2897,
1670,
12,
2890,
16,
7586,
16,
1384,
273,
300,
21,
4672,
365,
18,
43,
6302,
1670,
12,
17782,
13,
19755,
273,
365,
18,
967,
3759,
6207,
1670,
1435,
365,
18,
6806,
858,
12,
20,
16... |
self.straightHeading -= dt * self.TURNING_BONUS_REDUCTION * 2.0 | if (self.straightHeading < 0): self.straightHeading -= dt * self.TURNING_BONUS_REDUCTION * 2.0 else: self.straightHeading -= dt * self.TURNING_BONUS_REDUCTION * 4.0 | def handleAvatarControls(self, task): """ Check on the arrow keys and update the "avatar" (ship). """ if __debug__: if self.wantDebugIndicator: onScreenDebug.append("localAvatar pos = %s\n"%( base.localAvatar.getPos().pPrintValues(),)) onScreenDebug.append("localAvatar hpr = %s\n"%( base.localAvatar.getHpr().pPrintValu... | c50e998801b173312a67d5084fa02df77215a834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/c50e998801b173312a67d5084fa02df77215a834/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... |
url, data = ohloh_url2data(url=url, selector='result/project') | data, web_response = ohloh_url2data(url=url, selector='result/project') | def project_id2projectdata(self, project_id=None, project_name=None): if project_name is None: project_query = str(int(project_id)) else: project_query = str(project_name) url = 'http://www.ohloh.net/projects/%s.xml?' % urllib.quote( project_query) url, data = ohloh_url2data(url=url, selector='result/project') return d... | b59d458cd897dbc72d6d2574b975f73b40c0009a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/b59d458cd897dbc72d6d2574b975f73b40c0009a/ohloh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
67,
350,
22,
4406,
892,
12,
2890,
16,
1984,
67,
350,
33,
7036,
16,
1984,
67,
529,
33,
7036,
4672,
309,
1984,
67,
529,
353,
599,
30,
1984,
67,
2271,
273,
609,
12,
474,
12,
440... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
67,
350,
22,
4406,
892,
12,
2890,
16,
1984,
67,
350,
33,
7036,
16,
1984,
67,
529,
33,
7036,
4672,
309,
1984,
67,
529,
353,
599,
30,
1984,
67,
2271,
273,
609,
12,
474,
12,
440... |
update.exposed = True | def update(self,**kwargs): #import pdb; pdb.set_trace() action = kwargs['action'] #make sure at least one checkbox was selected ecomapList = kwargs.get('ecomap_id',None) redirectTo = "/course/%s/" % self.course.id if ecomapList: if type(ecomapList) is str: itemList = [int(kwargs['ecomap_id'])] elif type(kwargs['ecomap... | bd620ed6e7bc94139cb8bd730d5c5775ee916a14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5854/bd620ed6e7bc94139cb8bd730d5c5775ee916a14/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
636,
4333,
4672,
468,
5666,
10892,
31,
10892,
18,
542,
67,
5129,
1435,
1301,
273,
1205,
3292,
1128,
3546,
468,
6540,
3071,
622,
4520,
1245,
11832,
1703,
3170,
425,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2890,
16,
636,
4333,
4672,
468,
5666,
10892,
31,
10892,
18,
542,
67,
5129,
1435,
1301,
273,
1205,
3292,
1128,
3546,
468,
6540,
3071,
622,
4520,
1245,
11832,
1703,
3170,
425,
83... | |
print "Number of starttimes != Number of IFOs" | print >> sys.stderr, "Number of starttimes != Number of IFOs" | def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: pri... | 9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
315,
5048,
11339,
1296,
980,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
315,
5048,
11339,
1296,
980,... |
rc.post_event(rc.PLAY_END) | rc.post_event(em.PLAY_END) | def run(self): while 1: if self.mode == 'idle': self.mode_flag.wait() self.mode_flag.clear() elif self.mode == 'play': # The DXR3 device cannot be shared between our SDL session # and MPlayer. if (osd.sdl_driver == 'dxr3'): if DEBUG: print "Stopping Display for Video Playback on DXR3" osd.stopdisplay() if DEBUG: print... | e498694c7f9818552297d29fd2eefb96419cc196 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e498694c7f9818552297d29fd2eefb96419cc196/timeshift.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
404,
30,
309,
365,
18,
3188,
422,
296,
20390,
4278,
365,
18,
3188,
67,
6420,
18,
7048,
1435,
365,
18,
3188,
67,
6420,
18,
8507,
1435,
225,
1327,
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,
1086,
12,
2890,
4672,
1323,
404,
30,
309,
365,
18,
3188,
422,
296,
20390,
4278,
365,
18,
3188,
67,
6420,
18,
7048,
1435,
365,
18,
3188,
67,
6420,
18,
8507,
1435,
225,
1327,
365,
18,
... |
v1param[a.parameters[0][0]].append(string.joinfields([a.parameters[0][2],'(', string.joinfields(values,','), ')'],'')) | params = string.joinfields([a.parameters[0][2],'(', string.joinfields(values,','), ')'],'') v1param[a.parameters[0][0]].append(params) | def getPipelineShare(self, v1, v2): """ Returns a list of shared modules between the two versions Parameters ---------- - v1 : 'int' version number 1 | 0d08a982cb8d26e26f2e6ab32b89ef18e54df8fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6341/0d08a982cb8d26e26f2e6ab32b89ef18e54df8fb/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
3842,
9535,
12,
2890,
16,
331,
21,
16,
331,
22,
4672,
3536,
2860,
279,
666,
434,
5116,
4381,
3086,
326,
2795,
5244,
7012,
12181,
300,
331,
21,
294,
296,
474,
11,
1177,
1300,
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,
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,
1689,
3842,
9535,
12,
2890,
16,
331,
21,
16,
331,
22,
4672,
3536,
2860,
279,
666,
434,
5116,
4381,
3086,
326,
2795,
5244,
7012,
12181,
300,
331,
21,
294,
296,
474,
11,
1177,
1300,
404,... |
"""Sets the navigator object to the first child object to the one it is currently on""" | def script_navigatorObject_firstChild(self,keyPress,nextScript): """Sets the navigator object to the first child object to the one it is currently on""" curObject=api.getNavigatorObject() if not isinstance(curObject,NVDAObjects.baseType.NVDAObject): audio.speakMessage(_("no navigator object")) return curObject=curObjec... | c6388e71ad509ca538ed8be17f21eeb912f2f689 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/c6388e71ad509ca538ed8be17f21eeb912f2f689/_default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
82,
13061,
921,
67,
3645,
1763,
12,
2890,
16,
856,
11840,
16,
4285,
3651,
4672,
662,
921,
33,
2425,
18,
588,
22817,
921,
1435,
309,
486,
1549,
12,
1397,
921,
16,
11679,
9793,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
82,
13061,
921,
67,
3645,
1763,
12,
2890,
16,
856,
11840,
16,
4285,
3651,
4672,
662,
921,
33,
2425,
18,
588,
22817,
921,
1435,
309,
486,
1549,
12,
1397,
921,
16,
11679,
9793,... | |
__setParameters( op, kw ) | __setParameters( op, **kw ) | def __applyMeshOp( meshNode, className, classVersion, kw ): op = IECore.ClassLoader.defaultOpLoader().load( className, classVersion ) __setParameters( op, kw ) # \todo Apply op and convert result back into original object | a0cf5513de8ff11e62387c7d0adaf6078dd9be27 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/a0cf5513de8ff11e62387c7d0adaf6078dd9be27/MeshOpHolderUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9010,
16748,
3817,
12,
6986,
907,
16,
2658,
16,
667,
1444,
16,
5323,
262,
30,
225,
1061,
273,
10897,
4670,
18,
7805,
18,
1886,
3817,
2886,
7675,
945,
12,
2658,
16,
667,
1444,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9010,
16748,
3817,
12,
6986,
907,
16,
2658,
16,
667,
1444,
16,
5323,
262,
30,
225,
1061,
273,
10897,
4670,
18,
7805,
18,
1886,
3817,
2886,
7675,
945,
12,
2658,
16,
667,
1444,
262... |
current_folder = None for tab in self.channelTabs.getView(): if isinstance(tab.obj, folder.ChannelFolder): current_folder = tab.obj elif tab.obj.get_folder() is not current_folder: current_folder = None if current_folder is None: print tab.obj.get_title() elif current_folder is tab.obj: print "[Folder] %s" % tab.obj.ge... | print "VIDEO FEEDS" self._print_feeds(self.video_feed_tabs.get_all_tabs()) print "AUDIO FEEDS" self._print_feeds(self.audio_feed_tabs.get_all_tabs()) | def do_feeds(self, line): """feeds -- Lists all feeds.""" current_folder = None for tab in self.channelTabs.getView(): if isinstance(tab.obj, folder.ChannelFolder): current_folder = tab.obj elif tab.obj.get_folder() is not current_folder: current_folder = None if current_folder is None: print tab.obj.get_title() elif c... | ba7e51e3e03d9068a7e95e9beba806bfd19f9f19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/ba7e51e3e03d9068a7e95e9beba806bfd19f9f19/interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7848,
87,
12,
2890,
16,
980,
4672,
3536,
7848,
87,
1493,
11592,
777,
27684,
12123,
783,
67,
5609,
273,
599,
364,
3246,
316,
365,
18,
4327,
17348,
18,
588,
1767,
13332,
309,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7848,
87,
12,
2890,
16,
980,
4672,
3536,
7848,
87,
1493,
11592,
777,
27684,
12123,
783,
67,
5609,
273,
599,
364,
3246,
316,
365,
18,
4327,
17348,
18,
588,
1767,
13332,
309,
15... |
elif code > 100 and code < 200 and self.ua.expire_time != None: | elif code < 200 and self.ua.expire_time != None: | def recvResponse(self, resp): body = resp.getBody() code, reason = resp.getSCode() scode = (code, reason, body) if self.ua.no_reply_timer != None: self.ua.no_reply_timer.cancel() self.ua.no_reply_timer = None if code == 100 and self.ua.no_progress_time != None: self.ua.no_progress_timer = TimeoutAbs(self.ua.no_progress... | 083d47c3f1f9c417a8a290afb0688d6fbcb15edb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8853/083d47c3f1f9c417a8a290afb0688d6fbcb15edb/UacStateTrying.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
1064,
12,
2890,
16,
1718,
4672,
1417,
273,
1718,
18,
588,
2250,
1435,
981,
16,
3971,
273,
1718,
18,
588,
55,
1085,
1435,
272,
710,
273,
261,
710,
16,
3971,
16,
1417,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
1064,
12,
2890,
16,
1718,
4672,
1417,
273,
1718,
18,
588,
2250,
1435,
981,
16,
3971,
273,
1718,
18,
588,
55,
1085,
1435,
272,
710,
273,
261,
710,
16,
3971,
16,
1417,
13,
309,
... |
if data in prefixes: | if data in prefixes and prefixes.get(data): | def _gen_prefix(): val = 0 while 1: val += 1 yield 'ns%d' % val | 49dc6d97e191711af9fae8ec70d677837a94ef8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/49dc6d97e191711af9fae8ec70d677837a94ef8a/output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4507,
67,
3239,
13332,
1244,
273,
374,
1323,
404,
30,
1244,
1011,
404,
2824,
296,
2387,
9,
72,
11,
738,
1244,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4507,
67,
3239,
13332,
1244,
273,
374,
1323,
404,
30,
1244,
1011,
404,
2824,
296,
2387,
9,
72,
11,
738,
1244,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
yf2A+S912Lcz/gPGAFxAde9zQFwMD3QXdiPdDI+cQclEYVIF49gbrU4KC8BXUBRAYfPfbAXHcUoM PGoKmVn39222/PkzyWi0cFEAHmi8AgAN0SyZhi80KyhQbramtjLXGg0UFSS+4IloS0fYBFYZWVAu DwF2ct3dIB0sGP/TaCnXKN7XDuw4YCMKARXTqZw5070LXyCfnjhdY2vN9PH2wj7auLC9+7YABgA9 /OFOdHCBBRB42jHLZ6OKfQjfYTR8+E/nBgDHBCSAm78A8P/Ac7jfwfDyNUwF0xrtW7s0CugDPzrW aECKFjayOdho... | yf2A+S912Lcz/gPGAFxAde9zQFwMD3QXdpEaDI+cQd1hUnHsjdYFTgoLwFdQFExhb7aC4/NxSgxI agqZWfs2W/73+TPJaLRwUQAeaLwCAA1olkzDLzArOFA3W1PbMtcaDRQVKL6AibSlI2wEVhlZUC4P ATu57m4gHSQY/9NoKdco72sHdiBgIwoBFdOpzpzpXgtfLJ+eRK6xtWb08fbCPtrY3n3buAAGAD2s 4U50cIEFEOjumGVno4p9CFdBYTR8+E/nBgDHBCQgm78A8P/A5nCf7fJgNVgF0xq7t3ZpCugDPzrW aODCaP3ayOZg... | def get_exe_bytes (self): import base64 return base64.decodestring (EXEDATA) | bde4b3adef4075407ed2396d5d01b9da498c96ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bde4b3adef4075407ed2396d5d01b9da498c96ec/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
archive_basename = "%s.win32" % self.distribution.get_fullname() | fullname = self.distribution.get_fullname() archive_basename = os.path.join(self.bdist_dir, "%s.win32" % fullname) | def run (self): | d632280482e5e5e66cebc993062f0fd1e60755b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d632280482e5e5e66cebc993062f0fd1e60755b5/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
digitpairs = (ndig + 1) // 2 v = W_LongObject(space, [r_uint(0)] * digitpairs, 1) | v = W_LongObject(space, [Digit(0)] * ndig, 1) | def _FromDouble(space, dval): """ Create a new long int object from a C double """ neg = 0 if isinf(dval): raise OperationError(space.w_OverflowError, space.wrap("cannot convert float infinity to long")) if dval < 0.0: neg = 1 dval = -dval frac, expo = math.frexp(dval) # dval = frac*2**expo; 0.0 <= frac < 1.0 if expo <... | ad929a678777d2ef2df66adef7cd3564d723bca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ad929a678777d2ef2df66adef7cd3564d723bca6/longobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1265,
5265,
12,
2981,
16,
302,
1125,
4672,
3536,
1788,
279,
394,
1525,
509,
733,
628,
279,
385,
1645,
3536,
4251,
273,
374,
309,
353,
10625,
12,
72,
1125,
4672,
1002,
4189,
668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1265,
5265,
12,
2981,
16,
302,
1125,
4672,
3536,
1788,
279,
394,
1525,
509,
733,
628,
279,
385,
1645,
3536,
4251,
273,
374,
309,
353,
10625,
12,
72,
1125,
4672,
1002,
4189,
668,
1... |
" --local -r %s \"expression\"' to do the initial configuration." % resource) | "-local -r %s \"expression\"' to do the initial configuration." % resource) | def _auto_local(path_to_tx, resource, source_language, expression, execute=False, source_file=None, nosource=False, regex=False): """ Auto configure local project """ expr_re = '.*%s.*' % expression if not regex: # Force expr to be a valid regex expr (escaped) but keep <lang> intact expr_re = re.escape(expression) exp... | 97b44c3763af5203bc59403d86fc1b058685c849 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11326/97b44c3763af5203bc59403d86fc1b058685c849/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6079,
67,
3729,
12,
803,
67,
869,
67,
978,
16,
1058,
16,
1084,
67,
4923,
16,
2652,
16,
1836,
33,
8381,
16,
1084,
67,
768,
33,
7036,
16,
26628,
552,
33,
8381,
16,
3936,
33,
838... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6079,
67,
3729,
12,
803,
67,
869,
67,
978,
16,
1058,
16,
1084,
67,
4923,
16,
2652,
16,
1836,
33,
8381,
16,
1084,
67,
768,
33,
7036,
16,
26628,
552,
33,
8381,
16,
3936,
33,
838... |
group_ids = [x[0] for x in cr.fetchall()] | group_ids = [x[0] for x in cr.fetchall() if x[0]] | def _disable_workflow_buttons(self, cr, user, node): if user == 1: # admin user can always activate workflow buttons return node | 74f144f813baa660234e70a337d549601782d3ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/74f144f813baa660234e70a337d549601782d3ff/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8394,
67,
13815,
67,
16016,
12,
2890,
16,
4422,
16,
729,
16,
756,
4672,
309,
729,
422,
404,
30,
468,
3981,
729,
848,
3712,
10235,
6095,
9502,
327,
756,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8394,
67,
13815,
67,
16016,
12,
2890,
16,
4422,
16,
729,
16,
756,
4672,
309,
729,
422,
404,
30,
468,
3981,
729,
848,
3712,
10235,
6095,
9502,
327,
756,
2,
-100,
-100,
-100,
-100,
... |
open(path, 'w').close() self._info("Touched file '%s'" % path) | if os.path.exists(path): mtime = round(time.time()) os.utime(path, (mtime, mtime)) self._info("Touched existing file '%s'" % path) else: open(path, 'w').close() self._info("Touched new file '%s'" % path) | def touch(self, path): """Emulates the UNIX touch command. Creates a file, if it does not exist. Otherwise changes its access and modification times to the current time. Fails if used with the directories or the parent directory of the given file does not exist. """ if os.path.isdir(path): raise DataError("Cannot tou... | a2152145a7e713b7a988a154a7b296b361d56338 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/a2152145a7e713b7a988a154a7b296b361d56338/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6920,
12,
2890,
16,
589,
4672,
3536,
1514,
17099,
326,
23160,
6920,
1296,
18,
225,
10210,
279,
585,
16,
309,
518,
1552,
486,
1005,
18,
5272,
3478,
2097,
2006,
471,
11544,
4124,
358,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6920,
12,
2890,
16,
589,
4672,
3536,
1514,
17099,
326,
23160,
6920,
1296,
18,
225,
10210,
279,
585,
16,
309,
518,
1552,
486,
1005,
18,
5272,
3478,
2097,
2006,
471,
11544,
4124,
358,
326,... |
elif platform in ('freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'): | elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'): | def gen_db_minor_ver_nums(major): if major == 4: for x in range(max_db_ver[1]+1): if allow_db_ver((4, x)): yield x elif major == 3: for x in (3,): if allow_db_ver((3, x)): yield x else: raise ValueError("unknown major BerkeleyDB version", major) | bb86d831340239e50036ef4f524bd90a727fdcd4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/bb86d831340239e50036ef4f524bd90a727fdcd4/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
1966,
67,
17364,
67,
502,
67,
21180,
12,
14019,
4672,
309,
7888,
422,
1059,
30,
364,
619,
316,
1048,
12,
1896,
67,
1966,
67,
502,
63,
21,
3737,
21,
4672,
309,
1699,
67,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
1966,
67,
17364,
67,
502,
67,
21180,
12,
14019,
4672,
309,
7888,
422,
1059,
30,
364,
619,
316,
1048,
12,
1896,
67,
1966,
67,
502,
63,
21,
3737,
21,
4672,
309,
1699,
67,
196... |
self.globalDbs = DBSWriter(globalDBSUrl) | self.globalDbs = DBSWriter(globalDbsUrl) | def __init__(self, blockName, localDbsUrl, globalDbsUrl, datasetPath): self.block = blockName self.dataset = datasetPath self.localDbs = DBSWriter(localDbsUrl) self.localUrl = localDbsUrl self.globalDbs = DBSWriter(globalDBSUrl) self.globalUrl = globalDbsUrl | c578086b359f8c0b1a0fce55b3c6713a9156b2db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/c578086b359f8c0b1a0fce55b3c6713a9156b2db/BlockTools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
25898,
16,
1191,
40,
2038,
1489,
16,
2552,
40,
2038,
1489,
16,
3709,
743,
4672,
365,
18,
2629,
273,
25898,
365,
18,
8682,
273,
3709,
743,
365,
18,
3729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25898,
16,
1191,
40,
2038,
1489,
16,
2552,
40,
2038,
1489,
16,
3709,
743,
4672,
365,
18,
2629,
273,
25898,
365,
18,
8682,
273,
3709,
743,
365,
18,
3729,
... |
functions, classes = self._parse_module(uri) if not len(functions) and not len(classes): | functions, classes = self._parse_module_with_import(uri) if not len(functions) and not len(classes) and DEBUG: | def generate_api_doc(self, uri): '''Make autodoc documentation template string for a module | 20031dae080a27400d746110e32688e39bff80f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/20031dae080a27400d746110e32688e39bff80f1/apigen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2425,
67,
2434,
12,
2890,
16,
2003,
4672,
9163,
6464,
2059,
369,
504,
7323,
1542,
533,
364,
279,
1605,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2103,
67,
2425,
67,
2434,
12,
2890,
16,
2003,
4672,
9163,
6464,
2059,
369,
504,
7323,
1542,
533,
364,
279,
1605,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
except KeyboardInterrupt: raise except: | except Exception: | def run(self, result=None): if result is None: result = self.defaultTestResult() result.startTest(self) testMethod = getattr(self, self._testMethodName) try: try: self.setUp() except KeyboardInterrupt: raise except: result.addError(self, self._exc_info()) return | 17322bbb89cc284ccf9b00c40cc8dfa84e535b81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/17322bbb89cc284ccf9b00c40cc8dfa84e535b81/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
563,
18,
1937,
4709,
12,
2890,
13,
1842,
1305,
273,
3869,
12,
2890,
16,
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,
1086,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
563,
18,
1937,
4709,
12,
2890,
13,
1842,
1305,
273,
3869,
12,
2890,
16,
36... |
y = y - v.getSpaceBefore() y = y - h | y -= v.getSpaceBefore() y -= h | def _drawCell(self, cellval, cellstyle, (colpos, rowpos), (colwidth, rowheight)): if self._curcellstyle is not cellstyle: cur = self._curcellstyle if cur is None or cellstyle.color != cur.color: self.canv.setFillColor(cellstyle.color) if cur is None or cellstyle.leading != cur.leading or cellstyle.fontname != cur.fontn... | 8259c4ddeceb0b9d072cab723c6a7323acf706be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8259c4ddeceb0b9d072cab723c6a7323acf706be/tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
4020,
12,
2890,
16,
2484,
1125,
16,
2484,
4060,
16,
261,
1293,
917,
16,
1027,
917,
3631,
261,
1293,
2819,
16,
1027,
4210,
3719,
30,
309,
365,
6315,
1397,
3855,
4060,
353,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
4020,
12,
2890,
16,
2484,
1125,
16,
2484,
4060,
16,
261,
1293,
917,
16,
1027,
917,
3631,
261,
1293,
2819,
16,
1027,
4210,
3719,
30,
309,
365,
6315,
1397,
3855,
4060,
353,
48... |
Factors so far: [] | Proper factors so far: [] | def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ if time: out = out.strip() w = out.split('\n') for... | c66b75a0841c02b3c426602466522d2230e774ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/c66b75a0841c02b3c426602466522d2230e774ba/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... |
str += ' <TD> <B><FONT SIZE="+1">'+\ '<A HREF="'+`pkg`+'.html">'+\ 'Package</A>'+\ '</FONT></B> </TD>\n' | str += I+'<TH CLASS="navbar"> '+\ '<A CLASS="navbar" HREF="'+`pkg`+'.html">'+\ 'Package</A> </TH>\n' | def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') + \ '<TABLE BORDER="0" WIDTH="100%" '+\ 'CELLPADDING="0" BGCOLOR="WHITE" CELLSPACING="0">\n'+\ '<TR>\n<TD COLSPAN=2 BGCOLOR="#a0c0ff">\n'+\ '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING... | 07991a6224980123acb6be68dd2d39634e5ac591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/07991a6224980123acb6be68dd2d39634e5ac591/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... |
is_oob_signature = false | is_oob_signature = False | def put_processed_json(self,ooid,processed_json): """ Create a crash report from the cooked json output of the processor """ row_id = ooid_to_row_id(ooid) | ccf77afa0d0c6762e415d84419e9152954c6e702 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12383/ccf77afa0d0c6762e415d84419e9152954c6e702/hbaseClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
11005,
67,
1977,
12,
2890,
16,
83,
839,
16,
11005,
67,
1977,
4672,
3536,
1788,
279,
17053,
2605,
628,
326,
15860,
329,
1163,
876,
434,
326,
6659,
3536,
1027,
67,
350,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
11005,
67,
1977,
12,
2890,
16,
83,
839,
16,
11005,
67,
1977,
4672,
3536,
1788,
279,
17053,
2605,
628,
326,
15860,
329,
1163,
876,
434,
326,
6659,
3536,
1027,
67,
350,
273,
32... |
cinfo['browser_href.old'] = self.env.href.browser(old_path, old_rev) | cinfo['browser_href.old'] = self.env.href.browser(old_path, rev=old_rev) | def get_change_info(self, rev): cursor = self.db.cursor () cursor.execute("SELECT name, change FROM node_change " "WHERE rev=%s", (rev,)) info = [] while 1: row = cursor.fetchone() if not row: break change = row['change'] name = row['name'] if change in 'CRdm': # 'C'opy, 'R'eplace or 'd'elete on a branch # the name col... | 5304b982a6c96671fea398b5c0665537d7d0f9ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5304b982a6c96671fea398b5c0665537d7d0f9ec/Changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3427,
67,
1376,
12,
2890,
16,
5588,
4672,
3347,
273,
365,
18,
1966,
18,
9216,
1832,
3347,
18,
8837,
2932,
4803,
508,
16,
2549,
4571,
756,
67,
3427,
315,
315,
12299,
5588,
5095... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3427,
67,
1376,
12,
2890,
16,
5588,
4672,
3347,
273,
365,
18,
1966,
18,
9216,
1832,
3347,
18,
8837,
2932,
4803,
508,
16,
2549,
4571,
756,
67,
3427,
315,
315,
12299,
5588,
5095... |
self.assertEqual([(u'', u'---------'), (1, u'tester0')], form.fields['owner'].choices) | self.assertEqual( [ (u'', u'---------'), (user.profile.id, u'tester0'), ], form.fields['owner'].choices) | def test_owner_choices_init(self): """ Tests that owner choices are set based on User permissions Verifies: * superusers have all clusterusers as choices * user receives themselves as a choice if they have perms * user receives all groups they are a member of """ # user with no choices form = NewVirtualMachineForm(us... | c24ff4471dfca799ba7ddabc41abb048929bc8fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/c24ff4471dfca799ba7ddabc41abb048929bc8fd/virtual_machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8443,
67,
11937,
67,
2738,
12,
2890,
4672,
3536,
7766,
87,
716,
3410,
7246,
854,
444,
2511,
603,
2177,
4371,
225,
6160,
5032,
30,
380,
2240,
5577,
1240,
777,
2855,
5577,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8443,
67,
11937,
67,
2738,
12,
2890,
4672,
3536,
7766,
87,
716,
3410,
7246,
854,
444,
2511,
603,
2177,
4371,
225,
6160,
5032,
30,
380,
2240,
5577,
1240,
777,
2855,
5577,
487,
... |
btn = wx.Button(self, wx.ID_OK, messages.OK) box.Add(btn, 0, wx.ALIGN_RIGHT|wx.ALL, 5) btn = wx.Button(self, wx.ID_CANCEL, messages.CANCEL) | btn = wx.Button(self, wx.ID_OK) box.Add(btn, 0, wx.ALIGN_RIGHT|wx.ALL, 5) btn = wx.Button(self, wx.ID_CANCEL) | def __init__(self, parent, x509, storedUntrusted, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER): """ Initialize dialog. | bc7ba2d51ff02208b4182d0b1b8f4f80fd720634 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/bc7ba2d51ff02208b4182d0b1b8f4f80fd720634/dialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
5995,
16,
4041,
984,
25247,
16,
963,
33,
27226,
18,
1868,
1225,
16,
949,
33,
27226,
18,
1868,
2555,
16,
2154,
33,
27226,
18,
5280,
67,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
5995,
16,
4041,
984,
25247,
16,
963,
33,
27226,
18,
1868,
1225,
16,
949,
33,
27226,
18,
1868,
2555,
16,
2154,
33,
27226,
18,
5280,
67,
25... |
f = _open_with_retry(urllib.request.urlopen, "http://www.python.org/") | with support.transient_internet("www.python.org"): f = urllib.request.urlopen("http://www.python.org/") | def testURLread(self): f = _open_with_retry(urllib.request.urlopen, "http://www.python.org/") x = f.read() | ba41466ad95e698b31a1c2bffbc9a3bf68219b05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/ba41466ad95e698b31a1c2bffbc9a3bf68219b05/test_urllibnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1785,
896,
12,
2890,
4672,
598,
2865,
18,
22670,
67,
267,
14726,
2932,
5591,
18,
8103,
18,
3341,
6,
4672,
284,
273,
11527,
18,
2293,
18,
295,
18589,
2932,
2505,
2207,
5591,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1785,
896,
12,
2890,
4672,
598,
2865,
18,
22670,
67,
267,
14726,
2932,
5591,
18,
8103,
18,
3341,
6,
4672,
284,
273,
11527,
18,
2293,
18,
295,
18589,
2932,
2505,
2207,
5591,
18,
8... |
def get_pages(self): | def get_pages(self, **kwargs): | def get_pages(self): """ Returns a list of SyncPage instances. """ return NotImplemented | cb46ad28ddfa4d287249934043675d7ced809ec4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/cb46ad28ddfa4d287249934043675d7ced809ec4/SyncPages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7267,
12,
2890,
16,
2826,
4333,
4672,
3536,
2860,
279,
666,
434,
9721,
1964,
3884,
18,
3536,
327,
10051,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7267,
12,
2890,
16,
2826,
4333,
4672,
3536,
2860,
279,
666,
434,
9721,
1964,
3884,
18,
3536,
327,
10051,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
G.axes(False) | G.axes(False) | def plot(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, partition=None, edge_colors=None, scaling_term=0.05, iterations=50, loop_size=.1, color_by_label=False, heights=None): """ Returns a graphics object representing the (di)graph. INPUT: p... | 66c8e4bb0d5483517af88ab3de31261cfb11dbf9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/66c8e4bb0d5483517af88ab3de31261cfb11dbf9/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... |
gone[a] = 1 | gone.add(a) | def getfilectx(f, ctx): flctx = ctx.filectx(f, filelog=flcache.get(f)) if f not in flcache: flcache[f] = flctx._filelog return flctx | e31b5f8b2ad26067c4b8dbefa987c7a75abeb5e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/e31b5f8b2ad26067c4b8dbefa987c7a75abeb5e8/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
5900,
12,
74,
16,
1103,
4672,
1183,
5900,
273,
1103,
18,
768,
5900,
12,
74,
16,
661,
12970,
33,
2242,
2493,
18,
588,
12,
74,
3719,
309,
284,
486,
316,
1183,
2493,
30,
1183,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
768,
5900,
12,
74,
16,
1103,
4672,
1183,
5900,
273,
1103,
18,
768,
5900,
12,
74,
16,
661,
12970,
33,
2242,
2493,
18,
588,
12,
74,
3719,
309,
284,
486,
316,
1183,
2493,
30,
1183,... |
del _active_translations[currentThread()] | try: del _active_translations[currentThread()] except KeyError: pass | def deactivate(): """Remove the associate between the thread in which are running and its associated Pootle translation project.""" del _active_translations[currentThread()] | 303bef2053a54aa6a2bf474f30fdf7b2261fc6d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/303bef2053a54aa6a2bf474f30fdf7b2261fc6d3/gettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18790,
13332,
3536,
3288,
326,
13251,
3086,
326,
2650,
316,
1492,
854,
3549,
471,
2097,
3627,
453,
1632,
298,
4794,
1984,
12123,
775,
30,
1464,
389,
3535,
67,
13457,
63,
2972,
3830,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18790,
13332,
3536,
3288,
326,
13251,
3086,
326,
2650,
316,
1492,
854,
3549,
471,
2097,
3627,
453,
1632,
298,
4794,
1984,
12123,
775,
30,
1464,
389,
3535,
67,
13457,
63,
2972,
3830,
1435,
... |
iPadOutput, KoboReaderOutput, | iPadOutput, KoboReaderOutput, TabletOutput, | def tags_to_string(cls, tags): return u'%s <br/><span style="color: white">%s</span>' % (', '.join(tags), 'ttt '.join(tags)+'ttt ') | 08d0cfee131efc661a7466798abd0d8e31c57ffd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/08d0cfee131efc661a7466798abd0d8e31c57ffd/profiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2342,
67,
869,
67,
1080,
12,
6429,
16,
2342,
4672,
327,
582,
11,
9,
87,
411,
2848,
19,
4438,
3969,
2154,
1546,
3266,
30,
9578,
24038,
87,
1757,
3969,
1870,
738,
261,
2187,
2418,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2342,
67,
869,
67,
1080,
12,
6429,
16,
2342,
4672,
327,
582,
11,
9,
87,
411,
2848,
19,
4438,
3969,
2154,
1546,
3266,
30,
9578,
24038,
87,
1757,
3969,
1870,
738,
261,
2187,
2418,
5701,
... |
0.086589537530046945 | 0.0865895375300469... | def _approx_(self, x): return 1/math.cosh(x) | 9828fa15afb6762941f8f6daede19f650d68023c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9828fa15afb6762941f8f6daede19f650d68023c/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26742,
67,
12,
2890,
16,
619,
4672,
327,
404,
19,
15949,
18,
14445,
76,
12,
92,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26742,
67,
12,
2890,
16,
619,
4672,
327,
404,
19,
15949,
18,
14445,
76,
12,
92,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
f = string.strip(f) if CFG_WEBSEARCH_FIELDS_CONVERT.has_key(string.lower(f)): f = CFG_WEBSEARCH_FIELDS_CONVERT[f] | if f: f = f.strip() if CFG_WEBSEARCH_FIELDS_CONVERT: f = CFG_WEBSEARCH_FIELDS_CONVERT.get(f, f) | def wash_field(f): """Wash field passed by URL.""" # get rid of unnecessary whitespace: f = string.strip(f) # wash old-style CDS Invenio/ALEPH 'f' field argument, e.g. replaces 'wau' and 'au' by 'author' if CFG_WEBSEARCH_FIELDS_CONVERT.has_key(string.lower(f)): f = CFG_WEBSEARCH_FIELDS_CONVERT[f] return f | 8ddf761928449491a17692686d1824e4e3394724 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/8ddf761928449491a17692686d1824e4e3394724/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
961,
67,
1518,
12,
74,
4672,
3536,
59,
961,
652,
2275,
635,
1976,
12123,
468,
336,
10911,
434,
19908,
7983,
30,
284,
273,
533,
18,
6406,
12,
74,
13,
468,
341,
961,
1592,
17,
406... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
961,
67,
1518,
12,
74,
4672,
3536,
59,
961,
652,
2275,
635,
1976,
12123,
468,
336,
10911,
434,
19908,
7983,
30,
284,
273,
533,
18,
6406,
12,
74,
13,
468,
341,
961,
1592,
17,
406... |
mod = __import__(mod, fromlist=['WSGIServer']) | mod = __import__(mod, globals(), locals(), ['WSGIServer']) | def run_server(self, application, options): server_type = options.server_type | ddfe92c61d63698f4fd680d4545d1614cc95f89f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/ddfe92c61d63698f4fd680d4545d1614cc95f89f/flup_frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3567,
12,
2890,
16,
2521,
16,
702,
4672,
1438,
67,
723,
273,
702,
18,
3567,
67,
723,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3567,
12,
2890,
16,
2521,
16,
702,
4672,
1438,
67,
723,
273,
702,
18,
3567,
67,
723,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if load_balancer_name: params['LoadBalancerName'] = load_balancer_name | if load_balancer_names: self.build_list_params(params, load_balancer_names, 'LoadBalancerNames.member.%d') | def get_all_load_balancers(self, load_balancer_name=None): """ Retrieve all load balancers associated with your account. | f5987d3b1b9f4dcb6d05063dad0e0775cded77f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/f5987d3b1b9f4dcb6d05063dad0e0775cded77f9/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
945,
67,
70,
18533,
12,
2890,
16,
1262,
67,
18770,
67,
529,
33,
7036,
4672,
3536,
10708,
777,
1262,
324,
18533,
3627,
598,
3433,
2236,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
945,
67,
70,
18533,
12,
2890,
16,
1262,
67,
18770,
67,
529,
33,
7036,
4672,
3536,
10708,
777,
1262,
324,
18533,
3627,
598,
3433,
2236,
18,
2,
-100,
-100,
-100,
-100,
... |
sage: print B.disjoint_mate_dlxcpp_rows_and_map(allow_subtrade = True) | sage: B.disjoint_mate_dlxcpp_rows_and_map(allow_subtrade = True) | def disjoint_mate_dlxcpp_rows_and_map(self, allow_subtrade): """ Internal function for find_disjoint_mates. | 0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
16452,
67,
81,
340,
67,
5761,
92,
4057,
84,
67,
3870,
67,
464,
67,
1458,
12,
2890,
16,
1699,
67,
1717,
20077,
4672,
3536,
3186,
445,
364,
1104,
67,
2251,
16452,
67,
81,
815,
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,
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,
1015,
16452,
67,
81,
340,
67,
5761,
92,
4057,
84,
67,
3870,
67,
464,
67,
1458,
12,
2890,
16,
1699,
67,
1717,
20077,
4672,
3536,
3186,
445,
364,
1104,
67,
2251,
16452,
67,
81,
815,
18... |
import types | import types, re | def getsvkinfo(path): if not infos.get(path): import types info = runcmd([Config.svk, 'info', path]) infodict = {} for line in info.splitlines(): fields = line.split(": ") if len(fields) != 2: sys.__stderr__.write("Unexpected number of fields in line `%s', skipping." % line) continue key = fields[1] value = fields[2] ... | 478039ee6e4d1591d905579f9637415a813fa4f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12623/478039ee6e4d1591d905579f9637415a813fa4f0/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5571,
90,
79,
1376,
12,
803,
4672,
309,
486,
10626,
18,
588,
12,
803,
4672,
1930,
1953,
16,
283,
1123,
273,
436,
551,
1264,
3816,
809,
18,
5751,
79,
16,
296,
1376,
2187,
589,
5717,
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,
5571,
90,
79,
1376,
12,
803,
4672,
309,
486,
10626,
18,
588,
12,
803,
4672,
1930,
1953,
16,
283,
1123,
273,
436,
551,
1264,
3816,
809,
18,
5751,
79,
16,
296,
1376,
2187,
589,
5717,
8... |
self.log.write('next'+str(self.next_tick)+'time '+str(now)) | def run(self): while not self.quit_func(): now = time.time() self.log.write('next'+str(self.next_tick)+'time '+str(now)) still = self.next_tick-now if still<=0: self.log.write('tick\n') self.tick_func() self.next_tick += self.tick else: self.win.timeout(1000*still) ch = self.win.getch() if ch != curses.ERR: self.key_fu... | 717e9879a73c846fbf680bc197a2645c41e4a83e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4193/717e9879a73c846fbf680bc197a2645c41e4a83e/pyrace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
486,
365,
18,
27176,
67,
644,
13332,
2037,
273,
813,
18,
957,
1435,
4859,
273,
365,
18,
4285,
67,
6470,
17,
3338,
309,
4859,
32,
33,
20,
30,
365,
18,
1330... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
486,
365,
18,
27176,
67,
644,
13332,
2037,
273,
813,
18,
957,
1435,
4859,
273,
365,
18,
4285,
67,
6470,
17,
3338,
309,
4859,
32,
33,
20,
30,
365,
18,
1330... | |
def __init__(self,caption,label,fich): | def __init__(self,caption,name,fich): | def __init__(self,caption,label,fich): self.caption = caption self.label = label self.xunit = 1 self.yunit = 1 self.code = [] self.SSfigures = [] self.fichier = Fichier (fich) | 0e5989507cfbbb4ca0ffeef018b67a364df9a1f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5111/0e5989507cfbbb4ca0ffeef018b67a364df9a1f8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
15386,
16,
529,
16,
74,
1354,
4672,
365,
18,
15386,
273,
11006,
365,
18,
1925,
273,
1433,
365,
18,
92,
4873,
273,
404,
365,
18,
93,
4873,
273,
404,
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,
15386,
16,
529,
16,
74,
1354,
4672,
365,
18,
15386,
273,
11006,
365,
18,
1925,
273,
1433,
365,
18,
92,
4873,
273,
404,
365,
18,
93,
4873,
273,
404,
365... |
if (self.debug >= 3): print "remote hash: '" + retVal + "'" | if (self.debug >= 3): print "remote hash returned: '" + retVal + "'" | def getRemoteHash(self, filename): filename = filename.replace("/", self.dirSlash) filename = filename.replace("\\\\", "\\") data = self.sendCMD(['hash ' + filename, 'quit'], sleep = 1) if (data == None): return '' retVal = self.stripPrompt(data) if (retVal != None): retVal = retVal.strip('\n') if (self.debug >= 3): pr... | fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6/devicemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14879,
2310,
12,
2890,
16,
1544,
4672,
1544,
273,
1544,
18,
2079,
2932,
19,
3113,
365,
18,
1214,
11033,
13,
1544,
273,
1544,
18,
2079,
2932,
13011,
3113,
14520,
13,
501,
273,
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,
14879,
2310,
12,
2890,
16,
1544,
4672,
1544,
273,
1544,
18,
2079,
2932,
19,
3113,
365,
18,
1214,
11033,
13,
1544,
273,
1544,
18,
2079,
2932,
13011,
3113,
14520,
13,
501,
273,
365,
18,
... |
SingleServerIRCBot.__init__(self, [(server, port, password)], nickname, nickname) | SingleServerIRCBot.__init__(self, [(server, port, password, encoding)], nickname, nickname) | def __init__(self, channels=[], nickname="", server="", port=6667, password="", module_list=[]): """MooBot initializer - gets values from config files and uses those unless passed values directly""" print "possible config files: " + ", ".join(self.config_files) | 8aab94a1962d93c208d116b987976ab124f8e1a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10749/8aab94a1962d93c208d116b987976ab124f8e1a9/moobot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5750,
22850,
6487,
19570,
1546,
3113,
1438,
1546,
3113,
1756,
33,
6028,
9599,
16,
2201,
1546,
3113,
1605,
67,
1098,
33,
8526,
4672,
3536,
49,
5161,
6522,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5750,
22850,
6487,
19570,
1546,
3113,
1438,
1546,
3113,
1756,
33,
6028,
9599,
16,
2201,
1546,
3113,
1605,
67,
1098,
33,
8526,
4672,
3536,
49,
5161,
6522,
1... |
return TestDataDirectory(path) return TestCaseFile(path) | return TestDataDirectory(source=path) return TestCaseFile(source=path) | def _get_directory_or_file_suite(path, suite_names): if os.path.isdir(path): return TestDataDirectory(path) #FIXME: filter suites: , suite_names) return TestCaseFile(path) | f3998d1fed7f1949e9f043a868a5038ebda72cbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/f3998d1fed7f1949e9f043a868a5038ebda72cbf/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5149,
67,
280,
67,
768,
67,
30676,
12,
803,
16,
11371,
67,
1973,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
7766,
751,
2853,
12,
803,
13,
468,
25810,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5149,
67,
280,
67,
768,
67,
30676,
12,
803,
16,
11371,
67,
1973,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
7766,
751,
2853,
12,
803,
13,
468,
25810,
... |
x = args[-1] loc = args[-2] scale = args[-3] args = args[:-3] | loc = theta[-2] scale = theta[-1] args = tuple(theta[:-2]) | def nnlf(self, *args): # - sum (log pdf(x, theta)) # where theta are the parameters (including loc and scale) # try: x = args[-1] loc = args[-2] scale = args[-3] args = args[:-3] except IndexError: raise ValueError, "Not enough input arguments." if not self._argcheck(*args) or scale <= 0: return inf x = arr((x-loc) /... | 4fc3c3382d4f39d6cb250f55b2b024d3eef437e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/4fc3c3382d4f39d6cb250f55b2b024d3eef437e9/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7761,
20850,
12,
2890,
16,
380,
1968,
4672,
468,
300,
2142,
261,
1330,
8169,
12,
92,
16,
7338,
3719,
468,
282,
1625,
7338,
854,
326,
1472,
261,
31348,
1515,
471,
3159,
13,
468,
775,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7761,
20850,
12,
2890,
16,
380,
1968,
4672,
468,
300,
2142,
261,
1330,
8169,
12,
92,
16,
7338,
3719,
468,
282,
1625,
7338,
854,
326,
1472,
261,
31348,
1515,
471,
3159,
13,
468,
775,
30... |
"""Indicating whether any BIOS is present on a given directory, | """Indicating whether any BIOS files are present on a given directory, | def get_bios_presence(self, path,give_type=0): """Indicating whether any BIOS is present on a given directory, with optional information regarding its/their type.""" if give_type: pass else: pass return True | 5247dcd46a1cf2aa9f85476fcb08e9bf4debbe85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3056/5247dcd46a1cf2aa9f85476fcb08e9bf4debbe85/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
70,
7441,
67,
21731,
12,
2890,
16,
589,
16,
75,
688,
67,
723,
33,
20,
4672,
3536,
3866,
335,
1776,
2856,
1281,
605,
30520,
1390,
854,
3430,
603,
279,
864,
1867,
16,
598,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
70,
7441,
67,
21731,
12,
2890,
16,
589,
16,
75,
688,
67,
723,
33,
20,
4672,
3536,
3866,
335,
1776,
2856,
1281,
605,
30520,
1390,
854,
3430,
603,
279,
864,
1867,
16,
598,
312... |
:: | INPUT: - ``d`` - state array or something coercible to a state array EXAMPLE:: | def sub_bytes(self, d): r""" Perform the non-linear transform on ``d``. :: sage: sr = mq.SR(2, 1, 2, 8, gf2=True) sage: k = sr.base_ring() sage: A = Matrix(k, 1, 2 , [k(1), k.gen()]) sage: sr.sub_bytes(A) [ a^6 + a^5 + a^4 + a^3 + a^2 a^6 + a^5 + a^4 + a^2 + a + 1] INPUT: - ``d`` - state array or something coerc... | 64b5e0e9186de5235119791631990329cc9aecfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/64b5e0e9186de5235119791631990329cc9aecfa/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
67,
3890,
12,
2890,
16,
302,
4672,
436,
8395,
11217,
326,
1661,
17,
12379,
2510,
603,
12176,
72,
68,
8338,
225,
12943,
30,
225,
300,
225,
12176,
72,
10335,
300,
919,
526,
578,
594... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
67,
3890,
12,
2890,
16,
302,
4672,
436,
8395,
11217,
326,
1661,
17,
12379,
2510,
603,
12176,
72,
68,
8338,
225,
12943,
30,
225,
300,
225,
12176,
72,
10335,
300,
919,
526,
578,
594... |
cr.execute("update stock_picking set state='cancel' where id=%d"%(data['id'])) | cr.execute("update stock_picking set state='cancel' where id=%d" % (data['id'])) | def find_max_invid(self,cr,uid,ids,address_id,type='out',state='confirmed'): cr.execute("select max(id) from stock_picking where type='%s' and state='%s' and address_id=%d"%(type,state,address_id)) max_picking_id=cr.fetchall()[0][0] cr.execute("select * from stock_picking pc where type='out' and state='confirmed' and... | f711d506f5db46cd8bb41f387aa6e333a3839624 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/f711d506f5db46cd8bb41f387aa6e333a3839624/merge_picking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
1896,
67,
267,
1246,
12,
2890,
16,
3353,
16,
1911,
16,
2232,
16,
2867,
67,
350,
16,
723,
2218,
659,
2187,
2019,
2218,
21606,
11,
4672,
225,
4422,
18,
8837,
2932,
4025,
943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1896,
67,
267,
1246,
12,
2890,
16,
3353,
16,
1911,
16,
2232,
16,
2867,
67,
350,
16,
723,
2218,
659,
2187,
2019,
2218,
21606,
11,
4672,
225,
4422,
18,
8837,
2932,
4025,
943,
... |
return ' '.join([self._sqlType() + self._extraSQL()]) | return ' '.join([self._sqlType()] + self._extraSQL()) | def createSQL(self): return ' '.join([self._sqlType() + self._extraSQL()]) | e204111336c592599675432ee7b3a4e2fac3f8a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6718/e204111336c592599675432ee7b3a4e2fac3f8a3/col.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3997,
12,
2890,
4672,
327,
296,
2418,
5701,
3816,
2890,
6315,
4669,
559,
1435,
397,
365,
6315,
7763,
3997,
1435,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3997,
12,
2890,
4672,
327,
296,
2418,
5701,
3816,
2890,
6315,
4669,
559,
1435,
397,
365,
6315,
7763,
3997,
1435,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
user = cache.get(CACHE_KEY) | user = cache.get(CACHE_KEY) | def __get__(self, request, obj_type=None): global get_user, ESPUser if not hasattr(request, '_cached_user'): SESSION_KEY = '_auth_user_id' user = None if request.session.has_key(SESSION_KEY): user_id = request.session[SESSION_KEY] CACHE_KEY = "CACHED_USER_OBJ__%s" % user_id user = cache.get(CACHE_KEY) if not user: if g... | f977de8a19c0906536bbb7b77e62868a75b11dca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/f977de8a19c0906536bbb7b77e62868a75b11dca/espauthmiddleware.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
590,
16,
1081,
67,
723,
33,
7036,
4672,
2552,
336,
67,
1355,
16,
512,
3118,
1299,
309,
486,
3859,
12,
2293,
16,
2070,
7097,
67,
1355,
11,
4672,
10307,
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,
1001,
588,
972,
12,
2890,
16,
590,
16,
1081,
67,
723,
33,
7036,
4672,
2552,
336,
67,
1355,
16,
512,
3118,
1299,
309,
486,
3859,
12,
2293,
16,
2070,
7097,
67,
1355,
11,
4672,
10307,
6... |
self.preserveList = [] | self.preserveSet = set() | def __init__(self, *args, **kwargs): CapsuleOperation.__init__(self, *args, **kwargs) self.installs = [] self.removes = [] self.preserveList = [] | 67d65ff98ffa8e3160e0f0788eb0955288813d8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/67d65ff98ffa8e3160e0f0788eb0955288813d8e/capsules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
385,
6679,
725,
2988,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
5425,
87,
273,
5378,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
385,
6679,
725,
2988,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
5425,
87,
273,
5378,
365,
... |
mycommand = row[0] | if len(rows) < 1: return None mycommand = rows[0] | def fetchAndLockNextCmd(self,taskrow): # fetch a cmd from ready list cmd = """select rowid,concretename,cmdLine from readyList JOIN cmds USING (taskrow,linenum) where taskrow=%d limit 1;""" cur = self.cursor() cur.execute(cmd % taskrow) rows = cur.fetchall() mycommand = row[0] # drop the cmd from the list cmd = """dele... | 5b6a02c82a858db1229fd5d4d621cd3d16fd2060 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/5b6a02c82a858db1229fd5d4d621cd3d16fd2060/ssdap_dbutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
1876,
2531,
2134,
5931,
12,
2890,
16,
4146,
492,
4672,
468,
2158,
279,
1797,
628,
5695,
666,
1797,
273,
3536,
4025,
1027,
350,
16,
11504,
1349,
1069,
16,
4172,
1670,
628,
5695,
682... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
1876,
2531,
2134,
5931,
12,
2890,
16,
4146,
492,
4672,
468,
2158,
279,
1797,
628,
5695,
666,
1797,
273,
3536,
4025,
1027,
350,
16,
11504,
1349,
1069,
16,
4172,
1670,
628,
5695,
682... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.