rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
device_rp = rbdir.append("aux") | device_rp = rbdir.append("con") | def set_must_escape_dos_devices(self, rbdir): """If local edd or src edd, then must escape """ try: device_rp = rbdir.append("aux") if device_rp.lstat(): local_edd = 1 else: local_edd = 0 except (OSError): local_edd = 1 SetConnections.UpdateGlobal('must_escape_dos_devices', \ self.src_fsa.escape_dos_devices or local_ed... | 6595a3f700e61969c52942f1c17f7e6347301f76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6202/6595a3f700e61969c52942f1c17f7e6347301f76/fs_abilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11926,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
1675,
72,
578,
1705,
1675,
72,
16,
1508,
1297,
4114,
3536,
775,
30,
2346,
67,
13832,
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,
444,
67,
11926,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
1675,
72,
578,
1705,
1675,
72,
16,
1508,
1297,
4114,
3536,
775,
30,
2346,
67,
13832,
2... |
gone = {} | gone = set() | def getfilectx(f, ctx): flctx = ctx.filectx(f, filelog=flcache.get(f)) if f not in flcache: flcache[f] = flctx._filelog return flctx | e31b5f8b2ad26067c4b8dbefa987c7a75abeb5e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/e31b5f8b2ad26067c4b8dbefa987c7a75abeb5e8/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
5900,
12,
74,
16,
1103,
4672,
1183,
5900,
273,
1103,
18,
768,
5900,
12,
74,
16,
661,
12970,
33,
2242,
2493,
18,
588,
12,
74,
3719,
309,
284,
486,
316,
1183,
2493,
30,
1183,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
5900,
12,
74,
16,
1103,
4672,
1183,
5900,
273,
1103,
18,
768,
5900,
12,
74,
16,
661,
12970,
33,
2242,
2493,
18,
588,
12,
74,
3719,
309,
284,
486,
316,
1183,
2493,
30,
1183,... |
while not self.Dispatcher.Stream._document_attrs and self.Process(): pass | while not self.Dispatcher.Stream._document_attrs and self.Process(1): pass | def auth(self,user,password,resource='',sasl=1): """ Authenticate connnection and bind resource. If resource is not provided random one or library name used. """ self._User,self._Password,self._Resource=user,password,resource while not self.Dispatcher.Stream._document_attrs and self.Process(): pass if self.Dispatcher.S... | 44add4b62eee9a3c0797ce842443b9be5fe400a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/44add4b62eee9a3c0797ce842443b9be5fe400a2/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
12,
2890,
16,
1355,
16,
3664,
16,
3146,
2218,
2187,
29361,
80,
33,
21,
4672,
3536,
26644,
1487,
944,
471,
1993,
1058,
18,
971,
1058,
353,
486,
2112,
2744,
1245,
578,
5313,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
12,
2890,
16,
1355,
16,
3664,
16,
3146,
2218,
2187,
29361,
80,
33,
21,
4672,
3536,
26644,
1487,
944,
471,
1993,
1058,
18,
971,
1058,
353,
486,
2112,
2744,
1245,
578,
5313,
508,
1... |
self._code = code | if code == -1: if message == "OK": self._code = 0 else: self._code = 1 else: self._code = code | def __init__(self, code, message): self._code = code self._message = message | 2a9ad63ad94aae8bbd9ba7eb119cd3dbdbbf7795 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/637/2a9ad63ad94aae8bbd9ba7eb119cd3dbdbbf7795/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
981,
16,
883,
4672,
309,
981,
422,
300,
21,
30,
309,
883,
422,
315,
3141,
6877,
365,
6315,
710,
273,
374,
469,
30,
365,
6315,
710,
273,
404,
469,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
981,
16,
883,
4672,
309,
981,
422,
300,
21,
30,
309,
883,
422,
315,
3141,
6877,
365,
6315,
710,
273,
374,
469,
30,
365,
6315,
710,
273,
404,
469,
30,
... |
return self._numbers[strippedNumber][1]["response"] == self._RESPONSE_BLOCKED | return self._numbers[strippedNumber][2]["response"] == self._RESPONSE_BLOCKED | def is_blocked(self, strippedNumber): try: return self._numbers[strippedNumber][1]["response"] == self._RESPONSE_BLOCKED except KeyError: return False | b35288a35739ae0accf87dcb64477db14fba0840 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/b35288a35739ae0accf87dcb64477db14fba0840/addressbook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
23156,
12,
2890,
16,
13300,
1854,
4672,
775,
30,
327,
365,
6315,
13851,
63,
6406,
1845,
1854,
6362,
22,
6362,
6,
2740,
11929,
422,
365,
6315,
14508,
67,
11403,
2056,
1335,
4999,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
67,
23156,
12,
2890,
16,
13300,
1854,
4672,
775,
30,
327,
365,
6315,
13851,
63,
6406,
1845,
1854,
6362,
22,
6362,
6,
2740,
11929,
422,
365,
6315,
14508,
67,
11403,
2056,
1335,
4999,... |
self.changeId(response[1][0]) def Delete(self): self._selectFolder(self.folder_name, False) response = imap.uid("STORE", self.getId(), "+FLAGS.SILENT", "(\\Deleted)") self._check(response, "uid store") self.notTrained() self.notClassified() def Append(self): response = imap.append(self.folder_name, None, self.getId... | old_id = self.id self.id = response[1][0] if self.previous_folder is not None: response = imap.select(self.previous_folder, False) self.previous_folder = None | def Update(self): # we can't actually update the message with IMAP # so what we do is create a new message and delete the old one response = imap.append(self.folder_name, None, self.extractTime(), self.get_payload()) response = imap.select(self.folder_name, False) response = imap.uid("STORE", self.getId(), "+FLAGS.SILE... | 2457cec0eaf41f9285d252974e2f4c340ddc6ed2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/2457cec0eaf41f9285d252974e2f4c340ddc6ed2/imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
12,
2890,
4672,
468,
732,
848,
1404,
6013,
1089,
326,
883,
598,
6246,
2203,
468,
1427,
4121,
732,
741,
353,
752,
279,
394,
883,
471,
1430,
326,
1592,
1245,
766,
273,
20226,
18,
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,
2315,
12,
2890,
4672,
468,
732,
848,
1404,
6013,
1089,
326,
883,
598,
6246,
2203,
468,
1427,
4121,
732,
741,
353,
752,
279,
394,
883,
471,
1430,
326,
1592,
1245,
766,
273,
20226,
18,
6... |
b"34aa973cd4c4daa4f61eeb2bdbad27316534016f") | "34aa973cd4c4daa4f61eeb2bdbad27316534016f") | def test_case_sha1_3(self): self.check('sha1', b"a" * 1000000, b"34aa973cd4c4daa4f61eeb2bdbad27316534016f") | ee227f04e19131e99b0f8bf36653990ff5458998 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ee227f04e19131e99b0f8bf36653990ff5458998/test_hashlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
67,
7819,
21,
67,
23,
12,
2890,
4672,
365,
18,
1893,
2668,
7819,
21,
2187,
324,
6,
69,
6,
380,
15088,
16,
324,
6,
5026,
7598,
29,
9036,
4315,
24,
71,
24,
2414,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
67,
7819,
21,
67,
23,
12,
2890,
4672,
365,
18,
1893,
2668,
7819,
21,
2187,
324,
6,
69,
6,
380,
15088,
16,
324,
6,
5026,
7598,
29,
9036,
4315,
24,
71,
24,
2414,
69,
... |
result[3] = result[3].replace('\n', '<br />') | result = list(result) result[3] = result[3].replace('\n', '<br/>') result = tuple(result) | def perform_addrole(req, id_role=0, name_role='', description='put description here.', firerole_def_src=CFG_ACC_EMPTY_ROLE_DEFINITION_SRC, confirm=0): """form to add a new role with these values: name_role - name of the new role description - optional description of the role """ (auth_code, auth_message) = is_adminu... | efde511df3d8e883f6d4c22a63a0618d554f6966 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/efde511df3d8e883f6d4c22a63a0618d554f6966/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
1289,
4615,
12,
3658,
16,
612,
67,
4615,
33,
20,
16,
508,
67,
4615,
2218,
2187,
2477,
2218,
458,
2477,
2674,
1093,
16,
284,
481,
264,
790,
67,
536,
67,
4816,
33,
19727,
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,
3073,
67,
1289,
4615,
12,
3658,
16,
612,
67,
4615,
33,
20,
16,
508,
67,
4615,
2218,
2187,
2477,
2218,
458,
2477,
2674,
1093,
16,
284,
481,
264,
790,
67,
536,
67,
4816,
33,
19727,
67,... |
one_week = DateFromMx(start_date) conn = sql_helper.get_connection() try: lks = [] | lks = [] conn = sql_helper.get_connection() try: | def get_graph(self, end_date, report_days, host=None, user=None, email=None): if email or host or user: return None | 0664df1f0b17740be9637ecca86984eaa336f0dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/0664df1f0b17740be9637ecca86984eaa336f0dd/untangle_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
578,
1479,
578,
729,
30,
327,
599,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
578,
1479,
578,
729,
30,
327,
599,
2,
-10... |
self.node = node | self.__node = node | def __init__(self, node): """ Init the widget with the associated node """ self.node = node | a160f3692dd0726bbdd19c6bbf30d9f43e08bf6a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11338/a160f3692dd0726bbdd19c6bbf30d9f43e08bf6a/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
4672,
3536,
4378,
326,
3604,
598,
326,
3627,
756,
3536,
365,
18,
2159,
273,
756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
4672,
3536,
4378,
326,
3604,
598,
326,
3627,
756,
3536,
365,
18,
2159,
273,
756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
renderme.append( (mem, 0) ) | if mem.find("?") != -1: url = mem[:mem.find("?")] query = mem[mem.find("?")+1:] else: url = mem query = "" renderme.append( (url, query, 0) ) | def runStaticRenderer(self): """ This will go through all possible things in the blog and statically render everything to the "static_dir" specified in the config file. | fa1a5c3e3c669b64bdc1658041f34f72f76ad037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/fa1a5c3e3c669b64bdc1658041f34f72f76ad037/pyblosxom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
5788,
6747,
12,
2890,
4672,
3536,
1220,
903,
1960,
3059,
777,
3323,
9198,
316,
326,
10700,
471,
760,
1230,
1743,
7756,
358,
326,
315,
3845,
67,
1214,
6,
1269,
316,
326,
642,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
5788,
6747,
12,
2890,
4672,
3536,
1220,
903,
1960,
3059,
777,
3323,
9198,
316,
326,
10700,
471,
760,
1230,
1743,
7756,
358,
326,
315,
3845,
67,
1214,
6,
1269,
316,
326,
642,
585,
... |
sourcefile = docfile.sourcefile | def method(self, uri): log(3, 'Creating file_metadata table') if uri.filename > '': sourcefile = dms.sourcefile.get_by_id(uri.filename) elif uri.id > 0: doc = dms.document.get_by_id(uri.id) docfile = doc.top_file if docfile==None: return '' sourcefile = docfile.sourcefile # Read the format_name format = sourcefile.for... | a2dbe2dedcb7a388bfb9a08afe39deea1af5a493 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/a2dbe2dedcb7a388bfb9a08afe39deea1af5a493/Tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
12,
2890,
16,
2003,
4672,
613,
12,
23,
16,
296,
11092,
585,
67,
4165,
1014,
6134,
309,
2003,
18,
3459,
405,
875,
30,
1084,
768,
273,
302,
959,
18,
3168,
768,
18,
588,
67,
1637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
12,
2890,
16,
2003,
4672,
613,
12,
23,
16,
296,
11092,
585,
67,
4165,
1014,
6134,
309,
2003,
18,
3459,
405,
875,
30,
1084,
768,
273,
302,
959,
18,
3168,
768,
18,
588,
67,
1637,
... | |
self.Report.temp=float(c[1:]) | self.Report.temp = float(c[1:]) | def ParseReport(self, MetarReport=None): """Take report with raw info only and return it with in parsed values filled in. Note: This function edits the WeatherReport object you supply!""" if self.Report is None and MetarReport is None: raise EmptyReportException, \ "No report given on init and ParseReport()." elif Meta... | fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4602/fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8/pymetar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
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,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
326,
... |
ts.get_available_actions(self.req, | self._ts_get_available_actions(ts, | def test_available_actions_full_perms(self): ts = TicketSystem(self.env) self.perm.grant_permission('anonymous', 'TICKET_CREATE') self.perm.grant_permission('anonymous', 'TICKET_MODIFY') self.req.perm = perm.PermissionCache(self.env) self.assertEqual(['leave', 'resolve', 'reassign', 'accept'], ts.get_available_actions(... | 39d5b6fff4a7b5f237d73c6dfdd3aef15901572d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/39d5b6fff4a7b5f237d73c6dfdd3aef15901572d/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5699,
67,
4905,
67,
2854,
67,
15969,
12,
2890,
4672,
3742,
273,
22023,
3163,
12,
2890,
18,
3074,
13,
365,
18,
12160,
18,
16243,
67,
9827,
2668,
19070,
2187,
296,
56,
16656,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5699,
67,
4905,
67,
2854,
67,
15969,
12,
2890,
4672,
3742,
273,
22023,
3163,
12,
2890,
18,
3074,
13,
365,
18,
12160,
18,
16243,
67,
9827,
2668,
19070,
2187,
296,
56,
16656,
1... |
file = self.root.get_handler('tests/toto.txt', cache=False) | self.database.set_use_cache(False) file = self.root.get_handler('tests/toto.txt') self.database.set_use_cache(True) | def test_nocache_change(self): """Only can change cached files. """ file = self.root.get_handler('tests/toto.txt', cache=False) self.assertRaises(RuntimeError, file.set_data, u'Oh dear\n') | 64412c3a3ef6d5f0455ca5306b2803b66c14dcd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/64412c3a3ef6d5f0455ca5306b2803b66c14dcd7/test_handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
31031,
67,
3427,
12,
2890,
4672,
3536,
3386,
848,
2549,
3472,
1390,
18,
3536,
365,
18,
6231,
18,
542,
67,
1202,
67,
2493,
12,
8381,
13,
585,
273,
365,
18,
3085,
18,
588,
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,
1842,
67,
31031,
67,
3427,
12,
2890,
4672,
3536,
3386,
848,
2549,
3472,
1390,
18,
3536,
365,
18,
6231,
18,
542,
67,
1202,
67,
2493,
12,
8381,
13,
585,
273,
365,
18,
3085,
18,
588,
67... |
print "Fmin cannot be read" | print >> sys.stderr, "Fmin cannot be read" | def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: pri... | 9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
315,
5048,
11339,
1296,
980,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
6164,
326,
4659,
1387,
1368,
642,
468,
6164,
326,
4659,
1387,
1368,
642,
309,
12,
1897,
12,
9499,
18,
19485,
13,
411,
576,
4672,
1172,
315,
5048,
11339,
1296,
980,... |
self.stmt.bind(pkey, pval) | try: self.stmt.bind(pkey, pval) except _sqlite.ProgrammingError, e: if e.args[0] == "Bind parameter name unknown to the query": continue raise | def execute(self, SQL, *parms, **kwargs): # kwargs we won't attempt to bind to the query _nobind = ['start_transaction'] start_transaction = kwargs.get('start_transaction', True) SQL = SQL.strip() self._checkNotClosed("execute") startingTransaction = False | cd47f627e6eae0f1c22152e97bb5314238405adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/cd47f627e6eae0f1c22152e97bb5314238405adb/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
3063,
16,
380,
29927,
16,
2826,
4333,
4672,
468,
1205,
732,
8462,
1404,
4395,
358,
1993,
358,
326,
843,
389,
82,
947,
728,
273,
10228,
1937,
67,
7958,
3546,
787,
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,
1836,
12,
2890,
16,
3063,
16,
380,
29927,
16,
2826,
4333,
4672,
468,
1205,
732,
8462,
1404,
4395,
358,
1993,
358,
326,
843,
389,
82,
947,
728,
273,
10228,
1937,
67,
7958,
3546,
787,
67... |
raise ValueError, "mode must be 'r' or 'w'." | raise ValueError("mode must be 'r' or 'w'.") | def bz2open(cls, name, mode="r", fileobj=None, compresslevel=9): """Open bzip2 compressed tar archive name for reading or writing. Appending is not allowed. """ if len(mode) > 1 or mode not in "rw": raise ValueError, "mode must be 'r' or 'w'." | 9d576e732e0c14bd37ecb65d8001d6f596cc8566 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9d576e732e0c14bd37ecb65d8001d6f596cc8566/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24788,
22,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
324,
4450,
22,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
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,
24788,
22,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
324,
4450,
22,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
18,... |
def visit_node_list(self, node): for i in node: self.visit(i) | def visit_node_list(self, nodelist): for node in nodelist: self.visit(node) | def visit_node_list(self, node): for i in node: self.visit(i) | e37a4dd052c486dfb6625063347f1b9e37ca08c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/e37a4dd052c486dfb6625063347f1b9e37ca08c7/text_html_text_x_moin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2159,
67,
1098,
12,
2890,
16,
756,
4672,
364,
277,
316,
756,
30,
365,
18,
11658,
12,
77,
13,
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,
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,
3757,
67,
2159,
67,
1098,
12,
2890,
16,
756,
4672,
364,
277,
316,
756,
30,
365,
18,
11658,
12,
77,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "Distribution.get_command_obj(): " \ "creating '%s' command object" % command | if DEBUG: print "Distribution.get_command_obj(): " \ "creating '%s' command object" % command | def get_command_obj (self, command, create=1): """Return the command object for 'command'. Normally this object is cached on a previous call to 'get_command_obj()'; if no comand object for 'command' is in the cache, then we either create and return it (if 'create' is true) or return None. """ cmd_obj = self.command_ob... | 9cadd2edc61f0ba512f296d045122dce1146b82e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9cadd2edc61f0ba512f296d045122dce1146b82e/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3076,
67,
2603,
261,
2890,
16,
1296,
16,
752,
33,
21,
4672,
3536,
990,
326,
1296,
733,
364,
296,
3076,
10332,
225,
24773,
1230,
333,
733,
353,
3472,
603,
279,
2416,
745,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3076,
67,
2603,
261,
2890,
16,
1296,
16,
752,
33,
21,
4672,
3536,
990,
326,
1296,
733,
364,
296,
3076,
10332,
225,
24773,
1230,
333,
733,
353,
3472,
603,
279,
2416,
745,
358,
... |
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 10 for Gamma_0(10) of weight 4 with sign 0 over Rational Field Modular Symbols subspace of dimension 4 of Modular Symbols space of dimension 10 for Gamma_0(10) of weight 4 with sign 0 over Rational Field, | Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 10 for Gamma_0(10) of weight 4 with sign 0 over Rational Field, Modular Symbols subspace of dimension 4 of Modular Symbols space of dimension 10 for Gamma_0(10) of weight 4 with sign 0 over Rational Field | def degeneracy_map(self, level, t=1): """ The t-th degeneracy map from self to the space of ambient modular symbols of the given level. The level of self must be a divisor or multiple of level, and t must be a divisor of the quotient. INPUT: level -- int, the level of the codomain of the map (positive int). t -- int... | 9338b022b1de66d380690f02db3aebcd22907492 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/9338b022b1de66d380690f02db3aebcd22907492/submodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
443,
3441,
3505,
67,
1458,
12,
2890,
16,
1801,
16,
268,
33,
21,
4672,
3536,
1021,
268,
17,
451,
443,
3441,
3505,
852,
628,
365,
358,
326,
3476,
434,
13232,
1979,
681,
2490,
7963,
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,
443,
3441,
3505,
67,
1458,
12,
2890,
16,
1801,
16,
268,
33,
21,
4672,
3536,
1021,
268,
17,
451,
443,
3441,
3505,
852,
628,
365,
358,
326,
3476,
434,
13232,
1979,
681,
2490,
7963,
434,
... |
unload_mod(mod) | pyetun_mod.unload_mod(mod) | def e17_modules(): try: import pyetun_mod modules=pyetun_mod.build_modules_status() #let's list all modules and status.. print "> Available modules:" for i in modules: if modules[i] == "1": print bold_yellow("=> "),i, print " [ status: enabled,loaded ]" elif modules[i] == "0": print bold_yellow("=> ") ,i, print "... | 2fa3dd7d543e4707edab295f78b69a8e8ed810f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2281/2fa3dd7d543e4707edab295f78b69a8e8ed810f2/pyetun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
4033,
67,
6400,
13332,
775,
30,
225,
1930,
2395,
278,
318,
67,
1711,
282,
4381,
33,
2074,
278,
318,
67,
1711,
18,
3510,
67,
6400,
67,
2327,
1435,
468,
1810,
1807,
666,
777,
4381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
4033,
67,
6400,
13332,
775,
30,
225,
1930,
2395,
278,
318,
67,
1711,
282,
4381,
33,
2074,
278,
318,
67,
1711,
18,
3510,
67,
6400,
67,
2327,
1435,
468,
1810,
1807,
666,
777,
4381,
... |
pingLabel.set_ellipsize(pango.ELLIPSIZE_END) pingLabel.xalign = 0 | pingLabel.props.xalign = 0 | def label(str, xalign=0): label = gtk.Label(str) label.props.xalign = xalign return label | ec3d0522cbb2b7dc8cc1d7bcd2b4a2689401a189 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/ec3d0522cbb2b7dc8cc1d7bcd2b4a2689401a189/icLounge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1433,
12,
701,
16,
619,
7989,
33,
20,
4672,
1433,
273,
22718,
18,
2224,
12,
701,
13,
1433,
18,
9693,
18,
92,
7989,
273,
619,
7989,
327,
1433,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1433,
12,
701,
16,
619,
7989,
33,
20,
4672,
1433,
273,
22718,
18,
2224,
12,
701,
13,
1433,
18,
9693,
18,
92,
7989,
273,
619,
7989,
327,
1433,
225,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=%(yahooappid)s"></script>""" | <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=%(yahooappid)s"></script>""" % args | def generate_openlayers( self ): """ Template for openlayers.html implementing overlay of available Spherical Mercator layers. | c4960cab782eaaed0d0ec95af10325a5941f605f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/c4960cab782eaaed0d0ec95af10325a5941f605f/gdal2tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
3190,
10396,
12,
365,
262,
30,
3536,
5035,
364,
1696,
10396,
18,
2620,
19981,
9218,
434,
2319,
348,
21570,
490,
12610,
639,
6623,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
3190,
10396,
12,
365,
262,
30,
3536,
5035,
364,
1696,
10396,
18,
2620,
19981,
9218,
434,
2319,
348,
21570,
490,
12610,
639,
6623,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
raise ExtractError, "could not change modification time" | raise ExtractError("could not change modification time") | def utime(self, tarinfo, targetpath): """Set modification time of targetpath according to tarinfo. """ if not hasattr(os, 'utime'): return if sys.platform == "win32" and tarinfo.isdir(): # According to msdn.microsoft.com, it is an error (EACCES) # to use utime() on directories. return try: os.utime(targetpath, (tarinfo... | e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5218,
494,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
694,
11544,
813,
434,
1018,
803,
4888,
358,
8232,
1376,
18,
3536,
309,
486,
3859,
12,
538,
16,
296,
322,
494,
11,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5218,
494,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
694,
11544,
813,
434,
1018,
803,
4888,
358,
8232,
1376,
18,
3536,
309,
486,
3859,
12,
538,
16,
296,
322,
494,
11,
4672,
... |
if self.namespaces.has_key(uri): self.namespacemap[prefix] = self.namespaces[uri] | loweruri = uri if self._matchnamespaces.has_key(loweruri): self.namespacemap[prefix] = self._matchnamespaces[loweruri] self.namespacesInUse[self._matchnamespaces[loweruri]] = uri else: self.namespacesInUse[prefix or ''] = uri | def trackNamespace(self, prefix, uri): uri = uri.lower() if (prefix, uri) == (None, 'http://my.netscape.com/rdf/simple/0.9/') and not self.version: self.version = 'rss090' if uri == 'http://purl.org/rss/1.0/' and not self.version: self.version = 'rss10' if uri == 'http://www.w3.org/2005/atom' and not self.version: self... | 50cbe5fb44dbff087e8cca95d332bb7b7cc15747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/50cbe5fb44dbff087e8cca95d332bb7b7cc15747/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3298,
3402,
12,
2890,
16,
1633,
16,
2003,
4672,
2003,
273,
2003,
18,
8167,
1435,
309,
261,
3239,
16,
2003,
13,
422,
261,
7036,
16,
296,
2505,
2207,
4811,
18,
2758,
12476,
18,
832,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3298,
3402,
12,
2890,
16,
1633,
16,
2003,
4672,
2003,
273,
2003,
18,
8167,
1435,
309,
261,
3239,
16,
2003,
13,
422,
261,
7036,
16,
296,
2505,
2207,
4811,
18,
2758,
12476,
18,
832,
19,
... |
def xml(self,parent): | def as_xml(self,parent): | def xml(self,parent): """Create vcard-tmp XML representation of the field. | ca0c8dbc3ecd0b409f98dffb6e90f2f51152b2c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/ca0c8dbc3ecd0b409f98dffb6e90f2f51152b2c7/vcard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2902,
12,
2890,
16,
2938,
4672,
3536,
1684,
29760,
17,
5645,
3167,
4335,
434,
326,
652,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
487,
67,
2902,
12,
2890,
16,
2938,
4672,
3536,
1684,
29760,
17,
5645,
3167,
4335,
434,
326,
652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
else | else: | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 330) else quickfix.DoubleField.__init__(self, 330, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
890,
5082,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
890,
5082,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
273... |
"electric/resistor_v.png", [Node("electric/connect.png", "A", -3, -15), Node("electric/connect.png", "B", 40, 47), Node("electric/connect.png", "C", -3, 110)]) | "electric/resistor_track.png", [Node("electric/connect.png", "A", 5, -20), Node("electric/connect.png", "B", 70, 70), Node("electric/connect.png", "C", 5, 160)]) pixmap = gcompris.utils.load_pixmap("electric/resistor_wiper.png") self.wiper_item = self.comp_rootitem.add( gnome.canvas.CanvasPixbuf, pixbuf = pixmap, x = x... | def __init__(self, canvas, rootitem, x, y): super(Variator, self).__init__(canvas, rootitem, "R", "10k", "electric/resistor_v.png", [Node("electric/connect.png", "A", -3, -15), Node("electric/connect.png", "B", 40, 47), Node("electric/connect.png", "C", -3, 110)]) self.move(x, y) self.show() | a7fd9b10536f478ff50f802a77f6b1aeb3b67be0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/a7fd9b10536f478ff50f802a77f6b1aeb3b67be0/electric.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5953,
16,
1365,
1726,
16,
619,
16,
677,
4672,
2240,
12,
4205,
639,
16,
365,
2934,
972,
2738,
972,
12,
15424,
16,
1365,
1726,
16,
315,
54,
3113,
315,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5953,
16,
1365,
1726,
16,
619,
16,
677,
4672,
2240,
12,
4205,
639,
16,
365,
2934,
972,
2738,
972,
12,
15424,
16,
1365,
1726,
16,
315,
54,
3113,
315,
21... |
''' add a WorkflowVariable to State ''' | """Add a WorkflowVariable to State.""" | def addVariable(self,id,value,REQUEST=None): ''' add a WorkflowVariable to State ''' if self.var_values is None: self.var_values = PersistentMapping() self.var_values[id] = value if REQUEST is not None: return self.manage_variables(REQUEST, 'Variable added.') | 5e0af64cf3211c0187684bc75a3a6a665ab16b8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/5e0af64cf3211c0187684bc75a3a6a665ab16b8f/States.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3092,
12,
2890,
16,
350,
16,
1132,
16,
5519,
33,
7036,
4672,
3536,
986,
279,
11363,
3092,
358,
3287,
12123,
309,
365,
18,
1401,
67,
2372,
353,
599,
30,
365,
18,
1401,
67,
2372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3092,
12,
2890,
16,
350,
16,
1132,
16,
5519,
33,
7036,
4672,
3536,
986,
279,
11363,
3092,
358,
3287,
12123,
309,
365,
18,
1401,
67,
2372,
353,
599,
30,
365,
18,
1401,
67,
2372,
... |
value = metadata[name] if isinstance(value, basestring): value = sanitize_filename(value) | if isinstance(metadata[name], basestring): metadata[name] = sanitize_filename(metadata[name]) | def _script_to_filename(self, format, file_metadata, settings): metadata = Metadata() metadata.copy(file_metadata) # make sure every metadata can safely be used in a path name for name in metadata.keys(): value = metadata[name] if isinstance(value, basestring): value = sanitize_filename(value) filename = ScriptParser()... | f13b529be553aa69b0c3ffe8db7b018d957d85c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12415/f13b529be553aa69b0c3ffe8db7b018d957d85c3/file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4263,
67,
869,
67,
3459,
12,
2890,
16,
740,
16,
585,
67,
4165,
16,
1947,
4672,
1982,
273,
6912,
1435,
1982,
18,
3530,
12,
768,
67,
4165,
13,
468,
1221,
3071,
3614,
1982,
848,
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,
389,
4263,
67,
869,
67,
3459,
12,
2890,
16,
740,
16,
585,
67,
4165,
16,
1947,
4672,
1982,
273,
6912,
1435,
1982,
18,
3530,
12,
768,
67,
4165,
13,
468,
1221,
3071,
3614,
1982,
848,
15... |
self["main"]["action"].show() | afters = self.e.signal.afters while (self._actions_added < len(afters) + 1): self._actions_added = self._actions_added + 1 self._new_action(self._actions_added) for i in range(self._actions_added): self["actions"]["action " + str(i + 1)].hide() for i in range( len(afters) ): self["actions"]["action " + str(i + 1)].s... | def _update(self, emissor, data): self._header_table["name"].value = data self._header_table["name"].show_value() # self._header_table["name"].value_obj._values_dict["n"].disabled_set( # False) | d74c8bfd12ad1ac99f920cfd5afb9c6a135c8a9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/d74c8bfd12ad1ac99f920cfd5afb9c6a135c8a9c/signals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
12,
2890,
16,
801,
1054,
280,
16,
501,
4672,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
1132,
273,
501,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
4500,
67,
1132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
12,
2890,
16,
801,
1054,
280,
16,
501,
4672,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
1132,
273,
501,
365,
6315,
3374,
67,
2121,
9614,
529,
6,
8009,
4500,
67,
1132,
... |
x1 = x1 + self.dl_w | x1 = x1 + self.cellW | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
6313,
12,
2890,
4672,
365,
18,
5528,
18,
694,
24251,
12,
27226,
18,
24251,
12,
27226,
18,
7604,
26404,
12,
2890,
18,
5222,
67,
3266,
3631,
374,
3719,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
6313,
12,
2890,
4672,
365,
18,
5528,
18,
694,
24251,
12,
27226,
18,
24251,
12,
27226,
18,
7604,
26404,
12,
2890,
18,
5222,
67,
3266,
3631,
374,
3719,
2,
-100,
-100,
-100,
-100,
... |
installList = list() upgradeList = list() installableComponents = _gatherInstallableComponents() for installable in installableComponents: installed = _checkInstalledComponent(installable) if installed is None: installList.append(installable) else: installedVersion = _getComponentVersion(installed) installableVersion... | return _performInstallation(installList, upgradeList) return False | def run(): willRestart = False if _shouldRun(): print 'DTV: running QuickTime Components Installer.' _didRun() installList = list() upgradeList = list() installableComponents = _gatherInstallableComponents() for installable in installableComponents: installed = _checkInstalledComponent(installable) if installed is No... | 284e31d6c42fd1cea5c5d0d4b075afd2523abde6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/284e31d6c42fd1cea5c5d0d4b075afd2523abde6/ComponentInstaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
903,
15057,
273,
1083,
309,
389,
13139,
1997,
13332,
1172,
296,
9081,
58,
30,
3549,
19884,
950,
25286,
10284,
264,
1093,
389,
14044,
1997,
1435,
327,
389,
16092,
21790,
12,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
13332,
903,
15057,
273,
1083,
309,
389,
13139,
1997,
13332,
1172,
296,
9081,
58,
30,
3549,
19884,
950,
25286,
10284,
264,
1093,
389,
14044,
1997,
1435,
327,
389,
16092,
21790,
12,
54... |
f = open(fn) f.write('Filename: %s\n', self._filename) f.write('Timestamp: %s\n\n', self._timestamp) inslist = dict_to_ordered_tuples(qt.instruments) | f = open(fn, 'w+') f.write('Filename: %s\n' % self._filename) f.write('Timestamp: %s\n\n' % self._timestamp) inslist = dict_to_ordered_tuples(qt.instruments.get_instruments()) | def _write_settings_file(self): fn = self.get_settings_filepath() f = open(fn) f.write('Filename: %s\n', self._filename) f.write('Timestamp: %s\n\n', self._timestamp) | ff159a13593e9bbf0a057a9ca9add33979c4910c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/ff159a13593e9bbf0a057a9ca9add33979c4910c/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4272,
67,
768,
12,
2890,
4672,
2295,
273,
365,
18,
588,
67,
4272,
67,
10561,
1435,
284,
273,
1696,
12,
4293,
13,
284,
18,
2626,
2668,
5359,
30,
738,
87,
64,
82,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4272,
67,
768,
12,
2890,
4672,
2295,
273,
365,
18,
588,
67,
4272,
67,
10561,
1435,
284,
273,
1696,
12,
4293,
13,
284,
18,
2626,
2668,
5359,
30,
738,
87,
64,
82,
2187,
... |
self.__savePropertyList( 'Variable',\ | self.__savePropertyList( anEml, 'Variable', \ | def __saveProperty( self, aSystemPath='' ): # the default of aSystemPath is empty because # unlike __loadEntity() this starts with the root system | 44d8ce7a7552e0f9ae426d587cd45c327adfc1ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/44d8ce7a7552e0f9ae426d587cd45c327adfc1ea/Session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
1396,
12,
365,
16,
279,
3163,
743,
2218,
11,
262,
30,
468,
326,
805,
434,
279,
3163,
743,
353,
1008,
2724,
468,
640,
5625,
1001,
945,
1943,
1435,
333,
2542,
598,
326,
1365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
1396,
12,
365,
16,
279,
3163,
743,
2218,
11,
262,
30,
468,
326,
805,
434,
279,
3163,
743,
353,
1008,
2724,
468,
640,
5625,
1001,
945,
1943,
1435,
333,
2542,
598,
326,
1365,... |
item = wolfpack.additem(itemid) | citem = wolfpack.additem(itemid) | def createpack(char, killer, corpse, pack): if killer: luckChance = properties.luckchance(killer) else: luckChance = 0 # A pack is actually a list of lists for item in pack: packchance = item[ PACK_CHANCE ] packstackable = item[ PACK_STACKABLE ] packamount = item[ PACK_AMOUNT ] packitem = item[ PACK_ITEM ] spawn = Fa... | b5ae9023c1a6483a08f382d72eaaa4d5e8abacbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/b5ae9023c1a6483a08f382d72eaaa4d5e8abacbe/loot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2920,
12,
3001,
16,
8673,
264,
16,
1858,
84,
307,
16,
2298,
4672,
309,
8673,
264,
30,
328,
9031,
782,
1359,
273,
1790,
18,
80,
9031,
343,
1359,
12,
16418,
264,
13,
469,
30,
328,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2920,
12,
3001,
16,
8673,
264,
16,
1858,
84,
307,
16,
2298,
4672,
309,
8673,
264,
30,
328,
9031,
782,
1359,
273,
1790,
18,
80,
9031,
343,
1359,
12,
16418,
264,
13,
469,
30,
328,... |
build.py 0.9.5 feisty debian/ | build.py 0.9.5 feisty | def usage(): sys.stderr.write("""\ | 87d70da7c69c480e1ff50feb78eb695e826958ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/87d70da7c69c480e1ff50feb78eb695e826958ab/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
3660,
64,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
3660,
64,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
['Bio.Align.csupportmodule.c'] ) | ['Bio/Align/csupportmodule.c'] ), | def run(self): this_dir = os.getcwd() | a32484b19755e0306b454037c0a990fae63042be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/a32484b19755e0306b454037c0a990fae63042be/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
333,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
333,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
lib = self.iTunes.sources['library'] if 'Books' in lib.playlists.name(): lib_books = lib.playlists['Books'].file_tracks() | for source in self.iTunes.sources(): if source.kind() == appscript.k.library: lib = source if DEBUG: self.log.info(" Library source: '%s' kind: %s" % (lib.name(), lib.kind())) break else: if DEBUG: self.log.error(' Library source not found') if lib is not None: lib_books = None for pl in lib.playlists(): if pl.special... | def _get_library_books(self): ''' Populate a dict of paths from iTunes Library|Books ''' library_books = {} | 462b2e6c44751baac6b573b9a8450f4512d05312 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/462b2e6c44751baac6b573b9a8450f4512d05312/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
12083,
67,
12567,
12,
2890,
4672,
9163,
22254,
279,
2065,
434,
2953,
628,
277,
56,
27490,
18694,
96,
9084,
87,
9163,
5313,
67,
12567,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
12083,
67,
12567,
12,
2890,
4672,
9163,
22254,
279,
2065,
434,
2953,
628,
277,
56,
27490,
18694,
96,
9084,
87,
9163,
5313,
67,
12567,
273,
2618,
2,
-100,
-100,
-100,
-100,
... |
jobId = match.group(1) m={job['name'] : jobId} job.runningJob['schedulerId'] = jobId self.logging.info("Submitted job with id %s" % jobId) return m, job['taskId'], "" | arcId = match.group(1) m = {job['name']: arcId} self.logging.info("Submitted job with id %s" % arcId) return m, job['taskId'] | def submitJob(self, task, job, requirements): | 967c6f5b18dc7d99361f980dfe00163d14299919 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/967c6f5b18dc7d99361f980dfe00163d14299919/SchedulerARC.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
1562,
16,
1719,
16,
8433,
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,... | [
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,
4879,
2278,
12,
2890,
16,
1562,
16,
1719,
16,
8433,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
po_revision_date = time.strftime("%Y-%m-%d %H:%M") + tzstring() headerupdates = {"PO_Revision_Date": po_revision_date, "X_Generator": self.x_generator} if userprefs: if getattr(userprefs, "name", None) and getattr(userprefs, "email", None): headerupdates["Last_Translator"] = "%s <%s>" % (userprefs.name, userprefs.email... | if isinstance(self, po.pofile): po_revision_date = time.strftime("%Y-%m-%d %H:%M") + tzstring() headerupdates = {"PO_Revision_Date": po_revision_date, "X_Generator": self.x_generator} if userprefs: if getattr(userprefs, "name", None) and getattr(userprefs, "email", None): headerupdates["Last_Translator"] = "%s <%s>" % ... | def updateunit(self, item, newvalues, userprefs, languageprefs): """updates a translation with a new target value""" self.pofreshen() unit = self.getitem(item) | d939019ac97001b04d8557146abf64001eb633e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11388/d939019ac97001b04d8557146abf64001eb633e8/pootlefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
4873,
12,
2890,
16,
761,
16,
394,
2372,
16,
729,
1484,
2556,
16,
2653,
1484,
2556,
4672,
3536,
14703,
279,
4794,
598,
279,
394,
1018,
460,
8395,
365,
18,
84,
792,
1955,
275,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
4873,
12,
2890,
16,
761,
16,
394,
2372,
16,
729,
1484,
2556,
16,
2653,
1484,
2556,
4672,
3536,
14703,
279,
4794,
598,
279,
394,
1018,
460,
8395,
365,
18,
84,
792,
1955,
275,
1435... |
conf = config.configFromMap({'input.INPUT_TAG': inputTagName, | conf = config.configFromMap({'input.PIPELINE_NAME': pipelineName, 'input.INPUT_TAG': inputTagName, | def main(_options, args): ## # Because we are trying to mimic another program we have to do some funky work # with the options. We also want to do some kind of validation of the options # so they don't bring up a cluster and try to run it only to find out it # has errored out. args = args[1:] if not args or args ==... | 8479e40a028907ee357cc2913dda378be2bd3319 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5741/8479e40a028907ee357cc2913dda378be2bd3319/clovr_blastall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
24899,
2116,
16,
833,
4672,
7541,
468,
15191,
732,
854,
8374,
358,
20369,
335,
4042,
5402,
732,
1240,
358,
741,
2690,
284,
1683,
93,
1440,
468,
598,
326,
702,
18,
225,
1660,
2546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24899,
2116,
16,
833,
4672,
7541,
468,
15191,
732,
854,
8374,
358,
20369,
335,
4042,
5402,
732,
1240,
358,
741,
2690,
284,
1683,
93,
1440,
468,
598,
326,
702,
18,
225,
1660,
2546,
... |
text = text.replacer('== Dummy section, heading can be deleted (using [http://tools.wikimedia.de/~magnus/commons_dupes.php CommonsDupes]) ==', '') | text = text.replace('== Dummy section, heading can be deleted (using [http://tools.wikimedia.de/~magnus/commons_dupes.php CommonsDupes]) ==', '') | def read_replace_log(self): """ The actual worker method """ # FIXME: Make sqlite3 compatible insert = """INSERT INTO %s (timestamp, old_image, new_image, status, user, comment) VALUES (%%s, %%s, %%s, 'pending', %%s, %%s)""" % self.config['replacer_table'] page = wikipedia.Page(self.site, self.config['command_page'])... | b34e27d65a05b93f97184df33804d96d70a27355 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/b34e27d65a05b93f97184df33804d96d70a27355/image_replacer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2079,
67,
1330,
12,
2890,
4672,
3536,
1021,
3214,
4322,
707,
3536,
225,
468,
9852,
30,
4344,
16184,
23,
7318,
2243,
273,
3536,
11356,
12421,
738,
87,
261,
5508,
16,
1592,
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,
855,
67,
2079,
67,
1330,
12,
2890,
4672,
3536,
1021,
3214,
4322,
707,
3536,
225,
468,
9852,
30,
4344,
16184,
23,
7318,
2243,
273,
3536,
11356,
12421,
738,
87,
261,
5508,
16,
1592,
67,
... |
return urllib2.HTTPDefaultErrorHandler(self, req, fp, code, msg, hdrs) | return urllib2.HTTPDefaultErrorHandler.http_error_default(self, req, fp, code, msg, hdrs) | def http_error_default(self, req, fp, code, msg, hdrs): if code >= 400: return urllib2.HTTPDefaultErrorHandler(self, req, fp, code, msg, hdrs) else: result = urllib2.HTTPError( req.get_full_url(), code, msg, hdrs, fp) result.status = code return result | c613ebde5a9d6a96a22955e0e00b7a599313946f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11434/c613ebde5a9d6a96a22955e0e00b7a599313946f/reviewboard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
1636,
67,
1886,
12,
2890,
16,
1111,
16,
4253,
16,
981,
16,
1234,
16,
31424,
4672,
309,
981,
1545,
7409,
30,
327,
11527,
22,
18,
3693,
1868,
17729,
18,
2505,
67,
1636,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
1636,
67,
1886,
12,
2890,
16,
1111,
16,
4253,
16,
981,
16,
1234,
16,
31424,
4672,
309,
981,
1545,
7409,
30,
327,
11527,
22,
18,
3693,
1868,
17729,
18,
2505,
67,
1636,
67,
1... |
return(FileDateCache[path]); | return(FileDateCache[path]) | def filedate(path) : global FileDateCache if (FileDateCache.has_key(path)): return(FileDateCache[path]); try : date = os.path.getmtime(path) except : date = 0; FileDateCache[path] = date; return(date); | aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
712,
12,
803,
13,
294,
2552,
1387,
1626,
1649,
309,
261,
812,
1626,
1649,
18,
5332,
67,
856,
12,
803,
3719,
30,
327,
12,
812,
1626,
1649,
63,
803,
5717,
775,
294,
1509,
273,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
712,
12,
803,
13,
294,
2552,
1387,
1626,
1649,
309,
261,
812,
1626,
1649,
18,
5332,
67,
856,
12,
803,
3719,
30,
327,
12,
812,
1626,
1649,
63,
803,
5717,
775,
294,
1509,
273,
114... |
argStr += '%s=%s,' % (param, getSetter(self, param, 'get')()) | argStr += '%s=%s,' % (param, repr(getSetter(self, param, 'get')())) return '%s(%s)' % (self.__class__.__name__, argStr) """ POD (Plain Ol' Data) Like ParamObj/ParamSet, but without lock/unlock/getPriorValue and without appliers. Similar to a C++ struct, but with auto-generated setters and getters. Use POD when you w... | def __repr__(self): argStr = '' for param in self.ParamSet.getParams(): argStr += '%s=%s,' % (param, getSetter(self, param, 'get')()) return '%s(%s)' % (self.__class__.__name__, argStr) | 2b75cb9f586ca41a7ee976698e6f0dd3c73e09a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/2b75cb9f586ca41a7ee976698e6f0dd3c73e09a0/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
1501,
1585,
273,
875,
364,
579,
316,
365,
18,
786,
694,
18,
588,
1370,
13332,
1501,
1585,
1011,
1995,
87,
5095,
87,
11189,
738,
261,
891,
16,
8480,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
1501,
1585,
273,
875,
364,
579,
316,
365,
18,
786,
694,
18,
588,
1370,
13332,
1501,
1585,
1011,
1995,
87,
5095,
87,
11189,
738,
261,
891,
16,
8480,
12... |
self.issues.append( {"build" : errout} ) demoBuildStatus["buildError"] = errout else: demoBuildStatus["buildError"] = None return demoBuildStatus | self.issues.append( {target : errout} ) | def build(self, target="build", macro=None): console.info("Generating %s version of demo variant %s for library %s version %s..." %(target, self.name, self.parent.parent.name, self.parent.name) ) demoBuildStatus = {} try: rcode, output, errout = runGenerator(self.path, target, macro) except Exception, e: msg = "Error ... | c357d68eac41b75f76b1d8345cba6858f0f3b66d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/c357d68eac41b75f76b1d8345cba6858f0f3b66d/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
1018,
1546,
3510,
3113,
11522,
33,
7036,
4672,
2983,
18,
1376,
2932,
21755,
738,
87,
1177,
434,
21477,
5437,
738,
87,
364,
5313,
738,
87,
1177,
738,
87,
7070,
8975,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
1018,
1546,
3510,
3113,
11522,
33,
7036,
4672,
2983,
18,
1376,
2932,
21755,
738,
87,
1177,
434,
21477,
5437,
738,
87,
364,
5313,
738,
87,
1177,
738,
87,
7070,
8975,
... |
args = self._parse_args(children[idx+1:]) | args = self._parse_args(children[idx+1:], append_arg=append_arg) | def templateFromChildren(self, children): if children and isinstance(children[0], unicode): s = children[0].strip().lower() if u':' in s: from mwlib.templ import magic_nodes name, first = s.split(':', 1) if name in magic_nodes.registry: return self.magicNodeFromChildren(children, magic_nodes.registry[name]) if s.star... | 6a3e1581a6e269e4e17604b6cdab1a1d10589aab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/6a3e1581a6e269e4e17604b6cdab1a1d10589aab/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
1265,
4212,
12,
2890,
16,
2325,
4672,
309,
2325,
471,
1549,
12,
5906,
63,
20,
6487,
5252,
4672,
272,
273,
2325,
63,
20,
8009,
6406,
7675,
8167,
1435,
309,
582,
11,
2497,
316,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
1265,
4212,
12,
2890,
16,
2325,
4672,
309,
2325,
471,
1549,
12,
5906,
63,
20,
6487,
5252,
4672,
272,
273,
2325,
63,
20,
8009,
6406,
7675,
8167,
1435,
309,
582,
11,
2497,
316,
272... |
sum = 0 | wsum = 0 | def randdevice(): "Choose a device to damage, at random." weights = ( 105, # DSRSENS: short range scanners 10.5% 105, # DLRSENS: long range scanners 10.5% 120, # DPHASER: phasers 12.0% 120, # DPHOTON: photon torpedoes 12.0% 25, # DLIFSUP: life support 2.5% 65, # DWARPEN: warp drive 6.5% 70, # DIMPULS: impulse... | eafdd35f1af1e4e93d3609a0adbe768b562907e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/eafdd35f1af1e4e93d3609a0adbe768b562907e0/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5605,
5964,
13332,
315,
24529,
279,
2346,
358,
302,
301,
410,
16,
622,
2744,
1199,
5376,
273,
261,
23633,
16,
202,
7,
8678,
54,
26753,
30,
3025,
1048,
888,
19637,
202,
2163,
18,
25,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5605,
5964,
13332,
315,
24529,
279,
2346,
358,
302,
301,
410,
16,
622,
2744,
1199,
5376,
273,
261,
23633,
16,
202,
7,
8678,
54,
26753,
30,
3025,
1048,
888,
19637,
202,
2163,
18,
25,
9,... |
def bond_directions_are_set_and_consistent(self): | def bond_directions_are_set_and_consistent(self): | def bond_directions_are_set_and_consistent(self): #bruce 071204 """ Does self (a strand atom, base or base linker) have exactly two bond directions set, not inconsistently? """ count_plus, count_minus = 0, 0 for bond in self.bonds: dir = bond.bond_direction_from(self) if dir == 1: count_plus += 1 elif dir == -1: count_... | b3d3b4204968d9ec14db67ceed383b3f2dd65c7e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b3d3b4204968d9ec14db67ceed383b3f2dd65c7e/chem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8427,
67,
9855,
87,
67,
834,
67,
542,
67,
464,
67,
16952,
12,
2890,
4672,
468,
2848,
3965,
10934,
2138,
3028,
3536,
9637,
365,
261,
69,
16706,
3179,
16,
1026,
578,
1026,
28058,
13,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8427,
67,
9855,
87,
67,
834,
67,
542,
67,
464,
67,
16952,
12,
2890,
4672,
468,
2848,
3965,
10934,
2138,
3028,
3536,
9637,
365,
261,
69,
16706,
3179,
16,
1026,
578,
1026,
28058,
13,
124... |
if param2 != param20: | if param2 != param20 or param3!=NONE: | def put_params(): global idsec,param20 param2=str(f0.get()) + " " + str(ftx.get()) \ + " " + str(options.PttPort.get()) \ + " " + options.MyCall.get().upper() \ + " " + options.MyGrid.get().upper() \ + " " + str(options.dBm.get()) \ + " " + str(pctx[ipctx.get()]) \ + " " + str(idsec) \ + " " + options.DevinName.get() ... | 36265c23d0334dec6f72bae28b59db6d42ba6408 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2394/36265c23d0334dec6f72bae28b59db6d42ba6408/wspr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
2010,
13332,
2552,
612,
3321,
16,
891,
3462,
225,
579,
22,
33,
701,
12,
74,
20,
18,
588,
10756,
397,
315,
315,
397,
609,
12,
74,
978,
18,
588,
10756,
521,
397,
315,
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,
1378,
67,
2010,
13332,
2552,
612,
3321,
16,
891,
3462,
225,
579,
22,
33,
701,
12,
74,
20,
18,
588,
10756,
397,
315,
315,
397,
609,
12,
74,
978,
18,
588,
10756,
521,
397,
315,
315,
... |
"""Registration has been finished successfully. You may login as user %(user)s now.""", user=tag.b(req.args.get('user'))))) | "Registration has been finished successfully." " You may login as user ", tag.b(req.args.get('user')), " now."))) | def process_request(self, req): if req.authname != 'anonymous': req.redirect(req.href.prefs('account')) action = req.args.get('action') data = {'acctmgr' : { 'username' : None, 'name' : None, 'email' : None, }, } if req.method == 'POST' and action == 'create': try: _create_user(req, self.env) except TracError, e: data[... | bd21186294def4a5a19e9a6b08552aebeb2e4f00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6208/bd21186294def4a5a19e9a6b08552aebeb2e4f00/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
309,
1111,
18,
1944,
529,
480,
296,
19070,
4278,
1111,
18,
7590,
12,
3658,
18,
7547,
18,
1484,
2556,
2668,
4631,
26112,
1301,
273,
1111,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
309,
1111,
18,
1944,
529,
480,
296,
19070,
4278,
1111,
18,
7590,
12,
3658,
18,
7547,
18,
1484,
2556,
2668,
4631,
26112,
1301,
273,
1111,
18,
1... |
orderAttribute = sortList[0][0]+":"+sortList[0][1] | orderAttribute = sortList[0][0] + ":" + sortList[0][1] | def export_getRequestPageSummaryWeb(self, selectDict, sortList, startItem, maxItems): """ Get the summary of the request information for a given page in the request monitor in a generic format """ resultDict = {} last_update = None if selectDict.has_key('LastUpdate'): last_update = selectDict['LastUpdate'] del selectDi... | fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22/TransferDBMonitoringHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
691,
1964,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
326,
590,
1779,
364,
279,
864,
1363,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
691,
1964,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
326,
590,
1779,
364,
279,
864,
1363,
316,
... |
act_ids = [ act_id.id for act_id in campaign.activity_ids] act_ids = self.pool.get('marketing.campaign.activity').search(cr, uid, [('id', 'in', act_ids), ('start', '=', True)]) | actvity_ids = [ act_id.id for act_id in campaign.activity_ids] act_obj = self.pool.get('marketing.campaign.activity') act_ids = act_obj.search(cr, uid, [('id', 'in', actvity_ids), ('start', '=', True)]) | def state_running_set(self, cr, uid, ids, *args): campaign = self.browse(cr, uid, ids[0]) if not campaign.activity_ids : raise osv.except_osv("Error", "There is no activitity in the campaign") act_ids = [ act_id.id for act_id in campaign.activity_ids] act_ids = self.pool.get('marketing.campaign.activity').search(cr, u... | fe0030c8f5a3e1c3f2b5ccc0a600111746ef3da7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fe0030c8f5a3e1c3f2b5ccc0a600111746ef3da7/marketing_campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
8704,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
8965,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
309,
486,
8965,
18,
9653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
8704,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
8965,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
309,
486,
8965,
18,
9653,
... |
column.set_fixed_width(max(int(self.columnwidths[i-1]), 10)) | column.set_fixed_width(max(self.columnwidths[i-1], 10)) | def parse_currentformat(self): # Initialize current playlist data and widget self.columnformat = self.currentformat.split("|") self.currentdata = gtk.ListStore(*([str] + [int] + [str] * len(self.columnformat))) self.current.set_model(self.currentdata) cellrenderer = gtk.CellRendererText() cellrenderer.set_property("ell... | d91a884674c1cd7a4c5eb0a1177f9d1f4bed044b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/d91a884674c1cd7a4c5eb0a1177f9d1f4bed044b/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2972,
2139,
12,
2890,
4672,
468,
9190,
783,
16428,
501,
471,
3604,
365,
18,
2827,
2139,
273,
365,
18,
2972,
2139,
18,
4939,
2932,
96,
7923,
365,
18,
2972,
892,
273,
22718,
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,
1109,
67,
2972,
2139,
12,
2890,
4672,
468,
9190,
783,
16428,
501,
471,
3604,
365,
18,
2827,
2139,
273,
365,
18,
2972,
2139,
18,
4939,
2932,
96,
7923,
365,
18,
2972,
892,
273,
22718,
18... |
} for bundle in bundle_stream.bundles.all()] | } for bundle in bundle_stream.bundles.all().order_by("uploaded_on")] | def bundles(self, pathname): """ Name ---- `bundles` (`pathname`) | c8f114f8c2cae6fd70409410023b8732b7eaab75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/c8f114f8c2cae6fd70409410023b8732b7eaab75/xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11408,
12,
2890,
16,
9806,
4672,
3536,
1770,
27927,
1375,
22773,
68,
21863,
28336,
24065,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11408,
12,
2890,
16,
9806,
4672,
3536,
1770,
27927,
1375,
22773,
68,
21863,
28336,
24065,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._priorValuesStack.push({}) | self._priorValuesStack.append({}) | def _handleLockParams(self): # this will store the names of the parameters that are modified self._paramsSet = {} # this will store the values of modified params (from prior to # the lock). self._priorValuesStack.push({}) | 49f58bbb90981fe9afc86daca24eef38c99013ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/49f58bbb90981fe9afc86daca24eef38c99013ff/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
2531,
1370,
12,
2890,
4672,
468,
333,
903,
1707,
326,
1257,
434,
326,
1472,
716,
854,
4358,
365,
6315,
2010,
694,
273,
2618,
468,
333,
903,
1707,
326,
924,
434,
4358,
859,
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,
4110,
2531,
1370,
12,
2890,
4672,
468,
333,
903,
1707,
326,
1257,
434,
326,
1472,
716,
854,
4358,
365,
6315,
2010,
694,
273,
2618,
468,
333,
903,
1707,
326,
924,
434,
4358,
859,
2... |
con_size = string.join(os.popen("stty size").readlines()) arr_con_size = string.split(con_size," ") size = string.atoi(arr_con_size[1])-13 size = size+4 a = string.join(os.popen("echo -n \033[$(("+str(size)+"))G && echo -n [EXCLUDED] ")) self.output.startup(a, "green", "yes") | try: con_size = string.join(os.popen("stty size 2>/dev/null").readlines()) arr_con_size = string.split(con_size," ") size = string.atoi(arr_con_size[1])-13 size = size+4 a = string.join(os.popen("echo -n \033[$(("+str(size)+"))G && echo -n [EXCLUDED] ")) self.output.startup(a, "green", "yes") except IndexError: sel... | def buildUp(self,protectedif,fwconfigpath, verbose): self.verbose = verbose | d0cedd66a8823f4fac95a2b6ea3d53b4fa6c37f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2647/d0cedd66a8823f4fac95a2b6ea3d53b4fa6c37f7/abyle_firewall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1211,
12,
2890,
16,
1117,
430,
16,
11966,
1425,
803,
16,
3988,
4672,
365,
18,
11369,
273,
3988,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
1211,
12,
2890,
16,
1117,
430,
16,
11966,
1425,
803,
16,
3988,
4672,
365,
18,
11369,
273,
3988,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
force = False | force = True | def Parse(self, basefile, verbose=False): try: if verbose: print "Setting verbosity" log.setLevel(logging.DEBUG) | 6f42e2287d3ae1b54dd9b4fee1807bc2b33c8757 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4027/6f42e2287d3ae1b54dd9b4fee1807bc2b33c8757/SFS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
12,
2890,
16,
1026,
768,
16,
3988,
33,
8381,
4672,
775,
30,
309,
3988,
30,
1172,
315,
5568,
11561,
6,
613,
18,
542,
2355,
12,
11167,
18,
9394,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
12,
2890,
16,
1026,
768,
16,
3988,
33,
8381,
4672,
775,
30,
309,
3988,
30,
1172,
315,
5568,
11561,
6,
613,
18,
542,
2355,
12,
11167,
18,
9394,
13,
2,
-100,
-100,
-100,
-100,
-1... |
label = _(category) or _("Uncategorized") | if category == "": label = _("Uncategorized") else: label = _(category) | def BuildTable(self, viewPort): pluginWindow = gtk.VBox() pluginWindow.set_border_width(10) viewPort.add(pluginWindow) | c0c759615fa34bb7c940a427dd587f1f56f3307e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7183/c0c759615fa34bb7c940a427dd587f1f56f3307e/Window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
1388,
12,
2890,
16,
1476,
2617,
4672,
1909,
3829,
273,
22718,
18,
58,
3514,
1435,
1909,
3829,
18,
542,
67,
8815,
67,
2819,
12,
2163,
13,
1476,
2617,
18,
1289,
12,
4094,
3829,
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,
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,
3998,
1388,
12,
2890,
16,
1476,
2617,
4672,
1909,
3829,
273,
22718,
18,
58,
3514,
1435,
1909,
3829,
18,
542,
67,
8815,
67,
2819,
12,
2163,
13,
1476,
2617,
18,
1289,
12,
4094,
3829,
13,... |
self.db[newname] = defined_bugtrackers[trackertype](name,group.url(),group.description()) registerBugtracker(newname, group.url(), group.description(), group.trackertype()) | d = group.description() if newdesc: d = newdesc self.db[newname] = defined_bugtrackers[group.trackertype()](name,group.url(),d) registerBugtracker(newname, group.url(), d, group.trackertype()) | def rename(self, irc, msg, args, oldname, newname): """<oldname> <newname> | 94c2d4d21db1453bb737d293d825c11761514569 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3104/94c2d4d21db1453bb737d293d825c11761514569/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2890,
16,
277,
1310,
16,
1234,
16,
833,
16,
1592,
529,
16,
26722,
4672,
3536,
32,
1673,
529,
34,
411,
2704,
529,
34,
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,
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,
6472,
12,
2890,
16,
277,
1310,
16,
1234,
16,
833,
16,
1592,
529,
16,
26722,
4672,
3536,
32,
1673,
529,
34,
411,
2704,
529,
34,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(args) < 2: | if len( args ) < 2: | def usage(): print 'Usage: %s <DIRAC site name> <COMMENT>' %(Script.scriptName) print 'Note: emails should only be disabled for bulk operations.' DIRAC.exit(2) | 43bc1428e2c48300c638de896bbd95b498bb1274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/43bc1428e2c48300c638de896bbd95b498bb1274/dirac-admin-allow-site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
4537,
2226,
2834,
508,
34,
411,
12200,
1870,
8975,
3651,
18,
4263,
461,
13,
1172,
296,
8067,
30,
14255,
1410,
1338,
506,
5673,
364,
8280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
4537,
2226,
2834,
508,
34,
411,
12200,
1870,
8975,
3651,
18,
4263,
461,
13,
1172,
296,
8067,
30,
14255,
1410,
1338,
506,
5673,
364,
8280,
... |
self.log_event(event) | logger.log_event(event) | def possible_deadlock(self, event): event.continueStatus = win32.DBG_EXCEPTION_HANDLED self.log_event(event) | 6d6079c7bcc0ba519b666a5d46e251aede9525d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/6d6079c7bcc0ba519b666a5d46e251aede9525d0/sehtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3323,
67,
22097,
739,
12,
2890,
16,
871,
4672,
871,
18,
17143,
1482,
273,
5657,
1578,
18,
2290,
43,
67,
12658,
67,
12346,
6687,
365,
18,
1330,
67,
2575,
12,
2575,
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,
3323,
67,
22097,
739,
12,
2890,
16,
871,
4672,
871,
18,
17143,
1482,
273,
5657,
1578,
18,
2290,
43,
67,
12658,
67,
12346,
6687,
365,
18,
1330,
67,
2575,
12,
2575,
13,
2,
-100,
-100,
... |
print line, | print line.rstrip() + '\n', | def _print_line(line, flush=True): # Printing to a text file (including stdout) on Windows always winds up # using \r\n automatically. On buildbot, this winds up being read by a master # running on Linux, so this is a pain. Unfortunately, it doesn't matter what # we do here, so just leave this comment for future refe... | ad9629d5b34f1f0e3552a20eab4d434a300764e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/ad9629d5b34f1f0e3552a20eab4d434a300764e4/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
67,
1369,
12,
1369,
16,
3663,
33,
5510,
4672,
468,
3038,
310,
358,
279,
977,
585,
261,
31348,
3909,
13,
603,
8202,
3712,
341,
15882,
731,
468,
1450,
521,
86,
64,
82,
6635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1188,
67,
1369,
12,
1369,
16,
3663,
33,
5510,
4672,
468,
3038,
310,
358,
279,
977,
585,
261,
31348,
3909,
13,
603,
8202,
3712,
341,
15882,
731,
468,
1450,
521,
86,
64,
82,
6635,
... |
value = str (date.Interval(value)) | value = str(date.Interval(value)) | def import_journals(self, entries): '''Import a class's journal. | ae887a43e31767db8cf7936fe341b8b97ee864ef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/ae887a43e31767db8cf7936fe341b8b97ee864ef/back_metakit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
78,
6561,
1031,
12,
2890,
16,
3222,
4672,
9163,
5010,
279,
667,
1807,
13001,
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,... | [
1,
1,
1,
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,
1930,
67,
78,
6561,
1031,
12,
2890,
16,
3222,
4672,
9163,
5010,
279,
667,
1807,
13001,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
testformat("One million is %i", 1000000, grouping=1, output='One million is 1,000,000', | testformat("One million is %i", 1000000, grouping=1, output='One million is 1%s000%s000' % (sep, sep), | def testformat(formatstr, value, grouping = 0, output=None, func=locale.format): if verbose: if output: print "%s %% %s =? %s ..." %\ (repr(formatstr), repr(value), repr(output)), else: print "%s %% %s works? ..." % (repr(formatstr), repr(value)), result = func(formatstr, value, grouping = grouping) if output and resul... | 54f680e9b976137c901bc36e6f07ec2a312dbe3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/54f680e9b976137c901bc36e6f07ec2a312dbe3b/test_locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2139,
12,
2139,
701,
16,
460,
16,
12116,
273,
374,
16,
876,
33,
7036,
16,
1326,
33,
6339,
18,
2139,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2139,
12,
2139,
701,
16,
460,
16,
12116,
273,
374,
16,
876,
33,
7036,
16,
1326,
33,
6339,
18,
2139,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
... |
self.varerInfoNavn.setText(vare.navn) self.varerInfoDetaljer.setText(vare.detaljer) self.varerInfoEnhet.setCurrentText(vare.enhet) | self.varerInfoNavn.setText(unicode(vare.navn)) self.varerInfoDetaljer.setText(unicode(vare.detaljer)) self.varerInfoEnhet.setCurrentText(unicode(vare.enhet)) | def lastVare(self, vare = None): self.denne_vare = vare enheter = self.faktura.hentEgenskapVerdier("Vare", "enhet") self.varerInfoEnhet.clear() self.varerInfoEnhet.insertStrList(enheter) if vare is not None: self.varerInfoNavn.setText(vare.navn) self.varerInfoDetaljer.setText(vare.detaljer) self.varerInfoEnhet.setCurre... | 0d20c7600d15b2f1f394b6347624370a18f81de2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3611/0d20c7600d15b2f1f394b6347624370a18f81de2/faktura.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1142,
58,
834,
12,
2890,
16,
331,
834,
273,
599,
4672,
365,
18,
13002,
4644,
67,
90,
834,
273,
331,
834,
570,
76,
847,
273,
365,
18,
507,
8629,
21401,
18,
76,
319,
41,
23730,
79,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1142,
58,
834,
12,
2890,
16,
331,
834,
273,
599,
4672,
365,
18,
13002,
4644,
67,
90,
834,
273,
331,
834,
570,
76,
847,
273,
365,
18,
507,
8629,
21401,
18,
76,
319,
41,
23730,
79,
4... |
document.body[i:i+3] = subst | document.body[i:i + 3] = subst | def revert_hspace_glue_lengths(document): " Revert HSpace glue lengths to ERT " i = 0 while True: i = find_token(document.body, "\\begin_inset space \\hspace", i) if i == -1: break protected = (document.body[i].find("\\hspace*{}") != -1) length = get_value(document.body, '\\length', i+1) if length == '': document.warni... | bcd8b9a1f1241c461beb5db1d5a69424a9a25950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bcd8b9a1f1241c461beb5db1d5a69424a9a25950/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
76,
2981,
67,
7043,
344,
67,
14907,
12,
5457,
4672,
315,
868,
1097,
670,
3819,
17960,
10917,
358,
4232,
56,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
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,
15226,
67,
76,
2981,
67,
7043,
344,
67,
14907,
12,
5457,
4672,
315,
868,
1097,
670,
3819,
17960,
10917,
358,
4232,
56,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,... |
print "file %s contains %d trailing spaces, or %0.2f%% wastage" % (filename, badChars, 100.0*badChars/initSize) | self.output.write("file %s contains %d trailing spaces, or %0.2f%% wastage" % (filename, badChars, 100.0*badChars/initSize)) | def checkFileForTrailingSpaces(self, filename): txt = open(filename, 'r').read() initSize = len(txt) badLines = 0 badChars = 0 for line in string.split(txt, '\n'): stripped = string.rstrip(line) spaces = len(line) - len(stripped) # OK, so they might be trailing tabs, who cares? if spaces: badLines = badLines + 1 badCh... | 0ede53a71e6045f9dc344ec382ef46d1239b6762 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0ede53a71e6045f9dc344ec382ef46d1239b6762/test_source_chars.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
812,
1290,
16808,
12077,
12,
2890,
16,
1544,
4672,
6463,
273,
1696,
12,
3459,
16,
296,
86,
16063,
896,
1435,
1208,
1225,
273,
562,
12,
5830,
13,
5570,
5763,
273,
374,
5570,
7803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
812,
1290,
16808,
12077,
12,
2890,
16,
1544,
4672,
6463,
273,
1696,
12,
3459,
16,
296,
86,
16063,
896,
1435,
1208,
1225,
273,
562,
12,
5830,
13,
5570,
5763,
273,
374,
5570,
7803,
... |
last_mod = int(self._p_mtime) | last_mod = long(self._p_mtime) | def index_html(self, REQUEST, RESPONSE): """ The default view of the contents of a File or Image. | e4741a0305b9212c6acc3b92f7f09b498843ce3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/e4741a0305b9212c6acc3b92f7f09b498843ce3a/Image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
67,
2620,
12,
2890,
16,
12492,
16,
20645,
4672,
3536,
1021,
805,
1476,
434,
326,
2939,
434,
279,
1387,
578,
3421,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
67,
2620,
12,
2890,
16,
12492,
16,
20645,
4672,
3536,
1021,
805,
1476,
434,
326,
2939,
434,
279,
1387,
578,
3421,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
col2 = getattr(self.table.c, col_name) self.assertEquals(col2, col) | self.assert_(self.table.c.data.type.length, 40) col2 = self.table.c.data | def assert_numcols(num_of_expected_cols): # number of cols should be correct in table object and in database self.refresh_table(self.table_name) result = len(self.table.c) self.assertEquals(result, num_of_expected_cols), if col_k.get('primary_key', None): # new primary key: check its length too result = len(self.table... | 7ea63ad9433395d5b2d90d493447a3c873cda0aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9035/7ea63ad9433395d5b2d90d493447a3c873cda0aa/test_changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
2107,
6842,
12,
2107,
67,
792,
67,
3825,
67,
6842,
4672,
468,
1300,
434,
5347,
1410,
506,
3434,
316,
1014,
733,
471,
316,
2063,
365,
18,
9144,
67,
2121,
12,
2890,
18,
2121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
2107,
6842,
12,
2107,
67,
792,
67,
3825,
67,
6842,
4672,
468,
1300,
434,
5347,
1410,
506,
3434,
316,
1014,
733,
471,
316,
2063,
365,
18,
9144,
67,
2121,
12,
2890,
18,
2121,
... |
lastNode.parent.childNodes.remove(lastNode) | lastNode.parent.removeChild(lastNode) | def endTagFormatting(self, name): """The much-feared adoption agency algorithm""" # XXX I don't like while True + break... too much # possibility of infinite loops while True: # Step 1 paragraph 1 afeElement = self.parser.elementInActiveFormattingElements(name) if not afeElement or (afeElement in self.parser.openElemen... | 4a9afa5240a765a75eb29592887545baf51a5215 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/4a9afa5240a765a75eb29592887545baf51a5215/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,... |
def fileno(self): return id(self) | def fileno(self): return id(self) | def fileno(self): # XXX Caller is not expected to expect to do anything useful with this. return id(self) | 52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24256,
12,
2890,
4672,
468,
11329,
20646,
353,
486,
2665,
358,
4489,
358,
741,
6967,
5301,
598,
333,
18,
327,
612,
12,
2890,
13,
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,
24256,
12,
2890,
4672,
468,
11329,
20646,
353,
486,
2665,
358,
4489,
358,
741,
6967,
5301,
598,
333,
18,
327,
612,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
alltests.addTest(module.suite()) | alltests.addTest(module.test_suite()) | def suite(): test_modules = [ 'test_associate', 'test_basics', 'test_compat', 'test_dbobj', 'test_dbshelve', 'test_dbtables', 'test_env_close', 'test_get_none', 'test_join', 'test_lock', 'test_misc', 'test_queue', 'test_recno', 'test_thread', ] alltests = unittest.TestSuite() for name in test_modules: module = __impor... | 674b209130767c8ca411b64540f69a7f20589881 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/674b209130767c8ca411b64540f69a7f20589881/test_all.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
1842,
67,
6400,
273,
306,
296,
3813,
67,
11577,
2187,
296,
3813,
67,
9157,
2102,
2187,
296,
3813,
67,
16239,
2187,
296,
3813,
67,
72,
1075,
441,
2187,
296,
3813,
67,
1966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
1842,
67,
6400,
273,
306,
296,
3813,
67,
11577,
2187,
296,
3813,
67,
9157,
2102,
2187,
296,
3813,
67,
16239,
2187,
296,
3813,
67,
72,
1075,
441,
2187,
296,
3813,
67,
1966,
... |
print "Generating dependencies and checking file dates..." sys.stdout.flush() | if (SLAVEBUILD==0): print "Generating dependencies..." sys.stdout.flush() | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | 8f86705296f973090fc3f2bedce1bf0e6e54e9f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/8f86705296f973090fc3f2bedce1bf0e6e54e9f6/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
a = 3 | a = 1 | def check_exceptions(self): a = 1 code = """ if (a < 2) Py::ValueError("the variable 'a' should not be less than 2"); return_val = Py::new_reference_to(Py::Int(a+1)); """ result = inline_tools.inline(code,['a']) assert(result == 2) try: a = 3 result = inline_tools.inline(code,['a']) assert(1) # should've thrown a Valu... | 52a0610b4cd42a5e278b08340fcf375e090a4e32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/52a0610b4cd42a5e278b08340fcf375e090a4e32/test_inline_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11855,
12,
2890,
4672,
279,
273,
404,
981,
273,
3536,
309,
261,
69,
411,
576,
13,
4707,
2866,
23610,
2932,
5787,
2190,
296,
69,
11,
1410,
486,
506,
5242,
2353,
576,
8863,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11855,
12,
2890,
4672,
279,
273,
404,
981,
273,
3536,
309,
261,
69,
411,
576,
13,
4707,
2866,
23610,
2932,
5787,
2190,
296,
69,
11,
1410,
486,
506,
5242,
2353,
576,
8863,
327,... |
this = apply(_quickfix.new_MassStatusReqType, args) | this = _quickfix.new_MassStatusReqType(*args) | def __init__(self, *args): this = apply(_quickfix.new_MassStatusReqType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
18060,
1482,
6113,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
18060,
1482,
6113,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... |
for y in range(0,r): | for y in range(0, r): | def shift_rows_matrix(self): """ Return the ShiftRows matrix. | 26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4654,
67,
3870,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
21444,
4300,
3148,
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,
4654,
67,
3870,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
21444,
4300,
3148,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return 0 | return 0; | def CalculatePi(j_species,sigma): log_pi=CalculateLogPi(j_species,sigma) alpha = sigma[3] mu = sigma[4] if (log_pi == -1): return 0 return(pow(alpha/mu,log_pi)) | 7faf202b1836f91fc50c86fe3b92f5a5d79dc08b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7945/7faf202b1836f91fc50c86fe3b92f5a5d79dc08b/cjumpchain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
16539,
12,
78,
67,
22657,
16,
13201,
4672,
613,
67,
7259,
33,
8695,
1343,
16539,
12,
78,
67,
22657,
16,
13201,
13,
4190,
273,
7299,
63,
23,
65,
4129,
273,
7299,
63,
24,
65,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
16539,
12,
78,
67,
22657,
16,
13201,
4672,
613,
67,
7259,
33,
8695,
1343,
16539,
12,
78,
67,
22657,
16,
13201,
13,
4190,
273,
7299,
63,
23,
65,
4129,
273,
7299,
63,
24,
65,
309... |
'de': u'Uncyclopedia', | def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia' | 5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
551,
93,
7550,
1845,
1155,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
551,
93,
7550,
1845,
1155,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
def __init__(self, app, buildIcons): | def __init__(self): | def __init__(self, app, buildIcons): self.conf = Config() self.projects_populator = ProjectsPopulator(self.conf) self.app_ui = AppUi(self.conf, buildIcons) self.app_notification = AppNotification() self.projects_populator.add_listener(self.app_notification) self.projects_populator.add_listener(self.app_ui) self.auto_po... | 05fb9698dfc5ec3bc8df3df7701acc660036aa87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/633/05fb9698dfc5ec3bc8df3df7701acc660036aa87/buildnotify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
3923,
273,
1903,
1435,
365,
18,
13582,
67,
5120,
11775,
273,
30491,
7049,
11775,
12,
2890,
18,
3923,
13,
365,
18,
2910,
67,
4881,
273,
4677,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
365,
18,
3923,
273,
1903,
1435,
365,
18,
13582,
67,
5120,
11775,
273,
30491,
7049,
11775,
12,
2890,
18,
3923,
13,
365,
18,
2910,
67,
4881,
273,
4677,
1... |
the last transaction whos identifier is less than or equal to start. | the last transaction whose identifier is less than or equal to stop. | def iterator(start=None, stop=None): """Return an IStorageTransactionInformation iterator. | 82d17ef419969f91185b0145c47944447a76397d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10048/82d17ef419969f91185b0145c47944447a76397d/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
1937,
33,
7036,
16,
2132,
33,
7036,
4672,
3536,
990,
392,
467,
3245,
3342,
5369,
2775,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2775,
12,
1937,
33,
7036,
16,
2132,
33,
7036,
4672,
3536,
990,
392,
467,
3245,
3342,
5369,
2775,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
supply app and spit out the data in a format that can | nigeria app and spit out the data in a format that can | def testGenerateNetFixture(self): """ This isn't actually a test. It just takes advantage of the test harness to spam a bunch of messages to the supply app and spit out the data in a format that can be sucked into a fixture """ # this is the number of net reports that will be generated net_count = 0 "8005551213 > l... | 4187879aa9633d2d3d7ee09827f3a0611b669ec6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/4187879aa9633d2d3d7ee09827f3a0611b669ec6/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4625,
7308,
26392,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
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,
1842,
4625,
7308,
26392,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
434,
... |
test.add_test(length((0.0,))) test.add_test(length((0.0, 0.0, 0.0))) test.add_test(length((0.0, 0.0, 0.0, 0.0))) test.add_test(length((0.0, 0.0, 0.0, 0.0))) | def sub(a, b): result = [] for i in range(len(a)): result.append(a[i] - b[i]) return result | def insert_into(test): test.add_test(length((1.0, 2.0, 3.0))) test.add_test(length((1.0, 2.0, -3.0))) test.add_test(length((1.0, -2.0, -3.0))) test.add_test(length((-1.0, -2.0, -3.0))) test.add_test(length((-1.0, -2.0, 3.0))) test.add_test(length((-1.0, 2.0, 3.0))) test.add_test(length((0.2, 2.7, 3.23))) test.add_test... | 386bde21d5bec4164a9d7b4a5d57f3021e9adfef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1804/386bde21d5bec4164a9d7b4a5d57f3021e9adfef/length.cpp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
18591,
12,
3813,
4672,
1842,
18,
1289,
67,
3813,
12,
2469,
12443,
21,
18,
20,
16,
576,
18,
20,
16,
890,
18,
20,
20349,
1842,
18,
1289,
67,
3813,
12,
2469,
12443,
21,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
18591,
12,
3813,
4672,
1842,
18,
1289,
67,
3813,
12,
2469,
12443,
21,
18,
20,
16,
576,
18,
20,
16,
890,
18,
20,
20349,
1842,
18,
1289,
67,
3813,
12,
2469,
12443,
21,
18,
... |
self.compiler = new_compiler (compiler=self.compiler, | self.compiler = new_compiler ( compiler="msvc", | def run (self): | f46a688e847dfc6a560ada112c1b3eec1fb74c4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f46a688e847dfc6a560ada112c1b3eec1fb74c4d/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(f.value.args) > 1: | if len(f.value.args) > 0: | def _eb(self, f): log.msg(f.printTraceback()) if isinstance(f.value, util.DirtyReactorWarning): # This will eventually become an error, but for now # we delegate the responsibility of warning the user # to the reporter so that we can test for this self.getReporter().cleanupErrors(f) elif f.check(unittest.FAILING_EXCEPT... | f94c8a1744cc8711e824f184b3f21c2f44196353 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f94c8a1744cc8711e824f184b3f21c2f44196353/runner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24008,
12,
2890,
16,
284,
4672,
613,
18,
3576,
12,
74,
18,
1188,
3448,
823,
10756,
309,
1549,
12,
74,
18,
1132,
16,
1709,
18,
10785,
426,
3362,
6210,
4672,
468,
1220,
903,
18011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24008,
12,
2890,
16,
284,
4672,
613,
18,
3576,
12,
74,
18,
1188,
3448,
823,
10756,
309,
1549,
12,
74,
18,
1132,
16,
1709,
18,
10785,
426,
3362,
6210,
4672,
468,
1220,
903,
18011,
... |
len(anser)) | len(answer)) | def _check_domain_controller(self, reply, role): """Check that `server' is a domain controller for `domain' and has role `role'. """ self.m_logger.debug('Checking controller %s for domain %s role %s' % (reply.q_hostname, reply.q_domain, role)) answer = self._dns_query(reply.q_hostname, 'A') if len(answer) != 1: self.m_... | 44a52705f6d67bb90fd12c12111e9432dd6ed08a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11970/44a52705f6d67bb90fd12c12111e9432dd6ed08a/locate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
4308,
67,
5723,
12,
2890,
16,
4332,
16,
2478,
4672,
3536,
1564,
716,
1375,
3567,
11,
353,
279,
2461,
2596,
364,
1375,
4308,
11,
471,
711,
2478,
1375,
4615,
10332,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
4308,
67,
5723,
12,
2890,
16,
4332,
16,
2478,
4672,
3536,
1564,
716,
1375,
3567,
11,
353,
279,
2461,
2596,
364,
1375,
4308,
11,
471,
711,
2478,
1375,
4615,
10332,
3536,
... |
fsize = struct.unpack('I', fid.read(4))[0] + 8 | if str1 == 'RIFX': _big_endian = True elif str1 != 'RIFF': raise ValueError, "Not a WAV file." if _big_endian: fmt = '>I' else: fmt = '<I' fsize = struct.unpack(fmt, fid.read(4))[0] + 8 | def _read_riff_chunk(fid): str1 = fid.read(4) fsize = struct.unpack('I', fid.read(4))[0] + 8 str2 = fid.read(4) if (str1 != 'RIFF' or str2 != 'WAVE'): raise ValueError, "Not a WAV file." return fsize | c2ac1b60fe07fe1621f2a8c7ec72a47cc7a8dc39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/c2ac1b60fe07fe1621f2a8c7ec72a47cc7a8dc39/wavfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
86,
3048,
67,
6551,
12,
27268,
4672,
609,
21,
273,
13444,
18,
896,
12,
24,
13,
309,
609,
21,
422,
296,
2259,
25172,
4278,
389,
14002,
67,
22910,
273,
1053,
1327,
609,
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,
389,
896,
67,
86,
3048,
67,
6551,
12,
27268,
4672,
609,
21,
273,
13444,
18,
896,
12,
24,
13,
309,
609,
21,
422,
296,
2259,
25172,
4278,
389,
14002,
67,
22910,
273,
1053,
1327,
609,
2... |
""" fl_create_positioner(type, x, y, w, h, label) -> object ref. | """ fl_create_positioner(type, x, y, w, h, label) -> object | def fl_create_positioner(type, x, y, w, h, label): """ fl_create_positioner(type, x, y, w, h, label) -> object ref. """ retval = _fl_create_positioner(type, x, y, w, h, label) return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
3276,
264,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
3276,
264,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
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,
1183,
67,
2640,
67,
3276,
264,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
3276,
264,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
... |
gLogger.error(errStr,"%s: %s" % (pathSURL,errMessage)) failed[pathSURL] = "%s %s" % (errStr,errMessage) resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict) def getTransportURL(self,path,protocols=False): | gLogger.error( errStr, "%s: %s" % ( pathSURL, errMessage ) ) failed[pathSURL] = "%s %s" % ( errStr, errMessage ) resDict = {'Failed':failed, 'Successful':successful} return S_OK( resDict ) def getTransportURL( self, path, protocols = False ): | def removeFile(self,path): """Remove physically the file specified by its path """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] gLogger.debug("SRM2Storage.removeFile: Performing the removal of %s file(s)" % len(urls)) resDict = self.__gfaldeletesurls_wrapper(urls)['Value'] faile... | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
812,
12,
2890,
16,
803,
4672,
3536,
3288,
24758,
6478,
326,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
812,
12,
2890,
16,
803,
4672,
3536,
3288,
24758,
6478,
326,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30... |
self.port = random.randint(16000, 17000) | self.bind_address = '' | def __init__(self): self.port = random.randint(16000, 17000) self.local_address = 'localhost' self.remote_address = 'localhost' self.fs = xmlrpclib.ServerProxy('http://localhost:8000') | d1d5e2cc010645e6d7248da478536c73a03867ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9479/d1d5e2cc010645e6d7248da478536c73a03867ad/FileStorageLib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
4376,
67,
2867,
273,
875,
365,
18,
3729,
67,
2867,
273,
296,
13014,
11,
365,
18,
7222,
67,
2867,
273,
296,
13014,
11,
365,
18,
2556,
273,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
4376,
67,
2867,
273,
875,
365,
18,
3729,
67,
2867,
273,
296,
13014,
11,
365,
18,
7222,
67,
2867,
273,
296,
13014,
11,
365,
18,
2556,
273,
20... |
m.setCoordinate(elem.name+'_73', coord) | model.setCoordinate(elename+'_73', coord) | def subdivideHex(model, elem, refinenodes): """subdivide a Hex8 element |elem| around the nodes |lnodes| remove |elem| from the model |model| and insert the subelements """ assert(elem.shape.name == 'Hex8') # swap the element corners depending on the refine node / edge swapcorners = [ [0, 1, 2, 3, 4, 5, 6, 7], # u 0... | a06f60abf58eb66adcf5b72de6f94dfa2c242c77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2567/a06f60abf58eb66adcf5b72de6f94dfa2c242c77/Adaptive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25741,
831,
7037,
12,
2284,
16,
3659,
16,
25994,
275,
1145,
4672,
3536,
1717,
2892,
831,
279,
15734,
28,
930,
571,
10037,
96,
6740,
326,
2199,
571,
2370,
1145,
96,
1206,
571,
10037,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25741,
831,
7037,
12,
2284,
16,
3659,
16,
25994,
275,
1145,
4672,
3536,
1717,
2892,
831,
279,
15734,
28,
930,
571,
10037,
96,
6740,
326,
2199,
571,
2370,
1145,
96,
1206,
571,
10037,
96,
... |
if not tl: tl = get_field_tags("author") print_warning(req, "The browse does not work in this field. Choosing author index instead.", "Warning") | browsed_words_hits = {} | def browse_in_bibxxx(req, colls, p, f, rg): """Browse bibliographic phrases for the given pattern in the given field.""" print_warning(req, "The browse functionality is about to be expanded and prettyfied.", "Warning") ## determine browse field: if string.find(p, ":") > 0: # does 'p' contain ':'? f, p = split(p, ":", 2... | 03e310531e299959e23e689e2221361a7aa1e6d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/03e310531e299959e23e689e2221361a7aa1e6d6/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
267,
67,
70,
495,
18310,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
25581,
549,
16983,
31413,
364,
326,
864,
1936,
316,
326,
864,
652,
12123,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
267,
67,
70,
495,
18310,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
25581,
549,
16983,
31413,
364,
326,
864,
1936,
316,
326,
864,
652,
12123,
1... |
self.assy.update_parts() | self.assy.update_parts() | def copy(self): self.w.history.message(greenmsg("Copy:")) if self.selatoms: #bruce 050201-bug370: revised this in same way as for assy.cut (above) self.w.history.message(redmsg("Copying selected atoms is not yet supported.")) #bruce 050131 ## return new = Group(gensym("Copy"), self.assy, None) # bruce 050201 comment: t... | 0abde4f5ce347d2e9de87cb0501caffd0127e8c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/0abde4f5ce347d2e9de87cb0501caffd0127e8c2/part.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
365,
18,
91,
18,
8189,
18,
2150,
12,
11571,
3576,
2932,
2951,
2773,
3719,
309,
365,
18,
1786,
14937,
30,
468,
2848,
3965,
15331,
3103,
1611,
17,
925,
6418,
20,
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,
1610,
12,
2890,
4672,
365,
18,
91,
18,
8189,
18,
2150,
12,
11571,
3576,
2932,
2951,
2773,
3719,
309,
365,
18,
1786,
14937,
30,
468,
2848,
3965,
15331,
3103,
1611,
17,
925,
6418,
20,
30... |
assert shape == cdata.shape, \ | assert v.shape == cdata.shape, \ | def _parseargs_isosurface(self, *args): nargs = len(args) if nargs >= 5 and nargs <= 6: # isosurface(X,Y,Z,V,isovalue) x, y, z, v = _check_xyzv(*args[:4]) isovalue = float(args[4]) elif nargs >= 2 and nargs <= 3: # isosurface(V,isovalue) x, y, z, v = _check_xyzv(args[0]) isovalue = float(args[1]) else: raise TypeError,... | 3d4852610074c49994bb5da6e5c34e0bc7aa82ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4727/3d4852610074c49994bb5da6e5c34e0bc7aa82ae/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
1968,
67,
291,
538,
295,
865,
12,
2890,
16,
380,
1968,
4672,
14440,
273,
562,
12,
1968,
13,
309,
14440,
1545,
1381,
471,
14440,
1648,
1666,
30,
468,
353,
538,
295,
865,
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,
2670,
1968,
67,
291,
538,
295,
865,
12,
2890,
16,
380,
1968,
4672,
14440,
273,
562,
12,
1968,
13,
309,
14440,
1545,
1381,
471,
14440,
1648,
1666,
30,
468,
353,
538,
295,
865,
12,
... |
log_and_exec(CHECK + " group -vv --name test_users_B --extended") | log_and_exec(CHK + " group -vv --name test_users_B --extended") | def test_users(): """Test ADD/MOD/DEL on user accounts in various ways.""" test_message('''starting users related tests.''') log_and_exec(ADD + " group --name test_users_A --description 'groupe créé pour la suite de tests sur les utilisateurs, vous pouvez effacer'") log_and_exec(ADD + " profile --name Utilisagers --g... | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5577,
13332,
3536,
4709,
11689,
19,
6720,
19,
24733,
603,
729,
9484,
316,
11191,
16226,
12123,
225,
1842,
67,
2150,
2668,
6309,
18526,
3677,
3746,
7434,
1093,
11,
6134,
225,
613,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5577,
13332,
3536,
4709,
11689,
19,
6720,
19,
24733,
603,
729,
9484,
316,
11191,
16226,
12123,
225,
1842,
67,
2150,
2668,
6309,
18526,
3677,
3746,
7434,
1093,
11,
6134,
225,
613,... |
def parse_options(iffrom, ifto, replace, pattern="", ignorepattern=""): | def parse_options(self, iffrom, ifto, replace, pattern="", ignorepattern=""): | def parse_options(iffrom, ifto, replace, pattern="", ignorepattern=""): self.iffrom = iffrom self.ifto = ifto ptrn = re.compile(pattern) iptrn = re.compile(ignorepattern) | 367902ec63754b7d66488fc62136320ff18a89d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/367902ec63754b7d66488fc62136320ff18a89d6/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
12,
2890,
16,
309,
2080,
16,
309,
869,
16,
1453,
16,
1936,
1546,
3113,
2305,
4951,
1546,
6,
4672,
365,
18,
430,
2080,
273,
309,
2080,
365,
18,
430,
869,
273,
309,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2116,
12,
2890,
16,
309,
2080,
16,
309,
869,
16,
1453,
16,
1936,
1546,
3113,
2305,
4951,
1546,
6,
4672,
365,
18,
430,
2080,
273,
309,
2080,
365,
18,
430,
869,
273,
309,
869... |
def _handle_SCInvitationGotSDPUpdate(self, inv, data): | def _NH_SCInvitationGotSDPUpdate(self, inv, data): | def _handle_SCInvitationGotSDPUpdate(self, inv, data): session = self.inv_mapping.get(inv, None) if session is None: return with session._lock: if data.succeeded: try: session._update_media(data.local_sdp, data.remote_sdp) session._sdpneg_failure_reason = None except SIPCoreError, e: # TODO: find a better way to deal w... | f63baa5ed3894ccbf772ce5bb94f0a61fa49ef79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/f63baa5ed3894ccbf772ce5bb94f0a61fa49ef79/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
2312,
19896,
15617,
55,
8640,
1891,
12,
2890,
16,
2198,
16,
501,
4672,
1339,
273,
365,
18,
5768,
67,
6770,
18,
588,
12,
5768,
16,
599,
13,
309,
1339,
353,
599,
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,
389,
50,
44,
67,
2312,
19896,
15617,
55,
8640,
1891,
12,
2890,
16,
2198,
16,
501,
4672,
1339,
273,
365,
18,
5768,
67,
6770,
18,
588,
12,
5768,
16,
599,
13,
309,
1339,
353,
599,
30,
... |
if not subitem in result and not subitem in block and not subitem in deps["warn"]: classlistFromClassRecursive(subitem, block, variants, result) | if not subitem in result and not subitem in excludeWithDeps and not subitem in deps["warn"]: classlistFromClassRecursive(subitem, excludeWithDeps, variants, result) | def classlistFromClassRecursive(item, block, variants, result): # support blocking if item in block: return | ca3bf86fb2d4f8478c8c20f6093a6fb5226c2f4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/ca3bf86fb2d4f8478c8c20f6093a6fb5226c2f4b/DependencyLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
667,
1098,
1265,
797,
10483,
12,
1726,
16,
1203,
16,
12935,
16,
563,
4672,
468,
2865,
9445,
309,
761,
316,
1203,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
667,
1098,
1265,
797,
10483,
12,
1726,
16,
1203,
16,
12935,
16,
563,
4672,
468,
2865,
9445,
309,
761,
316,
1203,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.