rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
stack.append((tag_name, attributes, None)) | stack.append((tag_name, attributes, None)) | def pre_stream(stream , tag_uri, tag_name, attributes, pdf_stylesheet): stack = [] story = [] styles = getSampleStyleSheet() styleN = styles['Normal'] content = [] has_content = False stack.append((tag_name, attributes, None)) while True: event, value, line_number = stream_next(stream) if event == None: break #### STA... | fc0ed9558daebdc59e52053465cd8f2b7822b279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/fc0ed9558daebdc59e52053465cd8f2b7822b279/rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
67,
3256,
12,
3256,
269,
1047,
67,
1650,
16,
1047,
67,
529,
16,
1677,
16,
8169,
67,
19403,
4672,
2110,
273,
5378,
17285,
273,
5378,
5687,
273,
26078,
2885,
8229,
1435,
2154,
50,
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,
675,
67,
3256,
12,
3256,
269,
1047,
67,
1650,
16,
1047,
67,
529,
16,
1677,
16,
8169,
67,
19403,
4672,
2110,
273,
5378,
17285,
273,
5378,
5687,
273,
26078,
2885,
8229,
1435,
2154,
50,
2... |
m = self.atoms.get_momenta() return sum(m) | return self.atoms.get_momenta().sum(0) | def get_center_of_mass_momentum(self): "Get the center of mass momentum." m = self.atoms.get_momenta() return sum(m) | 0f3c4aa5713483fc2a6d3f3058ac9bdd7fc7b57c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/0f3c4aa5713483fc2a6d3f3058ac9bdd7fc7b57c/npt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5693,
67,
792,
67,
10424,
67,
22027,
379,
12,
2890,
4672,
315,
967,
326,
4617,
434,
8039,
10382,
379,
1199,
312,
273,
365,
18,
14937,
18,
588,
67,
22027,
69,
1435,
327,
2142,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
5693,
67,
792,
67,
10424,
67,
22027,
379,
12,
2890,
4672,
315,
967,
326,
4617,
434,
8039,
10382,
379,
1199,
312,
273,
365,
18,
14937,
18,
588,
67,
22027,
69,
1435,
327,
2142,
... |
raise PatchError("bad hunk | raise PatchError(_("bad hunk (self.number, x)) | def read_context_hunk(self, lr): self.desc = lr.readline() m = contextdesc.match(self.desc) if not m: raise PatchError("bad hunk #%d" % self.number) foo, self.starta, foo2, aend, foo3 = m.groups() self.starta = int(self.starta) if aend == None: aend = self.starta self.lena = int(aend) - self.starta if self.starta: self... | 252c8d85581f2987e5c62ae7983c3003cc9e5438 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/252c8d85581f2987e5c62ae7983c3003cc9e5438/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2472,
67,
76,
1683,
12,
2890,
16,
12226,
4672,
365,
18,
5569,
273,
12226,
18,
896,
1369,
1435,
312,
273,
819,
5569,
18,
1916,
12,
2890,
18,
5569,
13,
309,
486,
312,
30,
1002... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2472,
67,
76,
1683,
12,
2890,
16,
12226,
4672,
365,
18,
5569,
273,
12226,
18,
896,
1369,
1435,
312,
273,
819,
5569,
18,
1916,
12,
2890,
18,
5569,
13,
309,
486,
312,
30,
1002... |
for status in self._message.status: was_selected = False had_item = False if (self._name_to_id.has_key(status.name)): id = self._name_to_id[status.name] had_item = True if (self._tree_control.GetSelection() == id): was_selected = True | for message in self._messages: for status in message.status: was_selected = False had_item = False if (self._name_to_id.has_key(status.name)): id = self._name_to_id[status.name] had_item = True if (self._tree_control.GetSelection() == id): was_selected = True self._tree_control.Delete(id) | def new_message(self): self._mutex.acquire() had_errors = False for status in self._message.status: was_selected = False had_item = False if (self._name_to_id.has_key(status.name)): id = self._name_to_id[status.name] had_item = True if (self._tree_control.GetSelection() == id): was_selected = True self._tree_control... | cd5bd36facfac4319952f35e8d299d4046f79a6e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10233/cd5bd36facfac4319952f35e8d299d4046f79a6e/monitor_panel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2150,
12,
2890,
4672,
365,
6315,
29946,
18,
1077,
1039,
1435,
225,
9323,
67,
4324,
273,
1083,
225,
364,
883,
316,
365,
6315,
6833,
30,
364,
1267,
316,
883,
18,
2327,
30,
1703,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
2150,
12,
2890,
4672,
365,
6315,
29946,
18,
1077,
1039,
1435,
225,
9323,
67,
4324,
273,
1083,
225,
364,
883,
316,
365,
6315,
6833,
30,
364,
1267,
316,
883,
18,
2327,
30,
1703,... |
timeout = int(timeout*1000) | if timeout is not None: timeout = int(timeout*1000) | def poll2 (timeout=0.0, map=None): import poll if map is None: map=socket_map # timeout is in milliseconds timeout = int(timeout*1000) if map: l = [] for fd, obj in map.items(): flags = 0 if obj.readable(): flags = poll.POLLIN if obj.writable(): flags = flags | poll.POLLOUT if flags: l.append ((fd, flags)) r = poll.pol... | 4d13fa4982c96d72a875ae82cd0ec0c978f8007c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4d13fa4982c96d72a875ae82cd0ec0c978f8007c/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
22,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
1930,
7672,
309,
852,
353,
599,
30,
852,
33,
7814,
67,
1458,
468,
2021,
353,
316,
10993,
430,
2021,
353,
486,
599,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
22,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
1930,
7672,
309,
852,
353,
599,
30,
852,
33,
7814,
67,
1458,
468,
2021,
353,
316,
10993,
430,
2021,
353,
486,
599,
30,
... |
self.assertEqual(-0x7fffffff, -2147483647) | if platform_long_is_32_bits: self.assertEqual(-0x7fffffff, -2147483647) else: self.assertEqual(-0x7fffffffffffffff, -9223372036854775807) | def test_hex_baseline(self): # Baseline tests self.assertEqual(0x0, 0) self.assertEqual(0x10, 16) self.assertEqual(0x7fffffff, 2147483647) # Ditto with a minus sign and parentheses self.assertEqual(-(0x0), 0) self.assertEqual(-(0x10), -16) self.assertEqual(-(0x7fffffff), -2147483647) # Ditto with a minus sign and NO pa... | 9f9d6e6c1d506067db8a1309e91d568018bef591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9f9d6e6c1d506067db8a1309e91d568018bef591/test_hexoct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7118,
67,
27818,
12,
2890,
4672,
468,
605,
345,
3027,
7434,
365,
18,
11231,
5812,
12,
20,
92,
20,
16,
374,
13,
365,
18,
11231,
5812,
12,
20,
92,
2163,
16,
2872,
13,
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,
1842,
67,
7118,
67,
27818,
12,
2890,
4672,
468,
605,
345,
3027,
7434,
365,
18,
11231,
5812,
12,
20,
92,
20,
16,
374,
13,
365,
18,
11231,
5812,
12,
20,
92,
2163,
16,
2872,
13,
365,
... |
(x^2 - 15*x - 18) * x | x * (x^2 - 15*x - 18) | def fcp(x, var='x'): """ Return the factorization of the characteristic polynomial of x. EXAMPLES: sage: M = MatrixSpace(QQ,3,3) sage: A = M([1,2,3,4,5,6,7,8,9]) sage: fcp(A, 'x') (x^2 - 15*x - 18) * x """ try: return x.fcp(var) except AttributeError: return factor(charpoly(x, var)) | 33bced5ab60b527f90cccf90f0cf4f0c8ed6fa37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/33bced5ab60b527f90cccf90f0cf4f0c8ed6fa37/functional.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
4057,
12,
92,
16,
569,
2218,
92,
11,
4672,
3536,
2000,
326,
5578,
1588,
434,
326,
23158,
16991,
434,
619,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
490,
273,
7298,
3819,
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,
284,
4057,
12,
92,
16,
569,
2218,
92,
11,
4672,
3536,
2000,
326,
5578,
1588,
434,
326,
23158,
16991,
434,
619,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
490,
273,
7298,
3819,
12,
... |
msg += "\n%s" % self.context.currentRecord.srcline | msg += "\n%s" % self.context.srcline | def warn(self, text, source=True): msg = "" if source: msg = "%s, line %d (%d), " % (self.context.currentRecord.srcfile, self.context.currentRecord.linenum, self.context.global_linenum) msg += "warning: %s" % (text) if source: msg += "\n%s" % self.context.currentRecord.srcline print >>sys.stderr, msg self.log(2, msg) s... | f729bf293a24574bf4c73fe4fdd36424549e0262 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/f729bf293a24574bf4c73fe4fdd36424549e0262/assembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
12,
2890,
16,
977,
16,
1084,
33,
5510,
4672,
1234,
273,
1408,
309,
1084,
30,
1234,
273,
2213,
87,
16,
980,
738,
72,
6142,
72,
3631,
315,
738,
261,
2890,
18,
2472,
18,
2972,
211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
12,
2890,
16,
977,
16,
1084,
33,
5510,
4672,
1234,
273,
1408,
309,
1084,
30,
1234,
273,
2213,
87,
16,
980,
738,
72,
6142,
72,
3631,
315,
738,
261,
2890,
18,
2472,
18,
2972,
211... |
ALGORITHM: Uses scipy.optimize.leastsq which in turn uses MINPACK’s lmdif and lmder algorithms. | ALGORITHM: Uses scipy.optimize.leastsq which in turn uses MINPACK's lmdif and lmder algorithms. | sage: def f(x, a, b, c): return a * sin(b * x - c) | 7ae4aa6a7f4f0b8f9cefffe57f7ee37391533fd5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7ae4aa6a7f4f0b8f9cefffe57f7ee37391533fd5/optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
284,
12,
92,
16,
279,
16,
324,
16,
276,
4672,
327,
279,
380,
5367,
12,
70,
380,
619,
300,
276,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
272,
410,
30,
1652,
284,
12,
92,
16,
279,
16,
324,
16,
276,
4672,
327,
279,
380,
5367,
12,
70,
380,
619,
300,
276,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
expanded.add(self.groupTreeCtrl.GetPyData(item)) | expanded.add(self.groupTreeCtrl.GetPyData(item)[1]) | def _refresh(self): # Get the tree from the server try: group_tree = self.client.getGroupTree() except SchoolToolError, e: self.SetStatusText(str(e)) group_tree = [] else: self.SetStatusText(self.client.status) | 7a970a1ab85c914789914ae7bec4734ebf27787f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/7a970a1ab85c914789914ae7bec4734ebf27787f/wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9144,
12,
2890,
4672,
468,
968,
326,
2151,
628,
326,
1438,
775,
30,
1041,
67,
3413,
273,
365,
18,
2625,
18,
588,
1114,
2471,
1435,
1335,
348,
343,
1371,
6364,
668,
16,
425,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9144,
12,
2890,
4672,
468,
968,
326,
2151,
628,
326,
1438,
775,
30,
1041,
67,
3413,
273,
365,
18,
2625,
18,
588,
1114,
2471,
1435,
1335,
348,
343,
1371,
6364,
668,
16,
425,
30,
... |
elif opt == 'no-update-profile': | elif opt == '--no-update-profile': | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... | dcbf012c57656f19de039298576af4487bd41845 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8296/dcbf012c57656f19de039298576af4487bd41845/bootstrap-users.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
225,
2718,
273,
315,
3666,
6,
2201,
273,
315,
3666,
6,
880,
273,
315,
2505,
2207,
13014,
30,
3672,
3672,
19,
14419,
6,
2341,
67,
5577,
273,
599,
2488,
67,
5577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
225,
2718,
273,
315,
3666,
6,
2201,
273,
315,
3666,
6,
880,
273,
315,
2505,
2207,
13014,
30,
3672,
3672,
19,
14419,
6,
2341,
67,
5577,
273,
599,
2488,
67,
5577,
... |
def decodeGivenEventualEncoding(self, eventualEncoding): | def __str__(self, encoding=DEFAULT_OUTPUT_ENCODING): | def decodeGivenEventualEncoding(self, eventualEncoding): return u'<![CDATA[' + self + u']]>' | 7300e101f39b7a1a436c6765d140c987cbc58a45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7300e101f39b7a1a436c6765d140c987cbc58a45/BeautifulSoup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
6083,
1133,
1462,
4705,
12,
2890,
16,
871,
1462,
4705,
4672,
327,
582,
11,
5586,
63,
18375,
3292,
397,
365,
397,
582,
3546,
65,
1870,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
6083,
1133,
1462,
4705,
12,
2890,
16,
871,
1462,
4705,
4672,
327,
582,
11,
5586,
63,
18375,
3292,
397,
365,
397,
582,
3546,
65,
1870,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rconfig.environ = environ | rconfig.environ = environ | def app (environ, start_response): '''A WSGI application.''' try: request = Request (environ) # The requested path. routes expects a utf-8 encoded str object. url = urllib.unquote (environ['PATH_INFO'][len (environ['SCRIPT_NAME']):]) rconfig = routes.request_config () rconfig.mapper = m # why? #rconfig.redirect = ? rc... | f230673a3c494d15cb1e8789e53507754ca76771 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7252/f230673a3c494d15cb1e8789e53507754ca76771/web.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
261,
28684,
16,
787,
67,
2740,
4672,
9163,
37,
7649,
13797,
2521,
1093,
6309,
775,
30,
590,
273,
1567,
261,
28684,
13,
468,
1021,
3764,
589,
18,
4912,
10999,
279,
7718,
17,
28,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
261,
28684,
16,
787,
67,
2740,
4672,
9163,
37,
7649,
13797,
2521,
1093,
6309,
775,
30,
590,
273,
1567,
261,
28684,
13,
468,
1021,
3764,
589,
18,
4912,
10999,
279,
7718,
17,
28,
37... |
" --gps-start-time "+str(start)+\ " --gps-end-time "+str(end)+\ | " --gps-start-time "+str(int(start))+\ " --gps-end-time "+str(int(end))+\ | def grab_segments(start,end,flag): """ Returns a segmentlist containing the segments during which the given flag was active in the given period. """ #== construct segment query segment_cmd = "ligolw_segment_query --query-segments"+\ " --segment_url https://segdb.ligo.caltech.edu"+\ " --include-segments "+flag+\ " --gp... | 60b65a7e57d28ab398b5333cb2466dd1465e30c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/60b65a7e57d28ab398b5333cb2466dd1465e30c8/dqSegmentUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11086,
67,
12838,
12,
1937,
16,
409,
16,
6420,
4672,
3536,
2860,
279,
3267,
1098,
4191,
326,
5155,
4982,
1492,
326,
864,
2982,
1703,
2695,
316,
326,
864,
3879,
18,
3536,
225,
468,
631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11086,
67,
12838,
12,
1937,
16,
409,
16,
6420,
4672,
3536,
2860,
279,
3267,
1098,
4191,
326,
5155,
4982,
1492,
326,
864,
2982,
1703,
2695,
316,
326,
864,
3879,
18,
3536,
225,
468,
631,
... |
""" rep = self._group._gap_().ConjugacyClass(g).Representative() reps = [x.Representative() for x in gap(self._group).ConjugacyClasses()] return self._base_ring(self._gap_classfunction[reps.index(rep)+1]) | sage: G = SymmetricGroup(3) sage: h = G((2,3)) sage: triv = G.trivial_character() sage: triv(h) 1 """ return self._base_ring(gap(g)._operation("^", self._gap_classfunction)) | def __call__(self, g): """ Evaluate the character on the group element g. Returns an error if g is not in G. EXAMPLES: sage: G = GL(2,7) sage: values = list(gap(G).CharacterTable().Irr()[2]) sage: chi = ClassFunction(G, values) sage: z = G([[3,0],[0,3]]); z [3 0] [0 3] sage: chi(z) 1 sage: G = GL(2,3) sage: chi = G.ir... | 6eface29621553474e9d5371d318849e3c7a26aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6eface29621553474e9d5371d318849e3c7a26aa/class_function.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
314,
4672,
3536,
18176,
326,
3351,
603,
326,
1041,
930,
314,
18,
2860,
392,
555,
309,
314,
353,
486,
316,
611,
18,
225,
5675,
8900,
11386,
30,
272,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
314,
4672,
3536,
18176,
326,
3351,
603,
326,
1041,
930,
314,
18,
2860,
392,
555,
309,
314,
353,
486,
316,
611,
18,
225,
5675,
8900,
11386,
30,
272,
410,
... |
print "export LD_LIBRARY_PATH="+BuildPkg.libdir print "export PYTHONPATH="+BuildPkg.libdir | print "export LD_LIBRARY_PATH="+BuildPkg.libdir+":$LD_LIBRARY_PATH" print "export PYTHONPATH="+BuildPkg.libdir+":$PYTHONPATH" | def main(): parser = OptionParser() parser.add_option("--build (default)", action="store_true", dest="build", help="Build sources.") parser.add_option("--test", action="store_true", dest="test", help="Run tests.") parser.add_option("--update", action="store_true", dest="update", help="Update sources from the subversio... | bc2bb4be291670fa1da4487f1f19d664d92d44fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5963/bc2bb4be291670fa1da4487f1f19d664d92d44fe/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2932,
413,
3510,
261,
1886,
2225,
16,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
3510,
3113,
2809,
1546,
3116,
5550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2932,
413,
3510,
261,
1886,
2225,
16,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
3510,
3113,
2809,
1546,
3116,
5550,
... |
[ob[field] for ob in obs], | [ob[fieldString] for ob in obs], | def __init__(self, xSize, ySize, xPadding, yPadding, xOffset, yOffset, xMin, xMax, yMin, yMax, xbin, ybin, xText, yText, ref, residue, querySet): | ad439b9482d995dc4c6b1723d32515ef05247abd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6163/ad439b9482d995dc4c6b1723d32515ef05247abd/ConfDistFuncs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
619,
1225,
16,
677,
1225,
16,
619,
9485,
16,
677,
9485,
16,
619,
2335,
16,
677,
2335,
16,
619,
2930,
16,
619,
2747,
16,
677,
2930,
16,
677,
2747,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
619,
1225,
16,
677,
1225,
16,
619,
9485,
16,
677,
9485,
16,
619,
2335,
16,
677,
2335,
16,
619,
2930,
16,
619,
2747,
16,
677,
2930,
16,
677,
2747,
16,
... |
field, field, milestone) | sql_escape(field), sql_escape(field), sql_escape(milestone)) | def get_tickets_for_milestone(env, db, milestone, field='component'): custom = field not in Ticket.std_fields cursor = db.cursor() sql = 'SELECT ticket.id AS id, ticket.status AS status, ' if custom: sql += 'ticket_custom.value AS %s ' \ 'FROM ticket LEFT OUTER JOIN ticket_custom ON id = ticket ' \ 'WHERE name = \'%s\'... | 42a161109cba100ba22cdd6f8b88abf7140638f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/42a161109cba100ba22cdd6f8b88abf7140638f8/Milestone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6470,
2413,
67,
1884,
67,
81,
18270,
12,
3074,
16,
1319,
16,
28664,
16,
652,
2218,
4652,
11,
4672,
1679,
273,
652,
486,
316,
22023,
18,
5084,
67,
2821,
3347,
273,
1319,
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,
336,
67,
6470,
2413,
67,
1884,
67,
81,
18270,
12,
3074,
16,
1319,
16,
28664,
16,
652,
2218,
4652,
11,
4672,
1679,
273,
652,
486,
316,
22023,
18,
5084,
67,
2821,
3347,
273,
1319,
18,
... |
Return the ideal with given gens over `\mathbf{Z}`. | Return the ideal with given gens over `\ZZ`. | def left_ideal(self, gens, check=True): r""" Return the ideal with given gens over `\mathbf{Z}`. | 1fe7e945a5e69662d3b79300c558387c31fea323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1fe7e945a5e69662d3b79300c558387c31fea323/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
67,
831,
287,
12,
2890,
16,
314,
773,
16,
866,
33,
5510,
4672,
436,
8395,
2000,
326,
23349,
598,
864,
314,
773,
1879,
1375,
64,
15949,
17156,
95,
62,
97,
8338,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
67,
831,
287,
12,
2890,
16,
314,
773,
16,
866,
33,
5510,
4672,
436,
8395,
2000,
326,
23349,
598,
864,
314,
773,
1879,
1375,
64,
15949,
17156,
95,
62,
97,
8338,
2,
-100,
-100,
-... |
def maybeBreak(self, iff=True, frameCount=1,displayPrefix=''): if self.shouldBreak(iff): | def maybeBreak(self, iff=True, test=None, frameCount=1, displayPrefix=''): if self.shouldBreak(iff=iff, test=test): | def maybeBreak(self, iff=True, frameCount=1,displayPrefix=''): if self.shouldBreak(iff): self.doBreak(frameCount=frameCount+1,displayPrefix=displayPrefix) | 3541d8d2ba2ad7bc9c6e220d903f141fed6f302d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/3541d8d2ba2ad7bc9c6e220d903f141fed6f302d/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6944,
7634,
12,
2890,
16,
21437,
33,
5510,
16,
1842,
33,
7036,
16,
2623,
1380,
33,
21,
16,
2562,
2244,
2218,
11,
4672,
309,
365,
18,
13139,
7634,
12,
3048,
33,
3048,
16,
1842,
33,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6944,
7634,
12,
2890,
16,
21437,
33,
5510,
16,
1842,
33,
7036,
16,
2623,
1380,
33,
21,
16,
2562,
2244,
2218,
11,
4672,
309,
365,
18,
13139,
7634,
12,
3048,
33,
3048,
16,
1842,
33,
38... |
if self.document_class in ('book', 'report', 'scrartcl', 'scrbook'): | if self.document_class in ('book', 'report', 'scrreprt', 'scrbook'): | def section(self, level): """ Return the section name at the given level for the specific document class. | abbf3bf2dc7d274e37010ec1a063bc32f4361ff5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/abbf3bf2dc7d274e37010ec1a063bc32f4361ff5/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2442,
12,
2890,
16,
1801,
4672,
3536,
2000,
326,
2442,
508,
622,
326,
864,
1801,
364,
326,
2923,
1668,
667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2442,
12,
2890,
16,
1801,
4672,
3536,
2000,
326,
2442,
508,
622,
326,
864,
1801,
364,
326,
2923,
1668,
667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
fe.f.fig2dev(lang = eps) | fe.f.fig2dev(lang = "eps") | def saveEPS(self, basepath, *args, **kwargs): """display.saveEPS(basepath, geometry=None, scale=None) | c0ad2181e81666dffe105b07d4c3927ef5383839 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/c0ad2181e81666dffe105b07d4c3927ef5383839/mapdisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
41,
5857,
12,
2890,
16,
23853,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
5417,
18,
5688,
41,
5857,
12,
1969,
803,
16,
5316,
33,
7036,
16,
3159,
33,
7036,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
41,
5857,
12,
2890,
16,
23853,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
5417,
18,
5688,
41,
5857,
12,
1969,
803,
16,
5316,
33,
7036,
16,
3159,
33,
7036,
13,
2,
-100,
-100,
-1... |
dict["Mask"] = PDFArray(self.mask) | if self.mask=='auto': if PILImage.info.has_key("transparency") : transparency = PILImage.info["transparency"] * 3 (tred, tgreen, tblue) = map(ord, PILImage.palette.data[transparency:transparency+3]) self.mask = (tred, tred, tgreen, tgreen, tblue, tblue) dict["Mask"] = PDFArray(self.mask) else: dict["Mask"] = PDFArray(s... | def format(self, document): S = PDFStream() S.content = self.streamContent dict = S.dictionary dict["Type"] = PDFName("XObject") dict["Subtype"] = PDFName("Image") dict["Width"] = self.width dict["Height"] = self.height dict["BitsPerComponent"] = self.bitsPerComponent dict["ColorSpace"] = PDFName(self.colorSpace) dict... | 165f597d1c3177ed3af75f4afc9562e6bb26b4c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/165f597d1c3177ed3af75f4afc9562e6bb26b4c1/pdfdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
1668,
4672,
348,
273,
12667,
1228,
1435,
348,
18,
1745,
273,
365,
18,
3256,
1350,
225,
2065,
273,
348,
18,
15556,
2065,
9614,
559,
11929,
273,
12667,
461,
2932,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
1668,
4672,
348,
273,
12667,
1228,
1435,
348,
18,
1745,
273,
365,
18,
3256,
1350,
225,
2065,
273,
348,
18,
15556,
2065,
9614,
559,
11929,
273,
12667,
461,
2932,
60,
... |
return self.abandon.ext(msgid,None,None) | return self.abandon_ext(msgid,None,None) | def abandon(self,msgid): return self.abandon.ext(msgid,None,None) | 723266cb66c35f41d6e87a4e2b5bb9881729ccad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/723266cb66c35f41d6e87a4e2b5bb9881729ccad/ldapobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1223,
464,
265,
12,
2890,
16,
3576,
350,
4672,
327,
365,
18,
378,
464,
265,
18,
408,
12,
3576,
350,
16,
7036,
16,
7036,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1223,
464,
265,
12,
2890,
16,
3576,
350,
4672,
327,
365,
18,
378,
464,
265,
18,
408,
12,
3576,
350,
16,
7036,
16,
7036,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
scfg.chan_umodes.friendly[old_infoindex], scfg.chan_umodes.friendly[new_infoindex])) | friendly_change)) | def setChannelUserModes(self, whoset, u, changes): # changes: dict of {mode -> on_off} if u not in self.chanusers: LOG.error("setChannelUserModes: %r not in channel." % u) return | 28552e6b9686a6e16c9ab7f9b816efbb53081fa9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11503/28552e6b9686a6e16c9ab7f9b816efbb53081fa9/bridge_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2909,
1299,
18868,
12,
2890,
16,
600,
538,
278,
16,
582,
16,
3478,
4672,
468,
3478,
30,
2065,
434,
288,
3188,
317,
603,
67,
3674,
97,
309,
582,
486,
316,
365,
18,
7472,
5577,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2909,
1299,
18868,
12,
2890,
16,
600,
538,
278,
16,
582,
16,
3478,
4672,
468,
3478,
30,
2065,
434,
288,
3188,
317,
603,
67,
3674,
97,
309,
582,
486,
316,
365,
18,
7472,
5577,
30... |
r'([-\w_]+)|(>=)|>|\+|\*|/' | r'([-\w_\.]+)|(>=)|>|\+|\*|/' | def t_NAME(t): r'([-\w_]+)|(>=)|>|\+|\*|/' try: t.value = int(t.value) t.type = 'NUM' return t except ValueError: # not a number if t.value.lower() == 'or': t.type = 'OR' elif t.value.lower() == 'not': t.type = 'NOT' | e97b2dd74b4abb2bb757308ada375b5cbb3c3f4c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7008/e97b2dd74b4abb2bb757308ada375b5cbb3c3f4c/gdllex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
67,
1985,
12,
88,
4672,
436,
11,
3816,
6943,
91,
67,
5834,
7941,
96,
12,
34,
33,
14047,
34,
8960,
15,
8960,
14,
96,
2473,
225,
775,
30,
268,
18,
1132,
273,
509,
12,
88,
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,
268,
67,
1985,
12,
88,
4672,
436,
11,
3816,
6943,
91,
67,
5834,
7941,
96,
12,
34,
33,
14047,
34,
8960,
15,
8960,
14,
96,
2473,
225,
775,
30,
268,
18,
1132,
273,
509,
12,
88,
18,
... |
2.6926198853 - 0.020386029602*I | 2.69261988 - 0.0203860296*I | def value(self, s, L=''): r""" Return $L(s)$ for $s$ a complex number. | 3439bf1261f4d906a8f8f8452f7f4b0d582f4af1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/3439bf1261f4d906a8f8f8452f7f4b0d582f4af1/lcalc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
12,
2890,
16,
272,
16,
511,
2218,
11,
4672,
436,
8395,
2000,
271,
48,
12,
87,
21877,
364,
271,
87,
8,
279,
7233,
1300,
18,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
12,
2890,
16,
272,
16,
511,
2218,
11,
4672,
436,
8395,
2000,
271,
48,
12,
87,
21877,
364,
271,
87,
8,
279,
7233,
1300,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print "Available tools are:" | print "Tools:" | def create_tooldoc(tool_name): description = 'HTML generator for Robot Framework Tool Documentation.' stylesheet_path = os.path.join(BASEDIR, '..', 'doc', 'userguide', 'src', 'userguide.css') base_path = os.path.join(tool_name, 'doc', tool_name) arguments = [ '--time', '--stylesheet-path=%s' % stylesheet_path, base_pat... | 63e82b02142bd02f2a94aae55a9961ea7649973a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/63e82b02142bd02f2a94aae55a9961ea7649973a/tooldoc2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
869,
1673,
504,
12,
6738,
67,
529,
4672,
2477,
273,
296,
4870,
4456,
364,
19686,
352,
13472,
13288,
20495,
1093,
13820,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
8369,
4537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
869,
1673,
504,
12,
6738,
67,
529,
4672,
2477,
273,
296,
4870,
4456,
364,
19686,
352,
13472,
13288,
20495,
1093,
13820,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
8369,
4537,
... |
raise Redirect, url | raise exceptions.Redirect, url | def handle(self): """Perform an edit of an item in the database. | 7b35d0c71d26a7290bec5255325716330d7a66bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/7b35d0c71d26a7290bec5255325716330d7a66bf/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
4990,
392,
3874,
434,
392,
761,
316,
326,
2063,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
3536,
4990,
392,
3874,
434,
392,
761,
316,
326,
2063,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 467) else quickfix.StringField.__init__(self, 467, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
9599,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
9599,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
sys.exit(0) | def _help(arg): """ Display a speficied help message, and exit. @param arg: The name of the help message to display. Currently, only C{"css"} and C{"usage"} are recognized. @type arg: C{string} @rtype: C{None} """ arg = arg.strip().lower() if arg == 'css': from epydoc.css import STYLESHEETS print '\nThe following bui... | 5397b1945fdf3feb9813ef60349d76c37defaafe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5397b1945fdf3feb9813ef60349d76c37defaafe/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5201,
12,
3175,
4672,
3536,
9311,
279,
17785,
74,
335,
2092,
2809,
883,
16,
471,
2427,
18,
225,
632,
891,
1501,
30,
1021,
508,
434,
326,
2809,
883,
358,
2562,
18,
225,
15212,
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,
389,
5201,
12,
3175,
4672,
3536,
9311,
279,
17785,
74,
335,
2092,
2809,
883,
16,
471,
2427,
18,
225,
632,
891,
1501,
30,
1021,
508,
434,
326,
2809,
883,
358,
2562,
18,
225,
15212,
16,
... | |
class Translator(TranslationContext): def __init__(self, func, **flowing_flags): super(Translator, self).__init__(**flowing_flags) self.entrypoint = func def __getstate__(self): XXX return self.entrypoint, self.functions, self.__dict__ def __setstate__(self, args): XXX assert len(args) == 3 self.__dict__.update(... | def graphof(translator, func): result = [] for graph in translator.graphs: if getattr(graph, 'func', None) is func: result.append(graph) assert len(result) == 1 return result[0] | 9caab5385b719397e221160507ac08436621f559 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/9caab5385b719397e221160507ac08436621f559/translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
792,
12,
17879,
16,
1326,
4672,
563,
273,
5378,
364,
2667,
316,
8333,
18,
30016,
30,
309,
3869,
12,
4660,
16,
296,
644,
2187,
599,
13,
353,
1326,
30,
563,
18,
6923,
12,
4660,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2667,
792,
12,
17879,
16,
1326,
4672,
563,
273,
5378,
364,
2667,
316,
8333,
18,
30016,
30,
309,
3869,
12,
4660,
16,
296,
644,
2187,
599,
13,
353,
1326,
30,
563,
18,
6923,
12,
4660,
1... | |
audioDecoder = 'a52dec name=%s ! audioconvert ! audioscale !' \ % sinkName | audioDecoder = 'seamless-a52dec name=%s ! audioconvert ! ' \ 'audioscale !' % sinkName | def __init__(self, options, name="player"): gst.Thread.__init__(self, name) | fd2fd8a6006a60b0e31b0840b2d4e4f0e6174a41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/fd2fd8a6006a60b0e31b0840b2d4e4f0e6174a41/dvdplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
1546,
14872,
6,
4672,
314,
334,
18,
3830,
16186,
2738,
972,
12,
2890,
16,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
1546,
14872,
6,
4672,
314,
334,
18,
3830,
16186,
2738,
972,
12,
2890,
16,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
agentSite = classAdAgent.getAttributeString('Site')[0] agentRequirements = classAdAgent.get_expression("Requirements") if not agentRequirements: classAdAgent.insertAttributeBool("Requirements", 'True') fields = agentRequirements.split() | agentSite = classAdAgent.getAttributeString('Site') if not classAdAgent.lookupAttribute("Requirements"): classAdAgent.insertAttributeBool("Requirements", True) agentRequirements = classAdAgent.get_expression("Requirements") else: agentRequirements = classAdAgent.get_expression("Requirements") | def selectJob(self, resourceJDL): """ Main job selection function to find the highest priority job matching the resource capacity """ | efa72d039ea8335d5706043f0e4af017355dbdd3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/efa72d039ea8335d5706043f0e4af017355dbdd3/MatcherHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
46,
8914,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
46,
8914,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
log('%s not found, skipping startup performance tests' % t) log('NOTE: %s is not part of OS X, you need to compile one' + \ | log('gtime not found, skipping startup performance tests') log('NOTE: gtime is not part of OS X, you need to compile one' + \ | def runPerfTests(options, tests=None): """ Run the Performance Test Suite >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['debug'] >>> runPerfTests(options) Skipping Performance Tests - release mode not specified False >>> options.mo... | 58706c198c72ae85bd163dd339d4081bdd26b7be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/58706c198c72ae85bd163dd339d4081bdd26b7be/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
22016,
14650,
12,
2116,
16,
7434,
33,
7036,
4672,
3536,
1939,
326,
11217,
1359,
7766,
348,
9519,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
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,
1086,
22016,
14650,
12,
2116,
16,
7434,
33,
7036,
4672,
3536,
1939,
326,
11217,
1359,
7766,
348,
9519,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
18... |
segmentListStart = segmentList.__getitem__(1).start() | segmentListStart = segmentList.__getitem__(0).start() | def getQscanBackgroundTimes(cp, opts, ifo, dq_url_pattern, segFile): times = [] fileName = '' if cp.has_option('followup-background-qscan-times',ifo+'range'): rangeString = string.strip(cp.get('followup-background-qscan-times',ifo+'range')) else: rangeString = '' if cp.has_option('followup-background-qscan-times',ifo+... | e6c4c3774ddb936854295be20ed94c625e83e873 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/e6c4c3774ddb936854295be20ed94c625e83e873/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23413,
9871,
8199,
10694,
12,
4057,
16,
1500,
16,
21479,
16,
20803,
67,
718,
67,
4951,
16,
2291,
812,
4672,
4124,
273,
5378,
3968,
273,
875,
225,
309,
3283,
18,
5332,
67,
3482,
2668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23413,
9871,
8199,
10694,
12,
4057,
16,
1500,
16,
21479,
16,
20803,
67,
718,
67,
4951,
16,
2291,
812,
4672,
4124,
273,
5378,
3968,
273,
875,
225,
309,
3283,
18,
5332,
67,
3482,
2668,
1... |
self.logger.debug('Setting state to true for pkg %s' % (entry.get('name'))) | self.logger.debug('Setting state to true for pkg %s' % \ (entry.get('name'))) | def Install(self, packages, states): """ Run a one-pass install, followed by single pkg installs in case of failure. """ self.logger.info("Trying single pass package install for pkgtype %s" % \ self.pkgtype) | decb4dd187c808e2f1c0ff7040e914abc7adeae2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/decb4dd187c808e2f1c0ff7040e914abc7adeae2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
16,
5907,
16,
5493,
4672,
3536,
1939,
279,
1245,
17,
5466,
3799,
16,
10860,
635,
2202,
3475,
31011,
316,
648,
434,
5166,
18,
3536,
365,
18,
4901,
18,
1376,
2932,
18038,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
16,
5907,
16,
5493,
4672,
3536,
1939,
279,
1245,
17,
5466,
3799,
16,
10860,
635,
2202,
3475,
31011,
316,
648,
434,
5166,
18,
3536,
365,
18,
4901,
18,
1376,
2932,
18038,
... |
total = '%.2f'%(tsum[f]) txt = str(total or '') else : txt = str(tsum[f] or '') | prec = '%.' + str(tools.config['price_accuracy']) + 'f' total = prec%(tsum[f]) txt = str(total or '') col.set('tree','float') else: txt = str(tsum[f] or '') | def _append_node(name, text): n = etree.Element(name) n.text = text config.append(n) | f103438485b11e84b5534d0115056b7083878c22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/f103438485b11e84b5534d0115056b7083878c22/ps_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1046,
12,
529,
13,
290,
18,
955,
273,
977,
642,
18,
6923,
12,
82,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1046,
12,
529,
13,
290,
18,
955,
273,
977,
642,
18,
6923,
12,
82,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if linkmatch: if not lit_val in links[key]: continue | def can_be_read(name): return request.user.may.read(name) | 31815a99ea38e84014fb4a22176fe9d6df42af23 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/31815a99ea38e84014fb4a22176fe9d6df42af23/editing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
2196,
67,
896,
12,
529,
4672,
327,
590,
18,
1355,
18,
24877,
18,
896,
12,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
848,
67,
2196,
67,
896,
12,
529,
4672,
327,
590,
18,
1355,
18,
24877,
18,
896,
12,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
def keyRightCallback(self, configPath): currentConfigPath = self["config"].getCurrent()[1].parent.getConfigPath() if (currentConfigPath == configPath): self.keyRight() | config.timerentry.weekday = configElement_nonSave("config.timerentry.weekday", configDateTime, time(), ("%A", 86400)) | def keyRightCallback(self, configPath): currentConfigPath = self["config"].getCurrent()[1].parent.getConfigPath() # check if we are still on the same config entry if (currentConfigPath == configPath): self.keyRight() | aceb62aeebc259a4da520b303a31a6a174d9400a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/aceb62aeebc259a4da520b303a31a6a174d9400a/TimerEntry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
4726,
2428,
12,
2890,
16,
16012,
4672,
783,
22341,
273,
365,
9614,
1425,
6,
8009,
588,
3935,
1435,
63,
21,
8009,
2938,
18,
588,
22341,
1435,
468,
866,
309,
732,
854,
4859,
603,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
4726,
2428,
12,
2890,
16,
16012,
4672,
783,
22341,
273,
365,
9614,
1425,
6,
8009,
588,
3935,
1435,
63,
21,
8009,
2938,
18,
588,
22341,
1435,
468,
866,
309,
732,
854,
4859,
603,
32... |
def _get_namespace(self): return self.__namespace or default_namespace | def _get_namespace(self): if isinstance(self.__namespace, N.ndarray): return self.__namespace else: return self.__namespace or default_namespace | def _get_namespace(self): return self.__namespace or default_namespace | 58d9f655e8cd3933b0b78fa33758e7170e41e0aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/58d9f655e8cd3933b0b78fa33758e7170e41e0aa/formula.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
4937,
12,
2890,
4672,
225,
327,
365,
16186,
4937,
578,
805,
67,
4937,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
588,
67,
4937,
12,
2890,
4672,
225,
327,
365,
16186,
4937,
578,
805,
67,
4937,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def revertButton_clicked(self, widget): | def revertButton_clicked(self, widget=None): | def revertButton_clicked(self, widget): self.check_if_changed() self.import_mode = False widget.hide() self.load_contacts() | d146007907c6581d8d80f2f60d1a7f1efdee1728 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/d146007907c6581d8d80f2f60d1a7f1efdee1728/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
3616,
67,
7475,
329,
12,
2890,
16,
3604,
33,
7036,
4672,
365,
18,
1893,
67,
430,
67,
6703,
1435,
365,
18,
5666,
67,
3188,
273,
1083,
3604,
18,
11248,
1435,
365,
18,
945,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
3616,
67,
7475,
329,
12,
2890,
16,
3604,
33,
7036,
4672,
365,
18,
1893,
67,
430,
67,
6703,
1435,
365,
18,
5666,
67,
3188,
273,
1083,
3604,
18,
11248,
1435,
365,
18,
945,
67,
2... |
if self.data_type=='string': return wsq(str(value)) if self.data_type=='bool': return wsq(bool2tf(value)) if self.data_type=='date': return wsq(str(value)) if self.data_type=='time': return wsq(str(value)) if self.data_type=='created': return wsq(str(value)) if self.data_type=='updated': return wsq(now_string... | elif self.data_type=='string': return wsq(str(value)) elif self.data_type=='bool': return wsq(bool2tf(value)) elif self.data_type=='date': return wsq(str(value)) elif self.data_type=='time': return wsq(str(value)) elif self.data_type=='created': return wsq(str(value)) elif self.data_type=='updated': return ws... | def attr_to_field(self, value): if self.data_type in ('sequence', 'int', 'float'): if self.nullable==1 and value==0: return 'NULL' else: return str(value) if self.data_type=='string': return wsq(str(value)) if self.data_type=='bool': return wsq(bool2tf(value)) if self.data_type=='date': return wsq(str(value)) if... | 786f0660cc94d22dfb25275f61de54a927e70323 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/786f0660cc94d22dfb25275f61de54a927e70323/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1604,
67,
869,
67,
1518,
12,
2890,
16,
460,
4672,
309,
365,
18,
892,
67,
723,
316,
7707,
6178,
2187,
296,
474,
2187,
296,
5659,
11,
4672,
309,
365,
18,
20247,
631,
21,
471,
460,
631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1604,
67,
869,
67,
1518,
12,
2890,
16,
460,
4672,
309,
365,
18,
892,
67,
723,
316,
7707,
6178,
2187,
296,
474,
2187,
296,
5659,
11,
4672,
309,
365,
18,
20247,
631,
21,
471,
460,
631,... |
<link rel="icon" type="image/png" href="%simages/favicon.png"/> | <link rel="shortcut icon" type="image/png" href="%simages/favicon.png"/> | def producehtml(name, debug): ui = pages.UIs[name] js = jslist(name, debug) css = csslist(name, debug, gen=True) csshtml = "\n".join(" <link rel=\"stylesheet\" href=\"%s%s\" type=\"text/css\"/>" % (config.STATIC_BASE_URL, x) for x in css) jshtml = "\n".join(" <script type=\"text/javascript\" src=\"%s%s\"></script>" %... | 14ab38640e5d128a1c3169632eaae2c36b7122fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3337/14ab38640e5d128a1c3169632eaae2c36b7122fe/pagegen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11402,
2620,
12,
529,
16,
1198,
4672,
5915,
273,
4689,
18,
57,
2520,
63,
529,
65,
3828,
273,
3828,
1098,
12,
529,
16,
1198,
13,
3747,
273,
3747,
1098,
12,
529,
16,
1198,
16,
3157,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11402,
2620,
12,
529,
16,
1198,
4672,
5915,
273,
4689,
18,
57,
2520,
63,
529,
65,
3828,
273,
3828,
1098,
12,
529,
16,
1198,
13,
3747,
273,
3747,
1098,
12,
529,
16,
1198,
16,
3157,
33... |
memcl = (result[1]) | memcl = (int(result[1])) | def init(self): self.resize(250, 400) self.connect(Plasma.Theme.defaultTheme(), SIGNAL("themeChanged()"), self.themeChanged) #load value from default theme, make this widget suit it theme = Plasma.Theme.defaultTheme() t_textcolor = theme.color(Plasma.Theme.TextColor) #load config cg = self.config() d_refreshtime = cg... | 643cf0f6efe0e17603ca04d4e90266d0f1e9b221 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8865/643cf0f6efe0e17603ca04d4e90266d0f1e9b221/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
365,
18,
15169,
12,
26520,
16,
7409,
13,
365,
18,
3612,
12,
1749,
345,
2540,
18,
8335,
18,
1886,
8335,
9334,
12057,
1013,
2932,
7997,
5033,
10031,
3631,
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,
1208,
12,
2890,
4672,
365,
18,
15169,
12,
26520,
16,
7409,
13,
365,
18,
3612,
12,
1749,
345,
2540,
18,
8335,
18,
1886,
8335,
9334,
12057,
1013,
2932,
7997,
5033,
10031,
3631,
365,
18,
... |
if has_artifact_access('read', ticket_for_num[tn])()] | if tn in ticket_for_num and has_artifact_access('read', ticket_for_num[tn])()] | def paged_query(self, q, limit=None, page=0, sort=None, **kw): """Query tickets, sorting and paginating the result. | 1b5b70eb18624a9a3acb4697be970777c309655e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/1b5b70eb18624a9a3acb4697be970777c309655e/tracker_main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4262,
329,
67,
2271,
12,
2890,
16,
1043,
16,
1800,
33,
7036,
16,
1363,
33,
20,
16,
1524,
33,
7036,
16,
2826,
9987,
4672,
3536,
1138,
24475,
16,
9602,
471,
4262,
267,
1776,
326,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4262,
329,
67,
2271,
12,
2890,
16,
1043,
16,
1800,
33,
7036,
16,
1363,
33,
20,
16,
1524,
33,
7036,
16,
2826,
9987,
4672,
3536,
1138,
24475,
16,
9602,
471,
4262,
267,
1776,
326,
563,
... |
self.matching_blocks = matching_blocks = [] | def get_matching_blocks(self): """Return list of triples describing matching subsequences. | d57a82e425c5a1c74964bc986f4891c398abc093 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d57a82e425c5a1c74964bc986f4891c398abc093/difflib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16271,
67,
7996,
12,
2890,
4672,
3536,
990,
666,
434,
22388,
16868,
3607,
720,
17190,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16271,
67,
7996,
12,
2890,
4672,
3536,
990,
666,
434,
22388,
16868,
3607,
720,
17190,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self._addParameter(self.workflow,'JobConfigArgs','JDL',cfgString,description) return S_OK() def setMode(self,mode): | self._addParameter( self.workflow, 'JobConfigArgs', 'JDL', cfgString, description ) return S_OK() def setMode( self, mode ): | def setConfigArgs(self,cfgString): """Developer function. Allow to pass arbitrary settings to the payload configuration service environment. """ if not type(cfgString)==type(" "): return self._reportError('Expected string for DIRAC Job Config Args',**{'cfgString':cfgString}) description = 'User specified cfg settings'... | 50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15517,
2615,
12,
2890,
16,
7066,
780,
4672,
3536,
28145,
445,
18,
7852,
358,
1342,
11078,
1947,
358,
326,
2385,
1664,
1156,
3330,
18,
3536,
309,
486,
618,
12,
7066,
780,
13,
631,
723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15517,
2615,
12,
2890,
16,
7066,
780,
4672,
3536,
28145,
445,
18,
7852,
358,
1342,
11078,
1947,
358,
326,
2385,
1664,
1156,
3330,
18,
3536,
309,
486,
618,
12,
7066,
780,
13,
631,
723,
... |
def collapseLeftArea(self): | def collapseLeftArea(self, hideLeftArea = True): | def collapseLeftArea(self): """ Collapse the left area. """ self._previous_pwLeftAreaWidth = self.pwLeftArea.width() self.pwLeftArea.setFixedWidth(0) self.pwSplitter.setMaximumWidth(self.pwLeftArea.width()) | 768028589b20c831bb59b141074536c76c7b2736 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/768028589b20c831bb59b141074536c76c7b2736/Ui_PartWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
3910,
5484,
12,
2890,
16,
6853,
3910,
5484,
273,
1053,
4672,
3536,
1558,
14820,
326,
2002,
5091,
18,
3536,
365,
6315,
11515,
67,
14921,
3910,
5484,
2384,
273,
365,
18,
14921,
3910,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
3910,
5484,
12,
2890,
16,
6853,
3910,
5484,
273,
1053,
4672,
3536,
1558,
14820,
326,
2002,
5091,
18,
3536,
365,
6315,
11515,
67,
14921,
3910,
5484,
2384,
273,
365,
18,
14921,
3910,
... |
self.rAssertAlmostEqual(cmath.pi, pi_expected, 9, | self.assertAlmostEqual(cmath.pi, pi_expected, 9, | def test_constants(self): e_expected = 2.71828182845904523536 pi_expected = 3.14159265358979323846 self.rAssertAlmostEqual(cmath.pi, pi_expected, 9, "cmath.pi is %s; should be %s" % (cmath.pi, pi_expected)) self.rAssertAlmostEqual(cmath.e, e_expected, 9, "cmath.e is %s; should be %s" % (cmath.e, e_expected)) | 7b437d780f683487eddab49a7333c01d84985c15 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/7b437d780f683487eddab49a7333c01d84985c15/test_cmath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13358,
12,
2890,
4672,
425,
67,
3825,
273,
576,
18,
27,
2643,
6030,
28246,
5193,
6162,
3028,
25,
30803,
5718,
4790,
67,
3825,
273,
890,
18,
3461,
24872,
30281,
4763,
6675,
7235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13358,
12,
2890,
4672,
425,
67,
3825,
273,
576,
18,
27,
2643,
6030,
28246,
5193,
6162,
3028,
25,
30803,
5718,
4790,
67,
3825,
273,
890,
18,
3461,
24872,
30281,
4763,
6675,
7235... |
setup_factory = SetupSingleChoiceList | setup_factory = _SetupSingleChoiceList | def get_items(self, dlg): vbox = find_child_widget(dlg, "items") counter = 0 for radio in vbox.get_children(): if radio.get_active(): break counter += 1 assert radio.get_active() for radio in vbox.get_children(): vbox.remove(radio) radio.destroy() | 0c0d33f43620369fb91c3eb94fcd412bb75c28f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2366/0c0d33f43620369fb91c3eb94fcd412bb75c28f9/hig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3319,
12,
2890,
16,
25840,
4672,
331,
2147,
273,
1104,
67,
3624,
67,
6587,
12,
5761,
75,
16,
315,
3319,
7923,
3895,
273,
374,
364,
13512,
316,
331,
2147,
18,
588,
67,
5906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3319,
12,
2890,
16,
25840,
4672,
331,
2147,
273,
1104,
67,
3624,
67,
6587,
12,
5761,
75,
16,
315,
3319,
7923,
3895,
273,
374,
364,
13512,
316,
331,
2147,
18,
588,
67,
5906,
... |
print 'clearing', fn, line | def evt_breakpointclear(self, line, fn=None): line = '%s' % line print 'clearing', fn, line if not fn: fn = self.fn if fn: self.clear_breakpoint(fn, line) | 2783e192c3292cfb508c80365c67f293cce41b92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/2783e192c3292cfb508c80365c67f293cce41b92/pida_debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6324,
67,
8820,
1153,
8507,
12,
2890,
16,
980,
16,
2295,
33,
7036,
4672,
980,
273,
1995,
87,
11,
738,
980,
309,
486,
2295,
30,
2295,
273,
365,
18,
4293,
309,
2295,
30,
365,
18,
8507,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6324,
67,
8820,
1153,
8507,
12,
2890,
16,
980,
16,
2295,
33,
7036,
4672,
980,
273,
1995,
87,
11,
738,
980,
309,
486,
2295,
30,
2295,
273,
365,
18,
4293,
309,
2295,
30,
365,
18,
8507,... | |
sage: numerical_integral(f, -4, 4) | sage: numerical_integral(f, -4, 4) | def integral(f, *args, **kwds): """ The integral of f. EXAMPLES: sage: integral(sin(x), x) -cos(x) sage: integral(sin(x)^2, x, pi, 123*pi/2) 121*pi/4 sage: integral( sin(x), x, 0, pi) 2 We integrate a symbolic function: sage: f(x,y) = x*y/z + sin(z) sage: integral(f, z) (x, y) |--> x*y*log(z) - cos(z) sage: assume(b... | 28eea7f0c4eb6b2463fa0139af49e2c9c3afbef1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/28eea7f0c4eb6b2463fa0139af49e2c9c3afbef1/functional.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21423,
12,
74,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
1021,
21423,
434,
284,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
21423,
12,
21861,
12,
92,
3631,
619,
13,
300,
14445,
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,
21423,
12,
74,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
1021,
21423,
434,
284,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
21423,
12,
21861,
12,
92,
3631,
619,
13,
300,
14445,
12,... |
self.statusicon.set_from_stock('sonata_play') | self.statusicon.set_from_file(self.find_path('sonata_play.png')) | def handle_change_status(self): # Called when one of the following items are changed: # 1. Current playlist (song added, removed, etc) # 2. Repeat/random/xfade/volume # 3. Currently selected song in playlist # 4. Status (playing/paused/stopped) # 5. Playlistqueue if self.status == None: # clean up and bail out sel... | df11b4bbe442a5157537daa280f590f96906e0fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/df11b4bbe442a5157537daa280f590f96906e0fc/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3427,
67,
2327,
12,
2890,
4672,
468,
11782,
1347,
1245,
434,
326,
3751,
1516,
854,
3550,
30,
468,
225,
404,
18,
6562,
16428,
261,
816,
75,
3096,
16,
3723,
16,
5527,
13,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3427,
67,
2327,
12,
2890,
4672,
468,
11782,
1347,
1245,
434,
326,
3751,
1516,
854,
3550,
30,
468,
225,
404,
18,
6562,
16428,
261,
816,
75,
3096,
16,
3723,
16,
5527,
13,
468,
... |
self.__todo = ListPanel(mp, "To check", self.showinfo) self.__done = ListPanel(mp, "Checked", self.showinfo) self.__bad = ListPanel(mp, "Bad links", self.showinfo) self.__errors = ListPanel(mp, "Pages w/ bad links", self.showinfo) | self.__todo = ListPanel(mp, "To check", self, self.showinfo) self.__done = ListPanel(mp, "Checked", self, self.showinfo) self.__bad = ListPanel(mp, "Bad links", self, self.showinfo) self.__errors = ListPanel(mp, "Pages w/ bad links", self, self.showinfo) | def __init__(self, parent, root=webchecker.DEFROOT): self.__parent = parent | 2ebde6d1fb628c2812a1c10ff496f785bfd5d202 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2ebde6d1fb628c2812a1c10ff496f785bfd5d202/wcgui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1365,
33,
4875,
19243,
18,
12904,
9185,
4672,
365,
16186,
2938,
273,
982,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1365,
33,
4875,
19243,
18,
12904,
9185,
4672,
365,
16186,
2938,
273,
982,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
results = results + \ _("No one can subscribe to the digest of this list!") | results += _("No one can subscribe to the digest of this list!") | def process_form(mlist, doc): form = cgi.FieldStorage() error = 0 results = '' # Preliminaries done, actual processing of the form input below. if form.has_key("language"): language = form["language"].value else: language = mlist.preferred_language os.environ['LANG'] = language if form.has_key("UserOptions") or \ fo... | b121e4076f4c5d170d07eefd6361b44bbafc2f9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/b121e4076f4c5d170d07eefd6361b44bbafc2f9f/subscribe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
687,
12,
781,
376,
16,
997,
4672,
646,
273,
276,
10052,
18,
974,
3245,
1435,
555,
273,
374,
1686,
273,
875,
225,
468,
453,
2878,
381,
267,
5646,
2731,
16,
3214,
4929,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
687,
12,
781,
376,
16,
997,
4672,
646,
273,
276,
10052,
18,
974,
3245,
1435,
555,
273,
374,
1686,
273,
875,
225,
468,
453,
2878,
381,
267,
5646,
2731,
16,
3214,
4929,
434,
... |
def SetContactMethods(self, contactMethods): self.setRdfAttribute(chandler.contactMethods, contactMethods, ContactEntityItem.rdfs) | def SetContactMethods(self, contactMethod): self.setRdfAttribute(chandler.contactMethods, contactMethod, ContactEntityItem.rdfs) | def SetContactMethods(self, contactMethods): self.setRdfAttribute(chandler.contactMethods, contactMethods, ContactEntityItem.rdfs) | 1ce5a17850e37f385c7c1c655c53cae2ed28e943 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1ce5a17850e37f385c7c1c655c53cae2ed28e943/ContactEntityItem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
6567,
4712,
12,
2890,
16,
5388,
1305,
4672,
365,
18,
542,
27616,
1499,
12,
343,
464,
749,
18,
8994,
4712,
16,
5388,
1305,
16,
13329,
1943,
1180,
18,
86,
12381,
13,
225,
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,
1000,
6567,
4712,
12,
2890,
16,
5388,
1305,
4672,
365,
18,
542,
27616,
1499,
12,
343,
464,
749,
18,
8994,
4712,
16,
5388,
1305,
16,
13329,
1943,
1180,
18,
86,
12381,
13,
225,
2,
-100,
... |
return {} | layout = {} cls.dprint("%s: layout=%s" % (url, layout)) return layout | def getLayoutSubsequent(cls, major_mode_keyword, url): #dprint("getLayoutSubsequent") ukey = unicode(url) if major_mode_keyword in cls.layout: try: key = str(url) # Convert old style string keyword to unicode keyword if key in cls.layout[major_mode_keyword]: cls.layout[major_mode_keyword][ukey] = cls.layout[major_mode_... | 82cadc0259af62e12f609221a12afb4db898cba4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/82cadc0259af62e12f609221a12afb4db898cba4/major.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17670,
1676,
9116,
12,
6429,
16,
7888,
67,
3188,
67,
11041,
16,
880,
4672,
468,
72,
1188,
2932,
588,
3744,
1676,
9116,
7923,
582,
856,
273,
5252,
12,
718,
13,
309,
7888,
67,
3188,
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,
17670,
1676,
9116,
12,
6429,
16,
7888,
67,
3188,
67,
11041,
16,
880,
4672,
468,
72,
1188,
2932,
588,
3744,
1676,
9116,
7923,
582,
856,
273,
5252,
12,
718,
13,
309,
7888,
67,
3188,
67,
... |
epoch = '' | epoch = '0' | def parse(v): if ':' in v: epoch, v = v.split(':', 1) else: epoch = '' if '-' in v: upstream_version, debian_revision = v.rsplit('-', 1) else: upstream_version = v debian_revision = '' return epoch, upstream_version, debian_revision | 472f35169d4662e1e6c82ca0b53e79ee29170ae7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5275/472f35169d4662e1e6c82ca0b53e79ee29170ae7/debversion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
90,
4672,
309,
3921,
316,
331,
30,
7632,
16,
331,
273,
331,
18,
4939,
2668,
30,
2187,
404,
13,
469,
30,
7632,
273,
296,
20,
11,
225,
309,
4014,
316,
331,
30,
13505,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
90,
4672,
309,
3921,
316,
331,
30,
7632,
16,
331,
273,
331,
18,
4939,
2668,
30,
2187,
404,
13,
469,
30,
7632,
273,
296,
20,
11,
225,
309,
4014,
316,
331,
30,
13505,
67,
1... |
output.start(len(self.testCases)) for testCase, method in self.testCases: try: testCase.setUp() method() testCase.tearDown() except AssertionError, e: output.reportFailure(testCase, method, sys.exc_info()) except KeyError: break except: output.reportError(testCase, method, sys.exc_info()) else: output.reportSucce... | output.start(self.numTests) testClasses = self.testClasses.keys() testClasses.sort() for testClass in testClasses: testCase = testClass() for method in self.testClasses[testClass]: try: testCase.setUp() method(testCase) testCase.tearDown() except AssertionError, e: output.reportFailure(testClass, method, sys.exc_info()... | def run(self, output): | 5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
876,
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,
1086,
12,
2890,
16,
876,
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... |
for line in file(f).read().split(';'): | for line in file_open(f).read().split(';'): | def init_db(cr): import addons f = addons.get_module_resource('base', 'base.sql') for line in file(f).read().split(';'): if (len(line)>0) and (not line.isspace()): cr.execute(line) cr.commit() for i in addons.get_modules(): terp_file = addons.get_module_resource(i, '__terp__.py') mod_path = addons.get_module_path(i) i... | eca70f3464ad8de8f93c5017261b62f1c7a9806a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/eca70f3464ad8de8f93c5017261b62f1c7a9806a/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
1966,
12,
3353,
4672,
1930,
31439,
284,
273,
31439,
18,
588,
67,
2978,
67,
3146,
2668,
1969,
2187,
296,
1969,
18,
4669,
6134,
364,
980,
316,
585,
67,
3190,
12,
74,
2934,
896,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
1966,
12,
3353,
4672,
1930,
31439,
284,
273,
31439,
18,
588,
67,
2978,
67,
3146,
2668,
1969,
2187,
296,
1969,
18,
4669,
6134,
364,
980,
316,
585,
67,
3190,
12,
74,
2934,
896,... |
def __init__(self, host, port=30000): | def __init__(self, host, port=30010): | def __init__(self, host, port=30000): """ Open a connection to a LDRdataFindServer and return an instance of class LDRdataFindClient. One of the public methods can then be called to send a request to the server. | a202f1387322e0a94f6f1dacb5d6de68d0ed2f7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/a202f1387322e0a94f6f1dacb5d6de68d0ed2f7f/LDRdataFindClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1756,
33,
19249,
2163,
4672,
3536,
3502,
279,
1459,
358,
279,
511,
6331,
892,
3125,
2081,
471,
327,
392,
791,
434,
667,
511,
6331,
892,
3125,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1756,
33,
19249,
2163,
4672,
3536,
3502,
279,
1459,
358,
279,
511,
6331,
892,
3125,
2081,
471,
327,
392,
791,
434,
667,
511,
6331,
892,
3125,
1... |
s = s.replace(x[0], x[1]) | s = re.sub(x[0], x[1], s) | def encode(self, s): """ Encode special characters found in string I{s}. @param s: A string to encode. @type s: str @return: The encoded string. @rtype: str """ if isinstance(s, basestring) and self.needsEncoding(s): for x in self.encodings: s = s.replace(x[0], x[1]) return s | 77384bfaa4f277bf1d8c03a2d6ea3a9a5f3435ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5930/77384bfaa4f277bf1d8c03a2d6ea3a9a5f3435ef/enc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
272,
4672,
3536,
6240,
4582,
3949,
1392,
316,
533,
467,
95,
87,
5496,
632,
891,
272,
30,
432,
533,
358,
2017,
18,
632,
723,
272,
30,
609,
632,
2463,
30,
1021,
374... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
272,
4672,
3536,
6240,
4582,
3949,
1392,
316,
533,
467,
95,
87,
5496,
632,
891,
272,
30,
432,
533,
358,
2017,
18,
632,
723,
272,
30,
609,
632,
2463,
30,
1021,
374... |
super(ClonableCoroutine, self).goodbye() | InterpClonableCoroutine.goodbye(self) | def goodbye(self): if we_are_translated(): super(ClonableCoroutine, self).goodbye() else: ec = self.space.getexecutioncontext() ec.subcontext_leave(self) | 5d05cc2e20cfa7190f8e1f979de4e1bc5a388f62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/5d05cc2e20cfa7190f8e1f979de4e1bc5a388f62/interp_clonable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7494,
1637,
73,
12,
2890,
4672,
309,
732,
67,
834,
67,
22899,
13332,
5294,
84,
2009,
265,
429,
6217,
8983,
18,
19747,
1637,
73,
12,
2890,
13,
469,
30,
6557,
273,
365,
18,
2981,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7494,
1637,
73,
12,
2890,
4672,
309,
732,
67,
834,
67,
22899,
13332,
5294,
84,
2009,
265,
429,
6217,
8983,
18,
19747,
1637,
73,
12,
2890,
13,
469,
30,
6557,
273,
365,
18,
2981,
18,
5... |
description = to_unicode(inspect.getdoc(component)) | description = inspect.getdoc(component) | def _render_view(self, req): plugins = {} plugins_dir = os.path.realpath(os.path.join(self.env.path, 'plugins')) plugins_dir = os.path.normcase(plugins_dir) # needs to match loader.py | a19afbf9389754dc9ae5bef27420e6906a9c1195 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/a19afbf9389754dc9ae5bef27420e6906a9c1195/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
4672,
4799,
273,
2618,
4799,
67,
1214,
273,
1140,
18,
803,
18,
7688,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
3074,
18,
803,
16,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5902,
67,
1945,
12,
2890,
16,
1111,
4672,
4799,
273,
2618,
4799,
67,
1214,
273,
1140,
18,
803,
18,
7688,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
3074,
18,
803,
16,
296,
... |
x = max(min(self.GetViewStart()[0] * scale / self.scaling + 1, | origin = [x * self.scroll_amount for x in self.GetViewStart()] x = max(min(origin[0] * scale / scaling + 1, | def scale(self, scale=None): scroll_amount = self.scroll_amount if scale == None: scale = self.scaling w = self.width * scale - 1 h = self.height * scale - 1 x = max(min(self.GetViewStart()[0] * scale / self.scaling + 1, w - self.GetSize().x) - 2, 0) y = max(min(self.GetViewStart()[1] * scale / self.scaling + 1, h - se... | 6eb1cae57ca1773babed2c1c4d12cf475259fce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/6eb1cae57ca1773babed2c1c4d12cf475259fce5/gamera_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
309,
3159,
422,
599,
30,
3159,
273,
365,
18,
24576,
341,
273,
365,
18,
2819,
380,
3159,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3159,
12,
2890,
16,
3159,
33,
7036,
4672,
5532,
67,
8949,
273,
365,
18,
12033,
67,
8949,
309,
3159,
422,
599,
30,
3159,
273,
365,
18,
24576,
341,
273,
365,
18,
2819,
380,
3159,
300,
... |
"WHERE name != '' ORDER BY name" % by) | "WHERE IFNULL(name,'') != '' ORDER BY name" % by) | def get_groups(self, by='component'): cursor = self.db.cursor () groups = [] if by in ['status', 'resolution', 'severity', 'priority']: cursor.execute("SELECT name FROM enum WHERE type = %s " "AND name != '' ORDER BY value", by) elif by in ['component', 'milestone', 'version']: cursor.execute("SELECT name FROM %s " "WH... | d95d4c5c2c377d42ef48039a5a4aebe475bde190 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/d95d4c5c2c377d42ef48039a5a4aebe475bde190/Milestone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4650,
12,
2890,
16,
635,
2218,
4652,
11,
4672,
3347,
273,
365,
18,
1966,
18,
9216,
1832,
3252,
273,
5378,
309,
635,
316,
10228,
2327,
2187,
296,
19182,
2187,
296,
27341,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4650,
12,
2890,
16,
635,
2218,
4652,
11,
4672,
3347,
273,
365,
18,
1966,
18,
9216,
1832,
3252,
273,
5378,
309,
635,
316,
10228,
2327,
2187,
296,
19182,
2187,
296,
27341,
2187,
... |
groupData = [] | terms = [] | def getGroupIds(context): site = getSite() groups_tool = getToolByName(site, 'portal_groups') groups = groups_tool.listGroups() # Get group id, title tuples for each, omitting virtual group 'AuthenticatedUsers' groupData = [] for g in groups: if g.id == 'AuthenticatedUsers': continue is_zope_manager = getSecurityManage... | c968dd0ca9e5067be3fc54687d90bac10e9b490e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12186/c968dd0ca9e5067be3fc54687d90bac10e9b490e/register.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11751,
2673,
12,
2472,
4672,
2834,
273,
11021,
1435,
3252,
67,
6738,
273,
336,
6364,
5911,
12,
4256,
16,
296,
24386,
67,
4650,
6134,
3252,
273,
3252,
67,
6738,
18,
1098,
3621,
1435,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11751,
2673,
12,
2472,
4672,
2834,
273,
11021,
1435,
3252,
67,
6738,
273,
336,
6364,
5911,
12,
4256,
16,
296,
24386,
67,
4650,
6134,
3252,
273,
3252,
67,
6738,
18,
1098,
3621,
1435,
468,... |
"""Ensure RandomStreams.shuffle_row_elements generates right results""" | """Test that RandomStreams.shuffle_row_elements generates the right results""" | def test_shuffle_row_elements(self): """Ensure RandomStreams.shuffle_row_elements generates right results""" # Check over two calls to see if the random state is correctly updated. # On matrices, for each row, the elements of that row should be # shuffled. # Note that this differs from numpy.random.shuffle, where all t... | 32fafac1df3e55779a468361ef30f6a00000f984 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/32fafac1df3e55779a468361ef30f6a00000f984/test_randomstreams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
31980,
67,
492,
67,
6274,
12,
2890,
4672,
3536,
4709,
716,
8072,
10301,
18,
31980,
67,
492,
67,
6274,
6026,
326,
2145,
1686,
8395,
468,
2073,
1879,
2795,
4097,
358,
2621,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
31980,
67,
492,
67,
6274,
12,
2890,
4672,
3536,
4709,
716,
8072,
10301,
18,
31980,
67,
492,
67,
6274,
6026,
326,
2145,
1686,
8395,
468,
2073,
1879,
2795,
4097,
358,
2621,
309,
... |
def show(self, filename=""): if not filename: filename = '/tmp/sage.png' | def show(self, filename=None): if filename is None: filename = sage.misc.misc.tmp_filename() + '.png' | def show(self, filename=""): | faf30e8cc96f1efccdd51cd7a40b609b7414a021 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/faf30e8cc96f1efccdd51cd7a40b609b7414a021/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
1544,
1546,
6,
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,
2405,
12,
2890,
16,
1544,
1546,
6,
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,
... |
u'f\xf6\xf6' | 'f\xf6\xf6' | def test_testfile(): r""" | 18642825f83b5c51e5a766db3ce89334a635adfa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/18642825f83b5c51e5a766db3ce89334a635adfa/test_doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
768,
13332,
436,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
768,
13332,
436,
8395,
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,
-1... |
ctx.prec += asymp_extraprec def h(a1,a2,b1,b2): X = a1+a2-b1-b2 A2 = a1+a2 B2 = b1+b2 c = {} c[0] = ctx.one c[1] = (A2-1)*X+b1*b2-a1*a2 s1 = 0 k = 0 tprev = 0 while 1: if k not in c: uu1 = 1-B2+2*a1+a1**2+2*a2+a2**2-A2*B2+a1*a2+b1*b2+(2*B2-3*(A2+1))*k+2*k**2 uu2 = (k-A2+b1-1)*(k-A2+b2-1)*(k-X-2) c[k] = ctx.one/k * (u... | try: ctx.prec += asymp_extraprec def h(a1,a2,b1,b2): X = a1+a2-b1-b2 A2 = a1+a2 B2 = b1+b2 c = {} c[0] = ctx.one c[1] = (A2-1)*X+b1*b2-a1*a2 s1 = 0 k = 0 tprev = 0 while 1: if k not in c: uu1 = 1-B2+2*a1+a1**2+2*a2+a2**2-A2*B2+a1*a2+b1*b2+(2*B2-3*(A2+1))*k+2*k**2 uu2 = (k-A2+b1-1)*(k-A2+b2-1)*(k-X-2) c[k] = ctx.one/k... | def hyp2f2(ctx,a1,a2,b1,b2,z,**kwargs): a1r, a1f, a1c, a1 = ctx._hyp_parse_param(a1) a2r, a2f, a2c, a2 = ctx._hyp_parse_param(a2) b1r, b1f, b1c, b1 = ctx._hyp_parse_param(b1) b2r, b2f, b2c, b2 = ctx._hyp_parse_param(b2) z = ctx.convert(z) absz = abs(z) magz = ctx.mag(z) orig = ctx.prec # Asymptotic expansion is ~ exp... | 74eca90720b3a15c322c60f6089a3be4f5dc8227 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11851/74eca90720b3a15c322c60f6089a3be4f5dc8227/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16117,
22,
74,
22,
12,
5900,
16,
69,
21,
16,
69,
22,
16,
70,
21,
16,
70,
22,
16,
94,
16,
636,
4333,
4672,
279,
21,
86,
16,
279,
21,
74,
16,
279,
21,
71,
16,
279,
21,
273,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16117,
22,
74,
22,
12,
5900,
16,
69,
21,
16,
69,
22,
16,
70,
21,
16,
70,
22,
16,
94,
16,
636,
4333,
4672,
279,
21,
86,
16,
279,
21,
74,
16,
279,
21,
71,
16,
279,
21,
273,
110... |
query = '(%s OR %s IS NULL)' % (query, left) | query = '(%s OR %s.%s IS NULL)' % (query, table._table, left) | def __leaf_to_sql(self, leaf, table): if leaf == self.__DUMMY_LEAF: return ('(1=1)', []) left, operator, right = leaf | b18b81344ffa3c4a5c61fe8c6bfda877a9606e7a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b18b81344ffa3c4a5c61fe8c6bfda877a9606e7a/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12070,
67,
869,
67,
4669,
12,
2890,
16,
7839,
16,
1014,
4672,
309,
7839,
422,
365,
16186,
40,
2799,
22114,
67,
900,
6799,
30,
327,
7707,
12,
21,
33,
21,
13,
2187,
5378,
13,
200... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12070,
67,
869,
67,
4669,
12,
2890,
16,
7839,
16,
1014,
4672,
309,
7839,
422,
365,
16186,
40,
2799,
22114,
67,
900,
6799,
30,
327,
7707,
12,
21,
33,
21,
13,
2187,
5378,
13,
200... |
print x, y, z | print x, y, sortdict(z) | def g(x, *y, **z): print x, y, z | 23ea25473209b6ebaddfdaedecd2a1f42a4c674b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/23ea25473209b6ebaddfdaedecd2a1f42a4c674b/test_extcall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
12,
92,
16,
380,
93,
16,
2826,
94,
4672,
1172,
619,
16,
677,
16,
1524,
1576,
12,
94,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
12,
92,
16,
380,
93,
16,
2826,
94,
4672,
1172,
619,
16,
677,
16,
1524,
1576,
12,
94,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print len(cmap), inputFile.name | def __init__(self, cmap=None, inputFile=None, N_nodes=None): """Initialize a node partition. | b7614dcf5bf4ab0bdb96c7727a04e29bdab2c1b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/b7614dcf5bf4ab0bdb96c7727a04e29bdab2c1b9/communities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11136,
33,
7036,
16,
22014,
33,
7036,
16,
423,
67,
4690,
33,
7036,
4672,
3536,
7520,
279,
756,
3590,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11136,
33,
7036,
16,
22014,
33,
7036,
16,
423,
67,
4690,
33,
7036,
4672,
3536,
7520,
279,
756,
3590,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
self.__isDone = False | def start(self): self.__runningAnims = self.__anims[:] for anim in self.__runningAnims: stopHandler = lambda anim=anim: self.__animStopped(anim) anim.setHandler(onStop = stopHandler, onAbort = stopHandler) anim.start() self.__isDone = False | 2e079fa33905388e12f79ec352f98eb7eb3424b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/2e079fa33905388e12f79ec352f98eb7eb3424b2/anim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
365,
16186,
8704,
979,
12097,
273,
365,
16186,
304,
12097,
10531,
65,
364,
10536,
316,
365,
16186,
8704,
979,
12097,
30,
2132,
1503,
273,
3195,
10536,
33,
304,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
365,
16186,
8704,
979,
12097,
273,
365,
16186,
304,
12097,
10531,
65,
364,
10536,
316,
365,
16186,
8704,
979,
12097,
30,
2132,
1503,
273,
3195,
10536,
33,
304,
381,
... | |
for key, val in form.items(): del form[key] form[key.encode('utf8')] = val.encode('utf8') | def http_request(self, path_name=None, cookie_string=None, form={}, full_path=None): if not full_path and self.config['cb_single_url']: full_path = self.config['cb_single_url'] if full_path: u = urlparse.urlparse(full_path) host = u.hostname port = u.port or 80 path = u.path if u.query: path += '?' + u.query else: | 017e1096cd4673b496e9bbb2ebfe652c272960f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13219/017e1096cd4673b496e9bbb2ebfe652c272960f0/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
2293,
12,
2890,
16,
589,
67,
529,
33,
7036,
16,
3878,
67,
1080,
33,
7036,
16,
646,
28793,
1983,
67,
803,
33,
7036,
4672,
309,
486,
1983,
67,
803,
471,
365,
18,
1425,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
2293,
12,
2890,
16,
589,
67,
529,
33,
7036,
16,
3878,
67,
1080,
33,
7036,
16,
646,
28793,
1983,
67,
803,
33,
7036,
4672,
309,
486,
1983,
67,
803,
471,
365,
18,
1425,
3292,
... | |
lines = msg.body.split('\n') | lines = body.split('\n') | def ParseMailCommands(self, msg): # Break any infloops. If this has come from a Mailman server then # it'll have this header. It's still possible to infloop between two # servers because there's no guaranteed way to know it came from a # bot. if msg.get('x-beenthere') or msg.get('list-id'): return # check the autores... | bfed9ae359e2eea17ad856f6284f7870ede7b63f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/bfed9ae359e2eea17ad856f6284f7870ede7b63f/MailCommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
6759,
9127,
12,
2890,
16,
1234,
4672,
468,
17030,
1281,
8286,
383,
4473,
18,
225,
971,
333,
711,
12404,
628,
279,
11542,
4728,
1438,
1508,
468,
518,
5614,
1240,
333,
1446,
18,
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,
2884,
6759,
9127,
12,
2890,
16,
1234,
4672,
468,
17030,
1281,
8286,
383,
4473,
18,
225,
971,
333,
711,
12404,
628,
279,
11542,
4728,
1438,
1508,
468,
518,
5614,
1240,
333,
1446,
18,
225,... |
self['progressbar'].set_format_string(str(value)) | self['progressbar'].set_format_string(str(aValue)) | def update( self ): aString = str( self.theFullPN()[ID] ) aString += ':\n' + str( self.theFullPN()[PROPERTY] ) self.theIDEntry.set_text ( aString ) | d6afe4061131c3989292a58918940112ac0c8b2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/d6afe4061131c3989292a58918940112ac0c8b2d/BargraphWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
365,
262,
30,
225,
279,
780,
273,
609,
12,
365,
18,
5787,
5080,
15124,
1435,
63,
734,
65,
262,
279,
780,
1011,
4290,
64,
82,
11,
397,
609,
12,
365,
18,
5787,
5080,
15124,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
365,
262,
30,
225,
279,
780,
273,
609,
12,
365,
18,
5787,
5080,
15124,
1435,
63,
734,
65,
262,
279,
780,
1011,
4290,
64,
82,
11,
397,
609,
12,
365,
18,
5787,
5080,
15124,
... |
self.dispVdWAction.setIconSet(QIconSet(self.image65)) | self.dispVdWAction.setIconSet(QIconSet(self.image64)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | e48e859515237593d94b403a9c0a7295e08c31f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e48e859515237593d94b403a9c0a7295e08c31f2/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
if time_inactive > 5.0 and not xiso.paused: | if upload and time_inactive > 5.0 and not xiso.paused: | def extract_xiso(self): self.extracted_filename = None # get infos from ui drives = ["/c/","/e/","/f/","/g/"] filename = self.ui_entry_xiso.get_text() local_folder = self.ui_entry_folder.get_text() ftp_folder = drives[self.ui_combobox_xbox_drive.get_active()] + \ self.ui_entry_xbox_folder.get_text() | 39964478212b176a703725d180a4592ad79d1012 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2692/39964478212b176a703725d180a4592ad79d1012/gxiso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5674,
83,
12,
2890,
4672,
365,
18,
8004,
329,
67,
3459,
273,
599,
225,
468,
336,
10626,
628,
5915,
5081,
3606,
273,
8247,
19,
71,
19,
15937,
19,
73,
19,
15937,
19,
74,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5674,
83,
12,
2890,
4672,
365,
18,
8004,
329,
67,
3459,
273,
599,
225,
468,
336,
10626,
628,
5915,
5081,
3606,
273,
8247,
19,
71,
19,
15937,
19,
73,
19,
15937,
19,
74,
19,
... |
if ( values[0] == '-1' ): retValue[0]=min else: retValue[0]=values[0] if (values[1] == '-1' ): retValue[1]=max else: retValue[1]=values[1] | if ( values[0] == '-1' ): retValue[0]=min else: retValue[0]=values[0] if (values[1] == '-1' ): retValue[1]=max else: retValue[1]=values[1] | def __parse_spectral( spectString='', min=0, max=0 ): retValue=[ min, max ] #print "min: ", min #print "max: ", max values=spectString.split('~') if ( len(values)==2 ): # We have a min and max value if ( values[0] == '-1' ): retValue[0]=min else: retValue[0]=values[0] if (values[1] == '-1' ): retValue[1]=max else: ret... | a69d01757f03ee69e74cf5758fa605dd04201481 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/a69d01757f03ee69e74cf5758fa605dd04201481/imregion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
87,
21449,
12,
23242,
780,
2218,
2187,
1131,
33,
20,
16,
943,
33,
20,
262,
30,
21236,
22850,
1131,
16,
943,
308,
468,
1188,
315,
1154,
30,
3104,
1131,
468,
1188,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
67,
87,
21449,
12,
23242,
780,
2218,
2187,
1131,
33,
20,
16,
943,
33,
20,
262,
30,
21236,
22850,
1131,
16,
943,
308,
468,
1188,
315,
1154,
30,
3104,
1131,
468,
1188,
315,
... |
def same_c_signature_as_resolved_type(self, other_type, as_cmethod): | def same_c_signature_as_resolved_type(self, other_type, as_cmethod = 0): | def same_c_signature_as_resolved_type(self, other_type, as_cmethod): #print "CFuncType.same_c_signature_as_resolved_type:", \ # self, other_type, "as_cmethod =", as_cmethod ### if other_type is error_type: return 1 if not other_type.is_cfunction: return 0 nargs = len(self.args) if nargs <> len(other_type.args): return ... | ab9b3aa206b1e1fca31362459f381a926cc326b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2099/ab9b3aa206b1e1fca31362459f381a926cc326b7/PyrexTypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1967,
67,
71,
67,
8195,
67,
345,
67,
11792,
67,
723,
12,
2890,
16,
1308,
67,
723,
16,
487,
67,
71,
2039,
273,
374,
4672,
468,
1188,
315,
39,
2622,
559,
18,
14307,
67,
71,
67,
8195,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1967,
67,
71,
67,
8195,
67,
345,
67,
11792,
67,
723,
12,
2890,
16,
1308,
67,
723,
16,
487,
67,
71,
2039,
273,
374,
4672,
468,
1188,
315,
39,
2622,
559,
18,
14307,
67,
71,
67,
8195,... |
self.start() | log.msg(msg) | def kill_sage(self): try: pid = self.sage.pid() cmd = 'kill -9 -%s'%pid os.system(cmd) self.start() except Exception, msg: self.start() | 24e96da265978e450e8d89068efd3326da5ed2b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/24e96da265978e450e8d89068efd3326da5ed2b8/dsage_worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
87,
410,
12,
2890,
4672,
775,
30,
4231,
273,
365,
18,
87,
410,
18,
6610,
1435,
1797,
273,
296,
16418,
300,
29,
300,
9,
87,
11,
9,
6610,
1140,
18,
4299,
12,
4172,
13,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
87,
410,
12,
2890,
4672,
775,
30,
4231,
273,
365,
18,
87,
410,
18,
6610,
1435,
1797,
273,
296,
16418,
300,
29,
300,
9,
87,
11,
9,
6610,
1140,
18,
4299,
12,
4172,
13,
365,... |
if hebergementType and hebergementType != -1: | if hebergementType and str(hebergementType) != '-1': | def action_search(self, action, data): wrapper = getSAWrapper('gites_wallons') session = wrapper.session hebergementTable = wrapper.getMapper('hebergement') proprioTable = wrapper.getMapper('proprio') reservationsTable = wrapper.getMapper('reservation_proprio') provincesTable = wrapper.getMapper('province') communeTabl... | 38eef8508577bf719b5dde1d54beeb8418fb1ea1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10188/38eef8508577bf719b5dde1d54beeb8418fb1ea1/SearchHebergement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
3072,
12,
2890,
16,
1301,
16,
501,
4672,
4053,
273,
1322,
37,
3611,
2668,
75,
2997,
67,
8019,
7008,
6134,
1339,
273,
4053,
18,
3184,
3904,
31317,
820,
1388,
273,
4053,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
3072,
12,
2890,
16,
1301,
16,
501,
4672,
4053,
273,
1322,
37,
3611,
2668,
75,
2997,
67,
8019,
7008,
6134,
1339,
273,
4053,
18,
3184,
3904,
31317,
820,
1388,
273,
4053,
18,
58... |
self.fail("Timeout") | self.fail("Timeout on key=%s, event=%s" % (key, event)) | def _wait_until(self, key, event): max = 50 # 5 seconds max while not exists(join(self.tempdir, key + event)) and max: time.sleep(0.1) max -= 1 if not max: self.fail("Timeout") | bd40605b145a92a46d22a2054109138e5b836757 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10197/bd40605b145a92a46d22a2054109138e5b836757/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7048,
67,
12198,
12,
2890,
16,
498,
16,
871,
4672,
943,
273,
6437,
468,
1381,
3974,
943,
1323,
486,
1704,
12,
5701,
12,
2890,
18,
5814,
1214,
16,
498,
397,
871,
3719,
471,
943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7048,
67,
12198,
12,
2890,
16,
498,
16,
871,
4672,
943,
273,
6437,
468,
1381,
3974,
943,
1323,
486,
1704,
12,
5701,
12,
2890,
18,
5814,
1214,
16,
498,
397,
871,
3719,
471,
943,
... |
self.respond("503 Login with USER first") return | self.respond("503 Login with USER first.") return | def ftp_PASS(self, line): # TODO - brute force protection: 'freeze'/'sleep' (without blocking the main loop) # PI for a certain amount of time if authentication fails. if not self.username: self.respond("503 Login with USER first") return if self.username == 'anonymous': line = '' if self.authorizer.has_user(self.... | cb01c49a66d7848781b76239960b060d1d7dcf4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/cb01c49a66d7848781b76239960b060d1d7dcf4e/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
10884,
12,
2890,
16,
980,
4672,
468,
2660,
300,
5186,
624,
2944,
17862,
30,
296,
29631,
11,
2473,
19607,
11,
261,
13299,
9445,
326,
2774,
2798,
13,
468,
282,
7024,
364,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
10884,
12,
2890,
16,
980,
4672,
468,
2660,
300,
5186,
624,
2944,
17862,
30,
296,
29631,
11,
2473,
19607,
11,
261,
13299,
9445,
326,
2774,
2798,
13,
468,
282,
7024,
364,
279,
... |
elif type(signature) == StringType and len(signature) == 4: | elif isinstance(signature, str) and len(signature) == 4: | def __init__(self, signature=None, start=0, timeout=0): """Create a communication channel with a particular application. | f9b95d4dda8ced9e1179ff54757ff27bb6abd6f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f9b95d4dda8ced9e1179ff54757ff27bb6abd6f3/aetools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3372,
33,
7036,
16,
787,
33,
20,
16,
2021,
33,
20,
4672,
3536,
1684,
279,
18279,
1904,
598,
279,
6826,
2521,
18,
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,
1001,
2738,
972,
12,
2890,
16,
3372,
33,
7036,
16,
787,
33,
20,
16,
2021,
33,
20,
4672,
3536,
1684,
279,
18279,
1904,
598,
279,
6826,
2521,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
l = list(FileIterator(DATADIR)) self.assertEquals(l, []) | try: l = list(FileIterator([DATADIR])) except: self.fail("Exception while iterating on %s"%DATADIR) | def testDontChokeOnWeirdFilename(self): """we should iter without pain on everything in DATADIR, including the file whose name begins with an â """ l = list(FileIterator(DATADIR)) self.assertEquals(l, []) | 4d7cfafec9edaa4d695d0eb576d4bc7e85e44697 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/4d7cfafec9edaa4d695d0eb576d4bc7e85e44697/test_fileiteration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
40,
1580,
782,
3056,
1398,
3218,
6909,
5359,
12,
2890,
4672,
3536,
1814,
1410,
1400,
2887,
293,
530,
603,
7756,
316,
12364,
1880,
7937,
16,
6508,
326,
585,
8272,
508,
17874,
598,
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,
40,
1580,
782,
3056,
1398,
3218,
6909,
5359,
12,
2890,
4672,
3536,
1814,
1410,
1400,
2887,
293,
530,
603,
7756,
316,
12364,
1880,
7937,
16,
6508,
326,
585,
8272,
508,
17874,
598,
3... |
name = model.get_value(l_iter, 2) | try: name = model.get_value(l_iter, 2) except TypeError: return | def add_to_install_queue(self, widget, data=None): tree = self.gld.get_widget("pacs_tree") model, l_iter = tree.get_selection().get_selected() | ea6ae93eb39d190f438ac5155c32698b37671016 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/ea6ae93eb39d190f438ac5155c32698b37671016/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
869,
67,
5425,
67,
4000,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
2151,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
84,
28965,
67,
3413,
7923,
938,
16,
328,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
869,
67,
5425,
67,
4000,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
2151,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
84,
28965,
67,
3413,
7923,
938,
16,
328,
67,
2... |
elif issubclass(error, xml.dom.DOMException): | elif issubclass(error, xml.dom.DOMException): | def __handle(self, msg=u'', token=None, error=xml.dom.SyntaxErr, neverraise=False, args=None): """ handles all calls logs or raises exception """ line, col = None, None if token: if isinstance(token, tuple): value, line, col = token[1], token[2], token[3] else: value, line, col = token.value, token.line, token.col msg ... | 4af8f1c5682e75d543bf97521a7508d5e34f08c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/4af8f1c5682e75d543bf97521a7508d5e34f08c2/errorhandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4110,
12,
2890,
16,
1234,
33,
89,
11,
2187,
1147,
33,
7036,
16,
555,
33,
2902,
18,
9859,
18,
8070,
2524,
16,
5903,
11628,
33,
8381,
16,
833,
33,
7036,
4672,
3536,
7372,
777,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4110,
12,
2890,
16,
1234,
33,
89,
11,
2187,
1147,
33,
7036,
16,
555,
33,
2902,
18,
9859,
18,
8070,
2524,
16,
5903,
11628,
33,
8381,
16,
833,
33,
7036,
4672,
3536,
7372,
777,
40... |
os.environ['TZ'] = 'Europe/Helsinki' time.tzset() | if hasattr(time, 'tzset'): os.environ['TZ'] = 'Europe/Helsinki' time.tzset() | def setup(self): os.environ['TZ'] = 'Europe/Helsinki' time.tzset() | 88140decb948b3da4f020f7cfeb25c2a905d7c7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/88140decb948b3da4f020f7cfeb25c2a905d7c7e/testutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
1140,
18,
28684,
3292,
21647,
3546,
273,
296,
29197,
19,
44,
10558,
754,
77,
11,
813,
18,
12994,
542,
1435,
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,
3875,
12,
2890,
4672,
1140,
18,
28684,
3292,
21647,
3546,
273,
296,
29197,
19,
44,
10558,
754,
77,
11,
813,
18,
12994,
542,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.latestInfo = info | self._latestInfo = info | def _loadInfo(self, limit = 1): params = { 'action': 'query', 'prop': 'imageinfo', 'titles': self.title(), 'iiprop': ['timestamp', 'user', 'comment', 'url', 'size', 'dimensions', 'sha1', 'mime', 'metadata', 'archivename', 'bitdepth'], 'iilimit': limit, } try: data = query.GetData(params, self.site()) except NotImplemen... | bac3828695dade5ead778d1c52a348dbd0e0e42a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/bac3828695dade5ead778d1c52a348dbd0e0e42a/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
966,
12,
2890,
16,
1800,
273,
404,
4672,
859,
273,
288,
296,
1128,
4278,
296,
2271,
2187,
296,
5986,
4278,
296,
2730,
1376,
2187,
296,
17643,
4278,
365,
18,
2649,
9334,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
966,
12,
2890,
16,
1800,
273,
404,
4672,
859,
273,
288,
296,
1128,
4278,
296,
2271,
2187,
296,
5986,
4278,
296,
2730,
1376,
2187,
296,
17643,
4278,
365,
18,
2649,
9334,
296,
... |
elif dep.module_id.state == 'uninstalled': to_install.add(dep.module_id.id) | def button_upgrade(self, cr, uid, ids, context=None): depobj = self.pool.get('ir.module.module.dependency') todo = self.browse(cr, uid, ids, context=context) to_install = set() i = 0 while i<len(todo): mod = todo[i] i += 1 if mod.state not in ('installed','to upgrade'): raise orm.except_orm(_('Error'), _("Can not upgra... | 080e0dc652d8e70d91dbb5fcc33d95b2899da251 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/080e0dc652d8e70d91dbb5fcc33d95b2899da251/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
15097,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
443,
1631,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
2978,
18,
15896,
6134,
10621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
15097,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
443,
1631,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
2978,
18,
15896,
6134,
10621,
... | |
content = str(self.classCustomLineEdit.text()).replace(":", " ").replace(",", " ").replace("-", " ").split() | content = self.customClassSplits.replace(":", " ").replace(",", " ").replace("-", " ").split() | def discretizeClass(self): if self.originalData: discType = self.classDiscretization classVar = self.originalData.domain.classVar if discType == 2: try: content = str(self.classCustomLineEdit.text()).replace(":", " ").replace(",", " ").replace("-", " ").split() customs = dict.fromkeys([float(x) for x in content]).keys... | bcba59e5cf4e078092c13dacca2737459e977ced /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/bcba59e5cf4e078092c13dacca2737459e977ced/OWDiscretize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19169,
1349,
554,
797,
12,
2890,
4672,
309,
365,
18,
8830,
751,
30,
19169,
559,
273,
365,
18,
1106,
28912,
1349,
1588,
667,
1537,
273,
365,
18,
8830,
751,
18,
4308,
18,
1106,
1537,
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,
19169,
1349,
554,
797,
12,
2890,
4672,
309,
365,
18,
8830,
751,
30,
19169,
559,
273,
365,
18,
1106,
28912,
1349,
1588,
667,
1537,
273,
365,
18,
8830,
751,
18,
4308,
18,
1106,
1537,
225... |
self._bgSelectionEndTime) | self._bgSelectionEndTime, self.dayWidth) | def DrawBackground(self, dc): styles = self.parent self._doDrawingCalculations() | 40d1ecfbe5cf8d06010266900c1b6edbd2528aa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/40d1ecfbe5cf8d06010266900c1b6edbd2528aa0/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
8199,
12,
2890,
16,
6744,
4672,
5687,
273,
365,
18,
2938,
365,
6315,
2896,
26885,
4844,
1012,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10184,
8199,
12,
2890,
16,
6744,
4672,
5687,
273,
365,
18,
2938,
365,
6315,
2896,
26885,
4844,
1012,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if bdb.version() > (4,7): | if hasattr(self.env, "log_set_config"): | def __init__(self, path, name, duplicates=False): self.path = path self.dbpath = os.path.join(self.path, name) if not os.path.isdir(self.path): os.makedirs(self.path) self.env = bdb.DBEnv() self.env.set_tx_max(self.max_txns) self.env.set_lk_max_lockers(self.max_txns*2) self.env.set_lk_max_locks(self.max_txns*2) self.... | 29dcac664c3f2fbc9009978e949ae467280aa521 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11095/29dcac664c3f2fbc9009978e949ae467280aa521/bdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
508,
16,
11211,
33,
8381,
4672,
365,
18,
803,
273,
589,
365,
18,
1966,
803,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
508,
13,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
508,
16,
11211,
33,
8381,
4672,
365,
18,
803,
273,
589,
365,
18,
1966,
803,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
803,
16,
508,
13,
22... |
parse_warnings = self._parse_warnings parse_errors = self._parse_errors field_warnings = self._field_warnings if self._docformat == 'epytext': pdoc = epytext.parse(docstring, parse_errors, parse_warnings) elif self._docformat == 'javadoc': import epydoc.javadoc as javadoc pdoc = javadoc.parse(docstring, field_warning... | errors = [] parsed_docstring = markup.parse(docstring, self._docformat, errors) self._parse_errors = [e for e in errors if e.is_fatal()] self._parse_warnings = [e for e in errors if not e.is_fatal()] descr, fields = parsed_docstring.split_fields() self._descr = descr for field in fields: self._process_field(field.tag... | def __parse_docstring(self, docstring): # Parse the documentation, and store any errors or warnings. parse_warnings = self._parse_warnings parse_errors = self._parse_errors field_warnings = self._field_warnings | 7140f1248773f589eaa5826bd2b3d64a09ab01f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7140f1248773f589eaa5826bd2b3d64a09ab01f2/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
24675,
12,
2890,
16,
14525,
4672,
468,
2884,
326,
7323,
16,
471,
1707,
1281,
1334,
578,
5599,
18,
1109,
67,
12103,
273,
365,
6315,
2670,
67,
12103,
1109,
67,
4324,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
24675,
12,
2890,
16,
14525,
4672,
468,
2884,
326,
7323,
16,
471,
1707,
1281,
1334,
578,
5599,
18,
1109,
67,
12103,
273,
365,
6315,
2670,
67,
12103,
1109,
67,
4324,
273,
... |
manifest.append((os.path.join(bp, 'images/', i), 'image/jpg')) | manifest.append((os.path.join(bp, 'images/', i), 'image/jpeg')) | def create_opf(self, htmlfile, guide=None): mi = self.book_header.exth.mi opf = OPFCreator(os.path.dirname(htmlfile), mi) if hasattr(self.book_header.exth, 'cover_offset'): opf.cover = 'images/%05d.jpg'%(self.book_header.exth.cover_offset+1) manifest = [(htmlfile, 'text/x-oeb1-document')] bp = os.path.dirname(htmlfile)... | 2326873b7c8bfc11478b59c7c8ec10d4776e99c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/2326873b7c8bfc11478b59c7c8ec10d4776e99c6/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
556,
74,
12,
2890,
16,
1729,
768,
16,
7343,
33,
7036,
4672,
12837,
273,
365,
18,
3618,
67,
3374,
18,
408,
76,
18,
9197,
1061,
74,
273,
7247,
42,
10636,
12,
538,
18,
803,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
556,
74,
12,
2890,
16,
1729,
768,
16,
7343,
33,
7036,
4672,
12837,
273,
365,
18,
3618,
67,
3374,
18,
408,
76,
18,
9197,
1061,
74,
273,
7247,
42,
10636,
12,
538,
18,
803,
1... |
debug("SFTP'ing %s to %s:%s" % (local_filepath, hostname, remote_filepath)) | debug("SFTP'ing %s to the server as %s" % (local_filepath, remote_filepath)) | def sftpPut(transport, local_filepath, remote_filepath): """Uses SFTP to transfer a local file (local_filepath) to a remote server at the specified path (remote_filepath) using the given Paramiko transport object.""" debug("Opening an SFTP channel...") sftp = transport.open_sftp() filename = os.path.basename(local_file... | b986f87456c68f9f6506070171008c62c0cb9aaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/b986f87456c68f9f6506070171008c62c0cb9aaf/sshpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26221,
6426,
12,
13049,
16,
1191,
67,
10561,
16,
2632,
67,
10561,
4672,
3536,
15128,
348,
17104,
358,
7412,
279,
1191,
585,
261,
3729,
67,
10561,
13,
358,
279,
2632,
1438,
622,
326,
1269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26221,
6426,
12,
13049,
16,
1191,
67,
10561,
16,
2632,
67,
10561,
4672,
3536,
15128,
348,
17104,
358,
7412,
279,
1191,
585,
261,
3729,
67,
10561,
13,
358,
279,
2632,
1438,
622,
326,
1269... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.