rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
def initialize(self): BaseLBFGS.initialize(self) self.Ho = 0.05 | def initialize(self): BaseLBFGS.initialize(self) self.Ho = 0.05 | d866d133aade9dcb75573e76a600c1a9657a4c19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/d866d133aade9dcb75573e76a600c1a9657a4c19/lbfgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
Method for describing self in LaTeX. Encapsulates ``self.gens()`` in angle brackets to denote that self in generated by these elements. Called by the | Method for describing ``self`` in LaTeX. Encapsulates ``self.gens()`` in angle brackets to denote that ``self`` is generated by these elements. Called by the | def _latex_(self): r""" Method for describing self in LaTeX. Encapsulates ``self.gens()`` in angle brackets to denote that self in generated by these elements. Called by the ``latex()`` function. EXAMPLES: We explicitly construct the alternating group on four elements. :: sage: A4 = PermutationGroup([[(1,2,3)],[(2,3... | 6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
12,
2890,
4672,
436,
8395,
2985,
364,
16868,
12176,
2890,
10335,
316,
21072,
21575,
60,
18,
1374,
22984,
17099,
12176,
2890,
18,
23730,
1435,
10335,
316,
5291,
15597,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
12,
2890,
4672,
436,
8395,
2985,
364,
16868,
12176,
2890,
10335,
316,
21072,
21575,
60,
18,
1374,
22984,
17099,
12176,
2890,
18,
23730,
1435,
10335,
316,
5291,
15597,
358,
... |
readables, writeables, _ = select.select(readfds, writefds, [], timeout) | readables, writeables, _ = select.select(readfds, writefds, [], timeout) | def loop(self): self.loop_ready.set() self.emit('thread-will-start') self.emit('thread-started', threading.currentThread()) self.emit('thread-did-start') | 188dd78cafac2eb64514bf34f3463877d0d9d7c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/188dd78cafac2eb64514bf34f3463877d0d9d7c5/eventloop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
12,
2890,
4672,
365,
18,
6498,
67,
1672,
18,
542,
1435,
365,
18,
18356,
2668,
5930,
17,
20194,
17,
1937,
6134,
365,
18,
18356,
2668,
5930,
17,
14561,
2187,
17254,
18,
2972,
3830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2798,
12,
2890,
4672,
365,
18,
6498,
67,
1672,
18,
542,
1435,
365,
18,
18356,
2668,
5930,
17,
20194,
17,
1937,
6134,
365,
18,
18356,
2668,
5930,
17,
14561,
2187,
17254,
18,
2972,
3830,
... |
if not _isstring(payload): | if not isinstance(payload, basestring): | def _handle_text(self, msg): payload = msg.get_payload() if payload is None: return cset = msg.get_charset() if cset is not None: payload = cset.body_encode(payload) if not _isstring(payload): raise TypeError, 'string payload expected: %s' % type(payload) if self._mangle_from_: payload = fcre.sub('>From ', payload) sel... | bebf357b442a43365c8883f99b9f699444d75bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bebf357b442a43365c8883f99b9f699444d75bc7/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
955,
12,
2890,
16,
1234,
4672,
2385,
273,
1234,
18,
588,
67,
7648,
1435,
309,
2385,
353,
599,
30,
327,
276,
542,
273,
1234,
18,
588,
67,
9999,
1435,
309,
276,
542,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
955,
12,
2890,
16,
1234,
4672,
2385,
273,
1234,
18,
588,
67,
7648,
1435,
309,
2385,
353,
599,
30,
327,
276,
542,
273,
1234,
18,
588,
67,
9999,
1435,
309,
276,
542,
353... |
last_mtime = path.getmtime(self.content_file) | last_mtime = os.path.getmtime(self.content_file) | def launch(self): """Launch external editor""" save_interval = float(self.options.get('save_interval')) use_locks = int(self.options.get('use_locks', 0)) launch_success = 0 last_mtime = path.getmtime(self.content_file) command = self.getEditorCommand() if command.find('%1') > -1: command = command.replace('%1', self.co... | 6d4ecbc86879f2fecef558188076078002d226f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/6d4ecbc86879f2fecef558188076078002d226f3/zopeedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
12,
2890,
4672,
3536,
9569,
3903,
4858,
8395,
1923,
67,
6624,
273,
1431,
12,
2890,
18,
2116,
18,
588,
2668,
5688,
67,
6624,
26112,
999,
67,
23581,
273,
509,
12,
2890,
18,
2116,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
12,
2890,
4672,
3536,
9569,
3903,
4858,
8395,
1923,
67,
6624,
273,
1431,
12,
2890,
18,
2116,
18,
588,
2668,
5688,
67,
6624,
26112,
999,
67,
23581,
273,
509,
12,
2890,
18,
2116,
1... |
Dispatch.acquire_append_text(self, "feature_description", "description") Dispatch.acquire_text(self, tag = "feature_name", attribute = "name") self.acquire(Handle_location(self.add_location, self.settings), prefix = "feature") | self.acquire(Handle_feature_location(self.add_location, self.settings)) | def __init__(self, callback): Dispatch.Callback.__init__(self, callback) self.settings = {} | 7795919201eb3f63ba6ae6a328d1c7499aba60a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/7795919201eb3f63ba6ae6a328d1c7499aba60a2/StdHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1348,
4672,
11552,
18,
2428,
16186,
2738,
972,
12,
2890,
16,
1348,
13,
365,
18,
4272,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1348,
4672,
11552,
18,
2428,
16186,
2738,
972,
12,
2890,
16,
1348,
13,
365,
18,
4272,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" Response class to handle all output related tasks in one place. This class is basically a wrapper arround a StringIO instance. | """Response class to handle all output related tasks in one place. This class is basically a wrapper arround a ``StringIO`` instance. | def __repr__(self): """ Returns a representation of this request which is "Request". | 2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
2860,
279,
4335,
434,
333,
590,
1492,
353,
315,
691,
9654,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
3536,
2860,
279,
4335,
434,
333,
590,
1492,
353,
315,
691,
9654,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if dleft == 1: | elif dleft == 1: | def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return s... | 53eda69a273ff961302db254e02309f04cc11291 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/53eda69a273ff961302db254e02309f04cc11291/tasktree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
588,
67,
1132,
12,
2890,
16,
1027,
1734,
16,
1057,
4672,
756,
273,
365,
18,
3413,
18,
588,
67,
2159,
67,
1884,
67,
492,
1734,
12,
492,
1734,
13,
309,
486,
756,
30,
327,
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,
603,
67,
588,
67,
1132,
12,
2890,
16,
1027,
1734,
16,
1057,
4672,
756,
273,
365,
18,
3413,
18,
588,
67,
2159,
67,
1884,
67,
492,
1734,
12,
492,
1734,
13,
309,
486,
756,
30,
327,
59... |
See Also "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html 'url_unquote_plus' function. | def url_unquote(s): """ Like url_unquote, but also replace '+' characters with spaces. See Also "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html 'url_unquote_plus' function. """ | 8a7dac44e5b13112e47e784d5f1511a9a4a63404 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8a7dac44e5b13112e47e784d5f1511a9a4a63404/standard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
67,
318,
6889,
12,
87,
4672,
3536,
23078,
880,
67,
318,
6889,
16,
1496,
2546,
1453,
10058,
3949,
598,
7292,
18,
225,
3536,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
67,
318,
6889,
12,
87,
4672,
3536,
23078,
880,
67,
318,
6889,
16,
1496,
2546,
1453,
10058,
3949,
598,
7292,
18,
225,
3536,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
nl = data.find('\n') if nl >= 0: nl += 1 self._rbuf = data[nl:] return data[:nl] buffers = [] if data: buffers.append(data) self._rbuf = "" | buf = self._rbuf buf.seek(0, 2) self._rbuf = StringIO() | def readline(self, size=-1): data = self._rbuf if size < 0: # Read until \n or EOF, whichever comes first if self._rbufsize <= 1: # Speed up unbuffered case assert data == "" buffers = [] recv = self._sock.recv while data != "\n": data = recv(1) if not data: break buffers.append(data) return "".join(buffers) nl = data.... | 5203dbadc432c6f2260803a4064375469d5ec7b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/5203dbadc432c6f2260803a4064375469d5ec7b6/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
521,
82,
578,
6431,
16,
600,
335,
580,
502,
14535,
1122,
309,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
501,
273,
365,
6315,
86,
4385,
309,
963,
411,
374,
30,
468,
2720,
3180,
521,
82,
578,
6431,
16,
600,
335,
580,
502,
14535,
1122,
309,
365,
... |
for i in range(Nlta): | for i in xrange(Nlta): | def classicStaLta(a, Nsta, Nlta): """ Computes the standard STA/LTA from a given imput array a. The length of the STA is given by Nsta in samples, respectively is the length of the LTA given by Nlta in samples. @type a: Numpy ndarray @param a: Seismic Trace @type Nsta: Int @param Nsta: Length of short time average win... | ea4c7ece41544c44ddf36d8239db27ef9e2868d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/ea4c7ece41544c44ddf36d8239db27ef9e2868d1/trigger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28937,
510,
69,
48,
2351,
12,
69,
16,
423,
334,
69,
16,
423,
80,
2351,
4672,
3536,
14169,
281,
326,
4529,
2347,
37,
19,
48,
9833,
628,
279,
864,
709,
458,
526,
279,
18,
1021,
769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28937,
510,
69,
48,
2351,
12,
69,
16,
423,
334,
69,
16,
423,
80,
2351,
4672,
3536,
14169,
281,
326,
4529,
2347,
37,
19,
48,
9833,
628,
279,
864,
709,
458,
526,
279,
18,
1021,
769,
... |
new_interpreter = a if not new_interpreter or new_interpreter[0] != '/' or not args: | new_interpreter = a.encode() if not new_interpreter or not new_interpreter.startswith(b'/') or \ not args: | def main(): global new_interpreter usage = ('usage: %s -i /interpreter file-or-directory ...\n' % sys.argv[0]) try: opts, args = getopt.getopt(sys.argv[1:], 'i:') except getopt.error as msg: err(msg + '\n') err(usage) sys.exit(2) for o, a in opts: if o == '-i': new_interpreter = a if not new_interpreter or new_interpre... | 5a72a1084c0beb70ce1f8e78b399781f4488d616 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/5a72a1084c0beb70ce1f8e78b399781f4488d616/pathfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
394,
67,
2761,
11599,
4084,
273,
7707,
9167,
30,
738,
87,
300,
77,
342,
2761,
11599,
585,
17,
280,
17,
5149,
1372,
64,
82,
11,
738,
2589,
18,
19485,
63,
20,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
394,
67,
2761,
11599,
4084,
273,
7707,
9167,
30,
738,
87,
300,
77,
342,
2761,
11599,
585,
17,
280,
17,
5149,
1372,
64,
82,
11,
738,
2589,
18,
19485,
63,
20,
5717,
... |
other_syms.append(sym) | if not sym.startswith('$') and sym != "'": other_syms.append(sym) if len(my_syms) != 0 or len(other_syms) != 0: assembler.error("incorrect number of symbols, expected %d, got %d" % (check_nsyms, nsyms), source=False) | def main(): parser = OptionParser("usage: %prog [options] src_file [src_file...]") parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, help="Verbose output.") parser.add_option("-l", "--log", dest="logLevel", default=0, help="Print detailed log information.") parser.add_option("-t",... | 359261faaeb7b979df331a39679b40a41f4350ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/359261faaeb7b979df331a39679b40a41f4350ec/agcasm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
2932,
9167,
30,
738,
14654,
306,
2116,
65,
1705,
67,
768,
306,
4816,
67,
768,
2777,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
90,
3113,
5238,
11369,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
2932,
9167,
30,
738,
14654,
306,
2116,
65,
1705,
67,
768,
306,
4816,
67,
768,
2777,
4279,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
90,
3113,
5238,
11369,
... |
Request: CONVERT_PDF PATH=/home/foo/bar.odt Response: OK 0 /tmp/asdqwe.pdf Request: CONVERT_HTML PATH=/home/foo/bar.docx Response: OK 0 /tmp/sdfwqer Request: TEST Response: ERR -1 Could not reach OpenOffice.org server on port 2002 Please make sure to start oooctl. | Request:: CONVERT_PDF PATH=/home/foo/bar.odt Response:: OK 0 /tmp/asdqwe.pdf Request:: CONVERT_HTML PATH=/home/foo/bar.docx Response:: OK 0 /tmp/sdfwqer Request:: TEST Response:: ERR -1 Could not reach OpenOffice.org server on port 2002 Please make sure to start oooctl. | def handle(self): """The protocol: | 8df67efee8dba94929542ef2721280019d775406 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9481/8df67efee8dba94929542ef2721280019d775406/pyunoserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
1986,
1771,
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,
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,
1640,
12,
2890,
4672,
3536,
1986,
1771,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.prop.window, _("Unable to rename file"), | self.prop, _("Unable to rename file"), | def rename(model, path, iter): song = model[path][0] oldname = model[path][1] newname = model[path][2] try: newname = newname.encode(util.fscoding(), "replace") library.rename(song, newname) songref_update_view(song) except: qltk.ErrorMessage( self.prop.window, _("Unable to rename file"), _("Renaming <b>%s</b> to <b>%s... | 44deb3636adb3eb180d1cc44ce811a1cb782bb80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/44deb3636adb3eb180d1cc44ce811a1cb782bb80/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2284,
16,
589,
16,
1400,
4672,
17180,
273,
938,
63,
803,
6362,
20,
65,
1592,
529,
273,
938,
63,
803,
6362,
21,
65,
26722,
273,
938,
63,
803,
6362,
22,
65,
775,
30,
26722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
2284,
16,
589,
16,
1400,
4672,
17180,
273,
938,
63,
803,
6362,
20,
65,
1592,
529,
273,
938,
63,
803,
6362,
21,
65,
26722,
273,
938,
63,
803,
6362,
22,
65,
775,
30,
26722,
... |
GROUP BY account_analytic_line.account_id""",(ids2,)) | GROUP BY account_analytic_line.account_id""",(parent_ids,)) | def _ca_theorical_calc(self, cr, uid, ids, name, arg, context={}): res = {} res2 = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) # Warning # This computation doesn't take care of pricelist ! # Just consider list_price if ids2: cr.execute("""select account_analytic_line.account_id as account_id, \ COA... | 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,
5787,
10129,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
400,
22,
273,
2618,
3258,
22,
273,
365,
18,
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,
5353,
67,
5787,
10129,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
400,
22,
273,
2618,
3258,
22,
273,
365,
18,
30... |
overwrite_articles = True | overwrite_articles = True elif arg.startswith('-help'): wikipedia.output(__doc__, 'utf-8') | def main(): mysite = wikipedia.getSite() sa = [] output_directory = "" save_images = False overwrite_images = False overwrite_articles = False for arg in sys.argv[1:]: if arg.startswith("-lang:"): lang = arg[6:] elif arg.startswith("-file:"): f=open(arg[6:], 'r') R=re.compile(r'.*\[\[([^\]]*)\]\].*') m = False for lin... | da59c88d5c69b46f8c8167ce14ea49c5600f1003 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/da59c88d5c69b46f8c8167ce14ea49c5600f1003/saveHTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
312,
1900,
1137,
273,
21137,
18,
588,
4956,
1435,
7864,
273,
5378,
876,
67,
5149,
273,
1408,
1923,
67,
7369,
273,
1083,
6156,
67,
7369,
273,
1083,
6156,
67,
16462,
273,
1083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
312,
1900,
1137,
273,
21137,
18,
588,
4956,
1435,
7864,
273,
5378,
876,
67,
5149,
273,
1408,
1923,
67,
7369,
273,
1083,
6156,
67,
7369,
273,
1083,
6156,
67,
16462,
273,
1083... |
RETURN trigger AS | RETURNS trigger AS | def ddl_prog(db): safe_query(db, "CREATE LANGUAGE 'plpgsql'") cursor = db.cursor() cursor.execute(""" CREATE OR REPLACE FUNCTION share_update() RETURNS trigger AS $$BEGIN IF NEW.tree_id IS NULL THEN RAISE EXCEPTION 'tree_id cannot be NULL (share_id=%)', NEW.share_id; END IF; IF NEW.state != OLD.state THEN NEW.last_stat... | 76118157ac67b53e83bb18c194150cf85a11aa4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4762/76118157ac67b53e83bb18c194150cf85a11aa4e/dbinit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24183,
67,
14654,
12,
1966,
4672,
4183,
67,
2271,
12,
1966,
16,
315,
9344,
24748,
296,
412,
84,
30175,
4970,
13,
3347,
273,
1319,
18,
9216,
1435,
3347,
18,
8837,
2932,
3660,
13278,
4869,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24183,
67,
14654,
12,
1966,
4672,
4183,
67,
2271,
12,
1966,
16,
315,
9344,
24748,
296,
412,
84,
30175,
4970,
13,
3347,
273,
1319,
18,
9216,
1435,
3347,
18,
8837,
2932,
3660,
13278,
4869,... |
result = self.__getSoftwareComponents() if not result['OK']: return result softDict = result['Value'] result = self.export_getSetupComponents() if not result['OK']: return result setupDict = result['Value'] result = self.export_getInstalledComponents() if not result['OK']: return result installedDict = result['Value'... | return InstallTools.getOverallStatus( gConfig.getValue( '/DIRAC/Extensions', [] ) ) types_getStartupComponentStatus = [ ListType ] def export_getStartupComponentStatus( self, componentTupleList ): | def export_getOverallStatus(self): """ Get the complete status information for the components in the given list """ result = self.__getSoftwareComponents() if not result['OK']: return result softDict = result['Value'] result = self.export_getSetupComponents() if not result['OK']: return result setupDict = result['Val... | 12be5ded5b2add0661f20d7fa8bd6def28fb091b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/12be5ded5b2add0661f20d7fa8bd6def28fb091b/SystemAdministratorHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
4851,
454,
1482,
12,
2890,
4672,
3536,
225,
968,
326,
3912,
1267,
1779,
364,
326,
4085,
316,
326,
864,
666,
3536,
563,
273,
365,
16186,
588,
21742,
7171,
1435,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
4851,
454,
1482,
12,
2890,
4672,
3536,
225,
968,
326,
3912,
1267,
1779,
364,
326,
4085,
316,
326,
864,
666,
3536,
563,
273,
365,
16186,
588,
21742,
7171,
1435,
309,
486,
... |
if i in (('Depends', 'Provides', 'Suggests', 'Recomends')): | if i in (('Depends', 'Provides', 'Suggests', 'Recommends')): | def process_package(in_entry, vars): e = entry() for i in in_entry.iterkeys(): if i in (('Depends', 'Provides', 'Suggests', 'Recomends')): process_depends(i, e, in_entry, vars) elif i == 'Description': process_description(e, in_entry, vars) elif i[:2] == 'X-': pass else: e[i] = substitute(in_entry[i], vars) return e | 48840e512832ebf4e8b3b50895945ac4ecdb713b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5794/48840e512832ebf4e8b3b50895945ac4ecdb713b/gencontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
5610,
12,
267,
67,
4099,
16,
4153,
4672,
425,
273,
1241,
1435,
364,
277,
316,
316,
67,
4099,
18,
2165,
2452,
13332,
309,
277,
316,
261,
2668,
4584,
87,
2187,
296,
17727,
2187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
5610,
12,
267,
67,
4099,
16,
4153,
4672,
425,
273,
1241,
1435,
364,
277,
316,
316,
67,
4099,
18,
2165,
2452,
13332,
309,
277,
316,
261,
2668,
4584,
87,
2187,
296,
17727,
2187... |
def test_read_and_write_file(self): fs = FileSystem() text_path = None binary_path = None | def write_text_file(self, path, contents): """Write the contents to the file at the given location. | def test_read_and_write_file(self): fs = FileSystem() text_path = None binary_path = None | efac38e57f6fdb2acd345989c6315375837143d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/efac38e57f6fdb2acd345989c6315375837143d5/filesystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
67,
464,
67,
2626,
67,
768,
12,
2890,
4672,
2662,
273,
10931,
1435,
977,
67,
803,
273,
599,
3112,
67,
803,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
67,
464,
67,
2626,
67,
768,
12,
2890,
4672,
2662,
273,
10931,
1435,
977,
67,
803,
273,
599,
3112,
67,
803,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
aParameterList.append( '0' ) self.VariableReferenceList.append( aParameterList ) newName.append( aParameterList[0] + '.Value' ) aASTNode.setName( newName[0] ) return aASTNode def convertKineticLaw( self, aFormula ): aASTRootNode = parseFormula( aFormula ) | aCompartmentList.append( 'Variable:' + self.Model.getPath( aName ) + ':SIZE' ) aCompartmentList.append( '0' ) self.VariableReferenceList.append( aCompartmentList ) newName.append( aCompartmentList[0] + '.Value' ) anASTNode.setName( newName[0] ) return anASTNode return anASTNode def convertKineticLawFormula( ... | def __convertVariableName( self, aASTNode ): | 5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
21519,
12,
365,
16,
279,
9053,
907,
262,
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,
1652,
1001,
6283,
21519,
12,
365,
16,
279,
9053,
907,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._mode = mode if bufsize <= 0: if bufsize == 0: bufsize = 1 else: bufsize = 8192 self._rbufsize = bufsize | self._mode = mode if bufsize < 0: bufsize = self.default_bufsize if bufsize == 0: self._rbufsize = 1 elif bufsize == 1: self._rbufsize = self.default_bufsize else: self._rbufsize = bufsize | def __init__(self, sock, mode='rb', bufsize=-1): self._sock = sock self._mode = mode if bufsize <= 0: if bufsize == 0: bufsize = 1 # Unbuffered mode else: bufsize = 8192 self._rbufsize = bufsize self._wbufsize = bufsize self._rbuf = [ ] self._wbuf = [ ] | 443fec3dd9c1a2c60b538af0504d4926e633b9b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/443fec3dd9c1a2c60b538af0504d4926e633b9b4/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1965,
2218,
6731,
2187,
1681,
1467,
29711,
21,
4672,
365,
6315,
15031,
273,
7313,
365,
6315,
3188,
273,
1965,
309,
1681,
1467,
1648,
374,
30,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1965,
2218,
6731,
2187,
1681,
1467,
29711,
21,
4672,
365,
6315,
15031,
273,
7313,
365,
6315,
3188,
273,
1965,
309,
1681,
1467,
1648,
374,
30,
309... |
self.gridlayout9.addWidget(self.animation_speed_slider,1,1,1,3) spacerItem9 = QtGui.QSpacerItem(27,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.gridlayout9.addItem(spacerItem9,1,4,1,1) | self.gridlayout7.addWidget(self.animation_speed_slider,1,1,1,3) spacerItem10 = QtGui.QSpacerItem(27,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.gridlayout7.addItem(spacerItem10,1,4,1,1) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
""" | """ | def getTotalScoreForStudent(student): """Compute the total score for a student. | d0d1e12979105f87b235bea82e0c02705801168a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/d0d1e12979105f87b235bea82e0c02705801168a/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12831,
7295,
1290,
19943,
319,
12,
26240,
4672,
3536,
7018,
326,
2078,
4462,
364,
279,
18110,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12831,
7295,
1290,
19943,
319,
12,
26240,
4672,
3536,
7018,
326,
2078,
4462,
364,
279,
18110,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if imm > 2^8 or imm < 0: | if imm > 2**8 or imm < 0: | def parse_trap(instruc = "", word_buf = ""): if instruc == "" or word_buf == "": print "ERROR: someone accidentally the code in parse_trap" return "-1" instruc = sanitize(instruc) imm = instruc[1] imm = int(imm) if imm > 2^8 or imm < 0: print "ERROR: Immediate value " + str(imm) +" is out of range." print "IMM in TRA... | e0f7f04f2f4f997485454a53ab24cb6926b906bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/e0f7f04f2f4f997485454a53ab24cb6926b906bd/assembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
27170,
12,
267,
701,
5286,
273,
23453,
2076,
67,
4385,
273,
1408,
4672,
309,
16170,
5286,
422,
1408,
578,
2076,
67,
4385,
422,
1408,
30,
1172,
315,
3589,
30,
18626,
25961,
1230... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
27170,
12,
267,
701,
5286,
273,
23453,
2076,
67,
4385,
273,
1408,
4672,
309,
16170,
5286,
422,
1408,
578,
2076,
67,
4385,
422,
1408,
30,
1172,
315,
3589,
30,
18626,
25961,
1230... |
def testErrnoOnClose(self): f = self.f os.close(f.fileno()) self.f = None try: f.close() except IOError as e: self.assertEqual(e.errno, errno.EBADF) else: self.fail("Should have raised IOError") | def ClosedFD(func): @wraps(func) def wrapper(self): f = self.f os.close(f.fileno()) try: func(self, f) finally: try: self.f.close() except IOError: pass return wrapper def ClosedFDRaises(func): @wraps(func) def wrapper(self): f = self.f os.close(f.fileno()) try: func(self, f) except IOError as e: self.assertEqual(... | def testErrnoOnClose(self): # Test that the IOError's `errno` attribute is correctly set when # close() fails. Here we first close the file descriptor ourselves so # that close() fails with EBADF ('Bad file descriptor'). f = self.f os.close(f.fileno()) self.f = None try: f.close() except IOError as e: self.assertEqual(... | b3e58e1912db99a277de305ee178cb84c1d0b052 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/b3e58e1912db99a277de305ee178cb84c1d0b052/test_fileio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2524,
2135,
1398,
4605,
12,
2890,
4672,
468,
7766,
716,
326,
8340,
1807,
1375,
19088,
68,
1566,
353,
8783,
444,
1347,
468,
1746,
1435,
6684,
18,
13743,
732,
1122,
1746,
326,
585,
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,
1842,
2524,
2135,
1398,
4605,
12,
2890,
4672,
468,
7766,
716,
326,
8340,
1807,
1375,
19088,
68,
1566,
353,
8783,
444,
1347,
468,
1746,
1435,
6684,
18,
13743,
732,
1122,
1746,
326,
585,
4... |
q_list.append(q_param) | q_list.append(q_param.strip().replace(':', '\:')) | def run_solr_query(param = {}, rows=100, page=1, sort=None, spellcheck_count=None): if spellcheck_count == None: spellcheck_count = default_spellcheck_count q_list = [] if 'q' in param: q_param = param['q'].strip() else: q_param = None offset = rows * (page - 1) use_dismax = False if q_param: if q_param == '*:*': q_lis... | 59e19b0fb9aa480b42f7117aac718d66ec4307e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/59e19b0fb9aa480b42f7117aac718d66ec4307e7/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
22495,
67,
2271,
12,
891,
273,
10615,
2595,
33,
6625,
16,
1363,
33,
21,
16,
1524,
33,
7036,
16,
22377,
1893,
67,
1883,
33,
7036,
4672,
309,
22377,
1893,
67,
1883,
422,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
22495,
67,
2271,
12,
891,
273,
10615,
2595,
33,
6625,
16,
1363,
33,
21,
16,
1524,
33,
7036,
16,
22377,
1893,
67,
1883,
33,
7036,
4672,
309,
22377,
1893,
67,
1883,
422,
599,
... |
number = int(match[2:]) | number = int(match[1:]) | def _tickethref_formatter(self, match, fullmatch): number = int(match[2:]) return '<a href="%s">#%d</a>' % (href.ticket(number), number) | 56291aa5b54197417d5969320974ec53f3d8f998 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/56291aa5b54197417d5969320974ec53f3d8f998/Wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6470,
546,
1734,
67,
12354,
12,
2890,
16,
845,
16,
1983,
1916,
4672,
1300,
273,
509,
12,
1916,
63,
21,
30,
5717,
327,
2368,
69,
3897,
11613,
87,
6441,
7,
9,
72,
1757,
69,
1870,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6470,
546,
1734,
67,
12354,
12,
2890,
16,
845,
16,
1983,
1916,
4672,
1300,
273,
509,
12,
1916,
63,
21,
30,
5717,
327,
2368,
69,
3897,
11613,
87,
6441,
7,
9,
72,
1757,
69,
1870,
... |
return int(id) | return int(obj) | def getID(obj): try: return obj.id except AttributeError: return int(id) | 18fef3124b3623d2494473246d98f5af95b2d62a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/18fef3124b3623d2494473246d98f5af95b2d62a/joins.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14744,
12,
2603,
4672,
775,
30,
327,
1081,
18,
350,
1335,
6394,
30,
327,
509,
12,
2603,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14744,
12,
2603,
4672,
775,
30,
327,
1081,
18,
350,
1335,
6394,
30,
327,
509,
12,
2603,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
subgroups in a permutation group G. The ordering is that given by | subgroups in a permutation group `G`. The ordering is that given by | def conjugacy_classes_subgroups(self): """ Returns a complete list of representatives of conjugacy classes of subgroups in a permutation group G. The ordering is that given by GAP. EXAMPLES:: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4)]]) sage: cl = G.conjugacy_classes_subgroups() sage: cl [Permutation Grou... | 1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10550,
637,
3505,
67,
4701,
67,
1717,
4650,
12,
2890,
4672,
3536,
2860,
279,
3912,
666,
434,
2406,
8785,
434,
10550,
637,
3505,
3318,
434,
720,
4650,
316,
279,
17440,
1041,
1375,
43,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10550,
637,
3505,
67,
4701,
67,
1717,
4650,
12,
2890,
4672,
3536,
2860,
279,
3912,
666,
434,
2406,
8785,
434,
10550,
637,
3505,
3318,
434,
720,
4650,
316,
279,
17440,
1041,
1375,
43,
833... |
st.append("%X"%(int(str(M[x,y].int_repr())))) | st.append("%X"%(int(str(M[x, y].int_repr())))) | def hex_str_vector(self, M): """ Return a one dimensional AES like representation of the matrix M. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
67,
701,
67,
7737,
12,
2890,
16,
490,
4672,
3536,
2000,
279,
1245,
17469,
15986,
3007,
4335,
434,
326,
3148,
490,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3827,
67,
701,
67,
7737,
12,
2890,
16,
490,
4672,
3536,
2000,
279,
1245,
17469,
15986,
3007,
4335,
434,
326,
3148,
490,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sys.path.append('generatedCode') | sys.path.append(subdirPath) | def getModule(self, section, serviceName, subdirPath, schemaOnly=False, explicitPath=None): sys.path.append('generatedCode') try: # fix service = __import__(serviceName + '_services') except ImportError: service = self.generateCode(section, serviceName, subdirPath, schemaOnly, explicitPath) return service | 4f86ae8fc8443cfb477b119044370888fcf79304 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4f86ae8fc8443cfb477b119044370888fcf79304/clientGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11251,
12,
2890,
16,
2442,
16,
6773,
16,
16921,
743,
16,
1963,
3386,
33,
8381,
16,
5515,
743,
33,
7036,
4672,
2589,
18,
803,
18,
6923,
12,
1717,
1214,
743,
13,
775,
30,
468,
2917,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11251,
12,
2890,
16,
2442,
16,
6773,
16,
16921,
743,
16,
1963,
3386,
33,
8381,
16,
5515,
743,
33,
7036,
4672,
2589,
18,
803,
18,
6923,
12,
1717,
1214,
743,
13,
775,
30,
468,
2917,
11... |
cur.Location = TabList[piece] self.itemattrlist[TabList[piece]] = cur self.currentTabLabel = TabList[piece] if TabList[piece] in JewelTabList: | cur.Location = piece self.itemattrlist[piece] = cur self.currentTabLabel = piece if piece in JewelTabList: | def moveTo(self, action): cur = self.itemattrlist[self.currentTabLabel] if cur.ActiveState != 'player': return piece = action.data().toInt()[0] part = self.itemattrlist[TabList[piece]] if cur == part: return if cur.next is None: item = Item(realm=self.realm,loc=self.currentTabLabel, state=cur.ActiveState) if cur.Active... | 4871e7b90ac3ae938def5bc89e9ea84b3a33c81a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/4871e7b90ac3ae938def5bc89e9ea84b3a33c81a/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13863,
12,
2890,
16,
1301,
4672,
662,
273,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
65,
309,
662,
18,
3896,
1119,
480,
296,
14872,
4278,
327,
11151,
273,
1301,
18,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13863,
12,
2890,
16,
1301,
4672,
662,
273,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
65,
309,
662,
18,
3896,
1119,
480,
296,
14872,
4278,
327,
11151,
273,
1301,
18,
89... |
n_lines += 1 | def write_results_file(self, path, lines, lnotab, lines_hit): """Return a coverage results file in path.""" | eae3b77ba7e028343b1ce13411320c4f2ac4dd6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/eae3b77ba7e028343b1ce13411320c4f2ac4dd6f/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4717,
67,
768,
12,
2890,
16,
589,
16,
2362,
16,
328,
902,
378,
16,
2362,
67,
15989,
4672,
3536,
990,
279,
11196,
1686,
585,
316,
589,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4717,
67,
768,
12,
2890,
16,
589,
16,
2362,
16,
328,
902,
378,
16,
2362,
67,
15989,
4672,
3536,
990,
279,
11196,
1686,
585,
316,
589,
12123,
2,
-100,
-100,
-100,
-100,
-100,
... | |
def introspect_other(val, val_doc): | def introspect_other(val, val_doc, module_name=None): | def introspect_other(val, val_doc): """Specialize val_doc to a C{GenericValueDoc} and return it.""" val_doc.specialize_to(GenericValueDoc) return val_doc | d9e67897aaaf2b8d18fca084b80edea62a58df3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/d9e67897aaaf2b8d18fca084b80edea62a58df3f/docintrospecter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
3011,
12,
1125,
16,
1244,
67,
2434,
16,
1605,
67,
529,
33,
7036,
4672,
3536,
1990,
1710,
1244,
67,
2434,
358,
279,
385,
95,
7014,
620,
1759,
97,
471,
327,
518,
12123,
1244,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
3011,
12,
1125,
16,
1244,
67,
2434,
16,
1605,
67,
529,
33,
7036,
4672,
3536,
1990,
1710,
1244,
67,
2434,
358,
279,
385,
95,
7014,
620,
1759,
97,
471,
327,
518,
12123,
1244,
... |
action = Request.args.get('action') | action = request.args.get('action') | def __call__(self, environ, start_response): request = Request(environ) action = Request.args.get('action') from MoinMoin import xmlrpc | e415f42eed472e520213ae82e698076397cc9483 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/e415f42eed472e520213ae82e698076397cc9483/apps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
590,
273,
1567,
12,
28684,
13,
1301,
273,
590,
18,
1968,
18,
588,
2668,
1128,
6134,
225,
628,
490,
885,
49,
885,
1930,
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,
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,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
590,
273,
1567,
12,
28684,
13,
1301,
273,
590,
18,
1968,
18,
588,
2668,
1128,
6134,
225,
628,
490,
885,
49,
885,
1930,
3... |
def handle_invalid_name(self): | def handle_invalid_name(self, name): | def handle_invalid_name(self): msg = _("Category name '%s' not valid. Must be non-empty.") _display_error_message(msg % name, self) _set_focus_and_select(self.txt_name) | 3be93aa11295d1e8fa928ed6b4e6b02c7cfde8bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5252/3be93aa11295d1e8fa928ed6b4e6b02c7cfde8bf/categoryeditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5387,
67,
529,
12,
2890,
16,
508,
4672,
1234,
273,
389,
2932,
4457,
508,
1995,
87,
11,
486,
923,
18,
6753,
506,
1661,
17,
5531,
1199,
13,
389,
5417,
67,
1636,
67,
2150,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5387,
67,
529,
12,
2890,
16,
508,
4672,
1234,
273,
389,
2932,
4457,
508,
1995,
87,
11,
486,
923,
18,
6753,
506,
1661,
17,
5531,
1199,
13,
389,
5417,
67,
1636,
67,
2150,
12,... |
accel = self.client.get_string(gconf_path) if gconf_path in [x[0] for x in GHOTKEYS]: globalhotkeys.unbind(accel) keynum, mask = gtk.accelerator_parse(accel) if keynum: self.guake.accel_group.disconnect_key(keynum, mask) | def on_key_cleared(self, renderer, path, model): giter = model.get_iter(path) gconf_path = model.get_value(giter, 0) accel = self.client.get_string(gconf_path) model.set_value(giter, 2, KeyEntry(0, 0)) | de00492a8254b0d7a402011a0823338d7843934d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11147/de00492a8254b0d7a402011a0823338d7843934d/prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
856,
67,
2131,
2258,
12,
2890,
16,
5690,
16,
589,
16,
938,
4672,
314,
2165,
273,
938,
18,
588,
67,
2165,
12,
803,
13,
314,
3923,
67,
803,
273,
938,
18,
588,
67,
1132,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
856,
67,
2131,
2258,
12,
2890,
16,
5690,
16,
589,
16,
938,
4672,
314,
2165,
273,
938,
18,
588,
67,
2165,
12,
803,
13,
314,
3923,
67,
803,
273,
938,
18,
588,
67,
1132,
12,
... | |
return self._createPassiveDTP() return self._createActiveDTP() | d = self._createPassiveDTP() else: d = self._createActiveDTP() d = self.dtpFactory.deferred d.addCallback(debugDeferred, 'dtpFactory deferred') d.addCallback(self._unblock) d.addErrback(self._ebDtpInstance) | def _createDTP(self): if self.debug: log.msg('_createDTP') if self.dtpTxfrMode != ACTV: return self._createPassiveDTP() return self._createActiveDTP() | cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0/jdftp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
9081,
52,
12,
2890,
4672,
309,
365,
18,
4148,
30,
613,
18,
3576,
2668,
67,
2640,
9081,
52,
6134,
309,
365,
18,
72,
6834,
4188,
4840,
2309,
480,
14684,
58,
30,
327,
365,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
9081,
52,
12,
2890,
4672,
309,
365,
18,
4148,
30,
613,
18,
3576,
2668,
67,
2640,
9081,
52,
6134,
309,
365,
18,
72,
6834,
4188,
4840,
2309,
480,
14684,
58,
30,
327,
365,
63... |
The path can be given as an exact path or as a pattern where '*' - matches everything '?' - matches any single character '[chars]' - matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b' or 'c') '[!chars]' - matches any character not inside square brackets | The path can be given as an exact path or as a pattern where: | * | matches everything | | ? | matches any single character | | [chars] | matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b' or 'c') | | [!chars] | matches any character not inside square brackets | Pattern m... | def file_should_exist(self, path, msg=None): """Fails unless the given path points to an existing file. The path can be given as an exact path or as a pattern where '*' - matches everything '?' - matches any single character '[chars]' - matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b'... | a2152145a7e713b7a988a154a7b296b361d56338 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/a2152145a7e713b7a988a154a7b296b361d56338/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
13139,
67,
7398,
12,
2890,
16,
589,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
326,
864,
589,
3143,
358,
392,
2062,
585,
18,
225,
1021,
589,
848,
506,
864,
487,
392,
5565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
13139,
67,
7398,
12,
2890,
16,
589,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
326,
864,
589,
3143,
358,
392,
2062,
585,
18,
225,
1021,
589,
848,
506,
864,
487,
392,
5565,
... |
tooltip.add(1060410, str(durabilitybonus)) | if durabilitybonus > 0: tooltip.add(1060410, '+' + str(durabilitybonus)) else: tooltip.add(1060410, str(durabilitybonus)) | def onShowTooltip(viewer, object, tooltip): armor = properties.itemcheck(object, ITEM_ARMOR) weapon = properties.itemcheck(object, ITEM_WEAPON) shield = properties.itemcheck(object, ITEM_SHIELD) if (armor or weapon or shield) and object.amount == 1: # Reinsert the name if we need an ore prefix prefix1 = None if object... | c08abcaa167b486e7294bd91261316879b5a30ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/c08abcaa167b486e7294bd91261316879b5a30ec/equipment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
5706,
22444,
12,
25256,
16,
733,
16,
11915,
4672,
23563,
280,
273,
1790,
18,
1726,
1893,
12,
1612,
16,
25504,
67,
26120,
916,
13,
732,
28629,
273,
1790,
18,
1726,
1893,
12,
1612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
5706,
22444,
12,
25256,
16,
733,
16,
11915,
4672,
23563,
280,
273,
1790,
18,
1726,
1893,
12,
1612,
16,
25504,
67,
26120,
916,
13,
732,
28629,
273,
1790,
18,
1726,
1893,
12,
1612,
... |
selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\ | selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ | def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default... | 778480334357616b82303c863b630decc9748d34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/778480334357616b82303c863b630decc9748d34/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
12,
2890,
4672,
225,
19709,
26487,
7,
468,
1387,
13288,
3215,
19709,
26487,
7,
225,
11849,
7,
3502,
1387,
11849,
7,
225,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
... |
def startTagTable(self, name, attributes): self.parser.parseError() assert False | def startTagImplyTbody(self, name, attributes): self.startTagRowGroup("tbody") # XXX assert False | 23c4036fec561dd7b04cf5b1db35a67cd0c99833 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/23c4036fec561dd7b04cf5b1db35a67cd0c99833/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1170,
1283,
56,
3432,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
1937,
1805,
1999,
1114,
2932,
20779,
7923,
468,
11329,
1815,
1083,
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,
787,
1805,
1170,
1283,
56,
3432,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
1937,
1805,
1999,
1114,
2932,
20779,
7923,
468,
11329,
1815,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
print '_scan(%r)' % node | def _scan(node, buffer, parent_bbox, page_height = None): print '_scan(%r)' % node def look_down(buffer, parent_bbox): for child in node.iterchildren(): _scan(child, buffer, parent_bbox, page_height) if node.tail and node.tail.strip(): buffer.append(node.tail) if node.text and node.text.strip(): buffer.append(node.text... | 0959659885b362b9e225eafa3a4fed31de09ec61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3685/0959659885b362b9e225eafa3a4fed31de09ec61/hocr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
12,
2159,
16,
1613,
16,
982,
67,
20737,
16,
1363,
67,
4210,
273,
599,
4672,
1652,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9871,
12,
2159,
16,
1613,
16,
982,
67,
20737,
16,
1363,
67,
4210,
273,
599,
4672,
1652,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
... | |
line = line[1:] while 1: res = reg.search(line) | pos = 1 while 1: res = reg.search(line, pos) | def mime_encode(line, header): '''Code a single line as quoted-printable. If header is set, quote some extra characters.''' if header: reg = mime_header_char else: reg = mime_char newline = '' if len(line) >= 5 and line[:5] == 'From ': # quote 'From ' at the start of a line for stupid mailers newline = string.upper('=%... | 2da64378fc8910a8cade10d25f8774ca051556f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2da64378fc8910a8cade10d25f8774ca051556f9/mimify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4892,
67,
3015,
12,
1369,
16,
1446,
4672,
9163,
1085,
279,
2202,
980,
487,
9298,
17,
1188,
429,
18,
971,
1446,
353,
444,
16,
3862,
2690,
2870,
3949,
1093,
6309,
309,
1446,
30,
960,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4892,
67,
3015,
12,
1369,
16,
1446,
4672,
9163,
1085,
279,
2202,
980,
487,
9298,
17,
1188,
429,
18,
971,
1446,
353,
444,
16,
3862,
2690,
2870,
3949,
1093,
6309,
309,
1446,
30,
960,
273... |
except psutil.AccessDenied: pass | def test_pid_0(self): # Process(0) is supposed to work on all platforms even if with # some differences p = psutil.Process(0) if sys.platform.lower().startswith("win32"): self.assertEqual(p.name, 'System Idle Process') elif sys.platform.lower().startswith("linux"): self.assertEqual(p.name, 'sched') elif sys.platform.lo... | d9bc69addf477f2d44ede61a138919088f8bbb7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7296/d9bc69addf477f2d44ede61a138919088f8bbb7e/test_psutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6610,
67,
20,
12,
2890,
4672,
468,
4389,
12,
20,
13,
353,
18405,
358,
1440,
603,
777,
17422,
5456,
309,
598,
468,
2690,
16440,
293,
273,
27024,
18,
2227,
12,
20,
13,
309,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6610,
67,
20,
12,
2890,
4672,
468,
4389,
12,
20,
13,
353,
18405,
358,
1440,
603,
777,
17422,
5456,
309,
598,
468,
2690,
16440,
293,
273,
27024,
18,
2227,
12,
20,
13,
309,
2... | |
self._radiusy = (1.0 - self.perspective/100.0)*radiusy | self._radiusy = radiusy = (1.0 - self.perspective/100.0)*radiusy | def draw(self): slices = self.slices _3d_angle = self.angle_3d _3dva = self._3dva = _360(_3d_angle+90) a0 = _2rad(_3dva) self._xdepth_3d = cos(a0)*self.depth_3d self._ydepth_3d = sin(a0)*self.depth_3d self._cx = self.x+self.width/2.0 self._cy = self.y+(self.height - self._ydepth_3d)/2.0 radiusx = radiusy = self._cx-sel... | 23360196205a3256a8e64a0a96d29d84bdbe5493 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/23360196205a3256a8e64a0a96d29d84bdbe5493/piecharts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
12390,
273,
365,
18,
21562,
389,
23,
72,
67,
4341,
273,
365,
18,
4341,
67,
23,
72,
389,
23,
72,
15304,
273,
365,
6315,
23,
72,
15304,
273,
389,
29751,
24899,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
12390,
273,
365,
18,
21562,
389,
23,
72,
67,
4341,
273,
365,
18,
4341,
67,
23,
72,
389,
23,
72,
15304,
273,
365,
6315,
23,
72,
15304,
273,
389,
29751,
24899,
23... |
self.log.show_errors() | if self.failed_module is None: self.log.show_errors() else: self.failed_module.show_errors() | def show_errors (self): self.log.show_errors() | 87a9df4b38beecf23f999206a399ef643259af21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/87a9df4b38beecf23f999206a399ef643259af21/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4324,
261,
2890,
4672,
365,
18,
1330,
18,
4500,
67,
4324,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4324,
261,
2890,
4672,
365,
18,
1330,
18,
4500,
67,
4324,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
(r'\s+|\w+', Text), | (r'(\s*)(%s)(.*\n)' % '|'.join(DPATCH_KEYWORDS), bygroups(Text, Keyword, Text)), (r'\+', Generic.Inserted, "insert"), (r'-', Generic.Deleted, "delete"), (r'.*\n', Text), | def analyse_text(text): if text[:7] == 'Index: ': return True if text[:5] == 'diff ': return True if text[:4] == '--- ': return 0.9 | 4fa4c6af0050b4ff88f6b45c0cc66e52ce6d2024 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/4fa4c6af0050b4ff88f6b45c0cc66e52ce6d2024/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31087,
67,
955,
12,
955,
4672,
309,
977,
10531,
27,
65,
422,
296,
1016,
30,
4290,
327,
1053,
309,
977,
10531,
25,
65,
422,
296,
5413,
4290,
327,
1053,
309,
977,
10531,
24,
65,
422,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31087,
67,
955,
12,
955,
4672,
309,
977,
10531,
27,
65,
422,
296,
1016,
30,
4290,
327,
1053,
309,
977,
10531,
25,
65,
422,
296,
5413,
4290,
327,
1053,
309,
977,
10531,
24,
65,
422,
3... |
'fo:border-left': '0.002cm solid | 'fo:border-left': '0.035cm solid | def visit_option_list(self, node): #self.document.reporter.debug_flag = 1 #self.document.reporter.attach_observer(self.show_message) table_name = 'rststyle-tableoption' # # Generate automatic styles if not self.optiontablestyles_generated: self.optiontablestyles_generated = True el = etree.SubElement(self.automatic_sty... | eef06f5f50d263af719c6f6d103fb10c6a89c1fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/eef06f5f50d263af719c6f6d103fb10c6a89c1fb/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3482,
67,
1098,
12,
2890,
16,
756,
4672,
468,
2890,
18,
5457,
18,
266,
7988,
18,
4148,
67,
6420,
273,
404,
468,
2890,
18,
5457,
18,
266,
7988,
18,
7331,
67,
30971,
12,
2890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3482,
67,
1098,
12,
2890,
16,
756,
4672,
468,
2890,
18,
5457,
18,
266,
7988,
18,
4148,
67,
6420,
273,
404,
468,
2890,
18,
5457,
18,
266,
7988,
18,
7331,
67,
30971,
12,
2890... |
this = apply(_quickfix.new_NoDates, args) | this = _quickfix.new_NoDates(*args) | def __init__(self, *args): this = apply(_quickfix.new_NoDates, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
15578,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
15578,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
... |
return ValuesView(self) | return [self[key] for key in self] | def values(self): return ValuesView(self) | 3cb32c7f8cfe99bcfd3ef64776c34ee70e1049c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/3cb32c7f8cfe99bcfd3ef64776c34ee70e1049c8/_abcoll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
924,
12,
2890,
4672,
327,
6876,
1767,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
924,
12,
2890,
4672,
327,
6876,
1767,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rml2 = rml_parser._parse(rml_dom, objs, data, header=self.header) | rml2 = rml_parser._parse(rml_dom, objs, data, header=want_header) | def create(self, cr, uid, ids, data, context=None): logo = None if not context: context={} context = context.copy() | 6624124758ebd759cd9b4edda57eebdd213305a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/6624124758ebd759cd9b4edda57eebdd213305a8/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
19128,
273,
599,
309,
486,
819,
30,
819,
12938,
819,
273,
819,
18,
3530,
1435,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
19128,
273,
599,
309,
486,
819,
30,
819,
12938,
819,
273,
819,
18,
3530,
1435,
2,
-100,
-100,
-100,
-10... |
self.assertEquals(transcoder.pipeline_description, 'uiuiuiui') | self.assertEquals(transcoder.pipeline_description, 'uiui%suiui') | def test_is_loading_one_process_from_config(self): my_config = {'name': 'megaprocess', 'pipeline': 'uiuiuiui', 'type': 'process', 'target': 'yay'} coherence = self.CoherenceStump(transcoder=my_config) self.manager = TranscoderManager(coherence) self._check_for_transcoders(known_transcoders) transcoder = self.manager.se... | 57524504b476672a4f25a706269d224fefb63a33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/57524504b476672a4f25a706269d224fefb63a33/test_transcoder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
291,
67,
15174,
67,
476,
67,
2567,
67,
2080,
67,
1425,
12,
2890,
4672,
3399,
67,
1425,
273,
13666,
529,
4278,
296,
81,
1332,
438,
16127,
2187,
296,
14511,
4278,
296,
4881,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
291,
67,
15174,
67,
476,
67,
2567,
67,
2080,
67,
1425,
12,
2890,
4672,
3399,
67,
1425,
273,
13666,
529,
4278,
296,
81,
1332,
438,
16127,
2187,
296,
14511,
4278,
296,
4881,
48... |
cur[i] = ex[m].native() | cur[i] = float(ex[m].native()) | def updateTables(self): if self.textData: if textCorpusModul: data = (self.attrRow == 'document' and [self.data] or [CategoryDocument(self.data).dataCD])[0] else: data = self.data metas = data.domain.getmetas() lenMetas = len(metas) caList = [] for ex in data: cur = [0] * lenMetas for i, m in zip(range(lenMetas), metas... | f33367f62681dbd2cca39410cef0890fc96b143b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/f33367f62681dbd2cca39410cef0890fc96b143b/OWCorrAnalysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6905,
12,
2890,
4672,
309,
365,
18,
955,
751,
30,
309,
977,
6217,
9861,
1739,
332,
30,
501,
273,
261,
2890,
18,
1747,
1999,
422,
296,
5457,
11,
471,
306,
2890,
18,
892,
65,
578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6905,
12,
2890,
4672,
309,
365,
18,
955,
751,
30,
309,
977,
6217,
9861,
1739,
332,
30,
501,
273,
261,
2890,
18,
1747,
1999,
422,
296,
5457,
11,
471,
306,
2890,
18,
892,
65,
578... |
ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context) | if not name: ids = self.search(cr, user, args, limit=limit, context=context) else: ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context) | def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80): if not args: args=[] if not context: context={} if context.get('contact_display', 'contact')=='partner': ids = self.search(cr, user, [('partner_id',operator,name)], limit=limit, context=context) else: ids = self.search(cr, user,... | ac8f45250589152596e7f6e249a4d12fedc84fcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/ac8f45250589152596e7f6e249a4d12fedc84fcb/partner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
16,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
16,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
... |
def __init__(self, tag, title="", secnum="1", pagenum="1", level=2): | def __init__(self, tag, title="", secnum="1", pagenum="1", level=2, open_by_default=False): | def __init__(self, tag, title="", secnum="1", pagenum="1", level=2): markup.page.__init__(self, mode="strict_html") self.pagenum = pagenum self.secnum = secnum self._title = title self.sections = {} self.section_ids = [] self.level = level self.tag = tag self.id = tag + self.secnum self.tables = 0 self.add('<div class=... | 0a9ef6e90647a2f6188dcd1101d39b03cb8c8ec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/0a9ef6e90647a2f6188dcd1101d39b03cb8c8ec9/cbcwebpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1047,
16,
2077,
1546,
3113,
1428,
2107,
1546,
21,
3113,
4262,
7924,
1546,
21,
3113,
1801,
33,
22,
16,
1696,
67,
1637,
67,
1886,
33,
8381,
4672,
9813,
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,
1001,
2738,
972,
12,
2890,
16,
1047,
16,
2077,
1546,
3113,
1428,
2107,
1546,
21,
3113,
4262,
7924,
1546,
21,
3113,
1801,
33,
22,
16,
1696,
67,
1637,
67,
1886,
33,
8381,
4672,
9813,
18,... |
for product_id in data['form']['products'][0][2]: value = sale_line_obj.product_id_change(cr, uid, [], pricelist, product_id, qty=1, partner_id=partner_id, fiscal_position=fpos)['value'] value['product_id'] = product_id value['order_id'] = new_id value['tax_id'] = [(6,0,value['tax_id'])] sale_line_obj.create(cr, uid, v... | if data['form']['products']: for product_id in data['form']['products'][0][2]: value = { 'price_unit': 0.0, 'product_id': product_id, 'order_id': new_id, } value.update( sale_line_obj.product_id_change(cr, uid, [], pricelist,product_id, qty=1, partner_id=partner_id, fiscal_position=fpos)['value'] ) value['tax_id'] = [(... | def _makeOrder(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) mod_obj = pool.get('ir.model.data') result = mod_obj._get_id(cr, uid, 'sale', 'view_sales_order_filter') id = mod_obj.read(cr, uid, result, ['res_id']) case_obj = pool.get('crm.opportunity') sale_obj = pool.get('sale.order') partner_obj = p... | 466e06e60c426d01b2518766bf2cc94ec66ea26f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/466e06e60c426d01b2518766bf2cc94ec66ea26f/makesale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
2448,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
681,
67,
2603,
273,
2845,
18,
588,
2668,
481,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
2448,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
681,
67,
2603,
273,
2845,
18,
588,
2668,
481,... |
log.err("Read-only property %s: %s" % (property.sname(),)) | log.err("Read-only property %s" % (property.sname(),)) | def writeProperty(self, property): """ See L{IDAVResource.writeProperty}. """ try: self.getProperties()[property.qname()] = property except ValueError: log.err("Read-only property %s: %s" % (property.sname(),)) raise HTTPError(responsecode.CONFLICT) | f8bd9d31a352ca1ed7b7d0ca4e56449094872913 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f8bd9d31a352ca1ed7b7d0ca4e56449094872913/resource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1396,
12,
2890,
16,
1272,
4672,
3536,
2164,
511,
95,
734,
5856,
1420,
18,
2626,
1396,
5496,
3536,
775,
30,
365,
18,
588,
2297,
1435,
63,
4468,
18,
85,
529,
1435,
65,
273,
1272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1396,
12,
2890,
16,
1272,
4672,
3536,
2164,
511,
95,
734,
5856,
1420,
18,
2626,
1396,
5496,
3536,
775,
30,
365,
18,
588,
2297,
1435,
63,
4468,
18,
85,
529,
1435,
65,
273,
1272,
... |
self.draw_openclose_lines = debug_pref("MT: openclose lines", self._openclose_lines_choice, | self.draw_openclose_lines = debug_pref("Model Tree: openclose lines", self._openclose_lines_choice, | def _setup_openclose_style(self): "[private] As an optimization, choose the openclose icons (etc) just once before drawing." style = debug_pref("MT: openclose icon style", self._icon_style_choice, non_debug = True, prefs_key = "A9/MT openclose icon style") if style == 'mac': self.collapsed_mtnode_icon = self.mac_colla... | 803f5c9bed45783a867e020fe3dc0133f196ec32 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/803f5c9bed45783a867e020fe3dc0133f196ec32/modelTreeGui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
556,
1331,
2061,
67,
4060,
12,
2890,
4672,
5158,
1152,
65,
2970,
392,
14850,
16,
9876,
326,
1061,
1331,
2061,
17455,
261,
14175,
13,
2537,
3647,
1865,
16327,
1199,
225,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
556,
1331,
2061,
67,
4060,
12,
2890,
4672,
5158,
1152,
65,
2970,
392,
14850,
16,
9876,
326,
1061,
1331,
2061,
17455,
261,
14175,
13,
2537,
3647,
1865,
16327,
1199,
225,
21... |
self.getRouter(oldIc).destroySession() | if oldSf: oldSf = omero.api.ServiceFactoryPrx.uncheckedCast(oldSf.ice_oneway()) oldSf.destroy() | def closeSession(self): """ Closes the Router connection created by createSession(). Due to a bug in Ice, only one connection is allowed per communicator, so we also destroy the communicator. """ | 8370c24d06f3fd845a90773dc637748ed3817b09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/8370c24d06f3fd845a90773dc637748ed3817b09/clients.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27578,
12,
2890,
4672,
3536,
22442,
2420,
326,
9703,
1459,
2522,
635,
752,
2157,
7675,
463,
344,
358,
279,
7934,
316,
467,
311,
16,
1338,
1245,
1459,
353,
2935,
1534,
8391,
8844,
16,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27578,
12,
2890,
4672,
3536,
22442,
2420,
326,
9703,
1459,
2522,
635,
752,
2157,
7675,
463,
344,
358,
279,
7934,
316,
467,
311,
16,
1338,
1245,
1459,
353,
2935,
1534,
8391,
8844,
16,
142... |
self._workerThreads = [] | def __init__(self, bind_addr, wsgi_app, numthreads=10, server_name=None, max=-1, request_queue_size=5, timeout=10, shutdown_timeout=5): self.requests = Queue.Queue(max) if callable(wsgi_app): # We've been handed a single wsgi_app, in CP-2.1 style. # Assume it's mounted at "". self.wsgi_app = wsgi_app else: # We've bee... | 2d230d71855f0afe3a9190e286cfb7edb5fabb4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/82/2d230d71855f0afe3a9190e286cfb7edb5fabb4a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1993,
67,
4793,
16,
341,
17537,
67,
2910,
16,
818,
12495,
33,
2163,
16,
1438,
67,
529,
33,
7036,
16,
943,
29711,
21,
16,
590,
67,
4000,
67,
1467,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1993,
67,
4793,
16,
341,
17537,
67,
2910,
16,
818,
12495,
33,
2163,
16,
1438,
67,
529,
33,
7036,
16,
943,
29711,
21,
16,
590,
67,
4000,
67,
1467,
33,
... | |
def warning(msg, *args): "Log a warning" m = "warning: " + msg logger.warning(m, *args) | def warning(*args): "Log a warning" logger.warning(*args) | def warning(msg, *args): "Log a warning" m = "warning: " + msg logger.warning(m, *args) | 4313555fb8857b99f7f3acf7f4aecec3c355fd11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4313555fb8857b99f7f3acf7f4aecec3c355fd11/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
30857,
1968,
4672,
315,
1343,
279,
3436,
6,
1194,
18,
8551,
30857,
1968,
13,
225,
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,
3436,
30857,
1968,
4672,
315,
1343,
279,
3436,
6,
1194,
18,
8551,
30857,
1968,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
], | ] | def __init__(self): sql_up = [ | 1788f8f226d095d17c13658bb193fd9fadb1b46b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/1788f8f226d095d17c13658bb193fd9fadb1b46b/050_flatpage_about_page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1847,
67,
416,
273,
306,
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,
1001,
2738,
972,
12,
2890,
4672,
1847,
67,
416,
273,
306,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
configure_pegasus_mail(pmail_ini_dir) | def configure_pocomail(): import win32api import win32con key = "Software\\Poco Systems Inc" pop_proxy = pop_proxy_port smtp_proxy = smtp_proxy_port reg = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, key) subkey_name = "%s\\%s" % (key, win32api.RegEnumKey(reg, 0)) reg = win32api.RegOpenKe... | 3d5d9a7825018bb1a6aa54d79d0bb20495581599 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/3d5d9a7825018bb1a6aa54d79d0bb20495581599/autoconfigure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
84,
9970,
671,
13332,
1930,
5657,
1578,
2425,
1930,
5657,
1578,
591,
225,
498,
273,
315,
21742,
1695,
52,
29571,
30558,
15090,
6,
225,
1843,
67,
5656,
225,
273,
1843,
67,
5656,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
84,
9970,
671,
13332,
1930,
5657,
1578,
2425,
1930,
5657,
1578,
591,
225,
498,
273,
315,
21742,
1695,
52,
29571,
30558,
15090,
6,
225,
1843,
67,
5656,
225,
273,
1843,
67,
5656,... | |
details -- A string with more information about the error. | debug -- A string with more debug information about the error. | def OnProjectGstError(self, project, error, details): """ Callback for when the project sends a gstreamer error message from the pipeline. Parameters: project -- The project instance that send the signal. error -- The type of error that occurred as a string. details -- A string with more information about the error. "... | adb75921b66a6695c73cc7edcf6394a736a7ff1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/adb75921b66a6695c73cc7edcf6394a736a7ff1e/RecordingView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4109,
43,
334,
668,
12,
2890,
16,
1984,
16,
555,
16,
3189,
4672,
3536,
8444,
364,
1347,
326,
1984,
9573,
279,
314,
3256,
264,
555,
883,
628,
326,
5873,
18,
225,
7012,
30,
1984,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4109,
43,
334,
668,
12,
2890,
16,
1984,
16,
555,
16,
3189,
4672,
3536,
8444,
364,
1347,
326,
1984,
9573,
279,
314,
3256,
264,
555,
883,
628,
326,
5873,
18,
225,
7012,
30,
1984,
... |
try: port = int(host[i+1:]) except ValueError, msg: raise socket.error, str(msg) | port = int(host[i+1:]) | def _set_hostport(self, host, port): if port is None: i = host.find(':') if i >= 0: try: port = int(host[i+1:]) except ValueError, msg: raise socket.error, str(msg) host = host[:i] else: port = self.default_port self.host = host self.port = port | 3e30d2fdd3df38be4bf01285d6c00ea8b72df4db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3e30d2fdd3df38be4bf01285d6c00ea8b72df4db/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
2564,
655,
12,
2890,
16,
1479,
16,
1756,
4672,
309,
1756,
353,
599,
30,
277,
273,
1479,
18,
4720,
2668,
2497,
13,
309,
277,
1545,
374,
30,
1756,
273,
509,
12,
2564,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
2564,
655,
12,
2890,
16,
1479,
16,
1756,
4672,
309,
1756,
353,
599,
30,
277,
273,
1479,
18,
4720,
2668,
2497,
13,
309,
277,
1545,
374,
30,
1756,
273,
509,
12,
2564,
63,... |
if field.renderer._value: indict[field.renderer.name] = field.renderer._value else: indict[field.renderer.name] = u'' | if field.renderer._value: indict[field.renderer.name] = field.renderer._value else: indict[field.renderer.name] = u'' if field.renderer.name.endswith('-packages'): indict[field.renderer.name] = [pkg.name for pkg in group.packages] if group else [] | def get_group_dict(group=None): indict = {} if group: fs = group_fs.bind(group) else: fs = group_fs exclude = ('-id', '-roles') for field in fs._fields.values(): if not filter(lambda x: field.renderer.name.endswith(x), exclude): if field.renderer._value: indict[field.renderer.name] = field.renderer._value else: indic... | f456e62ee2efed305b0631624006fa4dfc454c25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/265/f456e62ee2efed305b0631624006fa4dfc454c25/group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1655,
67,
1576,
12,
1655,
33,
7036,
4672,
1547,
933,
273,
2618,
309,
1041,
30,
2662,
273,
1041,
67,
2556,
18,
4376,
12,
1655,
13,
469,
30,
2662,
273,
1041,
67,
2556,
225,
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,
336,
67,
1655,
67,
1576,
12,
1655,
33,
7036,
4672,
1547,
933,
273,
2618,
309,
1041,
30,
2662,
273,
1041,
67,
2556,
18,
4376,
12,
1655,
13,
469,
30,
2662,
273,
1041,
67,
2556,
225,
44... |
docid_set = get_docids_from_query(recid_set, options.docid, options.docid2, options.show_deleted == True) | docid_set = get_docids_from_query(recid_set, options.docname, options.docid, options.docid2, options.show_deleted is True or options.action == 'undelete') | def main(): parser = prepare_option_parser() (options, args) = parser.parse_args() if options.all: recid_set = get_all_recids() else: recid_set = get_recids_from_query(options.pattern, options.collection, options.recid, options.recid2, options.docid, options.docid2) docid_set = get_docids_from_query(recid_set, options.... | ccc0ff19181f56da96bb4dfd7216fe5bbda91724 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/ccc0ff19181f56da96bb4dfd7216fe5bbda91724/bibdocfilecli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
2911,
67,
3482,
67,
4288,
1435,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
309,
702,
18,
454,
30,
1950,
350,
67,
542,
273,
336,
67,
454,
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,
2774,
13332,
2082,
273,
2911,
67,
3482,
67,
4288,
1435,
261,
2116,
16,
833,
13,
273,
2082,
18,
2670,
67,
1968,
1435,
309,
702,
18,
454,
30,
1950,
350,
67,
542,
273,
336,
67,
454,
67,... |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def Collapse(self, item): """ Collapse an item, sending a EVT_TREE_ITEM_COLLAPSING and EVT_TREE_ITEM_COLLAPSED events. """ | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1558,
14820,
12,
2890,
16,
761,
4672,
3536,
1558,
14820,
392,
761,
16,
5431,
279,
27917,
67,
26557,
67,
12674,
67,
4935,
48,
2203,
23708,
471,
27917,
67,
26557,
67,
12674,
67,
4935,
48,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1558,
14820,
12,
2890,
16,
761,
4672,
3536,
1558,
14820,
392,
761,
16,
5431,
279,
27917,
67,
26557,
67,
12674,
67,
4935,
48,
2203,
23708,
471,
27917,
67,
26557,
67,
12674,
67,
4935,
48,
... |
self._console.info("Resolving dependencies...") | self._console.info("Resolving dependencies") | def computeClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyDeps=False, script=None): self._console.info("Resolving dependencies...") self._console.indent() classList = self._depLoader.getClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyD... | bd5db9a4b186dd2984102a538218f4ccc09f3ed6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/bd5db9a4b186dd2984102a538218f4ccc09f3ed6/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
30546,
12,
6702,
1190,
14430,
16,
4433,
1190,
14430,
16,
2341,
2279,
14430,
16,
4433,
2279,
14430,
16,
12935,
16,
3929,
14430,
33,
8381,
16,
2728,
33,
7036,
4672,
365,
6315,
8698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
30546,
12,
6702,
1190,
14430,
16,
4433,
1190,
14430,
16,
2341,
2279,
14430,
16,
4433,
2279,
14430,
16,
12935,
16,
3929,
14430,
33,
8381,
16,
2728,
33,
7036,
4672,
365,
6315,
8698,
... |
fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK) | fcntl.fcntl(self.fd, FCNTL.F_SETFL, os.O_NONBLOCK) | def nonblocking(self): """internal - not portable!""" if self.fd is None: raise portNotOpenError fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK) | 198b7e7d02a7dfe19b2467946c3b667d0ea1aeee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2937/198b7e7d02a7dfe19b2467946c3b667d0ea1aeee/serialposix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
18926,
12,
2890,
4672,
3536,
7236,
300,
486,
1756,
429,
5,
8395,
309,
365,
18,
8313,
353,
599,
30,
1002,
1756,
1248,
3678,
668,
30894,
18,
7142,
16681,
12,
2890,
18,
8313,
16,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
18926,
12,
2890,
4672,
3536,
7236,
300,
486,
1756,
429,
5,
8395,
309,
365,
18,
8313,
353,
599,
30,
1002,
1756,
1248,
3678,
668,
30894,
18,
7142,
16681,
12,
2890,
18,
8313,
16,
47... |
list = config(filename, debug=True).get_list() | logging_manager.configure_logging(KvmLoggingConfig(), verbose=debug) list = config(filename, debug=debug).get_list() | def __modify_list_subvariants(self, list, name, dep_list, add_to_shortname): """ Make some modifications to list, as part of parsing a 'subvariants' block. | 0ae821998f2c2f979b34b606091ddc8d892b33a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/0ae821998f2c2f979b34b606091ddc8d892b33a9/kvm_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
67,
1098,
67,
1717,
15886,
12,
2890,
16,
666,
16,
508,
16,
5993,
67,
1098,
16,
527,
67,
869,
67,
28650,
4672,
3536,
4344,
2690,
17953,
358,
666,
16,
487,
1087,
434,
5811,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
67,
1098,
67,
1717,
15886,
12,
2890,
16,
666,
16,
508,
16,
5993,
67,
1098,
16,
527,
67,
869,
67,
28650,
4672,
3536,
4344,
2690,
17953,
358,
666,
16,
487,
1087,
434,
5811,
... |
cmdclass = { | cmdclass = { | def run(self): # create startup script start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n" % (opj(self.install_libbase, "openerp-server"), sys.executable) # write script f = open('openerp-server', 'w') f.write(start_script) f.close() install.run(self) | ff2608cc2bab4a2e3aca8af750882283eb6f7e4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/ff2608cc2bab4a2e3aca8af750882283eb6f7e4d/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
752,
11850,
2728,
787,
67,
4263,
273,
6619,
5,
19,
4757,
19,
674,
64,
82,
4315,
738,
87,
64,
82,
4177,
738,
87,
263,
19,
25098,
84,
17,
3567,
18,
2074,
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,
1086,
12,
2890,
4672,
468,
752,
11850,
2728,
787,
67,
4263,
273,
6619,
5,
19,
4757,
19,
674,
64,
82,
4315,
738,
87,
64,
82,
4177,
738,
87,
263,
19,
25098,
84,
17,
3567,
18,
2074,
2... |
def get_splits(split_config, names): splits = split_config.splits for name in set(names): yield splits[name] def split(splits, verbose): for split in splits: | def split(split_config, names, verbose): for split in (split_config.splits[name] for name in names): | def get_splits(split_config, names): splits = split_config.splits for name in set(names): yield splits[name] | 4c55c5f52ba719702accacef387f23bbb4048734 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14265/4c55c5f52ba719702accacef387f23bbb4048734/git-sap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21902,
12,
4939,
67,
1425,
16,
1257,
4672,
11019,
273,
1416,
67,
1425,
18,
21902,
364,
508,
316,
444,
12,
1973,
4672,
2824,
11019,
63,
529,
65,
225,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21902,
12,
4939,
67,
1425,
16,
1257,
4672,
11019,
273,
1416,
67,
1425,
18,
21902,
364,
508,
316,
444,
12,
1973,
4672,
2824,
11019,
63,
529,
65,
225,
2,
-100,
-100,
-100,
-100,... |
def validate(self, value, instance, errors={}, **kwargs): | def validate(self, value, instance, errors=None, **kwargs): | def validate(self, value, instance, errors={}, **kwargs): """ Validate passed-in value using all field validators. Return None if all validations pass; otherwise, return failed result returned by validator """ name = self.getName() if errors and errors.has_key(name): return True | 4783b5b4c58776802d846f70518c6480cf67411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/4783b5b4c58776802d846f70518c6480cf67411e/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
460,
16,
791,
16,
1334,
33,
7036,
16,
2826,
4333,
4672,
3536,
3554,
2275,
17,
267,
460,
1450,
777,
652,
11632,
18,
2000,
599,
309,
777,
20808,
1342,
31,
3541,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
460,
16,
791,
16,
1334,
33,
7036,
16,
2826,
4333,
4672,
3536,
3554,
2275,
17,
267,
460,
1450,
777,
652,
11632,
18,
2000,
599,
309,
777,
20808,
1342,
31,
3541,
16,
... |
print "select() timeout" | print "select() timeout (will wait for " + str(int(endtime - time.time())) + "more secs)" | def wait_msg_from(self, timeout): endtime = time.time() + timeout msg = "" src_addr = None while time.time() < endtime: readset = select([self.sock], [], [], timeout) if len(readset[0]) < 1 or not self.sock in readset[0]: if len(readset[0]) < 1: print "select() timeout" elif not self.sock in readset[0]: print "select()... | 77e60569cf706c498e48e124e240268f3d79508d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1375/77e60569cf706c498e48e124e240268f3d79508d/inc_sip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
67,
3576,
67,
2080,
12,
2890,
16,
2021,
4672,
31361,
273,
813,
18,
957,
1435,
397,
2021,
1234,
273,
1408,
1705,
67,
4793,
273,
599,
1323,
813,
18,
957,
1435,
411,
31361,
30,
855,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
67,
3576,
67,
2080,
12,
2890,
16,
2021,
4672,
31361,
273,
813,
18,
957,
1435,
397,
2021,
1234,
273,
1408,
1705,
67,
4793,
273,
599,
1323,
813,
18,
957,
1435,
411,
31361,
30,
855,... |
match_list = filter(lambda s: re.search(string, s), open(filename).read().splitlines()) | match_list = [(lineno, line) for lineno, line in enumerate(open(filename).read().splitlines(True)) if re.search(string, line)] | sage: 'divisors' in _search_src_or_doc('src', '^ *def prime', interact=False) | 8e857122a4650f1c8910e1f54d1a94cf998efa3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/8e857122a4650f1c8910e1f54d1a94cf998efa3b/sagedoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
296,
2892,
291,
1383,
11,
316,
389,
3072,
67,
4816,
67,
280,
67,
2434,
2668,
4816,
2187,
10731,
380,
536,
17014,
2187,
16592,
33,
8381,
13,
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,
272,
410,
30,
296,
2892,
291,
1383,
11,
316,
389,
3072,
67,
4816,
67,
280,
67,
2434,
2668,
4816,
2187,
10731,
380,
536,
17014,
2187,
16592,
33,
8381,
13,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
next = self.groupTreeCtrl.GetNextSibling(item) if next.IsOk(): stack.append(next) | next, cookie = self.groupTreeCtrl.GetNextChild(item, cookie) | def _refresh(self): # Get the tree from the server try: group_tree = self.client.getGroupTree() except SchoolToolError, e: self.SetStatusText(str(e)) group_tree = [] else: self.SetStatusText(self.client.status) | 7a970a1ab85c914789914ae7bec4734ebf27787f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/7a970a1ab85c914789914ae7bec4734ebf27787f/wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9144,
12,
2890,
4672,
468,
968,
326,
2151,
628,
326,
1438,
775,
30,
1041,
67,
3413,
273,
365,
18,
2625,
18,
588,
1114,
2471,
1435,
1335,
348,
343,
1371,
6364,
668,
16,
425,
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,
9144,
12,
2890,
4672,
468,
968,
326,
2151,
628,
326,
1438,
775,
30,
1041,
67,
3413,
273,
365,
18,
2625,
18,
588,
1114,
2471,
1435,
1335,
348,
343,
1371,
6364,
668,
16,
425,
30,
... |
(labfilename,attributeName,filter,childScope,labelAttribute) = sys.argv[1:6] | (labFileList,segmentationAttribute,filter,childScope,labelAttribute) = sys.argv[1:6] | def Lab2Plot(labfile, output, attributeName, filter, childScope, labelAttribute): print >> output, '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>' print >> output, '<DescriptorsPool>' print >> output, '\t<ScopePool name="Song" size="1">' tokens = list() labelFilter = re.compile(filter) for line in labfile: se... | f646eda301256e171621c2f85311c090f7b0abda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1456/f646eda301256e171621c2f85311c090f7b0abda/Lab2Pools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
511,
378,
22,
11532,
12,
7411,
768,
16,
876,
16,
9734,
16,
1034,
16,
1151,
3876,
16,
1433,
1499,
4672,
1172,
1671,
876,
16,
16617,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
5159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
511,
378,
22,
11532,
12,
7411,
768,
16,
876,
16,
9734,
16,
1034,
16,
1151,
3876,
16,
1433,
1499,
4672,
1172,
1671,
876,
16,
16617,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
5159,
... |
def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0)): | def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0), labelImageSize = None): | def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0)): nodes, edges = pixelMapData(geomap, offset, scale) return Map(nodes, edges, geomap.cellImage.size() * scale) | 8a4b243de44be7b611228d95d7601eef8d0040d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/8a4b243de44be7b611228d95d7601eef8d0040d7/pixelmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4957,
863,
22,
1717,
9037,
863,
12,
10049,
438,
16,
3159,
273,
404,
18,
20,
16,
1384,
273,
5589,
22,
12,
20,
16,
374,
3631,
1433,
28576,
273,
599,
4672,
2199,
16,
5231,
273,
4957,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4957,
863,
22,
1717,
9037,
863,
12,
10049,
438,
16,
3159,
273,
404,
18,
20,
16,
1384,
273,
5589,
22,
12,
20,
16,
374,
3631,
1433,
28576,
273,
599,
4672,
2199,
16,
5231,
273,
4957,
86... |
Will quote the value if needed or if quote is true. | This will quote the value if needed or if quote is true. | def _formatparam(param, value=None, quote=1): """Convenience function to format and return a key=value pair. Will quote the value if needed or if quote is true. """ if value is not None and len(value) > 0: # BAW: Please check this. I think that if quote is set it should # force quoting even if not necessary. if quote... | 2b38db29aa43883c826e63f6d3cea879a2714ae9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2b38db29aa43883c826e63f6d3cea879a2714ae9/Message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
891,
12,
891,
16,
460,
33,
7036,
16,
3862,
33,
21,
4672,
3536,
14700,
445,
358,
740,
471,
327,
279,
498,
33,
1132,
3082,
18,
225,
1220,
903,
3862,
326,
460,
309,
3577,
578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2139,
891,
12,
891,
16,
460,
33,
7036,
16,
3862,
33,
21,
4672,
3536,
14700,
445,
358,
740,
471,
327,
279,
498,
33,
1132,
3082,
18,
225,
1220,
903,
3862,
326,
460,
309,
3577,
578... |
files.append((openerp_site_packages, [('bin/import_xml.rng')])) | def data_files(): '''Build list of data files to be installed''' files = [] if os.name == 'nt': os.chdir('bin') for (dp,dn,names) in os.walk('addons'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) os.chdir('..') for (dp,dn,names) in os.walk('doc'): files.append((dp, map(lambda x: opj(dp, x), names))) fil... | 8edaf0733269574a1d5bd4ddd818dfce43bdcd4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/8edaf0733269574a1d5bd4ddd818dfce43bdcd4e/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
2354,
13332,
9163,
3116,
666,
434,
501,
1390,
358,
506,
5876,
26418,
1390,
273,
5378,
309,
1140,
18,
529,
422,
296,
496,
4278,
1140,
18,
343,
1214,
2668,
4757,
6134,
364,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
2354,
13332,
9163,
3116,
666,
434,
501,
1390,
358,
506,
5876,
26418,
1390,
273,
5378,
309,
1140,
18,
529,
422,
296,
496,
4278,
1140,
18,
343,
1214,
2668,
4757,
6134,
364,
261,
... | |
if trans1d and tempobj.ndim == 1: newobj = newobj.T | if trans1d != -1 and tempobj.ndim < ndmin: k2 = ndmin-tempobj.ndim if (trans1d < 0): trans1d += k2 + 1 defaxes = range(ndmin) k1 = trans1d axes = defaxes[:k1] + defaxes[k2:] + \ defaxes[k1:k2] newobj = newobj.transpose(axes) | def __getitem__(self,key): trans1d = False ndmin = 1 if isinstance(key, str): frame = sys._getframe().f_back mymat = matrix.bmat(key,frame.f_globals,frame.f_locals) return mymat if type(key) is not tuple: key = (key,) objs = [] scalars = [] final_dtypedescr = None for k in range(len(key)): scalar = False if type(key[k]... | 41f45049e37b8ef040e32a3a54c4a3090d497a8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/41f45049e37b8ef040e32a3a54c4a3090d497a8c/index_tricks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
856,
4672,
906,
21,
72,
273,
1083,
5346,
1154,
273,
404,
309,
1549,
12,
856,
16,
609,
4672,
2623,
273,
2589,
6315,
588,
3789,
7675,
74,
67,
823,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
856,
4672,
906,
21,
72,
273,
1083,
5346,
1154,
273,
404,
309,
1549,
12,
856,
16,
609,
4672,
2623,
273,
2589,
6315,
588,
3789,
7675,
74,
67,
823,
312,
... |
zslider = self.zslider.GetValue() - 1 if zslider < 1: zslider = 1 self.zslider.SetValue(zslider) self.onChangeZSlice(None) | newZSliderValue = self.zslider.GetValue() - 1 if newZSliderValue >= self.zslider.GetMin(): self.zslider.SetValue(newZSliderValue) self.onChangeZSlice(None) | def onSliceUp(self, evt): """ Created: 15.11.2006, KP Description: Move one slice up """ zslider = self.zslider.GetValue() - 1 if zslider < 1: zslider = 1 self.zslider.SetValue(zslider) self.onChangeZSlice(None) | 228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
5959,
1211,
12,
2890,
16,
6324,
4672,
3536,
12953,
30,
4711,
18,
2499,
18,
6976,
26,
16,
1475,
52,
6507,
30,
9933,
1245,
2788,
731,
3536,
998,
28372,
273,
365,
18,
94,
28372,
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,
603,
5959,
1211,
12,
2890,
16,
6324,
4672,
3536,
12953,
30,
4711,
18,
2499,
18,
6976,
26,
16,
1475,
52,
6507,
30,
9933,
1245,
2788,
731,
3536,
998,
28372,
273,
365,
18,
94,
28372,
18,
... |
""" Basic Attributes """ | print "Change in cash (real-time): %s" % ( Stock.realtime['change']['cash']) | def __init__(self, symbol): """ Download stock's attributes and attribute them to this object. * Basic attributes: | 2bc56260e439cbf4ac58fccaf7d6d4f92d32f2b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2318/2bc56260e439cbf4ac58fccaf7d6d4f92d32f2b3/YahooFinance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3273,
4672,
3536,
13059,
12480,
1807,
1677,
471,
1566,
2182,
358,
333,
733,
18,
225,
380,
7651,
1677,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3273,
4672,
3536,
13059,
12480,
1807,
1677,
471,
1566,
2182,
358,
333,
733,
18,
225,
380,
7651,
1677,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if not self.is_simplified(): return self.simplify()._real_rqdf_(field) rops = [op._real_rqdf_(field) for op in self._operands] return self._operator(*rops) | """ EXAMPLES: sage: RQDF(sqrt(2)) 1.414213562373095048801688724209698078569671875376948073176679738 TESTS: sage: RQDF(x*sin(0)) 0.000000000000000000000000000000000000000000000000000000000000000 """ return self._convert(field) | def _real_rqdf_(self, field): if not self.is_simplified(): return self.simplify()._real_rqdf_(field) rops = [op._real_rqdf_(field) for op in self._operands] return self._operator(*rops) | f809a315d67f32e87efd389d0b7a5c66f8754260 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f809a315d67f32e87efd389d0b7a5c66f8754260/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7688,
67,
86,
85,
2180,
67,
12,
2890,
16,
652,
4672,
309,
486,
365,
18,
291,
67,
9812,
412,
939,
13332,
327,
365,
18,
9812,
412,
1164,
1435,
6315,
7688,
67,
86,
85,
2180,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7688,
67,
86,
85,
2180,
67,
12,
2890,
16,
652,
4672,
309,
486,
365,
18,
291,
67,
9812,
412,
939,
13332,
327,
365,
18,
9812,
412,
1164,
1435,
6315,
7688,
67,
86,
85,
2180,
67,
... |
self.runApiData(packageClasses) | def run(self): config = self._job job = self._job require = config.get("require", {}) use = config.get("use", {}) | ad9a23580a7c86efa4cd2c7f24603bdf831fa0bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/ad9a23580a7c86efa4cd2c7f24603bdf831fa0bc/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
642,
273,
365,
6315,
4688,
1719,
565,
273,
365,
6315,
4688,
2583,
273,
642,
18,
588,
2932,
6528,
3113,
2618,
13,
999,
377,
273,
642,
18,
588,
2932,
1202,
3113,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
642,
273,
365,
6315,
4688,
1719,
565,
273,
365,
6315,
4688,
2583,
273,
642,
18,
588,
2932,
6528,
3113,
2618,
13,
999,
377,
273,
642,
18,
588,
2932,
1202,
3113,
26... | |
return None | def result_processor(self, dialect, coltype): if self.asdecimal: if getattr(self, 'scale', None) is not None and dialect.supports_native_decimal: return None else: return processors.to_decimal_processor_factory(decimal.Decimal) else: #XXX: if the DBAPI returns a float (this is likely, given the # processor when asdecim... | 6dbcb67e54c4c9ec62987a9d318e088d3d58e47b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/6dbcb67e54c4c9ec62987a9d318e088d3d58e47b/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
563,
67,
8700,
12,
2890,
16,
10864,
16,
645,
723,
4672,
309,
365,
18,
345,
12586,
30,
309,
3869,
12,
2890,
16,
296,
5864,
2187,
599,
13,
353,
486,
599,
471,
10864,
18,
28064,
67,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
563,
67,
8700,
12,
2890,
16,
10864,
16,
645,
723,
4672,
309,
365,
18,
345,
12586,
30,
309,
3869,
12,
2890,
16,
296,
5864,
2187,
599,
13,
353,
486,
599,
471,
10864,
18,
28064,
67,
136... | |
PangoAttrColor = struct__PangoAttrColor | PangoAttrColor = struct__PangoAttrColor | def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname) | 92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... |
_FIELDS_STATIC = utils.FieldSet( "name", "pinst_cnt", "sinst_cnt", | _FIELDS_STATIC = utils.FieldSet(*[ "pinst_cnt", "sinst_cnt", | def Exec(self, feedback_fn): """Removes the node from the cluster. | 19bed813438c89914ead80e5f3a8e57fcb5bd5f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/19bed813438c89914ead80e5f3a8e57fcb5bd5f2/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
6220,
326,
756,
628,
326,
2855,
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,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
6220,
326,
756,
628,
326,
2855,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
with open("hotfile_dump_2.html", "w") as f: f.write(self.htmlwithlink) | def get_download_page(self): herewego = re.search(r"<form style=.*(\n<.*>\s*)*?\n<tr>", self.html).group(0) all_the_tuples = re.findall(r"<input\stype=hidden\sname=(\S*)\svalue=(\S*)>", herewego) self.htmlwithlink = self.req.load(self.url, None, all_the_tuples) with open("hotfile_dump_2.html", "w") as f: f.write(self.... | a3eed7e3d5e412e7370e09838e9c05e3af971fb3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/a3eed7e3d5e412e7370e09838e9c05e3af971fb3/HotfileCom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7813,
67,
2433,
12,
2890,
4672,
22336,
359,
1332,
83,
273,
283,
18,
3072,
12,
86,
6,
32,
687,
2154,
33,
4509,
4713,
82,
32,
4509,
5333,
87,
12437,
14,
10936,
82,
32,
313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7813,
67,
2433,
12,
2890,
4672,
22336,
359,
1332,
83,
273,
283,
18,
3072,
12,
86,
6,
32,
687,
2154,
33,
4509,
4713,
82,
32,
4509,
5333,
87,
12437,
14,
10936,
82,
32,
313,
... | |
if self.manager.disable >= WARNING: return | def warning(self, msg, *args, **kwargs): """ Log 'msg % args' with severity 'WARNING'. | daa6f254c6cf5acad6fb56bc9f360ec26407b409 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/daa6f254c6cf5acad6fb56bc9f360ec26407b409/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
2890,
16,
1234,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1827,
296,
3576,
738,
833,
11,
598,
11426,
296,
9511,
10332,
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,
3436,
12,
2890,
16,
1234,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1827,
296,
3576,
738,
833,
11,
598,
11426,
296,
9511,
10332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
return aq_parent(instance).absolute_url() | purl = getToolByName(instance, 'portal_url') return purl.getRelativeUrl(aq_parent(instance)) | def getDestination(self, instance): if not self.destination: return aq_parent(instance).absolute_url() else: portal_url = instance.portal_url() value = getattr(aq_base(instance), self.destination, self.destination) if callable(value): value = value() | edcee76c305a6e3bb549d871d4202210deb6ce68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/edcee76c305a6e3bb549d871d4202210deb6ce68/Widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17611,
12,
2890,
16,
791,
4672,
309,
486,
365,
18,
10590,
30,
293,
718,
273,
336,
6364,
5911,
12,
1336,
16,
296,
24386,
67,
718,
6134,
327,
293,
718,
18,
588,
8574,
1489,
12,
69,
85,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17611,
12,
2890,
16,
791,
4672,
309,
486,
365,
18,
10590,
30,
293,
718,
273,
336,
6364,
5911,
12,
1336,
16,
296,
24386,
67,
718,
6134,
327,
293,
718,
18,
588,
8574,
1489,
12,
69,
85,... |
if not time: time = timeago("1 day") | if not from_time: from_time = timeago("1 hour") to_time = timeago("60 seconds") | def find_recent_broken_things(time = None, delete = False): """ Occasionally (usually during app-server crashes), Things will be partially written out to the database. Things missing data attributes break the contract for these things, which often breaks various pages. This function hunts for and destroys them as appro... | 648fe4ca9c1f4528de327d3725685c593fdc5276 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6723/648fe4ca9c1f4528de327d3725685c593fdc5276/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
20872,
67,
70,
19906,
67,
451,
899,
12,
957,
273,
599,
16,
1430,
273,
1083,
4672,
3536,
531,
952,
345,
285,
1230,
261,
407,
3452,
4982,
595,
17,
3567,
4422,
7690,
3631,
935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
20872,
67,
70,
19906,
67,
451,
899,
12,
957,
273,
599,
16,
1430,
273,
1083,
4672,
3536,
531,
952,
345,
285,
1230,
261,
407,
3452,
4982,
595,
17,
3567,
4422,
7690,
3631,
935,
... |
taskMgr.remove(self.taskName("scroll")) | taskName = self.taskName("scroll") taskMgr.remove(taskName) | def __buttonUp(self, event): assert self.notify.debugStateCall(self) taskMgr.remove(self.taskName("scroll")) | 65e016c551594bdcdb1226b6862c1919e169e55c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/65e016c551594bdcdb1226b6862c1919e169e55c/DirectScrolledList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5391,
1211,
12,
2890,
16,
871,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
20172,
273,
365,
18,
4146,
461,
2932,
12033,
7923,
225,
1562,
9455,
18,
4479,
12,
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,
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,
5391,
1211,
12,
2890,
16,
871,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
20172,
273,
365,
18,
4146,
461,
2932,
12033,
7923,
225,
1562,
9455,
18,
4479,
12,
4... |
oscmd(PREFIX+"/bin/genpycode -s") | oscmd(PREFIX+"/bin/genpycode") | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | e61086a30fa01bdbf945ce3d875c7884160342f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/e61086a30fa01bdbf945ce3d875c7884160342f4/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if data == ":": data_dict['uname'] = None | if data == ":" or data == 'None': data_dict['uname'] = None | def Record2RORP(record_string): """Given record_string, return RORPath For speed reasons, write the RORPath data dictionary directly instead of calling rorpath functions. Profiling has shown this to be a time critical function. """ data_dict = {} for field, data in line_parsing_regexp.findall(record_string): if fiel... | 17c5eb9f41d611f71a5b165fed165ab4f6d75b79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8033/17c5eb9f41d611f71a5b165fed165ab4f6d75b79/metadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5059,
22,
2784,
52,
12,
3366,
67,
1080,
4672,
3536,
6083,
1409,
67,
1080,
16,
327,
534,
916,
743,
225,
2457,
8632,
14000,
16,
1045,
326,
534,
916,
743,
501,
3880,
5122,
3560,
434,
4440... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5059,
22,
2784,
52,
12,
3366,
67,
1080,
4672,
3536,
6083,
1409,
67,
1080,
16,
327,
534,
916,
743,
225,
2457,
8632,
14000,
16,
1045,
326,
534,
916,
743,
501,
3880,
5122,
3560,
434,
4440... |
def loopbriefing(): | def loopbriefing(self): | def loopbriefing(): print "loop briefing" Briefing.terminate(); | cfb9cb5b14b803a16659142aecc190a3dbc50997 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/cfb9cb5b14b803a16659142aecc190a3dbc50997/bounty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
25888,
310,
12,
2890,
4672,
1172,
315,
6498,
324,
17802,
310,
6,
605,
17802,
310,
18,
30017,
5621,
225,
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,
2798,
25888,
310,
12,
2890,
4672,
1172,
315,
6498,
324,
17802,
310,
6,
605,
17802,
310,
18,
30017,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.