rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
inputs['disablesmilies'] = 'no' | del inputs['disablesmilies'] | def ReplyToThread(self, thread, message): getUrl = "http://forums.somethingawful.com/newreply.php?action=newreply&threadid=%s" % thread postUrl = "http://forums.somethingawful.com/newreply.php?action=newreply" | bb26371a1f352068ac9603e8f5fcd2bb2bd896f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4484/bb26371a1f352068ac9603e8f5fcd2bb2bd896f7/ForumPageDownloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16202,
774,
3830,
12,
2890,
16,
2650,
16,
883,
4672,
8928,
273,
315,
2505,
2207,
11725,
87,
18,
30289,
2219,
2706,
18,
832,
19,
2704,
10629,
18,
2684,
35,
1128,
33,
2704,
10629,
10,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16202,
774,
3830,
12,
2890,
16,
2650,
16,
883,
4672,
8928,
273,
315,
2505,
2207,
11725,
87,
18,
30289,
2219,
2706,
18,
832,
19,
2704,
10629,
18,
2684,
35,
1128,
33,
2704,
10629,
10,
59... |
test_support.run_doctest(test_itertools, verbose) | def test_main(verbose=None): import test_itertools suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestBasicOps)) test_support.run_suite(suite) test_support.run_doctest(test_itertools, verbose) # verify reference counting import sys if verbose and hasattr(sys, "gettotalrefcount"): counts = [] for i in xr... | 43a41b7f3cbe362bd5552430b136fedef1d0ce98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/43a41b7f3cbe362bd5552430b136fedef1d0ce98/test_itertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
1930,
1842,
67,
2165,
6642,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
4873,
3813,
18,
6540,
13587,
12,
4709,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
1930,
1842,
67,
2165,
6642,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
4873,
3813,
18,
6540,
13587,
12,
4709,
82... | |
class LocalMessageCatalogTest(unittest.TestCase, TestIMessageCatalog, TestILocalMessageCatalog): | class LocalMessageCatalogTest(TestIMessageCatalog, TestILocalMessageCatalog): | def testGetMessages(self): catalog = self._catalog ids = catalog.getMessageIds() ids.sort() self.assertEqual(ids, ['greeting', 'short_greeting']) | c46dce57017bc72b161035795183299b284d1210 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9528/c46dce57017bc72b161035795183299b284d1210/test_messagecatalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
5058,
12,
2890,
4672,
6222,
273,
365,
6315,
7199,
3258,
273,
6222,
18,
24906,
2673,
1435,
3258,
18,
3804,
1435,
365,
18,
11231,
5812,
12,
2232,
16,
10228,
75,
9015,
310,
2187,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
967,
5058,
12,
2890,
4672,
6222,
273,
365,
6315,
7199,
3258,
273,
6222,
18,
24906,
2673,
1435,
3258,
18,
3804,
1435,
365,
18,
11231,
5812,
12,
2232,
16,
10228,
75,
9015,
310,
2187,... |
line = f.readline() | line = f.readline().strip() | def verifyEntry(self, f, time=None, subsys=None, severity=None, summary=None, detail=None, error=None): # skip to the beginning of next entry line = f.readline() while line != "------\n": if not line: self.fail("can't find entry in log file") line = f.readline() line = f.readline().strip() _time, rest = line.split(" "... | 0b70a63bb11ec7470ed9211e2dfca57cc51203c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/0b70a63bb11ec7470ed9211e2dfca57cc51203c9/testzLog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
1622,
12,
2890,
16,
284,
16,
813,
33,
7036,
16,
720,
9499,
33,
7036,
16,
11426,
33,
7036,
16,
4916,
33,
7036,
16,
7664,
33,
7036,
16,
555,
33,
7036,
4672,
468,
2488,
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,
3929,
1622,
12,
2890,
16,
284,
16,
813,
33,
7036,
16,
720,
9499,
33,
7036,
16,
11426,
33,
7036,
16,
4916,
33,
7036,
16,
7664,
33,
7036,
16,
555,
33,
7036,
4672,
468,
2488,
358,
326,
... |
def depart_func(node): | def depart_func(self, node): | def depart_func(node): self.wiki_text = '' self.request.write(moin_callable(0)) self.body.append(self.wiki_text) | 6c217ca18ac1a584d256588863abd8db5fd7819d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/6c217ca18ac1a584d256588863abd8db5fd7819d/rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
644,
12,
2890,
16,
756,
4672,
365,
18,
13044,
67,
955,
273,
875,
365,
18,
2293,
18,
2626,
12,
81,
885,
67,
7293,
12,
20,
3719,
365,
18,
3432,
18,
6923,
12,
2890,
18,
130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
644,
12,
2890,
16,
756,
4672,
365,
18,
13044,
67,
955,
273,
875,
365,
18,
2293,
18,
2626,
12,
81,
885,
67,
7293,
12,
20,
3719,
365,
18,
3432,
18,
6923,
12,
2890,
18,
130... |
if type(mac_addr) != str: | if type(mac_addr) not in [str, unicode]: | def isLinuxMacAddress(mac_addr): """ Check that the given MAC adress is a linux-formatted MAC Address. @type mac_addr: str @param mac_addr: the mac addr to check @returns: returns True if the given MAC address is valid @rtype: bool """ if type(mac_addr) != str: return False regex = '^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a... | 8967f8b7c55cd7eb148ff07e927d0146495cd5a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/8967f8b7c55cd7eb148ff07e927d0146495cd5a9/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
19475,
9990,
1887,
12,
5821,
67,
4793,
4672,
3536,
2073,
716,
326,
864,
14246,
1261,
663,
353,
279,
19725,
17,
14897,
14246,
5267,
18,
225,
632,
723,
5318,
67,
4793,
30,
609,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
19475,
9990,
1887,
12,
5821,
67,
4793,
4672,
3536,
2073,
716,
326,
864,
14246,
1261,
663,
353,
279,
19725,
17,
14897,
14246,
5267,
18,
225,
632,
723,
5318,
67,
4793,
30,
609,
632,
... |
'href': dispatch.translate(request, request.path_info), | 'href': dispatch.translate(request, path_obj.pootle_path), | def yield_translate_all_link(request, path_obj, links_required): yield { 'href': dispatch.translate(request, request.path_info), 'text': _('Translate All') } | ca5b4ce1319a0201ba81d989496221a9934e2501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/ca5b4ce1319a0201ba81d989496221a9934e2501/item_dict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2824,
67,
13929,
67,
454,
67,
1232,
12,
2293,
16,
589,
67,
2603,
16,
4716,
67,
4718,
4672,
2824,
288,
296,
7547,
4278,
3435,
18,
13929,
12,
2293,
16,
589,
67,
2603,
18,
1631,
352,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2824,
67,
13929,
67,
454,
67,
1232,
12,
2293,
16,
589,
67,
2603,
16,
4716,
67,
4718,
4672,
2824,
288,
296,
7547,
4278,
3435,
18,
13929,
12,
2293,
16,
589,
67,
2603,
18,
1631,
352,
29... |
self.parser=Redland.librdf_new_parser(__world__.world, name, mime_type, uri) def __del__(self): if __debug__: | self.parser=Redland.librdf_new_parser(_world.world, name, mime_type, uri) def __del__(self): global _debug if _debug: | def __init__(self, name, mime_type="", uri=None): """Create an RDF Parser (constructor).""" if __debug__: print "Creating RDF.parser name=",name,"mime_type=",mime_type,"uri=",uri | 9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
4892,
67,
723,
1546,
3113,
2003,
33,
7036,
4672,
3536,
1684,
392,
13539,
6783,
261,
12316,
13,
12123,
309,
1001,
4148,
972,
30,
1172,
315,
11092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
4892,
67,
723,
1546,
3113,
2003,
33,
7036,
4672,
3536,
1684,
392,
13539,
6783,
261,
12316,
13,
12123,
309,
1001,
4148,
972,
30,
1172,
315,
11092,
... |
filter(database.commands_on_host.c.current_state != 'over-timed').\ | filter(database.commands_on_host.c.current_state != 'over_timed').\ | def localProxyMayContinue(myCommandOnHostID): """ attempt to analyse coh in the same command in order to now how we may advance. """ (myCoH, myC, myT) = gatherCoHStuff(myCommandOnHostID) if myCoH == None: return False # TODO : when an error occur, do we want to clean the local proxy ? # Clean algorithm: # client => al... | 321313c05802923dc31717f6bbd064db82e37e55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/321313c05802923dc31717f6bbd064db82e37e55/scheduling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
3886,
49,
528,
12378,
12,
4811,
2189,
1398,
2594,
734,
4672,
3536,
4395,
358,
31087,
1825,
76,
316,
326,
1967,
1296,
316,
1353,
358,
2037,
3661,
732,
2026,
8312,
18,
3536,
261,
481... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
3886,
49,
528,
12378,
12,
4811,
2189,
1398,
2594,
734,
4672,
3536,
4395,
358,
31087,
1825,
76,
316,
326,
1967,
1296,
316,
1353,
358,
2037,
3661,
732,
2026,
8312,
18,
3536,
261,
481... |
return self.implement_guard(guard_token, 'Z') else: return self.implement_guard(guard_token, 'NZ') | self.implement_guard(guard_token, 'Z') else: self.implement_guard(guard_token, 'NZ') | def genop_guard_int_is_true(self, op, guard_op, guard_token, arglocs, resloc): guard_opnum = guard_op.getopnum() self.mc.CMP(arglocs[0], imm0) if guard_opnum == rop.GUARD_TRUE: return self.implement_guard(guard_token, 'Z') else: return self.implement_guard(guard_token, 'NZ') | 180c4a94a92fb4db4243be00b648118ff5f29d48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/180c4a94a92fb4db4243be00b648118ff5f29d48/assembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
556,
67,
24594,
67,
474,
67,
291,
67,
3767,
12,
2890,
16,
1061,
16,
11026,
67,
556,
16,
11026,
67,
2316,
16,
1501,
24323,
16,
400,
1829,
4672,
11026,
67,
556,
2107,
273,
11026,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
556,
67,
24594,
67,
474,
67,
291,
67,
3767,
12,
2890,
16,
1061,
16,
11026,
67,
556,
16,
11026,
67,
2316,
16,
1501,
24323,
16,
400,
1829,
4672,
11026,
67,
556,
2107,
273,
11026,
... |
import unicodedata | def _translate_artist(self, field="artist"): """'Translate' the artist name by reversing the sortname.""" import unicodedata name = self[field] sortname = self[field + "_sortorder"] for c in name: ctg = unicodedata.category(c) if (ctg[0] not in ("P", "Z") and ctg != "Nd" and unicodedata.name(c).find("LATIN") == -1): re... | 6045ac200d8e0c17f3fd01dcacabdb2c275ce252 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12415/6045ac200d8e0c17f3fd01dcacabdb2c275ce252/metadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13929,
67,
25737,
12,
2890,
16,
652,
1546,
25737,
6,
4672,
3536,
11,
12818,
11,
326,
15469,
508,
635,
19795,
310,
326,
1524,
529,
12123,
508,
273,
365,
63,
1518,
65,
1524,
529,
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,
389,
13929,
67,
25737,
12,
2890,
16,
652,
1546,
25737,
6,
4672,
3536,
11,
12818,
11,
326,
15469,
508,
635,
19795,
310,
326,
1524,
529,
12123,
508,
273,
365,
63,
1518,
65,
1524,
529,
27... | |
self._pos = max(0, pos) | def seek(self, pos, whence=0): if self.closed: raise ValueError("seek on closed file") try: pos = pos.__index__() except AttributeError as err: raise TypeError("an integer is required") from err if whence == 0: self._pos = max(0, pos) if pos < 0: raise ValueError("negative seek position %r" % (pos,)) elif whence == 1: ... | c31b1e7df57c9df37701c384fa5f815c446a3981 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/c31b1e7df57c9df37701c384fa5f815c446a3981/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
949,
16,
23692,
33,
20,
4672,
309,
365,
18,
12204,
30,
1002,
2068,
2932,
16508,
603,
4375,
585,
7923,
775,
30,
949,
273,
949,
16186,
1615,
972,
1435,
1335,
6394,
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,
6520,
12,
2890,
16,
949,
16,
23692,
33,
20,
4672,
309,
365,
18,
12204,
30,
1002,
2068,
2932,
16508,
603,
4375,
585,
7923,
775,
30,
949,
273,
949,
16186,
1615,
972,
1435,
1335,
6394,
48... | |
def _calculate_path(self, last_path_pos): | def _calculate_path(self, *append_args): | def _calculate_path(self, last_path_pos): p = [self.get_path_pos()] parent = self.parent while parent: p.insert(0, parent.get_path_pos()) parent = parent.parent | 29e46f4c980daf59bdf05cd501c0d0ab2f17449d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5682/29e46f4c980daf59bdf05cd501c0d0ab2f17449d/introspect_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
803,
12,
2890,
16,
380,
6923,
67,
1968,
4672,
293,
273,
306,
2890,
18,
588,
67,
803,
67,
917,
1435,
65,
982,
273,
365,
18,
2938,
1323,
982,
30,
293,
18,
6387,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
803,
12,
2890,
16,
380,
6923,
67,
1968,
4672,
293,
273,
306,
2890,
18,
588,
67,
803,
67,
917,
1435,
65,
982,
273,
365,
18,
2938,
1323,
982,
30,
293,
18,
6387,
12,
2... |
self.pdbg("parse_ver (header) version(%s) = %s (%s)" % (plugin_t, p_ver_orig, p_ver)) | if Opt.ParseDBG: self.pdbg("parse_ver (header) version(%s) = %s (%s)" % (plugin_t, p_ver_orig, p_ver)) | def parse_ver(self): self.parse_dbg_indent += " " match = re_ver_fun.match(self.buffer) if match: p = match.span(0)[1] self.buffer = self.buffer[p:] self.pdbg("parse_ver new buffer = %s" % self.buffer) op = match.group(1) if op not in version_operators: self.parse_error(_["Invalid [VER] operator"]) return(None, None) ... | 0c9007da0c07e550781c18146d5a05ade578dced /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/0c9007da0c07e550781c18146d5a05ade578dced/mlox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
502,
12,
2890,
4672,
365,
18,
2670,
67,
1966,
75,
67,
9355,
1011,
315,
225,
315,
845,
273,
283,
67,
502,
67,
12125,
18,
1916,
12,
2890,
18,
4106,
13,
309,
845,
30,
293,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
502,
12,
2890,
4672,
365,
18,
2670,
67,
1966,
75,
67,
9355,
1011,
315,
225,
315,
845,
273,
283,
67,
502,
67,
12125,
18,
1916,
12,
2890,
18,
4106,
13,
309,
845,
30,
293,
2... |
att = urllib2.urlopen(att_uri) | opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self._cookiejar)) att = opener.open(att_uri) | def openattachment(self,attachid): '''Get the contents of the attachment with the given attachment ID. Returns a file-like object.''' att_uri = self._attachment_uri(attachid) att = urllib2.urlopen(att_uri) # RFC 2183 defines the content-disposition header, if you're curious disp = att.headers['content-disposition'].spl... | 8b37db4a1357f9ce5d4dcaade18f5c6c12051039 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5050/8b37db4a1357f9ce5d4dcaade18f5c6c12051039/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
11461,
12,
2890,
16,
7331,
350,
4672,
9163,
967,
326,
2939,
434,
326,
6042,
598,
326,
864,
6042,
1599,
18,
2860,
279,
585,
17,
5625,
733,
1093,
6309,
2403,
67,
1650,
273,
365,
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,
1696,
11461,
12,
2890,
16,
7331,
350,
4672,
9163,
967,
326,
2939,
434,
326,
6042,
598,
326,
864,
6042,
1599,
18,
2860,
279,
585,
17,
5625,
733,
1093,
6309,
2403,
67,
1650,
273,
365,
63... |
self.ROOT=self.gcomprisBoard.canvas.root().add( | gcompris.set_background(self.gcomprisBoard.canvas.root(), self.data[sublevel][0][1]) self.ROOT = self.gcomprisBoard.canvas.root().add( | def set_sublevel(self,sublevel=1) : """Start of the game at sublevel number sublevel of level n""" if self.MAX!=0 : self.end() | add6014f0f76d3198c034d78c36e9c527439f16d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11306/add6014f0f76d3198c034d78c36e9c527439f16d/drawnumber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
87,
1255,
941,
12,
2890,
16,
87,
1255,
941,
33,
21,
13,
294,
3536,
1685,
434,
326,
7920,
622,
720,
2815,
1300,
720,
2815,
434,
1801,
290,
8395,
309,
365,
18,
6694,
5,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
87,
1255,
941,
12,
2890,
16,
87,
1255,
941,
33,
21,
13,
294,
3536,
1685,
434,
326,
7920,
622,
720,
2815,
1300,
720,
2815,
434,
1801,
290,
8395,
309,
365,
18,
6694,
5,
33,
... |
@_memo_property | @property | def name(self): """Name of this object in the HDF5 file. Not necessarily unique.""" name = h5i.get_name(self.id) if name is None and config.API_18: name = h5r.get_name(self.ref) return name | b1a598a2d723040490bcce9fa07057de259dfbab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10380/b1a598a2d723040490bcce9fa07057de259dfbab/highlevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
12,
2890,
4672,
3536,
461,
434,
333,
733,
316,
326,
21673,
25,
585,
18,
225,
2288,
23848,
3089,
12123,
508,
273,
366,
25,
77,
18,
588,
67,
529,
12,
2890,
18,
350,
13,
309,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
12,
2890,
4672,
3536,
461,
434,
333,
733,
316,
326,
21673,
25,
585,
18,
225,
2288,
23848,
3089,
12123,
508,
273,
366,
25,
77,
18,
588,
67,
529,
12,
2890,
18,
350,
13,
309,
508,
... |
ret = mc.decr(key) | ret = mc.decr(key, delta) | def decr(mc, expected, key, delta = 1): ret = mc.decr(key) if ret == expected: print "OK" else: print "FAIL: returned {0}".format(ret) | 2b9ec7ee551ff24c82f97484b7b1944ac629f82e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14175/2b9ec7ee551ff24c82f97484b7b1944ac629f82e/sample_python_memcached_writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2109,
86,
12,
13952,
16,
2665,
16,
498,
16,
3622,
273,
404,
4672,
325,
273,
6108,
18,
323,
3353,
12,
856,
16,
3622,
13,
309,
325,
422,
2665,
30,
1172,
315,
3141,
6,
469,
30,
1172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2109,
86,
12,
13952,
16,
2665,
16,
498,
16,
3622,
273,
404,
4672,
325,
273,
6108,
18,
323,
3353,
12,
856,
16,
3622,
13,
309,
325,
422,
2665,
30,
1172,
315,
3141,
6,
469,
30,
1172,
... |
if len(args) == 1: buildconfig = _GetConfig(args[0]) | if len(args) >= 1: buildconfig = _GetConfig(args[-1]) | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('... | aaba25d817f949f242f0fa617414a869cfe0a855 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/aaba25d817f949f242f0fa617414a869cfe0a855/cbuildbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
2884,
702,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
65,
2875,
680,
4819,
67,
1425,
6,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
2082,
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,
2774,
13332,
468,
2884,
702,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
65,
2875,
680,
4819,
67,
1425,
6,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
2082,
18,... |
return apply(Open, (), options).show() | return Open(**options).show() | def askopenfilename(**options): "Ask for a filename to open" return apply(Open, (), options).show() | 1cc71b5984818fb34614228a4f49c9b9e0583cb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1cc71b5984818fb34614228a4f49c9b9e0583cb6/tkFileDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
3190,
3459,
12,
636,
2116,
4672,
315,
23663,
364,
279,
1544,
358,
1696,
6,
225,
327,
3502,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
3190,
3459,
12,
636,
2116,
4672,
315,
23663,
364,
279,
1544,
358,
1696,
6,
225,
327,
3502,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def view_diff_revisions(self, widget, data=None): from rabbitvcs.ui.diff import SVNDiff rev_first = self.revisions[0]["revision"].value rev_second = self.revisions[-1]["revision"].value self.action = VCSAction( self.vcs_client, notification=False ) self.action.append( SVNDiff, self.vcs_client.get_repo_url(self.path)... | def compare_previous_revision(self, widget, data=None): from rabbitvcs.ui.diff import SVNDiff | 14fca6f349c8c10fe6350a3532e07c51bbc19369 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/14fca6f349c8c10fe6350a3532e07c51bbc19369/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
11515,
67,
13057,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
628,
767,
70,
3682,
18982,
18,
4881,
18,
5413,
1930,
29537,
2908,
3048,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
11515,
67,
13057,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
628,
767,
70,
3682,
18982,
18,
4881,
18,
5413,
1930,
29537,
2908,
3048,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return '[%s] File transfer %r from %s@%s: ' % (self.index, name, self.other.user, self.other.host) else: return '[%s] Inactive file transfer: ' % self.index | return 'File transfer %r from %s@%s: ' % (name, self.other.user, self.other.host) else: return 'Inactive file transfer: ' | def format_ps(self): if self.other: name = self.fileselector.name return '[%s] File transfer %r from %s@%s: ' % (self.index, name, self.other.user, self.other.host) else: return '[%s] Inactive file transfer: ' % self.index | bff2fd280f7005702419eb872b3ac65040d5d872 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/bff2fd280f7005702419eb872b3ac65040d5d872/sip_im_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
1121,
12,
2890,
4672,
309,
365,
18,
3011,
30,
508,
273,
365,
18,
2354,
292,
1229,
18,
529,
327,
21848,
87,
65,
1387,
7412,
738,
86,
628,
738,
87,
36,
9,
87,
30,
296,
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,
740,
67,
1121,
12,
2890,
4672,
309,
365,
18,
3011,
30,
508,
273,
365,
18,
2354,
292,
1229,
18,
529,
327,
21848,
87,
65,
1387,
7412,
738,
86,
628,
738,
87,
36,
9,
87,
30,
296,
738,
... |
self.assertEqual(operator.isCallable(o), v) | def check(self, o, v): with test_support._check_py3k_warnings(): self.assertEqual(operator.isCallable(o), v) self.assertEqual(callable(o), v) | d9a4e29db92f279e47866fbe61a5e7840fe876c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/d9a4e29db92f279e47866fbe61a5e7840fe876c1/test_operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
320,
16,
331,
4672,
598,
1842,
67,
13261,
6315,
1893,
67,
2074,
23,
79,
67,
12103,
13332,
365,
18,
11231,
5812,
12,
7293,
12,
83,
3631,
331,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
320,
16,
331,
4672,
598,
1842,
67,
13261,
6315,
1893,
67,
2074,
23,
79,
67,
12103,
13332,
365,
18,
11231,
5812,
12,
7293,
12,
83,
3631,
331,
13,
2,
-100,
-100,
-10... | |
self.jobdb = JobDatabaseSQLite() self.monitordb = MonitorDatabase() self.dsage_server = DSageServer(self.jobdb, self.monitordb) return self.dsage_server.generate_xml_stats() | jobdb = JobDatabaseSQLite() monitordb = MonitorDatabase() dsage_server = DSageServer(jobdb, monitordb) print dsage_server.generate_xml_stats() | def main(): self.jobdb = JobDatabaseSQLite() self.monitordb = MonitorDatabase() self.dsage_server = DSageServer(self.jobdb, self.monitordb) return self.dsage_server.generate_xml_stats() | 821f1de3eaea879cd3cffd1f951f4d0e113d1b83 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/821f1de3eaea879cd3cffd1f951f4d0e113d1b83/dsage_get_stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1719,
1966,
273,
3956,
4254,
3997,
1137,
1435,
6921,
305,
517,
70,
273,
14086,
4254,
1435,
3780,
410,
67,
3567,
273,
8678,
410,
2081,
12,
4688,
1966,
16,
6921,
305,
517,
70,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1719,
1966,
273,
3956,
4254,
3997,
1137,
1435,
6921,
305,
517,
70,
273,
14086,
4254,
1435,
3780,
410,
67,
3567,
273,
8678,
410,
2081,
12,
4688,
1966,
16,
6921,
305,
517,
70,... |
self.show_FPS = True | self.scene = None self.next_scene = None | def init(self, *args, **kwargs): """Initializes the Director creating the main window. Keyword arguments are passed to pyglet.window.Window(). :rtype: pyglet.window.Window :returns: The main window, an instance of pyglet.window.Window class. """ self.window = window.Window( *args, **kwargs ) self.scene_stack = [] sel... | 5c0891b0de77cb0f85549a07feae1c1f16dd3255 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/5c0891b0de77cb0f85549a07feae1c1f16dd3255/director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
9685,
326,
29701,
4979,
326,
2774,
2742,
18,
18317,
1775,
854,
2275,
358,
2395,
75,
1810,
18,
5668,
18,
3829,
7675,
225,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
9685,
326,
29701,
4979,
326,
2774,
2742,
18,
18317,
1775,
854,
2275,
358,
2395,
75,
1810,
18,
5668,
18,
3829,
7675,
225,
294,
... |
if not isinstance(value, basestring) and not isinstance(value, basestring): | if not isinstance(value, basestring) and not isinstance(value, int): | def add(self, key, value, msgid=None): if isinstance(key, int): deprecated('Using ints as DisplayList keys is deprecated (add)') if not isinstance(key, basestring) and not isinstance(key, int): raise TypeError('DisplayList keys must be strings or ints, got %s' % type(key)) if not isinstance(value, basestring) and not i... | 26b1d55c9da11ab4c0e3ce641c175e55b5cb8e24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/26b1d55c9da11ab4c0e3ce641c175e55b5cb8e24/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
498,
16,
460,
16,
24389,
33,
7036,
4672,
309,
1549,
12,
856,
16,
509,
4672,
6849,
2668,
7736,
15542,
487,
9311,
682,
1311,
353,
6849,
261,
1289,
2506,
13,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
498,
16,
460,
16,
24389,
33,
7036,
4672,
309,
1549,
12,
856,
16,
509,
4672,
6849,
2668,
7736,
15542,
487,
9311,
682,
1311,
353,
6849,
261,
1289,
2506,
13,
309,
486,
... |
pass | pass | def elementDecl(self, name, type, content): """called when an ELEMENT definition has been found""" | 1d75c8a822dbe6608e646cdbbeb174a3a4ab49c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/1d75c8a822dbe6608e646cdbbeb174a3a4ab49c0/libxml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
930,
3456,
12,
2890,
16,
508,
16,
618,
16,
913,
4672,
3536,
11777,
1347,
392,
13424,
2379,
711,
2118,
1392,
8395,
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,
930,
3456,
12,
2890,
16,
508,
16,
618,
16,
913,
4672,
3536,
11777,
1347,
392,
13424,
2379,
711,
2118,
1392,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
key_name = ''.join(('gd_auth_token'. unique_key)) | key_name = ''.join(('gd_auth_token', token_key)) | def ae_save(token, unique_key): import gdata.alt.app_engine key_name = ''.join(('gd_auth_token'. unique_key)) return gdata.alt.app_engine.set_token(key_name, token_to_blob(token)) | fa39b2e3edf63d32a8624cf4f0fc435c6397c8ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/fa39b2e3edf63d32a8624cf4f0fc435c6397c8ee/gauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14221,
67,
5688,
12,
2316,
16,
3089,
67,
856,
4672,
1930,
314,
892,
18,
2390,
18,
2910,
67,
8944,
498,
67,
529,
273,
875,
18,
5701,
12,
2668,
19016,
67,
1944,
67,
2316,
2187,
1147,
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,
14221,
67,
5688,
12,
2316,
16,
3089,
67,
856,
4672,
1930,
314,
892,
18,
2390,
18,
2910,
67,
8944,
498,
67,
529,
273,
875,
18,
5701,
12,
2668,
19016,
67,
1944,
67,
2316,
2187,
1147,
6... |
'''Copied from the build_mini.sh shell script''' | '''Copied from the build_mini.sh shell script (thank you Pete Higgins :-))''' | def _dojo_mini_after_build(self): try: '''Copied from the build_mini.sh shell script''' if not os.path.exists(self.dojo_release_dir): raise CommandError('The dojo build failed! Check messages above!') else: # remove dojox tests and demos - they all follow this convetion self._remove_files('%s/dojox' % self.dojo_release... | 5884033dae2bfddfc2e3bbf810f5b831bb872dd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12008/5884033dae2bfddfc2e3bbf810f5b831bb872dd0/dojobuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
30952,
67,
1154,
77,
67,
5205,
67,
3510,
12,
2890,
4672,
775,
30,
9163,
28127,
628,
326,
1361,
67,
1154,
77,
18,
674,
5972,
2728,
261,
451,
2304,
1846,
453,
12865,
670,
360,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
30952,
67,
1154,
77,
67,
5205,
67,
3510,
12,
2890,
4672,
775,
30,
9163,
28127,
628,
326,
1361,
67,
1154,
77,
18,
674,
5972,
2728,
261,
451,
2304,
1846,
453,
12865,
670,
360,... |
color = convertColor(color) | def addCanvasPolygon(canvas,ps,color=(0,0,0),**kwargs): dps = [] color = convertColor(color) canvas.ctx.set_source_rgb(*color) canvas.ctx.move_to(ps[0][0],ps[0][1]) for p in ps[1:]: canvas.ctx.line_to(p[0],p[1]) canvas.ctx.close_path() canvas.ctx.fill() | 5ba093eaf3549394b8a19230b1d78201ff272742 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9195/5ba093eaf3549394b8a19230b1d78201ff272742/cairoCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12971,
11787,
12,
15424,
16,
1121,
16,
3266,
28657,
20,
16,
20,
16,
20,
3631,
636,
4333,
4672,
302,
1121,
273,
5378,
5953,
18,
5900,
18,
542,
67,
3168,
67,
10948,
30857,
3266,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12971,
11787,
12,
15424,
16,
1121,
16,
3266,
28657,
20,
16,
20,
16,
20,
3631,
636,
4333,
4672,
302,
1121,
273,
5378,
5953,
18,
5900,
18,
542,
67,
3168,
67,
10948,
30857,
3266,
13,... | |
hm = h.copy() hm.update( data ) return hm.digest() | hm = h.copy() hm.update( data ) return hm.digest() | def prf( h, data ): hm = h.copy() hm.update( data ) return hm.digest() | adc8746dabba5a5936767cddc028f6c33b858a4c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/adc8746dabba5a5936767cddc028f6c33b858a4c/pbkdf2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
74,
12,
366,
16,
501,
262,
30,
16349,
273,
366,
18,
3530,
1435,
16349,
18,
2725,
12,
501,
262,
327,
16349,
18,
10171,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
74,
12,
366,
16,
501,
262,
30,
16349,
273,
366,
18,
3530,
1435,
16349,
18,
2725,
12,
501,
262,
327,
16349,
18,
10171,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if target_ds is None: | if target_ds is None or target_ds == 'NULL': | def Create(self, filename, xsize, ysize, bands=1, datatype=GDT_Byte, options = []): target_ds = _gdal.GDALCreate( self._o, filename, xsize, ysize, bands, datatype, options ) | 13acf88a0abb83d2ea2d7f24356ae1f003ca5bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/13acf88a0abb83d2ea2d7f24356ae1f003ca5bde/gdal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
12,
2890,
16,
1544,
16,
619,
1467,
16,
677,
1467,
16,
18960,
33,
21,
16,
11172,
33,
43,
9081,
67,
3216,
16,
702,
273,
5378,
4672,
1018,
67,
2377,
273,
389,
19016,
287,
18,
2733... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
12,
2890,
16,
1544,
16,
619,
1467,
16,
677,
1467,
16,
18960,
33,
21,
16,
11172,
33,
43,
9081,
67,
3216,
16,
702,
273,
5378,
4672,
1018,
67,
2377,
273,
389,
19016,
287,
18,
2733... |
instruments = list(instruments) instruments.sort() thresholds = dict([(pair, e_thinca_parameter) for pair in list(iterutils.choices(instruments, 2))]) | instruments = sorted(instruments) thresholds = dict((pair, e_thinca_parameter) for pair in iterutils.choices(instruments, 2)) | def replicate_threshold(e_thinca_parameter, instruments): """ From a single threshold and a list of instruments, return a dictionary whose keys are every instrument pair (both orders), and whose values are all the same single threshold. Example: >>> replicate_threshold(6, ["H1", "H2"]) {("H1", "H2"): 6, ("H2", "H1"):... | c03da7213eb606835bf8ddde25c4cd3cdc97b085 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/c03da7213eb606835bf8ddde25c4cd3cdc97b085/ligolw_thinca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28476,
67,
8699,
12,
73,
67,
451,
267,
5353,
67,
6775,
16,
29555,
4672,
3536,
6338,
279,
2202,
5573,
471,
279,
666,
434,
29555,
16,
327,
279,
3880,
8272,
1311,
854,
3614,
10353,
3082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28476,
67,
8699,
12,
73,
67,
451,
267,
5353,
67,
6775,
16,
29555,
4672,
3536,
6338,
279,
2202,
5573,
471,
279,
666,
434,
29555,
16,
327,
279,
3880,
8272,
1311,
854,
3614,
10353,
3082,
... |
msg['subject'] = ' '.join(map(lambda (x, y): unicode(x, y or 'ascii'), decode_header(msg_txt.get('Subject')))) | msg['subject'] = _decode_header(msg_txt.get('Subject')) | def _process_email(self, cr, uid, server, message, context={}): context.update({ 'server_id':server.id }) history_pool = self.pool.get('mail.server.history') msg_txt = email.message_from_string(message) message_id = msg_txt.get('Message-ID', False) | a6a41d78b0f513b6416c98b45c3ec7f55309ff87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/a6a41d78b0f513b6416c98b45c3ec7f55309ff87/fetchmail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
3652,
12,
2890,
16,
4422,
16,
4555,
16,
1438,
16,
883,
16,
819,
12938,
4672,
819,
18,
2725,
12590,
296,
3567,
67,
350,
4278,
3567,
18,
350,
289,
13,
4927,
67,
6011,
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,
389,
2567,
67,
3652,
12,
2890,
16,
4422,
16,
4555,
16,
1438,
16,
883,
16,
819,
12938,
4672,
819,
18,
2725,
12590,
296,
3567,
67,
350,
4278,
3567,
18,
350,
289,
13,
4927,
67,
6011,
27... |
intlist = map(int, string.split(str, ',')) | intlist = map(int, str.split(',')) | def _toobj(self, str): intlist = map(int, string.split(str, ',')) intlist = array.array('b', intlist) strlist = map(chr, intlist) return cPickle.loads(string.join(strlist, '')) | f2ee7819d5222cd29b59546baa9d57b085052f29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/f2ee7819d5222cd29b59546baa9d57b085052f29/Index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
2603,
12,
2890,
16,
609,
4672,
509,
1098,
273,
852,
12,
474,
16,
609,
18,
4939,
12,
17023,
3719,
509,
1098,
273,
526,
18,
1126,
2668,
70,
2187,
509,
1098,
13,
609,
1098,
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,
389,
869,
2603,
12,
2890,
16,
609,
4672,
509,
1098,
273,
852,
12,
474,
16,
609,
18,
4939,
12,
17023,
3719,
509,
1098,
273,
526,
18,
1126,
2668,
70,
2187,
509,
1098,
13,
609,
1098,
27... |
self.logger.debug('Bad data: %r %r' % (func, param)) | self.logger.debug('Bad data: %r %s' % (func, repr(param)[:100])) | def read_chunk(self, size=None): """Wait for a new chunk and return it. If there was an error, lose Connection and raise ChunkParseError | ef1fd9e87bd84bbb8ca3d0e91a6c69fe096feb33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3444/ef1fd9e87bd84bbb8ca3d0e91a6c69fe096feb33/transport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
6551,
12,
2890,
16,
963,
33,
7036,
4672,
3536,
5480,
364,
279,
394,
2441,
471,
327,
518,
18,
971,
1915,
1703,
392,
555,
16,
29612,
4050,
471,
1002,
13021,
21004,
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,
855,
67,
6551,
12,
2890,
16,
963,
33,
7036,
4672,
3536,
5480,
364,
279,
394,
2441,
471,
327,
518,
18,
971,
1915,
1703,
392,
555,
16,
29612,
4050,
471,
1002,
13021,
21004,
2,
-100,
-100... |
-1/x^6 + 1/(2*x^4) + 11/(120*x^2) - 347/15120 - (6767*x^2/604800) - (15377*x^4/7983360) | -1/x^6 + 1/(2*x^4) + 11/(120*x^2) - 347/15120 - 6767*x^2/604800 - 15377*x^4/7983360 | def taylor(self, v, a, n): """ Expands self in a truncated Taylor or Laurent series in the variable v around the point a, containing terms through $(x - a)^n$. | c01bc61bd25d9363f0356f86672ff77562a9b5da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c01bc61bd25d9363f0356f86672ff77562a9b5da/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
528,
80,
280,
12,
2890,
16,
331,
16,
279,
16,
290,
4672,
3536,
7784,
5708,
365,
316,
279,
15282,
399,
528,
80,
280,
578,
511,
8377,
547,
4166,
316,
326,
2190,
331,
6740,
326,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
528,
80,
280,
12,
2890,
16,
331,
16,
279,
16,
290,
4672,
3536,
7784,
5708,
365,
316,
279,
15282,
399,
528,
80,
280,
578,
511,
8377,
547,
4166,
316,
326,
2190,
331,
6740,
326,
16... |
def footer(self): return """ <table width="100%"><tr><td align=right> <font face="helvetica, arial"><small><small>generated with <strong>htmldoc</strong> by Ka-Ping Yee</a></small></small></font> </td></tr></table> """ | def bigsection(self, title, *args): """Format a section with a big heading.""" title = '<big><strong>%s</strong></big>' % title return apply(self.section, (title,) + args) | c8867551cbacbd399ba1d7b4ce3738d629629967 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c8867551cbacbd399ba1d7b4ce3738d629629967/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5446,
3464,
12,
2890,
16,
2077,
16,
380,
1968,
4672,
3536,
1630,
279,
2442,
598,
279,
5446,
11053,
12123,
2077,
273,
2368,
14002,
4438,
9110,
9822,
87,
1757,
9110,
4695,
14002,
1870,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5446,
3464,
12,
2890,
16,
2077,
16,
380,
1968,
4672,
3536,
1630,
279,
2442,
598,
279,
5446,
11053,
12123,
2077,
273,
2368,
14002,
4438,
9110,
9822,
87,
1757,
9110,
4695,
14002,
1870,
738,
... | |
def __init__(self, location, methodInteraction, **kw): | def __init__(self, location, methodInteraction, relatedMethods, **kw): | def __init__(self, location, methodInteraction, **kw): self.location = location self.methodInteraction = methodInteraction class Composer(self.composer): session = self self.composer = Composer super(Session, self).__init__(**kw) | d15b9c725ea67add01a06509ffd56a9e5e38264b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/d15b9c725ea67add01a06509ffd56a9e5e38264b/ggui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2117,
16,
707,
17419,
16,
3746,
4712,
16,
2826,
9987,
4672,
365,
18,
3562,
273,
2117,
365,
18,
2039,
17419,
273,
707,
17419,
667,
21458,
12,
2890,
18,
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,
1001,
2738,
972,
12,
2890,
16,
2117,
16,
707,
17419,
16,
3746,
4712,
16,
2826,
9987,
4672,
365,
18,
3562,
273,
2117,
365,
18,
2039,
17419,
273,
707,
17419,
667,
21458,
12,
2890,
18,
15... |
self.current_target_object) \ | self.current_target) \ | def dump_status(self, long_output=False, precision=None): """ get detailled thread status. """ | a3db7d295a7a1a61d223bfc2474db829f8a19f66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/a3db7d295a7a1a61d223bfc2474db829f8a19f66/threads.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
2327,
12,
2890,
16,
1525,
67,
2844,
33,
8381,
16,
6039,
33,
7036,
4672,
3536,
336,
7664,
1259,
2650,
1267,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
2327,
12,
2890,
16,
1525,
67,
2844,
33,
8381,
16,
6039,
33,
7036,
4672,
3536,
336,
7664,
1259,
2650,
1267,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Slicer.tk.after(10,self.flyCB) | self.afterID = Slicer.tk.after(self.delay.get(),self.flyCB) | def flyCB(self): if self.playing: f = self.frame.get() f += 1 + self.speed.get() if f > self.frame['to']: f = 0 self.frame.set(f) Slicer.tk.after(10,self.flyCB) | a34e0d367712cdcdfecd1637bf0bf4cefccd7fe6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12580/a34e0d367712cdcdfecd1637bf0bf4cefccd7fe6/EndoscopyGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21434,
8876,
12,
2890,
4672,
309,
365,
18,
1601,
310,
30,
284,
273,
365,
18,
3789,
18,
588,
1435,
284,
1011,
404,
397,
365,
18,
13871,
18,
588,
1435,
309,
284,
405,
365,
18,
3789,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21434,
8876,
12,
2890,
4672,
309,
365,
18,
1601,
310,
30,
284,
273,
365,
18,
3789,
18,
588,
1435,
284,
1011,
404,
397,
365,
18,
13871,
18,
588,
1435,
309,
284,
405,
365,
18,
3789,
32... |
valid = FALSE | valid = False | def doValidate (self, init=FALSE): """ Validate the widget settings. | ab8126074d7036807d1d842171687cc01617a181 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ab8126074d7036807d1d842171687cc01617a181/driconf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
4270,
261,
2890,
16,
1208,
33,
21053,
4672,
3536,
3554,
326,
3604,
1947,
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,
... | [
1,
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,
741,
4270,
261,
2890,
16,
1208,
33,
21053,
4672,
3536,
3554,
326,
3604,
1947,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.model[:] = [] | def __init__(self): self.model[:] = [] self.sources[:] = [] self.__packages = dict() | e0b470097dfecc092fb724d07cc417651aac2b76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/e0b470097dfecc092fb724d07cc417651aac2b76/asBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
10141,
10531,
65,
273,
5378,
365,
16186,
10308,
273,
2065,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
10141,
10531,
65,
273,
5378,
365,
16186,
10308,
273,
2065,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.assertTrue(hunk.type in (HOST_HOSTNAME_ADD, HOST_HOSTNAME_REMOVE)) | self.assertTrue(isinstance(hunk, (HostHostnameAddHunk, HostHostnameRemoveHunk))) | def test_hostname_change(self): a = Host() b = Host() a.hostnames = ["a"] b.hostnames = ["b"] diff = host_diff(a, b) self.assertTrue(len(diff) > 0) for hunk in diff: self.assertTrue(hunk.type in (HOST_HOSTNAME_ADD, HOST_HOSTNAME_REMOVE)) | e100fe985a91dc50454e1b16bae62fa0d722a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6331/e100fe985a91dc50454e1b16bae62fa0d722a5a7/ndifftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10358,
67,
3427,
12,
2890,
4672,
279,
273,
4893,
1435,
324,
273,
4893,
1435,
279,
18,
2564,
1973,
273,
8247,
69,
11929,
324,
18,
2564,
1973,
273,
8247,
70,
11929,
3122,
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,
1842,
67,
10358,
67,
3427,
12,
2890,
4672,
279,
273,
4893,
1435,
324,
273,
4893,
1435,
279,
18,
2564,
1973,
273,
8247,
69,
11929,
324,
18,
2564,
1973,
273,
8247,
70,
11929,
3122,
273,
... |
name = disp.getparam('filename').strip() | name = disp.getparam('filename') if name: name = name.strip() | def handle_message(self, message): ''' message - a Message instance | 3704ad54b49fc472499d8dfb2af3b85f0c324676 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3704ad54b49fc472499d8dfb2af3b85f0c324676/mailgw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2150,
12,
2890,
16,
883,
4672,
9163,
883,
300,
279,
2350,
791,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2150,
12,
2890,
16,
883,
4672,
9163,
883,
300,
279,
2350,
791,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
[os.path.join(dirname, file) for file in names if os.path.splitext(file)[1] == _py_ext]) | [os.path.join(dirname, file) for file in names if os.path.splitext(file)[1] == _py_ext] ) | def _visit_pyfiles(list, dirname, names): """ Helper for getFilesForName(). """ # get extension for python source files if not globals().has_key('_py_ext'): import imp global _py_ext _py_ext = [triple[0] for triple in imp.get_suffixes() if triple[2] == imp.PY_SOURCE][0] # don't recurse into CVS directories if 'CVS' in... | 9aeccb6a889c8d4e7617228595da08f4f31a3666 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9aeccb6a889c8d4e7617228595da08f4f31a3666/pygettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11658,
67,
2074,
2354,
12,
1098,
16,
4283,
16,
1257,
4672,
3536,
9705,
364,
18262,
1290,
461,
7675,
3536,
468,
336,
2710,
364,
5790,
1084,
1390,
309,
486,
10941,
7675,
5332,
67,
856... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11658,
67,
2074,
2354,
12,
1098,
16,
4283,
16,
1257,
4672,
3536,
9705,
364,
18262,
1290,
461,
7675,
3536,
468,
336,
2710,
364,
5790,
1084,
1390,
309,
486,
10941,
7675,
5332,
67,
856... |
re_enum = re.compile(r'^\s+(?P<ident>[A-Z][A-Z0-9_]+)\s*=', re.M) | re_enum = re.compile(r'^\s+(?P<ident>[A-Z][A-Z0-9_]+)\s*[=,]', re.M) | command -nargs=+ HiLink hi def link <args> | f7d9779be336dd165ada7dd3923f3f7d87d4a728 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/f7d9779be336dd165ada7dd3923f3f7d87d4a728/vim-syn-gen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1296,
300,
82,
1968,
33,
15,
670,
77,
2098,
10118,
1652,
1692,
411,
1968,
34,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1296,
300,
82,
1968,
33,
15,
670,
77,
2098,
10118,
1652,
1692,
411,
1968,
34,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
... form={'field.foo': u'<h1>&copy;</h1>'}) | ... form={'field.foo': u'<h1>©</h1>'}) | >>> def normalize(s): | 2005e00d7910b62d32c087ca76cf1b24a20f990c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9530/2005e00d7910b62d32c087ca76cf1b24a20f990c/textwidgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
3883,
12,
87,
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... | [
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,
4080,
1652,
3883,
12,
87,
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,
-10... |
cur_line.append(chunks[0][0:space_left]) chunks[0] = chunks[0][space_left:] | cur_line.append(reversed_chunks[-1][:space_left]) reversed_chunks[-1] = reversed_chunks[-1][space_left:] | def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int) | d6b1aef33b7c7d40bfb1081d307451a71781d2bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6b1aef33b7c7d40bfb1081d307451a71781d2bc/textwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
5748,
67,
1095,
12,
2890,
16,
6055,
16,
662,
67,
1369,
16,
662,
67,
1897,
16,
1835,
4672,
3536,
67,
4110,
67,
5748,
67,
1095,
12,
14691,
294,
306,
1080,
6487,
662,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
5748,
67,
1095,
12,
2890,
16,
6055,
16,
662,
67,
1369,
16,
662,
67,
1897,
16,
1835,
4672,
3536,
67,
4110,
67,
5748,
67,
1095,
12,
14691,
294,
306,
1080,
6487,
662,
67,... |
warn(None, "Logging domain %s is not valid, ignoring" % domain) | warn(None, "Logging domain %s is not valid, ignoring" % domainstr) | def set_debug_domains(msgdomainstrings): for domainstr in msgdomainstrings: for d in domain: if domain._fields[d] == domainstr: debug_level[d] += 1 break else: warn(None, "Logging domain %s is not valid, ignoring" % domain) | c8498f59eca15e4f0ee01c99b193698398596207 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/c8498f59eca15e4f0ee01c99b193698398596207/msg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4148,
67,
14180,
12,
3576,
4308,
10219,
4672,
364,
2461,
701,
316,
1234,
4308,
10219,
30,
364,
302,
316,
2461,
30,
309,
2461,
6315,
2821,
63,
72,
65,
422,
2461,
701,
30,
1198,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4148,
67,
14180,
12,
3576,
4308,
10219,
4672,
364,
2461,
701,
316,
1234,
4308,
10219,
30,
364,
302,
316,
2461,
30,
309,
2461,
6315,
2821,
63,
72,
65,
422,
2461,
701,
30,
1198,... |
params['limit'] = limit | params['limit'] = unicode(limit) | def getFriends(self, limit = None): """Returns a list of the user's friends. """ params = self._getParams() if limit: params['limit'] = limit doc = Request(self, 'user.getFriends', self.api_key, params).execute() if not doc: return None list = [] users = doc.getElementsByTagName('user') names = self._extract_all(d... | 8e390ea93e2743714b53aabf1d44d42534ecc6fa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/8e390ea93e2743714b53aabf1d44d42534ecc6fa/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
22259,
12,
2890,
16,
1800,
273,
599,
4672,
3536,
1356,
279,
666,
434,
326,
729,
1807,
284,
22259,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
309,
1800,
30,
859,
3292,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
22259,
12,
2890,
16,
1800,
273,
599,
4672,
3536,
1356,
279,
666,
434,
326,
729,
1807,
284,
22259,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
309,
1800,
30,
859,
3292,
3... |
self._parse_resource(section, r, defines) | try: self._parse_resource(section, r, defines) finally: r.close() | def includeConfiguration(self, section, url, defines): url = self.normalizeURL(url) r = self.openResource(url) self._parse_resource(section, r, defines) | b2ccdb8d71104e0a70035e2bdeeacc703a7539ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/b2ccdb8d71104e0a70035e2bdeeacc703a7539ef/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2341,
1750,
12,
2890,
16,
2442,
16,
880,
16,
11164,
4672,
880,
273,
365,
18,
12237,
1785,
12,
718,
13,
436,
273,
365,
18,
3190,
1420,
12,
718,
13,
365,
6315,
2670,
67,
3146,
12,
3464... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2341,
1750,
12,
2890,
16,
2442,
16,
880,
16,
11164,
4672,
880,
273,
365,
18,
12237,
1785,
12,
718,
13,
436,
273,
365,
18,
3190,
1420,
12,
718,
13,
365,
6315,
2670,
67,
3146,
12,
3464... |
from MoinMoin.search.builtin import XapianSearch | from MoinMoin.search import XapianSearch | def getInfo(self): _ = self.request.getText request = self.request | dfd54506f9c0934e1c3e902c22a07aea83532996 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/dfd54506f9c0934e1c3e902c22a07aea83532996/SystemInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
12,
2890,
4672,
389,
273,
365,
18,
2293,
18,
588,
1528,
590,
273,
365,
18,
2293,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
12,
2890,
4672,
389,
273,
365,
18,
2293,
18,
588,
1528,
590,
273,
365,
18,
2293,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
- ``int`` - the index of the normalized Manin symbol equivalent to `(i,u,v)`. | (``int``) the index of the normalized Manin symbol equivalent to `(i,u,v)`. | def index(self, x): """ Return the index of ``x`` in the list of Manin symbols, where ``x`` is a 3-tuple of ints. If ``x`` is not in the list, then return -1. | 671c84d5e7cdbe17c4a9c5101eeb0ee36a73d4c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/671c84d5e7cdbe17c4a9c5101eeb0ee36a73d4c3/manin_symbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
16,
619,
4672,
3536,
2000,
326,
770,
434,
12176,
92,
10335,
316,
326,
666,
434,
8660,
267,
7963,
16,
1625,
12176,
92,
10335,
353,
279,
890,
17,
8052,
434,
15542,
18,
971... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
770,
12,
2890,
16,
619,
4672,
3536,
2000,
326,
770,
434,
12176,
92,
10335,
316,
326,
666,
434,
8660,
267,
7963,
16,
1625,
12176,
92,
10335,
353,
279,
890,
17,
8052,
434,
15542,
18,
971... |
assert len(nativeMethods) < max_methods method_num = len(nativeMethods) | method_num = 0 | def make_doc_summary(inFile, outFile): methods = [] nativeMethods = [] modDoc = "" modName = "" lines = inFile.readlines() curMethod = None constants = [] extra_tags = [] lineNo = 0 bInRawBlock = 0 while lineNo < len(lines): line = lines[lineNo] if bInRawBlock and len(line)>2 and line[:2]=="%}": bInRawBlock = 0 if not ... | de6d785f6e32e155061010dd66103baf7ea116fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/de6d785f6e32e155061010dd66103baf7ea116fe/makedfromi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2434,
67,
7687,
12,
267,
812,
16,
21651,
4672,
2590,
273,
5378,
6448,
4712,
273,
5378,
681,
1759,
273,
1408,
681,
461,
273,
1408,
2362,
273,
316,
812,
18,
896,
3548,
1435,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2434,
67,
7687,
12,
267,
812,
16,
21651,
4672,
2590,
273,
5378,
6448,
4712,
273,
5378,
681,
1759,
273,
1408,
681,
461,
273,
1408,
2362,
273,
316,
812,
18,
896,
3548,
1435,
66... |
""" | Rational functions are accepted: sage: I = sqrt(-1) sage: K.<I> = QQ[I] sage: P.<t> = PolynomialRing(K) sage: L.<u> = LaurentSeriesRing(QQ[I]) sage: L((t*I)/(t^3+I*2*t)) 1/2 + 1/4*I*u^2 - 1/8*u^4 - 1/16*I*u^6 + 1/32*u^8 + 1/64*I*u^10 - 1/128*u^12 - 1/256*I*u^14 + 1/512*u^16 + 1/1024*I*u^18 + O(u^20) sage: L(t*I) / L... | def __call__(self, x, n=0): """ EXAMPLES: sage: R.<u> = LaurentSeriesRing(Qp(5, 10)) sage: S.<t> = LaurentSeriesRing(RationalField()) sage: print R(t + t^2 + O(t^3)) (1 + O(5^10))*u + (1 + O(5^10))*u^2 + O(u^3) | 19fb4523b6d65c5c795a5f681df30367fb9c55c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/19fb4523b6d65c5c795a5f681df30367fb9c55c8/laurent_series_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
290,
33,
20,
4672,
225,
534,
8371,
4186,
854,
8494,
30,
225,
272,
410,
30,
467,
273,
5700,
19236,
21,
13,
272,
410,
30,
1475,
22782,
45,
34,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
619,
16,
290,
33,
20,
4672,
225,
534,
8371,
4186,
854,
8494,
30,
225,
272,
410,
30,
467,
273,
5700,
19236,
21,
13,
272,
410,
30,
1475,
22782,
45,
34,
... |
for imapflag in imapflaglist: if flagmap.has_key(imapflag): retval.append(flagmap[imapflag]) | for imapflag, maildirflag in flagmap: if imapflag.lower() in imapflaglist: retval.append(maildirflag) | def flagsimap2maildir(flagstring): flagmap = {'\\seen': 'S', '\\answered': 'R', '\\flagged': 'F', '\\deleted': 'T', '\\draft': 'D'} retval = [] imapflaglist = [x.lower() for x in flagstring[1:-1].split()] for imapflag in imapflaglist: if flagmap.has_key(imapflag): retval.append(flagmap[imapflag]) retval.sort() return r... | b8aaf4cf43b5bf28054852d5b8a52707fda24895 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5335/b8aaf4cf43b5bf28054852d5b8a52707fda24895/imaputil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2943,
12161,
22,
2540,
545,
481,
12,
6420,
1080,
4672,
2982,
1458,
273,
13666,
1695,
15156,
4278,
296,
55,
2187,
3718,
13490,
329,
4278,
296,
54,
2187,
3718,
6420,
2423,
4278,
296,
42,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2943,
12161,
22,
2540,
545,
481,
12,
6420,
1080,
4672,
2982,
1458,
273,
13666,
1695,
15156,
4278,
296,
55,
2187,
3718,
13490,
329,
4278,
296,
54,
2187,
3718,
6420,
2423,
4278,
296,
42,
2... |
'product_ids' : fields.one2many('dm.product', 'proposition_id', 'Catalogue'), | 'item_ids' : fields.one2many('dm.item', 'proposition_id', 'Catalogue'), | def _default_camp_date(self, cr, uid, context={}): if 'date1' in context and context['date1']: dd = context['date1'] return dd return [] | 0b0f0b42988f5bf3ab4e56831cd7d10992eb9c17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/0b0f0b42988f5bf3ab4e56831cd7d10992eb9c17/campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
... |
if inline_period.search(word) or uc_elsewhere.match(word): | if INLINE_PERIOD.search(word) or UC_ELSEWHERE.match(word): | def titlecase(text): """ This filter changes all words to Title Caps, and attempts to be clever about *un*capitalizing small words like a/an/the in the input. The list of "small words" which are not capped comes from the New York Times Manual of Style, plus 'vs' and 'v'. """ small = 'a|an|and|as|at|but|by|en|for|if|i... | faef923bff691bbede9b642e912e5874bbe1fbb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8761/faef923bff691bbede9b642e912e5874bbe1fbb1/titlecase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2077,
3593,
12,
955,
4672,
225,
3536,
1220,
1034,
3478,
777,
4511,
358,
10984,
385,
6679,
16,
471,
7531,
358,
506,
1619,
502,
2973,
380,
318,
14,
5909,
7053,
6894,
5264,
4511,
3007,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2077,
3593,
12,
955,
4672,
225,
3536,
1220,
1034,
3478,
777,
4511,
358,
10984,
385,
6679,
16,
471,
7531,
358,
506,
1619,
502,
2973,
380,
318,
14,
5909,
7053,
6894,
5264,
4511,
3007,
279,... |
ai("a = (") | ai("if 1:") ai("if 1:\n") ai("if 1:\n pass\n if 1:\n pass\n else:") ai("if 1:\n pass\n if 1:\n pass\n else:\n") ai("if 1:\n pass\n if 1:\n pass\n else:\n pass") ai("def x():") ai("def x():\n") ai("def x():\n\n") ai("def x():\n pass") ai("def x():\n pass\n ") ai("def x():\n pass\n ") ai("\n\ndef x():\n pass")... | ai("def x():\n") | d719bc74fff5a5121eec1831bd7a934e109f90f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d719bc74fff5a5121eec1831bd7a934e109f90f1/test_codeop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
14679,
2932,
536,
619,
1435,
5581,
82,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14679,
2932,
536,
619,
1435,
5581,
82,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def TrimPreprocessedFile(Source, Target, Convert): | def TrimPreprocessedFile(Source, Target, ConvertHex, TrimLong): | def TrimPreprocessedFile(Source, Target, Convert): CreateDirectory(os.path.dirname(Target)) try: f = open (Source, 'r') except: EdkLogger.error("Trim", FILE_OPEN_FAILURE, ExtraData=Source) # read whole file Lines = f.readlines() f.close() PreprocessedFile = "" InjectedFile = "" LineIndexOfOriginalFile = None NewLines... | 5b5b39b4c825b799f4e42ba6dfeab72beafc7a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/5b5b39b4c825b799f4e42ba6dfeab72beafc7a6e/Trim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7105,
1386,
11005,
812,
12,
1830,
16,
5916,
16,
4037,
7037,
16,
7105,
3708,
4672,
1788,
2853,
12,
538,
18,
803,
18,
12287,
12,
2326,
3719,
775,
30,
284,
273,
1696,
261,
1830,
16,
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,
7105,
1386,
11005,
812,
12,
1830,
16,
5916,
16,
4037,
7037,
16,
7105,
3708,
4672,
1788,
2853,
12,
538,
18,
803,
18,
12287,
12,
2326,
3719,
775,
30,
284,
273,
1696,
261,
1830,
16,
296,
... |
3.0000000000000000000000000000000 | 3.0000000000000000000000000000 | def imag(self): """ Return imaginary part of self. | 0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8902,
12,
2890,
4672,
3536,
2000,
30852,
1087,
434,
365,
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,
0,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8902,
12,
2890,
4672,
3536,
2000,
30852,
1087,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return | return False | def add_event_handler(self, full_usage_id, handler_function, event_kind = HID_EVT_ALL, aux_data = None): "Add event handler for usage value/button changes" if not self.find_input_usage(full_usage_id): #do not add handler return #get dict for full usages top_map_handler = self.__evt_handlers.get(full_usage_id, dict()) e... | 899b5c42fe07befc6ccf3c977b66bc2d76359029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11669/899b5c42fe07befc6ccf3c977b66bc2d76359029/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2575,
67,
4176,
12,
2890,
16,
1983,
67,
9167,
67,
350,
16,
1838,
67,
915,
16,
871,
67,
9224,
273,
670,
734,
67,
24427,
56,
67,
4685,
16,
9397,
67,
892,
273,
599,
4672,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2575,
67,
4176,
12,
2890,
16,
1983,
67,
9167,
67,
350,
16,
1838,
67,
915,
16,
871,
67,
9224,
273,
670,
734,
67,
24427,
56,
67,
4685,
16,
9397,
67,
892,
273,
599,
4672,
315... |
"""LabelFrame - Labelled Frame container. | """LabelFrame - Labelled Frame container. Packages a frame widget and a label into one mega widget. To create widgets inside a LabelFrame widget, one creates the new widgets relative to the frame subwidget and manage them inside the frame subwidget. | def __init__ (self,master=None,cnf={}, **kw): TixWidget.__init__(self, master, 'tixLabelEntry', ['labelside','options'], cnf, kw) self.subwidget_list['label'] = _dummyLabel(self, 'label') self.subwidget_list['entry'] = _dummyEntry(self, 'entry') | 01c920b9b56baabd2e1dd945affd1c17c1669b20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/01c920b9b56baabd2e1dd945affd1c17c1669b20/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
7525,
33,
7036,
16,
10305,
74,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
2224,
1622,
2187,
10228,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
16,
7525,
33,
7036,
16,
10305,
74,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
2224,
1622,
2187,
10228,
... |
match = re.search('^(\S*).%s.*'%location, dataset) | if location: match = re.search('^(\S*).%s.*'%location, dataset) else: match = re.search('^(\S*)\..*', dataset) | def fill(self, type=None, name=None, **options ): """Determine outputdata and outputsandbox locations of finished jobs and fill output variable""" | 3ca7c1545f369be896417ef07534378205322a15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/3ca7c1545f369be896417ef07534378205322a15/DQ2Dataset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
12,
2890,
16,
618,
33,
7036,
16,
508,
33,
7036,
16,
2826,
2116,
262,
30,
3536,
8519,
876,
892,
471,
6729,
9069,
7838,
434,
6708,
6550,
471,
3636,
876,
2190,
8395,
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,
3636,
12,
2890,
16,
618,
33,
7036,
16,
508,
33,
7036,
16,
2826,
2116,
262,
30,
3536,
8519,
876,
892,
471,
6729,
9069,
7838,
434,
6708,
6550,
471,
3636,
876,
2190,
8395,
2,
-100,
-100,
... |
sage: for i in range(-5,5) ... for j in range(-5,5) | sage: for i in range(-5,5): ... for j in range(-5,5): | def list_plot3d(v, interpolation_type='default', texture="automatic", point_list=None,**kwds): """ A 3-dimensional plot of a surface defined by the list $v$ of points in 3-dimensional space. INPUT: v -- something that defines a set of points in 3 space, for example: * a matrix * a list of 3-tuples * a list of lists (a... | 114582346c9df0f13bac004027132a53855939f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/114582346c9df0f13bac004027132a53855939f9/list_plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434... |
for c in self.cache: | for c in self.input_cache: | def write_input_files(self, *args): f = file(self.cache_name, "w") for c in self.cache: print >>f, str(c) pipeline.LigolwAddNode.write_input_files(self, *args) | a6f51cd0e257501ea4f0864483cd73ad05576b37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/a6f51cd0e257501ea4f0864483cd73ad05576b37/power.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2630,
67,
2354,
12,
2890,
16,
380,
1968,
4672,
284,
273,
585,
12,
2890,
18,
2493,
67,
529,
16,
315,
91,
7923,
364,
276,
316,
365,
18,
2630,
67,
2493,
30,
1172,
1671,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2630,
67,
2354,
12,
2890,
16,
380,
1968,
4672,
284,
273,
585,
12,
2890,
18,
2493,
67,
529,
16,
315,
91,
7923,
364,
276,
316,
365,
18,
2630,
67,
2493,
30,
1172,
1671,
74,
... |
self.log.warn('Job submission failed for productionID %s and prodJobID %s setting prodJob status to %s' %(prodID,jobNumber,self.createdStatus)) | self.log.error('Production Job Submission Failed',subResult['Message']) self.log.info('Job submission failed for productionID %s and prodJobID %s setting prodJob status to %s' %(prodID,jobNumber,self.createdStatus)) | def __createProductionJobs(self,prodID,prodDict,number,userID,site=None): """Wrapper to submit job to WMS. """ #{'Body':<workflow_xml>,'JobDictionary':{<job_number(int)>:{paramname:paramvalue}}} if not prodDict.has_key('Body') or not prodDict.has_key('JobDictionary'): return self.__errorReport(prodDict,'Unexpected resu... | b06b1a332e8b4f32cb5e9c7b5c01ba03693d582c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/b06b1a332e8b4f32cb5e9c7b5c01ba03693d582c/DiracProduction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
31590,
7276,
12,
2890,
16,
17672,
734,
16,
17672,
5014,
16,
2696,
16,
1355,
734,
16,
4256,
33,
7036,
4672,
3536,
3611,
358,
4879,
1719,
358,
678,
3537,
18,
3536,
3735,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
31590,
7276,
12,
2890,
16,
17672,
734,
16,
17672,
5014,
16,
2696,
16,
1355,
734,
16,
4256,
33,
7036,
4672,
3536,
3611,
358,
4879,
1719,
358,
678,
3537,
18,
3536,
3735,
11,
... |
pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(gcompris.DATA_DIR + '/' + gcompris.skin.image_to_skin(file), | pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(gcompris.DATA_DIR + '/' + file, | def pixbuf_skin_at_height(self, file, height): pixbuf = gcompris.skin.load_pixmap(file) width = pixbuf.get_width()* height / pixbuf.get_height() del pixbuf pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(gcompris.DATA_DIR + '/' + gcompris.skin.image_to_skin(file), width, height) return pixbuf | f30ec7d8945618df563f1ab9a3d8b490cc643574 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11306/f30ec7d8945618df563f1ab9a3d8b490cc643574/board_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11871,
4385,
67,
7771,
267,
67,
270,
67,
4210,
12,
2890,
16,
585,
16,
2072,
4672,
11871,
4385,
273,
314,
832,
683,
291,
18,
7771,
267,
18,
945,
67,
14861,
1458,
12,
768,
13,
1835,
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,
11871,
4385,
67,
7771,
267,
67,
270,
67,
4210,
12,
2890,
16,
585,
16,
2072,
4672,
11871,
4385,
273,
314,
832,
683,
291,
18,
7771,
267,
18,
945,
67,
14861,
1458,
12,
768,
13,
1835,
27... |
variables = self._sort(variables, sortorder) | def _var_summary(self, variables, sortorder, container, heading='Variable Summary'): """ @return: The HTML code for a variable summary table. This is used by L{_module_to_html} to list the variables in a module; and by L{_class_to_html} to list instance variables and class variables. @rtype: C{string} """ variables = ... | 7e1af2abc702612461ceeb001b4b551d49cb71d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7e1af2abc702612461ceeb001b4b551d49cb71d3/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
7687,
12,
2890,
16,
3152,
16,
1524,
1019,
16,
1478,
16,
11053,
2218,
3092,
17967,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
4916,
1014,
18,
225,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
7687,
12,
2890,
16,
3152,
16,
1524,
1019,
16,
1478,
16,
11053,
2218,
3092,
17967,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
4916,
1014,
18,
225,
12... | |
else: return "file:///" + GetAbsolutePath(full_path) | return "file:///" + GetAbsolutePath(full_path) | def FilenameToUri(full_path): """Convert a test file to a URI.""" LAYOUTTEST_HTTP_DIR = "LayoutTests/http/tests/" PENDING_HTTP_DIR = "pending/http/tests/" relative_path = _WinPathToUnix(RelativeTestFilename(full_path)) port = None use_ssl = False # LayoutTests/http/tests/ run off port 8000 and ssl/ off 8443 if rel... | 4a2d3a3e1ce87cbf306217b99d4f0aedc55f61f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/4a2d3a3e1ce87cbf306217b99d4f0aedc55f61f6/path_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16671,
774,
3006,
12,
2854,
67,
803,
4672,
3536,
2723,
279,
1842,
585,
358,
279,
3699,
12123,
25239,
5069,
16961,
67,
3693,
67,
4537,
273,
315,
3744,
14650,
19,
2505,
19,
16341,
4898,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16671,
774,
3006,
12,
2854,
67,
803,
4672,
3536,
2723,
279,
1842,
585,
358,
279,
3699,
12123,
25239,
5069,
16961,
67,
3693,
67,
4537,
273,
315,
3744,
14650,
19,
2505,
19,
16341,
4898,
28... |
self.data = (defEnvPython + defSig + defImport + defApp) \ %(self.modelIdentifier, boaClass, mainModule, mainModule, mainModule, mainModule) | self.data = (sourceconst.defEnvPython + sourceconst.defSig + \ sourceconst.defImport + sourceconst.defApp)%( self.modelIdentifier, sourceconst.boaClass, mainModule, mainModule, mainModule, mainModule) | def new(self, mainModule): self.data = (defEnvPython + defSig + defImport + defApp) \ %(self.modelIdentifier, boaClass, mainModule, mainModule, mainModule, mainModule) self.saved = false self.modified = true self.update() self.notify() | 2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
2774,
3120,
4672,
365,
18,
892,
273,
261,
3168,
10248,
18,
536,
3491,
15774,
397,
1084,
10248,
18,
536,
8267,
397,
521,
1084,
10248,
18,
536,
5010,
397,
1084,
10248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
2774,
3120,
4672,
365,
18,
892,
273,
261,
3168,
10248,
18,
536,
3491,
15774,
397,
1084,
10248,
18,
536,
8267,
397,
521,
1084,
10248,
18,
536,
5010,
397,
1084,
10248,
... |
defaults._cookie_identifier = NoDefault defaults._secret = NoDefault | defaults._cookie_identifier = NoDefault() defaults._secret = NoDefault() | def _add_admin_options(self, parser, defaults): parser.add_option("-r", "--rest-secret", dest="rest_secret", type="string", default=defaults._rest_secret, metavar="SECRET", help="The SECRET token that must be in present in all rest api calls as the form variable \"secret\".") parser.add_option("-a", "--admin-password",... | c44c08abec25303095056d60b52eb4a555aa62f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13219/c44c08abec25303095056d60b52eb4a555aa62f5/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
3666,
67,
2116,
12,
2890,
16,
2082,
16,
3467,
4672,
2082,
18,
1289,
67,
3482,
2932,
17,
86,
3113,
5238,
8792,
17,
5875,
3113,
1570,
1546,
8792,
67,
5875,
3113,
618,
1546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
67,
3666,
67,
2116,
12,
2890,
16,
2082,
16,
3467,
4672,
2082,
18,
1289,
67,
3482,
2932,
17,
86,
3113,
5238,
8792,
17,
5875,
3113,
1570,
1546,
8792,
67,
5875,
3113,
618,
1546... |
EXAMPLE: | EXAMPLE:: | def __len__(self): """ Return the length of input bit strings. | d8d819d404da04929f5525b5dd795973a8bd80ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d8d819d404da04929f5525b5dd795973a8bd80ae/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
3536,
2000,
326,
769,
434,
810,
2831,
2064,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
3536,
2000,
326,
769,
434,
810,
2831,
2064,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
@keyword httpHeaders: A dictionary containing headers to add to an http request | @keyword httpHeaders: A dictionary containing headers to add to an http request | def __init__(self, recipe, *args, **keywords): | bbf56a2c6ce326846b9cfaed245edce8bd904567 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/bbf56a2c6ce326846b9cfaed245edce8bd904567/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16100,
16,
380,
1968,
16,
2826,
11771,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16100,
16,
380,
1968,
16,
2826,
11771,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'ftp://ftp.python.org/pub/python/README', | 'ftp://ftp.gnu.org/pub/README', | def test(args=[]): if not args: args = [ '/etc/passwd', 'file:/etc/passwd', 'file://localhost/etc/passwd', 'ftp://ftp.python.org/pub/python/README', | d1a0e51536c8605c4ffe347dcdec5e4020a7a287 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/d1a0e51536c8605c4ffe347dcdec5e4020a7a287/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
1968,
33,
8526,
4672,
309,
486,
833,
30,
833,
273,
306,
1173,
14175,
19,
24002,
2187,
296,
768,
27824,
14175,
19,
24002,
2187,
296,
768,
2207,
13014,
19,
14175,
19,
24002,
2187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
12,
1968,
33,
8526,
4672,
309,
486,
833,
30,
833,
273,
306,
1173,
14175,
19,
24002,
2187,
296,
768,
27824,
14175,
19,
24002,
2187,
296,
768,
2207,
13014,
19,
14175,
19,
24002,
2187... |
if handle == 'y-post': | elif handle == 'x-scale' and base.direct.manipulationControl.useSeparateScaleHandles: self.xScaleGroup.reparentTo(self.xHandles) elif handle == 'y-post': | def enableHandle(self, handle): if handle == 'x-post': self.xPostGroup.reparentTo(self.xHandles) elif handle == 'x-ring': self.xRingGroup.reparentTo(self.xHandles) elif handle == 'x-disc': self.xDiscGroup.reparentTo(self.xHandles) if handle == 'y-post': self.yPostGroup.reparentTo(self.yHandles) elif handle == 'y-ring':... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
3259,
12,
2890,
16,
1640,
4672,
309,
1640,
422,
296,
92,
17,
2767,
4278,
365,
18,
92,
3349,
1114,
18,
266,
2938,
774,
12,
2890,
18,
92,
8788,
13,
1327,
1640,
422,
296,
92,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
3259,
12,
2890,
16,
1640,
4672,
309,
1640,
422,
296,
92,
17,
2767,
4278,
365,
18,
92,
3349,
1114,
18,
266,
2938,
774,
12,
2890,
18,
92,
8788,
13,
1327,
1640,
422,
296,
92,
17,
... |
realMain() | return realMain() | def realMain(): from application import feedback feedback.initRuntimeLog(Globals.options.profileDir) Globals.chandlerDirectory = Utility.locateChandlerDirectory() os.chdir(Globals.chandlerDirectory) Utility.initLogging(Globals.options) | 478758c40b3d2b53ff566c1e5f030905d8a6ee04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/478758c40b3d2b53ff566c1e5f030905d8a6ee04/Chandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
6376,
13332,
225,
628,
2521,
1930,
10762,
10762,
18,
2738,
5576,
1343,
12,
19834,
18,
2116,
18,
5040,
1621,
13,
225,
18901,
1031,
18,
343,
464,
749,
2853,
273,
13134,
18,
25450,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
6376,
13332,
225,
628,
2521,
1930,
10762,
10762,
18,
2738,
5576,
1343,
12,
19834,
18,
2116,
18,
5040,
1621,
13,
225,
18901,
1031,
18,
343,
464,
749,
2853,
273,
13134,
18,
25450,
78... |
table2 = Table('table2', metadata, | table2 = Table('table2', metadata, | def testcreate(self): engine = testbase.db schema = engine.dialect.get_default_schema_name(engine) #engine.echo = True | 35ff8ed25e8a03b36461fbe09d0530bb1164ce82 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/35ff8ed25e8a03b36461fbe09d0530bb1164ce82/reflection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2640,
12,
2890,
4672,
4073,
273,
1842,
1969,
18,
1966,
1963,
273,
4073,
18,
25909,
386,
18,
588,
67,
1886,
67,
4821,
67,
529,
12,
8944,
13,
468,
8944,
18,
12946,
273,
1053,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2640,
12,
2890,
4672,
4073,
273,
1842,
1969,
18,
1966,
1963,
273,
4073,
18,
25909,
386,
18,
588,
67,
1886,
67,
4821,
67,
529,
12,
8944,
13,
468,
8944,
18,
12946,
273,
1053,
2,
... |
print "ASFSD", reportRequest | def __checkPlotRequest( self, reportRequest ): if 'lastSeconds' in reportRequest: try: lastSeconds = long( reportRequest[ 'lastSeconds' ] ) except: return S_ERROR( "lastSeconds key must be a number" ) if lastSeconds < 3600: return S_ERROR( "lastSeconds must be more than 3600" ) now = Time.toEpoch() reportRequest[ 'endT... | 0573feeaa91cc96c51889ffd4d2c29c9c7d6870d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/0573feeaa91cc96c51889ffd4d2c29c9c7d6870d/ReportGeneratorHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
11532,
691,
12,
365,
16,
2605,
691,
262,
30,
309,
296,
2722,
6762,
11,
316,
2605,
691,
30,
775,
30,
1142,
6762,
273,
1525,
12,
2605,
691,
63,
296,
2722,
6762,
11,
308,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
11532,
691,
12,
365,
16,
2605,
691,
262,
30,
309,
296,
2722,
6762,
11,
316,
2605,
691,
30,
775,
30,
1142,
6762,
273,
1525,
12,
2605,
691,
63,
296,
2722,
6762,
11,
308,
26... | |
raise error.TestFail("Could not copy %s to guest" % basename) | raise error.TestFail("Could not copy %s to guest" % local_path) | def copy_if_size_differs(vm, local_path, remote_path): """ Copy a file to a guest if it doesn't exist or if its size differs. | 9a0ed8a302f92cd95aef5e2febbdd589f45c65ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/9a0ed8a302f92cd95aef5e2febbdd589f45c65ce/autotest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
430,
67,
1467,
67,
5413,
414,
12,
3489,
16,
1191,
67,
803,
16,
2632,
67,
803,
4672,
3536,
5631,
279,
585,
358,
279,
13051,
309,
518,
3302,
1404,
1005,
578,
309,
2097,
963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
430,
67,
1467,
67,
5413,
414,
12,
3489,
16,
1191,
67,
803,
16,
2632,
67,
803,
4672,
3536,
5631,
279,
585,
358,
279,
13051,
309,
518,
3302,
1404,
1005,
578,
309,
2097,
963,
... |
for os.linesep, newline, expected in [ ("\n", None, data_lf), ("\r\n", None, data_crlf), ("\n", "", data_lf), ("\r\n", "", data_lf), ("\n", "\n", data_lf), ("\r\n", "\n", data_lf), ("\n", "\r", data_cr), ("\r\n", "\r", data_cr), ("\n", "\r\n", data_crlf), ("\r\n", "\r\n", data_crlf), ]: buf = io.BytesIO() txt = io.Text... | save_linesep = os.linesep try: for os.linesep, newline, expected in [ ("\n", None, data_lf), ("\r\n", None, data_crlf), ("\n", "", data_lf), ("\r\n", "", data_lf), ("\n", "\n", data_lf), ("\r\n", "\n", data_lf), ("\n", "\r", data_cr), ("\r\n", "\r", data_cr), ("\n", "\r\n", data_crlf), ("\r\n", "\r\n", data_crlf), ]: b... | def testNewlinesOutput(self): import os orig_linesep = os.linesep data = "AAA\nBBB\rCCC\n" data_lf = b"AAA\nBBB\rCCC\n" data_cr = b"AAA\rBBB\rCCC\r" data_crlf = b"AAA\r\nBBB\rCCC\r\n" for os.linesep, newline, expected in [ ("\n", None, data_lf), ("\r\n", None, data_crlf), ("\n", "", data_lf), ("\r\n", "", data_lf), ("\... | ce57fa18f6face6515ab167de50f5663fa8661f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ce57fa18f6face6515ab167de50f5663fa8661f1/test_io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1908,
3548,
1447,
12,
2890,
4672,
1930,
1140,
1647,
67,
3548,
881,
273,
1140,
18,
3548,
881,
501,
273,
315,
24653,
64,
82,
9676,
38,
64,
86,
6743,
39,
64,
82,
6,
501,
67,
20850... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1908,
3548,
1447,
12,
2890,
4672,
1930,
1140,
1647,
67,
3548,
881,
273,
1140,
18,
3548,
881,
501,
273,
315,
24653,
64,
82,
9676,
38,
64,
86,
6743,
39,
64,
82,
6,
501,
67,
20850... |
def SourceServerIndexing(self, debug_file, guid, sourceFileStream): | def SourceServerIndexing(self, debug_file, guid, sourceFileStream, cvs_root): | def SourceServerIndexing(self, debug_file, guid, sourceFileStream): # Creates a .pdb.stream file in the mozilla\objdir to be used for source indexing cwd = os.getcwd() streamFilename = debug_file + ".stream" stream_output_path = os.path.join(cwd, streamFilename) # Call SourceIndex to create the .stream file result = So... | 758a6b78450ffab940532ff75cb7103acc041684 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/758a6b78450ffab940532ff75cb7103acc041684/symbolstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4998,
2081,
24465,
12,
2890,
16,
1198,
67,
768,
16,
9875,
16,
16338,
1228,
16,
276,
6904,
67,
3085,
4672,
468,
10210,
279,
263,
17414,
18,
3256,
585,
316,
326,
27513,
64,
2603,
1214,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4998,
2081,
24465,
12,
2890,
16,
1198,
67,
768,
16,
9875,
16,
16338,
1228,
16,
276,
6904,
67,
3085,
4672,
468,
10210,
279,
263,
17414,
18,
3256,
585,
316,
326,
27513,
64,
2603,
1214,
3... |
scfg.chan_umodes.friendly[old_infoindex], scfg.chan_umodes.friendly[new_infoindex])) | friendly_change)) | def setChannelUserModes(self, whoset, u, changes): # changes: dict of {mode -> on_off} if u not in self.chanusers: LOG.error("setChannelUserModes: %r not in channel." % u) return | 2f4956b1445682fd7dfe11c3b9b7247bb52b598e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8524/2f4956b1445682fd7dfe11c3b9b7247bb52b598e/bridge_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2909,
1299,
18868,
12,
2890,
16,
600,
538,
278,
16,
582,
16,
3478,
4672,
468,
3478,
30,
2065,
434,
288,
3188,
317,
603,
67,
3674,
97,
309,
582,
486,
316,
365,
18,
7472,
5577,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2909,
1299,
18868,
12,
2890,
16,
600,
538,
278,
16,
582,
16,
3478,
4672,
468,
3478,
30,
2065,
434,
288,
3188,
317,
603,
67,
3674,
97,
309,
582,
486,
316,
365,
18,
7472,
5577,
30... |
" parameter (since version > 0.5.4)", exceptions.MigrateDeprecationWarning) | " parameter (since version > 0.5.4)", MigrateDeprecationWarning) | def run(self, engine, step): """Core method of Script file. Exectues :func:`update` or :func:`downgrade` functions | adc0b9c8aec15288f3164ea7a3b8ae6f976ea6a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9035/adc0b9c8aec15288f3164ea7a3b8ae6f976ea6a2/py.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
4073,
16,
2235,
4672,
3536,
4670,
707,
434,
7739,
585,
18,
1312,
386,
3610,
294,
644,
28288,
2725,
68,
578,
294,
644,
28288,
2378,
3994,
68,
4186,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
4073,
16,
2235,
4672,
3536,
4670,
707,
434,
7739,
585,
18,
1312,
386,
3610,
294,
644,
28288,
2725,
68,
578,
294,
644,
28288,
2378,
3994,
68,
4186,
2,
-100,
-100,
-1... |
if id in self._processArr: | if self.existsProcess(id): | def getProcess(self, id): if id in self._processArr: return self._processArr[id] return None | cf0767600df8f7af46b7388a601ffcaf48e045df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/cf0767600df8f7af46b7388a601ffcaf48e045df/process_control.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18758,
12,
2890,
16,
612,
4672,
309,
365,
18,
1808,
2227,
12,
350,
4672,
327,
365,
6315,
2567,
5715,
63,
350,
65,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18758,
12,
2890,
16,
612,
4672,
309,
365,
18,
1808,
2227,
12,
350,
4672,
327,
365,
6315,
2567,
5715,
63,
350,
65,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def __init__(self, record, uuid): | def __init__(self, record, uuid): if record.has_key("managed"): self.managed = record["managed"] else: self.managed = True | def __init__(self, record, uuid): XendBase.__init__(self, uuid, record) | 447a40cf7d3ca46b6e334836c6ff4c0f6356ded1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/447a40cf7d3ca46b6e334836c6ff4c0f6356ded1/XendNetwork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1409,
16,
3822,
4672,
282,
309,
1409,
18,
5332,
67,
856,
2932,
19360,
6,
4672,
365,
18,
19360,
273,
1409,
9614,
19360,
11929,
469,
30,
365,
18,
19360,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1409,
16,
3822,
4672,
282,
309,
1409,
18,
5332,
67,
856,
2932,
19360,
6,
4672,
365,
18,
19360,
273,
1409,
9614,
19360,
11929,
469,
30,
365,
18,
19360,
27... |
more planar areas get fewer triangles, and areas with higher curvature get more triangles | more planar areas get fewer triangles, and areas with higher curvature get more triangles. | def get_colors(self, list): """ Parameters: list: an iterable collection of values which can be cast into colors -- typically an RGB triple, or an RGBA 4-tuple Returns: a list of single parameters which can be passed into the set_color method of the Triangle or SmoothTriangle objects generated by this factory. TESTS:... | cd7effbbdba0d7068b238c9eca1f885aa2fae2ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/cd7effbbdba0d7068b238c9eca1f885aa2fae2ea/tri_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9724,
12,
2890,
16,
666,
4672,
3536,
7012,
30,
666,
30,
392,
6087,
1849,
434,
924,
1492,
848,
506,
4812,
1368,
5740,
1493,
14755,
392,
11510,
14543,
16,
578,
392,
23308,
1059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9724,
12,
2890,
16,
666,
4672,
3536,
7012,
30,
666,
30,
392,
6087,
1849,
434,
924,
1492,
848,
506,
4812,
1368,
5740,
1493,
14755,
392,
11510,
14543,
16,
578,
392,
23308,
1059,
... |
del_es = [] | del_es = set() | def clear_vertex(self, vertex): """Remove all in and out-edges from the given vertex.""" del_es = [] for e in vertex.all_edges(): del_es.append(e) for e in del_es: self.remove_edge(e) | 23f6f40f8d62b7bc224f9c776903e0342daed88a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3516/23f6f40f8d62b7bc224f9c776903e0342daed88a/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
15281,
12,
2890,
16,
5253,
4672,
3536,
3288,
777,
316,
471,
596,
17,
8746,
628,
326,
864,
5253,
12123,
1464,
67,
281,
273,
444,
1435,
364,
425,
316,
5253,
18,
454,
67,
8746,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
15281,
12,
2890,
16,
5253,
4672,
3536,
3288,
777,
316,
471,
596,
17,
8746,
628,
326,
864,
5253,
12123,
1464,
67,
281,
273,
444,
1435,
364,
425,
316,
5253,
18,
454,
67,
8746,
... |
for day in week: if day == 0: s = '' else: s = `day` print _center(s, width), | print week(theweek, width), def week(theweek, width): """Returns a single week in a string (no newline).""" days = [] for day in theweek: if day == 0: s = '' else: s = '%2i' % day days.append(_center(s, width)) return ' '.join(days) | def prweek(week, width): """Print a single week (no newline).""" for day in week: if day == 0: s = '' else: s = `day` print _center(s, width), | f6f5b5ac6e37709969deec8a4d2ff70f75d105dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f6f5b5ac6e37709969deec8a4d2ff70f75d105dd/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
846,
10741,
12,
10741,
16,
1835,
4672,
3536,
5108,
279,
2202,
4860,
261,
2135,
9472,
13,
12123,
1172,
4860,
12,
451,
359,
3317,
16,
1835,
3631,
225,
1652,
4860,
12,
451,
359,
3317,
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,
846,
10741,
12,
10741,
16,
1835,
4672,
3536,
5108,
279,
2202,
4860,
261,
2135,
9472,
13,
12123,
1172,
4860,
12,
451,
359,
3317,
16,
1835,
3631,
225,
1652,
4860,
12,
451,
359,
3317,
16,
... |
RL_ACCEL = _find_rl_accel() LIBS = [] DATA_FILES = {} if not RL_ACCEL: EXT_MODULES = [] print '***************************************************' print '*No rl_accel code found, you can obtain it at *' print '*http://www.reportlab.org/downloads.html print '***************************************************' | _yesV=('yes','y','1','true') _yesnoV=_yesV+('no','n','0','false') tra=[_ for _ in sys.argv if _.lower().startswith('--rl_accel=')] if not tra: tra = True | def run(): RL_ACCEL = _find_rl_accel() LIBS = [] DATA_FILES = {} if not RL_ACCEL: EXT_MODULES = [] print '***************************************************' print '*No rl_accel code found, you can obtain it at *' print '*http://www.reportlab.org/downloads.html#_rl_accel*' print '**********************************... | 91723270cc1f40636fa05151bc278315ee66f7d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/91723270cc1f40636fa05151bc278315ee66f7d9/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
534,
48,
67,
2226,
28746,
273,
389,
4720,
67,
1321,
67,
30737,
1435,
8961,
12692,
273,
5378,
8730,
67,
12669,
273,
2618,
309,
486,
534,
48,
67,
2226,
28746,
30,
11112,
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,
1086,
13332,
534,
48,
67,
2226,
28746,
273,
389,
4720,
67,
1321,
67,
30737,
1435,
8961,
12692,
273,
5378,
8730,
67,
12669,
273,
2618,
309,
486,
534,
48,
67,
2226,
28746,
30,
11112,
67,
... |
vh -= self.title_label.content_height | self.title_label.y = vh = vh - self.title_label.content_height | def on_resize(self, vw, vh): self.viewport_width, self.viewport_height = vw, vh | 65e9f511137b086a41a8405fe6961e5ad9de5285 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/541/65e9f511137b086a41a8405fe6961e5ad9de5285/python_interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15169,
12,
2890,
16,
331,
91,
16,
331,
76,
4672,
365,
18,
28852,
67,
2819,
16,
365,
18,
28852,
67,
4210,
273,
331,
91,
16,
331,
76,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
67,
15169,
12,
2890,
16,
331,
91,
16,
331,
76,
4672,
365,
18,
28852,
67,
2819,
16,
365,
18,
28852,
67,
4210,
273,
331,
91,
16,
331,
76,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise error.TestFail("Could not log into guest %s using %s connection" % | raise error.TestFail("Could not log into guest %s using %s connection", | def wait_for_login(vm, nic_index=0, timeout=240, start=0, step=2, serial=None): """ Try logging into a VM repeatedly. Stop on success or when timeout expires. @param vm: VM object. @param nic_index: Index of NIC to access in the VM. @param timeout: Time to wait before giving up. @param serial: Whether to use a serial... | ba3983c8bc4e6d6cd24ddb6c3c240f95146dea10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/ba3983c8bc4e6d6cd24ddb6c3c240f95146dea10/kvm_test_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
67,
1884,
67,
5819,
12,
3489,
16,
11562,
67,
1615,
33,
20,
16,
2021,
33,
28784,
16,
787,
33,
20,
16,
2235,
33,
22,
16,
2734,
33,
7036,
4672,
3536,
6161,
2907,
1368,
279,
8251,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
67,
1884,
67,
5819,
12,
3489,
16,
11562,
67,
1615,
33,
20,
16,
2021,
33,
28784,
16,
787,
33,
20,
16,
2235,
33,
22,
16,
2734,
33,
7036,
4672,
3536,
6161,
2907,
1368,
279,
8251,
... |
hbox_width = 3 * self.ss_start.size_request()[0] | hbox_width = self.ss_start.size_request()[0]/2 | def slideshow_controls_hide(self): if self.show_slideshow_controls == True and self.controls_moving == False: self.show_slideshow_controls = False | 53942116103e52b783d86e1a502852fe89d4db17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/53942116103e52b783d86e1a502852fe89d4db17/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30119,
13606,
67,
24350,
67,
11248,
12,
2890,
4672,
309,
365,
18,
4500,
67,
2069,
4369,
13606,
67,
24350,
422,
1053,
471,
365,
18,
24350,
67,
81,
13767,
422,
1083,
30,
365,
18,
4500,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30119,
13606,
67,
24350,
67,
11248,
12,
2890,
4672,
309,
365,
18,
4500,
67,
2069,
4369,
13606,
67,
24350,
422,
1053,
471,
365,
18,
24350,
67,
81,
13767,
422,
1083,
30,
365,
18,
4500,
6... |
print "save login state: ", self.saveLogin.checkState() | def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | 98409d064cdfec158820194ae897a365db78af1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/98409d064cdfec158820194ae897a365db78af1a/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17688,
67,
265,
67,
5819,
12,
2890,
4672,
3536,
6020,
9585,
358,
613,
1368,
3311,
3352,
9064,
1357,
3878,
364,
1339,
3536,
628,
13238,
18,
3685,
1930,
776,
3337,
15208,
3208,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17688,
67,
265,
67,
5819,
12,
2890,
4672,
3536,
6020,
9585,
358,
613,
1368,
3311,
3352,
9064,
1357,
3878,
364,
1339,
3536,
628,
13238,
18,
3685,
1930,
776,
3337,
15208,
3208,
2,
-100,
-1... | |
print self.resort | def restart_load(self): """Method which is called upon restart.""" # Try to read sorting file if os.path.isfile('ase-sort.dat'): self.sort = [] self.resort = [] file = open('ase-sort.dat', 'r') lines = file.readlines() file.close() for line in lines: data = line.split() self.sort.append(int(data[0])) self.resort.appen... | f9da2dbb0fd50ab4cbdbd280cde252089576fbfe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/f9da2dbb0fd50ab4cbdbd280cde252089576fbfe/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7870,
67,
945,
12,
2890,
4672,
3536,
1305,
1492,
353,
2566,
12318,
7870,
12123,
225,
468,
6161,
358,
855,
9602,
585,
309,
1140,
18,
803,
18,
291,
768,
2668,
448,
17,
3804,
18,
3404,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7870,
67,
945,
12,
2890,
4672,
3536,
1305,
1492,
353,
2566,
12318,
7870,
12123,
225,
468,
6161,
358,
855,
9602,
585,
309,
1140,
18,
803,
18,
291,
768,
2668,
448,
17,
3804,
18,
3404,
11... | |
combiner = vtk.vtkImageLabelCombine() | combiner = slicer.vtkImageLabelCombine() | def mergeStructures(self,label="all"): """merge the named or all structure labels into the master label""" | bd9b1af35832d22720da4bcdbc8c00fc8828d783 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12580/bd9b1af35832d22720da4bcdbc8c00fc8828d783/HelperBox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
3823,
1823,
12,
2890,
16,
1925,
1546,
454,
6,
4672,
3536,
2702,
326,
4141,
578,
777,
3695,
3249,
1368,
326,
4171,
1433,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
3823,
1823,
12,
2890,
16,
1925,
1546,
454,
6,
4672,
3536,
2702,
326,
4141,
578,
777,
3695,
3249,
1368,
326,
4171,
1433,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
data = self.raw_data | def __SetData(self): if DEBUG: print >> sys.stderr, "ListBody: set data", time() data = self.raw_data #apply quickfilter if self.filter != '': data = filter(self.MatchFilter, data) self.parent_list.SetFilteredResults(len(data)) self.vSizer.Clear() if data: if len(self.items) == 0: #new data if len(data) > LIST_ITEM_B... | bec7425998522b9098966054b0ef584a859d3835 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/bec7425998522b9098966054b0ef584a859d3835/list_body.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
694,
751,
12,
2890,
4672,
309,
6369,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
682,
2250,
30,
444,
501,
3113,
813,
1435,
225,
468,
9010,
9549,
2188,
309,
365,
18,
2188,
480,
875,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
694,
751,
12,
2890,
4672,
309,
6369,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
682,
2250,
30,
444,
501,
3113,
813,
1435,
225,
468,
9010,
9549,
2188,
309,
365,
18,
2188,
480,
875,... | |
elif type(sel) == type(1) and 0 <= sel < count: | elif isinstance(sel, int) and 0 <= sel < count: | def eval_print_amount(self, sel, list, msg): new_list = list if type(sel) == type(""): new_list = [] for func in list: if re.search(sel, func_std_string(func)): new_list.append(func) else: count = len(list) if type(sel) == type(1.0) and 0.0 <= sel < 1.0: count = int(count * sel + .5) new_list = list[:count] elif type(s... | 401c4c60c38ffdcfe94d253cbc3c890a8ec5830d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/401c4c60c38ffdcfe94d253cbc3c890a8ec5830d/pstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
67,
1188,
67,
8949,
12,
2890,
16,
357,
16,
666,
16,
1234,
4672,
394,
67,
1098,
273,
666,
309,
618,
12,
1786,
13,
422,
618,
2932,
6,
4672,
394,
67,
1098,
273,
5378,
364,
1326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
67,
1188,
67,
8949,
12,
2890,
16,
357,
16,
666,
16,
1234,
4672,
394,
67,
1098,
273,
666,
309,
618,
12,
1786,
13,
422,
618,
2932,
6,
4672,
394,
67,
1098,
273,
5378,
364,
1326,
... |
def QpL(p, prec = 20, print_mode = None, halt = 40, check=True): | def QpL(p, prec = twenty, print_mode = None, halt = forty, check=True): | def QpL(p, prec = 20, print_mode = None, halt = 40, check=True): return Qp(p=p, prec=prec, print_mode=print_mode, halt=halt, check=check, type = 'lazy') | b92340ea12db03897b3c1888cbbf80913f1ff7f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b92340ea12db03897b3c1888cbbf80913f1ff7f8/factory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2238,
84,
48,
12,
84,
16,
13382,
273,
2339,
319,
93,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
364,
4098,
16,
866,
33,
5510,
4672,
327,
2238,
84,
12,
84,
33,
84,
16,
13382,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2238,
84,
48,
12,
84,
16,
13382,
273,
2339,
319,
93,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
364,
4098,
16,
866,
33,
5510,
4672,
327,
2238,
84,
12,
84,
33,
84,
16,
13382,
33,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.