rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
def process_line(self, line): words = string.split (line) action = words[0] if action in ('include','exclude', 'global-include','global-exclude'): if len (words) < 2: | def process_line (self, line): words = string.split (line) action = words[0] if action in ('include','exclude', 'global-include','global-exclude'): if len (words) < 2: self.warn \ ("invalid template line: " + "'%s' expects <pattern1> <pattern2> ..." % action) return pattern_list = map(convert_path, words[1:]) eli... | def process_line(self, line): | 6f685e79bdc3cafbf68f4c6cacd15e5017fdda81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6f685e79bdc3cafbf68f4c6cacd15e5017fdda81/filelist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1369,
12,
2890,
16,
980,
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,
1207,
67,
1369,
12,
2890,
16,
980,
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,
... |
@unittest.skipUnless(has_sound("SystemAsterisk"), "No default SystemAsterisk") | def test_errors(self): self.assertRaises(TypeError, winsound.PlaySound) self.assertRaises(TypeError, winsound.PlaySound, "bad", "bad") self.assertRaises( RuntimeError, winsound.PlaySound, "none", winsound.SND_ASYNC | winsound.SND_MEMORY ) | 7d942023ad5c84c53e908a9d3920ef814c4ac766 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/7d942023ad5c84c53e908a9d3920ef814c4ac766/test_winsound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4324,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
31307,
772,
18,
11765,
24331,
13,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
31307,
772,
18,
11765,
24331,
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,
1842,
67,
4324,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
31307,
772,
18,
11765,
24331,
13,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
31307,
772,
18,
11765,
24331,
16... | |
pkg_arg = pkg.get('name') + '-' if inst.get('epoch', False): pkg_arg = pkg_arg + inst.get('epoch') + ':' pkg_arg = pkg_arg + inst.get('version') + '-' + inst.get('release') if inst.get('arch', False): pkg_arg = pkg_arg + '.' + inst.get('arch') erase_args.append(pkg_arg) | self.yb.remove(**nevra) self.modified.append(pkg) | def RemovePackages(self, packages): """ Remove specified entries. | 806c613f255b54d2c580b303361a7934d0324f08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/806c613f255b54d2c580b303361a7934d0324f08/YUMng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3581,
11425,
12,
2890,
16,
5907,
4672,
3536,
3581,
1269,
3222,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3581,
11425,
12,
2890,
16,
5907,
4672,
3536,
3581,
1269,
3222,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
("type", "__new__"): "(cls, what, bases=None, dict=None)", | ("type", "__init__"): "(cls, what, bases=None, dict=None)", | def outDocAttr(self, p_object, indent, p_class=None): the_doc = p_object.__doc__ if the_doc: if p_class and the_doc == object.__init__.__doc__ and p_object is not object.__init__ and p_class.__doc__: the_doc = str(p_class.__doc__) # replace stock init's doc with class's; make it a certain string. the_doc += "\n# (copie... | b42e324bb6f9b75c149270f5c09a0e0ad4ce1cf1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12157/b42e324bb6f9b75c149270f5c09a0e0ad4ce1cf1/generator3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
596,
1759,
3843,
12,
2890,
16,
293,
67,
1612,
16,
3504,
16,
293,
67,
1106,
33,
7036,
4672,
326,
67,
2434,
273,
293,
67,
1612,
16186,
2434,
972,
309,
326,
67,
2434,
30,
309,
293,
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,
596,
1759,
3843,
12,
2890,
16,
293,
67,
1612,
16,
3504,
16,
293,
67,
1106,
33,
7036,
4672,
326,
67,
2434,
273,
293,
67,
1612,
16186,
2434,
972,
309,
326,
67,
2434,
30,
309,
293,
67,
... |
is just the diagonal matrix with diagonal entries 1, a, b, a*b. | is just the diagonal matrix with diagonal entries 2, 2*a, 2*b, 2*a*b. | def inner_product_matrix(self): """ Return the inner product matrix associated to self, i.e. the Gram matrix of the reduced norm as a quadratic form on self. The standard basis 1, i, j, k is orthogonal, so this matrix is just the diagonal matrix with diagonal entries 1, a, b, a*b. | c054dae383a61f81a84e0a8e99c4dcec64cdfc97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c054dae383a61f81a84e0a8e99c4dcec64cdfc97/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3443,
67,
5896,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
3443,
3017,
3148,
3627,
358,
365,
16,
277,
18,
73,
18,
326,
611,
1940,
3148,
434,
326,
13162,
4651,
487,
279,
26146,
646,
603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3443,
67,
5896,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
3443,
3017,
3148,
3627,
358,
365,
16,
277,
18,
73,
18,
326,
611,
1940,
3148,
434,
326,
13162,
4651,
487,
279,
26146,
646,
603... |
out.write("\n out.write(extra_nagios_conf) | outfile.write("\n outfile.write(extra_nagios_conf) | def create_nagios_config(outfile = sys.stdout, hostnames = None): global hostgroups_to_define hostgroups_to_define = set([]) global servicegroups_to_define servicegroups_to_define = set([]) global contactgroups_to_define contactgroups_to_define = set([]) global checknames_to_define checknames_to_define = set([]) if ho... | 6bff0adac59d7fcf020731e0b64751aa0d01eb3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/6bff0adac59d7fcf020731e0b64751aa0d01eb3c/check_mk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
27132,
7441,
67,
1425,
12,
26050,
273,
2589,
18,
10283,
16,
1479,
1973,
273,
599,
4672,
2552,
1479,
4650,
67,
869,
67,
11255,
1479,
4650,
67,
869,
67,
11255,
273,
444,
3816,
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,
752,
67,
27132,
7441,
67,
1425,
12,
26050,
273,
2589,
18,
10283,
16,
1479,
1973,
273,
599,
4672,
2552,
1479,
4650,
67,
869,
67,
11255,
1479,
4650,
67,
869,
67,
11255,
273,
444,
3816,
5... |
contours=[0], cmap=[bordercol], fill=False))) | linestyles=linestyles, linewidths=linewidths, contours=[0], cmap=[bordercol], fill=False, **opt))) | def region_plot(f, xrange, yrange, plot_points, incol, outcol, bordercol): r""" ``region_plot`` takes a boolean function of two variables, `f(x,y)` and plots the region where f is True over the specified ``xrange`` and ``yrange`` as demonstrated below. ``region_plot(f, (xmin, xmax), (ymin, ymax), ...)`` INPUT: - ``f... | 2c01481088d2b11fba95c270b8b2788c5a5c5aae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2c01481088d2b11fba95c270b8b2788c5a5c5aae/contour_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3020,
67,
4032,
12,
74,
16,
12314,
16,
677,
3676,
16,
3207,
67,
4139,
16,
316,
1293,
16,
596,
1293,
16,
5795,
1293,
4672,
436,
8395,
12176,
6858,
67,
4032,
10335,
5530,
279,
1250,
445,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3020,
67,
4032,
12,
74,
16,
12314,
16,
677,
3676,
16,
3207,
67,
4139,
16,
316,
1293,
16,
596,
1293,
16,
5795,
1293,
4672,
436,
8395,
12176,
6858,
67,
4032,
10335,
5530,
279,
1250,
445,... |
if type(cnf) == StringType: x = self.tk.split(self.tk.call( self._w, 'window', 'configure', index, '-'+cnf)) return (x[0][1:],) + x[1:] self.tk.call( (self._w, 'window', 'configure', index) + self._options(cnf, kw)) | return self._configure(('window', 'configure', index), cnf, kw) | def window_configure(self, index, cnf={}, **kw): """Configure an embedded window at INDEX.""" if type(cnf) == StringType: x = self.tk.split(self.tk.call( self._w, 'window', 'configure', index, '-'+cnf)) return (x[0][1:],) + x[1:] self.tk.call( (self._w, 'window', 'configure', index) + self._options(cnf, kw)) | c99d182390dc4cd5e3c30aec2f12a94d397d6ea3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c99d182390dc4cd5e3c30aec2f12a94d397d6ea3/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
14895,
12,
2890,
16,
770,
16,
23118,
28793,
2826,
9987,
4672,
3536,
11207,
392,
7488,
2742,
622,
12425,
12123,
309,
618,
12,
10305,
74,
13,
422,
31570,
30,
619,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2742,
67,
14895,
12,
2890,
16,
770,
16,
23118,
28793,
2826,
9987,
4672,
3536,
11207,
392,
7488,
2742,
622,
12425,
12123,
309,
618,
12,
10305,
74,
13,
422,
31570,
30,
619,
273,
365,
18,
... |
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/") | u = _urlopen_with_retry(self.FTP_HOST) | def test_ftp_basic(self): u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/") self.assertTrue(u.fp.fp._sock.gettimeout() is None) | 769d0eefd75e5d921806caf75450c7c3a706bd1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/769d0eefd75e5d921806caf75450c7c3a706bd1c/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
13240,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
12,
2890,
18,
17104,
67,
8908,
13,
365,
18,
11231,
5510,
12,
89,
18,
7944,
18,
7944,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
13240,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
12,
2890,
18,
17104,
67,
8908,
13,
365,
18,
11231,
5510,
12,
89,
18,
7944,
18,
7944,
6315,
... |
return "".join(result) | return " ".join(result).strip() | def _row_style(self, node): result = [] if node.hasAttribute("bgcolor"): value = node.getAttribute("bgcolor") match = re.match(r"rgb\((\d+),\s*(\d+),\s*(\d+)\)", value) if match: result.append('rowbgcolor="#%X%X%X"' % (int(match.group(1)), int(match.group(2)), int(match.group(3)))) else: result.append('rowbgcolor="%s"'... | c4b1265df3f26258f9ae9a78987841113f01eae2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/c4b1265df3f26258f9ae9a78987841113f01eae2/text_html_text_x_moin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
492,
67,
4060,
12,
2890,
16,
756,
4672,
563,
273,
5378,
309,
756,
18,
5332,
1499,
2932,
12370,
3266,
6,
4672,
460,
273,
756,
18,
588,
1499,
2932,
12370,
3266,
7923,
845,
273,
283,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
492,
67,
4060,
12,
2890,
16,
756,
4672,
563,
273,
5378,
309,
756,
18,
5332,
1499,
2932,
12370,
3266,
6,
4672,
460,
273,
756,
18,
588,
1499,
2932,
12370,
3266,
7923,
845,
273,
283,... |
sage: w.suffix_trie() | sage: w.suffix_trie() | def suffix_trie(self): r""" Returns the suffix trie of self. The *suffix trie* of a finite word `w` is a data structure representing the factors of `w`. It is a tree whose edges are labelled with letters of `w`, and whose leafs correspond to suffixes of `w`. See sage.combinat.words.suffix_trees.SuffixTrie? for more i... | f0f8fa71b4bca942b7c4ac98178e7004e50418e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f0f8fa71b4bca942b7c4ac98178e7004e50418e3/word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3758,
67,
3051,
12,
2890,
4672,
436,
8395,
2860,
326,
3758,
19080,
434,
365,
18,
225,
1021,
380,
8477,
19080,
14,
434,
279,
25922,
2076,
1375,
91,
68,
353,
279,
501,
3695,
5123,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3758,
67,
3051,
12,
2890,
4672,
436,
8395,
2860,
326,
3758,
19080,
434,
365,
18,
225,
1021,
380,
8477,
19080,
14,
434,
279,
25922,
2076,
1375,
91,
68,
353,
279,
501,
3695,
5123,
326,
1... |
for packageId in revertedPackages: | for packageId in packageIds: | def processViews(viewDefs, loadDeps, runDeps, collapseViews, outputFile): global classes # Build bitmask ids for views viewBits = {} viewPos = 0 for viewId in viewDefs: viewBits[viewId] = 1<<viewPos viewPos += 1 # Find all used classes # Used to reduce loop size for further iterations (not using huge 'classes') pri... | 978820638d4273f641ce423ff1160600bf29af2f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/978820638d4273f641ce423ff1160600bf29af2f/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
9959,
12,
1945,
14554,
16,
1262,
14430,
16,
1086,
14430,
16,
13627,
9959,
16,
15047,
4672,
2552,
3318,
282,
468,
3998,
24941,
3258,
364,
7361,
1476,
6495,
273,
2618,
1476,
1616,
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,
1207,
9959,
12,
1945,
14554,
16,
1262,
14430,
16,
1086,
14430,
16,
13627,
9959,
16,
15047,
4672,
2552,
3318,
282,
468,
3998,
24941,
3258,
364,
7361,
1476,
6495,
273,
2618,
1476,
1616,
273,... |
n = scripting.mainWindow.currentTaskWindowName method="scripting.mainWindow.tasks['%s'].%s"%(n,func) self.recordParameterChange(parameter, value, method) | n = scripting.mainWindow.currentTaskWindowName method="scripting.mainWindow.tasks['%s'].%s"%(n,func) self.recordParameterChange(parameter, value, method) | def setParameter(self, parameter, value): """ Created: 13.04.2006, KP Description: Set a value for the parameter """ if self.taskPanel: listOfFilters = self.taskPanel.getFilters(self.name) filterIndex = listOfFilters.index(self) if len(listOfFilters) == 1: func = "getFilter('%s')" % self.name else: func = "getFilter('%... | 06b4903020cfadacedfda32c2e5b0f342d18c541 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/06b4903020cfadacedfda32c2e5b0f342d18c541/ProcessingFilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6690,
12,
2890,
16,
1569,
16,
460,
4672,
3536,
12953,
30,
5958,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
1000,
279,
460,
364,
326,
1569,
3536,
309,
365,
18,
4146,
5537,
30,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6690,
12,
2890,
16,
1569,
16,
460,
4672,
3536,
12953,
30,
5958,
18,
3028,
18,
6976,
26,
16,
1475,
52,
6507,
30,
1000,
279,
460,
364,
326,
1569,
3536,
309,
365,
18,
4146,
5537,
30,
24... |
'RUNNER': ('python' in os.path.basename(interpreter) and 'pybot' | 'RUNNER': ('python' in os.path.basename(interpreter) and 'pybot' | def atests(interpreter, *params): if os.path.isdir(RESULTDIR): shutil.rmtree(RESULTDIR) args = ARGUMENTS % { 'PYTHONPATH' : os.path.join(CURDIR, 'resources'), 'OUTPUTDIR' : RESULTDIR, 'INTERPRETER': interpreter, 'PLATFORM': sys.platform, 'RUNNER': ('python' in os.path.basename(interpreter) and 'pybot' or 'jybot') } run... | b67134e1101e9c40bed05033baa2c9899671f186 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/b67134e1101e9c40bed05033baa2c9899671f186/run_atests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
25563,
12,
2761,
11599,
16,
380,
2010,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
12289,
4537,
4672,
11060,
18,
86,
17371,
12,
12289,
4537,
13,
833,
273,
23654,
55,
738,
288,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
622,
25563,
12,
2761,
11599,
16,
380,
2010,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
12289,
4537,
4672,
11060,
18,
86,
17371,
12,
12289,
4537,
13,
833,
273,
23654,
55,
738,
288,
29... |
resolution + 'x32', '') | resolution + 'x32', '') | def set_resolution(self, resolution, save = False): self.machine.setGuestProperty('/VirtualBox/GuestAdd/Vbgl/Video/SavedMode', resolution + 'x32', '') if save: self.machine.saveSettings() return 0 | e42d5e4d966b5745bd27753a10b57eeeb93ee098 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/e42d5e4d966b5745bd27753a10b57eeeb93ee098/ufovboxapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
19182,
12,
2890,
16,
7861,
16,
1923,
273,
1083,
4672,
365,
18,
9149,
18,
542,
12978,
1396,
2668,
19,
6466,
3514,
19,
12978,
986,
19,
58,
70,
7043,
19,
10083,
19,
16776,
2309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
19182,
12,
2890,
16,
7861,
16,
1923,
273,
1083,
4672,
365,
18,
9149,
18,
542,
12978,
1396,
2668,
19,
6466,
3514,
19,
12978,
986,
19,
58,
70,
7043,
19,
10083,
19,
16776,
2309,
... |
self.disabled = True self.AddFailure('Could not recursively query: %s' % ', '.join(attempted)) | self.disabled = 'Unable to get uncached results for: %s' % ', '.join(attempted) | def StoreWildcardCache(self): """Store a set of wildcard records.""" timeout = self.health_timeout * SHARED_CACHE_TIMEOUT_MULTIPLIER attempted = [] | 6068eba068d0877de2c797b563c883674a71a768 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/6068eba068d0877de2c797b563c883674a71a768/health_checks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4994,
12121,
1649,
12,
2890,
4672,
3536,
2257,
279,
444,
434,
8531,
3853,
12123,
2021,
273,
365,
18,
13267,
67,
4538,
380,
9777,
5879,
67,
8495,
67,
9503,
67,
24683,
2053,
654,
18121,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4994,
12121,
1649,
12,
2890,
4672,
3536,
2257,
279,
444,
434,
8531,
3853,
12123,
2021,
273,
365,
18,
13267,
67,
4538,
380,
9777,
5879,
67,
8495,
67,
9503,
67,
24683,
2053,
654,
18121,
27... |
taskDict = result['Value'] | taskDict = res['Value'] | def export_getTransformationSummaryWeb(self, selectDict, sortList, startItem, maxItems): """ Get the summary of the transformation information for a given page in the generic format """ | 50b688147328b429161ee21336f17ae4ab455630 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b688147328b429161ee21336f17ae4ab455630/TransformationHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
15292,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
326,
8620,
1779,
364,
279,
864,
1363,
316,
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,
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,
3359,
67,
588,
15292,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
326,
8620,
1779,
364,
279,
864,
1363,
316,
326... |
where `F = Z` if `p=0` and `F = Z/pZ` if `p >0` is a prime. Wraps HAP's Homology function, written | where `F = \mathbb{Z}` if `p=0` and `F = \mathbb{Z} / p \mathbb{Z}` if `p > 0` is a prime. Wraps HAP's Homology function, written | def cohomology_part(self, n, p = 0): """ Computes the p-part of the group cohomology `H^n(G, F)`, where `F = Z` if `p=0` and `F = Z/pZ` if `p >0` is a prime. Wraps HAP's Homology function, written by Graham Ellis, applied to the `p`-Sylow subgroup of `G`. | 2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1825,
17125,
4676,
67,
2680,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
3536,
14169,
281,
326,
293,
17,
2680,
434,
326,
1041,
1825,
17125,
4676,
1375,
44,
66,
82,
12,
43,
16,
478,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1825,
17125,
4676,
67,
2680,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
3536,
14169,
281,
326,
293,
17,
2680,
434,
326,
1041,
1825,
17125,
4676,
1375,
44,
66,
82,
12,
43,
16,
478,
1... |
text = text.replace("\n","\r\n") | p = Page(request, pagename) text = p.get_raw_body().replace("\n","\r\n") | def makepage(rootdir, pagename, text): """quick and dirty!""" pagedir = os.path.join(rootdir, 'pages', wikiutil.quoteWikinameFS(pagename)) os.makedirs(pagedir) revstr = '%08d' % 1 cf = os.path.join(pagedir, 'current') open(cf, 'w').write(revstr+'\n') revdir = os.path.join(pagedir, 'revisions') os.makedirs(revdir) tf ... | 31468f6f1f5eccbf821d329c8104c9c6932eb522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/31468f6f1f5eccbf821d329c8104c9c6932eb522/reducewiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
17600,
12,
3085,
1214,
16,
4262,
1069,
16,
977,
4672,
3536,
19525,
471,
9603,
5,
8395,
4262,
23210,
273,
1140,
18,
803,
18,
5701,
12,
3085,
1214,
16,
296,
7267,
2187,
9050,
1367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
17600,
12,
3085,
1214,
16,
4262,
1069,
16,
977,
4672,
3536,
19525,
471,
9603,
5,
8395,
4262,
23210,
273,
1140,
18,
803,
18,
5701,
12,
3085,
1214,
16,
296,
7267,
2187,
9050,
1367,
... |
mod = imp.new_module(fullname) sys.modules[fullname] = mod | mod = sys.modules.setdefault(fullname,imp.new_module(fullname)) | def load_module(self, fullname): ispkg, code = self.modules[fullname] mod = imp.new_module(fullname) sys.modules[fullname] = mod mod.__file__ = "<%s>" % self.__class__.__name__ mod.__loader__ = self if ispkg: mod.__path__ = self._get__path__() exec code in mod.__dict__ return mod | 080f60c4b086ffa6826afaabfc730dab04834791 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/080f60c4b086ffa6826afaabfc730dab04834791/test_importhooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
13321,
4672,
353,
10657,
16,
981,
273,
365,
18,
6400,
63,
21885,
65,
681,
273,
2589,
18,
6400,
18,
542,
1886,
12,
21885,
16,
14532,
18,
2704,
67,
2978,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
2978,
12,
2890,
16,
13321,
4672,
353,
10657,
16,
981,
273,
365,
18,
6400,
63,
21885,
65,
681,
273,
2589,
18,
6400,
18,
542,
1886,
12,
21885,
16,
14532,
18,
2704,
67,
2978,
... |
data = cPickle.dumps(value, self.binary) | data = _dumps(value, self.protocol) | def __setitem__(self, key, value): data = cPickle.dumps(value, self.binary) self.db[key] = data | 8e4d05ecedcfaf8dd3a4aa3df31cc807547cf74b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/8e4d05ecedcfaf8dd3a4aa3df31cc807547cf74b/dbshelve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
501,
273,
389,
13302,
1121,
12,
1132,
16,
365,
18,
8373,
13,
365,
18,
1966,
63,
856,
65,
273,
501,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
501,
273,
389,
13302,
1121,
12,
1132,
16,
365,
18,
8373,
13,
365,
18,
1966,
63,
856,
65,
273,
501,
2,
-100,
-100,
-100,
-100,
... |
i2 = i1 + (ctypes.sizeof(ctype) + 7) & ~7 | i2 = i1 + ((ctypes.sizeof(ctype) or 1) + 7) & ~7 | def allocate_ctypes(ctype): if far_regions: import random pieces = far_regions._ll2ctypes_pieces num = random.randrange(len(pieces)) i1, stop = pieces[num] i2 = i1 + (ctypes.sizeof(ctype) + 7) & ~7 if i2 > stop: raise MemoryError("out of memory in far_regions") pieces[num] = i2, stop p = lltype2ctypes(far_regions.getpt... | 431c4413e554ff2536fbd6dfebb5dbd86930b621 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/431c4413e554ff2536fbd6dfebb5dbd86930b621/ll2ctypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10101,
67,
299,
989,
12,
12387,
4672,
309,
10247,
67,
15923,
30,
1930,
2744,
10167,
273,
10247,
67,
15923,
6315,
2906,
22,
299,
989,
67,
31016,
818,
273,
2744,
18,
7884,
3676,
12,
1897,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10101,
67,
299,
989,
12,
12387,
4672,
309,
10247,
67,
15923,
30,
1930,
2744,
10167,
273,
10247,
67,
15923,
6315,
2906,
22,
299,
989,
67,
31016,
818,
273,
2744,
18,
7884,
3676,
12,
1897,
... |
v = B.solve_right(-c, check_rank=False) | v = B.solve_right(-c, check_rank=True) | def doubleDet (A, b, c): """ Compute the determinants of the stacked matrices A.stack(b) and A.stack(c). INPUT: A -- an (n-1) x n matrix b -- an 1 x n matrix c -- an 1 x n matrix OUTPUT: a pair of two integers. """ # We use the "two for the price of one" algorithm. # This is a clever trick! First we transpose every... | 71532771ada7dcf97b478ef425845539287ba9e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/71532771ada7dcf97b478ef425845539287ba9e0/matrix_integer_dense_hnf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1645,
4986,
261,
37,
16,
324,
16,
276,
4672,
3536,
8155,
326,
6328,
4388,
434,
326,
25776,
16415,
432,
18,
3772,
12,
70,
13,
471,
432,
18,
3772,
12,
71,
2934,
225,
12943,
30,
432,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1645,
4986,
261,
37,
16,
324,
16,
276,
4672,
3536,
8155,
326,
6328,
4388,
434,
326,
25776,
16415,
432,
18,
3772,
12,
70,
13,
471,
432,
18,
3772,
12,
71,
2934,
225,
12943,
30,
432,
14... |
Returns True if the group other is normalized by the self. Wraps GAP's IsNormal function. A group G normalizes a group U if and only if for every | Returns ``True`` if the group ``other`` is normalized by ``self``. Wraps GAP's ``IsNormal`` function. A group `G` normalizes a group `U` if and only if for every | def normalizes(self,other): r""" Returns True if the group other is normalized by the self. Wraps GAP's IsNormal function. A group G normalizes a group U if and only if for every `g \in G` and `u \in U` the element `u^g` is a member of U. Note that U need not be a subgroup of G. EXAMPLES:: sage: G = PermutationGroup... | 6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2212,
3128,
12,
2890,
16,
3011,
4672,
436,
8395,
2860,
12176,
5510,
10335,
309,
326,
1041,
12176,
3011,
10335,
353,
5640,
635,
12176,
2890,
68,
8338,
678,
7506,
611,
2203,
1807,
12176,
252... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2212,
3128,
12,
2890,
16,
3011,
4672,
436,
8395,
2860,
12176,
5510,
10335,
309,
326,
1041,
12176,
3011,
10335,
353,
5640,
635,
12176,
2890,
68,
8338,
678,
7506,
611,
2203,
1807,
12176,
252... |
return self.__axes_range | try: return self.__axes_range except AttributeError: self.__axes_range = {} return self.__axes_range | def get_axes_range(self): """ EXAMPLES: sage: L = line([(1,2), (3,-4), (2, 5), (1,2)]) sage: L.get_axes_range() {} sage: L.axes_range(xmin=-1) sage: L.get_axes_range() {'xmin': -1.0} """ return self.__axes_range | 302200621755552db8fe7d958571908ecdddb8ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/302200621755552db8fe7d958571908ecdddb8ae/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10855,
67,
3676,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
511,
273,
980,
3816,
12,
21,
16,
22,
3631,
261,
23,
16,
17,
24,
3631,
261,
22,
16,
1381,
3631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10855,
67,
3676,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
511,
273,
980,
3816,
12,
21,
16,
22,
3631,
261,
23,
16,
17,
24,
3631,
261,
22,
16,
1381,
3631,
... |
skipping = 0 | skipping = 0 | def show_errors (self): """ Display all errors that occured during compilation. Return 0 if there was no error. """ pos = ["(no file)"] last_file = None showing = 0 # 1 if we are showing an error's text skipping = 0 # 1 if we are skipping text until a new line something = 0 # 1 if some error was displayed for lin... | 2872f453dea409202fb2e3c9bcfed5e753e22dd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/2872f453dea409202fb2e3c9bcfed5e753e22dd2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4324,
261,
2890,
4672,
3536,
9311,
777,
1334,
716,
16206,
4982,
8916,
18,
2000,
374,
309,
1915,
1703,
1158,
555,
18,
3536,
949,
273,
8247,
12,
2135,
585,
2225,
65,
1142,
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,
2405,
67,
4324,
261,
2890,
4672,
3536,
9311,
777,
1334,
716,
16206,
4982,
8916,
18,
2000,
374,
309,
1915,
1703,
1158,
555,
18,
3536,
949,
273,
8247,
12,
2135,
585,
2225,
65,
1142,
67,
... |
return time.strftime("%Y-%m-%dT%H:%M:%S%z", my_time) | if utc: return time.strftime("%Y-%m-%dT%H:%M:%SZ", my_time) else: return time.strftime("%Y-%m-%dT%H:%M:%S%z", my_time) | def isodate(now=int(time.time()), utc=False, short=False): """ This function converts seconds since epoch into ISO timestamp """ if utc: my_time = time.gmtime(now) else: my_time = time.localtime(now) if short: return time.strftime("%Y%m%dT%H%M%S%z", my_time) else: return time.strftime("%Y-%m-%dT%H:%M:%S%z", my_time) | 5e46f6072d8014465352d2cea314899780bc8d2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9868/5e46f6072d8014465352d2cea314899780bc8d2f/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
31756,
12,
3338,
33,
474,
12,
957,
18,
957,
1435,
3631,
9439,
33,
8381,
16,
3025,
33,
8381,
4672,
3536,
1220,
445,
7759,
3974,
3241,
7632,
1368,
9351,
2858,
3536,
225,
309,
9439,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
31756,
12,
3338,
33,
474,
12,
957,
18,
957,
1435,
3631,
9439,
33,
8381,
16,
3025,
33,
8381,
4672,
3536,
1220,
445,
7759,
3974,
3241,
7632,
1368,
9351,
2858,
3536,
225,
309,
9439,
... |
configScript = 'xml2-config' | configScriptName = 'xml2-config' | def getResult(cls, platform, linkMode): configScript = cls.getConfigScript(platform, linkMode) return '`%s --version`' % configScript | a902f7625aecfd703bfff59287ab502828a3532d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5450/a902f7625aecfd703bfff59287ab502828a3532d/probe_defs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8601,
12,
6429,
16,
4072,
16,
1692,
2309,
4672,
642,
3651,
273,
2028,
18,
588,
809,
3651,
12,
9898,
16,
1692,
2309,
13,
327,
6992,
9,
87,
1493,
1589,
11294,
738,
642,
3651,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8601,
12,
6429,
16,
4072,
16,
1692,
2309,
4672,
642,
3651,
273,
2028,
18,
588,
809,
3651,
12,
9898,
16,
1692,
2309,
13,
327,
6992,
9,
87,
1493,
1589,
11294,
738,
642,
3651,
2,
-100,
... |
raise Exception, "Unknown row type match, length %d" % (len(row)) | raise ContextException, "Unknown row type match, length %d" % (len(row)) | def RunRegmemFilters(fout, text, sdate, sdatever): # message for cron so I check I'm using this print "New register of members interests! Check it is working properly (via mpinfoin.pl) - %s" % sdate text = ApplyFixSubstitutions(text, sdate, fixsubs) WriteXMLHeader(fout) fout.write("<publicwhip>\n") text = re.sub('R... | b51a12fcd0d0727bc6bee119bf69f17d70cbe4d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8428/b51a12fcd0d0727bc6bee119bf69f17d70cbe4d4/regmemfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
1617,
3917,
5422,
12,
617,
322,
16,
977,
16,
272,
712,
16,
272,
712,
502,
4672,
468,
883,
364,
9998,
1427,
467,
866,
467,
17784,
1450,
333,
1172,
315,
1908,
1744,
434,
4833,
1651... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
1617,
3917,
5422,
12,
617,
322,
16,
977,
16,
272,
712,
16,
272,
712,
502,
4672,
468,
883,
364,
9998,
1427,
467,
866,
467,
17784,
1450,
333,
1172,
315,
1908,
1744,
434,
4833,
1651... |
value = values[i][0] | return values[i][0] | def on_get_value(self, node, column): (i, values) = node[-1] if column: value = values[i][1][column - 1] else: value = values[i][0] | d5d209cf824fd00b19d37cebc162584bdce2c188 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/d5d209cf824fd00b19d37cebc162584bdce2c188/view_tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
588,
67,
1132,
12,
2890,
16,
756,
16,
1057,
4672,
261,
77,
16,
924,
13,
273,
756,
18919,
21,
65,
309,
1057,
30,
460,
273,
924,
63,
77,
6362,
21,
6362,
2827,
300,
404,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
588,
67,
1132,
12,
2890,
16,
756,
16,
1057,
4672,
261,
77,
16,
924,
13,
273,
756,
18919,
21,
65,
309,
1057,
30,
460,
273,
924,
63,
77,
6362,
21,
6362,
2827,
300,
404,
65,
... |
cmd = "%s -c 'rpmbuild --rebuild --target %s --nodeps %s' %s" % ( | cmd = "cd /;%s -c 'rpmbuild --rebuild --target %s --nodeps %s' %s" % ( | def build(self, srpm): """build an srpm into binary rpms, capture log""" self.state("setup") | 4154e98e55cf8c87964e9bc127469a18de1e0d6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7328/4154e98e55cf8c87964e9bc127469a18de1e0d6e/mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
9133,
7755,
4672,
3536,
3510,
392,
9133,
7755,
1368,
3112,
8715,
959,
16,
7477,
613,
8395,
225,
365,
18,
2019,
2932,
8401,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
9133,
7755,
4672,
3536,
3510,
392,
9133,
7755,
1368,
3112,
8715,
959,
16,
7477,
613,
8395,
225,
365,
18,
2019,
2932,
8401,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
res.append(node_calendar(calender.name, self, self.context, calender)) | if not ext: res.append(node_calendar(calender.name, self, self.context, calender)) else: res.append(res_node_calendar(name, self, self.context, calender)) | def _child_get(self, cr, name=False, parent_id=False, domain=None): dirobj = self.context._dirobj uid = self.context.uid ctx = self.context.context.copy() ctx.update(self.dctx) where = [('collection_id','=',self.dir_id)] if name: where.append(('name','=',name)) if not domain: domain = [] where = where + domain fil_obj ... | 65ed78ef9172300bdd03c02c27d8aed1c75fcebc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/65ed78ef9172300bdd03c02c27d8aed1c75fcebc/caldav_node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
8381,
16,
982,
67,
350,
33,
8381,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
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,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
8381,
16,
982,
67,
350,
33,
8381,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
273,
... |
while self.current_control_tick < control_tick: self.current_control_tick += 1 win32api.PostMessage(self.hprogress, commctrl.PBM_STEPIT, 0, 0) | if verbose: print "Tick", self.current_stage_tick, "is", this_prop, "through the stage,", total_prop, "through the total - ctrl tick is", control_tick win32api.PostMessage(self.hprogress, commctrl.PBM_SETPOS, control_tick) | def tick(self): self.current_stage_tick += 1 # Calc how far through this stage. this_prop = float(self.current_stage_tick) / self.current_stage_max # How far through the total. stage_name, start, end = self._get_current_stage() # Calc the perc of the total control. stage_name, start, prop = self._get_current_stage() to... | 8b6ce200a1840f7275d1a77fb99d11f2f7f1b057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/8b6ce200a1840f7275d1a77fb99d11f2f7f1b057/async_processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
12,
2890,
4672,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,
3059,
333,
6009,
18,
333,
67,
5986,
273,
1431,
12,
2890,
18,
2972,
67,
12869,
67,
6470,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
12,
2890,
4672,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,
3059,
333,
6009,
18,
333,
67,
5986,
273,
1431,
12,
2890,
18,
2972,
67,
12869,
67,
6470,
13... |
for l in string: d[l] = d.get(l,0) + 1 | for s in string: d[s] = d.get(s, 0) + 1 | def frequency_table(string): r""" Return the frequency table corresponding to the given string. INPUT: - ``string`` -- a string EXAMPLE:: sage: from sage.coding.source_coding.huffman import frequency_table sage: str = "Sage is my most favorite general purpose computer algebra system" sage: frequency_table(str) {'a'... | 08cf8218c91d92b4dcb4602a7135f1d9d706af1e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/08cf8218c91d92b4dcb4602a7135f1d9d706af1e/huffman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8670,
67,
2121,
12,
1080,
4672,
436,
8395,
2000,
326,
8670,
1014,
4656,
358,
326,
864,
533,
18,
225,
12943,
30,
225,
300,
12176,
1080,
10335,
1493,
279,
533,
225,
5675,
21373,
2866,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8670,
67,
2121,
12,
1080,
4672,
436,
8395,
2000,
326,
8670,
1014,
4656,
358,
326,
864,
533,
18,
225,
12943,
30,
225,
300,
12176,
1080,
10335,
1493,
279,
533,
225,
5675,
21373,
2866,
225,... |
self.assertRaises(TypeError, list, takewhile(isEven, N(s))) | self.assertRaises(TypeError, takewhile, isEven, N(s)) | def test_takewhile(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): tgt = [] for elem in g(s): if not isEven(elem): break tgt.append(elem) self.assertEqual(list(takewhile(isEven, g(s))), tgt) self.assertRaises(TypeError, takewhile, isEven, X(s)) self.assertR... | 8690c4ed3fa1f1889459249c7e50e11c2052b340 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8690c4ed3fa1f1889459249c7e50e11c2052b340/test_itertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
88,
581,
359,
76,
398,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
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,
1842,
67,
88,
581,
359,
76,
398,
12,
2890,
4672,
364,
272,
316,
261,
3676,
12,
2163,
3631,
1048,
12,
20,
3631,
1048,
12,
18088,
3631,
261,
27,
16,
2499,
3631,
12314,
12,
17172,
16,
3... |
gateGump = cGump( 1, 1, 0, 30, 30 ) | gateGump = cGump( 1, 1, 0, 100, 120 ) | def sendGump( char, item ): char.soundeffect( 0x58 ) # noclose, nomove gump gateGump = cGump( 1, 1, 0, 30, 30 ) # trammel gateGump.startPage( 1 ) gateGump.addBackground( 9200, 300, 255 ) gateGump.addText( 40, 40, "Pick your destination:" ) gateGump.addButton( 47, 207, 0xFA5, 0xFA7, 0 ) gateGump.addText( 80, 210, "CANCE... | 078c28c7a104b7c508f8af153c2fb3023747f514 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/078c28c7a104b7c508f8af153c2fb3023747f514/moongate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
43,
2801,
12,
1149,
16,
761,
262,
30,
1149,
18,
87,
465,
536,
74,
386,
12,
374,
92,
8204,
262,
468,
30601,
2061,
16,
12457,
841,
314,
2801,
12611,
43,
2801,
273,
276,
43,
2801,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
43,
2801,
12,
1149,
16,
761,
262,
30,
1149,
18,
87,
465,
536,
74,
386,
12,
374,
92,
8204,
262,
468,
30601,
2061,
16,
12457,
841,
314,
2801,
12611,
43,
2801,
273,
276,
43,
2801,... |
return connection.query_field(self._field_to_search, self.pattern) | return connection.query_field(self._field_to_search, self._pattern) | def xapian_term(self, request, connection): if self.use_re: return self._get_query_for_search_re(connection, self._field_to_search) else: return connection.query_field(self._field_to_search, self.pattern) | 4bb0aae017ff6b4419e902179b43893bb8fd5f65 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/4bb0aae017ff6b4419e902179b43893bb8fd5f65/queryparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
2425,
304,
67,
6408,
12,
2890,
16,
590,
16,
1459,
4672,
309,
365,
18,
1202,
67,
266,
30,
327,
365,
6315,
588,
67,
2271,
67,
1884,
67,
3072,
67,
266,
12,
4071,
16,
365,
6315,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
2425,
304,
67,
6408,
12,
2890,
16,
590,
16,
1459,
4672,
309,
365,
18,
1202,
67,
266,
30,
327,
365,
6315,
588,
67,
2271,
67,
1884,
67,
3072,
67,
266,
12,
4071,
16,
365,
6315,
1... |
out += """<strong><a href="\ <a href="\ | out += """<strong><a href=" <a href=" | def tmpl_print_results_overview(self, ln, weburl, results_final_nb_total, cpu_time, results_final_nb, colls, url_args): """Prints results overview box with links to particular collections below. | d2c70e08dde633df1c39e4dd8fbd1840563d2b16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/d2c70e08dde633df1c39e4dd8fbd1840563d2b16/websearch_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1188,
67,
4717,
67,
26081,
12,
2890,
16,
7211,
16,
3311,
718,
16,
1686,
67,
6385,
67,
6423,
67,
4963,
16,
8326,
67,
957,
16,
1686,
67,
6385,
67,
6423,
16,
645,
3251,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1188,
67,
4717,
67,
26081,
12,
2890,
16,
7211,
16,
3311,
718,
16,
1686,
67,
6385,
67,
6423,
67,
4963,
16,
8326,
67,
957,
16,
1686,
67,
6385,
67,
6423,
16,
645,
3251,
16,
... |
start = ndt | start = new_dt | def Project_1(): resource = user title = project.name start = ndt effort = hours | afacda2c1dc8e7495aa88496b9db7c3ac70bf127 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/afacda2c1dc8e7495aa88496b9db7c3ac70bf127/compute_tasks_date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5420,
67,
21,
13332,
1058,
273,
729,
2077,
273,
1984,
18,
529,
787,
273,
394,
67,
7510,
23445,
273,
7507,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5420,
67,
21,
13332,
1058,
273,
729,
2077,
273,
1984,
18,
529,
787,
273,
394,
67,
7510,
23445,
273,
7507,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sage: print forward_circulant(5) | sage: forward_circulant(5) | def forward_circulant(n): """ The forward-circulant latin square of order n is the Cayley table for the operation r + c = (n-c+r) mod n. INPUT: n -- int; order of the latin square. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: print forward_circulant(5) [0 4 3 2 1] [1 0 4 3 2] [2 1 0 4 3] [3 2 1... | 9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
67,
11614,
1934,
970,
12,
82,
4672,
3536,
1021,
5104,
17,
11614,
1934,
970,
30486,
8576,
434,
1353,
290,
353,
326,
385,
528,
30678,
1014,
364,
326,
1674,
436,
397,
276,
273,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
67,
11614,
1934,
970,
12,
82,
4672,
3536,
1021,
5104,
17,
11614,
1934,
970,
30486,
8576,
434,
1353,
290,
353,
326,
385,
528,
30678,
1014,
364,
326,
1674,
436,
397,
276,
273,
261,
... |
res = self._query(req) if not res['OK']: return res transIDs = [] | res = self._query( req ) if not res['OK']: return res transIDs = [] | def getTransformationWithStatus(self,status,connection=False): """ Gets a list of the transformations with the supplied status """ req = "SELECT TransformationID FROM Transformations WHERE Status = '%s';" % status res = self._query(req) if not res['OK']: return res transIDs = [] for tuple in res['Value']: transIDs.appe... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15292,
1190,
1482,
12,
2890,
16,
2327,
16,
4071,
33,
8381,
4672,
3536,
11881,
279,
666,
434,
326,
19245,
598,
326,
4580,
1267,
3536,
1111,
273,
315,
4803,
21274,
734,
4571,
11514,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15292,
1190,
1482,
12,
2890,
16,
2327,
16,
4071,
33,
8381,
4672,
3536,
11881,
279,
666,
434,
326,
19245,
598,
326,
4580,
1267,
3536,
1111,
273,
315,
4803,
21274,
734,
4571,
11514,
1... |
details = "\n" for i in range(outwords): details += str(keylist[i][3]) + " ("+ str(keylist[i][0]) if int(keylist[i][8])>0: details += "*" details += ")\n" if len(str(keylist[i][4]))>1: details += " UF (" + str(keylist[i][2]) + "):" + str(keylist[i][4]) + "\n" if len(str(keylist[i][5]))>1: details += " RT:" + str(keylis... | print text_out | def generate_keywords_rdf(textfile, dictfile, output, outwords, mode): """ A method that generates keywords from an rdf thesaurus. """ keylist = [] keyws = [] counts = {} entries = [] ns_skos = rdflib.Namespace("http://www.w3.org/2004/02/skos/core#") ns_dc=rdflib.Namespace("http://purl.org/dc/elements/1.1/") ns_rdf=r... | e370f85299a0a2ebca37fc2311af0cdcffe61261 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2594/e370f85299a0a2ebca37fc2311af0cdcffe61261/bibclassifylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11771,
67,
19299,
12,
955,
768,
16,
2065,
768,
16,
876,
16,
596,
3753,
16,
1965,
4672,
3536,
432,
707,
716,
6026,
7093,
628,
392,
9160,
286,
281,
28659,
407,
18,
3536,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
11771,
67,
19299,
12,
955,
768,
16,
2065,
768,
16,
876,
16,
596,
3753,
16,
1965,
4672,
3536,
432,
707,
716,
6026,
7093,
628,
392,
9160,
286,
281,
28659,
407,
18,
3536,
498,
... |
], | ], | def show_traceback(w, size, key): if self.current_exc_tuple is not None: from traceback import format_exception | e032f4d4e7d00a05fe0f27b0ce4695345bb987e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12738/e032f4d4e7d00a05fe0f27b0ce4695345bb987e0/debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
21696,
12,
91,
16,
963,
16,
498,
4672,
309,
365,
18,
2972,
67,
10075,
67,
8052,
353,
486,
599,
30,
628,
10820,
1930,
740,
67,
4064,
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,
2405,
67,
21696,
12,
91,
16,
963,
16,
498,
4672,
309,
365,
18,
2972,
67,
10075,
67,
8052,
353,
486,
599,
30,
628,
10820,
1930,
740,
67,
4064,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
html = stoneagehtml.compactify(html).decode('utf-8') | html = stoneagehtml.compactify(html, filter_tags=False).decode('utf-8') | def render_confirmation(self, subscription): vars = self._vars(subscription) subscription_vars = self._subscription_vars(subscription) if 'confirmation_subject' not in vars: vars['confirmation_subject'] = zope.i18n.translate( _(u"Confirm your subscription with ${channel-title}", mapping={'channel-title': subscription.... | 1bc199bb1543ad69f8b1689b55ed2c8917831afe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9843/1bc199bb1543ad69f8b1689b55ed2c8917831afe/composer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
22275,
12,
2890,
16,
4915,
4672,
4153,
273,
365,
6315,
4699,
12,
11185,
13,
4915,
67,
4699,
273,
365,
6315,
11185,
67,
4699,
12,
11185,
13,
225,
309,
296,
22275,
67,
7857,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
22275,
12,
2890,
16,
4915,
4672,
4153,
273,
365,
6315,
4699,
12,
11185,
13,
4915,
67,
4699,
273,
365,
6315,
11185,
67,
4699,
12,
11185,
13,
225,
309,
296,
22275,
67,
7857,
11... |
destination otherwise). The names must already be | destination otherwise). The remote paths must already be | def _copy_files(self, sources, dest, delete_dest): """ Copy files from one machine to another. | 366272831707adee56e18d02061b74eabbd3720c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/366272831707adee56e18d02061b74eabbd3720c/abstract_ssh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
67,
2354,
12,
2890,
16,
5550,
16,
1570,
16,
1430,
67,
10488,
4672,
3536,
5631,
1390,
628,
1245,
5228,
358,
4042,
18,
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,
389,
3530,
67,
2354,
12,
2890,
16,
5550,
16,
1570,
16,
1430,
67,
10488,
4672,
3536,
5631,
1390,
628,
1245,
5228,
358,
4042,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
the list mv (read left-to-right) INPUT: mv is a string of the form X^a*Y^b*...", where X, Y, ... are in {R,L,F,B,U,D} and a,b, ... are integers. EXAMPLES: sage: rubik = CubeGroup() sage: rubik.move("")[0] () sage: rubik.move("R")[0] (3,38,43,19)(5,36,45,21)(8,33,48,24)(25,27,32,30)(26,29,31,28) sage: rubik.R() (25,27... | the list mv (read left-to-right) INPUT: mv is a string of the form X^a*Y^b*...", where X, Y, ... are in {R,L,F,B,U,D} and a,b, ... are integers. EXAMPLES: sage: rubik = CubeGroup() sage: rubik.move("")[0] () sage: rubik.move("R")[0] (3,38,43,19)(5,36,45,21)(8,33,48,24)(25,27,32,30)(26,29,31,28) sage: rubik.R() (25,27... | def move(self,mv): r""" Returns the group element and the reordered list of facets, as moved by | 7087002965b3581b6b81385c320535006465955e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7087002965b3581b6b81385c320535006465955e/cubegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
17509,
4672,
436,
8395,
2860,
326,
1041,
930,
471,
326,
283,
9885,
666,
434,
21681,
16,
487,
10456,
635,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
17509,
4672,
436,
8395,
2860,
326,
1041,
930,
471,
326,
283,
9885,
666,
434,
21681,
16,
487,
10456,
635,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
ts, tick = time(), self.tick delta = self.fill_rate * (ts // tick - self._synctime // tick) self._tokens = min(self.capacity, self._tokens + delta) self._synctime = ts | self._tokens = min( self.capacity, self._tokens + self.fill_rate * (ts // self.tick - self._synctime // self.tick) ) self._synctime = ts | def tokens(self): 'Number of tokens in the bucket at the moment' if self._tokens < self.capacity: ts, tick = time(), self.tick delta = self.fill_rate * (ts // tick - self._synctime // tick) self._tokens = min(self.capacity, self._tokens + delta) self._synctime = ts return self._tokens | 7248833524d4f6fc2f6669ea12161ace45868dec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11594/7248833524d4f6fc2f6669ea12161ace45868dec/fc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2430,
12,
2890,
4672,
296,
1854,
434,
2430,
316,
326,
2783,
622,
326,
10382,
11,
309,
365,
6315,
7860,
411,
365,
18,
16017,
30,
365,
6315,
7860,
273,
1131,
12,
365,
18,
16017,
16,
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,
2430,
12,
2890,
4672,
296,
1854,
434,
2430,
316,
326,
2783,
622,
326,
10382,
11,
309,
365,
6315,
7860,
411,
365,
18,
16017,
30,
365,
6315,
7860,
273,
1131,
12,
365,
18,
16017,
16,
365,... |
options.graphs = GRAPH_TYPES if not options.pstat_files: option.graphs.remove('callgraph') | if options.pstat_files: options.graphs = GRAPH_TYPES else: options.graphs = [g for g in GRAPH_TYPES if g != 'callgraph'] | def parse_arguments(): # Construct the option parser. usage = '%prog ACTION [options] NAMES...' version = "Epydoc, version %s" % epydoc.__version__ optparser = OptionParser(usage=usage, version=version) action_group = OptionGroup(optparser, 'Actions') options_group = OptionGroup(optparser, 'Options') # Add options -- ... | b2fe30432675791ceaf245cd113cc8fa4dadc59e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/b2fe30432675791ceaf245cd113cc8fa4dadc59e/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
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,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
20... |
new_url='http://localhost/?bar=true&q=%s') | new_url=self._localhost_prefix + '?bar=true&q=%s') | def testEditSearchEngine(self): """Test editing a search engine's properties.""" self.AddSearchEngine(title='foo', keyword='foo.com', url='http://foo/?q=%s') self.EditSearchEngine(keyword='foo.com', new_title='bar', new_keyword='bar.com', new_url='http://localhost/?bar=true&q=%s') self.assertTrue(self._GetSearchEngineW... | 9ed91ed6de3ddcc52f609aa3ffe337b08fcbf298 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/9ed91ed6de3ddcc52f609aa3ffe337b08fcbf298/search_engines.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4666,
2979,
4410,
12,
2890,
4672,
3536,
4709,
15755,
279,
1623,
4073,
1807,
1790,
12123,
365,
18,
986,
2979,
4410,
12,
2649,
2218,
11351,
2187,
4932,
2218,
11351,
18,
832,
2187,
880,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4666,
2979,
4410,
12,
2890,
4672,
3536,
4709,
15755,
279,
1623,
4073,
1807,
1790,
12123,
365,
18,
986,
2979,
4410,
12,
2649,
2218,
11351,
2187,
4932,
2218,
11351,
18,
832,
2187,
880,... |
BMP_SLICE = wx.Bitmap("../icons/slice.png", wx.BITMAP_TYPE_PNG) self.AddSimpleTool(ID_SLICE_SCROLL, "Scroll slice", BMP_SLICE, kind = aui.ITEM_RADIO) | if sys.platform == 'darwin': BMP_SLICE = wx.Bitmap("../icons/slice_original.png", wx.BITMAP_TYPE_PNG) else: BMP_SLICE = wx.Bitmap("../icons/slice.png", wx.BITMAP_TYPE_PNG) self.AddLabelTool(ID_SLICE_SCROLL, "Scroll slice", BMP_SLICE, kind = wx.ITEM_CHECK) | def __init_items(self): BMP_SLICE = wx.Bitmap("../icons/slice.png", wx.BITMAP_TYPE_PNG) self.AddSimpleTool(ID_SLICE_SCROLL, "Scroll slice", BMP_SLICE, kind = aui.ITEM_RADIO) | 9ea636e5642af91c5164934cac1dbceeb58b46d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/9ea636e5642af91c5164934cac1dbceeb58b46d5/frame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
67,
3319,
12,
2890,
4672,
605,
4566,
67,
55,
2053,
1441,
273,
7075,
18,
12224,
2932,
6216,
14516,
19,
6665,
18,
6446,
3113,
7075,
18,
15650,
8352,
67,
2399,
67,
23092,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
67,
3319,
12,
2890,
4672,
605,
4566,
67,
55,
2053,
1441,
273,
7075,
18,
12224,
2932,
6216,
14516,
19,
6665,
18,
6446,
3113,
7075,
18,
15650,
8352,
67,
2399,
67,
23092,
13,
... |
word_size, word_height = self.stringsize(word, font,ptsize) self.drawstring(word, x0, y0, fgcolor, None, font, ptsize) x0 += spacing x0 += word_size | if word: word_size, word_height = self.stringsize(word, font,ptsize) self.drawstring(word, x0, y0, fgcolor, None, font, ptsize) x0 += spacing x0 += word_size | def drawstringframed(self, string, x, y, width, height, fgcolor=None, bgcolor=None, font=None, ptsize=0, align_h='left', align_v='top'): | db8532a0d8416ad857cfce2b4ba7c7cc588d7e39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/db8532a0d8416ad857cfce2b4ba7c7cc588d7e39/osd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1080,
74,
1940,
329,
12,
2890,
16,
533,
16,
619,
16,
677,
16,
1835,
16,
2072,
16,
10186,
3266,
33,
7036,
16,
31509,
33,
7036,
16,
3512,
33,
7036,
16,
5818,
1467,
33,
20,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1080,
74,
1940,
329,
12,
2890,
16,
533,
16,
619,
16,
677,
16,
1835,
16,
2072,
16,
10186,
3266,
33,
7036,
16,
31509,
33,
7036,
16,
3512,
33,
7036,
16,
5818,
1467,
33,
20,
16,
... |
app = application(bosstype, mainloop, mainstop) app.start() return app | env = environment() if env.opts.version is not None: print_version_and_die() if env.opts.debug: os.environ['PIDA_DEBUG'] = '1' os.environ['PIDA_LOG_STDERR'] = '1' if env.opts.remote: run_remote() return run_pida(bosstype, mainloop, mainstop, env) | def main(bosstype=boss.boss, mainloop=gtk.main, mainstop=gtk.main_quit): warnings.filterwarnings("ignore", category=DeprecationWarning) app = application(bosstype, mainloop, mainstop) app.start() return app | 8b6f6f9c243b0cd905fa6cd45577be2cf1989411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/8b6f6f9c243b0cd905fa6cd45577be2cf1989411/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
70,
538,
27273,
33,
70,
8464,
18,
70,
8464,
16,
2774,
6498,
33,
4521,
79,
18,
5254,
16,
2774,
5681,
33,
4521,
79,
18,
5254,
67,
27176,
4672,
5599,
18,
2188,
12103,
2932,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
70,
538,
27273,
33,
70,
8464,
18,
70,
8464,
16,
2774,
6498,
33,
4521,
79,
18,
5254,
16,
2774,
5681,
33,
4521,
79,
18,
5254,
67,
27176,
4672,
5599,
18,
2188,
12103,
2932,
61... |
"""This class is an asyncore.disptacher subclass. It creates a socket resulting from the connection to a remote user-port, dispatching it to DTPHandler. | """This class is an asyncore.disptacher subclass. It creates a socket resulting from the connection to a remote user-port, dispatching it to DTPHandler. | def close(self): debug("PassiveDTP.close()") asyncore.dispatcher.close(self) | 367a95e4363ae8b7515230480fff6ef354b95226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/367a95e4363ae8b7515230480fff6ef354b95226/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
1198,
2932,
6433,
688,
9081,
52,
18,
4412,
1435,
7923,
4326,
479,
18,
18495,
18,
4412,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
1198,
2932,
6433,
688,
9081,
52,
18,
4412,
1435,
7923,
4326,
479,
18,
18495,
18,
4412,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
initial_u = 0.25 | initial_u = [0.25] * len(grid) | def main(): m = _load_example_standard_model('vdp', 'VDP_pack_VDP_Opt') # Whether the cost as a function of input U should be plotted GEN_PLOT = False if GEN_PLOT: cost_graph(m) else: SHOOTING_METHOD = 'multiple' if SHOOTING_METHOD=='single': opt_u = single_shooting(m) print "Optimal u:", opt_u elif SHOOTING_METHOD =... | b50b5a0d061f9da771e0a0c30212562fc234a8cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/b50b5a0d061f9da771e0a0c30212562fc234a8cc/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
312,
273,
389,
945,
67,
8236,
67,
10005,
67,
2284,
2668,
90,
9295,
2187,
296,
58,
8640,
67,
2920,
67,
58,
8640,
67,
6179,
6134,
225,
468,
17403,
326,
6991,
487,
279,
445,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
312,
273,
389,
945,
67,
8236,
67,
10005,
67,
2284,
2668,
90,
9295,
2187,
296,
58,
8640,
67,
2920,
67,
58,
8640,
67,
6179,
6134,
225,
468,
17403,
326,
6991,
487,
279,
445,
... |
def _iter_two_pkgs(self, ignore): | def _iter_two_pkgs(self, ignore_provides): | def _iter_two_pkgs(self, ignore): last = None for pkg in sorted(self.returnPackages()): if pkg.name in ignore: continue if last is None: last = pkg continue yield last, pkg last = pkg | b3a472e892ba5c837f540be72819bd1180022d99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/b3a472e892ba5c837f540be72819bd1180022d99/rpmsack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2165,
67,
15415,
67,
25376,
12,
2890,
16,
2305,
67,
685,
13427,
4672,
1142,
273,
599,
364,
3475,
316,
3115,
12,
2890,
18,
2463,
11425,
1435,
4672,
309,
3475,
18,
529,
316,
2305,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2165,
67,
15415,
67,
25376,
12,
2890,
16,
2305,
67,
685,
13427,
4672,
1142,
273,
599,
364,
3475,
316,
3115,
12,
2890,
18,
2463,
11425,
1435,
4672,
309,
3475,
18,
529,
316,
2305,
3... |
map=socket_map if map.has_key (fd): | map = socket_map if map.has_key(fd): | def del_channel (self, map=None): fd = self._fileno if map is None: map=socket_map if map.has_key (fd): #self.log_info ('closing channel %d:%s' % (fd, self)) del map [fd] | d560ace3a76d1fa162fa40ec90a158d4d3540036 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d560ace3a76d1fa162fa40ec90a158d4d3540036/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
4327,
261,
2890,
16,
852,
33,
7036,
4672,
5194,
273,
365,
6315,
7540,
5764,
309,
852,
353,
599,
30,
852,
33,
7814,
67,
1458,
309,
852,
18,
5332,
67,
856,
261,
8313,
4672,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
4327,
261,
2890,
16,
852,
33,
7036,
4672,
5194,
273,
365,
6315,
7540,
5764,
309,
852,
353,
599,
30,
852,
33,
7814,
67,
1458,
309,
852,
18,
5332,
67,
856,
261,
8313,
4672,
4... |
widget_list[1] = urwid.Text('') | while widget_list: widget_list.pop() | def _populate_completion(self): widget_list = self.tooltip.body widget_list[1] = urwid.Text('') # This is just me flailing around wildly. TODO: actually write. if self.complete(): if self.argspec: # This is mostly just stolen from the cli module. func_name, args, is_bound, in_arg = self.argspec args, varargs, varkw, de... | 94de918bbde584b7d1e0aabbf345534c42df9d58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/94de918bbde584b7d1e0aabbf345534c42df9d58/urwid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19936,
67,
11469,
12,
2890,
4672,
3604,
67,
1098,
273,
365,
18,
19798,
18,
3432,
1323,
3604,
67,
1098,
30,
3604,
67,
1098,
18,
5120,
1435,
468,
1220,
353,
2537,
1791,
1183,
671,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19936,
67,
11469,
12,
2890,
4672,
3604,
67,
1098,
273,
365,
18,
19798,
18,
3432,
1323,
3604,
67,
1098,
30,
3604,
67,
1098,
18,
5120,
1435,
468,
1220,
353,
2537,
1791,
1183,
671,
3... |
logStatusMsg(u"utf encoding and quoting url failed, returning false %s" % url, 1 ) | logStatusMsg(u"""utf encoding, quoting url failed, returning false %s\ """ % url, 1 ) | def urllib2RetrievePage( url, txheaders=((u'User-agent', _USER_AGENT),)): u"""URL is the full path to the resource we are retrieve/Posting txheaders is a sequence of (field,value) pairs of any extra headers you would like to add """ global cj, opener txheadersEncoded = ( (x.encode('utf-8'), y.encode('utf-8') ) for x,y ... | 633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11527,
22,
5767,
1964,
12,
880,
16,
2229,
2485,
33,
12443,
89,
11,
1299,
17,
5629,
2187,
389,
4714,
67,
15005,
3631,
3719,
30,
582,
8395,
1785,
353,
326,
1983,
589,
358,
326,
1058,
732... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11527,
22,
5767,
1964,
12,
880,
16,
2229,
2485,
33,
12443,
89,
11,
1299,
17,
5629,
2187,
389,
4714,
67,
15005,
3631,
3719,
30,
582,
8395,
1785,
353,
326,
1983,
589,
358,
326,
1058,
732... |
d["author_html"] = self.quote(self.author) d["email_url"] = url_quote(self.email) | if mm_cfg.ARCHIVER_OBSCURES_EMAILADDRS: author = re.sub('@', _(' at '), self.author) emailurl = self._mlist.GetListEmail() else: author = self.author emailurl = self.email d["author_html"] = self.quote(author) d["email_url"] = url_quote(emailurl) | def as_html(self): d = self.__dict__.copy() # avoid i18n side-effects otrans = i18n.get_translation() i18n.set_language(self._lang) try: d["prev"], d["prev_wsubj"] = self._get_prev() d["next"], d["next_wsubj"] = self._get_next() | ee571157641bb7ff0c8a14b908d79597627f5370 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/ee571157641bb7ff0c8a14b908d79597627f5370/HyperArch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2620,
12,
2890,
4672,
302,
273,
365,
16186,
1576,
25648,
3530,
1435,
468,
4543,
277,
2643,
82,
4889,
17,
13867,
87,
320,
2338,
273,
277,
2643,
82,
18,
588,
67,
10173,
1435,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2620,
12,
2890,
4672,
302,
273,
365,
16186,
1576,
25648,
3530,
1435,
468,
4543,
277,
2643,
82,
4889,
17,
13867,
87,
320,
2338,
273,
277,
2643,
82,
18,
588,
67,
10173,
1435,
27... |
this = apply(_quickfix.new_Signature, args) | this = _quickfix.new_Signature(*args) | def __init__(self, *args): this = apply(_quickfix.new_Signature, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
5374,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
5374,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
221... |
def check_attr_funky_names(self): | def test_attr_funky_names(self): | def check_attr_funky_names(self): self._run_check("""<a a.b='v' c:d=v e-f=v>""", [ ("starttag", "a", [("a.b", "v"), ("c:d", "v"), ("e-f", "v")]), ]) | a0d064119e8dd4237ff8ffdff3148d0bfed93714 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a0d064119e8dd4237ff8ffdff3148d0bfed93714/test_htmlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1747,
67,
74,
1683,
93,
67,
1973,
12,
2890,
4672,
365,
6315,
2681,
67,
1893,
2932,
3660,
32,
69,
279,
18,
70,
2218,
90,
11,
276,
30,
72,
33,
90,
425,
17,
74,
33,
90,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1747,
67,
74,
1683,
93,
67,
1973,
12,
2890,
4672,
365,
6315,
2681,
67,
1893,
2932,
3660,
32,
69,
279,
18,
70,
2218,
90,
11,
276,
30,
72,
33,
90,
425,
17,
74,
33,
90,
29... |
pen = _pen if not pen: _pen = pen = Pen() return pen | if not _pen: _pen = Pen() return _pen class Turtle(Pen): pass """For documentation of the following functions see the RawPen methods with the same names """ | def _getpen(): global _pen pen = _pen if not pen: _pen = pen = Pen() return pen | 97324e132aa8e41ef597f91f42d2d171c39f616a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/97324e132aa8e41ef597f91f42d2d171c39f616a/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1907,
13332,
2552,
389,
1907,
309,
486,
389,
1907,
30,
389,
1907,
273,
453,
275,
1435,
327,
389,
1907,
225,
667,
399,
295,
5929,
12,
24251,
4672,
1342,
225,
3536,
1290,
7323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1907,
13332,
2552,
389,
1907,
309,
486,
389,
1907,
30,
389,
1907,
273,
453,
275,
1435,
327,
389,
1907,
225,
667,
399,
295,
5929,
12,
24251,
4672,
1342,
225,
3536,
1290,
7323,
... |
Returns the inertia degree over the ground ring, i.e. 1. INPUT: self -- a local ring OUTPUT: integer -- the inertia degree of this ring, i.e., 1 | Returns the inertia degree over the ground ring: 1 unless overridden. INPUT: self -- a local ring OUTPUT: integer -- the inertia degree of this ring: 1 unless overridden. | def f(self): r""" Returns the inertia degree over the ground ring, i.e. 1. | c87165f9fc2c05807f4b7e2f4bdadedde99f81f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c87165f9fc2c05807f4b7e2f4bdadedde99f81f6/local_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
2890,
4672,
436,
8395,
2860,
326,
316,
31449,
10782,
1879,
326,
19209,
9221,
16,
277,
18,
73,
18,
404,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
2890,
4672,
436,
8395,
2860,
326,
316,
31449,
10782,
1879,
326,
19209,
9221,
16,
277,
18,
73,
18,
404,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert """<span class="removed" title="removed: ">0</span>""" in response.body, 'wrong info about removed nodes' assert """<span class="changed" title="changed: hg.py | models.py">2</span>""" in response.body, 'wrong info about changed nodes' assert """<span class="added" title="added: managers.py">1</span>""" in respo... | assert """<span class="removed tooltip" tooltip_title="removed: No Files">0</span>""" in response.body, 'wrong info about removed nodes' assert """<span class="changed tooltip" tooltip_title="changed: vcs/backends/hg.py<br/> vcs/web/simplevcs/models.py">2</span>""" in response.body, 'wrong info about changed nodes' ass... | def test_index_hg(self): self.log_user() response = self.app.get(url(controller='changelog', action='index', repo_name=HG_REPO)) | 98a135da2f0d1848796c071928946da01639adcc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/98a135da2f0d1848796c071928946da01639adcc/test_changelog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1615,
67,
26981,
12,
2890,
4672,
365,
18,
1330,
67,
1355,
1435,
766,
273,
365,
18,
2910,
18,
588,
12,
718,
12,
5723,
2218,
24083,
12970,
2187,
1301,
2218,
1615,
2187,
3538,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1615,
67,
26981,
12,
2890,
4672,
365,
18,
1330,
67,
1355,
1435,
766,
273,
365,
18,
2910,
18,
588,
12,
718,
12,
5723,
2218,
24083,
12970,
2187,
1301,
2218,
1615,
2187,
3538,
6... |
if client.get_bool("/system/http_proxy/use_http_proxy"): host = client.get_string("/system/http_proxy/host") port = client.get_int("/system/http_proxy/port") if host is None or host == "" or port == 0: return None | sleep = 10 attempts = 3 get_gnome_proxy_retry(client, attempts, sleep) | def get_gnome_proxy(client): if client.get_bool("/system/http_proxy/use_http_proxy"): host = client.get_string("/system/http_proxy/host") port = client.get_int("/system/http_proxy/port") if host is None or host == "" or port == 0: # gnome proxy is not valid, use enviroment if available return None if client.get_bool("... | 6121f5b9a6438bfde3e0da3a9920827d3a75344b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11078/6121f5b9a6438bfde3e0da3a9920827d3a75344b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1600,
1742,
67,
5656,
12,
2625,
4672,
309,
1004,
18,
588,
67,
6430,
2932,
19,
4299,
19,
2505,
67,
5656,
19,
1202,
67,
2505,
67,
5656,
6,
4672,
1479,
273,
1004,
18,
588,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1600,
1742,
67,
5656,
12,
2625,
4672,
309,
1004,
18,
588,
67,
6430,
2932,
19,
4299,
19,
2505,
67,
5656,
19,
1202,
67,
2505,
67,
5656,
6,
4672,
1479,
273,
1004,
18,
588,
67,
... |
>>> ls(sample_buildout, 'eggs') *... | >>> print 'X'; ls(sample_buildout, 'eggs') X... | def test_bootstrap_py(): """Make sure the bootstrap script actually works | b48f820aab691ca86f1aef273b364849f6a379b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11359/b48f820aab691ca86f1aef273b364849f6a379b2/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12722,
67,
2074,
13332,
3536,
6464,
3071,
326,
7065,
2728,
6013,
6330,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12722,
67,
2074,
13332,
3536,
6464,
3071,
326,
7065,
2728,
6013,
6330,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
ver = config.get(sect, 'version') file = config.get(sect, 'path') desc = config.get(sect, 'description') macro = config.get(sect, 'macro') | '''Process Innosetup script file section in the ini file.''' if config.has_option(sect, 'version') and \ config.has_option(sect, 'path') and \ config.has_option(sect, 'description') and \ config.has_option(sect, 'macro'): ver = config.get(sect, 'version') file = config.get(sect, 'path') desc = config.get(sect, 'descr... | def process_InnoSetup(filename, config, sect): ver = config.get(sect, 'version') file = config.get(sect, 'path') desc = config.get(sect, 'description') macro = config.get(sect, 'macro') print '%s : %s' % (sect, desc) print ' File: ' + file print ' Version: ' + ver if len(macro): print ' Macro: ' + macro else: print... | 2bfe942d97e7c5ace17408eefdad90dbb4f5b229 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/618/2bfe942d97e7c5ace17408eefdad90dbb4f5b229/SetVersions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
382,
2135,
7365,
12,
3459,
16,
642,
16,
29140,
4672,
9163,
2227,
657,
18050,
278,
416,
2728,
585,
2442,
316,
326,
6896,
585,
1093,
6309,
225,
309,
642,
18,
5332,
67,
3482,
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,
1207,
67,
382,
2135,
7365,
12,
3459,
16,
642,
16,
29140,
4672,
9163,
2227,
657,
18050,
278,
416,
2728,
585,
2442,
316,
326,
6896,
585,
1093,
6309,
225,
309,
642,
18,
5332,
67,
3482,
12... |
caseNameShort = caseName, caseNumber = caseNum) | caseNameShort = str(caseName), caseNumber = str(caseNum)) | def hasDuplicate(caseNum, caseName): """takes a caseName and a caseNum, and checks if the object exists in the DB. If it doesn't, then it puts it in. If it does, it returns it. """ # check for duplicates, make the object in their absence cite, created = Citation.objects.get_or_create( caseNameShort = caseName, caseNum... | 4773629da624b05eeb54f97335d71e0b6acea589 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/4773629da624b05eeb54f97335d71e0b6acea589/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
11826,
12,
3593,
2578,
16,
648,
461,
4672,
3536,
88,
3223,
279,
648,
461,
471,
279,
648,
2578,
16,
471,
4271,
309,
326,
733,
1704,
316,
326,
2383,
18,
971,
518,
3302,
1404,
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,
711,
11826,
12,
3593,
2578,
16,
648,
461,
4672,
3536,
88,
3223,
279,
648,
461,
471,
279,
648,
2578,
16,
471,
4271,
309,
326,
733,
1704,
316,
326,
2383,
18,
971,
518,
3302,
1404,
16,
... |
((+nan, nan), (nan, nan), ''), | ((+nan, nan), (nan, nan), 'XXX'), | def test_clog(self): for p, v, e in [ ((negzero, 0.0), (-inf, pi), 'divide'), ((0.0, 0.0), (-inf, 0.0), 'divide'), # fails on OSX? ((1., inf), (inf, pi/2), ''), ((1., nan), (nan, nan), 'invalid-optional'), ((-inf, 1.), (inf, pi), ''), ((inf, 1.), (inf, 0.), ''), ((-inf, inf), (inf, 3*pi/4), ''), ((inf, inf), (inf, pi/4... | 331cf00283cada1637511bde73d6ce640e9dbc46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/331cf00283cada1637511bde73d6ce640e9dbc46/test_umath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
1330,
12,
2890,
4672,
364,
293,
16,
331,
16,
425,
316,
306,
14015,
14518,
7124,
16,
374,
18,
20,
3631,
24927,
10625,
16,
4790,
3631,
296,
2892,
831,
19899,
14015,
20,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
1330,
12,
2890,
4672,
364,
293,
16,
331,
16,
425,
316,
306,
14015,
14518,
7124,
16,
374,
18,
20,
3631,
24927,
10625,
16,
4790,
3631,
296,
2892,
831,
19899,
14015,
20,
18,... |
"Handle a recoverable error." | "Handle a recoverable error." | def error(self, exception): | 251452efdfabd73d380543d5654ddf789977828b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/251452efdfabd73d380543d5654ddf789977828b/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
12,
2890,
16,
1520,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
12,
2890,
16,
1520,
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... |
self.setSessionInfo([MESSAGE_SAVEDCHANGES % self.utGetTodayDate()]) | self.setSessionInfoTrans(MESSAGE_SAVEDCHANGES, date=self.utGetTodayDate()) | def saveProperties(self, title='', description='', coverage='', keywords='', sortorder='', body='', topic='', scope='', toc='', releasedate='', discussion='', lang=None, REQUEST=None, **kwargs): """ """ if not self.checkPermissionEditObject(): raise EXCEPTION_NOTAUTHORIZED, EXCEPTION_NOTAUTHORIZED_MSG if not sortorder:... | f99fbd519b894502ba035b3e11f0375733ca0a81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/f99fbd519b894502ba035b3e11f0375733ca0a81/NyStudy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2297,
12,
2890,
16,
2077,
2218,
2187,
2477,
2218,
2187,
11196,
2218,
2187,
7093,
2218,
2187,
1524,
1019,
2218,
2187,
1417,
2218,
2187,
3958,
2218,
2187,
2146,
2218,
2187,
17919,
2218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2297,
12,
2890,
16,
2077,
2218,
2187,
2477,
2218,
2187,
11196,
2218,
2187,
7093,
2218,
2187,
1524,
1019,
2218,
2187,
1417,
2218,
2187,
3958,
2218,
2187,
2146,
2218,
2187,
17919,
2218,
... |
These keyword were added into Robot Framework 2.1.2. | All these keywords were added in Robot Framework 2.1.2. | def should_be_uppercase(self, string, msg=None): """Fails if the given `string` is not in uppercase. | 9861e09ec44e139e8b7032c51f5cecc362b39f20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/9861e09ec44e139e8b7032c51f5cecc362b39f20/String.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
2196,
67,
5797,
3593,
12,
2890,
16,
533,
16,
1234,
33,
7036,
4672,
3536,
30800,
309,
326,
864,
1375,
1080,
68,
353,
486,
316,
18966,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
2196,
67,
5797,
3593,
12,
2890,
16,
533,
16,
1234,
33,
7036,
4672,
3536,
30800,
309,
326,
864,
1375,
1080,
68,
353,
486,
316,
18966,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
os.environ['PYTHONPATH'] = + os.path.abspath(opts.install_dir) +'/lib' | os.environ['PYTHONPATH'] = os.path.abspath(opts.install_dir) +'/lib' | def non_root_initialisation(): """ Creating directories where to install the data (non-root usage) If a non-root installation is required, we need to : - check the existence of the opts.install_die directory - create the lib and bin directories - add a shared-lib.pth file with the appropriate path to the libs - create... | 43d20eae77045e6745377d3ecdf1277178b9f8b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4914/43d20eae77045e6745377d3ecdf1277178b9f8b2/ez_alea_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
67,
3085,
67,
6769,
10742,
13332,
3536,
21837,
6402,
1625,
358,
3799,
326,
501,
261,
5836,
17,
3085,
4084,
13,
225,
971,
279,
1661,
17,
3085,
13193,
353,
1931,
16,
732,
1608,
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,
1661,
67,
3085,
67,
6769,
10742,
13332,
3536,
21837,
6402,
1625,
358,
3799,
326,
501,
261,
5836,
17,
3085,
4084,
13,
225,
971,
279,
1661,
17,
3085,
13193,
353,
1931,
16,
732,
1608,
358,
... |
__slots__ = ("workspace", "dartLabel", "protected") def __init__(self, workspace, dartLabel): | __slots__ = ("workspace", "faceLabel", "protected") def __init__(self, workspace, faceLabel): | def undo(self): manualCK = self.workspace._manualCK for fl, ov in zip(self.faces, self.oldValues): manualCK[fl] = ov | a2de2cebcad4d3f512fea5b8ebac45499be6c6f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/a2de2cebcad4d3f512fea5b8ebac45499be6c6f0/workspace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
12,
2890,
4672,
11297,
3507,
273,
365,
18,
14915,
6315,
19840,
3507,
364,
1183,
16,
23094,
316,
3144,
12,
2890,
18,
4601,
16,
365,
18,
1673,
1972,
4672,
11297,
3507,
63,
2242,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
12,
2890,
4672,
11297,
3507,
273,
365,
18,
14915,
6315,
19840,
3507,
364,
1183,
16,
23094,
316,
3144,
12,
2890,
18,
4601,
16,
365,
18,
1673,
1972,
4672,
11297,
3507,
63,
2242,
65,... |
if YAD: pkgtool = "/usr/bin/yum -d0 -y update %s" else: pkgtool = "/usr/bin/yum -d0 update %s" upgrade_args = [] | def Install(self, packages, states): """ Try and fix everything that RPMng.VerifyPackages() found wrong for each Package Entry. This can result in individual RPMs being installed (for the first time), deleted, downgraded or upgraded. | 806c613f255b54d2c580b303361a7934d0324f08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/806c613f255b54d2c580b303361a7934d0324f08/YUMng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
16,
5907,
16,
5493,
4672,
3536,
6161,
471,
2917,
7756,
716,
534,
12728,
3368,
18,
8097,
11425,
1435,
1392,
7194,
364,
1517,
7508,
3841,
18,
225,
1220,
848,
563,
316,
732... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
16,
5907,
16,
5493,
4672,
3536,
6161,
471,
2917,
7756,
716,
534,
12728,
3368,
18,
8097,
11425,
1435,
1392,
7194,
364,
1517,
7508,
3841,
18,
225,
1220,
848,
563,
316,
732... | |
for cat in cats[:]: | for i in range(len(cats)): cat = cats[i] | def change_category(article, oldCat, newCat, comment=None): """ Given an article which is in category oldCat, moves it to category called newCatTitle. Moves subcategories of oldCat as well. oldCat should be a Category object, newCatTitle should be the new name as a string, without namespace. If newCatTitle is None, the... | 4d2b9cf9d32e950fa9f4451948602f73791a6e99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/4d2b9cf9d32e950fa9f4451948602f73791a6e99/catlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
4743,
12,
11480,
16,
1592,
11554,
16,
394,
11554,
16,
2879,
33,
7036,
4672,
3536,
16803,
392,
7559,
1492,
353,
316,
3150,
1592,
11554,
16,
13934,
518,
358,
3150,
2566,
394,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
4743,
12,
11480,
16,
1592,
11554,
16,
394,
11554,
16,
2879,
33,
7036,
4672,
3536,
16803,
392,
7559,
1492,
353,
316,
3150,
1592,
11554,
16,
13934,
518,
358,
3150,
2566,
394,
115... |
c.append('exten=s,n,GotoIf($["{CDR(intrunk)}" = ""]?cfbsend)') | c.append('exten=s,n,GotoIf($["${CDR(intrunk)}" = ""]?cfbsend)') | def initializeAsteriskConfig(): """This puts some hard coded default values into some asterisk config files: * adsi.conf * extconfig.conf * extensions.conf * sip.conf * iax.conf * zapata.conf * macros.inc """ tapisupport = False for obj in configlets.configlet_tree: if obj.__class__.__name__ == 'CfgOptSettings': if o... | 665bea88020404ae2ddce643019c7abdf29001a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/665bea88020404ae2ddce643019c7abdf29001a2/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
37,
8190,
10175,
809,
13332,
3536,
2503,
8200,
2690,
7877,
29512,
805,
924,
1368,
2690,
30977,
10175,
642,
1390,
30,
225,
380,
1261,
7722,
18,
3923,
380,
1110,
1425,
18,
3923,
380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
37,
8190,
10175,
809,
13332,
3536,
2503,
8200,
2690,
7877,
29512,
805,
924,
1368,
2690,
30977,
10175,
642,
1390,
30,
225,
380,
1261,
7722,
18,
3923,
380,
1110,
1425,
18,
3923,
380,
... |
self.scroll_to((self._cell0[0] + rows, self._cell0[1] + cols), secs) | self.scroll_to((self.items.cell0[0] + rows, self.items.cell0[1] + cols), secs) | def scroll_by(self, (rows, cols), secs): """ Scroll by rows and cols cells | b47bb145b9afab8cd03f9ba37d4dcd175be8f666 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/b47bb145b9afab8cd03f9ba37d4dcd175be8f666/grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
67,
1637,
12,
2890,
16,
261,
3870,
16,
5347,
3631,
18043,
4672,
3536,
23134,
635,
2595,
471,
5347,
5983,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5532,
67,
1637,
12,
2890,
16,
261,
3870,
16,
5347,
3631,
18043,
4672,
3536,
23134,
635,
2595,
471,
5347,
5983,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
addModlist(groups[gid], ignore_list)) | addModlist(group, ignore_list)) | def save_group(self, gid): """ Save one group in the LDAP backend. If updating, the entry will be dropped prior of insertion. """ | a99fa36c9c57f1ef71f9ac0df9bc184bbcc4d91b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/a99fa36c9c57f1ef71f9ac0df9bc184bbcc4d91b/ldap_backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
1655,
12,
2890,
16,
11399,
4672,
3536,
7074,
1245,
1041,
316,
326,
11916,
4221,
18,
971,
9702,
16,
326,
1241,
903,
506,
14611,
6432,
434,
12626,
18,
3536,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
67,
1655,
12,
2890,
16,
11399,
4672,
3536,
7074,
1245,
1041,
316,
326,
11916,
4221,
18,
971,
9702,
16,
326,
1241,
903,
506,
14611,
6432,
434,
12626,
18,
3536,
2,
-100,
-100,
-100,
... |
if new_maxrate != self.MaxRate: | if new_maxrate != (self.MaxRate * 1000): | def notify(self, new_maxrate, new_maxexemptrate, usedbytes, usedi2bytes): """ Notify the slice it's being capped. """ # Prepare message parameters from the template message = "" params = {'slice': self.name, 'hostname': socket.gethostname(), 'since': time.asctime(time.gmtime(self.time)) + " GMT", 'until': time.asctime(... | 6b26be0d4150e26037084ba1f634acc62059e577 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6995/6b26be0d4150e26037084ba1f634acc62059e577/bwmon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
394,
67,
1896,
5141,
16,
394,
67,
1896,
338,
351,
6723,
340,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
4672,
3536,
10918,
326,
2788,
518,
1807,
3832,
3523,
1845,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
2890,
16,
394,
67,
1896,
5141,
16,
394,
67,
1896,
338,
351,
6723,
340,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
4672,
3536,
10918,
326,
2788,
518,
1807,
3832,
3523,
1845,
18,
... |
try: p = Doxy2SWIG(fname) p.generate() self.content.extend(p.content) except Exception, e: print "This file can not be parsed, something wrong with file format" print e pass | p = Doxy2SWIG(fname) p.generate() self.content.extend(p.content) | def do_doxygenindex(self, node): '''Parse files included as compound, member and refid, like | f318f5e7dc0678629d0e7fcf7471689abf0cbf27 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/f318f5e7dc0678629d0e7fcf7471689abf0cbf27/doxy2swig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2896,
1698,
4507,
1615,
12,
2890,
16,
756,
4672,
9163,
3201,
1390,
5849,
487,
11360,
16,
3140,
471,
1278,
350,
16,
3007,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2896,
1698,
4507,
1615,
12,
2890,
16,
756,
4672,
9163,
3201,
1390,
5849,
487,
11360,
16,
3140,
471,
1278,
350,
16,
3007,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return False | return False | def make_links(uri, uid, dbname, source, destination, module, user, pwd): if module in ('base','quality_integration_server'): return True if not os.path.islink(destination + module): if not os.path.isdir(destination + module): for path in source: if os.path.isdir(path + '/' + module): os.symlink(path + '/' + module, de... | 394b361dedd1707263f6181bd5d85f013837d7c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/394b361dedd1707263f6181bd5d85f013837d7c7/base_quality_interrogation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
7135,
12,
1650,
16,
4555,
16,
18448,
16,
1084,
16,
2929,
16,
1605,
16,
729,
16,
14720,
4672,
309,
1605,
316,
7707,
1969,
17023,
16495,
67,
27667,
67,
3567,
11,
4672,
327,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7135,
12,
1650,
16,
4555,
16,
18448,
16,
1084,
16,
2929,
16,
1605,
16,
729,
16,
14720,
4672,
309,
1605,
316,
7707,
1969,
17023,
16495,
67,
27667,
67,
3567,
11,
4672,
327,
105... |
template = { 'id' : None, 'jobId' : None, 'taskId' : None, 'schedulerId' : None, 'schedulerParentId' : None, | template = { 'schedulerId' : None, 'schedulerParentId' : None, | def main(): """ __main__ """ # load ad-hoc JSON encoder if simplejson is not present try : import simplejson as json except: json = myJSONEncoder() # parse options try: opts, args = getopt.getopt(sys.argv[1:], "", ["help", "parentId=", "jobId="]) except getopt.GetoptError, err: print usage() sys.exit(1) inputFile = ... | c2a579071e563b8df3c16bf252fce1689666d1f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/c2a579071e563b8df3c16bf252fce1689666d1f9/GLiteStatusQuery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
1001,
5254,
972,
3536,
225,
468,
1262,
1261,
17,
76,
504,
1796,
7261,
309,
4143,
1977,
353,
486,
3430,
775,
294,
1930,
4143,
1977,
487,
1163,
1335,
30,
1163,
273,
3399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3536,
1001,
5254,
972,
3536,
225,
468,
1262,
1261,
17,
76,
504,
1796,
7261,
309,
4143,
1977,
353,
486,
3430,
775,
294,
1930,
4143,
1977,
487,
1163,
1335,
30,
1163,
273,
3399... |
gLogger.info("RequestPreparation.prepareNewReplicas: Obtained %s New replicas for preparation." % len(replicaIDs)) | gLogger.info( "RequestPreparation.prepareNewReplicas: Obtained %s New replicas for preparation." % len( replicaIDs ) ) | def prepareNewReplicas(self): """ This is the first logical task to be executed and manages the New->Waiting transition of the Replicas """ res = self.__getNewReplicas() if not res['OK']: gLogger.fatal("RequestPreparation.prepareNewReplicas: Failed to get replicas from StagerDB.",res['Message']) return res if not res['... | d68cb60fd991fa9f206177d2794f8d04f940cd00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d68cb60fd991fa9f206177d2794f8d04f940cd00/RequestPreparationAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1908,
17248,
12,
2890,
4672,
3536,
1220,
353,
326,
1122,
6374,
1562,
358,
506,
7120,
471,
20754,
281,
326,
1166,
2122,
15946,
6007,
434,
326,
31222,
3536,
400,
273,
365,
16186,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1908,
17248,
12,
2890,
4672,
3536,
1220,
353,
326,
1122,
6374,
1562,
358,
506,
7120,
471,
20754,
281,
326,
1166,
2122,
15946,
6007,
434,
326,
31222,
3536,
400,
273,
365,
16186,
588,
... |
""" """ | """ Sends notification email(s) to the administrators when people apply for a role If the role is requested at portal level, the addresses from the 'administrator_email' property get it If the role is requested at folder level, all 'maintainer_email' of the parent folders get it and eventually the portal 'administrator... | def processRequestRoleForm(self, username='', password='', confirm='', firstname='', lastname='', email='', organisation='', location='', comments='', REQUEST=None): """ """ location_path = 'unspecified' location_title = 'unspecified' if location == '': location_path = '' location_title = self.site_title location_maint... | 5501e0def1defb2a06dd779167fd214427ed0016 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3287/5501e0def1defb2a06dd779167fd214427ed0016/NySite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
691,
2996,
1204,
12,
2890,
16,
2718,
2218,
2187,
2201,
2218,
2187,
6932,
2218,
2187,
1122,
529,
2218,
2187,
1142,
529,
2218,
2187,
2699,
2218,
2187,
15501,
10742,
2218,
2187,
2117,
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,
1207,
691,
2996,
1204,
12,
2890,
16,
2718,
2218,
2187,
2201,
2218,
2187,
6932,
2218,
2187,
1122,
529,
2218,
2187,
1142,
529,
2218,
2187,
2699,
2218,
2187,
15501,
10742,
2218,
2187,
2117,
2... |
def precompile(ex, signature=(), copy_args=(), **kwargs): | def precompile(ex, signature=(), **kwargs): | def precompile(ex, signature=(), copy_args=(), **kwargs): """Compile the expression to an intermediate form. """ types = dict(signature) input_order = [name for (name, type) in signature] context = getContext(kwargs) if isinstance(ex, str): ex = stringToExpression(ex, types, context) # the AST is like the expression,... | dbdc6fcdb42a095230dca98e217558ae353ee454 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12687/dbdc6fcdb42a095230dca98e217558ae353ee454/compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
11100,
12,
338,
16,
3372,
33,
9334,
2826,
4333,
4672,
3536,
9937,
326,
2652,
358,
392,
12110,
646,
18,
3536,
1953,
273,
2065,
12,
8195,
13,
810,
67,
1019,
273,
306,
529,
364,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
11100,
12,
338,
16,
3372,
33,
9334,
2826,
4333,
4672,
3536,
9937,
326,
2652,
358,
392,
12110,
646,
18,
3536,
1953,
273,
2065,
12,
8195,
13,
810,
67,
1019,
273,
306,
529,
364,
261,... |
par = ' : ' + ','.join(['%s:=%s'%(a,b) for a,b in params.items()]) | par = ' : ' + ','.join(['%s:=%s'%(a,self(b)) for a,b in params.items()]) | def function_call(self, function, args=[], params={}, nvals=1): if not isinstance(args, list): args = [args] for i in range(len(args)): if not isinstance(args[i], ExpectElement): args[i] = self(args[i]) nvals = int(nvals) if len(params) == 0: par = '' else: par = ' : ' + ','.join(['%s:=%s'%(a,b) for a,b in params.items... | 7a3f1656a83a3ca0847a8fd950f2c6f00f7ec58d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7a3f1656a83a3ca0847a8fd950f2c6f00f7ec58d/magma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
309,
486,
1549,
12,
1968,
16,
666,
4672,
833,
273,
306,
1968,
65,
364,
277,
316,
1048,
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,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
309,
486,
1549,
12,
1968,
16,
666,
4672,
833,
273,
306,
1968,
65,
364,
277,
316,
1048,
12... |
sage: a < b | sage: a < b | def __cmp__(self, right): """ EXAMPLES:: | de385fa597d4eb00a76b423dcfb5c8c6ebf59257 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/de385fa597d4eb00a76b423dcfb5c8c6ebf59257/formal_sum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
5675,
8900,
11386,
2866,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
4672,
3536,
5675,
8900,
11386,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.todo[url].append(origin) | if origin not in self.todo[url]: self.todo[url].append(origin) | def newtodolink(self, url, origin): | a870cf128cdb4a76dc17c103820d903325fd04fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a870cf128cdb4a76dc17c103820d903325fd04fb/wcnew.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
88,
369,
355,
754,
12,
2890,
16,
880,
16,
4026,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
88,
369,
355,
754,
12,
2890,
16,
880,
16,
4026,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
None,'Open Orange Data File') self.openFile(str(filename)) | None,'Open Orange Data File')) if filename == "": return if filename in self.recentFiles: self.recentFiles.remove(filename) self.recentFiles.insert(0, filename) self.setFileList() self.openFile(self.recentFiles[0]) def setFileList(self): self.filecombo.clear() for file in self.recentFiles: if file == "(none)": self.... | def browseFile(self): "Display a FileDialog and select a file" if self.recentFiles==[]: startfile="." else: startfile=self.recentFiles[0] filename=QFileDialog.getOpenFileName(startfile, 'Tab-delimited files (*.tab *.txt)\nC4.5 files (*.data)\nAssistant files (*.dat)\nRetis files (*.rda *.rdo)\nAll files(*.*)', None,'Op... | b9fd533735ae70be1b0a56c619caab95650f43aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/b9fd533735ae70be1b0a56c619caab95650f43aa/OWFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
812,
12,
2890,
4672,
315,
4236,
279,
1387,
6353,
471,
2027,
279,
585,
6,
309,
365,
18,
20872,
2697,
631,
8526,
30,
787,
768,
1546,
1199,
469,
30,
787,
768,
33,
2890,
18,
20872,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
812,
12,
2890,
4672,
315,
4236,
279,
1387,
6353,
471,
2027,
279,
585,
6,
309,
365,
18,
20872,
2697,
631,
8526,
30,
787,
768,
1546,
1199,
469,
30,
787,
768,
33,
2890,
18,
20872,
... |
d = abs(abs(prediction) - abs(diff)) | d = distance(prediction, diff) | def __init__(self): self.win = 0 self.loss = 0 self.rate = 1500 | f6053dfe08b5344fc682a4900a0c09b4316a7eac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14994/f6053dfe08b5344fc682a4900a0c09b4316a7eac/elo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8082,
273,
374,
365,
18,
7873,
273,
374,
365,
18,
5141,
273,
4711,
713,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8082,
273,
374,
365,
18,
7873,
273,
374,
365,
18,
5141,
273,
4711,
713,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
SYSLOG = SystemLogger() def process_file(infile, outfile, opts): if outfile is not None: print '%s -> %s' % (infile, outfile) else: print infile outfile = infile if not os.path.isfile(infile): SYSLOG.error("'%s' is not a regular file" % infile) return data = TestData(infile, opts['fixcomments']) data.serialize(outfil... | class Processor: def __init__(self): self.errors = [] def process_file(self, infile, outfile, opts): try: if outfile is not None: print '%s -> %s' % (infile, outfile) else: print infile outfile = infile if not os.path.isfile(infile): self.errors.append("'%s' is not a regular file" % infile) return data = TestData(inf... | def _create_mapping(names): mapping = utils.NormalizedDict() for name in names: mapping[name] = name if 'Documentation' in names: mapping['Document'] = 'Documentation' return mapping | 828a91f57a32f3b2701cb3328493ca38352888eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/828a91f57a32f3b2701cb3328493ca38352888eb/robotidy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
6770,
12,
1973,
4672,
2874,
273,
2990,
18,
15577,
5014,
1435,
364,
508,
316,
1257,
30,
2874,
63,
529,
65,
273,
508,
309,
296,
18905,
11,
316,
1257,
30,
2874,
3292,
2519,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
6770,
12,
1973,
4672,
2874,
273,
2990,
18,
15577,
5014,
1435,
364,
508,
316,
1257,
30,
2874,
63,
529,
65,
273,
508,
309,
296,
18905,
11,
316,
1257,
30,
2874,
3292,
2519,... |
SIGNATURE='MOSS' | def openfile(self, path, activate = 1): if activate: self.activate() self.OpenURL("file:///" + string.join(string.split(path,':'), '/')) | c4637cd08a9bbc96efb42cb813b77be74b9dae66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c4637cd08a9bbc96efb42cb813b77be74b9dae66/PyDocSearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
768,
12,
2890,
16,
589,
16,
10235,
273,
404,
4672,
309,
10235,
30,
365,
18,
10014,
1435,
365,
18,
3678,
1785,
2932,
768,
2207,
4898,
397,
533,
18,
5701,
12,
1080,
18,
4939,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
768,
12,
2890,
16,
589,
16,
10235,
273,
404,
4672,
309,
10235,
30,
365,
18,
10014,
1435,
365,
18,
3678,
1785,
2932,
768,
2207,
4898,
397,
533,
18,
5701,
12,
1080,
18,
4939,
12,
... | |
if not debugger: | if not debugger and \ self.editwin.getvar("<<toggle-jit-stack-viewer>>"): | def run_module_event(self, event, debugger=None): if not self.editwin.get_saved(): tkMessageBox.showerror("Not saved", "Please save first!", master=self.editwin.text) self.editwin.text.focus_set() return filename = self.editwin.io.filename if not filename: tkMessageBox.showerror("No file name", "This window has no file... | 4ec9da86727b190499568402b74b1e5cc7449354 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4ec9da86727b190499568402b74b1e5cc7449354/ScriptBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2978,
67,
2575,
12,
2890,
16,
871,
16,
19977,
33,
7036,
4672,
309,
486,
365,
18,
4619,
8082,
18,
588,
67,
14077,
13332,
13030,
27647,
18,
4500,
1636,
2932,
1248,
5198,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2978,
67,
2575,
12,
2890,
16,
871,
16,
19977,
33,
7036,
4672,
309,
486,
365,
18,
4619,
8082,
18,
588,
67,
14077,
13332,
13030,
27647,
18,
4500,
1636,
2932,
1248,
5198,
3113,
... |
if e.code != 404: print "Cannot obtain 'pres-rules' document: %s" % str(e) | print "Cannot obtain 'pres-rules' document: %s" % str(e) except HTTPError, e: if e.response.status != 404: print "Cannot obtain 'pres-rules' document: %s %s" % (e.response.status, e.response.reason) | def get_prules(): global prules, prules_etag, allow_rule, block_rule, allow_rule_identities, block_rule_identities prules = None prules_etag = None allow_rule = None allow_rule_identities = None block_rule = None block_rule_identities = None try: doc = xcap_client.get('pres-rules') except URLError, e: if e.code != 404:... | 6c1f70fae84576a00a60f0d982205174bc22da5a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/6c1f70fae84576a00a60f0d982205174bc22da5a/xcap_pres_rules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
683,
1513,
13332,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1699,
67,
5345,
16,
1203,
67,
5345,
16,
1699,
67,
5345,
67,
6392,
1961,
16,
1203,
67,
5345,
67,
6392,
1961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
683,
1513,
13332,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1699,
67,
5345,
16,
1203,
67,
5345,
16,
1699,
67,
5345,
67,
6392,
1961,
16,
1203,
67,
5345,
67,
6392,
1961,
... |
newlinelist=[] | newlinelist = [] | def export_cb(self,*args): ipfile=self.frame_dict['Files'].get('Input') opfile=self.frame_dict['Files'].get('Output') if os.path.isfile(opfile): resp=GtkExtra.message_box('Confirmation',opfile + ' exists. Overwrite?',('Yes','No')) if resp == 'No': return elif len(opfile) == 0: gvutils.error('No output filename entered... | 18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
2359,
768,
33,
2890,
18,
3789,
67,
1576,
3292,
2697,
29489,
588,
2668,
1210,
6134,
1061,
768,
33,
2890,
18,
3789,
67,
1576,
3292,
2697,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
2359,
768,
33,
2890,
18,
3789,
67,
1576,
3292,
2697,
29489,
588,
2668,
1210,
6134,
1061,
768,
33,
2890,
18,
3789,
67,
1576,
3292,
2697,
29... |
absolute_error_tolerance=0.0, relative_error_tolerance=1e-6, derivs=1) scale=1.0/sum(integral) if reversed: lowerSlope=-1.0/binheights[0] upperSlope=-1.0/binheights[-1] else: lowerSlope=1.0/binheights[0] upperSlope=1.0/binheights[-1] | absolute_error_tolerance=0, relative_error_tolerance=1e-6) scale=1.0/sum(integral) | def __init__(self, bincenters, binheights): np=len(binheights) be=_numeric.array(bincenters) bh=_numeric.array(binheights) reversed = be[1] < be[0] #// check for backwards channels if reversed: be=be[::-1] bh=bh[::-1] temp=LogLogInterpolatingFunction(be, bh) #// create a temporary InterpolatingFunction to integrat... | 9caf153bb9f0ef6c8561b311f4552c95942e2d5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/9caf153bb9f0ef6c8561b311f4552c95942e2d5d/C2Functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4158,
20051,
16,
4158,
4210,
87,
4672,
1130,
33,
1897,
12,
4757,
4210,
87,
13,
506,
33,
67,
5246,
18,
1126,
12,
4757,
20051,
13,
19822,
33,
67,
5246,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4158,
20051,
16,
4158,
4210,
87,
4672,
1130,
33,
1897,
12,
4757,
4210,
87,
13,
506,
33,
67,
5246,
18,
1126,
12,
4757,
20051,
13,
19822,
33,
67,
5246,
1... |
self.assertEqual(self.builder.getPackage("").getName(),"","Parser was unable to get class name") | self.assertEqual(self.builder.getClass("MyClass").getName(),"MyClass","Parser was unable to get class name") | def testParseClassDefinition(self): testUnamedPackageTestCase = unittest.FunctionTestCase(testParseUnNamedPackage) self.assertEqual(self.builder.getPackage("").getName(),"","Parser was unable to get class name") | f64bc947f220b828e091ef604d5d7c4dd321e9ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/f64bc947f220b828e091ef604d5d7c4dd321e9ea/unitTests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3201,
797,
1852,
12,
2890,
4672,
225,
1842,
984,
2808,
2261,
4709,
2449,
273,
2836,
3813,
18,
2083,
4709,
2449,
12,
3813,
3201,
984,
7604,
2261,
13,
225,
365,
18,
11231,
5812,
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,
1842,
3201,
797,
1852,
12,
2890,
4672,
225,
1842,
984,
2808,
2261,
4709,
2449,
273,
2836,
3813,
18,
2083,
4709,
2449,
12,
3813,
3201,
984,
7604,
2261,
13,
225,
365,
18,
11231,
5812,
12,
... |
if len(answers) > 1 and answers[0][0] != 'TODO:Mah Jongg': | if len(answers) > 1: | def moved(self, results): """a player did something""" answers = [] for result in results: player, args = result if isinstance(args, tuple): answer = args[0] args = args[1:] else: answer = args args = None if answer and answer != 'No Claim': answers.append((player, answer, args)) if not answers: self.nextTurn() return ... | 69293df8bde10feb368c371f7f7ce6631795757c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/69293df8bde10feb368c371f7f7ce6631795757c/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10456,
12,
2890,
16,
1686,
4672,
3536,
69,
7291,
5061,
5943,
8395,
12415,
273,
5378,
364,
563,
316,
1686,
30,
7291,
16,
833,
273,
563,
309,
1549,
12,
1968,
16,
3193,
4672,
5803,
273,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10456,
12,
2890,
16,
1686,
4672,
3536,
69,
7291,
5061,
5943,
8395,
12415,
273,
5378,
364,
563,
316,
1686,
30,
7291,
16,
833,
273,
563,
309,
1549,
12,
1968,
16,
3193,
4672,
5803,
273,
8... |
You need a Kerberos ticket before running this. I'm not going to pass passwords over HTTP. | You need a Kerberos ticket before running this. I'm not going to pass passwords over HTTP. | def __init__(self, nagios_instance='http://monitor.mgmt.stage.redhat.com/nagios/cgi-bin/cmd.cgi'): """ You need a Kerberos ticket before running this. I'm not going to pass passwords over HTTP. """ self.nagios_instance = nagios_instance opener = urllib2.build_opener(HTTPKerberosAuthHandler()) urllib2.install_opener(ope... | bb29eec751694579f6d2612e2ac277d88fc6328f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12876/bb29eec751694579f6d2612e2ac277d88fc6328f/nagios.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
346,
7441,
67,
1336,
2218,
2505,
2207,
10259,
18,
9319,
18,
12869,
18,
1118,
11304,
18,
832,
19,
27132,
7441,
19,
19062,
17,
4757,
19,
4172,
18,
190... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
346,
7441,
67,
1336,
2218,
2505,
2207,
10259,
18,
9319,
18,
12869,
18,
1118,
11304,
18,
832,
19,
27132,
7441,
19,
19062,
17,
4757,
19,
4172,
18,
190... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.