rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
mseed.plotMSFile(mseed_file, outfile = os.path.join( | mseed.plotMSFile(mseed_file, outfile=os.path.join( | def test_LibMSEEDPlot(self): """ Plots examples in tests/output directory """ mseed = libmseed() mseed_file = os.path.join(self.path, 'BW.BGLD..EHE.D.2008.001_first_10_percent') gap_file = os.path.join(self.path, 'BW.RJOB..EHZ.D.2009.056') small_file = os.path.join(self.path, 'test.mseed') small_gap_file = os.path.join... | 86891c3b02b856fac5ffaeae1fd61c5974df3489 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/86891c3b02b856fac5ffaeae1fd61c5974df3489/test_plotting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5664,
49,
1090,
2056,
11532,
12,
2890,
4672,
3536,
3008,
6968,
10991,
316,
7434,
19,
2844,
1867,
3536,
312,
12407,
273,
2561,
81,
12407,
1435,
312,
12407,
67,
768,
273,
1140,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5664,
49,
1090,
2056,
11532,
12,
2890,
4672,
3536,
3008,
6968,
10991,
316,
7434,
19,
2844,
1867,
3536,
312,
12407,
273,
2561,
81,
12407,
1435,
312,
12407,
67,
768,
273,
1140,
1... |
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.... | f8cc64017ca0f33b1e21b1c9c9f5f30ebdc4da31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/f8cc64017ca0f33b1e21b1c9c9f5f30ebdc4da31/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,
... |
if isinstance(text, str): | if isinstance(text, types.StringType): | def _munge_whitespace(self, text): """_munge_whitespace(text : string) -> string | 1fcab198e9ccd9dd8892c98fbe99b787da7f72bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/1fcab198e9ccd9dd8892c98fbe99b787da7f72bf/textwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
81,
25561,
67,
18777,
12,
2890,
16,
977,
4672,
3536,
67,
81,
25561,
67,
18777,
12,
955,
294,
533,
13,
317,
533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
81,
25561,
67,
18777,
12,
2890,
16,
977,
4672,
3536,
67,
81,
25561,
67,
18777,
12,
955,
294,
533,
13,
317,
533,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
"build-apiviewer" : | "build-apiviewer" : | def process(options): global verbose global quiet verbose = options.verbose quiet = options.quiet if verbose: quiet = False print ">>> Processing..." if not quiet: print " - Configuration: %s" % options.config print " - Jobs: %s" % ", ".join(options.jobs) # TODO: File parser # - Translate dashed to camelcase # -... | e3364bd2416dfe75fd85aeea0ded427372ef3d08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/e3364bd2416dfe75fd85aeea0ded427372ef3d08/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2116,
4672,
2552,
3988,
2552,
10902,
225,
3988,
273,
702,
18,
11369,
10902,
273,
702,
18,
20380,
225,
309,
3988,
30,
10902,
273,
1083,
225,
1172,
315,
23012,
19652,
7070,
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,
1207,
12,
2116,
4672,
2552,
3988,
2552,
10902,
225,
3988,
273,
702,
18,
11369,
10902,
273,
702,
18,
20380,
225,
309,
3988,
30,
10902,
273,
1083,
225,
1172,
315,
23012,
19652,
7070,
309,
... |
sage: from sage.server.notebook.user import User sage: config = User('bob', 'Aisfa!!', 'bob@pizzaisyummy.net', 'admin').conf(); config Configuration: {} sage: config['max_history_length'] 500 sage: config['default_system'] 'sage' sage: config['autosave_interval'] 180 sage: config['default_pretty_print'] False | EXAMPLES: sage: from sage.server.notebook.user import User sage: config = User('bob', 'Aisfa!!', 'bob@sagemath.net', 'admin').conf(); config Configuration: {} sage: config['max_history_length'] 500 sage: config['default_system'] 'sage' sage: config['autosave_interval'] 180 sage: config['default_pretty_print'] False | def conf(self): """ sage: from sage.server.notebook.user import User sage: config = User('bob', 'Aisfa!!', 'bob@pizzaisyummy.net', 'admin').conf(); config Configuration: {} sage: config['max_history_length'] 500 sage: config['default_system'] 'sage' sage: config['autosave_interval'] 180 sage: config['default_pretty_pri... | 71ca82f9dd0e24cff4dd2f1d6579f257277e8b02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/71ca82f9dd0e24cff4dd2f1d6579f257277e8b02/user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2195,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
3567,
18,
24422,
18,
1355,
1930,
2177,
272,
410,
30,
642,
273,
2177,
2668,
70,
947,
2187,
296,
37,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2195,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
3567,
18,
24422,
18,
1355,
1930,
2177,
272,
410,
30,
642,
273,
2177,
2668,
70,
947,
2187,
296,
37,
... |
INPUT: - ``ct`` - The Cartan Type OPTIONAL ARGUMENTS: - ``base_ring`` - (default: `\ZZ`) - ``prefix`` (default an automatically generated prefix based on Cartan type) - ``cache`` - (default False) setting cache = True is a substantial speedup at the expense of some memory. - ``style`` - (default "lattice") can... | INPUT: - ``ct`` -- The Cartan Type OPTIONAL ARGUMENTS: - ``base_ring`` -- (default: `\ZZ`) - ``prefix`` -- (default: an automatically generated prefix based on Cartan type) - ``cache`` -- (default False) setting cache = True is a substantial speedup at the expense of some memory. - ``style`` -- (default "latti... | def WeylCharacterRing(ct, base_ring=ZZ, prefix=None, cache=False, style="lattice"): r""" A class for rings of Weyl characters. The Weyl character is a character of a semisimple (or reductive) Lie group or algebra. They form a ring, in which the addition and multiplication correspond to direct sum and tensor product of ... | 426aec46fc27abb10bd553529a37d002d6f934b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/426aec46fc27abb10bd553529a37d002d6f934b3/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
678,
402,
80,
7069,
10369,
12,
299,
16,
1026,
67,
8022,
33,
27096,
16,
1633,
33,
7036,
16,
1247,
33,
8381,
16,
2154,
1546,
80,
24966,
6,
4672,
436,
8395,
432,
667,
364,
26537,
434,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
678,
402,
80,
7069,
10369,
12,
299,
16,
1026,
67,
8022,
33,
27096,
16,
1633,
33,
7036,
16,
1247,
33,
8381,
16,
2154,
1546,
80,
24966,
6,
4672,
436,
8395,
432,
667,
364,
26537,
434,
6... |
hbuttonbox.unparent() | messageDialog.child.remove(hbuttonbox) | def showMessage (self, messageDialog, vertical=False): if self.messageSock.child: self.messageSock.remove(self.messageSock.child) message, separator, hbuttonbox = messageDialog.child.get_children() if vertical: buttonbox = gtk.VButtonBox() buttonbox.props.layout_style = gtk.BUTTONBOX_SPREAD for button in hbuttonbox.ge... | bc72423b70257f4d1622bba1dbfd2d45882bf680 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/bc72423b70257f4d1622bba1dbfd2d45882bf680/gamewidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1079,
261,
2890,
16,
883,
6353,
16,
9768,
33,
8381,
4672,
309,
365,
18,
2150,
55,
975,
18,
3624,
30,
365,
18,
2150,
55,
975,
18,
4479,
12,
2890,
18,
2150,
55,
975,
18,
3624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1079,
261,
2890,
16,
883,
6353,
16,
9768,
33,
8381,
4672,
309,
365,
18,
2150,
55,
975,
18,
3624,
30,
365,
18,
2150,
55,
975,
18,
4479,
12,
2890,
18,
2150,
55,
975,
18,
3624,
... |
Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called. Parameter `visitor`: A `NodeVisitor` object, containing... | Perform a tree traversal similarly to `Node.walk()` (which see), except also call the `dispatch_departure()` method before exiting each node. Parameter `visitor`: A `NodeVisitor` object, containing a ``visit`` and ``depart`` implementation for each `Node` subclass encountered. | def walkabout(self, visitor): """ Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called. | edcb08b473d9981bfb32f2b50432153dfb49e6a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/edcb08b473d9981bfb32f2b50432153dfb49e6a4/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
21071,
12,
2890,
16,
8000,
4672,
3536,
11217,
279,
2151,
15940,
7281,
715,
358,
1375,
907,
18,
11348,
20338,
261,
12784,
2621,
3631,
1335,
2546,
745,
12176,
323,
2680,
67,
2777,
1033... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
21071,
12,
2890,
16,
8000,
4672,
3536,
11217,
279,
2151,
15940,
7281,
715,
358,
1375,
907,
18,
11348,
20338,
261,
12784,
2621,
3631,
1335,
2546,
745,
12176,
323,
2680,
67,
2777,
1033... |
logStatusMsg( u'cannot set umask. Umask must be an integer value. Umask only available on some platforms. %s' % unicode(m), 2) | logStatusMsg( u'cannot set umask. Umask must be an integer value. Umask only available on some platforms. %s' % unicodeC(m), 2) | def _main(arglist): signal.signal(signal.SIGINT, signalHandler) try: (argp, rest) = getopt.gnu_getopt(arglist[1:], "sdfrokc:h", longopts=["state", "daemon", "full-help", "run", "runonce", "kill", "config=", "set-default-config=", "help", "list-failed", "list-saved", "purged-saved", "purge-failed", "comment-config"]) e... | 15efa811c3a3c7e375db44557ec2cc39fdd58d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/15efa811c3a3c7e375db44557ec2cc39fdd58d98/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
12,
3175,
1098,
4672,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
1503,
13,
775,
30,
261,
3175,
84,
16,
3127,
13,
273,
225,
336,
3838,
18,
1600,
89,
67,
588,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
12,
3175,
1098,
4672,
4277,
18,
10420,
12,
10420,
18,
18513,
3217,
16,
4277,
1503,
13,
775,
30,
261,
3175,
84,
16,
3127,
13,
273,
225,
336,
3838,
18,
1600,
89,
67,
588,
38... |
Return a tuple of two elements: all the bytes that were read, and the decoded string produced by the decoder. (The entire input chunk is sent to the decoder, but some of it may remain buffered in the decoder, yet to be converted.) | The return value is True unless EOF was reached. The decoded string is placed in self._decoded_text (replacing its previous value). (The entire input chunk is sent to the decoder, though some of it may remain buffered in the decoder, yet to be converted.) | def _read_chunk(self): """ Read and decode the next chunk of data from the BufferedReader. | dbe28e573e5c1227777db9dd630fac7732b81374 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/dbe28e573e5c1227777db9dd630fac7732b81374/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
12,
2890,
4672,
3536,
2720,
471,
2495,
326,
1024,
2441,
434,
501,
628,
326,
10633,
18,
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,
389,
896,
67,
6551,
12,
2890,
4672,
3536,
2720,
471,
2495,
326,
1024,
2441,
434,
501,
628,
326,
10633,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
tracks_splitter.dump_row(coordinates[atom_indices].ravel()) | tracks_splitter.dump_row(coordinates[atom_indexes].ravel()) | def xyz_to_tracks(filename, middle_word, destination, sub=slice(None), file_unit=angstrom, atom_indices=None): """Convert an xyz file into separate tracks.""" xyz_reader = XYZReader(filename, sub, file_unit=file_unit) names = [] if atom_indices is None: atom_indices = range(len(xyz_reader.numbers)) else: atom_indices ... | 8b2f0a06d14da16955f235c160580552d79e6296 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11050/8b2f0a06d14da16955f235c160580552d79e6296/tracks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14779,
67,
869,
67,
21499,
12,
3459,
16,
7689,
67,
1095,
16,
2929,
16,
720,
33,
6665,
12,
7036,
3631,
585,
67,
4873,
33,
539,
334,
520,
16,
3179,
67,
6836,
33,
7036,
4672,
3536,
2723... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14779,
67,
869,
67,
21499,
12,
3459,
16,
7689,
67,
1095,
16,
2929,
16,
720,
33,
6665,
12,
7036,
3631,
585,
67,
4873,
33,
539,
334,
520,
16,
3179,
67,
6836,
33,
7036,
4672,
3536,
2723... |
self.detector.dims = (data.ndim[1],1) else: self.detector.dims = (data.ndim[1],data.ndim[2]) | self.detector.dims = (data.counts.shape[1],1) elif data.counts.ndim == 3: self.detector.dims = (data.counts.shape[1],data.counts.shape[2]) else: raise RuntimeError("Data has too many dimensions in "+self.path) | def load(self): # Load the icp data data = icpformat.read(self.path) if data.counts.ndim == 1: self.detector.dims = (1,1) elif data.counts.ndim == 2: self.detector.dims = (data.ndim[1],1) else: self.detector.dims = (data.ndim[1],data.ndim[2]) | d7bbf8886f0118433cb53a468350b46f4e92fd7a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13135/d7bbf8886f0118433cb53a468350b46f4e92fd7a/ncnr_ng1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
468,
4444,
326,
277,
4057,
501,
501,
273,
277,
4057,
2139,
18,
896,
12,
2890,
18,
803,
13,
225,
309,
501,
18,
8008,
18,
82,
3509,
422,
404,
30,
365,
18,
8238,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
468,
4444,
326,
277,
4057,
501,
501,
273,
277,
4057,
2139,
18,
896,
12,
2890,
18,
803,
13,
225,
309,
501,
18,
8008,
18,
82,
3509,
422,
404,
30,
365,
18,
8238,
... |
object = locate(key, forceload) except ErrorDuringImport, value: | object, name = resolve(thing, forceload) page = html.page(describe(object), html.document(object, name)) file = open(name + '.html', 'w') file.write(page) file.close() print 'wrote', name + '.html' except (ImportError, ErrorDuringImport), value: | def writedoc(key, forceload=0): """Write HTML documentation to a file in the current directory.""" try: object = locate(key, forceload) except ErrorDuringImport, value: print value else: if object: page = html.page(describe(object), html.document(object, object.__name__)) file = open(key + '.html', 'w') file.write(page... | c2fc90ee5b1539ef78b1c5f4870b84e21637ac50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c2fc90ee5b1539ef78b1c5f4870b84e21637ac50/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
329,
504,
12,
856,
16,
364,
2183,
6189,
33,
20,
4672,
3536,
3067,
3982,
7323,
358,
279,
585,
316,
326,
783,
1867,
12123,
775,
30,
733,
16,
508,
273,
2245,
12,
4274,
16,
364,
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,
2518,
329,
504,
12,
856,
16,
364,
2183,
6189,
33,
20,
4672,
3536,
3067,
3982,
7323,
358,
279,
585,
316,
326,
783,
1867,
12123,
775,
30,
733,
16,
508,
273,
2245,
12,
4274,
16,
364,
21... |
if default == 'true' or default == 'True': | bool_default = default.lower().strip() if bool_default == 'true': | def getprog(file,out,lang = 'c',rsfprefix = 'sf',rsfsuffix='rsf', rsfplotprefix='vp',rsfplotsuffix='vpl'): global comment, param, params, param2, params2, \ synopsis, stringpar, inpout, version name = rsfprefix + re.sub('^[MX_]','',os.path.basename(file)) if lang[:2] == 'py': name = re.sub('\.py$','',name) elif lang[0]... | 5e264ee2fc32578f78daebfc56b75a7a9856faef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3143/5e264ee2fc32578f78daebfc56b75a7a9856faef/doc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
14654,
12,
768,
16,
659,
16,
4936,
273,
296,
71,
2187,
5453,
74,
3239,
273,
296,
21668,
2187,
5453,
2556,
2609,
2218,
5453,
74,
2187,
3597,
74,
4032,
3239,
2218,
20106,
2187,
5453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14654,
12,
768,
16,
659,
16,
4936,
273,
296,
71,
2187,
5453,
74,
3239,
273,
296,
21668,
2187,
5453,
2556,
2609,
2218,
5453,
74,
2187,
3597,
74,
4032,
3239,
2218,
20106,
2187,
5453,
... |
elif keyname == "F2": | elif keyname == "F2" and not self.core.get_exercise().is_lock_help(): | def notify_key_press(self, keyname, shift, control): if keyname == "Return" or keyname == "KP_Enter": if not self.core.exercise.get_current_sequence().is_valid(): self.core.user_repeat() self.core.repeat_sequence() elif keyname == "BackSpace": if not self.core.exercise.get_current_sequence().is_valid(): self.core.delet... | 107c27d328b684d87a35d557113c5b8a3bb8ca4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/107c27d328b684d87a35d557113c5b8a3bb8ca4c/gui_controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
67,
856,
67,
1028,
12,
2890,
16,
27567,
16,
4654,
16,
3325,
4672,
309,
27567,
422,
315,
990,
6,
578,
27567,
422,
315,
47,
52,
67,
10237,
6877,
309,
486,
365,
18,
3644,
18,
8913... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
67,
856,
67,
1028,
12,
2890,
16,
27567,
16,
4654,
16,
3325,
4672,
309,
27567,
422,
315,
990,
6,
578,
27567,
422,
315,
47,
52,
67,
10237,
6877,
309,
486,
365,
18,
3644,
18,
8913... |
out = os.path.join(destpath, os.path.basename(path)) | out = os.path.join(destpath, "ui_strings-%s.js" % os.path.basename(path)[:-3]) | def _process_dir(dirpath, destpath): files = _find_pofiles(dirpath) for path in files: out = os.path.join(destpath, os.path.basename(path)) outfd = codecs.open(out, "w", encoding="utf_8_sig") process_file(path, outfd) outfd.close() | c05fdf43c5d9cb726ddc9bc20afbdc3e0d21f938 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/c05fdf43c5d9cb726ddc9bc20afbdc3e0d21f938/po2js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
1214,
12,
1214,
803,
16,
1570,
803,
4672,
1390,
273,
389,
4720,
67,
84,
792,
1449,
12,
1214,
803,
13,
364,
589,
316,
1390,
30,
596,
273,
1140,
18,
803,
18,
5701,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
67,
1214,
12,
1214,
803,
16,
1570,
803,
4672,
1390,
273,
389,
4720,
67,
84,
792,
1449,
12,
1214,
803,
13,
364,
589,
316,
1390,
30,
596,
273,
1140,
18,
803,
18,
5701,
12,
... |
return http.Response(stream=notebook.html_beforepublish_window(self.worksheet, self.username)) | return HTMLResponse(stream=notebook.html_beforepublish_window(self.worksheet, self.username)) | def render(self, ctx): # Publishes worksheet and also sets worksheet to be published automatically when saved if 'yes' in ctx.args and 'auto' in ctx.args: notebook.publish_worksheet(self.worksheet, self.username) self.worksheet.set_auto_publish() return http.RedirectResponse("/home/%s/publish" % (self.worksheet.filenam... | 39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
9761,
281,
13622,
471,
2546,
1678,
13622,
358,
506,
9487,
6635,
1347,
5198,
309,
296,
9707,
11,
316,
1103,
18,
1968,
471,
296,
6079,
11,
316,
1103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
9761,
281,
13622,
471,
2546,
1678,
13622,
358,
506,
9487,
6635,
1347,
5198,
309,
296,
9707,
11,
316,
1103,
18,
1968,
471,
296,
6079,
11,
316,
1103,
... |
header = u" %s:%s" % (ns, name) | header = u" %s" % full | def exdict(d, ns): for name, t in d.items(): if t['content'] is None: sys.stderr.write("no such %s:%s\n" % (ns, name)) continue header = u" %s:%s" % (ns, name) print header.encode('utf-8') print t['content'].encode("utf-8") | a2042c37e0c3a110b38fe6590a0b310ecedfeefa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/a2042c37e0c3a110b38fe6590a0b310ecedfeefa/extract-content.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
431,
1576,
12,
72,
16,
3153,
4672,
364,
508,
16,
268,
316,
302,
18,
3319,
13332,
309,
268,
3292,
1745,
3546,
353,
599,
30,
2589,
18,
11241,
18,
2626,
2932,
2135,
4123,
738,
87,
5319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
431,
1576,
12,
72,
16,
3153,
4672,
364,
508,
16,
268,
316,
302,
18,
3319,
13332,
309,
268,
3292,
1745,
3546,
353,
599,
30,
2589,
18,
11241,
18,
2626,
2932,
2135,
4123,
738,
87,
5319,
... |
if m < 0: return sage.rings.integer.Integer(0) return misc.prod([x-i for i in xrange(m)]) / factorial(m) | try: P = x.parent() except AttributeError: P = type(x) if m <= 0: return P(0) return misc.prod([x-i for i in xrange(m)]) / P(factorial(m)) | def binomial(x,m): r""" Return the binomial coefficient $$ x (x-1) \cdots (x-m+1) / m! $$ which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. INPUT:: x -- number m -- integer OUTPUT:: number EXAMPLES:: sage: binomial(5,2) 10 sage: binomial(2,0) 1 sage: binomial(3,-1) 0 sage: binomial(20,10) 184756 sage... | 715f5f63cdd95210f95da9866cfcda57577567aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/715f5f63cdd95210f95da9866cfcda57577567aa/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... |
cursor = self.connection.cursor() cursor.execute("SELECT * FROM %s" % self.dbtablename) for values in cursor: | for values in self.connection.cursor().execute("SELECT * FROM %s" % self.dbtablename): | def __iter__(self): cursor = self.connection.cursor() cursor.execute("SELECT * FROM %s" % self.dbtablename) for values in cursor: yield self._row_from_cols(values) | f6f1f64611ee6ac68d49a7870f778c720da47d5b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/f6f1f64611ee6ac68d49a7870f778c720da47d5b/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
364,
924,
316,
365,
18,
4071,
18,
9216,
7675,
8837,
2932,
4803,
380,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
4672,
2824,
365,
6315,
492,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
364,
924,
316,
365,
18,
4071,
18,
9216,
7675,
8837,
2932,
4803,
380,
4571,
738,
87,
6,
738,
365,
18,
1966,
7032,
14724,
4672,
2824,
365,
6315,
492,
67,... |
try: width_in, width_tmp, width_err = os.popen3('stty size') except ValueError: return width if not width_err.read(): width_tmp = width_tmp.read() width_in.close() width_tmp = width_tmp.splitlines() width_tmp = width_tmp[0].split() if len(width_tmp) == 2: try: width= int(width_tmp[1]) except ValueError: pass | try: width=int(re.search(':co except (ValueError, IndexError, KeyError): try: a,b,c = os.popen3('stty size') width = int(b.read().split()[1]) except (ValueError, IndexError): pass return width | def _getLineWidth(self): width = 80 # 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' if os.name == u'posix' or os.name == u'mac' or os.name == u'os2': try: width_in, width_tmp, width_err = os.popen3('stty size') except ValueError: return width if not width_err.read(): width_tmp = width_tmp.read() width_in.close() width_tm... | d47ae56aadc97a6b2d8b1a2e17c3824e7e3bc676 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/d47ae56aadc97a6b2d8b1a2e17c3824e7e3bc676/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1670,
2384,
12,
2890,
4672,
1835,
273,
8958,
468,
296,
24463,
2187,
296,
496,
2187,
296,
19219,
2187,
296,
538,
22,
2187,
296,
5821,
2187,
578,
296,
311,
11,
309,
1140,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1670,
2384,
12,
2890,
4672,
1835,
273,
8958,
468,
296,
24463,
2187,
296,
496,
2187,
296,
19219,
2187,
296,
538,
22,
2187,
296,
5821,
2187,
578,
296,
311,
11,
309,
1140,
18,
5... |
cmd += " -composite miff:- | display" | cmd += " miff:- | display" | def render(self): """Render the .mvg with ImageMagick, and display it.""" self.save(self.filename) cmd = "convert -size %sx%s " % self.size cmd += " xc:none " # Transparent (=none) canvas image cmd += " -draw @%s " % self.filename cmd += " -composite miff:- | display" print "Creating preview rendering." print cmd print... | fb6a6876411076ef1949e8cbeeabefb6fb1f8e1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4675/fb6a6876411076ef1949e8cbeeabefb6fb1f8e1b/mvg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
3536,
3420,
326,
263,
17509,
75,
598,
3421,
11372,
1200,
16,
471,
2562,
518,
12123,
365,
18,
5688,
12,
2890,
18,
3459,
13,
1797,
273,
315,
6283,
300,
1467,
738,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
3536,
3420,
326,
263,
17509,
75,
598,
3421,
11372,
1200,
16,
471,
2562,
518,
12123,
365,
18,
5688,
12,
2890,
18,
3459,
13,
1797,
273,
315,
6283,
300,
1467,
738,
3... |
def changeFolderView(portal, folder, viewname): addViewToType(portal, 'Folder', viewname) if folder.getLayout() != viewname: folder.setLayout(viewname) | def changeFolderView(portal, folder, viewname): addViewToType(portal, 'Folder', viewname) if folder.getLayout() != viewname: folder.setLayout(viewname) | 2f9d9f5ef2d2d601513fe0b1c4e248298fd1a365 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10187/2f9d9f5ef2d2d601513fe0b1c4e248298fd1a365/setuphandlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
3899,
1767,
12,
24386,
16,
3009,
16,
1476,
529,
4672,
527,
1767,
31616,
12,
24386,
16,
296,
3899,
2187,
1476,
529,
13,
309,
3009,
18,
588,
3744,
1435,
480,
1476,
529,
30,
3009,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2549,
3899,
1767,
12,
24386,
16,
3009,
16,
1476,
529,
4672,
527,
1767,
31616,
12,
24386,
16,
296,
3899,
2187,
1476,
529,
13,
309,
3009,
18,
588,
3744,
1435,
480,
1476,
529,
30,
3009,
1... | |
for child in node.children: if child.type != "errors": return True | if node.hasChildren(): for child in node.children: if child.type != "errors": return True | def itemHasAnyDocs(node): if node.getChild("desc", False) != None: return True for child in node.children: if child.type != "errors": return True return False | 50fd0a5ee3348a8ed4a015da095e65c163357bbd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/50fd0a5ee3348a8ed4a015da095e65c163357bbd/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
5582,
2961,
12656,
12,
2159,
4672,
309,
756,
18,
588,
1763,
2932,
5569,
3113,
1083,
13,
480,
599,
30,
327,
1053,
309,
756,
18,
5332,
4212,
13332,
364,
1151,
316,
756,
18,
5906,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
5582,
2961,
12656,
12,
2159,
4672,
309,
756,
18,
588,
1763,
2932,
5569,
3113,
1083,
13,
480,
599,
30,
327,
1053,
309,
756,
18,
5332,
4212,
13332,
364,
1151,
316,
756,
18,
5906,
30... |
except DistutilsExecError, msg: | except DistutilsExecError as msg: | def compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None, depends=None): | b3c6ed5e10916734bf0bd96fcf21743ab916efd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/b3c6ed5e10916734bf0bd96fcf21743ab916efd4/msvc9compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
... |
if line[:prefix_len] == prefix: s = string.split(line[prefix_len:], '}', 1)[0] | prefix = None if line.startswith(PREFIX_1): prefix = PREFIX_1 elif line.startswith(PREFIX_2): prefix = PREFIX_2 if prefix: s = line[len(prefix):].split('}', 1)[0] | def main(): rcfile = os.path.join(os.path.dirname(refcounts.__file__), os.pardir, "api", "refcounts.dat") outfile = "-" opts, args = getopt.getopt(sys.argv[1:], "o:r:", ["output=", "refcounts="]) for opt, arg in opts: if opt in ("-o", "--output"): outfile = arg elif opt in ("-r", "--refcounts"): rcfile = arg rcdict = r... | bc91c5e0599ae2e57fa667df3e9c9baf7e5760d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bc91c5e0599ae2e57fa667df3e9c9baf7e5760d9/anno-api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4519,
768,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
1734,
8008,
16186,
768,
972,
3631,
1140,
18,
84,
1060,
481,
16,
315,
2425,
3113,
315,
1734,
8008,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4519,
768,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
1734,
8008,
16186,
768,
972,
3631,
1140,
18,
84,
1060,
481,
16,
315,
2425,
3113,
315,
1734,
8008,... |
def name_with_arguments(self, command_name): usage_string = command_name | def name_with_arguments(self): usage_string = self.name | def name_with_arguments(self, command_name): usage_string = command_name if self.options: usage_string += " [options]" if self.argument_names: usage_string += " " + self.argument_names return usage_string | 521a0052c5c62f674706d7f453852d96e0b4e764 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/521a0052c5c62f674706d7f453852d96e0b4e764/multicommandtool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
1918,
67,
7099,
12,
2890,
4672,
4084,
67,
1080,
273,
365,
18,
529,
309,
365,
18,
2116,
30,
4084,
67,
1080,
1011,
315,
306,
2116,
4279,
309,
365,
18,
3446,
67,
1973,
30,
4084... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
1918,
67,
7099,
12,
2890,
4672,
4084,
67,
1080,
273,
365,
18,
529,
309,
365,
18,
2116,
30,
4084,
67,
1080,
1011,
315,
306,
2116,
4279,
309,
365,
18,
3446,
67,
1973,
30,
4084... |
taxep_id = partner.property_account_position and partner.property_account_position.account_supplier_tax | taxep = partner.property_account_position and partner.property_account_position.account_supplier_tax | def product_id_change(self, cr, uid, ids, pricelist, product, qty, uom, partner_id, date_order=False): if not pricelist: raise osv.except_osv(_('No Pricelist !'), _('You have to select a pricelist in the purchase form !\nPlease set one before choosing a product.')) if not product: return {'value': {'price_unit': 0.0, '... | a24d14b8a04dcfc03d41163ad290b1652310eb35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/a24d14b8a04dcfc03d41163ad290b1652310eb35/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
16,
582,
362,
16,
19170,
67,
350,
16,
1509,
67,
1019,
33,
8381,
4672,
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,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
16,
582,
362,
16,
19170,
67,
350,
16,
1509,
67,
1019,
33,
8381,
4672,
309,
... |
filename = "%s/%s" % (logdir, resumptionToken) | filename = "%s/RTdata/%s" % (logdir, resumptionToken) | def OAICacheOut(resumptionToken): "Restores string of comma-separated system numbers from cache." sysnos = [] | 634e70fea1710fa44a90f715003d8e76d1ac2de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/634e70fea1710fa44a90f715003d8e76d1ac2de4/oai_repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
531,
18194,
1649,
1182,
12,
455,
379,
375,
1345,
4672,
315,
5188,
3485,
533,
434,
8716,
17,
24622,
2619,
5600,
628,
1247,
1199,
225,
2589,
18050,
273,
5378,
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,
0,
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,
531,
18194,
1649,
1182,
12,
455,
379,
375,
1345,
4672,
315,
5188,
3485,
533,
434,
8716,
17,
24622,
2619,
5600,
628,
1247,
1199,
225,
2589,
18050,
273,
5378,
225,
2,
-100,
-100,
-100,
-10... |
available = float(t['available']) if available < float(data['balance']): | available = Decimal(t['available']) if available < Decimal(data['balance']): | def check_data(self, data): t = get_total_balance_data(self.cur) available = float(t['available']) if available < float(data['balance']): print "insufficient funds..." #TODO: alert user return data | c1b405e7b76ee374ecb1e3fca3072ef6e0007414 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14271/c1b405e7b76ee374ecb1e3fca3072ef6e0007414/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
892,
12,
2890,
16,
501,
4672,
268,
273,
336,
67,
4963,
67,
12296,
67,
892,
12,
2890,
18,
1397,
13,
2319,
273,
11322,
12,
88,
3292,
5699,
19486,
309,
2319,
411,
11322,
12,
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,
866,
67,
892,
12,
2890,
16,
501,
4672,
268,
273,
336,
67,
4963,
67,
12296,
67,
892,
12,
2890,
18,
1397,
13,
2319,
273,
11322,
12,
88,
3292,
5699,
19486,
309,
2319,
411,
11322,
12,
89... |
else: self.tray_status["last"] = "" self.trayicon.hide_icon() | else: self.tray_status["last"] = "" self.trayicon.hide_icon() | def destroy_trayicon(self): if not self.TRAYICON_CREATED: return self.TRAYICON_CREATED = 0 self.HAVE_TRAYICON = False self.current_image = None if sys.platform != "win32": if self.pygtkicon: self.trayicon_module.set_visible(False) self.trayicon_module = None else: self.eventbox.destroy() self.trayicon.destroy() else: ... | cc87057c04e7215161a0e8269981fee69ae43fa3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/cc87057c04e7215161a0e8269981fee69ae43fa3/frame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
67,
313,
528,
3950,
12,
2890,
4672,
309,
486,
365,
18,
56,
6722,
21745,
67,
18546,
30,
327,
365,
18,
56,
6722,
21745,
67,
18546,
273,
374,
365,
18,
19191,
3412,
67,
56,
6722,
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,
5546,
67,
313,
528,
3950,
12,
2890,
4672,
309,
486,
365,
18,
56,
6722,
21745,
67,
18546,
30,
327,
365,
18,
56,
6722,
21745,
67,
18546,
273,
374,
365,
18,
19191,
3412,
67,
56,
6722,
2... |
if os.path.exists(os.path.join(dir,"direct")) and os.path.exists(os.path.join(dir,"pandac")) and os.path.exists(os.path.join(dir,"python")): | if (dir != "") and os.path.exists(os.path.join(dir,"direct")) and os.path.exists(os.path.join(dir,"pandac")) and os.path.exists(os.path.join(dir,"python")) and os.path.exists(os.path.join(dir,"nsis")): | def ParseOptions(args): try: options = {} longopts = [] for (opt, hasval, explanation) in OPTIONLIST: if (hasval==2): longopts.append(opt+"=") options[opt] = [] elif (hasval==1): longopts.append(opt+"=") options[opt] = "" else: longopts.append(opt) options[opt] = 0 opts, extras = getopt.getopt(args, "", longopts) for o... | a5bb4429608c75b23f11f97991c30bca84560b7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/a5bb4429608c75b23f11f97991c30bca84560b7a/packpanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1320,
12,
1968,
4672,
775,
30,
702,
273,
2618,
1525,
4952,
273,
5378,
364,
261,
3838,
16,
711,
1125,
16,
21285,
13,
316,
7845,
7085,
30,
309,
261,
5332,
1125,
631,
22,
4672,
1525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1320,
12,
1968,
4672,
775,
30,
702,
273,
2618,
1525,
4952,
273,
5378,
364,
261,
3838,
16,
711,
1125,
16,
21285,
13,
316,
7845,
7085,
30,
309,
261,
5332,
1125,
631,
22,
4672,
1525... |
if position == gtk.TREE_VIEW_DROP_BEFORE: | if src_iter==iter: pass elif position == gtk.TREE_VIEW_DROP_BEFORE: | def drag_data_received_data(treeview, context, x, y, selection, info, etime): model = treeview.get_model() data = selection.data global src_iter temp_dict = {} if data[:4]=="http": data = string.split(data, "?") data[1] = string.split(data[1], "&") for row in data[1]: key, content = string.split(row, "=") content = str... | 47bde868a82da1716473d9e648050fb034dfb8d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2725/47bde868a82da1716473d9e648050fb034dfb8d2/denu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8823,
67,
892,
67,
15213,
67,
892,
12,
3413,
1945,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
225,
2374,
4672,
938,
273,
2151,
1945,
18,
588,
67,
2284,
1435,
501,
273,
4421,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8823,
67,
892,
67,
15213,
67,
892,
12,
3413,
1945,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
225,
2374,
4672,
938,
273,
2151,
1945,
18,
588,
67,
2284,
1435,
501,
273,
4421,
... |
f.write("\t%d -> %d [URL=\"%d-%d\",dir=%s,%scolor=%s,label=\"%s%%\",weight=%d];\n"%(i,j,min(i,j),max(i,j),dir,style,color,mc,(perc/30+1))) | f.write("\t%d -> %d [URL=\"%d-%d\",dir=%s,%scolor=%s,label=\"%s\",weight=%d];\n"%(i,j,min(i,j),max(i,j),dir,style,color,mc,(perc/30+1))) | def exportGraph(self, f, absolute_int=10, positive_int = 0, negative_int = 0, best_attributes = 0, print_bits = 1, black_white = 0, significant_digits = 2, postscript = 1, pretty_names = 1, url = 0, widget_coloring=1, pcutoff = 1): NA = len(self.names) | e67e83e2092c1c8a38a5b37f337e74f4c045cfb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/e67e83e2092c1c8a38a5b37f337e74f4c045cfb4/orngInteract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
4137,
12,
2890,
16,
284,
16,
4967,
67,
474,
33,
2163,
16,
6895,
67,
474,
273,
374,
16,
6092,
67,
474,
273,
374,
16,
3796,
67,
4350,
273,
374,
16,
1172,
67,
6789,
273,
404,
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,
3359,
4137,
12,
2890,
16,
284,
16,
4967,
67,
474,
33,
2163,
16,
6895,
67,
474,
273,
374,
16,
6092,
67,
474,
273,
374,
16,
3796,
67,
4350,
273,
374,
16,
1172,
67,
6789,
273,
404,
16... |
colour_str = ' | c = widget.get_color() colour_str = ' | def __colour_set_cb(self, widget, name): global _colours colour_str = '#%04x%04x%04x\n' % (c.red, c.green, c.blue) _colours[name] = colour_str s = "" for k, v in self.cwidgets.items(): c = v.get_color() s += '%s: %s\n' % (k, colour_str) global _rox_setting _rox_setting._set(s) | 4e86919c52ad7ae0ff8400f563c55c24deba4150 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4426/4e86919c52ad7ae0ff8400f563c55c24deba4150/colourscheme.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
27408,
67,
542,
67,
7358,
12,
2890,
16,
3604,
16,
508,
4672,
2552,
389,
1293,
4390,
15046,
67,
701,
273,
2946,
9,
3028,
92,
9,
3028,
92,
9,
3028,
92,
64,
82,
11,
738,
261,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27408,
67,
542,
67,
7358,
12,
2890,
16,
3604,
16,
508,
4672,
2552,
389,
1293,
4390,
15046,
67,
701,
273,
2946,
9,
3028,
92,
9,
3028,
92,
9,
3028,
92,
64,
82,
11,
738,
261,
71... |
if self.channel.sem.balance < 0: return -self.channel.sem.balance return 0 | return self.channel.waiting() | def waiting(self): """Return the number of routines waiting for a pool item. """ if self.channel.sem.balance < 0: return -self.channel.sem.balance return 0 | 75143a1b8f5e70734e799349326a1050e15062b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/75143a1b8f5e70734e799349326a1050e15062b7/pools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7336,
12,
2890,
4672,
3536,
990,
326,
1300,
434,
28580,
7336,
364,
279,
2845,
761,
18,
3536,
309,
365,
18,
4327,
18,
12000,
18,
12296,
411,
374,
30,
327,
300,
2890,
18,
4327,
18,
12000... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7336,
12,
2890,
4672,
3536,
990,
326,
1300,
434,
28580,
7336,
364,
279,
2845,
761,
18,
3536,
309,
365,
18,
4327,
18,
12000,
18,
12296,
411,
374,
30,
327,
300,
2890,
18,
4327,
18,
12000... |
evt = proxy_event(%(call_method)s,arg_list,kw,finished) | evt = proxy_event(%(call_method)s,arg_list,dkw,finished) | body = """def %(method)s(self,*args,**kw): \"\"\"%(documentation)s\"\"\" %(pre_test)s from gui_thread_guts import proxy_event, smart_return %(import_statement)s # remove proxies if present args = dereference_arglist(args) %(arguments)s # inserts proxied object up front ret_val = None if in_proxy_call: ret_val = apply(%... | 4d50a24916bde5ccf37876de92ba8f8d8c0a41c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/4d50a24916bde5ccf37876de92ba8f8d8c0a41c4/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1417,
273,
3536,
536,
8975,
2039,
13,
87,
12,
2890,
16,
14,
1968,
16,
636,
9987,
4672,
1239,
2412,
2412,
17105,
26941,
13,
87,
2412,
2412,
2412,
8975,
1484,
67,
3813,
13,
87,
628,
13238,
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,
1417,
273,
3536,
536,
8975,
2039,
13,
87,
12,
2890,
16,
14,
1968,
16,
636,
9987,
4672,
1239,
2412,
2412,
17105,
26941,
13,
87,
2412,
2412,
2412,
8975,
1484,
67,
3813,
13,
87,
628,
13238,
67,... |
sage: from abelian_group import AbelianGroup | def _repr_defn(self): return "Identity map of "+str(X) | 00d2ebcb358752322694a2bb06bab67d84fcbc63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/00d2ebcb358752322694a2bb06bab67d84fcbc63/abelian_group_morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
536,
82,
12,
2890,
4672,
327,
315,
4334,
852,
434,
13773,
701,
12,
60,
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,
... | [
1,
1,
1,
1,
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,
389,
12715,
67,
536,
82,
12,
2890,
4672,
327,
315,
4334,
852,
434,
13773,
701,
12,
60,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
ok = NSWorkspace.sharedWorkspace().openFile_withApplication_andDeactivate_(moviePath, nil, YES) | ws = NSWorkspace.sharedWorkspace() ok, externalApp, movieType = ws.getInfoForFile_application_type_(moviePath) if ok: if externalApp == NSBundle.mainBundle().bundlePath(): print 'DTV: WARNING, trying to play movie externally with Democracy.' ok = False else: ok = ws.openFile_withApplication_andDeactivate_(moviePath, n... | def playItemExternally(self, itemID): item = app.PlaybackControllerBase.playItemExternally(self, itemID) moviePath = item.getVideoFilename() ok = NSWorkspace.sharedWorkspace().openFile_withApplication_andDeactivate_(moviePath, nil, YES) if not ok: print "DTV: movie %s could not be externally opened" % moviePath | 8f88de97b8a05fbee6c58f842e0bec155808b94a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/8f88de97b8a05fbee6c58f842e0bec155808b94a/VideoDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
1180,
29764,
1230,
12,
2890,
16,
761,
734,
4672,
761,
273,
595,
18,
30569,
2933,
2171,
18,
1601,
1180,
29764,
1230,
12,
2890,
16,
761,
734,
13,
21360,
743,
273,
761,
18,
588,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
1180,
29764,
1230,
12,
2890,
16,
761,
734,
4672,
761,
273,
595,
18,
30569,
2933,
2171,
18,
1601,
1180,
29764,
1230,
12,
2890,
16,
761,
734,
13,
21360,
743,
273,
761,
18,
588,
100... |
gLogger.error(errStr, res['Message']) | gLogger.error( errStr, res['Message'] ) | def executeRequest(self): ################################################ # Get a request from request DB res = self.RequestDBClient.getRequest('register') if not res['OK']: gLogger.info("RegistrationAgent.execute: Failed to get request from database.") return S_OK() elif not res['Value']: gLogger.info("RegistrationAg... | 991ec8b0394b656ec2c67f7fb0b500c383f8babd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/991ec8b0394b656ec2c67f7fb0b500c383f8babd/RegistrationAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
400,
273,
365,
18,
691,
2290,
1227,
18,
588,
691,
2668,
4861,
6134,
309,
486,
400,
3292,
3141,
3546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
691,
12,
2890,
4672,
19709,
26487,
13151,
468,
968,
279,
590,
628,
590,
2383,
400,
273,
365,
18,
691,
2290,
1227,
18,
588,
691,
2668,
4861,
6134,
309,
486,
400,
3292,
3141,
3546,
... |
self.fp.write(struct.pack("<lll", zinfo.CRC, zinfo.compress_size, | self.fp.write(struct.pack("<lLL", zinfo.CRC, zinfo.compress_size, | def writestr(self, zinfo_or_arcname, bytes): """Write a file into the archive. The contents is the string 'bytes'. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.""" if not isinstance(zinfo_or_arcname, ZipInfo): zinfo = ZipInfo(filename=zinfo_or_arcname, date_time=time.localtim... | ff450f7512900eb883576109b53f0aa3ebc76a0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ff450f7512900eb883576109b53f0aa3ebc76a0a/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7262,
313,
12,
2890,
16,
998,
1376,
67,
280,
67,
11828,
529,
16,
1731,
4672,
3536,
3067,
279,
585,
1368,
326,
5052,
18,
225,
1021,
2939,
353,
326,
533,
296,
3890,
10332,
225,
296,
94,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7262,
313,
12,
2890,
16,
998,
1376,
67,
280,
67,
11828,
529,
16,
1731,
4672,
3536,
3067,
279,
585,
1368,
326,
5052,
18,
225,
1021,
2939,
353,
326,
533,
296,
3890,
10332,
225,
296,
94,
... |
self.downloader.addheaders.append(['Authorization', 'Basic ' + base64.encodestring(user + ':' + pw)[:-1]]) | self.downloader.addheaders.append(['Authorization', 'Basic ' + base64.encodestring(upwstr)[:-1]]) | def add_auth(self, user, pw): self.auth = True self.user = user self.pw = pw | 4690417077a7374c99ed980430f44b829296ed26 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/4690417077a7374c99ed980430f44b829296ed26/Request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1944,
12,
2890,
16,
729,
16,
8772,
4672,
225,
365,
18,
1944,
273,
1053,
365,
18,
1355,
273,
729,
365,
18,
14921,
273,
8772,
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,
527,
67,
1944,
12,
2890,
16,
729,
16,
8772,
4672,
225,
365,
18,
1944,
273,
1053,
365,
18,
1355,
273,
729,
365,
18,
14921,
273,
8772,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
typ, data = self._imap.uid('FETCH', msg_list, *parts) else: typ, data = self._imap.fetch(msg_list, *parts) | typ, data = self._imap.uid('FETCH', msg_list, parts_list) else: typ, data = self._imap.fetch(msg_list, parts_list) | def fetch(self, messages, parts): '''Retrieve selected data items for one or more messages. | 85410ed715e4d58f7449b28c7d003bfab4608e73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9352/85410ed715e4d58f7449b28c7d003bfab4608e73/imapclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
2890,
16,
2743,
16,
2140,
4672,
9163,
5767,
3170,
501,
1516,
364,
1245,
578,
1898,
2743,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
2890,
16,
2743,
16,
2140,
4672,
9163,
5767,
3170,
501,
1516,
364,
1245,
578,
1898,
2743,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
query = dict.fromkeys(troveNames, {sourceVersion.branch() : None }) | query = dict.fromkeys(troveNames, {sourceVersion.getBinaryVersion().branch() : None }) | def nextVersion(repos, troveNames, sourceVersion, troveFlavor, targetLabel=None, alwaysBumpCount=False): """ Calculates the version to use for a newly built trove which is about to be added to the repository. @param repos: repository proxy @type repos: NetworkRepositoryClient @param troveNames: name(s) of the trove(s)... | 25256754b38735f2f8ff149ddb565fa7aa376983 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/25256754b38735f2f8ff149ddb565fa7aa376983/cook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
1444,
12,
15564,
16,
23432,
537,
1557,
16,
1084,
1444,
16,
23432,
537,
2340,
9444,
16,
1018,
2224,
33,
7036,
16,
3712,
38,
2801,
1380,
33,
8381,
4672,
3536,
26128,
326,
1177,
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,
1024,
1444,
12,
15564,
16,
23432,
537,
1557,
16,
1084,
1444,
16,
23432,
537,
2340,
9444,
16,
1018,
2224,
33,
7036,
16,
3712,
38,
2801,
1380,
33,
8381,
4672,
3536,
26128,
326,
1177,
358,
... |
if any([is_Expression(func), is_RealNumber(func), is_Integer(func)]): return self.gen_transform(**{ self.indep_var: func, self.dep_vars[0]: params[0], self.dep_vars[1]: params[1] | if params is not None and (is_Expression(func) or is_RealNumber(func) or is_Integer(func)): return self.transform(**{ self.dep_var: func, self.indep_vars[0]: params[0], self.indep_vars[1]: params[1] | def to_cartesian(self, func, params): """ Returns a 3-tuple of functions, parameterized over ``params``, that represents the cartesian coordinates of the value of ``func``. | f1a033cac620bf133b1f996c6db511753cab6f3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f1a033cac620bf133b1f996c6db511753cab6f3d/plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
11848,
13404,
12,
2890,
16,
1326,
16,
859,
4672,
3536,
2860,
279,
890,
17,
8052,
434,
4186,
16,
17629,
1879,
12176,
2010,
68,
9191,
716,
8686,
326,
24549,
5513,
434,
326,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
358,
67,
11848,
13404,
12,
2890,
16,
1326,
16,
859,
4672,
3536,
2860,
279,
890,
17,
8052,
434,
4186,
16,
17629,
1879,
12176,
2010,
68,
9191,
716,
8686,
326,
24549,
5513,
434,
326,
460,
... |
def function(self, f): | def function(self, v): | def function(self, f): print "Function", v form = MonomialForm(v) print "Result:", form return form | 10b87672e6a9d88cc5507355f2c5d13d43f901c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/10b87672e6a9d88cc5507355f2c5d13d43f901c3/monomials.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
12,
2890,
16,
331,
4672,
1172,
315,
2083,
3113,
331,
646,
273,
490,
4708,
649,
1204,
12,
90,
13,
1172,
315,
1253,
2773,
16,
646,
327,
646,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
445,
12,
2890,
16,
331,
4672,
1172,
315,
2083,
3113,
331,
646,
273,
490,
4708,
649,
1204,
12,
90,
13,
1172,
315,
1253,
2773,
16,
646,
327,
646,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Some data here | def test_start_table(self): tsv = StringIO('''*Setting*\t*Value*\t*V* | 62852367ed62779b5c3d23d86ee0b0f2890bc890 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/62852367ed62779b5c3d23d86ee0b0f2890bc890/test_tsvreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1937,
67,
2121,
12,
2890,
4672,
22731,
273,
15777,
2668,
6309,
14,
5568,
12174,
88,
14,
620,
12174,
88,
14,
58,
14,
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,
1842,
67,
1937,
67,
2121,
12,
2890,
4672,
22731,
273,
15777,
2668,
6309,
14,
5568,
12174,
88,
14,
620,
12174,
88,
14,
58,
14,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if n == 0: return cmath.cos(r) if n == 1: return -cmath.sin(r) if n == 2: return -cmath.cos(r) if n == 3: return cmath.sin(r) | if n == 0: return cmath.cos(z) if n == 1: return -cmath.sin(z) if n == 2: return -cmath.cos(z) if n == 3: return cmath.sin(z) | def _cospi_complex(z): n, r = divmod(z, 0.5) z = pi*complex(r, z.imag) n %= 4 if n == 0: return cmath.cos(r) if n == 1: return -cmath.sin(r) if n == 2: return -cmath.cos(r) if n == 3: return cmath.sin(r) | a956614bdb70e31ebfc087732b0c2cbca8e0757e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11851/a956614bdb70e31ebfc087732b0c2cbca8e0757e/math2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14445,
7259,
67,
14259,
12,
94,
4672,
290,
16,
436,
273,
26105,
12,
94,
16,
374,
18,
25,
13,
998,
273,
4790,
14,
14259,
12,
86,
16,
998,
18,
15374,
13,
290,
30582,
1059,
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,
389,
14445,
7259,
67,
14259,
12,
94,
4672,
290,
16,
436,
273,
26105,
12,
94,
16,
374,
18,
25,
13,
998,
273,
4790,
14,
14259,
12,
86,
16,
998,
18,
15374,
13,
290,
30582,
1059,
309,
... |
if self.distribution.use_hg_version: | using_hg_version = ( self.distribution.use_hg_version or self.distribution.use_hg_version_increment ) if using_hg_version: | def tagged_version(self): if self.distribution.use_hg_version: result = safe_version(self.distribution.get_version()) else: result = orig_ver(self) self.tag_build = result return result | 9b3802e1e49c526a3b5282da137b7955682980d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/833/9b3802e1e49c526a3b5282da137b7955682980d1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12503,
67,
1589,
12,
2890,
4672,
1450,
67,
26981,
67,
1589,
273,
261,
365,
18,
16279,
18,
1202,
67,
26981,
67,
1589,
578,
365,
18,
16279,
18,
1202,
67,
26981,
67,
1589,
67,
15016,
262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12503,
67,
1589,
12,
2890,
4672,
1450,
67,
26981,
67,
1589,
273,
261,
365,
18,
16279,
18,
1202,
67,
26981,
67,
1589,
578,
365,
18,
16279,
18,
1202,
67,
26981,
67,
1589,
67,
15016,
262,... |
self.assertRaises(RuntimeError, cmp, y, x) | self.assertEqual(y, x) | def test_deepcopy_reflexive_dict(self): x = {} x['foo'] = x y = copy.deepcopy(x) self.assertRaises(RuntimeError, cmp, y, x) self.assert_(y is not x) self.assert_(y['foo'] is y) self.assertEqual(len(y), 1) | 1c473db645d8fd50fcd504639ceb7f1576aaebed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/1c473db645d8fd50fcd504639ceb7f1576aaebed/test_copy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
16589,
3530,
67,
1734,
4149,
688,
67,
1576,
12,
2890,
4672,
619,
273,
2618,
619,
3292,
11351,
3546,
273,
619,
677,
273,
1610,
18,
16589,
3530,
12,
92,
13,
365,
18,
11231,
581... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16589,
3530,
67,
1734,
4149,
688,
67,
1576,
12,
2890,
4672,
619,
273,
2618,
619,
3292,
11351,
3546,
273,
619,
677,
273,
1610,
18,
16589,
3530,
12,
92,
13,
365,
18,
11231,
581... |
ifa_split_empties(cl, dcpa, allnodes, assignsets, split) if len(merge_simple_types(getgx().types[node])) < 2 or len(assignsets) == 1: continue ifa_split_no_confusion(cl, dcpa, varnum, classes_nr, nr_classes, csites, allnodes, split) | if ((len(merge_simple_types(getgx().types[node])) > 1 and len(assignsets) > 1) or \ (assignsets and emptycsites)): ifa_split_no_confusion(cl, dcpa, varnum, classes_nr, nr_classes, csites, emptycsites, allnodes, split) | def ifa_split_vars(cl, dcpa, vars, nr_classes, classes_nr, split): for (varnum, var) in enumerate(vars): if not (var, dcpa, 0) in getgx().cnode: continue node = getgx().cnode[var, dcpa, 0] creation_points, paths, assignsets, allnodes, csites = ifa_flow_graph(cl, dcpa, node) if len(csites) == 1: continue if DEBUG: print... | 1e46cb49994e29bdac7a6514502ee2e2b0d5d451 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4470/1e46cb49994e29bdac7a6514502ee2e2b0d5d451/infer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
69,
67,
4939,
67,
4699,
12,
830,
16,
302,
4057,
69,
16,
4153,
16,
9884,
67,
4701,
16,
3318,
67,
11611,
16,
1416,
4672,
364,
261,
90,
1303,
379,
16,
569,
13,
316,
4241,
12,
469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
69,
67,
4939,
67,
4699,
12,
830,
16,
302,
4057,
69,
16,
4153,
16,
9884,
67,
4701,
16,
3318,
67,
11611,
16,
1416,
4672,
364,
261,
90,
1303,
379,
16,
569,
13,
316,
4241,
12,
469... |
if e.args[0] not in (EBADF, ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED): | if e.args[0] not in (EBADF, ECONNRESET, ENOTCONN, ESHUTDOWN, ECONNABORTED): | def readwrite(obj, flags): try: if flags & select.POLLIN: obj.handle_read_event() if flags & select.POLLOUT: obj.handle_write_event() if flags & select.POLLPRI: obj.handle_expt_event() if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL): obj.handle_close() except socket.error, e: if e.args[0] not in (EBADF, ... | cdd12ac2ffd834ccc946393a57b89db3bb4cfe22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/cdd12ac2ffd834ccc946393a57b89db3bb4cfe22/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2626,
12,
2603,
16,
2943,
4672,
775,
30,
309,
2943,
473,
2027,
18,
14232,
20663,
30,
1081,
18,
4110,
67,
896,
67,
2575,
1435,
309,
2943,
473,
2027,
18,
14232,
1502,
1693,
30,
1081... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2626,
12,
2603,
16,
2943,
4672,
775,
30,
309,
2943,
473,
2027,
18,
14232,
20663,
30,
1081,
18,
4110,
67,
896,
67,
2575,
1435,
309,
2943,
473,
2027,
18,
14232,
1502,
1693,
30,
1081... |
def doMap(): clearDirFiles(CACHE_PATH) image = getMap(sys.argv[2],sys.argv[3],15,width=640,height=360,marker=True) xbmc.executebuiltin('SlideShow('+CACHE_PATH+')') | def clearDirFiles(filepath): if not os.path.exists(filepath): return for f in os.listdir(filepath): f = os.path.join(filepath,f) if os.path.isfile(f): os.remove(f) | 6b5165fa566d7301013d45dc0309287ac9b098fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9429/6b5165fa566d7301013d45dc0309287ac9b098fc/default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
1621,
2697,
12,
10561,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
10561,
4672,
327,
364,
284,
316,
1140,
18,
1098,
1214,
12,
10561,
4672,
284,
273,
1140,
18,
803,
18,
5701,
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,
2424,
1621,
2697,
12,
10561,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
10561,
4672,
327,
364,
284,
316,
1140,
18,
1098,
1214,
12,
10561,
4672,
284,
273,
1140,
18,
803,
18,
5701,
12,... | |
ctx = {"omero.group": str(gid)} | client_uuid = self.factory.ice_getIdentity().category[8:] ctx = {"omero.group": str(gid), omero.constants.CLIENTUUID: client_uuid} | def close(self, current = None): | a0435a880f0ca78e81c7b9d2cf744ccde5338e15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/a0435a880f0ca78e81c7b9d2cf744ccde5338e15/tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
783,
273,
599,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1746,
12,
2890,
16,
783,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
i = 0 | i = len(children) | def fixup_paras_helper(doc, container): # document is already normalized children = container.childNodes start = 0 start_fixed = 0 i = 0 SKIP_ELEMENTS = PARA_LEVEL_ELEMENTS + PARA_LEVEL_PRECEEDERS for child in children: if child.nodeType == xml.dom.core.ELEMENT: if child.tagName in FIXUP_PARA_ELEMENTS: fixup_paras_help... | 3759c0f7c4a36aa16f6e09ec1bb99e14f315dc6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3759c0f7c4a36aa16f6e09ec1bb99e14f315dc6f/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
416,
67,
1065,
345,
67,
4759,
12,
2434,
16,
1478,
4672,
468,
1668,
353,
1818,
5640,
2325,
273,
1478,
18,
3624,
3205,
787,
273,
374,
787,
67,
12429,
273,
374,
277,
273,
562,
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,
2917,
416,
67,
1065,
345,
67,
4759,
12,
2434,
16,
1478,
4672,
468,
1668,
353,
1818,
5640,
2325,
273,
1478,
18,
3624,
3205,
787,
273,
374,
787,
67,
12429,
273,
374,
277,
273,
562,
12,
... |
pat = re.compile(r'^\s*class\s*' + name + r'\b') | pat = re.compile(r'^(\s*)class\s*' + name + r'\b') candidates = [] | def findsource(object): """Return the entire source file and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of all the lines in the file and the line number indexes a line in that list. An IOError is r... | b2e81e307dc7e7d8a552619b6defddb06e028613 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b2e81e307dc7e7d8a552619b6defddb06e028613/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
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,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
16,
... |
'VARIANT_BOOL', 'WCHAR', 'WIN32_FIND_DATAA', 'WIN32_FIND_DATAW', | 'WCHAR', 'WIN32_FIND_DATAA', 'WIN32_FIND_DATAW', | def RGB(red, green, blue): return red + (green << 8) + (blue << 16) | 3710a62d9580b5cea1d49950b5d8d1a106ca1ecc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/3710a62d9580b5cea1d49950b5d8d1a106ca1ecc/wintypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11510,
12,
1118,
16,
10004,
16,
8024,
4672,
327,
1755,
397,
261,
11571,
2296,
1725,
13,
397,
261,
14081,
2296,
2872,
13,
225,
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,
0,
0,
0,
0,
0,
0,
0,
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,
11510,
12,
1118,
16,
10004,
16,
8024,
4672,
327,
1755,
397,
261,
11571,
2296,
1725,
13,
397,
261,
14081,
2296,
2872,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
``mapper`` | ``mapper`` | def keep_status_start_response(status, headers, exc_info=None): for header, value in headers: if header.lower() == 'set-cookie': self.headers.append((header, value)) else: replace_header(self.headers, header, value) return start_response(self.status, self.headers, exc_info) | ad2b5581c6f72b5cb630b6b63eb84b3414214056 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2097/ad2b5581c6f72b5cb630b6b63eb84b3414214056/errordocument.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3455,
67,
2327,
67,
1937,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
364,
1446,
16,
460,
316,
1607,
30,
309,
1446,
18,
8167,
1435,
422,
296,
542,
17,
8417,
427... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3455,
67,
2327,
67,
1937,
67,
2740,
12,
2327,
16,
1607,
16,
3533,
67,
1376,
33,
7036,
4672,
364,
1446,
16,
460,
316,
1607,
30,
309,
1446,
18,
8167,
1435,
422,
296,
542,
17,
8417,
427... |
if key: | if key is None: callback(path, modname, '') else: | def run(self, key, callback, completer=None): key = lower(key) self.quit = 0 seen = {} | cdd3c5fa22c1696864e701e1c4335969c936cd77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/cdd3c5fa22c1696864e701e1c4335969c936cd77/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
498,
16,
1348,
16,
31848,
33,
7036,
4672,
498,
273,
2612,
12,
856,
13,
365,
18,
27176,
273,
374,
5881,
273,
2618,
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,
1086,
12,
2890,
16,
498,
16,
1348,
16,
31848,
33,
7036,
4672,
498,
273,
2612,
12,
856,
13,
365,
18,
27176,
273,
374,
5881,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
data = filter(self.MatchFilter, data) self.parent_list.SetFilteredResults(len(data)) | data = filter(self.MatchFilter, self.raw_data) else: data = self.raw_data self.vSizer.ShowItems(False) | def __SetData(self): if DEBUG: print >> sys.stderr, "ListBody: set data", time() data = self.raw_data #apply quickfilter if self.filter != '': data = filter(self.MatchFilter, data) self.parent_list.SetFilteredResults(len(data)) self.vSizer.Clear() if data: if len(self.items) == 0: #new data if len(data) > LIST_ITEM_B... | bec7425998522b9098966054b0ef584a859d3835 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/bec7425998522b9098966054b0ef584a859d3835/list_body.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
694,
751,
12,
2890,
4672,
309,
6369,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
682,
2250,
30,
444,
501,
3113,
813,
1435,
501,
273,
365,
18,
1899,
67,
892,
225,
468,
9010,
9549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
694,
751,
12,
2890,
4672,
309,
6369,
30,
1172,
1671,
2589,
18,
11241,
16,
315,
682,
2250,
30,
444,
501,
3113,
813,
1435,
501,
273,
365,
18,
1899,
67,
892,
225,
468,
9010,
9549,
... |
ack=None, admin_notif=None): | lang=None, ack=None, admin_notif=None): | def ApprovedAddMember(self, name, password, digest, ack=None, admin_notif=None): res = self.ApprovedAddMembers([name], [password], digest, ack, admin_notif) # There should be exactly one (key, value) pair in the returned dict, # extract the possible exception value res = res.values()[0] if res is None: # User was added... | 573bc3f5543df89d6c925b452984ab250387f81e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/573bc3f5543df89d6c925b452984ab250387f81e/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1716,
685,
2155,
986,
4419,
12,
2890,
16,
508,
16,
2201,
16,
5403,
16,
3303,
33,
7036,
16,
8479,
33,
7036,
16,
3981,
67,
902,
430,
33,
7036,
4672,
400,
273,
365,
18,
31639,
986,
6918... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1716,
685,
2155,
986,
4419,
12,
2890,
16,
508,
16,
2201,
16,
5403,
16,
3303,
33,
7036,
16,
8479,
33,
7036,
16,
3981,
67,
902,
430,
33,
7036,
4672,
400,
273,
365,
18,
31639,
986,
6918... |
if len(info['node_to_cpu'][i]) > 0 and i in node_list: nodeload[i] = int(nodeload[i] * 16 / len(info['node_to_cpu'][i])) else: nodeload[i] = sys.maxint | nodeload[i] = int(nodeload[i] * 16 / len(info['node_to_cpu'][i])) if len(info['node_to_cpu'][i]) == 0 or i not in node_list: nodelist[i] += 8 | def find_relaxed_node(node_list): import sys nr_nodes = info['nr_nodes'] if node_list is None: node_list = range(0, nr_nodes) nodeload = [0] nodeload = nodeload * nr_nodes from xen.xend import XendDomain doms = XendDomain.instance().list('all') for dom in filter (lambda d: d.domid != self.domid, doms): cpuinfo = dom.ge... | 33f03ed9fff1087cd1d31633eeaa26673c310e8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/33f03ed9fff1087cd1d31633eeaa26673c310e8c/XendDomainInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2878,
651,
329,
67,
2159,
12,
2159,
67,
1098,
4672,
1930,
2589,
9884,
67,
4690,
273,
1123,
3292,
11611,
67,
4690,
3546,
309,
756,
67,
1098,
353,
599,
30,
756,
67,
1098,
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,
1104,
67,
2878,
651,
329,
67,
2159,
12,
2159,
67,
1098,
4672,
1930,
2589,
9884,
67,
4690,
273,
1123,
3292,
11611,
67,
4690,
3546,
309,
756,
67,
1098,
353,
599,
30,
756,
67,
1098,
273,
... |
Subgroup subclass of PermutationGroup_generic, so instance methods | Subgroup subclass of ``PermutationGroup_generic``, so instance methods | def upper_central_series(self): """ Return the upper central series of this group as a list of permutation groups. EXAMPLES: These computations use pseudo-random numbers, so we set the seed for reproducible testing. :: sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G.upper_central_series() [Permutation ... | 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,
3854,
67,
71,
12839,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
3854,
18291,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
225,
5675,
8900,
11386,
30,
8646,
5305,
1012,
999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3854,
67,
71,
12839,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
3854,
18291,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
225,
5675,
8900,
11386,
30,
8646,
5305,
1012,
999... |
testImg = IECore.Reader.create(outputfile).read() if not resetOrigin: dyw = croppedImg.displayWindow dtw = croppedImg.dataWindow dyw.max -= dyw.min dtw.max -= dyw.min dtw.min -= dyw.min dyw.min = IECore.V2i( 0,0 ) croppedImg.displayWindow = dyw croppedImg.dataWindow = dtw if croppedImg == testImg: continue errors.ap... | expectedImg = IECore.Reader.create( testCase['checkFile'] ).read() if croppedImg == expectedImg : continue errors.append( "Crop test case failed:" + str(testCase) + ". Cropped image: " + str(croppedImg.displayWindow) + " " + str(croppedImg.dataWindow) + " Loaded image: " + str(expectedImg.displayWindow) + " " + str(... | def __testCrop( self, inputfile, outputfile, tests ): r = IECore.Reader.create(inputfile) img = r.read() self.assertEqual(type(img), IECore.ImagePrimitive) | 712c02e0a37dbb23ea9fa3cdc8e8eaae7c457f20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/712c02e0a37dbb23ea9fa3cdc8e8eaae7c457f20/ImageCropOp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3813,
19729,
12,
365,
16,
810,
768,
16,
876,
768,
16,
7434,
262,
30,
436,
273,
10897,
4670,
18,
2514,
18,
2640,
12,
2630,
768,
13,
3774,
273,
436,
18,
896,
1435,
365,
18,
11231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3813,
19729,
12,
365,
16,
810,
768,
16,
876,
768,
16,
7434,
262,
30,
436,
273,
10897,
4670,
18,
2514,
18,
2640,
12,
2630,
768,
13,
3774,
273,
436,
18,
896,
1435,
365,
18,
11231... |
A class implementing all Bessel functions. | A class implementing the I, J, K, and Y Bessel functions. | def bessel_Y(nu,z,alg="maxima"): r""" Implements the "Y-Bessel function", or "Bessel function of the 2nd kind", with index (or "order") nu and argument z. Defn: | 6634f9ab85d7944da6788aaab93ffaa3f22ce5ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6634f9ab85d7944da6788aaab93ffaa3f22ce5ac/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
403,
292,
67,
61,
12,
13053,
16,
94,
16,
18413,
1546,
1896,
13888,
6,
4672,
436,
8395,
29704,
326,
315,
61,
17,
38,
403,
292,
445,
3113,
578,
315,
38,
403,
292,
445,
434,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
403,
292,
67,
61,
12,
13053,
16,
94,
16,
18413,
1546,
1896,
13888,
6,
4672,
436,
8395,
29704,
326,
315,
61,
17,
38,
403,
292,
445,
3113,
578,
315,
38,
403,
292,
445,
434,
326,
... |
if action != _("Browse") and p1: | if action != _("Browse") and pl: | def tmpl_search_box(self, ln, weburl, as, cc, cc_intl, ot, sp, action, fieldslist, f1, f2, f3, m1, m2, m3, p1, p2, p3, op1, op2, rm, p, f, coll_selects, d1y, d2y, d1m, d2m, d1d, d2d, sort_formats, sf, so, ranks, sc, rg, formats, of): """ Displays the *Nearest search terms* box | 8b956cbc7613e7b7615982a77f764c9a4c6c7fe9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/8b956cbc7613e7b7615982a77f764c9a4c6c7fe9/websearch_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
3072,
67,
2147,
12,
2890,
16,
7211,
16,
3311,
718,
16,
487,
16,
4946,
16,
4946,
67,
474,
80,
16,
15835,
16,
1694,
16,
1301,
16,
1466,
1098,
16,
284,
21,
16,
284,
22,
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,
10720,
67,
3072,
67,
2147,
12,
2890,
16,
7211,
16,
3311,
718,
16,
487,
16,
4946,
16,
4946,
67,
474,
80,
16,
15835,
16,
1694,
16,
1301,
16,
1466,
1098,
16,
284,
21,
16,
284,
22,
16,... |
figure.subplot_table(0,0,workspace.display_data.statistics, | figure.subplot_table(0,0,workspace.display_data.statistics, | def display(self, workspace): figure = workspace.create_or_find_figure(title="Load images, image set #%d"%( workspace.measurements.image_set_number), subplots=(1,1)) figure.subplot_table(0,0,workspace.display_data.statistics, ratio=workspace.display_data.ratio) | 55cc743ba59fdeae5a0fa16e18b42691c3dd50f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/55cc743ba59fdeae5a0fa16e18b42691c3dd50f4/loadimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
6003,
4672,
7837,
273,
6003,
18,
2640,
67,
280,
67,
4720,
67,
19675,
12,
2649,
1546,
2563,
4602,
16,
1316,
444,
31974,
72,
6,
17105,
6003,
18,
26550,
18,
2730,
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,
2562,
12,
2890,
16,
6003,
4672,
7837,
273,
6003,
18,
2640,
67,
280,
67,
4720,
67,
19675,
12,
2649,
1546,
2563,
4602,
16,
1316,
444,
31974,
72,
6,
17105,
6003,
18,
26550,
18,
2730,
67,
... |
elif self.have_popen2: | elif self.have_popen2 or self.have_popen3: | def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = rest.rfind('?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = rest.find('/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.translate_path(scrip... | 340d57e5237df8a3b0c0cbb116af2c7c60bd9afc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/340d57e5237df8a3b0c0cbb116af2c7c60bd9afc/CGIHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... |
Q_Users = Q() if usernames != []: | Q_Users = Q(id=-1) if usernames: | def attendees(self, request, tl, one, two, module, extra, prog): """ Mark students as having attended the program, or as having registered for the specified class """ saved_record = False if request.method == 'POST': if not( request.POST.has_key('class_id') and request.POST.has_key('ids_to_enter') ): raise ESPError(),... | 8fe88082b7b2f96b01888f5081808750dd105cc0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/8fe88082b7b2f96b01888f5081808750dd105cc0/adminclass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27645,
323,
281,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
3536,
6622,
10068,
4877,
487,
7999,
622,
8140,
326,
5402,
16,
578,
487,
7999,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27645,
323,
281,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
3536,
6622,
10068,
4877,
487,
7999,
622,
8140,
326,
5402,
16,
578,
487,
7999,
410... |
resource_id = len(resource_ids) or resource_ids[0] | if resource_ids: resource_id = len(resource_ids) or resource_ids[0] | def _compute_day(self, cr, uid, ids, fields, args, context={}): """ @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of Openday’s IDs @return: difference between current date and log date @param context: A standard dictionary for contextual va... | c69d8bd2bac959428890d00d910e4f8ed5a4fb90 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c69d8bd2bac959428890d00d910e4f8ed5a4fb90/crm_lead.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9200,
67,
2881,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
16,
833,
16,
819,
12938,
4672,
3536,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9200,
67,
2881,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1466,
16,
833,
16,
819,
12938,
4672,
3536,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891... |
if mycontext['maxlag'] > 4: | if mycontext['maxlag'] > 2: | def check_and_exit(): if mycontext['maxlag'] > 4: print "TCP packets lag too long in the buffer: ", mycontext['maxlag'] if mycontext['maxlag'] == 0: print "TCP packets were not received or had 0 lag" exitall() | a9c6168baa22424dd7e989a33ee0778d92a18470 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7995/a9c6168baa22424dd7e989a33ee0778d92a18470/ut_repytests_testtcpbuffersize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
464,
67,
8593,
13332,
309,
3399,
2472,
3292,
1896,
22532,
3546,
405,
576,
30,
1172,
315,
13891,
12640,
17241,
4885,
1525,
316,
326,
1613,
30,
3104,
3399,
2472,
3292,
1896,
22532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
464,
67,
8593,
13332,
309,
3399,
2472,
3292,
1896,
22532,
3546,
405,
576,
30,
1172,
315,
13891,
12640,
17241,
4885,
1525,
316,
326,
1613,
30,
3104,
3399,
2472,
3292,
1896,
22532,
... |
ldso = file(util.joinPaths(self.root, '/etc/ld.so.conf'), 'w+') ldsolines = ldso.readlines() newlines = [] rootlen = len(self.root) for path in self.sharedLibraries: dirname = os.path.dirname(path)[rootlen:] dirline = dirname+'\n' if dirline not in ldsolines: ldsolines.append(dirline) newlines.append(dirname) if newli... | def apply(self): | ba982a3d93849258008e1608cfc28e823b0c4c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ba982a3d93849258008e1608cfc28e823b0c4c53/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
logging.warning("Searching for files from root directory.") | logging.warning("Searching for files from current directory.") | def gendeps(): import optparse parser = optparse.OptionParser(__doc__.strip()) parser.add_option('-i', '--internal', '--internal-only', default=0, action='count', help="Filter out dependencies that are outside of the " "roots of the input files. If internal is used twice, we " "filter down further the dependencies to ... | 3f36ce107941d447d0129247396571e4d28c1dcc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/606/3f36ce107941d447d0129247396571e4d28c1dcc/gendeps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
14877,
13332,
1930,
2153,
2670,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
972,
2434,
25648,
6406,
10756,
225,
2082,
18,
1289,
67,
3482,
2668,
17,
77,
2187,
3534,
7236,
2187,
3534,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
14877,
13332,
1930,
2153,
2670,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
972,
2434,
25648,
6406,
10756,
225,
2082,
18,
1289,
67,
3482,
2668,
17,
77,
2187,
3534,
7236,
2187,
3534,
... |
errStr = "ReplicaManager.replicateAndRegister: Failed to get physical file size." | errStr = "ReplicaManager.__resolveBestReplicas: Failed to get physical file size." | def __resolveBestReplicas(self,sourceSE,lfnReplicas,catalogueSize): ########################################################### # Determine the best replicas (remove banned sources, invalid storage elements and file with the wrong size) replicaPreference = [] for diracSE,pfn in lfnReplicas.items(): if sourceSE and dira... | e8a6375e5f8805958dacbec0f1a4c6f0cfc1b690 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/e8a6375e5f8805958dacbec0f1a4c6f0cfc1b690/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10828,
14173,
17248,
12,
2890,
16,
3168,
1090,
16,
80,
4293,
17248,
16,
7199,
344,
1225,
4672,
19709,
5516,
3228,
1189,
468,
10229,
326,
3796,
21545,
261,
4479,
324,
10041,
5550,
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,
1001,
10828,
14173,
17248,
12,
2890,
16,
3168,
1090,
16,
80,
4293,
17248,
16,
7199,
344,
1225,
4672,
19709,
5516,
3228,
1189,
468,
10229,
326,
3796,
21545,
261,
4479,
324,
10041,
5550,
16,... |
self.connect(self.dispTubesAction,SIGNAL("activated()"),self.dispTubes) self.connect(self.dispVdWAction,SIGNAL("activated()"),self.dispVdW) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
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,
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,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | |
new_query.append(('%s:utf8:ustring' % key, value)) | new_query.append(('%s' % key, value)) | def build_url(self, url=None, preserve=[], **kw): """ Builds and returns a new url from the one we are now. Preserves only the query parameters that start with any of the specified prefixes in the 'preserve' argument. The keywords argument is used to add or modify query parameters. """ if url is None: url = self.path[-... | 152cd28b7d770b73a6c6182e90653358a22069a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/152cd28b7d770b73a6c6182e90653358a22069a7/request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
718,
12,
2890,
16,
880,
33,
7036,
16,
9420,
22850,
6487,
2826,
9987,
4672,
3536,
3998,
87,
471,
1135,
279,
394,
880,
628,
326,
1245,
732,
854,
2037,
18,
18346,
264,
3324,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
718,
12,
2890,
16,
880,
33,
7036,
16,
9420,
22850,
6487,
2826,
9987,
4672,
3536,
3998,
87,
471,
1135,
279,
394,
880,
628,
326,
1245,
732,
854,
2037,
18,
18346,
264,
3324,
133... |
return pull(repo, dest, branch=branch, revision=revision) | return pull(repo, dest, update_dest=update_dest, branch=branch, revision=revision) | def mercurial(repo, dest, branch=None, revision=None, shareBase=DefaultShareBase): """Makes sure that `dest` is has `revision` or `branch` checked out from `repo`. Do what it takes to make that happen, including possibly clobbering dest.""" dest = os.path.abspath(dest) if shareBase is DefaultShareBase: shareBase = os.... | b9e69442244d8092bdd7c5ea8f7cba1a532d0753 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/b9e69442244d8092bdd7c5ea8f7cba1a532d0753/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4045,
1397,
649,
12,
7422,
16,
1570,
16,
3803,
33,
7036,
16,
6350,
33,
7036,
16,
7433,
2171,
33,
1868,
9535,
2171,
4672,
3536,
14534,
3071,
716,
1375,
10488,
68,
353,
711,
1375,
13057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4045,
1397,
649,
12,
7422,
16,
1570,
16,
3803,
33,
7036,
16,
6350,
33,
7036,
16,
7433,
2171,
33,
1868,
9535,
2171,
4672,
3536,
14534,
3071,
716,
1375,
10488,
68,
353,
711,
1375,
13057,
... |
pop.removeSubPops([x for x in range(3) if x not in hapmap_pops], removeEmptySubPops=True) | pop.removeSubPops([x for x in range(3) if x not in hapmap_pops]) pop.removeEmptySubPops() | def getMarkersFromRange(HapMap_dir, hapmap_pops, chrom, startPos, endPos, maxNum, minAF=0, minDiffAF=0, minDist=0, maxDist=0): ''' Get a population with markers from given range HapMap_dir: where HapMap data in simuPOP format is stored. The files should have been prepared by scripts/loadHapMap.py. hapmap_pops: HapMap... | dcb023445c1a4705e11425685b986d49e273ad73 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/dcb023445c1a4705e11425685b986d49e273ad73/hapMapUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23232,
414,
1265,
2655,
12,
44,
438,
863,
67,
1214,
16,
5622,
1458,
67,
84,
4473,
16,
8123,
16,
16013,
16,
19809,
16,
943,
2578,
16,
1131,
6799,
33,
20,
16,
1131,
5938,
6799,
33,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23232,
414,
1265,
2655,
12,
44,
438,
863,
67,
1214,
16,
5622,
1458,
67,
84,
4473,
16,
8123,
16,
16013,
16,
19809,
16,
943,
2578,
16,
1131,
6799,
33,
20,
16,
1131,
5938,
6799,
33,
20,... |
if key == 'r': | if key != 'v': | def _returns_value(key, n, args, value): if key == 'r': return value # pass the value through gen_function again for recursive expansion | 03fef3106d17d2b3e46dfc2175d047276f720cfd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9978/03fef3106d17d2b3e46dfc2175d047276f720cfd/gen_returning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6154,
67,
1132,
12,
856,
16,
290,
16,
833,
16,
460,
4672,
309,
498,
480,
296,
90,
4278,
327,
460,
468,
1342,
326,
460,
3059,
3157,
67,
915,
3382,
364,
5904,
17965,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6154,
67,
1132,
12,
856,
16,
290,
16,
833,
16,
460,
4672,
309,
498,
480,
296,
90,
4278,
327,
460,
468,
1342,
326,
460,
3059,
3157,
67,
915,
3382,
364,
5904,
17965,
2,
-100,
-100... |
Don't extract suffix for string with different length. | def findSuffix(self, regex): """ Try to find a common prefix of two string regex, returns: - None if there is no common prefix - (regexa, regexb, suffix) otherwise => (regexa|regexb) + suffix | a2e7fcad5dec1414a3bcb02b36e930f96c13ef05 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/a2e7fcad5dec1414a3bcb02b36e930f96c13ef05/regex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
5791,
12,
2890,
16,
3936,
4672,
3536,
6161,
358,
1104,
279,
2975,
1633,
434,
2795,
533,
3936,
16,
1135,
30,
300,
599,
309,
1915,
353,
1158,
2975,
1633,
300,
261,
7584,
69,
16,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
5791,
12,
2890,
16,
3936,
4672,
3536,
6161,
358,
1104,
279,
2975,
1633,
434,
2795,
533,
3936,
16,
1135,
30,
300,
599,
309,
1915,
353,
1158,
2975,
1633,
300,
261,
7584,
69,
16,
39... | |
return psData[4] | return psData[1] | def GetResidentSize(pid): """Retrieve the current resident memory for a given process""" psData = GetProcessData(pid) return psData[4] | fbd50777e5ac7ab17d2fdcd56e6215f32d9b25ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/fbd50777e5ac7ab17d2fdcd56e6215f32d9b25ed/cmanager_mac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
607,
6392,
1225,
12,
6610,
4672,
3536,
5767,
326,
783,
400,
6392,
3778,
364,
279,
864,
1207,
8395,
4250,
751,
273,
968,
2227,
751,
12,
6610,
13,
327,
4250,
751,
63,
21,
65,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
607,
6392,
1225,
12,
6610,
4672,
3536,
5767,
326,
783,
400,
6392,
3778,
364,
279,
864,
1207,
8395,
4250,
751,
273,
968,
2227,
751,
12,
6610,
13,
327,
4250,
751,
63,
21,
65,
225,
... |
if options['prefix'] != '/': | if options.get('prefix', '/') != '/': | def uninstall(name, options): path = options['etc-directory'] shutil.rmtree(path) logger.info("Removing %r", path) directories = () if options['prefix'] != '/': directories = ('crontab', 'rc', 'logrotate') for d in directories + ('log', 'run'): path = options[d+'-directory'] if os.listdir(path): logger.warn("Can't remo... | 4dbb161033b94709dc5dcc5e9c7030dff6fc2d5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8395/4dbb161033b94709dc5dcc5e9c7030dff6fc2d5e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16577,
12,
529,
16,
702,
4672,
589,
273,
702,
3292,
14175,
17,
5149,
3546,
11060,
18,
86,
17371,
12,
803,
13,
1194,
18,
1376,
2932,
18939,
738,
86,
3113,
589,
13,
6402,
273,
1832,
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,
16577,
12,
529,
16,
702,
4672,
589,
273,
702,
3292,
14175,
17,
5149,
3546,
11060,
18,
86,
17371,
12,
803,
13,
1194,
18,
1376,
2932,
18939,
738,
86,
3113,
589,
13,
6402,
273,
1832,
309,... |
Requires the networkx package. | Requires the networkx-1.0 package. | def to_networkx(tree, graphviz=False): """Convert a Tree object to a networkx graph. The result is useful for plotting with pylab, matplotlib or pygraphviz, though the result is not quite a proper dendrogram for representing a phylogeny. Requires the networkx package. """ # TODO: solve the graphviz labeling issue # E... | 200aab0b152cd9254f2da25687ec90399abd1cbb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/200aab0b152cd9254f2da25687ec90399abd1cbb/Utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
5185,
92,
12,
3413,
16,
2667,
23167,
33,
8381,
4672,
3536,
2723,
279,
4902,
733,
358,
279,
2483,
92,
2667,
18,
225,
1021,
563,
353,
5301,
364,
20947,
598,
2395,
7411,
16,
1389... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
5185,
92,
12,
3413,
16,
2667,
23167,
33,
8381,
4672,
3536,
2723,
279,
4902,
733,
358,
279,
2483,
92,
2667,
18,
225,
1021,
563,
353,
5301,
364,
20947,
598,
2395,
7411,
16,
1389... |
You may override this method in order to use Message parsing on tagged data in RFC822-like formats that support embedded comments or free-text data. | You may override this method in order to use Message parsing on tagged data in RFC 2822-like formats that support embedded comments or free-text data. | def iscomment(self, line): """Determine whether a line should be skipped entirely. | b6f6fad5b96d38181611f28a27ba278b112ea9c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b6f6fad5b96d38181611f28a27ba278b112ea9c9/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
3469,
12,
2890,
16,
980,
4672,
3536,
8519,
2856,
279,
980,
1410,
506,
9700,
21658,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
3469,
12,
2890,
16,
980,
4672,
3536,
8519,
2856,
279,
980,
1410,
506,
9700,
21658,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return code | return (code,msg) | def helo(self, name=''): """SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host. """ name=string.strip(name) if len(name)==0: name=socket.gethostbyaddr(socket.gethostname())[0] self.putcmd("helo",name) (code,msg)=self.getreply() self.helo_resp=msg return code | 053a07b597f875016b8bc478c8a905c8baf4efe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/053a07b597f875016b8bc478c8a905c8baf4efe4/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13150,
83,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
55,
14636,
296,
76,
24214,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13150,
83,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
55,
14636,
296,
76,
24214,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
35... |
def _parsebody(self, container, fp): | return firstbodyline def _parsebody(self, container, fp, firstbodyline=None): | def _parseheaders(self, container, fp): # Parse the headers, returning a list of header/value pairs. None as # the header means the Unix-From header. lastheader = '' lastvalue = [] lineno = 0 while True: # Don't strip the line before we test for the end condition, # because whitespace-only header lines are RFC complia... | b5bd43248ca2dd070eb68388c0c7e594cf6a0187 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b5bd43248ca2dd070eb68388c0c7e594cf6a0187/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
2485,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1607,
16,
5785,
279,
666,
434,
1446,
19,
1132,
5574,
18,
225,
599,
487,
468,
326,
1446,
4696,
326,
9480,
17,
1265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
2485,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1607,
16,
5785,
279,
666,
434,
1446,
19,
1132,
5574,
18,
225,
599,
487,
468,
326,
1446,
4696,
326,
9480,
17,
1265,
... |
if p[0] not in binaries[arch][0] or \ skip_archall and binaries[arch][0][p[0]]['architecture'] == 'all': continue r = excuse_unsat_deps(p[0], None, arch, 'testing', None, excluded=broken, conflicts=True) if not r and p[0] not in broken: broken.append(p[0]) | if p not in binaries[arch][0] or \ skip_archall and binaries[arch][0][p]['architecture'] == 'all': continue r = excuse_unsat_deps(p, None, arch, 'testing', None, excluded=broken, conflicts=True) if not r and p not in broken: broken.append(p) | def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst() | f99591531307e117e7d3c77bbf14fdac98e05933 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/f99591531307e117e7d3c77bbf14fdac98e05933/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
876,
4672,
2870,
273,
5378,
290,
318,
8591,
67,
2919,
273,
365,
18,
588,
67,
82,
318,
8591,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
876,
4672,
2870,
273,
5378,
290,
318,
8591,
67,
2919,
273,
365,
18,
588,
67,
82,
318,
8591,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
s = w[0] + '\n...\n' + w[-1] | for k in range(len(w)): if TRACEBACK in w[k]: break s = '\n'.join(w[:k]) + '\nTraceback (click to the left for traceback)' + '\n...\n' + w[-1] | def format_exception(s0, ncols): s = s0.lstrip() if s[:len(TRACEBACK)] != TRACEBACK: return s0 if ncols > 0: s = s.strip() s = s.replace('Traceback (most recent call last)','Exception (click to the left for traceback)') w = s.splitlines() s = w[0] + '\n...\n' + w[-1] else: s = s.replace("exec compile(ur'","") s = s.rep... | 128868a3d34bc01b98dbcf346bb794e53d9e41a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/128868a3d34bc01b98dbcf346bb794e53d9e41a8/cell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
12,
87,
20,
16,
21330,
4672,
272,
273,
272,
20,
18,
80,
6406,
1435,
309,
272,
10531,
1897,
12,
23827,
8720,
25887,
480,
12734,
8720,
30,
327,
272,
20,
309,
21330,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
12,
87,
20,
16,
21330,
4672,
272,
273,
272,
20,
18,
80,
6406,
1435,
309,
272,
10531,
1897,
12,
23827,
8720,
25887,
480,
12734,
8720,
30,
327,
272,
20,
309,
21330,
405,
... |
reactor.callFromThread(self._get_runner().run_once) | self._with_runner(lambda r: r.run_once()) | def run_once(self): """Request to run the task once, immediately""" reactor.callFromThread(self._get_runner().run_once) | 30c8796a5fa0556a59b303f64ef4f90b8848baa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/30c8796a5fa0556a59b303f64ef4f90b8848baa6/startup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
8243,
12,
2890,
4672,
3536,
691,
358,
1086,
326,
1562,
3647,
16,
7636,
8395,
19178,
18,
1991,
1265,
3830,
12,
2890,
6315,
588,
67,
18156,
7675,
2681,
67,
8243,
13,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
8243,
12,
2890,
4672,
3536,
691,
358,
1086,
326,
1562,
3647,
16,
7636,
8395,
19178,
18,
1991,
1265,
3830,
12,
2890,
6315,
588,
67,
18156,
7675,
2681,
67,
8243,
13,
2,
-100,
-... |
raise TypeError("Non-string name detected: %s" %name.__class__.__name__) | raise TypeError("Non-string name detected: %s" %n.__class__.__name__) | def enumvals(names, incfunc): #{{{ inc = incfunc() nfunc, cfunc = inc.next, inc.send for n in names: #{{{ if isinstance(n, tuple): name, val = n if not isinstance(name, basestring): raise TypeError("Non-string name detected: %s" %name.__class__.__name__) elif not isinstance(val, int) and not isinstance(val, long): rais... | 287b17f21e53e427aed1a76e056bbdcc08f08bab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2635/287b17f21e53e427aed1a76e056bbdcc08f08bab/enum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
4524,
12,
1973,
16,
7290,
644,
4672,
3735,
12187,
7290,
273,
7290,
644,
1435,
290,
644,
16,
276,
644,
273,
7290,
18,
4285,
16,
7290,
18,
4661,
364,
290,
316,
1257,
30,
3735,
1218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
4524,
12,
1973,
16,
7290,
644,
4672,
3735,
12187,
7290,
273,
7290,
644,
1435,
290,
644,
16,
276,
644,
273,
7290,
18,
4285,
16,
7290,
18,
4661,
364,
290,
316,
1257,
30,
3735,
1218... |
TER %s""" % siguij_2_line) | %sTER """ % siguij_2_line) | def exercise_chain(): c = pdb.hierarchy.chain() assert c.id == "" c = pdb.hierarchy.chain(id="a") assert c.id == "a" c.id = "x" assert c.id == "x" # m1 = pdb.hierarchy.model(id="1") m2 = pdb.hierarchy.model(id="2") assert m1.memory_id() != m2.memory_id() c = pdb.hierarchy.chain() assert c.parent() is None c = pdb.hiera... | 391d1576bc7bef17c805b9cf7169b501ecd7fac4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/391d1576bc7bef17c805b9cf7169b501ecd7fac4/tst_hierarchy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
5639,
13332,
276,
273,
10892,
18,
17937,
18,
5639,
1435,
1815,
276,
18,
350,
422,
1408,
276,
273,
10892,
18,
17937,
18,
5639,
12,
350,
1546,
69,
7923,
1815,
276,
18,
350,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
5639,
13332,
276,
273,
10892,
18,
17937,
18,
5639,
1435,
1815,
276,
18,
350,
422,
1408,
276,
273,
10892,
18,
17937,
18,
5639,
12,
350,
1546,
69,
7923,
1815,
276,
18,
350,
42... |
print 'testing' | def wikiwrap(self): print 'testing' for subentry in self.subentries: print 'testing' entry='test' | 3857c33ffc3beac922d870b30b2d14cc5143c3c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3857c33ffc3beac922d870b30b2d14cc5143c3c3/wiktionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
4113,
12,
2890,
4672,
364,
720,
4099,
316,
365,
18,
1717,
8219,
30,
1241,
2218,
3813,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
9050,
4113,
12,
2890,
4672,
364,
720,
4099,
316,
365,
18,
1717,
8219,
30,
1241,
2218,
3813,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
albums.append(ngettext("%d song with no album" | albums.append(ngettext("%d song with no album", | def format((date, song, album)): if date: return "%s (%s)" % (album, date[:4]) else: return album | f6f89890df2ad3b1e0ea589c1ba73864cd9b379d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/f6f89890df2ad3b1e0ea589c1ba73864cd9b379d/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12443,
712,
16,
17180,
16,
14844,
3719,
30,
309,
1509,
30,
327,
2213,
87,
6142,
87,
2225,
738,
261,
25090,
16,
1509,
10531,
24,
5717,
469,
30,
327,
14844,
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,
740,
12443,
712,
16,
17180,
16,
14844,
3719,
30,
309,
1509,
30,
327,
2213,
87,
6142,
87,
2225,
738,
261,
25090,
16,
1509,
10531,
24,
5717,
469,
30,
327,
14844,
2,
-100,
-100,
-100,
-10... |
ci.append(-2.5, 2.7, 1.25) ci.append(-1.5, 2.7, 0.1) ci.append(1.5, 2.7, -0.6) ci.append(2.5, 2.7, 0.2) | ci.append((-2.5, 2.7, 1.25)) ci.append((-1.5, 2.7, 0.1)) ci.append((1.5, 2.7, -0.6)) ci.append((2.5, 2.7, 0.2)) | def make_ctlpoints(): c = [] # ci = [] ci.append(-2.5, -3.7, 1.0) ci.append(-1.5, -3.7, 3.0) ci.append(1.5, -3.7, -2.5) ci.append(2.5, -3.7, -0.75) c.append(ci) # ci = [] ci.append(-2.5, -2.0, 3.0) ci.append(-1.5, -2.0, 4.0) ci.append(1.5, -2.0, -3.0) ci.append(2.5, -2.0, 0.0) c.append(ci) # ci = [] ci.a... | 062c870df054eb11558984a420ed98a4052153ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/062c870df054eb11558984a420ed98a4052153ff/nurbs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
12930,
4139,
13332,
276,
273,
5378,
468,
9039,
273,
5378,
9039,
18,
6923,
19236,
22,
18,
25,
16,
225,
300,
23,
18,
27,
16,
225,
404,
18,
20,
13,
9039,
18,
6923,
19236,
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,
1221,
67,
12930,
4139,
13332,
276,
273,
5378,
468,
9039,
273,
5378,
9039,
18,
6923,
19236,
22,
18,
25,
16,
225,
300,
23,
18,
27,
16,
225,
404,
18,
20,
13,
9039,
18,
6923,
19236,
21,
... |
upper bound may be obtained using the function rank_bound(). | upper bound may be obtained using the function :meth:`rank_bound()`. | def rank(self): """ Returns the rank of this curve, computed using 2-descent. | 1cc4edc9aafb88d044d853b60331d1432546cf60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1cc4edc9aafb88d044d853b60331d1432546cf60/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
4672,
3536,
2860,
326,
6171,
434,
333,
8882,
16,
8470,
1450,
576,
17,
5569,
319,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
12,
2890,
4672,
3536,
2860,
326,
6171,
434,
333,
8882,
16,
8470,
1450,
576,
17,
5569,
319,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
action = self.args[1] | action = self._args[1] | def _dispatch(self): self.args = sys.argv actions = self._getActions() try: action = self.args[1] except IndexError: action = None if action and action in actions: fl_args = [self.args[0]] + ['--url=%s' % self.url] + self.args[2:] sys.argv = fl_args action = getattr(self,action) action() else: self._usage() | 72bc74904fc331408c9d1b07e324a4834c15af66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9007/72bc74904fc331408c9d1b07e324a4834c15af66/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
4672,
365,
18,
1968,
273,
2589,
18,
19485,
4209,
273,
365,
6315,
588,
6100,
1435,
775,
30,
1301,
273,
365,
6315,
1968,
63,
21,
65,
1335,
10195,
30,
1301,
273,
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,
389,
10739,
12,
2890,
4672,
365,
18,
1968,
273,
2589,
18,
19485,
4209,
273,
365,
6315,
588,
6100,
1435,
775,
30,
1301,
273,
365,
6315,
1968,
63,
21,
65,
1335,
10195,
30,
1301,
273,
599... |
if hasattr(self.script, "line_offset"): return int(self.script.line_offset().value()) else: return -1; | return self.script.lineOffset() @property def lineCount(self): return self.script.lineCount() | def lineOffset(self): if hasattr(self.script, "line_offset"): return int(self.script.line_offset().value()) else: return -1; | e97e2da011ba59cc383c483b663ec0b903d229a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5451/e97e2da011ba59cc383c483b663ec0b903d229a2/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
2335,
12,
2890,
4672,
327,
365,
18,
4263,
18,
1369,
2335,
1435,
225,
632,
4468,
1652,
980,
1380,
12,
2890,
4672,
327,
365,
18,
4263,
18,
1369,
1380,
1435,
225,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
2335,
12,
2890,
4672,
327,
365,
18,
4263,
18,
1369,
2335,
1435,
225,
632,
4468,
1652,
980,
1380,
12,
2890,
4672,
327,
365,
18,
4263,
18,
1369,
1380,
1435,
225,
2,
-100,
-100,
-100... |
_, ratio1 = globdistance(nameversion, "%s-%s" % (myname, self.version), cutoff, ic) | _, ratio1 = globdistance(nameversion, "%s-%s@%s" % (myname, myversion, myarch), cutoff, ic) | def search(self, searcher, _epochre=re.compile("[0-9]+:")): myname = self.name myversion, myarch = splitarch(self.version) myversion = _epochre.sub("", myversion) ratio = 0 ic = searcher.ignorecase for nameversion, cutoff in searcher.nameversion: nameversion = _epochre.sub("", nameversion) if '@' in nameversion: _, rat... | acbf0bb3ca886e576dab84a19b72d7e5749ebe7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/acbf0bb3ca886e576dab84a19b72d7e5749ebe7d/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
27349,
16,
389,
12015,
266,
33,
266,
18,
11100,
2932,
63,
20,
17,
29,
3737,
2773,
3719,
30,
3399,
529,
273,
365,
18,
529,
3399,
1589,
16,
3399,
991,
273,
1416,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
27349,
16,
389,
12015,
266,
33,
266,
18,
11100,
2932,
63,
20,
17,
29,
3737,
2773,
3719,
30,
3399,
529,
273,
365,
18,
529,
3399,
1589,
16,
3399,
991,
273,
1416,
99... |
c_voidp(addressof(mem)), | c_voidp(addressof(mem)), | def available_memory(): libc = cdll.LoadLibrary(ctypes.util.find_library("libc")) mem = c_uint64(0) size = c_size_t(sizeof(mem)) libc.sysctlbyname.argtypes = [ c_char_p, c_void_p, c_void_p, c_void_p, c_ulong ] libc.sysctlbyname( "hw.memsize", c_voidp(addressof(mem)), c_voidp(addressof(size)), None, 0 ) return int(mem.v... | 283e9de4aa1192aeae4d6915b657c7e80d9d8658 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/283e9de4aa1192aeae4d6915b657c7e80d9d8658/sysutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2319,
67,
7858,
13332,
2561,
71,
273,
7976,
2906,
18,
2563,
9313,
12,
299,
989,
18,
1367,
18,
4720,
67,
12083,
2932,
2941,
71,
6,
3719,
1663,
273,
276,
67,
11890,
1105,
12,
20,
13,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2319,
67,
7858,
13332,
2561,
71,
273,
7976,
2906,
18,
2563,
9313,
12,
299,
989,
18,
1367,
18,
4720,
67,
12083,
2932,
2941,
71,
6,
3719,
1663,
273,
276,
67,
11890,
1105,
12,
20,
13,
9... |
print "pref key =", env.prefs[ dynamicToolTipAtomDistancePrecision_prefs_key ] print "self.dynamicToolTipAtomDistancePrecision_spinbox.value() = ", self.dynamicToolTipAtomDistancePrecision_spinbox.value() | self.dynamicToolTipAtomDistancePrecision_spinbox.setValue(env.prefs[ dynamicToolTipAtomDistancePrecision_prefs_key ] ) self.dynamicToolTipBendAnglePrecision_spinbox.setValue(env.prefs[ dynamicToolTipBendAnglePrecision_prefs_key ] ) | def _setup_tooltips_page(self): #Ninad 060830 ''' Setup widgets to initialize (default or defined) values on the tooltips page.''' #Atom related Dynamic tooltip preferences connect_checkbox_with_boolean_pref(self.dynamicToolTipAtomChunkInfo_checkbox, dynamicToolTipAtomChunkInfo_prefs_key) connect_checkbox_with_boolean_... | ab159a3df66a8d5a4b0d19802a0b60615aae913c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/ab159a3df66a8d5a4b0d19802a0b60615aae913c/UserPrefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
869,
4397,
7146,
67,
2433,
12,
2890,
4672,
468,
50,
267,
361,
374,
4848,
28,
5082,
9163,
10939,
10965,
358,
4046,
261,
1886,
578,
2553,
13,
924,
603,
326,
358,
4397,
714... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
869,
4397,
7146,
67,
2433,
12,
2890,
4672,
468,
50,
267,
361,
374,
4848,
28,
5082,
9163,
10939,
10965,
358,
4046,
261,
1886,
578,
2553,
13,
924,
603,
326,
358,
4397,
714... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.