rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
self.serverSocket.push(cooked + '\r\n') | self.serverSocket.push(cooked) | def found_terminator(self): """Asynchat override.""" verb = self.request.strip().upper() if verb == 'KILL': self.socket.shutdown(2) self.close() raise SystemExit | ee1dfb7d5ed0e8c3724fa999640a7317aaf4a67b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/ee1dfb7d5ed0e8c3724fa999640a7317aaf4a67b/smtpproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
6405,
273,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
309,
6405,
422,
296,
47,
15125,
4278,
365,
18,
7814,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
6405,
273,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
309,
6405,
422,
296,
47,
15125,
4278,
365,
18,
7814,
18,
... |
Compares strings after stripping off 'The' to be "smarter" Also obviously ignores the full path when looking for 'The' | Compares strings after stripping off 'The' and 'A' to be 'smarter' Also obviously ignores the full path when looking for 'The' and 'A' | def smartsort(x,y): # A compare function for use in list.sort() """ Compares strings after stripping off 'The' to be "smarter" Also obviously ignores the full path when looking for 'The' """ m = os.path.basename(x) n = os.path.basename(y) if m.find('The ') == 0: m = m.replace('The ','',1) if n.find('The ') == 0: n = n... | 547b910d2acd2b253c27764814e7d3eec82cc495 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/547b910d2acd2b253c27764814e7d3eec82cc495/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13706,
3804,
12,
92,
16,
93,
4672,
468,
432,
3400,
445,
364,
999,
316,
666,
18,
3804,
1435,
3536,
5427,
4807,
2064,
1839,
2569,
1382,
3397,
296,
1986,
11,
471,
296,
37,
11,
358,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13706,
3804,
12,
92,
16,
93,
4672,
468,
432,
3400,
445,
364,
999,
316,
666,
18,
3804,
1435,
3536,
5427,
4807,
2064,
1839,
2569,
1382,
3397,
296,
1986,
11,
471,
296,
37,
11,
358,
506,
... |
self.Bind( wx.EVT_BUTTON, self.OnTestResizeDivisionButton, btn ) | self.Bind( wx.EVT_BUTTON, self.OnButtonTestResizeDivision, btn ) | def __init__( self, parent, log ): wx.Panel.__init__( self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE ) self.log = log | 6d021842b3ffdeb8b9c605b4f0ac48e94294bf83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6d021842b3ffdeb8b9c605b4f0ac48e94294bf83/ColumnHeader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,
16,
2154,
33,
27226,
18,
3417,
67,
18111,
67,
862,
4066,
3217,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
365,
16,
982,
16,
613,
262,
30,
7075,
18,
5537,
16186,
2738,
972,
12,
365,
16,
982,
16,
300,
21,
16,
2154,
33,
27226,
18,
3417,
67,
18111,
67,
862,
4066,
3217,
... |
name = m.group (1) | name = m.group (1) | def read_encoding (file): sys.stderr.write(_("Using encoding file: `%s'\n") % file) str = open (file).read () str = re.sub ("%.*", '', str) str = re.sub ("[\n\t \f]+", ' ', str) m = re.search ('/([^ ]+) \[([^\]]+)\] def', str) if not m: raise 'Encoding file invalid.' name = m.group (1) cod = m.group (2) cod = re.sub ... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
5999,
261,
768,
4672,
2589,
18,
11241,
18,
2626,
24899,
2932,
7736,
2688,
585,
30,
12430,
87,
8314,
82,
7923,
738,
585,
13,
225,
609,
273,
1696,
261,
768,
2934,
896,
1832,
609... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5999,
261,
768,
4672,
2589,
18,
11241,
18,
2626,
24899,
2932,
7736,
2688,
585,
30,
12430,
87,
8314,
82,
7923,
738,
585,
13,
225,
609,
273,
1696,
261,
768,
2934,
896,
1832,
609... |
strip --strip-all "$PREFIX/bin/avformat-52.dll strip --strip-all "$PREFIX/bin/swscale-0.dll strip --strip-all "$PREFIX/bin/avcodec-52.dll strip --strip-all "$PREFIX/bin/avutil-50.dll | strip --strip-all "$PREFIX/bin/avformat-52.dll" strip --strip-all "$PREFIX/bin/swscale-0.dll" strip --strip-all "$PREFIX/bin/avcodec-52.dll" strip --strip-all "$PREFIX/bin/avutil-50.dll" | cat > portmidi.def << 'THE_END' | d8e7af12220da81641445ed5352cb8e24da1e427 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d8e7af12220da81641445ed5352cb8e24da1e427/msys_build_deps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6573,
405,
1756,
13138,
77,
18,
536,
2296,
296,
24644,
67,
4415,
11,
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,
6573,
405,
1756,
13138,
77,
18,
536,
2296,
296,
24644,
67,
4415,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if cnt: | if not cnt: | def _result_get(x, keys): if x[1] in keys: return False keys.append(x[1]) if x[3]: model,id = x[2].split(',') id = int(id) fields = self.pool.get(model).fields_get_keys(cr, uid) pos = 0 while pos<len(fields): if fields[pos] in ('report_sxw_content', 'report_rml_content', 'report_sxw', 'report_rml', 'report_sxw_content_... | fa369ce13c73f32d8763e070322821cfd6a81789 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fa369ce13c73f32d8763e070322821cfd6a81789/ir_values.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2088,
67,
588,
12,
92,
16,
1311,
4672,
309,
619,
63,
21,
65,
316,
1311,
30,
327,
1083,
1311,
18,
6923,
12,
92,
63,
21,
5717,
309,
619,
63,
23,
14542,
938,
16,
350,
273,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2088,
67,
588,
12,
92,
16,
1311,
4672,
309,
619,
63,
21,
65,
316,
1311,
30,
327,
1083,
1311,
18,
6923,
12,
92,
63,
21,
5717,
309,
619,
63,
23,
14542,
938,
16,
350,
273,
619,
... |
WhoAmI().do(self).chainDeferred(self.addrDiscDef) | self.whoami().chainDeferred(self.addrDiscDef) | def connectionMade(self): WhoAmI().do(self).chainDeferred(self.addrDiscDef) | dc91dae16633444486b1b42443e16f485990c261 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/dc91dae16633444486b1b42443e16f485990c261/q2q.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
49,
2486,
12,
2890,
4672,
3497,
83,
9864,
45,
7675,
2896,
12,
2890,
2934,
5639,
16886,
12,
2890,
18,
4793,
28912,
3262,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
49,
2486,
12,
2890,
4672,
3497,
83,
9864,
45,
7675,
2896,
12,
2890,
2934,
5639,
16886,
12,
2890,
18,
4793,
28912,
3262,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.killer[id].append(txt.lower()) | self.killer[id].append(txt) | def rehash(self): self.killer = {} | 41bc55849b10de09bb9ea394bff3654c54fe83a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11468/41bc55849b10de09bb9ea394bff3654c54fe83a8/AttackPage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
2816,
12,
2890,
4672,
365,
18,
16418,
264,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
2816,
12,
2890,
4672,
365,
18,
16418,
264,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 808) else quickfix.IntField.__init__(self, 808, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
6840,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
6840,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
27... |
def __init__(self, master=None): """Construct a variable with an optional MASTER as master widget. The variable is named PY_VAR_number in Tcl. | def __init__(self, master=None, value=None, name=None): """Construct a variable MASTER can be given as master widget. VALUE is an optional value (defaults to "") NAME is an optional Tcl name (defaults to PY_VARnum). If NAME matches an existing variable and VALUE is omitted then the existing value is retained. | def __init__(self, master=None): """Construct a variable with an optional MASTER as master widget. The variable is named PY_VAR_number in Tcl. """ global _varnum if not master: master = _default_root self._master = master self._tk = master.tk self._name = 'PY_VAR' + repr(_varnum) _varnum = _varnum + 1 self.set(self._de... | 337487e3b87f887abdb3b47781508c6437cd7e94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/337487e3b87f887abdb3b47781508c6437cd7e94/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
460,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
7249,
279,
2190,
225,
27312,
848,
506,
864,
487,
4171,
3604,
18,
5848,
353,
392,
3129,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4171,
33,
7036,
16,
460,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
7249,
279,
2190,
225,
27312,
848,
506,
864,
487,
4171,
3604,
18,
5848,
353,
392,
3129,
... |
elif os.path.isfile(file_path): | elif os.path.isfile(file_path) or os.path.islink(file_path): | def revert(self, options, args, file_list): """Reverts local modifications. Subversion specific. | 8e2abc753bb1fd87e1f389dfa04777d9ee09a88d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/8e2abc753bb1fd87e1f389dfa04777d9ee09a88d/gclient_scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
12,
2890,
16,
702,
16,
833,
16,
585,
67,
1098,
4672,
3536,
426,
31537,
1191,
17953,
18,
2592,
1589,
2923,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
12,
2890,
16,
702,
16,
833,
16,
585,
67,
1098,
4672,
3536,
426,
31537,
1191,
17953,
18,
2592,
1589,
2923,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.myRequests[-1].append(self.raw_requestline) | self.myRequests[self.reqidx].append(self.raw_requestline) | def handle_one_request(self): result = self.parentClass.handle_one_request(self) self.myRequests[-1].append(self.raw_requestline) return result | 22d3e135102ba92f29384533c4ed8ce7afaaf554 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/22d3e135102ba92f29384533c4ed8ce7afaaf554/test_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
476,
67,
2293,
12,
2890,
4672,
563,
273,
365,
18,
2938,
797,
18,
4110,
67,
476,
67,
2293,
12,
2890,
13,
365,
18,
4811,
6421,
63,
2890,
18,
3658,
3465,
8009,
6923,
12,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
476,
67,
2293,
12,
2890,
4672,
563,
273,
365,
18,
2938,
797,
18,
4110,
67,
476,
67,
2293,
12,
2890,
13,
365,
18,
4811,
6421,
63,
2890,
18,
3658,
3465,
8009,
6923,
12,
2890,... |
self.action_error(e) | self.signal('error',{'data':self.data,'type':'exception','error':str(e)}) | def process(self): try: while True: row={} data=self.reader.next() for d in data.contents: row[unicode(d)]=eval('data.'+unicode(d)+'.value') yield row,'main' except IOError,e: self.action_error(e) | b57faef4b4dc5cba3310535b20936f203f0483a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/b57faef4b4dc5cba3310535b20936f203f0483a5/vcard_in.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
1027,
12938,
501,
33,
2890,
18,
10530,
18,
4285,
1435,
364,
302,
316,
501,
18,
3980,
30,
1027,
63,
9124,
12,
72,
25887,
33,
8622,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
775,
30,
1323,
1053,
30,
1027,
12938,
501,
33,
2890,
18,
10530,
18,
4285,
1435,
364,
302,
316,
501,
18,
3980,
30,
1027,
63,
9124,
12,
72,
25887,
33,
8622,
2668,
... |
fullname = os.path.join(ConfigDir, filename) | fullname = os.path.join(wc.ConfigDir, filename) | def update (config, baseurl, dryrun=False, log=None): """Update the given configuration object with .zap files found at baseurl. If dryrun is True, only print out the changes but do nothing throws IOError on error """ url = baseurl+"filter-md5sums.txt" try: page = open_url(url) except IOError, msg: print >>log, "error ... | ff26d3c4dce7bb18e52370745ecc28f73cd601b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/ff26d3c4dce7bb18e52370745ecc28f73cd601b5/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
261,
1425,
16,
25427,
16,
10299,
2681,
33,
8381,
16,
613,
33,
7036,
4672,
3536,
1891,
326,
864,
1664,
733,
598,
263,
94,
438,
1390,
1392,
622,
25427,
18,
971,
10299,
2681,
353,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
1425,
16,
25427,
16,
10299,
2681,
33,
8381,
16,
613,
33,
7036,
4672,
3536,
1891,
326,
864,
1664,
733,
598,
263,
94,
438,
1390,
1392,
622,
25427,
18,
971,
10299,
2681,
353,
1... |
If you enter the above you obtain an interact campus. Entering | If you enter the above you obtain an interact canvas. Entering | ... def _(a=('xyz',5)): | 6bab7bc31ff6a7cd0b2e0a5182530c20931d18ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6bab7bc31ff6a7cd0b2e0a5182530c20931d18ce/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
1652,
389,
12,
69,
33,
2668,
17177,
2187,
25,
3719,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
1652,
389,
12,
69,
33,
2668,
17177,
2187,
25,
3719,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self.db: | if self.db is not None: | def _setState(self, msg): if self.db: self.db[msg.getId()] = (msg.c, msg.t) | a7b4a8973327da45ec5074926a87a42d25f45a43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/a7b4a8973327da45ec5074926a87a42d25f45a43/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1119,
12,
2890,
16,
1234,
4672,
309,
365,
18,
1966,
353,
486,
599,
30,
365,
18,
1966,
63,
3576,
18,
26321,
1435,
65,
273,
261,
3576,
18,
71,
16,
1234,
18,
88,
13,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
1119,
12,
2890,
16,
1234,
4672,
309,
365,
18,
1966,
353,
486,
599,
30,
365,
18,
1966,
63,
3576,
18,
26321,
1435,
65,
273,
261,
3576,
18,
71,
16,
1234,
18,
88,
13,
2,
-100... |
value = self.get_property(name) | value = self._properties[name] | def to_string(self): '''packs message into binary stream''' if not len(self.types) == len(self.properties): raise WrongMessageTypeSpecified('Message "%s" has %s properties, but %s types' % (self, len(self.properties), len(self.types))) # first encode the message type identifier buf = struct.pack('!B', self.packet_type)... | cc0757730fddad1f603d1e9532ad9506e87cc1e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6175/cc0757730fddad1f603d1e9532ad9506e87cc1e3/system.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1080,
12,
2890,
4672,
9163,
2920,
87,
883,
1368,
3112,
1407,
26418,
309,
486,
562,
12,
2890,
18,
2352,
13,
422,
562,
12,
2890,
18,
4738,
4672,
1002,
24668,
24563,
17068,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1080,
12,
2890,
4672,
9163,
2920,
87,
883,
1368,
3112,
1407,
26418,
309,
486,
562,
12,
2890,
18,
2352,
13,
422,
562,
12,
2890,
18,
4738,
4672,
1002,
24668,
24563,
17068,
2668,
... |
('test_run_defaults', { | ('test_run_parsing', { | def test_deserialize_clears_old_error_on_success(self): BundleDeserializationError.objects.create( bundle = self.bundle, error_message="not important").save() mock = self.mocker.patch(self.bundle) expect(mock._do_deserialize()) self.mocker.replay() self.bundle.deserialize() # note we cannot check for self.bundle.deseri... | 957b0eab837f40bbe8180ecadeffedaf82ab9311 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/957b0eab837f40bbe8180ecadeffedaf82ab9311/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18109,
67,
2131,
5913,
67,
1673,
67,
1636,
67,
265,
67,
4768,
12,
2890,
4672,
8539,
20765,
1588,
668,
18,
6911,
18,
2640,
12,
3440,
273,
365,
18,
9991,
16,
555,
67,
2150,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18109,
67,
2131,
5913,
67,
1673,
67,
1636,
67,
265,
67,
4768,
12,
2890,
4672,
8539,
20765,
1588,
668,
18,
6911,
18,
2640,
12,
3440,
273,
365,
18,
9991,
16,
555,
67,
2150,
1... |
b = ScrollBehaviour((start, 0), (stop, 0), '_scroll') self._row_animation = self.animate(secs) self._row_animation.behave(b) if self._cell0[1] != col: | self.__row_animation = self.animate(secs) self.__row_animation.behave(ScrollBehaviour((x, 0), '_scroll')) if self.items.cell0[1] != col: | def scroll_to(self, (row, col), secs): """ Scroll to row / cell position | b47bb145b9afab8cd03f9ba37d4dcd175be8f666 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/b47bb145b9afab8cd03f9ba37d4dcd175be8f666/grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
67,
869,
12,
2890,
16,
261,
492,
16,
645,
3631,
18043,
4672,
3536,
23134,
358,
1027,
342,
2484,
1754,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
67,
869,
12,
2890,
16,
261,
492,
16,
645,
3631,
18043,
4672,
3536,
23134,
358,
1027,
342,
2484,
1754,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
[b, a] = iirfilter(corners, freq / fe, btype='lowpass', ftype='butter', | f = freq / fe if f > 1: f = 1.0 msg = "Selected corner frequency is above Nyquist. " + \ "Setting Nyquist as high corner." warnings.warn(msg) [b, a] = iirfilter(corners, f, btype='lowpass', ftype='butter', | def lowpass(data, freq, df, corners=4, zerophase=False): """ Butterworth-Lowpass Filter. Filter data removing data over certain frequency freq using corners corners. :param data: Data to filter, type numpy.ndarray. :param freq: Filter corner frequency. :param df: Sampling rate in Hz. :param corners: Filter corners. N... | 0307632cc2bbb65f7d8257b93a090a652fa0bcca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/0307632cc2bbb65f7d8257b93a090a652fa0bcca/filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4587,
5466,
12,
892,
16,
7684,
16,
3013,
16,
18398,
33,
24,
16,
24910,
23169,
448,
33,
8381,
4672,
3536,
12484,
387,
91,
7825,
17,
10520,
5466,
4008,
18,
225,
4008,
501,
9427,
501,
187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4587,
5466,
12,
892,
16,
7684,
16,
3013,
16,
18398,
33,
24,
16,
24910,
23169,
448,
33,
8381,
4672,
3536,
12484,
387,
91,
7825,
17,
10520,
5466,
4008,
18,
225,
4008,
501,
9427,
501,
187... |
pylib.GCC_BACKEND = True pylib.OMIT_GCC = False os.environ["GCC_BACKEND"] = "yes" os.environ.pop("OMIT_GCC", None) reload(pylib) | os.environ["CM3_TARGET"] = "NT386GNU" reload(pylib) | def Hack1(): # appropriate pylib.GCC_BACKEND = True pylib.OMIT_GCC = False # hack os.environ["GCC_BACKEND"] = "yes" os.environ.pop("OMIT_GCC", None) reload(pylib) | f79eddf7420d7ecca90b9ab0d9d7d03ff433e039 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/f79eddf7420d7ecca90b9ab0d9d7d03ff433e039/bootntgnu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
670,
484,
21,
13332,
225,
468,
5505,
2395,
2941,
18,
43,
6743,
67,
8720,
4415,
273,
1053,
2395,
2941,
18,
1872,
1285,
67,
43,
6743,
273,
1083,
225,
468,
11769,
1140,
18,
28684,
9614,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
670,
484,
21,
13332,
225,
468,
5505,
2395,
2941,
18,
43,
6743,
67,
8720,
4415,
273,
1053,
2395,
2941,
18,
1872,
1285,
67,
43,
6743,
273,
1083,
225,
468,
11769,
1140,
18,
28684,
9614,
4... |
Table:[DefinitionList, DefinitionDescription] | Table:[DefinitionList, DefinitionDescription], | def __init__(self, tree, save_reports=False, nesting_strictness='loose', status_cb=None): """Init with parsetree. | ff0c7d1724932b13bb5dcd5e0eb182a608844829 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/ff0c7d1724932b13bb5dcd5e0eb182a608844829/treecleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2151,
16,
1923,
67,
20195,
33,
8381,
16,
17174,
67,
13948,
4496,
2218,
383,
2584,
2187,
1267,
67,
7358,
33,
7036,
4672,
3536,
2570,
598,
779,
542,
992,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2151,
16,
1923,
67,
20195,
33,
8381,
16,
17174,
67,
13948,
4496,
2218,
383,
2584,
2187,
1267,
67,
7358,
33,
7036,
4672,
3536,
2570,
598,
779,
542,
992,
1... |
line=line.replace(r'\"','"') | line=line.replace(r'\"','"') | def revert_unicode(document): '''Transform unicode symbols according to the unicode list. | d4fb1108654182babcff450d454dbc0b706c4649 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/d4fb1108654182babcff450d454dbc0b706c4649/lyx_1_5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
9124,
12,
5457,
4672,
9163,
4059,
5252,
7963,
4888,
358,
326,
5252,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
9124,
12,
5457,
4672,
9163,
4059,
5252,
7963,
4888,
358,
326,
5252,
666,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
yield "<option>%s</option>" % compiler | yield "<option>%s</option>\n" % compiler | def main_menu(): """main page""" yield "<form method='GET'>" yield "<div id='build-menu'>" yield "<select name='host'>" for host in hosts: yield "<option value='%s'>%s -- %s</option>" % (host, hosts[host], host) yield "</select>" yield "<select name='tree'>" for tree, t in trees.iteritems(): yield "<option value='%s'>... | 2f96994b0560407d1d9a82cb63b4ca80644ab796 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/2f96994b0560407d1d9a82cb63b4ca80644ab796/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
5414,
13332,
3536,
5254,
1363,
8395,
225,
2824,
3532,
687,
707,
2218,
3264,
28533,
2824,
3532,
2892,
612,
2218,
3510,
17,
5414,
28533,
2824,
3532,
4025,
508,
2218,
2564,
28533,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
5414,
13332,
3536,
5254,
1363,
8395,
225,
2824,
3532,
687,
707,
2218,
3264,
28533,
2824,
3532,
2892,
612,
2218,
3510,
17,
5414,
28533,
2824,
3532,
4025,
508,
2218,
2564,
28533,
3... |
the sax parsed DOM tree for the reply. | the sax parsed DOM tree for the reply before it is unmarshalled. | def parsed(self, context): """ Suds has sax parsed the received reply. Provides the plugin with the opportunity to inspect/modify the sax parsed DOM tree for the reply. @param context: The reply context. The I{reply} is DOM tree. @type context: L{MessageContext} """ pass | 612e4f68af3c77ad34593ee91ec30c4ff3b727cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1242/612e4f68af3c77ad34593ee91ec30c4ff3b727cb/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2707,
12,
2890,
16,
819,
4672,
3536,
348,
1100,
87,
711,
20319,
2707,
326,
5079,
4332,
18,
28805,
326,
1909,
598,
326,
1061,
655,
13352,
358,
5334,
19,
17042,
326,
20319,
2707,
4703,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2707,
12,
2890,
16,
819,
4672,
3536,
348,
1100,
87,
711,
20319,
2707,
326,
5079,
4332,
18,
28805,
326,
1909,
598,
326,
1061,
655,
13352,
358,
5334,
19,
17042,
326,
20319,
2707,
4703,
215... |
res['value'].update({'purchase_price': purchase_price}) | price = self.pool.get('res.currency').compute(cr, uid, frm_cur, to_cur, purchase_price, round=False) res['value'].update({'purchase_price': price}) | def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False): res = super(sale_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty=... | f32adf267a672519e1fc6125fcf596e6e6c504d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f32adf267a672519e1fc6125fcf596e6e6c504d8/sale_margin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
... |
for account_id, sums in cursor.fetchall(): | for row in cursor.fetchall(): account_id = row[0] | def get_credit_debit(self, cursor, user, ids, names, arg, context=None): ''' Function to compute debit, credit for account ids. | 7230b07e554e5ff4f8c12776f9af6e7f3ecc0caf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/7230b07e554e5ff4f8c12776f9af6e7f3ecc0caf/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
1501,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
12896,
364,
2236,
3258,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20688,
67,
323,
3682,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
1257,
16,
1501,
16,
819,
33,
7036,
4672,
9163,
4284,
358,
3671,
443,
3682,
16,
12896,
364,
2236,
3258,
18,
2... |
cmd = base + "adp.convert_to_aniso=true selection='%s'"%str(selection_str) | cmd = base + 'adp.convert_to_aniso=true selection="%s"'%str(selection_str) | def run(file_name = "phe_e.pdb"): file_name = libtbx.env.find_in_repositories( relative_path="phenix_regression/pdb/%s"%file_name, test=os.path.isfile) output = "modified.pdb" xrsp_init = xray_structure_plus(file_name = file_name) base = \ "mmtbx.pdbtools %s output.pdb.file_name=%s --quiet "%(file_name, output) for sel... | d3b962327f9bfcab4633f0d80f058ec29ecde30b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/d3b962327f9bfcab4633f0d80f058ec29ecde30b/tst_pdbtools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
768,
67,
529,
273,
315,
84,
580,
67,
73,
18,
17414,
6,
4672,
585,
67,
529,
273,
2561,
18587,
92,
18,
3074,
18,
4720,
67,
267,
67,
26626,
12,
3632,
67,
803,
1546,
13819,
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,
1086,
12,
768,
67,
529,
273,
315,
84,
580,
67,
73,
18,
17414,
6,
4672,
585,
67,
529,
273,
2561,
18587,
92,
18,
3074,
18,
4720,
67,
267,
67,
26626,
12,
3632,
67,
803,
1546,
13819,
6... |
<small>%(status)s</small> | %(status)s | def tmpl_yoursubmissions(self, ln, order, doctypes, submissions): """ Displays the list of the user's submissions. | 6d185ff7c7519929a2829d5830f7b917f21f75ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/6d185ff7c7519929a2829d5830f7b917f21f75ae/websubmit_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
93,
477,
25675,
12,
2890,
16,
7211,
16,
1353,
16,
31263,
989,
16,
22071,
4672,
3536,
9311,
87,
326,
666,
434,
326,
729,
1807,
22071,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
93,
477,
25675,
12,
2890,
16,
7211,
16,
1353,
16,
31263,
989,
16,
22071,
4672,
3536,
9311,
87,
326,
666,
434,
326,
729,
1807,
22071,
18,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
folder = os.path.dirname(filename) | def save_all_fanart(self, filename, images): print "Fetching extra art" folder = os.path.dirname(filename) extrafolder = os.path.join(folder, "extrafanart") if not os.path.exists(extrafolder): os.mkdir(extrafolder) for image in images: index = images.index(image) + 1 imagepath = self.get_artpath(filename, image['origin... | 1c17eaad83d445306d6fc14977a6403c7d64c959 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14583/1c17eaad83d445306d6fc14977a6403c7d64c959/pyXBMCscrape.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
454,
67,
74,
304,
485,
12,
2890,
16,
1544,
16,
4602,
4672,
1172,
315,
30806,
2870,
3688,
6,
7582,
1727,
1498,
273,
1140,
18,
803,
18,
5701,
12,
5609,
16,
315,
14523,
1727,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
454,
67,
74,
304,
485,
12,
2890,
16,
1544,
16,
4602,
4672,
1172,
315,
30806,
2870,
3688,
6,
7582,
1727,
1498,
273,
1140,
18,
803,
18,
5701,
12,
5609,
16,
315,
14523,
1727,
... | |
r""" Largest prime dividing $n$ (with $a(1)=1$). INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A006530;a Largest prime dividing n (with a(1)=1). sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(1) 1 sage: a(2) 2 ... | def __init__(self): r""" Largest prime dividing $n$ (with $a(1)=1$). INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A006530;a Largest prime dividing n (with a(1)=1). sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: ... | def _eval(self, n): return self.nwf(n, n) | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
365,
18,
82,
15581,
12,
82,
16,
290,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
365,
18,
82,
15581,
12,
82,
16,
290,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if ID_SCHEMATOOL in self.objectIds(): schema_tool = self._getOb(ID_SCHEMATOOL) if pitem['module'] not in schema_tool.objectIds() and pitem['default_schema']: schema_tool.addSchema(pitem['module'], title=pitem['label'], defaults=pitem['default_schema']) | def manage_install_pluggableitem(self, meta_type=None, REQUEST=None): """ Makes the content with the given meta_type available for usage in the portal. Raises ValueError if content does not exist. If the content specifies an `on_install` function in it's `config` this method will call `[on_install](self)` """ data_path... | f0589e8daf7dedc2410a9f4066870f4fa85062af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/f0589e8daf7dedc2410a9f4066870f4fa85062af/NySite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
5425,
67,
412,
30382,
1726,
12,
2890,
16,
2191,
67,
723,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
490,
3223,
326,
913,
598,
326,
864,
2191,
67,
723,
2319,
364,
4084,
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,
10680,
67,
5425,
67,
412,
30382,
1726,
12,
2890,
16,
2191,
67,
723,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
490,
3223,
326,
913,
598,
326,
864,
2191,
67,
723,
2319,
364,
4084,
316,
... | |
print 'Already have this version of', filename | print 'Already have this version of',`filename` | def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open... | a25969620ad128c95dde9cf500b28fa3e57611c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a25969620ad128c95dde9cf500b28fa3e57611c9/ftpmirror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
117... |
if dlg.ShowModal() == wx.ID_OK: | try: if dlg.ShowModal() == wx.ID_OK: filepath = dlg.GetPath() except(wx._core.PyAssertionError): | def ShowOpenProjectDialog(): # Default system path current_dir = os.path.abspath(".") dlg = wx.FileDialog(None, message=_("Open InVesalius 3 project..."), defaultDir="", defaultFile="", wildcard=WILDCARD_OPEN, style=wx.OPEN|wx.CHANGE_DIR) # inv3 filter is default dlg.SetFilterIndex(0) # Show the dialog and retrieve t... | 4e301724d72c134a526db8352f7e0a22ce969364 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/4e301724d72c134a526db8352f7e0a22ce969364/dialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
3678,
4109,
6353,
13332,
468,
2989,
2619,
589,
783,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
2932,
1199,
13,
25840,
273,
7075,
18,
812,
6353,
12,
7036,
16,
883,
33,
67,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
3678,
4109,
6353,
13332,
468,
2989,
2619,
589,
783,
67,
1214,
273,
1140,
18,
803,
18,
5113,
803,
2932,
1199,
13,
25840,
273,
7075,
18,
812,
6353,
12,
7036,
16,
883,
33,
67,
2932,... |
def get_proc_data(stats_list): ''' Read /proc/stat info and store in dictionary ''' try: file_procstat = open("/proc/stat", 'r') for line in file_procstat: if line.startswith('cpu'): data = line.split() stats_list[data[0]] = data file_procstat.close() except OSError, e: print "Could not read statistics", e | def count_num_cpu(): ''' Returns number of cpu's in system ''' try: cpuinfo = open('/proc/cpuinfo', 'r') global cpu_count for line in cpuinfo: if line.startswith('processor'): cpu_count += 1 cpuinfo.close() except IOError, e: print "Could not get cpu count", e sys.exit(1) def count_num_sockets(): ''' Returns number of... | def get_proc_data(stats_list): ''' Read /proc/stat info and store in dictionary ''' try: file_procstat = open("/proc/stat", 'r') for line in file_procstat: if line.startswith('cpu'): data = line.split() stats_list[data[0]] = data file_procstat.close() except OSError, e: print "Could not read statistics", e sys.exit(1) | b2c7cd73607f781c03a9475f07333b594ed7d1a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/b2c7cd73607f781c03a9475f07333b594ed7d1a5/sched_mc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
67,
2107,
67,
11447,
13332,
9163,
2860,
1300,
434,
8326,
1807,
316,
2619,
9163,
775,
30,
8326,
1376,
273,
1696,
2668,
19,
9381,
19,
11447,
1376,
2187,
296,
86,
6134,
2552,
8326,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
67,
2107,
67,
11447,
13332,
9163,
2860,
1300,
434,
8326,
1807,
316,
2619,
9163,
775,
30,
8326,
1376,
273,
1696,
2668,
19,
9381,
19,
11447,
1376,
2187,
296,
86,
6134,
2552,
8326,
67... |
""" | """ | def fl_unpack_bits(p1, p2, p3): """ fl_unpack_bits(p1, p2, p3) """ _fl_unpack_bits(p1, p2, p3) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
4672,
3536,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
13,
3536,
225,
389,
2242,
67,
17309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
4672,
3536,
1183,
67,
17309,
67,
6789,
12,
84,
21,
16,
293,
22,
16,
293,
23,
13,
3536,
225,
389,
2242,
67,
17309,
... |
res.append(node_res_dir(dirr.name,self,self.context,dirr)) | res.append(node_res_dir(dirr.name,self,self.context, dirr, {'active_id': self.res_id})) | def _child_get(self,cr,name = None): dirobj = self.context._dirobj uid = self.context.uid ctx = self.context.context.copy() ctx.update(self.dctx) directory = dirobj.browse(cr, uid, self.dir_id) obj = dirobj.pool.get(self.res_model) where = [] res = [] if name: where.append(('name','=',name)) if self.res_id and director... | 4a6d0a4a5112de7c89e8fe468f5ea0470ab01acf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/4a6d0a4a5112de7c89e8fe468f5ea0470ab01acf/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
3353,
16,
529,
273,
599,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
273,
365,
18,
2472,
18,
1911,
1103,
273,
365,
18,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3624,
67,
588,
12,
2890,
16,
3353,
16,
529,
273,
599,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
273,
365,
18,
2472,
18,
1911,
1103,
273,
365,
18,
247... |
mitem_prefs.connect('activate', self.on_mitem_prefs_activate); | mitem_prefs.connect('activate', self.on_mitem_prefs_activate) | def build_gui(self): self.window = gtk.Window() gtk.window_set_default_icon_from_file( utils.get_ui_object('imgs/ic64_hotot_classics.png')) self.window.set_icon_from_file( utils.get_ui_object('imgs/ic64_hotot_classics.png')) | 1b72b0ee57eb1ab604e64b31b416cae895174552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12179/1b72b0ee57eb1ab604e64b31b416cae895174552/hotot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
20292,
12,
2890,
4672,
365,
18,
5668,
273,
22718,
18,
3829,
1435,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
2080,
67,
768,
12,
2990,
18,
588,
67,
4881,
67,
1612,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
20292,
12,
2890,
4672,
365,
18,
5668,
273,
22718,
18,
3829,
1435,
22718,
18,
5668,
67,
542,
67,
1886,
67,
3950,
67,
2080,
67,
768,
12,
2990,
18,
588,
67,
4881,
67,
1612,
26... |
def paste_clipboard(self): self._vte.paste_clipboard() | def paste_clipboard(self, primary = False): if self._group: for term in self.terminator.term_list: if term._group == self._group: if primary: term._vte.paste_primary () else: term._vte.paste_clipboard () else: if primary: self._vte.paste_primary () else: self._vte.paste_clipboard () | def paste_clipboard(self): self._vte.paste_clipboard() self._vte.grab_focus() | 40a1f6e209e7eb47c450194d7489c941f31300e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/40a1f6e209e7eb47c450194d7489c941f31300e7/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19401,
67,
14161,
3752,
12,
2890,
16,
3354,
273,
1083,
4672,
309,
365,
6315,
1655,
30,
364,
2481,
316,
365,
18,
9505,
639,
18,
6408,
67,
1098,
30,
309,
2481,
6315,
1655,
422,
365,
6315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19401,
67,
14161,
3752,
12,
2890,
16,
3354,
273,
1083,
4672,
309,
365,
6315,
1655,
30,
364,
2481,
316,
365,
18,
9505,
639,
18,
6408,
67,
1098,
30,
309,
2481,
6315,
1655,
422,
365,
6315... |
if True: | if 1: | def build(platform, clean): if platform == "Win32": dest = os.path.join(ROOT, "tcltk") machine = "X86" elif platform == "x64": dest = os.path.join(ROOT, "tcltk64") machine = "X64" else: raise ValueError(platform) # TCL tcldir = os.path.join(ROOT, TCL) if True: os.chdir(os.path.join(tcldir, "win")) if clean: system(NMA... | 9c9d9a11828c3c6b2086909f73503f7d759715db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/9c9d9a11828c3c6b2086909f73503f7d759715db/build_tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
9898,
16,
2721,
4672,
309,
4072,
422,
315,
18049,
1578,
6877,
1570,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
315,
88,
830,
16099,
7923,
5228,
273,
315,
60,
5292,
6,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
9898,
16,
2721,
4672,
309,
4072,
422,
315,
18049,
1578,
6877,
1570,
273,
1140,
18,
803,
18,
5701,
12,
9185,
16,
315,
88,
830,
16099,
7923,
5228,
273,
315,
60,
5292,
6,
1327,
... |
assert_equal(amax(b),[8.0,10.0,9.0]) | assert_equal(amax(b,axis=0),[8.0,10.0,9.0]) | def check_basic(self): a = [3,4,5,10,-3,-5,6.0] assert_equal(amax(a),10.0) b = [[3,6.0, 9.0], [4,10.0,5.0], [8,3.0,2.0]] assert_equal(amax(b),[8.0,10.0,9.0]) assert_equal(amax(b,axis=1),[9.0,10.0,8.0]) | 5d776d8493fd3981f0349df78bccd09a593e3fbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5d776d8493fd3981f0349df78bccd09a593e3fbf/test_function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13240,
12,
2890,
4672,
279,
273,
306,
23,
16,
24,
16,
25,
16,
2163,
16,
17,
23,
16,
17,
25,
16,
26,
18,
20,
65,
1815,
67,
9729,
12,
301,
651,
12,
69,
3631,
2163,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13240,
12,
2890,
4672,
279,
273,
306,
23,
16,
24,
16,
25,
16,
2163,
16,
17,
23,
16,
17,
25,
16,
26,
18,
20,
65,
1815,
67,
9729,
12,
301,
651,
12,
69,
3631,
2163,
18,
2... |
png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/plugin.png")) | png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/plugin.png")) | def PluginDownloadComponent(plugin, name): res = [ plugin ] res.append(MultiContentEntryText(pos=(120, 5), size=(320, 25), font=0, text=name)) res.append(MultiContentEntryText(pos=(120, 26), size=(320, 17), font=1, text=plugin.description)) if plugin.icon is None: png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "s... | 679475dbb4c18821055c9b9d632f689aaa9f3516 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/679475dbb4c18821055c9b9d632f689aaa9f3516/PluginList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6258,
7109,
1841,
12,
4094,
16,
508,
4672,
400,
273,
306,
1909,
308,
225,
400,
18,
6923,
12,
5002,
1350,
1622,
1528,
12,
917,
28657,
22343,
16,
1381,
3631,
963,
28657,
31273,
16,
6969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6258,
7109,
1841,
12,
4094,
16,
508,
4672,
400,
273,
306,
1909,
308,
225,
400,
18,
6923,
12,
5002,
1350,
1622,
1528,
12,
917,
28657,
22343,
16,
1381,
3631,
963,
28657,
31273,
16,
6969,
... |
self.dpi = cps.Float( "Resolution (pixels per inch)",96.0,minval=1.0, doc="""This is the resolution to be used when displaying the image (in pixels per inch).""") | self.font_size = cps.Integer( "Font size (points)", 12, minval=1) self.decimals = cps.Integer( "Number of decimals", 2, minval=0) | def object_fn(): if self.objects_or_image == OI_OBJECTS: return self.objects_name.value else: return cpmeas.IMAGE | edc598b9bdc386736a3751d962a840353fbc9c99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2870/edc598b9bdc386736a3751d962a840353fbc9c99/displaydataonimage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
733,
67,
4293,
13332,
309,
365,
18,
6911,
67,
280,
67,
2730,
422,
531,
45,
67,
9422,
55,
30,
327,
365,
18,
6911,
67,
529,
18,
1132,
469,
30,
327,
3283,
21992,
18,
13603,
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,
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,
733,
67,
4293,
13332,
309,
365,
18,
6911,
67,
280,
67,
2730,
422,
531,
45,
67,
9422,
55,
30,
327,
365,
18,
6911,
67,
529,
18,
1132,
469,
30,
327,
3283,
21992,
18,
13603,
2,
-100,
-... |
if self.options.output_encoding.lower() == 'unicode': | if self.settings.output_encoding \ and self.settings.output_encoding.lower() == 'unicode': | def write(self, data): """Encode `data`, store it in `self.destination`, and return it.""" if self.options.output_encoding.lower() == 'unicode': self.destination = data else: self.destination = data.encode(self.options.output_encoding) return self.destination | 4dc05f6313b31ed168d03606d78b896f61e0699c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/4dc05f6313b31ed168d03606d78b896f61e0699c/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
3536,
5509,
1375,
892,
9191,
1707,
518,
316,
1375,
2890,
18,
10590,
9191,
471,
327,
518,
12123,
309,
365,
18,
4272,
18,
2844,
67,
5999,
521,
471,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
4672,
3536,
5509,
1375,
892,
9191,
1707,
518,
316,
1375,
2890,
18,
10590,
9191,
471,
327,
518,
12123,
309,
365,
18,
4272,
18,
2844,
67,
5999,
521,
471,
365,
18... |
while self._list[-1]._is_exact_zero(): | while len(self._list) > 0 and self._list[-1]._is_exact_zero(): | def _comp_list(self): if self.degree() == -1 and self._valbase == infinity: self._list = [] return self._list polylist = self._poly.list() polylen = len(polylist) self._list = [self.base_ring()(polylist[i], absprec = self._relprecs[i]) << self._valbase for i in range(polylen)] \ + [self.base_ring()(0, absprec = self._r... | 544cf20a0a5f0600afa08e4bc3642619ac7904d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/544cf20a0a5f0600afa08e4bc3642619ac7904d1/polynomial_padic_capped_relative_dense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2919,
67,
1098,
12,
2890,
4672,
309,
365,
18,
21361,
1435,
422,
300,
21,
471,
365,
6315,
1125,
1969,
422,
27272,
30,
365,
6315,
1098,
273,
5378,
327,
365,
6315,
1098,
7573,
1098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2919,
67,
1098,
12,
2890,
4672,
309,
365,
18,
21361,
1435,
422,
300,
21,
471,
365,
6315,
1125,
1969,
422,
27272,
30,
365,
6315,
1098,
273,
5378,
327,
365,
6315,
1098,
7573,
1098,
... |
ans = ans._fix(context=context) | ans = ans._fix(context) | def __add__(self, other, context=None): """Returns self + other. | dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
assert(self.mcl_state_machine.state == MCAP_STATE_READY) | assert(self.mcl_sm.state == MCAP_STATE_READY) | def check_asserts(self, counter): if (self.counter == 2): assert(self.mcl.count_mdls() == 1) assert(self.mcl_state_machine.state == MCAP_STATE_READY) assert(self.mcl.state == MCAP_MCL_STATE_ACTIVE) elif (self.counter == 3): assert(self.mcl.count_mdls() == 2) assert(self.mcl_state_machine.state == MCAP_STATE_READY) asse... | 58de439d6e74c4b1556bf0b35da03b7a41012af1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/58de439d6e74c4b1556bf0b35da03b7a41012af1/test1_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11231,
87,
12,
2890,
16,
3895,
4672,
309,
261,
2890,
18,
7476,
422,
576,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
404,
13,
1815,
12,
2890,
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,
866,
67,
11231,
87,
12,
2890,
16,
3895,
4672,
309,
261,
2890,
18,
7476,
422,
576,
4672,
1815,
12,
2890,
18,
81,
830,
18,
1883,
67,
1264,
3251,
1435,
422,
404,
13,
1815,
12,
2890,
18,... |
def bpCall(id=None,grp=None,cfg=None,iff=True,frameCount=1,onEnter=1,onExit=0): | def bpCall(id=None,grp=None,cfg=None,iff=True,test=None,frameCount=1,onEnter=1,onExit=0): | def bpCall(id=None,grp=None,cfg=None,iff=True,frameCount=1,onEnter=1,onExit=0): def decorator(f): return f | ff599cf9abda48677c7e0cc83e14db348aa882e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ff599cf9abda48677c7e0cc83e14db348aa882e5/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9107,
1477,
12,
350,
33,
7036,
16,
17532,
33,
7036,
16,
7066,
33,
7036,
16,
3048,
33,
5510,
16,
3813,
33,
7036,
16,
3789,
1380,
33,
21,
16,
265,
10237,
33,
21,
16,
265,
6767,
33,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9107,
1477,
12,
350,
33,
7036,
16,
17532,
33,
7036,
16,
7066,
33,
7036,
16,
3048,
33,
5510,
16,
3813,
33,
7036,
16,
3789,
1380,
33,
21,
16,
265,
10237,
33,
21,
16,
265,
6767,
33,
2... |
upload_form(pagename, request, msg=_("Move aborted because empty page name")) | upload_form(pagename, request, msg=_("Move aborted because new page name is empty.")) | def _do_attachment_move(pagename, request): _ = request.getText if 'cancel' in request.form: return _('Move aborted!') if not wikiutil.checkTicket(request, request.form['ticket'][0]): return _('Please use the interactive user interface to move attachments!') if not request.user.may.delete(pagename): return _('You are ... | 2cfeb118962f3d68f52f7fdb20123d8cb896505f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/2cfeb118962f3d68f52f7fdb20123d8cb896505f/AttachFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
11461,
67,
8501,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
225,
309,
296,
10996,
11,
316,
590,
18,
687,
30,
327,
389,
2668,
7607,
18166,
5124,
13,
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,
2896,
67,
11461,
67,
8501,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
225,
309,
296,
10996,
11,
316,
590,
18,
687,
30,
327,
389,
2668,
7607,
18166,
5124,
13,
3... |
r = dialog.run() | ret = dialog.run() | def delete_confirmation_dialog(parent): """Return boolean whether OK to delete files.""" dialog = gtk.Dialog(title = _("Delete confirmation"), parent = parent, flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) dialog.set_default_size(300, -1) hbox = gtk.HBox(homogeneous=False, spacing=10) icon = gtk.Image() i... | 9d492cae068d04dccea7b824cceed2984729452a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/9d492cae068d04dccea7b824cceed2984729452a/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
22275,
67,
12730,
12,
2938,
4672,
3536,
990,
1250,
2856,
7791,
358,
1430,
1390,
12123,
6176,
273,
22718,
18,
6353,
12,
2649,
273,
389,
2932,
2613,
14296,
6,
3631,
982,
273,
982... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
22275,
67,
12730,
12,
2938,
4672,
3536,
990,
1250,
2856,
7791,
358,
1430,
1390,
12123,
6176,
273,
22718,
18,
6353,
12,
2649,
273,
389,
2932,
2613,
14296,
6,
3631,
982,
273,
982... |
base=find_class(self, b) bases.append(base) | raise 'Invalid class', b | def manage_addZClass(self, id, title='', baseclasses=[], meta_type='', CreateAFactory=0, REQUEST=None, zope_object=0): """Add a Z Class """ bases=[] for b in baseclasses: if Products.meta_classes.has_key(b): bases.append(Products.meta_classes[b]) else: base=find_class(self, b) bases.append(base) Z=ZClass(id, title, b... | fb1b39c9b03ed638e715aa3ed10bdc8cc6b187dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fb1b39c9b03ed638e715aa3ed10bdc8cc6b187dc/ZClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
1289,
62,
797,
12,
2890,
16,
612,
16,
2077,
2218,
2187,
1026,
4701,
22850,
6487,
2191,
67,
723,
2218,
2187,
1788,
37,
1733,
33,
20,
16,
12492,
33,
7036,
16,
998,
1306,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
1289,
62,
797,
12,
2890,
16,
612,
16,
2077,
2218,
2187,
1026,
4701,
22850,
6487,
2191,
67,
723,
2218,
2187,
1788,
37,
1733,
33,
20,
16,
12492,
33,
7036,
16,
998,
1306,
67,
... |
if mapPrefix == 'de': | if len(es.createentitylist('func_bomb_target')): | def unload(): global gungameWeaponOrderMenu # Unload all enabled addons for addonName in gungamelib.getRegisteredAddonlist(): if addonName in list_includedAddonsDir: es.unload('gungame/included_addons/%s' % addonName) elif addonName in list_customAddonsDir: es.unload('gungame/custom_addons/%s' % addonName) # Enable B... | 7e69bb95a56d48637acdc3e83635e6a7231045a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/7e69bb95a56d48637acdc3e83635e6a7231045a3/gungame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27060,
13332,
2552,
31475,
13957,
3218,
28629,
2448,
4599,
225,
468,
1351,
945,
777,
3696,
31439,
364,
15466,
461,
316,
314,
20651,
9925,
495,
18,
588,
10868,
27901,
1098,
13332,
309,
15466,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27060,
13332,
2552,
31475,
13957,
3218,
28629,
2448,
4599,
225,
468,
1351,
945,
777,
3696,
31439,
364,
15466,
461,
316,
314,
20651,
9925,
495,
18,
588,
10868,
27901,
1098,
13332,
309,
15466,... |
n = (n**2 - n)/2 return Rational(self.size())/Rational(n) | if self.is_directed(): return Rational(self.size())/Rational((n**2 -n)) else: return Rational(self.size())/Rational((n**2 -n)/2) | def density(self): """ Returns the density (number of edges divided by number of possible edges). EXAMPLE: sage: d = {0: [1,4,5], 1: [2,6], 2: [3,7], 3: [4,8], 4: [9], 5: [7, 8], 6: [8,9], 7: [9]} sage: G = Graph(d); G.density() 1/3 | 9e7959b86e527b6a8ee901c399d9526d26e69fd5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9e7959b86e527b6a8ee901c399d9526d26e69fd5/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12142,
12,
2890,
4672,
3536,
2860,
326,
12142,
261,
2696,
434,
5231,
26057,
635,
1300,
434,
3323,
5231,
2934,
225,
5675,
21373,
30,
272,
410,
30,
302,
273,
288,
20,
30,
306,
21,
16,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12142,
12,
2890,
4672,
3536,
2860,
326,
12142,
261,
2696,
434,
5231,
26057,
635,
1300,
434,
3323,
5231,
2934,
225,
5675,
21373,
30,
272,
410,
30,
302,
273,
288,
20,
30,
306,
21,
16,
24... |
print "partners",partner_ids | def _get_member_state(self, cr, uid, ids, name, args, context=None): res={} partner_ids = self.browse(cr,uid,ids) print "partners",partner_ids for pid in partner_ids: print "pid",pid res[pid.id]=pid.membership_state print "rs",res return res | 6cabe5111ec0564c84fa70a54bf695fafb164df1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/6cabe5111ec0564c84fa70a54bf695fafb164df1/cci_mission.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5990,
67,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
400,
12938,
19170,
67,
2232,
273,
365,
18,
25731,
12,
3353,
16,
1911,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5990,
67,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
400,
12938,
19170,
67,
2232,
273,
365,
18,
25731,
12,
3353,
16,
1911,... | |
DebugPrint(0, "Info: suppressing record with " + jobIdType + " " + jobId + "due to unknown or null VOName") usageRecord.parentNode.removeChild(usageRecord) usageRecord.unlink() continue if external and resourceType != None: UpdateResource(xmlDoc, usageRecord, namespace, prefix, 'ResourceType', resourceType) JobIden... | DebugPrint(0, "Warning: too many JobIdentity blocks in " + jobIdType + " " + | def UsageCheckXmldoc(xmlDoc,external): "Fill in missing field in the xml document if needed" "If external is true, also check for ProbeName, SiteName and ResourceType" # Local namespace namespace = xmlDoc.documentElement.namespaceURI # Loop over (posibly multiple) jobUsageRecords for usageRecord in getUsageRecords(xml... | 56bee758f7cfb2158e4bf6f00e2591f22068707b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/56bee758f7cfb2158e4bf6f00e2591f22068707b/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
1564,
4432,
2434,
12,
2902,
1759,
16,
9375,
4672,
315,
8026,
316,
3315,
652,
316,
326,
2025,
1668,
309,
3577,
6,
315,
2047,
3903,
353,
638,
16,
2546,
866,
364,
25490,
461,
16,
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,
10858,
1564,
4432,
2434,
12,
2902,
1759,
16,
9375,
4672,
315,
8026,
316,
3315,
652,
316,
326,
2025,
1668,
309,
3577,
6,
315,
2047,
3903,
353,
638,
16,
2546,
866,
364,
25490,
461,
16,
9... |
type(self.dsage_server.get_jobs_by_username('yqiang')), | type(self.dsage_server.get_jobs_by_username('yqiang', 'new')), | def testget_jobs_by_username(self): self.assertEquals( type(self.dsage_server.get_jobs_by_username('yqiang')), list) self.assertEquals( len(self.dsage_server.get_jobs_by_username('test')), 0) job = expand_job(self.dsage_server.get_job()) job.username = 'testing123' job.code = '' jdict = self.dsage_server.submit_job(jo... | 551de33fde8d0f6ce992bc0bc45ca6a71fc9c588 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/551de33fde8d0f6ce992bc0bc45ca6a71fc9c588/test_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
588,
67,
10088,
67,
1637,
67,
5053,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
618,
12,
2890,
18,
2377,
410,
67,
3567,
18,
588,
67,
10088,
67,
1637,
67,
5053,
2668,
93,
85,
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,
1842,
588,
67,
10088,
67,
1637,
67,
5053,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
618,
12,
2890,
18,
2377,
410,
67,
3567,
18,
588,
67,
10088,
67,
1637,
67,
5053,
2668,
93,
85,
77,
... |
def getPersonInfo(self): | def test_getPersonInfo(self): | def getPersonInfo(self): from schooltool.wxclient import SchoolToolClient body = ( '<html>\n' ' <h1>Foo!</h1>\n' '</html>\n' ) version = 'UnitTest/0.0' person_id = 'foo' response = ResponseStub(200, 'OK', body, server=version) factory = ConnectionFactory(response) client = SchoolToolClient() client.connectionFactory =... | 8c4fa77bdd0911d4df9a73bcf718642ce0efb93f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8c4fa77bdd0911d4df9a73bcf718642ce0efb93f/test_wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
8346,
966,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
27226,
2625,
1930,
348,
343,
1371,
6364,
1227,
1417,
273,
261,
2368,
2620,
5333,
82,
11,
296,
225,
411,
76,
21,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
8346,
966,
12,
2890,
4672,
628,
18551,
1371,
6738,
18,
27226,
2625,
1930,
348,
343,
1371,
6364,
1227,
1417,
273,
261,
2368,
2620,
5333,
82,
11,
296,
225,
411,
76,
21,
34... |
"notices_url": notices_url, | def send(users, notice_type_label, message_template, object_list=[], issue_notice=True): """ create a new notice. This is intended to be how other apps create new notices. """ notice_type = NoticeType.objects.get(label=notice_type_label) message = encode_message(message_template, *object_list) recipients = [] notices... | 7edaadd2b125c08c46e9c5c708481b4d42c54830 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11515/7edaadd2b125c08c46e9c5c708481b4d42c54830/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
5577,
16,
11690,
67,
723,
67,
1925,
16,
883,
67,
3202,
16,
733,
67,
1098,
22850,
6487,
5672,
67,
20392,
33,
5510,
4672,
3536,
752,
279,
394,
11690,
18,
225,
1220,
353,
12613,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
5577,
16,
11690,
67,
723,
67,
1925,
16,
883,
67,
3202,
16,
733,
67,
1098,
22850,
6487,
5672,
67,
20392,
33,
5510,
4672,
3536,
752,
279,
394,
11690,
18,
225,
1220,
353,
12613,... | |
key = winreg.OpenKeyEx(_winreg.HKEY_CURRENT_USER, | key = winreg.OpenKeyEx(winreg.HKEY_CURRENT_USER, | def has_sound(sound): """Find out if a particular event is configured with a default sound""" try: key = winreg.OpenKeyEx(_winreg.HKEY_CURRENT_USER, "AppEvents\Schemes\Apps\.Default\{0}\.Default".format(sound)) value = winreg.EnumValue(key, 0)[1] if value is not "": return True else: return False except WindowsError: r... | eccaaf7aa5942d99ba49eb54ee58a1d6b5b0019d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/eccaaf7aa5942d99ba49eb54ee58a1d6b5b0019d/test_winsound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
29671,
12,
29671,
4672,
3536,
3125,
596,
309,
279,
6826,
871,
353,
4351,
598,
279,
805,
14190,
8395,
775,
30,
498,
273,
5657,
1574,
18,
3678,
653,
424,
12,
8082,
1574,
18,
44,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
29671,
12,
29671,
4672,
3536,
3125,
596,
309,
279,
6826,
871,
353,
4351,
598,
279,
805,
14190,
8395,
775,
30,
498,
273,
5657,
1574,
18,
3678,
653,
424,
12,
8082,
1574,
18,
44,... |
parser.add_option("-H","--threshold",action="store",type="string",\ default=None, metavar=" THRESHOLD", help="threshold for the coire steps in hipecoire") | def symlinksafe( target, linkname ): """ Creates a link, does not nag about when it already exists """ try: os.symlink( target, linkname ) except OSError, (errno, strerror): if errno==17: print "WARNING: link %s already exist" % (linkname) else: raise | 8df8a6d85329fcb14aa2997b4a9f6708e492bf9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/8df8a6d85329fcb14aa2997b4a9f6708e492bf9b/upperlimit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10563,
4626,
12,
1018,
16,
1692,
529,
262,
30,
3536,
10210,
279,
1692,
16,
1552,
486,
290,
346,
2973,
1347,
518,
1818,
1704,
3536,
775,
30,
1140,
18,
21278,
12,
1018,
16,
1692,
529,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10563,
4626,
12,
1018,
16,
1692,
529,
262,
30,
3536,
10210,
279,
1692,
16,
1552,
486,
290,
346,
2973,
1347,
518,
1818,
1704,
3536,
775,
30,
1140,
18,
21278,
12,
1018,
16,
1692,
529,
26... | |
"ignore-module=", "ignore-dir="]) | "ignore-module=", "ignore-dir=", "coverdir="]) | def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:m", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir="]) except getopt.error, msg: sys.stderr.write("%s: %s\n" % (sys.a... | 894961335102d1da3e013a6c403542d89fcb4d40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/894961335102d1da3e013a6c403542d89fcb4d40/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... |
txt = self.get(); except NoPage: | txt = self.get(force=True); except (NoPage, IsRedirectPage): | def botMayEdit(self): """ True if page doesn't contain {{bots}} or {{nobots}} or contains them and active bot is allowed or not allowed to edit said page | db4f51281eb7feb4646aa18e24c089984533cf72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/db4f51281eb7feb4646aa18e24c089984533cf72/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2512,
49,
528,
4666,
12,
2890,
4672,
3536,
1053,
309,
1363,
3302,
1404,
912,
10179,
4819,
87,
9090,
578,
10179,
82,
947,
6968,
9090,
578,
1914,
2182,
471,
2695,
2512,
353,
2935,
578,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2512,
49,
528,
4666,
12,
2890,
4672,
3536,
1053,
309,
1363,
3302,
1404,
912,
10179,
4819,
87,
9090,
578,
10179,
82,
947,
6968,
9090,
578,
1914,
2182,
471,
2695,
2512,
353,
2935,
578,
486... |
verbose = 1 | verbosity = 1 | def get_info(name): cl = {'atlas':atlas_info, 'x11':x11_info, 'fftw':fftw_info, 'dfftw':dfftw_info, 'sfftw':sfftw_info, 'fftw_threads':fftw_threads_info, 'dfftw_threads':dfftw_threads_info, 'sfftw_threads':sfftw_threads_info, 'djbfft':djbfft_info, 'blas':blas_info, 'lapack':lapack_info, 'lapack_src':lapack_src_info, 'b... | 11cffa55fceeda7a779a5a596b22fb98270f22b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/11cffa55fceeda7a779a5a596b22fb98270f22b8/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
927,
273,
13666,
270,
9521,
4278,
270,
9521,
67,
1376,
16,
296,
92,
2499,
4278,
92,
2499,
67,
1376,
16,
296,
25174,
91,
4278,
25174,
91,
67,
1376,
16,
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,
336,
67,
1376,
12,
529,
4672,
927,
273,
13666,
270,
9521,
4278,
270,
9521,
67,
1376,
16,
296,
92,
2499,
4278,
92,
2499,
67,
1376,
16,
296,
25174,
91,
4278,
25174,
91,
67,
1376,
16,
2... |
return self.write(cr, uid, ids, {'state':'cancel'}) | return self.write(cr, uid, ids, {'state': 'cancel'}) | def button_cancel(self, cr, uid, ids, context={}): for line in self.browse(cr, uid, ids, context=context): if line.invoiced: raise osv.except_osv(_('Invalid action !'), _('You cannot cancel a sale order line that has already been invoiced !')) return self.write(cr, uid, ids, {'state':'cancel'}) | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
980,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
980,
18,
161... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
980,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
980,
18,
161... |
self.factory.dispatcher.opensips_management.end_dialog(session.dialog_id) | if stats["to_tag"] is not None: self.factory.dispatcher.opensips_management.end_dialog(session.dialog_id) | def lineReceived(self, line): try: first, rest = line.split(" ", 1) except ValueError: log.error("Could not decode reply from relay %s: %s" % (self.ip, line)) return if first == "expired": try: stats = cjson.decode(rest) except cjson.DecodeError: log.error("Error decoding JSON from relay at %s" % self.ip) else: session... | 5756bc3dcc6e6923e166a57111d54a297a95ecd2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/5756bc3dcc6e6923e166a57111d54a297a95ecd2/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
8872,
12,
2890,
16,
980,
4672,
775,
30,
1122,
16,
3127,
273,
980,
18,
4939,
2932,
3104,
404,
13,
1335,
2068,
30,
613,
18,
1636,
2932,
4445,
486,
2495,
4332,
628,
18874,
738,
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,
980,
8872,
12,
2890,
16,
980,
4672,
775,
30,
1122,
16,
3127,
273,
980,
18,
4939,
2932,
3104,
404,
13,
1335,
2068,
30,
613,
18,
1636,
2932,
4445,
486,
2495,
4332,
628,
18874,
738,
87,
... |
def handle_codec_(self, evt): self.reverse_codec = {} self.codec = {} | class IPCServerConduit(_ConduitMixin, _IPCServerConduit): pass | def handle_codec_(self, evt): self.reverse_codec = {} self.codec = {} codec_datum = evt.value() for k in codec_datum.keys(): name = codec_datum[k]["tagname"] self.codec[k] = name self.reverse_codec[name] = k | e26e3ce657e4043d0f87dfd2a936b19e33edef39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12313/e26e3ce657e4043d0f87dfd2a936b19e33edef39/conduit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
2971,
39,
2081,
442,
2544,
305,
24899,
442,
2544,
305,
14439,
16,
389,
2579,
39,
2081,
442,
2544,
305,
4672,
1342,
225,
9196,
67,
3404,
379,
273,
6324,
18,
1132,
1435,
225,
364,
417,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
2971,
39,
2081,
442,
2544,
305,
24899,
442,
2544,
305,
14439,
16,
389,
2579,
39,
2081,
442,
2544,
305,
4672,
1342,
225,
9196,
67,
3404,
379,
273,
6324,
18,
1132,
1435,
225,
364,
417,
31... |
_pruneweight = self._pruneweight | pruneweight = self._pruneweight | def _pending(self, pending): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth if traceVerbosity<4: self.trace(1, "_pending(pw=%f, yw=%f)", (self._pruneweight, self._yieldweight)) else: self.trace(4, "_pending(%s, pw=%f, yw=%f)", (pending, self._pruneweight, self._yieldweight)) | 116b3104f9f25853bc5c11b5627cadd98de51e44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/116b3104f9f25853bc5c11b5627cadd98de51e44/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
309,
2606,
30594,
32,
24,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
309,
2606,
30594,
32,
24,
30,
... |
@beaker_cache(expire=600, cache_response=False) | def subnav_link(c, text, action, **kwargs): return link_to( text, url_for(action=action, **kwargs), class_=('active' if c.action == action else '') ) | 5ee08bc249e017ccf2892af517e8444928da5aa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/5ee08bc249e017ccf2892af517e8444928da5aa3/helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
11589,
67,
1232,
12,
71,
16,
977,
16,
1301,
16,
2826,
4333,
4672,
327,
1692,
67,
869,
12,
977,
16,
880,
67,
1884,
12,
1128,
33,
1128,
16,
2826,
4333,
3631,
667,
67,
33,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
11589,
67,
1232,
12,
71,
16,
977,
16,
1301,
16,
2826,
4333,
4672,
327,
1692,
67,
869,
12,
977,
16,
880,
67,
1884,
12,
1128,
33,
1128,
16,
2826,
4333,
3631,
667,
67,
33,
2668,
... | |
end = self.chunkOffset | if self.chunkOffset != self.chunkSize: break | def charsUntil(self, characters, opposite = False): """ Returns a string of characters from the stream up to but not including any character in 'characters' or EOF. 'characters' must be a container that supports the 'in' method and iteration over its characters. """ | 22576899f6818607280a09536f87d1bd1d42359e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4487/22576899f6818607280a09536f87d1bd1d42359e/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
296,
20558,
11,
578,
6431,
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,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
296,
20558,
11,
578,
6431,
18,
... |
if ext == '.html': | if ext in ['.html', '.htm', '.xhtml', '.tsv']: | def LibraryDoc(libname): ext = os.path.splitext(libname)[1].lower() if ext == '.html': return ResourceDoc(libname) if ext == '.java': return JavaLibraryDoc(libname) return PythonLibraryDoc(libname) | 443f38ad2012ce389156469c063a346998ab605e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/443f38ad2012ce389156469c063a346998ab605e/libdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18694,
1759,
12,
2941,
529,
4672,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
2941,
529,
25146,
21,
8009,
8167,
1435,
309,
225,
1110,
316,
10228,
18,
2620,
2187,
2418,
31180,
2187,
2418... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18694,
1759,
12,
2941,
529,
4672,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
2941,
529,
25146,
21,
8009,
8167,
1435,
309,
225,
1110,
316,
10228,
18,
2620,
2187,
2418,
31180,
2187,
2418... |
self.addOption(JoinedOrSeparateOption('-client_name')) self.addOption(JoinedOrSeparateOption('-compatibility_version')) self.addOption(JoinedOrSeparateOption('-current_version')) | self.client_nameOption = self.addOption(JoinedOrSeparateOption('-client_name')) self.compatibility_versionOption = self.addOption(JoinedOrSeparateOption('-compatibility_version')) self.current_versionOption = self.addOption(JoinedOrSeparateOption('-current_version')) self.dylinkerOption = self.addOption(FlagOption('-dy... | def __init__(self): self.options = [] self.inputOption = InputOption() self.unknownOption = UnknownOption() | 9eea75c6ddd33093aaadf6046009a6c3269173bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11986/9eea75c6ddd33093aaadf6046009a6c3269173bd/Arguments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2116,
273,
5378,
365,
18,
2630,
1895,
273,
15365,
1435,
365,
18,
8172,
1895,
273,
9077,
1895,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2116,
273,
5378,
365,
18,
2630,
1895,
273,
15365,
1435,
365,
18,
8172,
1895,
273,
9077,
1895,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
{'dest': 'record_dependencies', 'metavar': '<file>', 'validator': validate_dependency_file}), | {'metavar': '<file>', 'validator': validate_dependency_file, 'default': None}), | def process(self, opt, value, values, parser): """ Call the validator function on applicable settings and evaluate the 'overrides' option. Extends `optparse.Option.process`. """ result = optparse.Option.process(self, opt, value, values, parser) setting = self.dest if setting: if self.validator: value = getattr(values, ... | e15006d99779ceff0da924090a901a8d4d19c097 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/e15006d99779ceff0da924090a901a8d4d19c097/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
2153,
16,
460,
16,
924,
16,
2082,
4672,
3536,
3049,
326,
4213,
445,
603,
12008,
1947,
471,
5956,
326,
296,
19775,
11,
1456,
18,
6419,
5839,
1375,
3838,
2670,
18,
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,
1207,
12,
2890,
16,
2153,
16,
460,
16,
924,
16,
2082,
4672,
3536,
3049,
326,
4213,
445,
603,
12008,
1947,
471,
5956,
326,
296,
19775,
11,
1456,
18,
6419,
5839,
1375,
3838,
2670,
18,
18... |
progress = dict(map(lambda x: (x[0], (x[1], x[2], x[3])), cr.fetchall())) | progress = dict(map(lambda x: (x[0], (x[1] or 0.0, x[2] or 0.0, x[3] or 0.0)), cr.fetchall())) | def _get_all_child_projects(ids): """Recursively get child project ids""" child_ids = flatten([project_hierarchy.get(idn, []) for idn in ids]) if child_ids: child_ids = _get_all_child_projects(child_ids) return ids + child_ids | 567f02338b5c7e30d51fc9f0ec5d630d3cee7449 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/567f02338b5c7e30d51fc9f0ec5d630d3cee7449/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
454,
67,
3624,
67,
13582,
12,
2232,
4672,
3536,
12474,
336,
1151,
1984,
3258,
8395,
1151,
67,
2232,
273,
5341,
3816,
4406,
67,
17937,
18,
588,
12,
350,
82,
16,
5378,
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,
389,
588,
67,
454,
67,
3624,
67,
13582,
12,
2232,
4672,
3536,
12474,
336,
1151,
1984,
3258,
8395,
1151,
67,
2232,
273,
5341,
3816,
4406,
67,
17937,
18,
588,
12,
350,
82,
16,
5378,
13,
... |
if reason[:3] != '550': | if str(reason)[:3] != '550': | def retrfile(self, file, type): import ftplib self.endtransfer() if type in ('d', 'D'): cmd = 'TYPE A'; isdir = 1 else: cmd = 'TYPE ' + type; isdir = 0 try: self.ftp.voidcmd(cmd) except ftplib.all_errors: self.init() self.ftp.voidcmd(cmd) conn = None if file and not isdir: # Use nlst to see if the file exists at all tr... | 71b965f6e0b5f68cbaa0e8ee02f092736e43e951 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/71b965f6e0b5f68cbaa0e8ee02f092736e43e951/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17343,
768,
12,
2890,
16,
585,
16,
618,
4672,
1930,
11038,
6673,
365,
18,
409,
13866,
1435,
309,
618,
316,
7707,
72,
2187,
296,
40,
11,
4672,
1797,
273,
296,
2399,
432,
13506,
9783,
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,
17343,
768,
12,
2890,
16,
585,
16,
618,
4672,
1930,
11038,
6673,
365,
18,
409,
13866,
1435,
309,
618,
316,
7707,
72,
2187,
296,
40,
11,
4672,
1797,
273,
296,
2399,
432,
13506,
9783,
27... |
rx = re.compile("package_id=(\d+).*\>kvm\<", re.IGNORECASE) | rx = re.compile("kvm-(\d+).tar.gz", re.IGNORECASE) | def get_latest_kvm_release_tag(release_dir): """ Fetches the latest release tag for KVM. @param release_dir: KVM source forge download location. """ try: page_url = os.path.join(release_dir, "showfiles.php") local_web_page = utils.unmap_url("/", page_url, "/tmp") f = open(local_web_page, "r") data = f.read() f.close()... | 071d4e5c44a16063e7b52f631e14a46471e95109 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/071d4e5c44a16063e7b52f631e14a46471e95109/kvm_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13550,
67,
79,
3489,
67,
9340,
67,
2692,
12,
9340,
67,
1214,
4672,
3536,
8065,
281,
326,
4891,
3992,
1047,
364,
1475,
7397,
18,
225,
632,
891,
3992,
67,
1214,
30,
1475,
7397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13550,
67,
79,
3489,
67,
9340,
67,
2692,
12,
9340,
67,
1214,
4672,
3536,
8065,
281,
326,
4891,
3992,
1047,
364,
1475,
7397,
18,
225,
632,
891,
3992,
67,
1214,
30,
1475,
7397,
... |
return (addNyGeoPoint(parent_ob, title=title, description=description, coverage='', keywords='', sortorder='', longitude=longitude, latitude=latitude, address=address, geo_type=geo_type, url=URL), None) | ob = addNyGeoPoint(parent_ob, title=title, description=description, coverage='', keywords='', sortorder='', longitude=longitude, latitude=latitude, address=address, geo_type=geo_type, url=URL) ob.approveThis(approved) return (ob, None) | def add_location(self, title, description, address, URL, approved, container, geo_type, latitude, longitude): """ add a location in the database """ from Products.NaayaContent.NyGeoPoint.NyGeoPoint import addNyGeoPoint meta_type = 'Naaya GeoPoint' | 4d47904d87d825c3c69cd120faaa0b11bd74b3ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/4d47904d87d825c3c69cd120faaa0b11bd74b3ba/GeoMapTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3562,
12,
2890,
16,
2077,
16,
2477,
16,
1758,
16,
1976,
16,
20412,
16,
1478,
16,
7856,
67,
723,
16,
8904,
16,
9192,
4672,
3536,
527,
279,
2117,
316,
326,
2063,
3536,
628,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3562,
12,
2890,
16,
2077,
16,
2477,
16,
1758,
16,
1976,
16,
20412,
16,
1478,
16,
7856,
67,
723,
16,
8904,
16,
9192,
4672,
3536,
527,
279,
2117,
316,
326,
2063,
3536,
628,
80... |
"""Count method, like that of a python string. This behaves like the python string method of the same name. | """Non-overlapping count method, like that of a python string. This behaves like the python string method of the same name, which does a non-overlapping count! | def count(self, sub, start=0, end=sys.maxint): """Count method, like that of a python string. | 30493b91a5b82d2f3a2d7bc31855c6ded51ed987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/30493b91a5b82d2f3a2d7bc31855c6ded51ed987/Seq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
12,
2890,
16,
720,
16,
787,
33,
20,
16,
679,
33,
9499,
18,
1896,
474,
4672,
3536,
1380,
707,
16,
3007,
716,
434,
279,
5790,
533,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1056,
12,
2890,
16,
720,
16,
787,
33,
20,
16,
679,
33,
9499,
18,
1896,
474,
4672,
3536,
1380,
707,
16,
3007,
716,
434,
279,
5790,
533,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sage: print back_circulant(4).contained_in(elementary_abelian_2group(2)) | sage: back_circulant(4).contained_in(elementary_abelian_2group(2)) | def contained_in(self, Q): r""" Is self \\subseteq Q? | 79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7542,
67,
267,
12,
2890,
16,
2238,
4672,
436,
8395,
2585,
365,
1736,
15657,
11253,
2238,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7542,
67,
267,
12,
2890,
16,
2238,
4672,
436,
8395,
2585,
365,
1736,
15657,
11253,
2238,
35,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.connect((serverName, serverPort)) | try: self.connect((serverName, serverPort)) except socket.error, e: print >>sys.stderr, "Can't connect to %s:%d: %s" % \ (serverName, serverPort, e) self.close() self.lineCallback('') | def __init__(self, serverName, serverPort, lineCallback): BrighterAsyncChat.__init__(self) self.lineCallback = lineCallback self.request = '' self.set_terminator('\r\n') self.create_socket(socket.AF_INET, socket.SOCK_STREAM) self.connect((serverName, serverPort)) | bb67db5e2dc016a7be764205cf241b78d334ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/bb67db5e2dc016a7be764205cf241b78d334ff9b/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10926,
16,
1438,
2617,
16,
980,
2428,
4672,
605,
86,
18117,
2771,
14163,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1369,
2428,
273,
980,
2428,
365,
18,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10926,
16,
1438,
2617,
16,
980,
2428,
4672,
605,
86,
18117,
2771,
14163,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1369,
2428,
273,
980,
2428,
365,
18,
22... |
rev = ExtractCvsRevision("$Revision: 1.72 $") | rev = ExtractCvsRevision("$Revision: 1.73 $") | def __init__(self, config): # Initializer super(self.__class__,self).__init__() DebugPrint(0,"Creating a ProbeDetails record "+TimeToString()) | 91e22cc0338d129b7a433e3aa7c2606925b23568 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/91e22cc0338d129b7a433e3aa7c2606925b23568/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
4672,
468,
4378,
3926,
2240,
12,
2890,
16186,
1106,
972,
16,
2890,
2934,
972,
2738,
972,
1435,
4015,
5108,
12,
20,
10837,
11092,
279,
25490,
3790,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
642,
4672,
468,
4378,
3926,
2240,
12,
2890,
16186,
1106,
972,
16,
2890,
2934,
972,
2738,
972,
1435,
4015,
5108,
12,
20,
10837,
11092,
279,
25490,
3790,
140... |
string='Start membership date', type='date',store={'membership.membership_line':(_get_partner_id,['state'], 10), | string='Start membership date', type='date',store={'account.invoice':(_get_invoice_partner,['state'], 10), 'membership.membership_line':(_get_partner_id,['state'], 10), | # def _membership_cancel_search(self, cr, uid, obj, name, args): | 07d43fcd2c9d2ea115f75623e1eae184b12f2a6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/07d43fcd2c9d2ea115f75623e1eae184b12f2a6d/membership.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
565,
1652,
389,
19679,
67,
10996,
67,
3072,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
16,
508,
16,
833,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
565,
1652,
389,
19679,
67,
10996,
67,
3072,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
16,
508,
16,
833,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
r""" Catalan numbers: $C_n = \frac{{{2n}\choose{n}}}{n+1} = \frac {(2n)!}{n!(n+1)!}$. Also called Segner numbers. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000108;a Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). Also called Segner numbers. sage:... | def __init__(self): r""" Catalan numbers: $C_n = \frac{{{2n}\choose{n}}}{n+1} = \frac {(2n)!}{n!(n+1)!}$. Also called Segner numbers. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000108;a Catalan numbers: C(n) = binomial(2n,n)/(n+1) = (2n)!/(n!(n+1)!). Also called S... | def list(self, n): self._eval(n) # force computation return self._b[:n] | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
[m.forwards_plan for m in self.deps_b]) | [m.forwards_plan() for m in self.deps_b]) | def test_forwards_plan(self): self.assertEqual([[self.deps_a['0001_a']], [self.deps_a['0001_a'], self.deps_a['0002_a']], [self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_a['0003_a']], [self.deps_a['0001_a'], self.deps_a['0002_a'], self.deps_a['0003_a'], self.deps_b['0001_b'], self.deps_b['0002_b'], self.deps_b[... | 0c0f340bc8be175e12f8ac3631b51f8ab31c3f45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/0c0f340bc8be175e12f8ac3631b51f8ab31c3f45/logic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
6397,
67,
7088,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
63,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1884,
6397,
67,
7088,
12,
2890,
4672,
365,
18,
11231,
5812,
3816,
63,
2890,
18,
14877,
67,
69,
3292,
13304,
67,
69,
3546,
6487,
306,
2890,
18,
14877,
67,
69,
3292,
13304,
67,... |
where account_analytic_line.account_id =ANY(%s) \ | where account_analytic_line.account_id IN %s \ | def _ca_invoiced_calc(self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: acc_set = ",".join(map(str, ids2)) cr.execute("select account_analytic_line.account_id, COALESCE(sum(amount_currency),0.0) \ from account_analytic_line \ join account_analyti... | 3c18c11c83e2549431192a3a0c1f46403db9d628 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8241/3c18c11c83e2549431192a3a0c1f46403db9d628/account_analytic_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5353,
67,
16119,
72,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
3258,
22,
273,
365,
18,
3072,
12,
3353,
16,
4555... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5353,
67,
16119,
72,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
3258,
22,
273,
365,
18,
3072,
12,
3353,
16,
4555... |
print >> out, "ERROR_(inconsistency in f_obs or/and r_free_flags): %s %s"%(hkl[:-4],pdb) | print >> out, "Inconsistency_in_f_obs_or/and_r_free_flags): %s %s"%( hkl,pdb) | def get_fobs_and_rfree_flags_from_mtz(hkl, pdb, out): try: f_obs, r_free_flags = None, None refl = reflection_file_reader.any_reflection_file(file_name = hkl) refl_arrays = refl.as_miller_arrays() for a in refl_arrays: if(str(a.info()).count("FOBS")): f_obs = a assert str(f_obs.observation_type()) == "xray.amplitude" i... | 9e0b7031e121e2fc878f68faaa8779137d9fc180 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/9e0b7031e121e2fc878f68faaa8779137d9fc180/pdb_refl_cif_to_mtz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
617,
2038,
67,
464,
67,
5809,
992,
67,
7133,
67,
2080,
67,
1010,
94,
12,
76,
16391,
16,
10892,
16,
596,
4672,
775,
30,
284,
67,
10992,
16,
436,
67,
9156,
67,
7133,
273,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
617,
2038,
67,
464,
67,
5809,
992,
67,
7133,
67,
2080,
67,
1010,
94,
12,
76,
16391,
16,
10892,
16,
596,
4672,
775,
30,
284,
67,
10992,
16,
436,
67,
9156,
67,
7133,
273,
59... |
atoms = cluster.copy() | assert n_atoms == atoms_ref.n, 'Number of atoms must match atoms_ref' atoms = atoms_ref.copy() atoms.set_lattice(lattice) | def CastepOutputReader(castep_file, cluster=None, abort=True, save_params=False): """Parse .castep file, and return Atoms object with positions, energy, forces, and possibly stress and atomic populations as well""" if type(castep_file) == type(''): castep_file = open(castep_file,'r') castep_file = iter(castep_file) p... | ec8807b76757684570a516cf1219a2030cb3b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ec8807b76757684570a516cf1219a2030cb3b7d0/castep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19782,
881,
1447,
2514,
12,
4155,
881,
67,
768,
16,
2855,
33,
7036,
16,
6263,
33,
5510,
16,
1923,
67,
2010,
33,
8381,
4672,
3536,
3201,
263,
4155,
881,
585,
16,
471,
327,
7149,
87,
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,
19782,
881,
1447,
2514,
12,
4155,
881,
67,
768,
16,
2855,
33,
7036,
16,
6263,
33,
5510,
16,
1923,
67,
2010,
33,
8381,
4672,
3536,
3201,
263,
4155,
881,
585,
16,
471,
327,
7149,
87,
7... |
email = email + str return string.strip(comment), string.strip(email) | addr.append(token[1]) return string.join(name, ' '), string.join(addr, '') | def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ... | 4fc35f6fe9840dd900330fa5e979466e53ea44e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4fc35f6fe9840dd900330fa5e979466e53ea44e5/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
2... |
muleh t0, flags=(CF,OF) | muleh t0 | def macroop IMUL_R_P | 223ca22a9687d28a645fc6017a3302f5f7168ddd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7385/223ca22a9687d28a645fc6017a3302f5f7168ddd/multiply_and_divide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
52,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
52,
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,
... |
dblQuotedString = Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\.))*"').setName("string enclosed in double quotes") sglQuotedString = Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\.))*'").setName("string enclosed in single quotes") quotedString = Regex(r'''(?:"(?:[^"\n\r\\]|(?:"")|(?:\\.))*")|(?:'(?:[^'\n\r\\]|(?:'')|(?:\\.))*')''').setName... | dblQuotedString = Regex(r'"(?:[^"\n\r\\]|(?:"")|(?:\\x[0-9a-fA-F]+)|(?:\\.))*"').setName("string enclosed in double quotes") sglQuotedString = Regex(r"'(?:[^'\n\r\\]|(?:'')|(?:\\x[0-9a-fA-F]+)|(?:\\.))*'").setName("string enclosed in single quotes") quotedString = Regex(r'''(?:"(?:[^"\n\r\\]|(?:"")|(?:\\x[0-9a-fA-F]+)|... | def operatorPrecedence( baseExpr, opList ): """Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. Parameters: - baseExpr - expression r... | e96f0b1cef1ab581cc3cb34f5c6eb89031872390 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3693/e96f0b1cef1ab581cc3cb34f5c6eb89031872390/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3726,
1386,
24092,
12,
1026,
4742,
16,
27571,
262,
30,
3536,
2276,
707,
364,
27389,
6473,
87,
434,
8041,
7165,
731,
434,
12213,
5960,
316,
279,
14172,
9360,
18,
225,
7692,
3062,
2026,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3726,
1386,
24092,
12,
1026,
4742,
16,
27571,
262,
30,
3536,
2276,
707,
364,
27389,
6473,
87,
434,
8041,
7165,
731,
434,
12213,
5960,
316,
279,
14172,
9360,
18,
225,
7692,
3062,
2026,
50... |
elif note.values[0:7] == [78, 105, 107, 111, 110, 00, 02]: | elif note.values[0:7] == [78, 105, 107, 111, 110, 0, 2]: | def decode_maker_note(self): note = self.tags['EXIF MakerNote'] make = self.tags['Image Make'].printable #model = self.tags['Image Model'].printable # unused | aec1b6e06ab32d55718ef19aac00ad91fb860f90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/aec1b6e06ab32d55718ef19aac00ad91fb860f90/EXIF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
29261,
67,
7652,
12,
2890,
4672,
4721,
273,
365,
18,
4156,
3292,
2294,
5501,
490,
6388,
8067,
3546,
1221,
273,
365,
18,
4156,
3292,
2040,
4344,
29489,
1188,
429,
468,
2284,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
29261,
67,
7652,
12,
2890,
4672,
4721,
273,
365,
18,
4156,
3292,
2294,
5501,
490,
6388,
8067,
3546,
1221,
273,
365,
18,
4156,
3292,
2040,
4344,
29489,
1188,
429,
468,
2284,
273... |
ligolw + "'\"" | ligolw += "'\"" | def xml(self): """Convert a table dictionary to LIGO lightweight XML""" if len(self.table) == 0: raise LIGOLwDBError, 'attempt to convert empty table to xml' ligolw = """\ | e7f270d0fa7314ad6f6780e759449e01bfed268d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/e7f270d0fa7314ad6f6780e759449e01bfed268d/ldbd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
12,
2890,
4672,
3536,
2723,
279,
1014,
3880,
358,
511,
3047,
51,
9052,
4865,
3167,
8395,
309,
562,
12,
2890,
18,
2121,
13,
422,
374,
30,
1002,
511,
3047,
1741,
91,
2290,
668,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
12,
2890,
4672,
3536,
2723,
279,
1014,
3880,
358,
511,
3047,
51,
9052,
4865,
3167,
8395,
309,
562,
12,
2890,
18,
2121,
13,
422,
374,
30,
1002,
511,
3047,
1741,
91,
2290,
668,
16,... |
wikipedia.output(u"WARNING: You don't have set a " + license_name + ", search engine is disabled.") | warn(u"You don't have set a " + license_name + ", search engine is disabled.", prefix = "WARNING") | def check_config(var, license_id, license_name): if var: if not license_id: wikipedia.output(u"WARNING: You don't have set a " + license_name + ", search engine is disabled.") return False return var | df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1425,
12,
1401,
16,
8630,
67,
350,
16,
8630,
67,
529,
4672,
309,
569,
30,
309,
486,
8630,
67,
350,
30,
1894,
12,
89,
6,
6225,
2727,
1404,
1240,
444,
279,
315,
397,
8630,
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,
866,
67,
1425,
12,
1401,
16,
8630,
67,
350,
16,
8630,
67,
529,
4672,
309,
569,
30,
309,
486,
8630,
67,
350,
30,
1894,
12,
89,
6,
6225,
2727,
1404,
1240,
444,
279,
315,
397,
8630,
6... |
if self.__pending_removes or self.__pending_adds: lock.acquire() pending_removes = self.__pending_removes while pending_removes: (s, p, o) = pending_removes.pop() self.remove(s, p, o) pending_adds = self.__pending_adds while pending_adds: (s, p, o) = pending_adds.pop() self.add(s, p, o) lock.release() | pending_removes = self.__pending_removes while pending_removes: (s, p, o) = pending_removes.pop() self.remove(s, p, o) pending_adds = self.__pending_adds while pending_adds: (s, p, o) = pending_adds.pop() self.add(s, p, o) lock.release() | def __end_read(self): lock = self.__lock lock.acquire() self.__visit_count = self.__visit_count - 1 lock.release() | 7473a8df41d14a0316d17a40e2eba86810eea641 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/7473a8df41d14a0316d17a40e2eba86810eea641/concurrent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
409,
67,
896,
12,
2890,
4672,
2176,
273,
365,
16186,
739,
2176,
18,
1077,
1039,
1435,
365,
16186,
11658,
67,
1883,
273,
365,
16186,
11658,
67,
1883,
300,
404,
2176,
18,
9340,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
409,
67,
896,
12,
2890,
4672,
2176,
273,
365,
16186,
739,
2176,
18,
1077,
1039,
1435,
365,
16186,
11658,
67,
1883,
273,
365,
16186,
11658,
67,
1883,
300,
404,
2176,
18,
9340,
1435,... |
else | else: | def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 39) else quickfix.CharField.__init__(self, 39, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
16977,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
16977,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
9... |
l = map(f,self.res) | l = self.res | def plot(self, f, lfilter=None,**kargs): """Applies a function to each packet to get a value that will be plotted with GnuPlot. A gnuplot object is returned lfilter: a truth function that decides whether a packet must be ploted""" g=Gnuplot.Gnuplot() l = map(f,self.res) if lfilter is not None: l = filter(lfilter, l) g.... | f7faabd726e5265bbef279e011656bbacd93dd87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/f7faabd726e5265bbef279e011656bbacd93dd87/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
284,
16,
328,
2188,
33,
7036,
16,
636,
79,
1968,
4672,
3536,
13029,
279,
445,
358,
1517,
4414,
358,
336,
279,
460,
716,
903,
506,
3207,
2344,
598,
611,
13053,
11532... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
16,
328,
2188,
33,
7036,
16,
636,
79,
1968,
4672,
3536,
13029,
279,
445,
358,
1517,
4414,
358,
336,
279,
460,
716,
903,
506,
3207,
2344,
598,
611,
13053,
11532... |
graph._embedding.pop(extra) | def is_circular_planar(self, ordered=True, kuratowski=False, set_embedding=False, set_pos=False): """ A graph (with nonempty boundary) is circular planar if it has a planar embedding in which all boundary vertices can be drawn in order on a disc boundary, with all the interior vertices drawn inside the disc. Returns T... | 755c16174b2e37df79a60a4018440b4daeaff70f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/755c16174b2e37df79a60a4018440b4daeaff70f/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
16,
417,
295,
270,
543,
7771,
77,
33,
8381,
16,
444,
67,
23744,
33,
8381,
16,
444,
67,
917,
33,
8381,
4672,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
11614,
9559,
67,
7088,
297,
12,
2890,
16,
5901,
33,
5510,
16,
417,
295,
270,
543,
7771,
77,
33,
8381,
16,
444,
67,
23744,
33,
8381,
16,
444,
67,
917,
33,
8381,
4672,
3536,
... | |
(rc,k) = semanage_seuser_key_create(self.sh, name) | (rc, k) = semanage_seuser_key_create(self.sh, name) | def __modify(self, name, sename = "", serange = ""): if sename == "" and serange == "": raise ValueError(_("Requires seuser or serange")) | 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,
272,
1069,
273,
23453,
703,
726,
273,
1408,
4672,
309,
272,
1069,
422,
1408,
471,
703,
726,
422,
1408,
30,
1002,
2068,
24899,
2932,
21671,
695,
1355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
17042,
12,
2890,
16,
508,
16,
272,
1069,
273,
23453,
703,
726,
273,
1408,
4672,
309,
272,
1069,
422,
1408,
471,
703,
726,
422,
1408,
30,
1002,
2068,
24899,
2932,
21671,
695,
1355,
... |
units_qs = store.units | filter = request.GET.get('filter', DEFAULT_FILTER) units_qs = _filter_queryset(store.units, filter) | def get_view_units(request, pootle_path, limit=0): """ @return: An object in JSON notation that contains the source and target texts for units that will be displayed before and after unit C{uid}. This object also contains more information used for rendering the view unit, such as the source/target language codes, dire... | 9f3ce7792a374c47521821bbf169d3f084c085c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/9f3ce7792a374c47521821bbf169d3f084c085c7/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1945,
67,
7705,
12,
2293,
16,
293,
1632,
298,
67,
803,
16,
1800,
33,
20,
4672,
3536,
632,
2463,
30,
1922,
733,
316,
1796,
12155,
716,
1914,
326,
1084,
471,
1018,
15219,
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,
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,
1945,
67,
7705,
12,
2293,
16,
293,
1632,
298,
67,
803,
16,
1800,
33,
20,
4672,
3536,
632,
2463,
30,
1922,
733,
316,
1796,
12155,
716,
1914,
326,
1084,
471,
1018,
15219,
364,
... |
cr.commit() | cr.commit() | def create(self, cr, uid, values, context={}): res = super(project_task, self).create(cr, uid, values, context=context) cr.commit() task = self.browse(cr, uid, res, context=context) if task.project_id: self.pool.get('project.project')._log_event(cr, uid, task.project_id.id, { 'res_id' : task.id, 'name' : task.name, 'de... | 0944b6859f82afb44e3d9bec8c41e264c9e0a66e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/0944b6859f82afb44e3d9bec8c41e264c9e0a66e/project_event.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
819,
12938,
4672,
400,
273,
2240,
12,
4406,
67,
4146,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
924,
16,
819,
33,
2472,
13,
4422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
819,
12938,
4672,
400,
273,
2240,
12,
4406,
67,
4146,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
924,
16,
819,
33,
2472,
13,
4422,
... |
elif sys.platform == 'linux2': | elif sys.platform == 'linux2' or sys.platform == 'darwin': | def __raise_on_wrong_settings(self): if not os.path.isfile( self.__config.gccxml_path ): if sys.platform == 'win32': gccxml_name = 'gccxml' + '.exe' environment_var_delimiter = ';' elif sys.platform == 'linux2': gccxml_name = 'gccxml' environment_var_delimiter = ':' else: raise RuntimeError( 'unable to find out locatio... | fab785a480bc695e9ef047429f814629eafc6c41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7398/fab785a480bc695e9ef047429f814629eafc6c41/source_reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11628,
67,
265,
67,
21530,
67,
4272,
12,
2890,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
365,
16186,
1425,
18,
75,
952,
2902,
67,
803,
262,
30,
309,
2589,
18,
9898,
422,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11628,
67,
265,
67,
21530,
67,
4272,
12,
2890,
4672,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
365,
16186,
1425,
18,
75,
952,
2902,
67,
803,
262,
30,
309,
2589,
18,
9898,
422,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.