rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
cols = string.split(line) for i in range(1, len(cols)): cols[i] = self._chomp(cols[i]) self.data.cross_references.append(tuple(cols[1:])) | line = line[5:] i = string.find(line, '[') if i >= 0: line = line[:i] cols = string.split(self._chomp(string.rstrip(line)), ';') for i in range(len(cols)): cols[i] = string.lstrip(cols[i]) self.data.cross_references.append(tuple(cols)) | def database_cross_reference(self, line): cols = string.split(line) for i in range(1, len(cols)): cols[i] = self._chomp(cols[i]) self.data.cross_references.append(tuple(cols[1:])) | 01b9154909094443f94d81f6053cdc7ec396503b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/01b9154909094443f94d81f6053cdc7ec396503b/SProt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2063,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
377,
980,
273,
980,
63,
25,
26894,
225,
277,
273,
533,
18,
4720,
12,
1369,
16,
8375,
13,
309,
277,
1545,
374,
30,
980,
273,
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,
2063,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
377,
980,
273,
980,
63,
25,
26894,
225,
277,
273,
533,
18,
4720,
12,
1369,
16,
8375,
13,
309,
277,
1545,
374,
30,
980,
273,
980,
... |
if length == 2: | size = len(paths.split(',')) if length == 2 and length/2 == size: | def create_id_pairs(pairs, paths, **kwargs): """ This function takes in a string that contains pairs of numbers and turns them into a tuple (for one pair) or a list of tuples. The function checks against the number of data paths requested. If the number of paths is not equal to the number of id pairs given, the last id... | 9619232ded0c6a536f44d91d91ad3cf50909f478 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/9619232ded0c6a536f44d91d91ad3cf50909f478/hlr_driver_helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
350,
67,
11545,
12,
11545,
16,
2953,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
5574,
434,
5600,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
350,
67,
11545,
12,
11545,
16,
2953,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
5574,
434,
5600,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
... |
if not info or info["has_instrument"].value: | def createFields(self): # This stupid shit gets the LSB, not the MSB... self.info("Note info: 0x%02X" % self.stream.readBits(self.absolute_address, 8, LITTLE_ENDIAN)) yield RealBit(self, "is_extended") info = None if self["is_extended"].value: info = NoteInfo(self, "info") yield info if info["has_note"].value: yield En... | c99931bfecc0c1d1ea8ca2bff60774c9102dc066 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c99931bfecc0c1d1ea8ca2bff60774c9102dc066/xm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
468,
1220,
384,
416,
350,
699,
305,
5571,
326,
511,
14541,
16,
486,
326,
9238,
38,
2777,
365,
18,
1376,
2932,
8067,
1123,
30,
374,
92,
9,
3103,
60,
6,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
468,
1220,
384,
416,
350,
699,
305,
5571,
326,
511,
14541,
16,
486,
326,
9238,
38,
2777,
365,
18,
1376,
2932,
8067,
1123,
30,
374,
92,
9,
3103,
60,
6,
738,... | |
try: | try: | def _AsciiHexTest(text='What is the average velocity of a sparrow?'): "Do the obvious test for whether Ascii Hex encoding works" print 'Plain text:', text encoded = _AsciiHexEncode(text) print 'Encoded:', encoded decoded = _AsciiHexDecode(encoded) print 'Decoded:', decoded if decoded == text: print 'Passed' else: print... | 0a6cde372a9934c6d902da62e7b8c41c00a5f2ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0a6cde372a9934c6d902da62e7b8c41c00a5f2ab/pdfutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21363,
7037,
4709,
12,
955,
2218,
23801,
353,
326,
8164,
14767,
434,
279,
272,
1065,
492,
4899,
4672,
315,
3244,
326,
28067,
1842,
364,
2856,
22475,
2835,
15734,
2688,
6330,
6,
1172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21363,
7037,
4709,
12,
955,
2218,
23801,
353,
326,
8164,
14767,
434,
279,
272,
1065,
492,
4899,
4672,
315,
3244,
326,
28067,
1842,
364,
2856,
22475,
2835,
15734,
2688,
6330,
6,
1172,
... |
basic_doc_literal() basic_rpc_literal() authentication() perspectives() content_source() | rhqTest() | def content_source(): global subject, errors try: url = 'http://localhost:7080/rhq-rhq-enterprise-server-ejb3/ContentSourceManagerBean?wsdl' start(url) client = Client(url, xstq=False) print client # # create a configuration # configuration = client.factory.create('configuration') entry = client.factory.create('confi... | c4abbac390eb60b04ce7093621f6b13f1a3fc218 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5377/c4abbac390eb60b04ce7093621f6b13f1a3fc218/rhq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
67,
3168,
13332,
225,
2552,
3221,
16,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
67,
3168,
13332,
225,
2552,
3221,
16,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,... |
setattr (self, 'install_' + key, scheme[key]) | attrname = 'install_' + key if getattr(self, attrname) is None: setattr(self, attrname, scheme[key]) | def select_scheme (self, name): # it's the caller's problem if they supply a bad name! scheme = INSTALL_SCHEMES[name] for key in ('purelib', 'platlib', 'scripts', 'data'): setattr (self, 'install_' + key, scheme[key]) | 5ee1401c5b4c962eaa412eda9dea527e68e5aea4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5ee1401c5b4c962eaa412eda9dea527e68e5aea4/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
9068,
261,
2890,
16,
508,
4672,
468,
518,
1807,
326,
4894,
1807,
6199,
309,
2898,
14467,
279,
5570,
508,
5,
4355,
273,
22880,
4685,
67,
22870,
55,
63,
529,
65,
364,
498,
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,
2027,
67,
9068,
261,
2890,
16,
508,
4672,
468,
518,
1807,
326,
4894,
1807,
6199,
309,
2898,
14467,
279,
5570,
508,
5,
4355,
273,
22880,
4685,
67,
22870,
55,
63,
529,
65,
364,
498,
316,... |
@preserve def read_secondary_header(self): self._stream.seek(self.hdr_len + self.num_pieces*self.PIECE_SIZE) bytes = self._stream.read(self.sec_hdr_len) | def _read_secondary_header(self): offset = self.hdr_len + (self.num_pieces * self.PIECE_SIZE) bytes = self._read_raw(offset, self.sec_hdr_len) | def _read_content(self, offset, size): return self._read_raw(self.content_offset + offset, size) | 006182e5f46ea8f5da43607ab530dff752a12d94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/006182e5f46ea8f5da43607ab530dff752a12d94/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
1745,
12,
2890,
16,
1384,
16,
963,
4672,
327,
365,
6315,
896,
67,
1899,
12,
2890,
18,
1745,
67,
3348,
397,
1384,
16,
963,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
896,
67,
1745,
12,
2890,
16,
1384,
16,
963,
4672,
327,
365,
6315,
896,
67,
1899,
12,
2890,
18,
1745,
67,
3348,
397,
1384,
16,
963,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
raise InvalidParameter, text | raise ParseError, ('invalid parameter: "%s"' % text, tag) | def parse_params(text, result=None, tag='', unparmre=regex.compile( '\([\0- ]*\([^\0- =\"]+\)\)'), parmre=regex.compile( '\([\0- ]*\([^\0- =\"]+\)=\([^\0- =\"]+\)\)'), qparmre=regex.compile( '\([\0- ]*\([^\0- =\"]+\)="\([^"]*\)\"\)'), **parms): """Parse tag parameters The format of tag parameters consists of 1 or mor... | 7297a46f87b78b08d8933aab00cf8d15b4ce3db2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/7297a46f87b78b08d8933aab00cf8d15b4ce3db2/DT_Util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2010,
12,
955,
16,
563,
33,
7036,
16,
1047,
2218,
2187,
640,
1065,
81,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
5153,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2010,
12,
955,
16,
563,
33,
7036,
16,
1047,
2218,
2187,
640,
1065,
81,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
5153,
... |
scons: \\*\\*\\* .* is not a Builder\\. | scons: *** 1 is not a Builder. | def mkdir(env, target, source): return None | 3ff61a15fac640a74726d42fcd5a03ddbacd6287 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12817/3ff61a15fac640a74726d42fcd5a03ddbacd6287/not-a-Builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
3074,
16,
1018,
16,
1084,
4672,
327,
599,
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,
6535,
12,
3074,
16,
1018,
16,
1084,
4672,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
b_stat = statcache.stat(b_path) | b_stat = os.stat(b_path) | def phase2(self): # Distinguish files, directories, funnies self.common_dirs = [] self.common_files = [] self.common_funny = [] | 8eb4044f7e42af1134a6a98e52201df0a8aaa01f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8eb4044f7e42af1134a6a98e52201df0a8aaa01f/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6855,
22,
12,
2890,
4672,
468,
19893,
14344,
1468,
1390,
16,
6402,
16,
9831,
82,
606,
365,
18,
6054,
67,
8291,
273,
5378,
365,
18,
6054,
67,
2354,
273,
5378,
365,
18,
6054,
67,
12125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6855,
22,
12,
2890,
4672,
468,
19893,
14344,
1468,
1390,
16,
6402,
16,
9831,
82,
606,
365,
18,
6054,
67,
8291,
273,
5378,
365,
18,
6054,
67,
2354,
273,
5378,
365,
18,
6054,
67,
12125,
... |
if depsLogConf.get("dot/compiled-class-size", True): useCompiledSize = True optimize = depsLogConf.get("dot/optimize", []) | useCompiledSize = depsLogConf.get("dot/compiled-class-size", True) optimize = depsLogConf.get("dot/optimize", []) | def addNodes(gr, st_nodes): # rather gr.add_nodes(st), go through indiviudal nodes for coloring if depsLogConf.get("dot/compiled-class-size", True): useCompiledSize = True optimize = depsLogConf.get("dot/optimize", []) for cid in st_nodes: if cid == None: # None is introduced in st continue attribs = getNodeAtt... | 55fd89f4a6521e28c7efff5191d4f4f395f5419b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/55fd89f4a6521e28c7efff5191d4f4f395f5419b/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3205,
12,
3197,
16,
384,
67,
4690,
4672,
468,
9178,
3821,
18,
1289,
67,
4690,
12,
334,
3631,
1960,
3059,
6335,
77,
1100,
287,
2199,
364,
2036,
310,
999,
20733,
1225,
273,
8740,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3205,
12,
3197,
16,
384,
67,
4690,
4672,
468,
9178,
3821,
18,
1289,
67,
4690,
12,
334,
3631,
1960,
3059,
6335,
77,
1100,
287,
2199,
364,
2036,
310,
999,
20733,
1225,
273,
8740,
13... |
if "exc" in kwargs and kwargs["exc"]: logging.exception(msg) else: logging.error(msg) | if "log" not in kwargs or kwargs["log"]: if "exc" in kwargs and kwargs["exc"]: logging.exception(msg) else: logging.error(msg) | def _Fail(msg, *args, **kwargs): """Log an error and the raise an RPCFail exception. This exception is then handled specially in the ganeti daemon and turned into a 'failed' return type. As such, this function is a useful shortcut for logging the error and returning it to the master daemon. @type msg: string @param m... | afdc3985644be8d2b91d9f0e37dfda391a30d036 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/afdc3985644be8d2b91d9f0e37dfda391a30d036/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3754,
12,
3576,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1343,
392,
555,
471,
326,
1002,
392,
8295,
3754,
1520,
18,
225,
1220,
1520,
353,
1508,
7681,
857,
6261,
316,
326,
314,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3754,
12,
3576,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1343,
392,
555,
471,
326,
1002,
392,
8295,
3754,
1520,
18,
225,
1220,
1520,
353,
1508,
7681,
857,
6261,
316,
326,
314,
3... |
self.var = SingleChoice(attrs['name']) if self.var.name in self.context.environ: self.var.value = self.context.environ[self.var.name] | choiceValue = None if attrs['name'] in self.context.environ: choiceValue = str(self.context.environ[attrs['name']]) self.var = SingleChoice(attrs['name'],choiceValue,None,[]) | def startElement(self, name, attrs): '''Start populating an element.''' self.text = '' if name == self.tagAlternate: self.tagIndices += [ len(self.tags) ] self.locIndices += [ len(self.locals) ] elif name == self.tagAlternates: self.locals += [ Alternates() ] self.tagIndices += [ len(self.tags) ] self.locIndices += [ l... | a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
3422,
4672,
9163,
1685,
3650,
1776,
392,
930,
1093,
6309,
365,
18,
955,
273,
875,
309,
508,
422,
365,
18,
2692,
25265,
30,
365,
18,
2692,
8776,
1011,
306,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
3422,
4672,
9163,
1685,
3650,
1776,
392,
930,
1093,
6309,
365,
18,
955,
273,
875,
309,
508,
422,
365,
18,
2692,
25265,
30,
365,
18,
2692,
8776,
1011,
306,... |
where k_i is the degree of node i, [1]. A coefficient for | where k_i is the degree of vertex i, [1]. A coefficient for | def clustering_average(self): r""" Returns the average clustering coefficient. The clustering coefficient of a graph is the fraction of possible triangles that are triangles, c_i = triangles_i / (k_i*(k_i-1)/2) where k_i is the degree of node i, [1]. A coefficient for the whole graph is the average of the c_i. Trans... | e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18743,
67,
15621,
12,
2890,
4672,
436,
8395,
2860,
326,
8164,
18743,
16554,
18,
225,
1021,
18743,
16554,
434,
279,
2667,
353,
326,
8330,
434,
3323,
19959,
716,
854,
19959,
16,
276,
67,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18743,
67,
15621,
12,
2890,
4672,
436,
8395,
2860,
326,
8164,
18743,
16554,
18,
225,
1021,
18743,
16554,
434,
279,
2667,
353,
326,
8330,
434,
3323,
19959,
716,
854,
19959,
16,
276,
67,
7... |
str = "FUNCTION: %s -- Inverse: %s" % (self.calibrations[0][1], self.calibrations[0][2]) | str = "FUNCTION: %s -- Inverse: %s" % (self.calibrations[channel][1], self.calibrations[channel][2]) | def printCalibration(self, channel): str = '' try: if self.calibrations[channel][0] == INTERPOLATION: str = "INTERPOLATION -- Resistances: %s -- Temperatures: %s" % (self.calibrations[0][1], self.calibrations[0][2]) elif self.calibrations[channel][0] == FUNCTION: str = "FUNCTION: %s -- Inverse: %s" % (self.calibration... | bfa17a9b643b196aedc945097b1907e5fb39d8c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7016/bfa17a9b643b196aedc945097b1907e5fb39d8c3/lakeshore370.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
3005,
11723,
12,
2890,
16,
1904,
4672,
609,
273,
875,
775,
30,
309,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
20,
65,
422,
11391,
14232,
2689,
30,
609,
273,
315,
9125,
14232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
3005,
11723,
12,
2890,
16,
1904,
4672,
609,
273,
875,
775,
30,
309,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
20,
65,
422,
11391,
14232,
2689,
30,
609,
273,
315,
9125,
14232,
... |
os.appendChild(kernel) | opSys.appendChild(kernel) | def bootElement(bootDict): """ Creates a libvirt <os> element, a child of L{domain element <domainElement>}, that describes the operating system boot protocol for the Virtual Machine, specifically values to enable booting from the BIOS. @param bootDict: dictionary of boot arguments @type bootDict: dictionary @note: b... | b19e865d32d9ed2915eaa051855e86e8037b151c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/b19e865d32d9ed2915eaa051855e86e8037b151c/OvfLibvirt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4835,
1046,
12,
7137,
5014,
4672,
3536,
10210,
279,
16388,
411,
538,
34,
930,
16,
279,
1151,
434,
511,
95,
4308,
930,
411,
4308,
1046,
34,
5779,
716,
19605,
326,
16929,
2619,
4835,
1771,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4835,
1046,
12,
7137,
5014,
4672,
3536,
10210,
279,
16388,
411,
538,
34,
930,
16,
279,
1151,
434,
511,
95,
4308,
930,
411,
4308,
1046,
34,
5779,
716,
19605,
326,
16929,
2619,
4835,
1771,... |
commands.getstatusoutput('start %s' %tmpfile) | os.system('start %s' %tmpfile) | def play(soundfile): """ Play a file with name soundfile or an array soundfile. (The array is first written to file using the write function so the data type can be arbitrary.) The player is chosen by the programs open on Mac/Linux and start on Windows. """ tmpfile = 'tmp.wav' if isinstance(soundfile, numpy.ndarray): w... | a32f393beb9035e6e01e6f42eda1164eecaebf45 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4727/a32f393beb9035e6e01e6f42eda1164eecaebf45/sound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
29671,
768,
4672,
3536,
19592,
279,
585,
598,
508,
14190,
768,
578,
392,
526,
14190,
768,
18,
261,
1986,
526,
353,
1122,
5941,
358,
585,
1450,
326,
1045,
445,
1427,
326,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
29671,
768,
4672,
3536,
19592,
279,
585,
598,
508,
14190,
768,
578,
392,
526,
14190,
768,
18,
261,
1986,
526,
353,
1122,
5941,
358,
585,
1450,
326,
1045,
445,
1427,
326,
501,
... |
f = urllib2.urlopen("http://www.python.org/") | f = _urlopen_with_retry("http://www.python.org/") | def testURLread(self): f = urllib2.urlopen("http://www.python.org/") x = f.read() | 77becf87a4ab41f96c4ed8c8bd87c21fb457be95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/77becf87a4ab41f96c4ed8c8bd87c21fb457be95/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1785,
896,
12,
2890,
4672,
284,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
4898,
13,
619,
273,
284,
18,
896,
1435,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1785,
896,
12,
2890,
4672,
284,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
4898,
13,
619,
273,
284,
18,
896,
1435,
2,
-100,
-100,
-100,... |
dev = get_child_by_name(vif_sxp, "vifname", "eth0") | dev = get_child_by_name(vif_sxp, "vifname", None) if dev is None: dev = self.getFreshEthDevice() | def extract_vif(self, vif_sxp, document): | 2ef80cbdcaabb5ca2cfb2a004b11a40e65ec494d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/2ef80cbdcaabb5ca2cfb2a004b11a40e65ec494d/xenapi_create.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
90,
430,
12,
2890,
16,
331,
430,
67,
87,
23829,
16,
1668,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2608,
67,
90,
430,
12,
2890,
16,
331,
430,
67,
87,
23829,
16,
1668,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bodydata += struct.pack("=fff", face.normal[0], face.normal[1], face.normal[2]) | bodydata += struct.pack("=fff", face.normal[1], -face.normal[2], face.normal[0]) | def mapvertex(index, u, v): for mv in xrange(0, len(vertexmap)): if vertexmap[mv] == index and uvs[mv] == (u, v): return mv vertexmap.append(index) uvs.append( (u, v) ) return len(vertexmap)-1 | 518be49390d480a73bb0056bcc330075dd3e0794 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2372/518be49390d480a73bb0056bcc330075dd3e0794/windstille_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
15281,
12,
1615,
16,
582,
16,
331,
4672,
364,
7701,
316,
12314,
12,
20,
16,
562,
12,
15281,
1458,
3719,
30,
309,
5253,
1458,
63,
17509,
65,
422,
770,
471,
582,
6904,
63,
17509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
15281,
12,
1615,
16,
582,
16,
331,
4672,
364,
7701,
316,
12314,
12,
20,
16,
562,
12,
15281,
1458,
3719,
30,
309,
5253,
1458,
63,
17509,
65,
422,
770,
471,
582,
6904,
63,
17509,
... |
repos = self.env.get_repository(req.authname) | def process_request(self, req): """The appropriate mode of operation is inferred from the request parameters: | fcd502a0c741dcc0b7ee9715e8d07897e2188f35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/fcd502a0c741dcc0b7ee9715e8d07897e2188f35/changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
3536,
1986,
5505,
1965,
434,
1674,
353,
13662,
628,
326,
590,
1472,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
3536,
1986,
5505,
1965,
434,
1674,
353,
13662,
628,
326,
590,
1472,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
logmsg = "<scan time=\"%s\">" % time.strftime('%Y%m%d%H%M%S', time.gmtime(tstamp)) + \ | logmsg = "<scan time=\"%s\">" % date + \ | def write_obm_log(self, date, tstamp, servingCell, lng, lat, alt, spe, heading, hdop, vdop, pdop, neighbourCells): """Format and stores in memory given data, possibly triggers writing in log file.""" # From Python doc: %f -> The precision determines the number of digits after the decimal point and defaults to 6. # A di... | 0beae68f1c062fd16cefaf46cf4f038a246b5dd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12211/0beae68f1c062fd16cefaf46cf4f038a246b5dd1/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
947,
81,
67,
1330,
12,
2890,
16,
1509,
16,
268,
14317,
16,
20505,
4020,
16,
12662,
16,
2516,
16,
3770,
16,
17785,
16,
11053,
16,
15921,
556,
16,
21161,
556,
16,
4863,
556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
947,
81,
67,
1330,
12,
2890,
16,
1509,
16,
268,
14317,
16,
20505,
4020,
16,
12662,
16,
2516,
16,
3770,
16,
17785,
16,
11053,
16,
15921,
556,
16,
21161,
556,
16,
4863,
556,
... |
ext_outputs = cmd._mutate_outputs( self.distribution.has_ext_modules(), 'build_ext', 'build_lib', '' ) | ext_outputs = self.get_ext_outputs() | def run(self): # Generate metadata first self.run_command("egg_info") | 4ac1c4a9cccadb04d7cf193f008ac7aa5cab3412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/4ac1c4a9cccadb04d7cf193f008ac7aa5cab3412/bdist_egg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
6654,
1982,
1122,
365,
18,
2681,
67,
3076,
2932,
23171,
67,
1376,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
6654,
1982,
1122,
365,
18,
2681,
67,
3076,
2932,
23171,
67,
1376,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def waitiing(self): | def waiting(self): | def waitiing(self): return len(self._waiters) | 315b570820ba80d6323db5b292e0b91999334fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/315b570820ba80d6323db5b292e0b91999334fdb/coros.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7336,
12,
2890,
4672,
327,
562,
12,
2890,
6315,
7048,
414,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7336,
12,
2890,
4672,
327,
562,
12,
2890,
6315,
7048,
414,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
gLogger.info("SRM2Storage.getFileMetadata: Obtaining metadata for %s file(s)." % len(urls)) | gLogger.debug("SRM2Storage.getFileMetadata: Obtaining metadata for %s file(s)." % len(urls)) | def getFileMetadata(self,path): """ Get metadata associated to the file """ if type(path) in types.StringTypes: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.getFileMetadata: Supplied path must be string or list of strings") | 65f6eeefcc68513bb80614609dded77332a53729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/65f6eeefcc68513bb80614609dded77332a53729/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
309,
618,
12,
803,
13,
316,
1953,
18,
780,
2016,
30,
6903,
273,
306,
803,
65,
1327,
618,
12,
803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
309,
618,
12,
803,
13,
316,
1953,
18,
780,
2016,
30,
6903,
273,
306,
803,
65,
1327,
618,
12,
803... |
arg.WriteClientSideValidationCode(file) | arg.WriteClientSideValidationCode(file, func) | def WriteGLES2ImplementationHeader(self, func, file): """Writes the GLES2 Implemention.""" impl_func = func.GetInfo('impl_func') impl_decl = func.GetInfo('impl_decl') if (func.can_auto_generate and (impl_func == None or impl_func == True) and (impl_decl == None or impl_decl == True)): file.Write("%s %s(%s) {\n" % (func... | bda273cb982a1cc60958aa574bc939271a82f552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/bda273cb982a1cc60958aa574bc939271a82f552/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
43,
11386,
22,
13621,
1864,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
611,
11386,
22,
10886,
285,
12123,
9380,
67,
644,
273,
1326,
18,
967,
966,
2668,
11299,
67,
644,
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,
2598,
43,
11386,
22,
13621,
1864,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
611,
11386,
22,
10886,
285,
12123,
9380,
67,
644,
273,
1326,
18,
967,
966,
2668,
11299,
67,
644,
6... |
installed_items = [item for item in installinfo.get('managed_installs',[]) | installed_items = [item for item in installinfo.get('managed_installs',[]) | def check(id=''): '''Checks for available new or updated managed software, downloading installer items if needed. Returns 1 if there are available updates, 0 if there are no available updates, and -1 if there were errors.''' getMachineFacts() munkicommon.report['MachineInfo'] = machine ManagedInstallDir = munkicommon.... | 5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
350,
2218,
11,
4672,
9163,
4081,
364,
2319,
394,
578,
3526,
7016,
17888,
16,
23742,
16050,
1516,
309,
3577,
18,
2860,
404,
309,
1915,
854,
2319,
4533,
16,
374,
309,
1915,
854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
350,
2218,
11,
4672,
9163,
4081,
364,
2319,
394,
578,
3526,
7016,
17888,
16,
23742,
16050,
1516,
309,
3577,
18,
2860,
404,
309,
1915,
854,
2319,
4533,
16,
374,
309,
1915,
854,
... |
cu.execute("DROP INDEX PermissionsIdx") cu.execute("CREATE UNIQUE INDEX PermissionsIdx ON " | self.cu.execute("DROP INDEX PermissionsIdx") self.cu.execute("CREATE UNIQUE INDEX PermissionsIdx ON " | def migrate(self): ## First insert the new Item and Label keys self.cu.execute("INSERT INTO Items (itemId, item) VALUES(0, 'ALL')") self.cu.execute("INSERT INTO Labels (labelId, label) VALUES(0, 'ALL')") | 9f7aecf66de99744c3a8610c4f5dddd93a7956e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9f7aecf66de99744c3a8610c4f5dddd93a7956e4/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
7541,
5783,
2243,
326,
394,
4342,
471,
5287,
1311,
365,
18,
6319,
18,
8837,
2932,
11356,
12421,
10240,
261,
1726,
548,
16,
761,
13,
13477,
12,
20,
16,
296,
4685,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
7541,
5783,
2243,
326,
394,
4342,
471,
5287,
1311,
365,
18,
6319,
18,
8837,
2932,
11356,
12421,
10240,
261,
1726,
548,
16,
761,
13,
13477,
12,
20,
16,
296,
4685,
... |
raise TypeError('%r is not a module, class, method, ' 'function, traceback, frame, or code object' % object) | raise TypeError('{!r} is not a module, class, method, ' 'function, traceback, frame, or code object'.format(object)) | def getfile(object): """Work out which source or compiled file an object was defined in.""" if ismodule(object): if hasattr(object, '__file__'): return object.__file__ raise TypeError('%r is a built-in module' % object) if isclass(object): object = sys.modules.get(object.__module__) if hasattr(object, '__file__'): retu... | 4b941017d7d1f338edaaca77d3e613717ece0b68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/4b941017d7d1f338edaaca77d3e613717ece0b68/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
12,
1612,
4672,
3536,
2421,
596,
1492,
1084,
578,
7743,
585,
392,
733,
1703,
2553,
316,
12123,
309,
353,
2978,
12,
1612,
4672,
309,
3859,
12,
1612,
16,
4940,
768,
7250,
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,
336,
768,
12,
1612,
4672,
3536,
2421,
596,
1492,
1084,
578,
7743,
585,
392,
733,
1703,
2553,
316,
12123,
309,
353,
2978,
12,
1612,
4672,
309,
3859,
12,
1612,
16,
4940,
768,
7250,
4672,
... |
xhtml = parsers.XHTML(html) data = xhtml.translate(po) assert data == '<p>hola mundo</p>' | p = parsers.PO.PO(memory.File(po)) html = memory.File(html) xhtml = parsers.XHTML.Document(html) html = xhtml.translate(p) result = self.template % '<p>hola mundo </p>' assert html == result | def test_case4(self): """Test translation of an element content""" html = '<p>hello world</p>' po = 'msgid "hello world"\n' \ 'msgstr "hola mundo"' | a3c81c1d735ba1868ba3eb465b674f362e597962 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/a3c81c1d735ba1868ba3eb465b674f362e597962/test_parsers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
24,
12,
2890,
4672,
3536,
4709,
4794,
434,
392,
930,
913,
8395,
1729,
273,
2368,
84,
34,
23711,
9117,
1757,
84,
1870,
8275,
273,
296,
3576,
350,
315,
23711,
9117,
12691,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
24,
12,
2890,
4672,
3536,
4709,
4794,
434,
392,
930,
913,
8395,
1729,
273,
2368,
84,
34,
23711,
9117,
1757,
84,
1870,
8275,
273,
296,
3576,
350,
315,
23711,
9117,
12691,
... |
win = MPDDatabase(self, parent) return win def createPostHook(self): | self.default_font = self.GetFont() self.font = wx.Font(self.classprefs.list_font_size, self.default_font.GetFamily(), self.default_font.GetStyle(), self.default_font.GetWeight()) self.sizer = wx.BoxSizer(wx.VERTICAL) self.SetSizer(self.sizer) self.notebook = wx.Notebook(self) self.sizer.Add(self.notebook, 1, wx.EXPA... | def createEditWindow(self,parent): """Create the main MPD music search window. | f9c3a6a22ee997ebd7775e7552ae043d1312a735 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/f9c3a6a22ee997ebd7775e7552ae043d1312a735/mpd_major_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4666,
3829,
12,
2890,
16,
2938,
4672,
3536,
1684,
326,
2774,
13480,
40,
26225,
1623,
2742,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4666,
3829,
12,
2890,
16,
2938,
4672,
3536,
1684,
326,
2774,
13480,
40,
26225,
1623,
2742,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (CXXINCLUDECACHE.has_key(path)): | if (path in CXXINCLUDECACHE): | def CxxGetIncludes(path): date = GetTimestamp(path) if (CXXINCLUDECACHE.has_key(path)): cached = CXXINCLUDECACHE[path] if (cached[0]==date): return cached[1] try: sfile = open(path, 'rb') except: exit("Cannot open source file \""+path+"\" for reading.") include = [] for line in sfile: match = CxxIncludeRegex.match(line... | e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
5279,
967,
16815,
12,
803,
4672,
1509,
273,
968,
4921,
12,
803,
13,
309,
261,
803,
316,
385,
5619,
26003,
8495,
4672,
3472,
273,
385,
5619,
26003,
8495,
63,
803,
65,
309,
261,
709... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
5279,
967,
16815,
12,
803,
4672,
1509,
273,
968,
4921,
12,
803,
13,
309,
261,
803,
316,
385,
5619,
26003,
8495,
4672,
3472,
273,
385,
5619,
26003,
8495,
63,
803,
65,
309,
261,
709... |
component = SplitQName(contents[indx].getTagName())[1] if component == 'annotation': self.annotation = Annotation(self) self.annotation.fromDom(contents[indx]) indx += 1 | if num: | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | cb449fc0180b4b19d99c50f3984e5fe5b9e8f9d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/cb449fc0180b4b19d99c50f3984e5fe5b9e8f9d3/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
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,
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,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
xlim=self.xlim, z= r.t(r.matrix( self.data[rep].flatData(),axes=self.axes, byrow=True, ncol=len(self.data[rep].data[0]))),xlab=self.xlab, | xlim=self.xlim, z= r.t(r.matrix(self.data[rep].flatData(), byrow=True, ncol=len(self.data[rep].data[0]))), xlab=self.xlab, axes=self.axes, | def plot(self, pop, expr): gen = pop.gen() rep = pop.rep() data = pop.evaluate(expr) _data = data # now start! if type(_data) == type(0) or type(_data) == type(0.): _data = [_data] | 0731ae08adccf41d053f6aa3359994cd77496a34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/0731ae08adccf41d053f6aa3359994cd77496a34/simuRPy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
1843,
16,
3065,
4672,
3157,
273,
1843,
18,
4507,
1435,
2071,
273,
1843,
18,
14462,
1435,
501,
273,
1843,
18,
21024,
12,
8638,
13,
389,
892,
273,
501,
468,
2037,
787... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
1843,
16,
3065,
4672,
3157,
273,
1843,
18,
4507,
1435,
2071,
273,
1843,
18,
14462,
1435,
501,
273,
1843,
18,
21024,
12,
8638,
13,
389,
892,
273,
501,
468,
2037,
787... |
self.exitPlayback() | self.exitPlayback(switchDisplay) | def stop(self): videoDisplay = Controller.instance.videoDisplay if self.currentDisplay == videoDisplay: videoDisplay.stop() self.exitPlayback() | 168ea1e3359fc4fd8e4be351eaaa4c453b89d0a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/168ea1e3359fc4fd8e4be351eaaa4c453b89d0a2/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
6191,
4236,
273,
6629,
18,
1336,
18,
9115,
4236,
309,
365,
18,
2972,
4236,
422,
6191,
4236,
30,
6191,
4236,
18,
5681,
1435,
365,
18,
8593,
30569,
1435,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2132,
12,
2890,
4672,
6191,
4236,
273,
6629,
18,
1336,
18,
9115,
4236,
309,
365,
18,
2972,
4236,
422,
6191,
4236,
30,
6191,
4236,
18,
5681,
1435,
365,
18,
8593,
30569,
1435,
2,
-100,
-... |
"""Delete menu items between INDEX1 and INDEX2 (not included).""" | """Delete menu items between INDEX1 and INDEX2 (included).""" | def delete(self, index1, index2=None): """Delete menu items between INDEX1 and INDEX2 (not included).""" if index2 is None: index2 = index1 cmds = [] (num_index1, num_index2) = (self.index(index1), self.index(index2)) if (num_index1 is not None) and (num_index2 is not None): for i in range(num_index1, num_index2 + 1): ... | b9828f67b8d012093cd67e8b0679dc55864cf94e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/b9828f67b8d012093cd67e8b0679dc55864cf94e/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
3536,
2613,
3824,
1516,
3086,
12425,
21,
471,
12425,
22,
261,
20405,
13,
12123,
309,
770,
22,
353,
599,
30,
770,
22,
273,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
3536,
2613,
3824,
1516,
3086,
12425,
21,
471,
12425,
22,
261,
20405,
13,
12123,
309,
770,
22,
353,
599,
30,
770,
22,
273,
77... |
except DistutilsExecError, msg: | except DistutilsExecError as msg: | def compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None, depends=None): | 61e8a9bab03dc9a3a74c3aa70c4c42c2894f287d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/61e8a9bab03dc9a3a74c3aa70c4c42c2894f287d/msvc9compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
... |
'gopher://gopher.lib.ncsu.edu/11/library/stacks/Alex', 'gopher://gopher.vt.edu:10010/10/33', | 'gopher://gopher.lib.ncsu.edu./11/library/stacks/Alex', 'gopher://gopher.vt.edu.:10010/10/33', | def test_gopher(self): import warnings warnings.filterwarnings("ignore", "the gopherlib module is deprecated", DeprecationWarning, "urllib2$") urls = [ # Thanks to Fred for finding these! 'gopher://gopher.lib.ncsu.edu/11/library/stacks/Alex', 'gopher://gopher.vt.edu:10010/10/33', ] self._test_urls(urls, self._extra_han... | 0633c3792b01834e7615d678c36a3afee5954a01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0633c3792b01834e7615d678c36a3afee5954a01/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
75,
556,
1614,
12,
2890,
4672,
1930,
5599,
5599,
18,
2188,
12103,
2932,
6185,
3113,
315,
5787,
22096,
1614,
2941,
1605,
353,
6849,
3113,
24041,
16,
315,
718,
2941,
22,
8,
7923,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
556,
1614,
12,
2890,
4672,
1930,
5599,
5599,
18,
2188,
12103,
2932,
6185,
3113,
315,
5787,
22096,
1614,
2941,
1605,
353,
6849,
3113,
24041,
16,
315,
718,
2941,
22,
8,
7923,... |
""" if not self._directed or ignore_direction: neighbors=self.neighbor_iterator | """ if neighbors is None: if not self._directed or ignore_direction: neighbors=self.neighbor_iterator else: neighbors=self.successor_iterator seen=set([]) if isinstance(start, list): queue=[(v,0) for v in start] | def breadth_first_search(self, u, ignore_direction=False): """ Returns an iterator over vertices in a breadth-first ordering. | 9d535ef33940ee3901e4b9966c012168cfeef72c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9d535ef33940ee3901e4b9966c012168cfeef72c/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
25254,
67,
3645,
67,
3072,
12,
2890,
16,
582,
16,
2305,
67,
9855,
33,
8381,
4672,
3536,
2860,
392,
2775,
1879,
6928,
316,
279,
324,
25254,
17,
3645,
9543,
18,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
324,
25254,
67,
3645,
67,
3072,
12,
2890,
16,
582,
16,
2305,
67,
9855,
33,
8381,
4672,
3536,
2860,
392,
2775,
1879,
6928,
316,
279,
324,
25254,
17,
3645,
9543,
18,
2,
-100,
-100,
-100,... |
for calendar in vobject.readComponents(text, validate=True, | for calendar in vobject.readComponents(text, validate=False, | def itemsFromVObject(view, text, coerceTzinfo = None, filters = None, monolithic = True, updateCallback=None, stats=None): """ Take a string, create or update items from that stream. The filters argument is an optional sequence of attributes to not populate. monolithic is True for calendars that may contain multiple ... | 910fb088cbae4110331d1d5156af17d02e461fdf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/910fb088cbae4110331d1d5156af17d02e461fdf/ICalendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
1265,
58,
921,
12,
1945,
16,
977,
16,
12270,
56,
94,
1376,
273,
599,
16,
3415,
273,
599,
16,
6921,
355,
483,
335,
273,
1053,
16,
1089,
2428,
33,
7036,
16,
3177,
33,
7036,
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,
1516,
1265,
58,
921,
12,
1945,
16,
977,
16,
12270,
56,
94,
1376,
273,
599,
16,
3415,
273,
599,
16,
6921,
355,
483,
335,
273,
1053,
16,
1089,
2428,
33,
7036,
16,
3177,
33,
7036,
4672,... |
'rise_time', 'rise_az', 'transit_time', 'transit_alt', 'set_time', 'set_az')), | 'circumpolar', 'neverup', 'rise_time', 'rise_az', 'transit_time', 'transit_alt', 'set_time', 'set_az')), | def test_date_triple_value(self): self.assertEqual(self.date.tuple(), (2004, 9, 4, 0, 17, 15.799999977461994)) | 29e273d0578cb8697386bc3cfef1ac3c53b22c84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10979/29e273d0578cb8697386bc3cfef1ac3c53b22c84/run.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
712,
67,
313,
2444,
67,
1132,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
712,
18,
8052,
9334,
261,
6976,
24,
16,
2468,
16,
1059,
16,
374,
16,
8043,
16,
4711,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
712,
67,
313,
2444,
67,
1132,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
712,
18,
8052,
9334,
261,
6976,
24,
16,
2468,
16,
1059,
16,
374,
16,
8043,
16,
4711,
18,
... |
cr.execute('select c.id from crm_case c left join project_task t on c.id=t.case_id left join project_project p on p.id=t.project_id where c.section_id=p.section_feature_id and p.id=%s',(project_id,)) | cr.execute('select c.id from crm_case c left join project_project p on p.id=c.project_id where c.section_id=p.section_feature_id and p.id=%s',(project_id,)) | def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): if context is None: context = {} if context.has_key('project_id') and context['project_id']: project_id = context['project_id'] else: project_ids = self.pool.get('project.project').search(cr, uid, [('manager', '=', uid)]) proj... | 63aca3f99a9c76ca2e99c049a801f7d6f1039030 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/63aca3f99a9c76ca2e99c049a801f7d6f1039030/portal_project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
273... |
del self.edges[self.data.getIndex(item)] | self.edges[self.data.getIndex(item)] = set() | def deleteEdges(self, item): del self.edges[self.data.getIndex(item)] | 9d088ba22bc6a4b1157137ad462a17729911accd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9d088ba22bc6a4b1157137ad462a17729911accd/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
10697,
12,
2890,
16,
761,
4672,
1464,
365,
18,
8746,
63,
2890,
18,
892,
18,
588,
1016,
12,
1726,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
10697,
12,
2890,
16,
761,
4672,
1464,
365,
18,
8746,
63,
2890,
18,
892,
18,
588,
1016,
12,
1726,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not self.pnav.playService(ref): | if self.pnav and not self.pnav.playService(ref): | def playService(self, ref): print "playing", ref.toString() self.currentlyPlayingServiceReference = None self.currentlyPlayingService = None if ref is None: self.stopService() return 0 if not self.pnav.playService(ref): self.currentlyPlayingServiceReference = ref return 0 return 1 | 0056054b80fede7d4c92f83033ba33159ea861ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/0056054b80fede7d4c92f83033ba33159ea861ef/Navigation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
1179,
12,
2890,
16,
1278,
4672,
1172,
315,
1601,
310,
3113,
1278,
18,
10492,
1435,
365,
18,
2972,
715,
11765,
310,
1179,
2404,
273,
599,
365,
18,
2972,
715,
11765,
310,
1179,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
1179,
12,
2890,
16,
1278,
4672,
1172,
315,
1601,
310,
3113,
1278,
18,
10492,
1435,
365,
18,
2972,
715,
11765,
310,
1179,
2404,
273,
599,
365,
18,
2972,
715,
11765,
310,
1179,
273,
... |
manufacturer_name = currLnb.unicableLnbManufacturer.value manufacturer = currLnb.unicableLnb[manufacturer_name] product_name = manufacturer.product.value sec.setLNBSatCR(manufacturer.scr[product_name].index) sec.setLNBSatCRvco(manufacturer.vco[product_name][manufacturer.scr[product_name].index].value*1000) sec.setLNBSa... | setupUnicable(currLnb.unicableLnbManufacturer, currLnb.unicableLnb) | def updateAdvanced(self, sec, slotid): try: if config.Nims[slotid].advanced.unicableconnected is not None: if config.Nims[slotid].advanced.unicableconnected.value == True: config.Nims[slotid].advanced.unicableconnectedTo.save_forced = True self.linkNIMs(sec, slotid, int(config.Nims[slotid].advanced.unicableconnectedTo.... | a39ea95f5376d25874ebfbae8f10b9e6761f368b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/a39ea95f5376d25874ebfbae8f10b9e6761f368b/NimManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23618,
12,
2890,
16,
1428,
16,
4694,
350,
4672,
775,
30,
309,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
353,
486,
599,
30,
309,
642,
18,
50,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23618,
12,
2890,
16,
1428,
16,
4694,
350,
4672,
775,
30,
309,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
353,
486,
599,
30,
309,
642,
18,
50,
120... |
self.model.updateHDF('GatedData', array(results), self.model.GetCurrentData()) | self.model.updateHDF('GatedData', array(results), self.data) | def Gate(self, event): """Capture events inside drawn gates.""" results = [] for i, d in enumerate(self.data): if self.widget.p.PointInPoly((self.widget.x[i], self.widget.y[i])): results.append(d) self.model.updateHDF('GatedData', array(results), self.model.GetCurrentData()) | bd65074dba40f66821484c6b67decd8d89c6cd29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9486/bd65074dba40f66821484c6b67decd8d89c6cd29/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31045,
12,
2890,
16,
871,
4672,
3536,
12372,
2641,
4832,
19377,
314,
815,
12123,
1686,
273,
5378,
364,
277,
16,
302,
316,
4241,
12,
2890,
18,
892,
4672,
309,
365,
18,
6587,
18,
84,
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,
31045,
12,
2890,
16,
871,
4672,
3536,
12372,
2641,
4832,
19377,
314,
815,
12123,
1686,
273,
5378,
364,
277,
16,
302,
316,
4241,
12,
2890,
18,
892,
4672,
309,
365,
18,
6587,
18,
84,
18,... |
while True: | while 1: | def gammavariate(self, alpha, beta): """Gamma distribution. Not the gamma function! | 4aa9408036856a9acf52e0804055e17317b4e3e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4aa9408036856a9acf52e0804055e17317b4e3e6/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23411,
20689,
297,
3840,
12,
2890,
16,
4190,
16,
6796,
4672,
3536,
31300,
7006,
18,
225,
2288,
326,
9601,
445,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23411,
20689,
297,
3840,
12,
2890,
16,
4190,
16,
6796,
4672,
3536,
31300,
7006,
18,
225,
2288,
326,
9601,
445,
5,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
@property | @LazyProperty | def parents(self): return tuple(GitCommit.from_git(c, self._repo) for c in self._impl.parents) | 070f74b5fddedf2600b11432b466e911e5ca2165 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/070f74b5fddedf2600b11432b466e911e5ca2165/git_repo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6298,
12,
2890,
4672,
327,
3193,
12,
11540,
5580,
18,
2080,
67,
6845,
12,
71,
16,
365,
6315,
7422,
13,
364,
276,
316,
365,
6315,
11299,
18,
12606,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6298,
12,
2890,
4672,
327,
3193,
12,
11540,
5580,
18,
2080,
67,
6845,
12,
71,
16,
365,
6315,
7422,
13,
364,
276,
316,
365,
6315,
11299,
18,
12606,
13,
2,
-100,
-100,
-100,
-100,
-100,
... |
self.streams.get_selection().set_mode(gtk.SELECTION_MULTIPLE) | self.streams_selection.set_mode(gtk.SELECTION_MULTIPLE) | def __init__(self): | 8cbdded67d2cd4af1d043eab95abc449dd591f9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/8cbdded67d2cd4af1d043eab95abc449dd591f9b/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if self.struct is None: | if not self.hasValidStructure(): | def provideParamsForTemporaryMode(self, temporaryModeName): """ NOTE: This needs to be a general API method. There are situations when | 5700be2a572d5c22a1bab6dab2a69ae2dd1cb005 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/5700be2a572d5c22a1bab6dab2a69ae2dd1cb005/BuildDna_EditCommand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5615,
1370,
1290,
11685,
2309,
12,
2890,
16,
6269,
2309,
461,
4672,
3536,
5219,
30,
1220,
4260,
358,
506,
279,
7470,
1491,
707,
18,
6149,
854,
28474,
1347,
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,
0,
0,
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,
5615,
1370,
1290,
11685,
2309,
12,
2890,
16,
6269,
2309,
461,
4672,
3536,
5219,
30,
1220,
4260,
358,
506,
279,
7470,
1491,
707,
18,
6149,
854,
28474,
1347,
2,
-100,
-100,
-100,
-100,
-10... |
def __imul__(self, q2): | def __imul__(self, n): | def __imul__(self, q2): if type(n) in numTypes: self.setangle(n*self.angle) self.__reset() return self else: raise MulQuat | 04ed189f6b763336eabc2aabefc37347c008ee88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/04ed189f6b763336eabc2aabefc37347c008ee88/VQT.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
381,
332,
972,
12,
2890,
16,
290,
4672,
225,
309,
618,
12,
82,
13,
316,
818,
2016,
30,
365,
18,
542,
4341,
12,
82,
14,
2890,
18,
4341,
13,
365,
16186,
6208,
1435,
327,
365,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
381,
332,
972,
12,
2890,
16,
290,
4672,
225,
309,
618,
12,
82,
13,
316,
818,
2016,
30,
365,
18,
542,
4341,
12,
82,
14,
2890,
18,
4341,
13,
365,
16186,
6208,
1435,
327,
365,
4... |
None, c_int | _ret_lc_concord() | # typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*); | 252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.content.close() | def lineReceived(self, line): if self.debug: print '<<< ' + line[0:10], self.state | 6ead6621eb892376303c2cd683a7c082744f2f1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/6ead6621eb892376303c2cd683a7c082744f2f1d/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
8872,
12,
2890,
16,
980,
4672,
309,
365,
18,
4148,
30,
1172,
2368,
17685,
296,
397,
980,
63,
20,
30,
2163,
6487,
365,
18,
2019,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
8872,
12,
2890,
16,
980,
4672,
309,
365,
18,
4148,
30,
1172,
2368,
17685,
296,
397,
980,
63,
20,
30,
2163,
6487,
365,
18,
2019,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
st = obspy.read(fseedfile) | st = read(fseedfile) | def test_saveCompressedWaveform(self): """ """ mseedfile = NamedTemporaryFile().name fseedfile = NamedTemporaryFile().name # initialize client client = Client() start = UTCDateTime(2008, 1, 1) end = start + 1 # MiniSEED client.saveWaveform(mseedfile, 'BW', 'MANZ', '', 'EHZ', start, end, compressed=False) stats = os.sta... | 947320f8ec777bd92bf28a04ec93bbc08a261511 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/947320f8ec777bd92bf28a04ec93bbc08a261511/test_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5688,
16841,
22368,
687,
12,
2890,
4672,
3536,
3536,
312,
12407,
768,
273,
27555,
7675,
529,
284,
12407,
768,
273,
27555,
7675,
529,
468,
4046,
1004,
1004,
273,
2445,
1435,
787,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5688,
16841,
22368,
687,
12,
2890,
4672,
3536,
3536,
312,
12407,
768,
273,
27555,
7675,
529,
284,
12407,
768,
273,
27555,
7675,
529,
468,
4046,
1004,
1004,
273,
2445,
1435,
787,
... |
FILE.write("export LD_LIBRARY_PATH") | FILE.write("export LD_LIBRARY_PATH\n") | def progress(blocks, blocksize, total): ESC = chr(27); sys.stdout.write(ESC + '[2K' + ESC+'[G') text = " %i of %i bytes (%.0f percent) complete" % (blocks*blocksize, total, float(blocks*blocksize*100)/total) sys.stdout.write(text + '\x08'*len(text)) sys.stdout.flush() | 5ff66dc64e37f9a7c6636b5707a4985d48a30bea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5491/5ff66dc64e37f9a7c6636b5707a4985d48a30bea/getbuildtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4007,
12,
7996,
16,
18440,
16,
2078,
4672,
512,
2312,
273,
4513,
12,
5324,
1769,
2589,
18,
10283,
18,
2626,
12,
41,
2312,
397,
5271,
22,
47,
11,
397,
512,
2312,
6797,
63,
43,
6134,
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,
4007,
12,
7996,
16,
18440,
16,
2078,
4672,
512,
2312,
273,
4513,
12,
5324,
1769,
2589,
18,
10283,
18,
2626,
12,
41,
2312,
397,
5271,
22,
47,
11,
397,
512,
2312,
6797,
63,
43,
6134,
9... |
logging.info('Found %d entries', len(d)) | def read_rss(self, url): logging.info('Read RSS: %s', url) if url not in rss_cache: logging.info('Feed URL not in cache, requesting...') xml = httpget(url) progs = listparser.parse(xml) if not progs: return [] d = [] for entry in progs.entries: pid = parse_entry_id(entry.id) p = programme(pid) d.append(p) logging.info(... | e9308323abd7d76cee674599e87bde273bc1afa0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11070/e9308323abd7d76cee674599e87bde273bc1afa0/iplayer2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
25151,
12,
2890,
16,
880,
4672,
2907,
18,
1376,
2668,
1994,
31481,
30,
738,
87,
2187,
880,
13,
309,
880,
486,
316,
18817,
67,
2493,
30,
2907,
18,
1376,
2668,
8141,
1976,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
25151,
12,
2890,
16,
880,
4672,
2907,
18,
1376,
2668,
1994,
31481,
30,
738,
87,
2187,
880,
13,
309,
880,
486,
316,
18817,
67,
2493,
30,
2907,
18,
1376,
2668,
8141,
1976,
486,
... | |
True if the last :meth:`two_descent` call provably correctly computed the rank. If :meth:`two_descent` hasn't been called, then it is first called by :meth:`certain` | Returns ``True`` if the last :meth:`two_descent()` call provably correctly computed the rank. If :meth:`two_descent()` hasn't been called, then it is first called by :meth:`certain()` | def certain(self): r""" True if the last :meth:`two_descent` call provably correctly computed the rank. If :meth:`two_descent` hasn't been called, then it is first called by :meth:`certain` using the default parameters. | 8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8626,
12,
2890,
4672,
436,
8395,
2860,
12176,
5510,
10335,
309,
326,
1142,
294,
27305,
28288,
15415,
67,
5569,
319,
20338,
745,
17197,
6906,
8783,
8470,
326,
6171,
18,
225,
971,
294,
27305... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8626,
12,
2890,
4672,
436,
8395,
2860,
12176,
5510,
10335,
309,
326,
1142,
294,
27305,
28288,
15415,
67,
5569,
319,
20338,
745,
17197,
6906,
8783,
8470,
326,
6171,
18,
225,
971,
294,
27305... |
if isinstance(obj, (bool, int, type(None), str)): | if isinstance(obj, (int, type(None), str)): | def writelisp(gen, obj): if isinstance(obj, (bool, int, type(None), str)): return gen.conv(obj) if isinstance(obj, (tuple, list)): content = ' '.join([writelisp(gen, elt) for elt in obj]) content = '(' + content + ')' if isinstance(obj, list): content = '#' + content elif isinstance(obj, tuple): content = "'" + content... | 46b28c8726a105cc59a8bd0d02e62eaa5959c42d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/46b28c8726a105cc59a8bd0d02e62eaa5959c42d/buildcl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6004,
23831,
12,
4507,
16,
1081,
4672,
225,
309,
1549,
12,
2603,
16,
261,
474,
16,
618,
12,
7036,
3631,
609,
3719,
30,
327,
3157,
18,
4896,
12,
2603,
13,
309,
1549,
12,
2603,
16,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6004,
23831,
12,
4507,
16,
1081,
4672,
225,
309,
1549,
12,
2603,
16,
261,
474,
16,
618,
12,
7036,
3631,
609,
3719,
30,
327,
3157,
18,
4896,
12,
2603,
13,
309,
1549,
12,
2603,
16,
261... |
self.__usertag = job.get_config('pipeline','user-tag') | try: self.__usertag = job.get_config('pipeline','user-tag') self.add_var_opt("user-tag", self.__usertag) except: self.__usertag = None def set_user_tag(self, tag): self.__usertag = tag self.add_var_opt("user-tag", self.__usertag) def get_user_tag(self): return self.__usertag | def __init__(self,job): """ job = A CondorDAGJob that can run an instance of lalapps_power. """ pipeline.CondorDAGNode.__init__(self,job) pipeline.AnalysisNode.__init__(self) self.__usertag = job.get_config('pipeline','user-tag') | 504dbdcdef43a70205d21b8d04e8ea73ca5cabfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/504dbdcdef43a70205d21b8d04e8ea73ca5cabfa/power.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4688,
4672,
3536,
1719,
273,
432,
735,
72,
280,
40,
1781,
2278,
716,
848,
1086,
392,
791,
434,
328,
287,
11411,
67,
12238,
18,
3536,
5873,
18,
12441,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4688,
4672,
3536,
1719,
273,
432,
735,
72,
280,
40,
1781,
2278,
716,
848,
1086,
392,
791,
434,
328,
287,
11411,
67,
12238,
18,
3536,
5873,
18,
12441,
280... |
self.setFaceType( KPageDialog.Tabbed ) | def __init__(self,parent,admincontext): #KDialogBase.__init__(self,KJanusWidget.Tabbed,i18n("User Account"),KDialogBase.Ok|KDialogBase.Cancel, #KDialogBase.Cancel,parent) KPageDialog.__init__( self, parent ) if os.path.exists('ui/userproperties.ui'): self.up = uic.loadUi('ui/userproperties.ui', self) self.setFaceType( ... | eb812f938fe74be7d359e6fa9fcc28e3d8c3b025 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1669/eb812f938fe74be7d359e6fa9fcc28e3d8c3b025/user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
3666,
2472,
4672,
468,
47,
6353,
2171,
16186,
2738,
972,
12,
2890,
16,
47,
46,
304,
407,
4609,
18,
5661,
2992,
16,
77,
2643,
82,
2932,
1299,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
16,
3666,
2472,
4672,
468,
47,
6353,
2171,
16186,
2738,
972,
12,
2890,
16,
47,
46,
304,
407,
4609,
18,
5661,
2992,
16,
77,
2643,
82,
2932,
1299,
... | |
relTime = g_Player.getFrameTime() - self.__startTime | relTime = g_Player.getFrameTime() - self.__startTime - self.__holdDelay | def __onFrame(self): relTime = g_Player.getFrameTime() - self.__startTime if self.__state == HoldProcessor.DOWN: if relTime > self.__holdDelay: self.__changeState(HoldProcessor.HOLDING) if self.__state == HoldProcessor.HOLDING: if relTime > self.__activateDelay: self.__changeState(HoldProcessor.ACTIVE) else: self.__hol... | b969b635def3d57083c9940a64e56e65a7fad331 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/b969b635def3d57083c9940a64e56e65a7fad331/manipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
265,
3219,
12,
2890,
4672,
1279,
950,
273,
314,
67,
12148,
18,
588,
3219,
950,
1435,
300,
365,
16186,
1937,
950,
300,
365,
16186,
21056,
6763,
309,
365,
16186,
2019,
422,
670,
1673... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
265,
3219,
12,
2890,
4672,
1279,
950,
273,
314,
67,
12148,
18,
588,
3219,
950,
1435,
300,
365,
16186,
1937,
950,
300,
365,
16186,
21056,
6763,
309,
365,
16186,
2019,
422,
670,
1673... |
self.windowOffset = 0 self.windowLength = 0 self.titleOffset = 0 self.statusOffset = 0 | def Setup(self, stack): Shell.Setup(self, stack) | 2feab6381d2f848f7922d4f6309d8eab71ea112c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/2feab6381d2f848f7922d4f6309d8eab71ea112c/roguelike.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
12,
2890,
16,
2110,
4672,
19433,
18,
7365,
12,
2890,
16,
2110,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
12,
2890,
16,
2110,
4672,
19433,
18,
7365,
12,
2890,
16,
2110,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
print "bundled_files=", bundled_files | def find_libraries(library_dirs, libraries): files = [] for lib in libraries: for dir in library_dirs: if OP.exists(OP.join(dir, lib)): D.copy_file(OP.join(dir, lib), 'pyopencv') files.append(lib) break else: raise IOError("Library %s not found." % lib) return files | 2edd5ea4850ecff5420885980b88542e4ecf7924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4310/2edd5ea4850ecff5420885980b88542e4ecf7924/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
31417,
12,
12083,
67,
8291,
16,
14732,
4672,
1390,
273,
5378,
364,
2561,
316,
14732,
30,
364,
1577,
316,
5313,
67,
8291,
30,
309,
7247,
18,
1808,
12,
3665,
18,
5701,
12,
1214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
31417,
12,
12083,
67,
8291,
16,
14732,
4672,
1390,
273,
5378,
364,
2561,
316,
14732,
30,
364,
1577,
316,
5313,
67,
8291,
30,
309,
7247,
18,
1808,
12,
3665,
18,
5701,
12,
1214... | |
verify(complex(a).__class__ is complex) | veris(complex(a).__class__, complex) | def __repr__(self): return "%.17gj%+.17g" % (self.imag, self.real) | 9479174c90f03a075db9a923423b21776350dabe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9479174c90f03a075db9a923423b21776350dabe/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
26209,
4033,
75,
78,
9,
15,
18,
4033,
75,
6,
738,
261,
2890,
18,
15374,
16,
365,
18,
7688,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
26209,
4033,
75,
78,
9,
15,
18,
4033,
75,
6,
738,
261,
2890,
18,
15374,
16,
365,
18,
7688,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if e.errno != EISDIR: | if e.errno not in (EISDIR, EINVAL, EACCES): | def loadTestsFromURL(self, url=None, file=None): if debug: print('loading url:', url) | 45d6a82d48306bb446330e439e16eb3d28ab122d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7717/45d6a82d48306bb446330e439e16eb3d28ab122d/barcodetest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14650,
1265,
1785,
12,
2890,
16,
880,
33,
7036,
16,
585,
33,
7036,
4672,
309,
1198,
30,
1172,
2668,
15174,
880,
30,
2187,
880,
13,
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,
1262,
14650,
1265,
1785,
12,
2890,
16,
880,
33,
7036,
16,
585,
33,
7036,
4672,
309,
1198,
30,
1172,
2668,
15174,
880,
30,
2187,
880,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
of all members of the group, according to the content of the | of all members of the group, according to the content of the | def skel(req, name, sure = False, apply_skel = configuration.users.default_skel): """ TO BE IMPLEMENTED ! reapply a user's skel with confirmation.""" users.reload() profiles.reload() groups.reload() title = _("Skeleton reapplying for group %s") % name data = '%s%s' % (w.backto(), __groups_actions(title)) if not sur... | e74a9415e90d5a3af83e10abed2f1876ae4e528a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/e74a9415e90d5a3af83e10abed2f1876ae4e528a/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4343,
292,
12,
3658,
16,
508,
16,
3071,
273,
1083,
16,
2230,
67,
7771,
292,
273,
1664,
18,
5577,
18,
1886,
67,
7771,
292,
4672,
3536,
8493,
9722,
15694,
28485,
6404,
401,
283,
9010,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4343,
292,
12,
3658,
16,
508,
16,
3071,
273,
1083,
16,
2230,
67,
7771,
292,
273,
1664,
18,
5577,
18,
1886,
67,
7771,
292,
4672,
3536,
8493,
9722,
15694,
28485,
6404,
401,
283,
9010,
27... |
print """low confidence encoding detection, use utf8 encoding""" encoding = 'utf8' utest = test.decode(encoding) except UnicodeDecodeError, e: print "can't recognize your language, set to sys.stdout.encoding" utest = test.decode('utf8') except ImportError, e: if verbose: print "proceed no chardet mode" utest = test... | print "chardet", det if det['confidence'] >= 0.8: encoding = chardet.detect(text)['encoding'] else: if verbose: print """low confidence encoding detection, use utf8 encoding""" encoding = 'utf8' utext = text.decode(encoding) except UnicodeDecodeError, e: print "can't recognize your language, \ set to sys.stdout.enc... | def convertor(test, verbose=False, encoding="", outcoding=""): """ convert zhpy source (Chinese) to Python Source. annotator will be called automatically. | 544d69129cabeb48f747adc9fdf3d01ef7030fab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1969/544d69129cabeb48f747adc9fdf3d01ef7030fab/zhpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
280,
12,
3813,
16,
3988,
33,
8381,
16,
2688,
1546,
3113,
596,
2014,
1546,
6,
4672,
3536,
1765,
30484,
2074,
1084,
261,
782,
25331,
13,
358,
6600,
4998,
18,
225,
6545,
639,
903,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
280,
12,
3813,
16,
3988,
33,
8381,
16,
2688,
1546,
3113,
596,
2014,
1546,
6,
4672,
3536,
1765,
30484,
2074,
1084,
261,
782,
25331,
13,
358,
6600,
4998,
18,
225,
6545,
639,
903,
5... |
box.apply(printer) | def test_box(): box = Box(Vector3(1,1,1)) box.apply(printer) eval_code(box) | 5af742fb7bba9aa7cc5692e378c2cd775320b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/799/5af742fb7bba9aa7cc5692e378c2cd775320b880/test_pyprinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2147,
13332,
3919,
273,
8549,
12,
5018,
23,
12,
21,
16,
21,
16,
21,
3719,
5302,
67,
710,
12,
2147,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
2147,
13332,
3919,
273,
8549,
12,
5018,
23,
12,
21,
16,
21,
16,
21,
3719,
5302,
67,
710,
12,
2147,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if self.prev_boldrow <> -1: self.currentdata[self.prev_boldrow] = [self.currentdata[self.prev_boldrow][0], make_bold(self.currentdata[self.prev_boldrow][1])] | def searchfilter_loop(self): while self.filterbox_visible: # copy the last command or pattern safely self.filterbox_cond.acquire() while(self.filterbox_cmd_buf == '$$$DONE###'): self.filterbox_cond.wait() todo = self.filterbox_cmd_buf self.filterbox_cond.release() matches = gtk.ListStore(int, str) matches.clear() self.... | 19ea9c9d8238dd2a787965ed962a5c16ea21d13c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/19ea9c9d8238dd2a787965ed962a5c16ea21d13c/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2188,
67,
6498,
12,
2890,
4672,
1323,
365,
18,
2188,
2147,
67,
8613,
30,
468,
1610,
326,
1142,
1296,
578,
1936,
15303,
365,
18,
2188,
2147,
67,
10013,
18,
1077,
1039,
1435,
1323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2188,
67,
6498,
12,
2890,
4672,
1323,
365,
18,
2188,
2147,
67,
8613,
30,
468,
1610,
326,
1142,
1296,
578,
1936,
15303,
365,
18,
2188,
2147,
67,
10013,
18,
1077,
1039,
1435,
1323,
... | |
continuation_ws=' '): | continuation_ws=' ', errors='strict'): | def __init__(self, s=None, charset=None, maxlinelen=None, header_name=None, continuation_ws=' '): """Create a MIME-compliant header that can contain many character sets. | f4fdff715af7a9d595444065c523f8de5303895d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f4fdff715af7a9d595444065c523f8de5303895d/Header.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
33,
7036,
16,
4856,
33,
7036,
16,
943,
7511,
292,
275,
33,
7036,
16,
1446,
67,
529,
33,
7036,
16,
17378,
67,
4749,
2218,
2265,
1334,
2218,
13948,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
33,
7036,
16,
4856,
33,
7036,
16,
943,
7511,
292,
275,
33,
7036,
16,
1446,
67,
529,
33,
7036,
16,
17378,
67,
4749,
2218,
2265,
1334,
2218,
13948,
... |
visit_revision = depart_revision = lambda self,node: None | def visit_revision(self, node): raise nodes.SkipNode | def depart_reference(self, node): self.body.append('</%s>' % (self.context.pop(),)) | d2ea2631a31ca67e6d03da659353adf4e941a9bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/d2ea2631a31ca67e6d03da659353adf4e941a9bc/docbook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
6180,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
9,
87,
1870,
738,
261,
2890,
18,
2472,
18,
5120,
9334,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
6180,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
9,
87,
1870,
738,
261,
2890,
18,
2472,
18,
5120,
9334,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
""") expectedFullMessage = 'None\n%s%s' % (expectedOutMessage, expectedErrMessage) | """).replace('\n', os.linesep) expectedFullMessage = 'None%s%s%s' % (os.linesep, expectedOutMessage, expectedErrMessage) | def testBufferOutputAddErrorOrFailure(self): for message_attr, add_attr, include_error in [ ('errors', 'addError', True), ('failures', 'addFailure', False), ('errors', 'addError', True), ('failures', 'addFailure', False) ]: result = self.getStartedResult() buffered_out = sys.stdout buffered_err = sys.stderr result._ori... | 52d784712d3f8166a42a5f0fa0b668d8ae77f594 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7464/52d784712d3f8166a42a5f0fa0b668d8ae77f594/test_result.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
2... |
if self._cmd(output, self._buildDirname, self._dict['Post-install-command']): return "post-install %s: running \"%s\" failed" % \ | if _cmd(output, self._buildDirname, self._dict['Post-install-command']): return "%s: post-install: running \"%s\" failed" % \ | def installPackageOnly(self, output=None): """Install a single source package. If output is given it should be a file-like object and it will receive a log of what happened.""" print 'PimpPackage_binary installPackageOnly' msgs = [] if self._dict.has_key('Pre-install-command'): msg.append("%s: Pre-install-command ign... | f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
3386,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
6410,
279,
2202,
1084,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
903,
6798,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
3386,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
6410,
279,
2202,
1084,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
903,
6798,
279,
... |
ballBody.setLinearVel((ax,ay,(az+mouseAy[1])/2)) | ballBody.setLinearVel((ax,ay, (az+mouseAy[1])/2)) | def near_callback(args, geom1, geom2): ##TODO: 4P generalization global BLOCK, kicker, mouseAy #global called #called = called + 1 contacts=ode.collide(geom1, geom2) world, contactgroup = args for c in contacts: #if not ((geom1 == ballGeom) or (geom2 == ballGeom)): # print "rong collision!" if (geom1 in kickerGeom... | 88ad57454a30ced9525eee1f3216c7e1b45ef7fb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/88ad57454a30ced9525eee1f3216c7e1b45ef7fb/kickern.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
16,
7644,
37,
93,
468,
6347,
2566,
225,
468,
11777,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
16,
7644,
37,
93,
468,
6347,
2566,
225,
468,
11777,
273,
... |
gnome2openhatch = {'general': 'GNOME (general)' | gnome2openhatch = {'general': 'GNOME (general)', | def project_finder_plugin(bug_elt): import mysite.search.models project_name = bug_elt.xpath('product')[0].text | f08172f40696bf16276ccd395518ac0ec77fc655 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/f08172f40696bf16276ccd395518ac0ec77fc655/gnome_love.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
67,
15356,
67,
4094,
12,
925,
67,
20224,
4672,
1930,
312,
1900,
1137,
18,
3072,
18,
7665,
1984,
67,
529,
273,
7934,
67,
20224,
18,
18644,
2668,
5896,
6134,
63,
20,
8009,
955,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
67,
15356,
67,
4094,
12,
925,
67,
20224,
4672,
1930,
312,
1900,
1137,
18,
3072,
18,
7665,
1984,
67,
529,
273,
7934,
67,
20224,
18,
18644,
2668,
5896,
6134,
63,
20,
8009,
955,
2,
... |
try: icache = open("makepanda-icache",'rb') | iCachePath=PREFIX+"/makepanda-icache" try: icache = open(iCachePath,'rb') | def PkgSelected(pkglist, pkg): if (pkglist.count(pkg)==0): return(0); if (OMIT.count(pkg)): return(0); return(1); | 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,
453,
14931,
7416,
12,
10657,
1098,
16,
3475,
4672,
309,
261,
10657,
1098,
18,
1883,
12,
10657,
13,
631,
20,
4672,
327,
12,
20,
1769,
309,
261,
1872,
1285,
18,
1883,
12,
10657,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
453,
14931,
7416,
12,
10657,
1098,
16,
3475,
4672,
309,
261,
10657,
1098,
18,
1883,
12,
10657,
13,
631,
20,
4672,
327,
12,
20,
1769,
309,
261,
1872,
1285,
18,
1883,
12,
10657,
3719,
30... |
f.write(" def getSoundLocation()\n") | f.write(" def getSoundLocations()\n") | f.write(" def getSoundLocation()\n") | 92411da2071ae39ec9c72e75b49199c3abce88dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2792/92411da2071ae39ec9c72e75b49199c3abce88dc/NewModuleWizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
18,
2626,
2932,
565,
1652,
1322,
772,
2735,
1435,
64,
82,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
18,
2626,
2932,
565,
1652,
1322,
772,
2735,
1435,
64,
82,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return tuple(self.attribute.transpose().ravel()) | intermediate = tuple(value.transpose().ravel()) | def read_from_attribute(self): if self.transpose: return tuple(self.attribute.transpose().ravel()) else: return tuple(self.attribute.ravel()) | 769a8ce503eb66a044fef2c363ed484a6a209b55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11052/769a8ce503eb66a044fef2c363ed484a6a209b55/composed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2080,
67,
4589,
12,
2890,
4672,
309,
365,
18,
2338,
4150,
30,
12110,
273,
3193,
12,
1132,
18,
2338,
4150,
7675,
354,
941,
10756,
469,
30,
327,
3193,
12,
2890,
18,
4589,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2080,
67,
4589,
12,
2890,
4672,
309,
365,
18,
2338,
4150,
30,
12110,
273,
3193,
12,
1132,
18,
2338,
4150,
7675,
354,
941,
10756,
469,
30,
327,
3193,
12,
2890,
18,
4589,
18,
... |
We can change the interpolation type | We can change the interpolation type. | def list_plot3d(v, interpolation_type='default', texture="automatic", point_list=None,**kwds): """ A 3-dimensional plot of a surface defined by the list $v$ of points in 3-dimensional space. INPUT: v -- something that defines a set of points in 3 space, for example: * a matrix * a list of 3-tuples * a list of lists (a... | d0f0fc2115cde9e1670bebb42ac1add0bbca76c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d0f0fc2115cde9e1670bebb42ac1add0bbca76c1/list_plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434... |
return nargs, ndefaults | return nargs, ndefaults | def _get_nargs(obj): if not callable(obj): raise TypeError, "Object is not callable." if hasattr(obj,'func_code'): fcode = obj.func_code nargs = fcode.co_argcount if obj.func_defaults is not None: ndefaults = len(obj.func_defaults) else: ndefaults = 0 if isinstance(obj, types.MethodType): nargs -= 1 return nargs, ndefa... | c7737e63883e9ca4392f372d5a55978ed99dc23e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/c7737e63883e9ca4392f372d5a55978ed99dc23e/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
82,
1968,
12,
2603,
4672,
309,
486,
4140,
12,
2603,
4672,
1002,
3580,
16,
315,
921,
353,
486,
4140,
1199,
309,
3859,
12,
2603,
11189,
644,
67,
710,
11,
4672,
284,
710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
82,
1968,
12,
2603,
4672,
309,
486,
4140,
12,
2603,
4672,
1002,
3580,
16,
315,
921,
353,
486,
4140,
1199,
309,
3859,
12,
2603,
11189,
644,
67,
710,
11,
4672,
284,
710,
... |
tableString+=emptyRowString%myColor | tableString+=emptyRowString | def generateMOINMOINTable(self,tableType="BOTH"): """ Return a MOINMOIN table. """ ligo=["L1","H1","H2","V1"] channelWiki="https://ldas-jobs.ligo.caltech.edu/cgi-bin/chanwiki?%s" if self.triggerTime==int(-1): return "" myColor="grey" tableString="" titleString="" emptyRowString="" rowString="" for i,col in enumerate(se... | 5800af6be75ac2540e1e98d21cc7afadf15bf2aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/5800af6be75ac2540e1e98d21cc7afadf15bf2aa/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
5980,
706,
5980,
706,
1388,
12,
2890,
16,
2121,
559,
1546,
38,
18307,
6,
4672,
3536,
2000,
279,
490,
6266,
5980,
706,
1014,
18,
3536,
16917,
83,
33,
9614,
48,
21,
15937,
44,
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,
2103,
5980,
706,
5980,
706,
1388,
12,
2890,
16,
2121,
559,
1546,
38,
18307,
6,
4672,
3536,
2000,
279,
490,
6266,
5980,
706,
1014,
18,
3536,
16917,
83,
33,
9614,
48,
21,
15937,
44,
21,
... |
def decode(cls, value): return uri.get_reference(value) decode = classmethod(decode) | def decode(cls, value): return uri.get_reference(value) | 8bbb2a3fb14f7652affdf75eb3a99e780e8e2232 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/8bbb2a3fb14f7652affdf75eb3a99e780e8e2232/IO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
6429,
16,
460,
4672,
327,
2003,
18,
588,
67,
6180,
12,
1132,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
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,
2495,
12,
6429,
16,
460,
4672,
327,
2003,
18,
588,
67,
6180,
12,
1132,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
def replace(self, filename, arcname=None, compress_type=None): """Delete arcname, and put the bytes from filename into the archive under the name arcname.""" deleteName = arcname if deleteName is None: deleteName = filename self.delete(deleteName) self.write(filename, arcname, compress_type) def replacestr(self, zinf... | def replace(self, filename, arcname=None, compress_type=None): """Delete arcname, and put the bytes from filename into the archive under the name arcname.""" deleteName = arcname if deleteName is None: deleteName = filename self.delete(deleteName) self.write(filename, arcname, compress_type) def replacestr(self, zinf... | def _calculate_file_offsets(self): for zip_info in self.filelist: self.fp.seek(zip_info.header_offset, 0) fheader = self.fp.read(30) if fheader[0:4] != stringFileHeader: raise BadZipfile, "Bad magic number for file header" fheader = struct.unpack(structFileHeader, fheader) # file_offset is computed here, since the extr... | 8bfffc74e2e9204fb08d82466a9875db9b91dddd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/8bfffc74e2e9204fb08d82466a9875db9b91dddd/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
768,
67,
16542,
12,
2890,
4672,
364,
3144,
67,
1376,
316,
365,
18,
7540,
5449,
30,
365,
18,
7944,
18,
16508,
12,
4450,
67,
1376,
18,
3374,
67,
3348,
16,
374,
13,
284,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
768,
67,
16542,
12,
2890,
4672,
364,
3144,
67,
1376,
316,
365,
18,
7540,
5449,
30,
365,
18,
7944,
18,
16508,
12,
4450,
67,
1376,
18,
3374,
67,
3348,
16,
374,
13,
284,... |
analyzeNodeDeps (self.tree(variants), classDeps) | analyzeNodeDeps (self.tree(variants), classDeps, False) | def buildShallowDeps(variants): | e75c23a655ca9ec96cd3e7688c44053910d135e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/e75c23a655ca9ec96cd3e7688c44053910d135e8/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1555,
5965,
14430,
12,
15886,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1555,
5965,
14430,
12,
15886,
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,
... |
r""" | """ | def polynomials(self, X=None, Y=None, degree=2, groebner=False): r""" Return a list of polynomials satisfying this S-box. | dd81b4a97db8b232434d8623d237dba45e418834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dd81b4a97db8b232434d8623d237dba45e418834/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
3536,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
3536,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
348,
... |
(rc,u) = semanage_user_query(self.sh, k) | (rc, u) = semanage_user_query(self.sh, k) | def __modify(self, name, roles = [], selevel = "", serange = "", prefix = ""): | 8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
12,
2890,
16,
508,
16,
4900,
273,
5378,
16,
357,
73,
941,
273,
23453,
703,
726,
273,
23453,
1633,
273,
1408,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
12,
2890,
16,
508,
16,
4900,
273,
5378,
16,
357,
73,
941,
273,
23453,
703,
726,
273,
23453,
1633,
273,
1408,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for localeName, localizedStrings in project.locales.iteritems(): if not focusedLocaleName or focusedLocaleName == localeName: if localizedStrings.name in translations: translation = translations[localizedStrings.name] else: translation = Translation(localizedStrings.name) translation.open(".", "2") translations[local... | sourceStrings.save() | def mergeProjects(projects, sourceLocaleName, focusedLocaleName=None, verbose=False, dryRun=False): translations = {} for project in projects: sourceStrings = project.condenseStringSourceFiles() for localeName, localizedStrings in project.locales.iteritems(): if not focusedLocaleName or focusedLocaleName == localeNam... | adf957b6324ba06ddeb6c4044ea1f2ce6d93bda9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11667/adf957b6324ba06ddeb6c4044ea1f2ce6d93bda9/diffstrings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
15298,
12,
13582,
16,
1084,
3916,
461,
16,
22397,
3916,
461,
33,
7036,
16,
3988,
33,
8381,
16,
26147,
33,
8381,
4672,
7863,
273,
2618,
225,
364,
1984,
316,
10137,
30,
1084,
7957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
15298,
12,
13582,
16,
1084,
3916,
461,
16,
22397,
3916,
461,
33,
7036,
16,
3988,
33,
8381,
16,
26147,
33,
8381,
4672,
7863,
273,
2618,
225,
364,
1984,
316,
10137,
30,
1084,
7957,
... |
elif len(args) == 0: | elif len(args) == 0 or len(args) == 1 and type(args[0]) == types.NoneType: | def __createOnSequence(self, args): if len(args) == 1 and isSequence(args[0]): self.__createOnSequence(args[0]) elif len(args) == 2: if Orientation.canCreateOn(args[0]) \ and Vector.canCreateOn(args[1]): self._o = Orientation(args[0]) self._v = Vector(args[1]) elif Orientation.canCreateOn(args[1]) \ and Vector.canCreat... | 4f95a538834856b8ceb34e88385a1b0e8cf6a699 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1736/4f95a538834856b8ceb34e88385a1b0e8cf6a699/transform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
1398,
4021,
12,
2890,
16,
833,
4672,
309,
562,
12,
1968,
13,
422,
404,
471,
353,
4021,
12,
1968,
63,
20,
65,
4672,
365,
16186,
2640,
1398,
4021,
12,
1968,
63,
20,
5717,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
1398,
4021,
12,
2890,
16,
833,
4672,
309,
562,
12,
1968,
13,
422,
404,
471,
353,
4021,
12,
1968,
63,
20,
65,
4672,
365,
16186,
2640,
1398,
4021,
12,
1968,
63,
20,
5717,
1... |
statusText = '[Folder view]: %s\t%d item(s)' \ % (os.getcwd (), len (self.model.items) - 1) | statusText = u'[Folder view]: %s\t%d item(s)' \ % (os.getcwdu (), len (self.model.items) - 1) | def afterDirChange (self): self.setSelectionOnCurrItem () # in the line below, I'm subtracting 1 from number of items because # of '..' pseudoitem statusText = '[Folder view]: %s\t%d item(s)' \ % (os.getcwd (), len (self.model.items) - 1) self.view.getFrame ().statusBar.SetStatusText (statusText) | 5f003fa66305ac8935c5608a773efc5e9baee6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9028/5f003fa66305ac8935c5608a773efc5e9baee6db/candy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
1621,
3043,
261,
2890,
4672,
365,
18,
542,
6233,
1398,
20143,
1180,
1832,
468,
316,
326,
980,
5712,
16,
467,
17784,
10418,
310,
404,
628,
1300,
434,
1516,
2724,
468,
434,
13222,
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,
1839,
1621,
3043,
261,
2890,
4672,
365,
18,
542,
6233,
1398,
20143,
1180,
1832,
468,
316,
326,
980,
5712,
16,
467,
17784,
10418,
310,
404,
628,
1300,
434,
1516,
2724,
468,
434,
13222,
12... |
try: | try: | def find_site(): """Find the site by looking at the environment.""" try: settings_module = os.environ['DJANGO_SETTINGS_MODULE'] except KeyError: raise AssertionError("DJANGO_SETTINGS_MODULE not set.") settingsl = settings_module.split('.') site = __import__(settingsl[0]) settings = __import__(settings_module, {}, {}, ... | 6bb4ee4e3413db8bff6866226b96bc305a1c8cd3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/171/6bb4ee4e3413db8bff6866226b96bc305a1c8cd3/load_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4256,
13332,
3536,
3125,
326,
2834,
635,
7849,
622,
326,
3330,
12123,
775,
30,
1947,
67,
2978,
273,
1140,
18,
28684,
3292,
40,
46,
31630,
67,
19428,
67,
12194,
3546,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4256,
13332,
3536,
3125,
326,
2834,
635,
7849,
622,
326,
3330,
12123,
775,
30,
1947,
67,
2978,
273,
1140,
18,
28684,
3292,
40,
46,
31630,
67,
19428,
67,
12194,
3546,
1335,
4999... |
dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force ... | dispCPKActionText =\ "<u><b>Display CPK</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms "\ "or chunks to <b>CPK</b> mode. Atoms are rendered as "\ "spheres with a size equal to 0.78 of their VdW radius, "\ "corresponding to a contact f... | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their... | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... |
language='c++' | depends = ['sage/combinat/partitions_c.h'], language='c++' | def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False | 12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
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,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,... |
"""Panel for PeopleTank.""" mainMenu = Links() itemMenu = Links() def __init__(self,parent): """Initialize.""" data = bosh.PeopleData() SashTankPanel.__init__(self,data,parent) left,right = self.left,self.right self.gList = balt.Tank(left,data, karmacons, PeoplePanel.mainMenu, PeoplePanel.itemMenu, details=self, styl... | """Panel for PeopleTank.""" mainMenu = Links() itemMenu = Links() def __init__(self,parent): """Initialize.""" data = bosh.PeopleData() SashTankPanel.__init__(self,data,parent) left,right = self.left,self.right self.gList = balt.Tank(left,data, karmacons, PeoplePanel.mainMenu, PeoplePanel.itemMenu, details=self, styl... | def OnCloseWindow(self): """To be called when containing frame is closing. Use for saving data, scrollpos, etc.""" if bosh.messages: bosh.messages.save() settings['bash.messages.scrollPos'] = gMessageList.vScrollPos | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4605,
3829,
12,
2890,
4672,
3536,
774,
506,
2566,
1347,
4191,
2623,
353,
7647,
18,
2672,
364,
12392,
501,
16,
5532,
917,
16,
5527,
12123,
309,
324,
17636,
18,
6833,
30,
324,
17636,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4605,
3829,
12,
2890,
4672,
3536,
774,
506,
2566,
1347,
4191,
2623,
353,
7647,
18,
2672,
364,
12392,
501,
16,
5532,
917,
16,
5527,
12123,
309,
324,
17636,
18,
6833,
30,
324,
17636,... |
opts.update(url.query) util.coerce_kw_type(opts, 'use_ansi', bool) | if 'mode' in url.query: opts['mode'] = url.query['mode'] if isinstance(opts['mode'], basestring): mode = opts['mode'].upper() if mode == 'SYSDBA': opts['mode'] = self.dbapi.SYSDBA elif mode == 'SYSOPER': opts['mode'] = self.dbapi.SYSOPER else: util.coerce_kw_type(opts, 'mode', int) | def create_connect_args(self, url): if url.database: # if we have a database, then we have a remote host port = url.port if port: port = int(port) else: port = 1521 dsn = self.dbapi.makedsn(url.host,port,url.database) else: # we have a local tnsname dsn = url.host opts = dict( user=url.username, password=url.password, ... | d3fb340bc2a3729ed142b1e3211d018e688aa385 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/d3fb340bc2a3729ed142b1e3211d018e688aa385/oracle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3612,
67,
1968,
12,
2890,
16,
880,
4672,
309,
880,
18,
6231,
30,
468,
309,
732,
1240,
279,
2063,
16,
1508,
732,
1240,
279,
2632,
1479,
1756,
273,
880,
18,
655,
309,
1756,
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,
752,
67,
3612,
67,
1968,
12,
2890,
16,
880,
4672,
309,
880,
18,
6231,
30,
468,
309,
732,
1240,
279,
2063,
16,
1508,
732,
1240,
279,
2632,
1479,
1756,
273,
880,
18,
655,
309,
1756,
30... |
'shortdescr': short_descr, 'longdescr': long_descr, | 'descr': descr, | def __edit_update_patch(pname, options): """Edit the given patch interactively. """ patch = crt_series.get_patch(pname) if options.diff_opts: if not options.diff: raise CmdException, '--diff-opts only available with --diff' diff_flags = options.diff_opts.split() else: diff_flags = [] # generate the file to be edited ... | 7e301a7348d0b3006ffa7b2309aa6f40cc29a292 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/7e301a7348d0b3006ffa7b2309aa6f40cc29a292/edit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4619,
67,
2725,
67,
2272,
12,
84,
529,
16,
702,
4672,
3536,
4666,
326,
864,
4729,
16592,
4492,
18,
3536,
4729,
273,
30677,
67,
10222,
18,
588,
67,
2272,
12,
84,
529,
13,
225,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4619,
67,
2725,
67,
2272,
12,
84,
529,
16,
702,
4672,
3536,
4666,
326,
864,
4729,
16592,
4492,
18,
3536,
4729,
273,
30677,
67,
10222,
18,
588,
67,
2272,
12,
84,
529,
13,
225,
3... |
exts.append( Extension('pyexpat', ['pyexpat.c'], libraries = ['expat']) ) | defs = None if find_file(inc_dirs, 'expat.h'): defs = [('HAVE_EXPAT_H', 1)] elif find_file(inc_dirs, 'xmlparse.h'): defs = [] if defs is not None: exts.append( Extension('pyexpat', ['pyexpat.c'], define_macros = defs, libraries = ['expat']) ) | def detect_modules(self): # XXX this always gets an empty list -- hardwiring to # a fixed list lib_dirs = self.compiler.library_dirs[:] lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib'] exts = [] | fa7e368ba0a97191af6ffa96902ef92acab87183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fa7e368ba0a97191af6ffa96902ef92acab87183/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
11329,
333,
3712,
5571,
392,
1008,
666,
1493,
7877,
91,
11256,
358,
468,
279,
5499,
666,
2561,
67,
8291,
273,
365,
18,
9576,
18,
12083,
67,
8291,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
11329,
333,
3712,
5571,
392,
1008,
666,
1493,
7877,
91,
11256,
358,
468,
279,
5499,
666,
2561,
67,
8291,
273,
365,
18,
9576,
18,
12083,
67,
8291,
1... |
if child is not None: return child.text and construct(child.text) or None | if child is not None and child.text: return construct(child.text) | def get_child_text(parent, tag, construct=unicode): """Find a child node by tag; pass its text through a constructor. Returns None if no matching child is found. """ child = parent.find(_ns(tag)) if child is not None: return child.text and construct(child.text) or None | 6e2eac9612f600507491c3bb45fc19ffdc987169 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/6e2eac9612f600507491c3bb45fc19ffdc987169/PhyloXMLIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3624,
67,
955,
12,
2938,
16,
1047,
16,
4872,
33,
9124,
4672,
3536,
3125,
279,
1151,
756,
635,
1047,
31,
1342,
2097,
977,
3059,
279,
3885,
18,
225,
2860,
599,
309,
1158,
3607,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3624,
67,
955,
12,
2938,
16,
1047,
16,
4872,
33,
9124,
4672,
3536,
3125,
279,
1151,
756,
635,
1047,
31,
1342,
2097,
977,
3059,
279,
3885,
18,
225,
2860,
599,
309,
1158,
3607,
... |
unicode_me = False, default='auto') | unicode_me = False, default='auto', prefix=prefix) | def import_projects(parsed_data): # This could prompt the user, asking: # "Want us to import projects? Say no if you have already # added the projects to the new Pootle DB in the web UI." data = parsed_data.__root__._assignments # Is this really the right way? prefix = 'Pootle.projects.' # Filter out unrelated keys k... | b258c8ea0266b77ff7c47a2a0f3ddc79f40a8dc8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/b258c8ea0266b77ff7c47a2a0f3ddc79f40a8dc8/import_old_prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
13582,
12,
10817,
67,
892,
4672,
468,
1220,
3377,
6866,
326,
729,
16,
29288,
30,
468,
315,
59,
970,
584,
358,
1930,
10137,
35,
348,
528,
1158,
309,
1846,
1240,
1818,
468,
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,
1930,
67,
13582,
12,
10817,
67,
892,
4672,
468,
1220,
3377,
6866,
326,
729,
16,
29288,
30,
468,
315,
59,
970,
584,
358,
1930,
10137,
35,
348,
528,
1158,
309,
1846,
1240,
1818,
468,
309... |
union_foo.append(a_records.where(whereclause)) | if a_records: union_foo.append(a_records.where(whereclause)) | def _get_dns_records( self, tid=None, typename=None, id=None, name=None, content=None, mac=None, changed=None, address=None ): """ Get DNS Records @param tid: a database DNS record type ID @param name: the name of this DNS record for filtering @param content: the content field @param mac: filter on a mac address @para... | 31450fd481872ac4921f23e93529a243c1e9e13d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7602/31450fd481872ac4921f23e93529a243c1e9e13d/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
14926,
67,
7094,
12,
365,
16,
11594,
33,
7036,
16,
26735,
33,
7036,
16,
612,
33,
7036,
16,
508,
33,
7036,
16,
913,
33,
7036,
16,
5318,
33,
7036,
16,
3550,
33,
7036,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
14926,
67,
7094,
12,
365,
16,
11594,
33,
7036,
16,
26735,
33,
7036,
16,
612,
33,
7036,
16,
508,
33,
7036,
16,
913,
33,
7036,
16,
5318,
33,
7036,
16,
3550,
33,
7036,
1... |
self.assertRaises(ValueError, time.strftime, '', | self.assertRaises(ValueError, func, | def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple (0 is valid for *all* values). | e5bdf5740529b4ba238a2559495df94fbf74c768 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e5bdf5740529b4ba238a2559495df94fbf74c768/test_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.