rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
return [ob.name for ob in cur.fetchall()] | return [ob["name"] for ob in cur.fetchall()] | def getNames(self): cur = self._primarydb.cursor() cur.execute("SELECT name FROM packages") return [ob.name for ob in cur.fetchall()] | 81bddd7eecda01eeb8ff729aefec978b2d68e47b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/81bddd7eecda01eeb8ff729aefec978b2d68e47b/sqliterepodb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1557,
12,
2890,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2932,
4803,
508,
4571,
5907,
7923,
327,
306,
947,
18,
529,
364,
3768,
316,
662,
18,
5754,
454... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
1557,
12,
2890,
4672,
662,
273,
365,
6315,
8258,
1966,
18,
9216,
1435,
662,
18,
8837,
2932,
4803,
508,
4571,
5907,
7923,
327,
306,
947,
18,
529,
364,
3768,
316,
662,
18,
5754,
454... |
docstring = self.format_docstring(self.docstring, max_w - 2) | docstring = self.format_docstring(self.docstring, max_w - 2, max_h - height_offset) | def lsize(): wl = max(len(i) for i in v_items) + 1 if not wl: wl = 1 cols = ((max_w - 2) / wl) or 1 rows = len(v_items) / cols | 7d4ddee92a58ee1633a5689e9eca373110949e8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/7d4ddee92a58ee1633a5689e9eca373110949e8f/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
1467,
13332,
19564,
273,
943,
12,
1897,
12,
77,
13,
364,
277,
316,
331,
67,
3319,
13,
397,
404,
309,
486,
19564,
30,
19564,
273,
404,
5347,
273,
14015,
1896,
67,
91,
300,
576,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
328,
1467,
13332,
19564,
273,
943,
12,
1897,
12,
77,
13,
364,
277,
316,
331,
67,
3319,
13,
397,
404,
309,
486,
19564,
30,
19564,
273,
404,
5347,
273,
14015,
1896,
67,
91,
300,
576,
1... |
def prepareTransformationTasks(self,transBody,taskDict,owner,ownerGroup): | def prepareTransformationTasks(self,transBody,taskDict,owner='',ownerGroup=''): | def prepareTransformationTasks(self,transBody,taskDict,owner,ownerGroup): return S_ERROR("Not implemented") | f2564427ac532d2f3984ec9d123b9e89dcbe7b1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/f2564427ac532d2f3984ec9d123b9e89dcbe7b1b/TaskManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
15292,
6685,
12,
2890,
16,
2338,
2250,
16,
4146,
5014,
16,
8443,
2218,
2187,
8443,
1114,
2218,
11,
4672,
327,
348,
67,
3589,
2932,
1248,
8249,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
15292,
6685,
12,
2890,
16,
2338,
2250,
16,
4146,
5014,
16,
8443,
2218,
2187,
8443,
1114,
2218,
11,
4672,
327,
348,
67,
3589,
2932,
1248,
8249,
7923,
225,
2,
-100,
-100,
-100,
-100,... |
dist1 = do1.getPos(localAvatar).length() dist2 = do2.getPos(localAvatar).length() | def _compareDistance(self, do1, do2): has1 = hasattr(do1, 'getPos') has2 = hasattr(do2, 'getPos') if not has1 and not has2: return 0 if not has1: return 1 if not has2: return -1 dist1 = do1.getPos(localAvatar).length() dist2 = do2.getPos(localAvatar).length() if (dist1 < dist2): return -1 return 1 | 5e1ac15ba8de9ebd4d02cff8e6202571165d531c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/5e1ac15ba8de9ebd4d02cff8e6202571165d531c/DoCollectionManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9877,
7200,
12,
2890,
16,
741,
21,
16,
741,
22,
4672,
711,
21,
273,
3859,
12,
2896,
21,
16,
296,
588,
1616,
6134,
711,
22,
273,
3859,
12,
2896,
22,
16,
296,
588,
1616,
6134,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9877,
7200,
12,
2890,
16,
741,
21,
16,
741,
22,
4672,
711,
21,
273,
3859,
12,
2896,
21,
16,
296,
588,
1616,
6134,
711,
22,
273,
3859,
12,
2896,
22,
16,
296,
588,
1616,
6134,
3... | |
if prefix + "dh" not in params or params[prefix + "dh"] > dt: params[prefix + "dh"] = dt | if prefix + "dh" not in params or abs(params[prefix + "dh"]) > abs(dh): params[prefix + "dh"] = dh | def coinc_params(events, offsetdict): events.sort(lambda a, b: cmp(a.ifo, b.ifo)) params = {} for event1, event2 in itertools.choices(events, 2): if event1.ifo == event2.ifo: # a coincidence is parameterized only by # inter-instrument deltas continue prefix = "%s_%s_" % (event1.ifo, event2.ifo) # in each of the follo... | 7eb5eb8cec6eb71a891e196703b79f1bb52c9aa0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/7eb5eb8cec6eb71a891e196703b79f1bb52c9aa0/ligolw_burca_tailor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13170,
71,
67,
2010,
12,
5989,
16,
1384,
1576,
4672,
2641,
18,
3804,
12,
14661,
279,
16,
324,
30,
9411,
12,
69,
18,
20299,
16,
324,
18,
20299,
3719,
859,
273,
2618,
364,
871,
21,
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,
13170,
71,
67,
2010,
12,
5989,
16,
1384,
1576,
4672,
2641,
18,
3804,
12,
14661,
279,
16,
324,
30,
9411,
12,
69,
18,
20299,
16,
324,
18,
20299,
3719,
859,
273,
2618,
364,
871,
21,
16,... |
costgradient, last_y, gradparams, sens = shoot_single_segment(us[-1], ys[-1], grid[-1]) | costgradient, last_y, gradparams, sens = self._shoot_single_segment(us[-1], ys[-1], grid[-1]) | def df(p): # grad(f) - CURRENTLY NOT USED """Returns the gradient of f(cur_u). In the VDP example it depends on the """ ys, us = _split_opt_x(model, len(grid), p) costgradient, last_y, gradparams, sens = shoot_single_segment(us[-1], ys[-1], grid[-1]) print "Evaluating cost function gradient." # HARDCODED # Comments:... | f1dfce1901034f7575c607a69f80948c2d756531 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f1dfce1901034f7575c607a69f80948c2d756531/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3013,
12,
84,
4672,
468,
6058,
12,
74,
13,
300,
18484,
7076,
4269,
14988,
40,
3536,
1356,
326,
10292,
434,
284,
12,
1397,
67,
89,
2934,
225,
657,
326,
776,
8640,
3454,
518,
10935,
603,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3013,
12,
84,
4672,
468,
6058,
12,
74,
13,
300,
18484,
7076,
4269,
14988,
40,
3536,
1356,
326,
10292,
434,
284,
12,
1397,
67,
89,
2934,
225,
657,
326,
776,
8640,
3454,
518,
10935,
603,... |
pathlist = os.environ['PATH'].split(':') | pathlist = os.environ['PATH'].split(os.pathsep) | def msg(str): sys.stderr.write(str + '\n') | 5f5a712772ead0ac9f3cddf1739f58dc7c7ce4c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5f5a712772ead0ac9f3cddf1739f58dc7c7ce4c7/which.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1234,
12,
701,
4672,
2589,
18,
11241,
18,
2626,
12,
701,
397,
2337,
82,
6134,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
1234,
12,
701,
4672,
2589,
18,
11241,
18,
2626,
12,
701,
397,
2337,
82,
6134,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
c = Client("hypervisor_validate_params", [hvname, hv_full]) self._ConnectList(c, node_list) result = c.GetResults() return result | return self._MultiNodeCall(node_list, "hypervisor_validate_params", [hvname, hv_full]) | def call_hypervisor_validate_params(self, node_list, hvname, hvparams): """Validate the hypervisor params. | 9a525d83b2a75f44cc1171e7d715b5bee7a76756 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/9a525d83b2a75f44cc1171e7d715b5bee7a76756/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
17203,
10227,
67,
5662,
67,
2010,
12,
2890,
16,
756,
67,
1098,
16,
366,
90,
529,
16,
366,
90,
2010,
4672,
3536,
4270,
326,
9512,
10227,
859,
18,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
17203,
10227,
67,
5662,
67,
2010,
12,
2890,
16,
756,
67,
1098,
16,
366,
90,
529,
16,
366,
90,
2010,
4672,
3536,
4270,
326,
9512,
10227,
859,
18,
2,
-100,
-100,
-100,
-100,
-... |
if status == 304: else: | if not status == 304: | def update(self): if not self.initialHTML is None: html = self.initialHTML self.initialHTML = None redirURL=self.url status = 200 else: (html,url, redirURL, status) = self.getHTML(self.url) if status == 304: #pass else: if not html is None: links = self.scrapeLinks(html, redirURL, setTitle=True) self.processLinks(links... | 3339466c9d73d7ae52f1cc4d532dbbac60cba1b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/3339466c9d73d7ae52f1cc4d532dbbac60cba1b9/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
309,
486,
365,
18,
6769,
4870,
353,
599,
30,
1729,
273,
365,
18,
6769,
4870,
365,
18,
6769,
4870,
273,
599,
283,
1214,
1785,
33,
2890,
18,
718,
1267,
273,
4044,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2890,
4672,
309,
486,
365,
18,
6769,
4870,
353,
599,
30,
1729,
273,
365,
18,
6769,
4870,
365,
18,
6769,
4870,
273,
599,
283,
1214,
1785,
33,
2890,
18,
718,
1267,
273,
4044,
... |
nl('%s: | nl('%s: | def indent_block(text): return '\n'.join([' %s' % line for line in text.split('\n')]) | f82b807905125f1ddcce4b0029163f2497bc5d0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/f82b807905125f1ddcce4b0029163f2497bc5d0b/format_transcript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3504,
67,
2629,
12,
955,
4672,
327,
2337,
82,
10332,
5701,
12,
3292,
565,
738,
87,
11,
738,
980,
565,
364,
980,
316,
977,
18,
4939,
2668,
64,
82,
6134,
5717,
225,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3504,
67,
2629,
12,
955,
4672,
327,
2337,
82,
10332,
5701,
12,
3292,
565,
738,
87,
11,
738,
980,
565,
364,
980,
316,
977,
18,
4939,
2668,
64,
82,
6134,
5717,
225,
2,
-100,
-100,
-100... |
import urllib, re | def find_location_from_archive(self, identifier): """Use archive.org to get the location. """ import urllib, re from xml.dom import minidom | 93794d696f3cd834370410c4f73edcc11d1e8145 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/93794d696f3cd834370410c4f73edcc11d1e8145/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3562,
67,
2080,
67,
10686,
12,
2890,
16,
2756,
4672,
3536,
3727,
5052,
18,
3341,
358,
336,
326,
2117,
18,
3536,
628,
2025,
18,
9859,
1930,
1131,
350,
362,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3562,
67,
2080,
67,
10686,
12,
2890,
16,
2756,
4672,
3536,
3727,
5052,
18,
3341,
358,
336,
326,
2117,
18,
3536,
628,
2025,
18,
9859,
1930,
1131,
350,
362,
2,
-100,
-100,
-100... | |
An exception is raised when the matrix is not bistochastic:: | An exception is raised when the matrix is not positive and bistochastic:: | def bistochastic_as_sum_of_permutations(M, check = True): r""" Returns the positive sum of permutations corresponding to the bistochastic matrix. A stochastic matrix is a matrix such that the sum of the elements of any row is equal to 1. A bistochastic matrix is a stochastic matrix whose transpose matrix is also stoch... | 3d841b41396ffdcc7218e64fcbb4650c74bb529b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/3d841b41396ffdcc7218e64fcbb4650c74bb529b/permutation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
376,
30774,
67,
345,
67,
1364,
67,
792,
67,
457,
29467,
12,
49,
16,
866,
273,
1053,
4672,
436,
8395,
2860,
326,
6895,
2142,
434,
26468,
4656,
358,
326,
324,
376,
30774,
3148,
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,
324,
376,
30774,
67,
345,
67,
1364,
67,
792,
67,
457,
29467,
12,
49,
16,
866,
273,
1053,
4672,
436,
8395,
2860,
326,
6895,
2142,
434,
26468,
4656,
358,
326,
324,
376,
30774,
3148,
18,
... |
sage: q = qsieve(n, block=False, time=True) sage: q Proper factors so far: [] sage: q | sage: q = qsieve(n, block=False, time=True) sage: q Proper factors so far: [] sage: q | def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], ''... | 2deb32b0c430790b2ca2a961fbc8993d90dc478c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2deb32b0c430790b2ca2a961fbc8993d90dc478c/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
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,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... |
node.parentNode.appendChild(node) | parentNode = self.elementStack[-1] parentNode.appendChild(node) | def characters(self, chars): PullDOM.characters(self, chars) node = self.lastEvent[0][1] node.parentNode.appendChild(node) | 37ce29a4b515f0f3d5c14c4ccb2c320ae150df99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/37ce29a4b515f0f3d5c14c4ccb2c320ae150df99/pulldom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3949,
12,
2890,
16,
5230,
4672,
14899,
8168,
18,
20558,
12,
2890,
16,
5230,
13,
756,
273,
365,
18,
2722,
1133,
63,
20,
6362,
21,
65,
756,
18,
2938,
907,
18,
6923,
1763,
12,
2159,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3949,
12,
2890,
16,
5230,
4672,
14899,
8168,
18,
20558,
12,
2890,
16,
5230,
13,
756,
273,
365,
18,
2722,
1133,
63,
20,
6362,
21,
65,
756,
18,
2938,
907,
18,
6923,
1763,
12,
2159,
13,... |
self.store_result(task_id, result, status, traceback, False) | self.store_result(task_id, result, status, traceback, exception_retry_count-1) | def store_result(self, task_id, result, status, traceback=None, exception_retry=True): """Store the result and status of a task. | 0e4e001dd5cca3d4404f01b2114b2900c6377586 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2024/0e4e001dd5cca3d4404f01b2114b2900c6377586/managers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
67,
2088,
12,
2890,
16,
1562,
67,
350,
16,
563,
16,
1267,
16,
10820,
33,
7036,
16,
1520,
67,
9620,
33,
5510,
4672,
3536,
2257,
326,
563,
471,
1267,
434,
279,
1562,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1707,
67,
2088,
12,
2890,
16,
1562,
67,
350,
16,
563,
16,
1267,
16,
10820,
33,
7036,
16,
1520,
67,
9620,
33,
5510,
4672,
3536,
2257,
326,
563,
471,
1267,
434,
279,
1562,
18,
2,
-100,... |
tmpdir = os.getenv("TEMP", "/tmp") | tmpdir = tempfile.gettempdir() | def test_cwd(self): tmpdir = os.getenv("TEMP", "/tmp") # We cannot use os.path.realpath to canonicalize the path, # since it doesn't expand Tru64 {memb} strings. See bug 1063571. cwd = os.getcwd() os.chdir(tmpdir) tmpdir = os.getcwd() os.chdir(cwd) p = subprocess.Popen([sys.executable, "-c", 'import sys,os;' \ 'sys.std... | 8becca09e3ffcf81305673bb4fbf32286c1811cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/8becca09e3ffcf81305673bb4fbf32286c1811cd/test_subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11089,
12,
2890,
4672,
20213,
273,
13275,
18,
588,
5814,
1214,
1435,
468,
1660,
2780,
999,
1140,
18,
803,
18,
7688,
803,
358,
25839,
326,
589,
16,
468,
3241,
518,
3302,
1404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11089,
12,
2890,
4672,
20213,
273,
13275,
18,
588,
5814,
1214,
1435,
468,
1660,
2780,
999,
1140,
18,
803,
18,
7688,
803,
358,
25839,
326,
589,
16,
468,
3241,
518,
3302,
1404,
... |
if self.schema is None or self.schema.has_key(key): if type(val) in self.str_types: continue elif type(val) in self.list_types: for v in val: if type(v) not in self.str_types: raise TypeError, type_error_msg else: | if type(val) in self.list_types: for v in val: if type(v) not in self.str_types: raise TypeError, type_error_msg elif not (self.schema is None or self.schema.has_key(key)): | def set_attrs(self, attrs): # Check types of values type_error_msg = 'One of the given values is not compatible' for key, val in attrs.items(): if self.schema is None or self.schema.has_key(key): if type(val) in self.str_types: continue elif type(val) in self.list_types: for v in val: if type(v) not in self.str_types: ... | 1b3ad7c0ea5bee3ac1030350a97eb10ac1fca394 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/1b3ad7c0ea5bee3ac1030350a97eb10ac1fca394/metadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
7039,
12,
2890,
16,
3422,
4672,
468,
2073,
1953,
434,
924,
618,
67,
1636,
67,
3576,
273,
296,
3335,
434,
326,
864,
924,
353,
486,
7318,
11,
364,
498,
16,
1244,
316,
3422,
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,
444,
67,
7039,
12,
2890,
16,
3422,
4672,
468,
2073,
1953,
434,
924,
618,
67,
1636,
67,
3576,
273,
296,
3335,
434,
326,
864,
924,
353,
486,
7318,
11,
364,
498,
16,
1244,
316,
3422,
18... |
def try_it(text,style,dedent): | def try_it(text,style,dedent,aW,aH): | def try_it(text,style,dedent): P=XPreformatted(text,style,dedent=dedent) dumpXPreformattedFrags(P) aW, aH = 456.0, 42.8 w,h = P.wrap(aW, aH) dumpXPreformattedLines(P) S = P.split(aW,aH) for s in S: s.wrap(aW,aH) dumpXPreformattedLines(s) aH = 500 | a6bb9488e994300d29c41fe723d04b8d58818934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/a6bb9488e994300d29c41fe723d04b8d58818934/xpreformatted.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
305,
12,
955,
16,
4060,
16,
785,
319,
16,
69,
59,
16,
69,
44,
4672,
453,
33,
60,
1386,
14897,
12,
955,
16,
4060,
16,
785,
319,
33,
785,
319,
13,
4657,
60,
1386,
14897,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
305,
12,
955,
16,
4060,
16,
785,
319,
16,
69,
59,
16,
69,
44,
4672,
453,
33,
60,
1386,
14897,
12,
955,
16,
4060,
16,
785,
319,
33,
785,
319,
13,
4657,
60,
1386,
14897,
7... |
% (url, e.reason.args[1])), sys.exc_info() reraise_exception(e) | % (url, e.reason.args[1])) reraise_exception(e, sys.exc_info()) | def open(self, url, *args, **kw): try: code = 500 result = None result = self.default_opener.open(url, *args, **kw) code = result.code return result except HTTPError, e: code = e.code reraise_exception(HTTPClientError('HTTP Error (%.30s...): %d' % (url, e.code)), sys.exc_info()) except URLError, e: if ssl and isinstanc... | ee513c3c5b39a6bb59f269254bcb54f182f9548e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/ee513c3c5b39a6bb59f269254bcb54f182f9548e/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
380,
1968,
16,
2826,
9987,
4672,
775,
30,
981,
273,
6604,
563,
273,
599,
563,
273,
365,
18,
1886,
67,
25098,
18,
3190,
12,
718,
16,
380,
1968,
16,
2826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
380,
1968,
16,
2826,
9987,
4672,
775,
30,
981,
273,
6604,
563,
273,
599,
563,
273,
365,
18,
1886,
67,
25098,
18,
3190,
12,
718,
16,
380,
1968,
16,
2826,
... |
if output and result != output: | if overflowrequired: | def testformat(formatstr, args, output=None): if verbose: if output: print "%s %% %s =? %s ..." %\ (repr(formatstr), repr(args), repr(output)), else: print "%s %% %s works? ..." % (repr(formatstr), repr(args)), try: result = formatstr % args except OverflowError: if not overflowok: raise if verbose: print 'overflow (th... | c5db92399467e0fbe08b3e4a12cd5cd7eb29218b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/c5db92399467e0fbe08b3e4a12cd5cd7eb29218b/test_format.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2139,
12,
2139,
701,
16,
833,
16,
876,
33,
7036,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
738,
87,
18483,
738,
64,
261,
12715,
12,
2139,
701,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2139,
12,
2139,
701,
16,
833,
16,
876,
33,
7036,
4672,
309,
3988,
30,
309,
876,
30,
1172,
2213,
87,
26510,
738,
87,
273,
35,
738,
87,
18483,
738,
64,
261,
12715,
12,
2139,
701,... |
top: 8em; | top: 12em; | def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r""" | 94b0ff19b3fe7c9f87254643b0ddc7cccbd10a00 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/94b0ff19b3fe7c9f87254643b0ddc7cccbd10a00/css.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... |
if self.server.config.dumpFaultInfo: s = 'Method %s exception' % nsmethod debugHeader(s) traceback.print_exception(info[0], info[1], info[2]) debugFooter(s) if isinstance(e, faultType): f = e else: f = faultType("%s:Server" % NS.ENV_T, "Method %s failed." % nsmethod) if self.server.config.returnFaultInfo: f._setDetai... | try: if self.server.config.dumpFaultInfo: s = 'Method %s exception' % nsmethod debugHeader(s) traceback.print_exception(info[0], info[1], info[2]) debugFooter(s) if isinstance(e, faultType): f = e else: f = faultType("%s:Server" % NS.ENV_T, "Method %s failed." % nsmethod) if self.server.config.returnFaultInfo: f._set... | def do_POST(self): global _contexts status = 500 try: if self.server.config.dumpHeadersIn: s = 'Incoming HTTP headers' debugHeader(s) print self.raw_requestline.strip() print "\n".join(map (lambda x: x.strip(), self.headers.headers)) debugFooter(s) | 793c98daa3d96e516edf70c6ca71abb2202b7eb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/793c98daa3d96e516edf70c6ca71abb2202b7eb1/Server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3798,
12,
2890,
4672,
2552,
389,
18332,
225,
1267,
273,
6604,
775,
30,
309,
365,
18,
3567,
18,
1425,
18,
8481,
3121,
382,
30,
272,
273,
296,
20370,
2239,
1607,
11,
1198,
1864,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3798,
12,
2890,
4672,
2552,
389,
18332,
225,
1267,
273,
6604,
775,
30,
309,
365,
18,
3567,
18,
1425,
18,
8481,
3121,
382,
30,
272,
273,
296,
20370,
2239,
1607,
11,
1198,
1864,... |
elif os.name == "posix": | else: | def detect_platform (): global HOST, TARGET, DEVNULL # for some reason os.name on MacOS is "posix", although Python docs # say it should be "mac", so we detect Macs in a different way if os.name == "mac" or platform.mac_ver () [0] != '': HOST = ["mac"] TARGET = ["mac"] DEVNULL = "/dev/null" elif os.name == "posix": HO... | fb1a4195eb73208f181a8969d781d277cee21c2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2556/fb1a4195eb73208f181a8969d781d277cee21c2e/ac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
9898,
1832,
30,
2552,
21425,
16,
16964,
16,
2030,
58,
8560,
225,
468,
364,
2690,
3971,
1140,
18,
529,
603,
13217,
4618,
353,
315,
24463,
3113,
26347,
6600,
3270,
468,
12532,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
9898,
1832,
30,
2552,
21425,
16,
16964,
16,
2030,
58,
8560,
225,
468,
364,
2690,
3971,
1140,
18,
529,
603,
13217,
4618,
353,
315,
24463,
3113,
26347,
6600,
3270,
468,
12532,
51... |
count_constraint = Literal("count(").suppress() + atom + Literal("|").suppress() + varList + Literal(")").suppress() + (Literal("=") | Literal(">=") | Literal("<=")) + Word(nums) | count_constraint = Literal("count(").suppress() + atom + Optional(Literal("|").suppress() + varList) + Literal(")").suppress() + (Literal("=") | Literal(">=") | Literal("<=")) + Word(nums) | def getConstraint(self): if len(self.stack) > 1: raise Exception("Not a valid formula - reduces to more than one element %s" % str(self.stack)) if len(self.stack) == 0: raise Exception("Constraint could not be parsed") if not isinstance(self.stack[0], Constraint): raise Exception("Not an instance of Constraint!") retur... | 1f3caf6d5f7ae8ea6c4270ece63192b00b154a4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10261/1f3caf6d5f7ae8ea6c4270ece63192b00b154a4d/FOL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5806,
12,
2890,
4672,
309,
562,
12,
2890,
18,
3772,
13,
405,
404,
30,
1002,
1185,
2932,
1248,
279,
923,
8013,
300,
30568,
358,
1898,
2353,
1245,
930,
738,
87,
6,
738,
609,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5806,
12,
2890,
4672,
309,
562,
12,
2890,
18,
3772,
13,
405,
404,
30,
1002,
1185,
2932,
1248,
279,
923,
8013,
300,
30568,
358,
1898,
2353,
1245,
930,
738,
87,
6,
738,
609,
12,
2... |
textmode = eol is not None | textmode = eolmode != 'strict' | def applydiff(ui, fp, changed, strip=1, sourcefile=None, eol=None): """ Reads a patch from fp and tries to apply it. The dict 'changed' is filled in with all of the filenames changed by the patch. Returns 0 for a clean patch, -1 if any rejects were found and 1 if there was any fuzz. If 'eol' is None, the patch conten... | e867db56d38702f74798fa1971c33af7f18f5d20 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/e867db56d38702f74798fa1971c33af7f18f5d20/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
5413,
12,
4881,
16,
4253,
16,
3550,
16,
2569,
33,
21,
16,
1084,
768,
33,
7036,
16,
14775,
33,
7036,
4672,
3536,
29185,
279,
4729,
628,
4253,
471,
9327,
358,
2230,
518,
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,
2230,
5413,
12,
4881,
16,
4253,
16,
3550,
16,
2569,
33,
21,
16,
1084,
768,
33,
7036,
16,
14775,
33,
7036,
4672,
3536,
29185,
279,
4729,
628,
4253,
471,
9327,
358,
2230,
518,
18,
225,
... |
return GUIBuilder.FILTER_INTERMEDIATE | return bxd.COLOR_INTERMEDIATE | def getParameterLevel(self, parameter): """ Created: 9.11.2006, KP Description: Return the level of the given parameter """ if parameter in ["FeatureAngle","Scale"]: return GUIBuilder.FILTER_INTERMEDIATE | fbc614ee73924b1c2e127ca1f023bc53bb7e8ea5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/fbc614ee73924b1c2e127ca1f023bc53bb7e8ea5/WarpScalar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5575,
2355,
12,
2890,
16,
1569,
4672,
3536,
12953,
30,
2468,
18,
2499,
18,
6976,
26,
16,
1475,
52,
6507,
30,
2000,
326,
1801,
434,
326,
864,
1569,
3536,
309,
1569,
316,
8247,
4595,
846... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5575,
2355,
12,
2890,
16,
1569,
4672,
3536,
12953,
30,
2468,
18,
2499,
18,
6976,
26,
16,
1475,
52,
6507,
30,
2000,
326,
1801,
434,
326,
864,
1569,
3536,
309,
1569,
316,
8247,
4595,
846... |
self.parser.headPointer = self.openElements[-1] | self.parser.headPointer = self.parser.openElements[-1] | def createHeadNode(self, name, attributes): self.startTagHead("head", attributes) self.parser.headPointer = self.openElements[-1] self.parser.switchInsertionMode("inHead") | eea0b52fe8a409bfa32d84e5216bf8841909d030 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/eea0b52fe8a409bfa32d84e5216bf8841909d030/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1414,
907,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
1937,
1805,
1414,
2932,
1978,
3113,
1677,
13,
365,
18,
4288,
18,
1978,
4926,
273,
365,
18,
4288,
18,
3190,
3471,
18919,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1414,
907,
12,
2890,
16,
508,
16,
1677,
4672,
365,
18,
1937,
1805,
1414,
2932,
1978,
3113,
1677,
13,
365,
18,
4288,
18,
1978,
4926,
273,
365,
18,
4288,
18,
3190,
3471,
18919,
21,
... |
return inclusive | elif n.startswith('xmlns:'): unused_namespace_dict[n] = attr.value return inclusive, unused_namespace_dict | def _inclusiveNamespacePrefixes(node, context, unsuppressedPrefixes): '''http://www.w3.org/TR/xml-exc-c14n/ InclusiveNamespaces PrefixList parameter, which lists namespace prefixes that are handled in the manner described by the Canonical XML Recommendation''' inclusive = [] if node.prefix: usedPrefixes = ['xmlns:%s' %... | 25d03d3886754d1722b5d43dbd06d0aa5e778312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/25d03d3886754d1722b5d43dbd06d0aa5e778312/c14n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
267,
9173,
3402,
11700,
12,
2159,
16,
819,
16,
640,
2859,
10906,
11700,
4672,
9163,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
2902,
17,
10075,
17,
71,
3461,
82,
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,
389,
267,
9173,
3402,
11700,
12,
2159,
16,
819,
16,
640,
2859,
10906,
11700,
4672,
9163,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
4349,
19,
2902,
17,
10075,
17,
71,
3461,
82,
19,
... |
def getRawArticle(self, title): | def getRawArticle(self, title, raw=None, revision=None): | def getRawArticle(self, title): title = normname(title) res = self._readobj(":"+title) if res is None: return None | 2db4430abd9c00ca5d108094763474bb924723be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12391/2db4430abd9c00ca5d108094763474bb924723be/cdbwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
16,
1831,
33,
7036,
16,
6350,
33,
7036,
4672,
2077,
273,
4651,
529,
12,
2649,
13,
400,
273,
365,
6315,
896,
2603,
2932,
2773,
15,
2649,
13,
309,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10547,
7880,
12,
2890,
16,
2077,
16,
1831,
33,
7036,
16,
6350,
33,
7036,
4672,
2077,
273,
4651,
529,
12,
2649,
13,
400,
273,
365,
6315,
896,
2603,
2932,
2773,
15,
2649,
13,
309,
400,
... |
except order.DoesNotExist: | except Order.DoesNotExist: | def from_request(self, request): """Get the order from the session | 585e727fc6fa83c0501343ef7e104256b646c5ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/585e727fc6fa83c0501343ef7e104256b646c5ba/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
67,
2293,
12,
2890,
16,
590,
4672,
3536,
967,
326,
1353,
628,
326,
1339,
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,
628,
67,
2293,
12,
2890,
16,
590,
4672,
3536,
967,
326,
1353,
628,
326,
1339,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
i=i+22+vlen+dlen | i=i+14+vlen+dlen | def tpc_finish(self, transaction, f=None): self._lock_acquire() try: if transaction is not self._transaction: return if f is not None: f() | bd1e5a99ea27a969ebb0e73bd6dde8cc5b891bf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/bd1e5a99ea27a969ebb0e73bd6dde8cc5b891bf2/ClientStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2436,
67,
13749,
12,
2890,
16,
2492,
16,
284,
33,
7036,
4672,
365,
6315,
739,
67,
1077,
1039,
1435,
775,
30,
309,
2492,
353,
486,
365,
6315,
7958,
30,
327,
309,
284,
353,
486,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2436,
67,
13749,
12,
2890,
16,
2492,
16,
284,
33,
7036,
4672,
365,
6315,
739,
67,
1077,
1039,
1435,
775,
30,
309,
2492,
353,
486,
365,
6315,
7958,
30,
327,
309,
284,
353,
486,
5... |
return next(24) / float(1 << 24) | return self.next(24) / float(1 << 24) | def nextFloat(self): """ Return a random float in (0, 1). | 87b6542119e8b64f12041b25ec3c779382ab9886 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14153/87b6542119e8b64f12041b25ec3c779382ab9886/javarandom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
4723,
12,
2890,
4672,
3536,
2000,
279,
2744,
1431,
316,
261,
20,
16,
404,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
4723,
12,
2890,
4672,
3536,
2000,
279,
2744,
1431,
316,
261,
20,
16,
404,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
packages = [PY_PACKAGE], package_dir = { PY_PACKAGE: os.path.join('python', 'curl') }, | def get_data_files(): # a list of tuples with (path to install to, a list of local files) data_files = [] if sys.platform == "win32": datadir = os.path.join("doc", PACKAGE) else: datadir = os.path.join("share", "doc", PACKAGE) # files = ["ChangeLog", "COPYING", "INSTALL", "README", "TODO",] if files: data_files.append(... | ec482cfc7a73e3cdd37683a4df47e68c60b1fbf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12352/ec482cfc7a73e3cdd37683a4df47e68c60b1fbf0/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
67,
2354,
13332,
468,
279,
666,
434,
10384,
598,
261,
803,
358,
3799,
358,
16,
279,
666,
434,
1191,
1390,
13,
501,
67,
2354,
273,
5378,
309,
2589,
18,
9898,
422,
315,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
67,
2354,
13332,
468,
279,
666,
434,
10384,
598,
261,
803,
358,
3799,
358,
16,
279,
666,
434,
1191,
1390,
13,
501,
67,
2354,
273,
5378,
309,
2589,
18,
9898,
422,
315,
8... | |
elif ((skipFlags & SKIP_WIDGET) and | elif base.direct and\ ((skipFlags & SKIP_WIDGET) and | def findCollisionEntry(self, skipFlags = SKIP_NONE, startIndex = 0): # Init self.index and self.entry self.setCurrentIndex(-1) self.setCurrentEntry(None) # Pick out the closest object that isn't a widget for i in range(startIndex, self.getNumEntries()): entry = self.getEntry(i) nodePath = entry.getIntoNodePath() if (sk... | 7887f5b9d829e09c946066e99494efb5f5d46016 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/7887f5b9d829e09c946066e99494efb5f5d46016/DirectSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
13535,
1951,
1622,
12,
2890,
16,
2488,
5094,
273,
18420,
67,
9826,
16,
10588,
273,
374,
4672,
468,
4378,
365,
18,
1615,
471,
365,
18,
4099,
365,
18,
542,
3935,
1016,
19236,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
13535,
1951,
1622,
12,
2890,
16,
2488,
5094,
273,
18420,
67,
9826,
16,
10588,
273,
374,
4672,
468,
4378,
365,
18,
1615,
471,
365,
18,
4099,
365,
18,
542,
3935,
1016,
19236,
21,
1... |
def pbsz(self): """Send PBSZ for secure data connection.""" | def prot_p(self): """Set up secure data connection.""" | def pbsz(self): """Send PBSZ for secure data connection.""" self.voidcmd('PBSZ 0') | 9571b8297bbdda238878aed1b653f227f362ca02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/9571b8297bbdda238878aed1b653f227f362ca02/ftpslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11121,
67,
84,
12,
2890,
4672,
3536,
694,
731,
8177,
501,
1459,
12123,
365,
18,
6459,
4172,
2668,
52,
12692,
62,
374,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11121,
67,
84,
12,
2890,
4672,
3536,
694,
731,
8177,
501,
1459,
12123,
365,
18,
6459,
4172,
2668,
52,
12692,
62,
374,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print >> sys.stderr, 'WARNING: Could not find copyright table. Will try to setup automatically. If you continue to have trouble try using %s --setup-database' % sys.argv[0] | print >> sys.stdout, 'WARNING: Could not find copyright table. Will try to setup automatically. If you continue to have trouble try using %s --setup-database' % sys.argv[0] | def table_check(db): if db.access('SELECT ct_pk FROM copyright LIMIT 1') != 1: error = db.errmsg() if error == 'relation "copyright" does not exist': print >> sys.stderr, 'WARNING: Could not find copyright table. Will try to setup automatically. If you continue to have trouble try using %s --setup-database' % sys.argv[... | 9cbd5f71e1aaef822d05b637d8be742d93279010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6959/9cbd5f71e1aaef822d05b637d8be742d93279010/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1014,
67,
1893,
12,
1966,
4672,
309,
1319,
18,
3860,
2668,
4803,
5691,
67,
5465,
4571,
22245,
13319,
404,
6134,
480,
404,
30,
555,
273,
1319,
18,
24409,
1435,
309,
555,
422,
296,
5488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1014,
67,
1893,
12,
1966,
4672,
309,
1319,
18,
3860,
2668,
4803,
5691,
67,
5465,
4571,
22245,
13319,
404,
6134,
480,
404,
30,
555,
273,
1319,
18,
24409,
1435,
309,
555,
422,
296,
5488,
... |
Subtitle | Section ------- | def suite(): s = DocutilsTestSupport.HtmlPublishPartsTestSuite() s.generateTests(totest) return s | 89e95c9ef49e6f34e6b535300d7e23964ce090cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/89e95c9ef49e6f34e6b535300d7e23964ce090cc/test_parts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
4353,
6024,
4305,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
282,
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,
0,
0,
0,
0,
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,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
4353,
6024,
4305,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not self.userRootCache[username]: | if not username in self.userRootCache: | def getUserRoot(self, username): if not self.userRootCache[username]: self.userRootCache[username] = self._getUserField(username, "UserRoot") return self.userRootCache[username] | 407685617a544517e17378c8f8b002748fd7fc6d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2223/407685617a544517e17378c8f8b002748fd7fc6d/db_mysql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
2375,
12,
2890,
16,
2718,
4672,
309,
486,
2718,
316,
365,
18,
1355,
2375,
1649,
30,
365,
18,
1355,
2375,
1649,
63,
5053,
65,
273,
365,
6315,
588,
1299,
974,
12,
5053,
16,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
2375,
12,
2890,
16,
2718,
4672,
309,
486,
2718,
316,
365,
18,
1355,
2375,
1649,
30,
365,
18,
1355,
2375,
1649,
63,
5053,
65,
273,
365,
6315,
588,
1299,
974,
12,
5053,
16,
315,
... |
print "\nBad words loaded." | wikipedia.output(u"\nBad words loaded.") | def badword_function(raw): list_loaded = list() pos = 0 load_2 = True # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure) while load_2 == True: regl = "(\"|\')(.*?)(\"|\')(, |\))" pl = re.compile(regl, re.UNICODE) xl = pl.search(raw, pos) if xl == Non... | 379a1c075a443c2c6135e1a371699920ae8e15d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/379a1c075a443c2c6135e1a371699920ae8e15d3/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
1095,
67,
915,
12,
1899,
4672,
666,
67,
4230,
273,
666,
1435,
949,
273,
374,
1262,
67,
22,
273,
1053,
468,
467,
1623,
598,
279,
3936,
3661,
4906,
729,
1240,
486,
326,
26591,
1363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
1095,
67,
915,
12,
1899,
4672,
666,
67,
4230,
273,
666,
1435,
949,
273,
374,
1262,
67,
22,
273,
1053,
468,
467,
1623,
598,
279,
3936,
3661,
4906,
729,
1240,
486,
326,
26591,
1363... |
"""Select - Container for buttons. Can enforce radio buttons etc. Subwidgets are buttons added dynamically""" | """Select - Container of button subwidgets. It can be used to provide radio-box or check-box style of selection options for the user. Subwidgets are buttons added dynamically using the add method.""" | def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixScrolledWindow', ['options'], cnf, kw) self.subwidget_list['window'] = _dummyFrame(self, 'window') self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb') self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb') | f5d050d1e124f0e400f34e9a2a31237ae6ccf7e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f5d050d1e124f0e400f34e9a2a31237ae6ccf7e1/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
1541,
25054,
3829,
2187,
10228,
2116,
173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
1541,
25054,
3829,
2187,
10228,
2116,
173... |
clipboard.put("ampId", id) | clipboard.put("ampId", self.id) | def testPipe(self): id = cameraGeom.Id("R:2,3 S:1,1 C:0,0", ix=0, iy=0) clipboard = pexClipboard.Clipboard() clipboard.put("ampId", id) clipboard.put("cameraPolicy", self.cameraPolicy ) clipboard.put("Exposure", self.exposure) clipboard.put("fwhm", 5.) file = pexPolicy.DefaultPolicyFile("ip_pipeline", "MakeCameraGeomSt... | ad7027ba56a8a82f8d09f2d890b33f54d3ea8847 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6525/ad7027ba56a8a82f8d09f2d890b33f54d3ea8847/isrPipelineUnitTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
11546,
12,
2890,
4672,
612,
273,
10836,
16972,
18,
548,
2932,
54,
30,
22,
16,
23,
348,
30,
21,
16,
21,
385,
30,
20,
16,
20,
3113,
8288,
33,
20,
16,
23466,
33,
20,
13,
20304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11546,
12,
2890,
4672,
612,
273,
10836,
16972,
18,
548,
2932,
54,
30,
22,
16,
23,
348,
30,
21,
16,
21,
385,
30,
20,
16,
20,
3113,
8288,
33,
20,
16,
23466,
33,
20,
13,
20304,
... |
egg_info_match = glob.glob(os.path.join(os.path.dirname(instdir), 'robotframework*.egg-info')) if len(egg_info_match) > 0: _remove(egg_info_match[0]) | pattern = os.path.join(os.path.dirname(instdir), 'robotframework-*.egg-info') for path in glob.glob(pattern): _remove(path) | def _remove_egg_info(instdir): egg_info_match = glob.glob(os.path.join(os.path.dirname(instdir), 'robotframework*.egg-info')) if len(egg_info_match) > 0: _remove(egg_info_match[0]) | 1a7504c6925d38bfb32de417a137b0e742a3ad1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/1a7504c6925d38bfb32de417a137b0e742a3ad1e/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
67,
23171,
67,
1376,
12,
8591,
1214,
4672,
1936,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
8591,
1214,
3631,
296,
28870,
12303,
17,
11146,
23171,
17,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
67,
23171,
67,
1376,
12,
8591,
1214,
4672,
1936,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
8591,
1214,
3631,
296,
28870,
12303,
17,
11146,
23171,
17,
13... |
return all(procurement.move_id.state == 'done' for procurement in self.browse(cr, uid, ids)) | res = True for proc in self.browse(cr, uid, ids, context): if proc.move_id: if not proc.move_id.state=='done': res = False return res | def check_move_done(self, cr, uid, ids, context={}): """ Checks if move is done or not. @return: True or False. """ return all(procurement.move_id.state == 'done' for procurement in self.browse(cr, uid, ids)) | be16348523df3d3f4769b71419d143ad492f98b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/be16348523df3d3f4769b71419d143ad492f98b4/procurement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
8501,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3536,
13074,
309,
3635,
353,
2731,
578,
486,
18,
632,
2463,
30,
1053,
578,
1083,
18,
3536,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
8501,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3536,
13074,
309,
3635,
353,
2731,
578,
486,
18,
632,
2463,
30,
1053,
578,
1083,
18,
3536,
327,
... |
jobParam = self.jobReport.setJobParameters(int(jobID),value) | jobReport = RPCClient('WorkloadManagement/JobStateUpdate') jobParam = jobReport.setJobParameters(int(jobID),value) | def __setJobParamList(self,value): """Wraps around setJobParameters of state update client """ #job wrapper template sets the jobID variable if not os.environ.has_key('JOBID'): self.log.info('Running without JOBID so parameters will not be reported') return S_OK() jobID = os.environ['JOBID'] jobParam = self.jobReport.s... | 7a7b9d2c06f057ceeb823d5f6a33422fcf8934e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/7a7b9d2c06f057ceeb823d5f6a33422fcf8934e2/Watchdog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2278,
786,
682,
12,
2890,
16,
1132,
4672,
3536,
20785,
6740,
444,
2278,
2402,
434,
919,
1089,
1004,
3536,
468,
4688,
4053,
1542,
1678,
326,
28913,
2190,
309,
486,
1140,
18,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
2278,
786,
682,
12,
2890,
16,
1132,
4672,
3536,
20785,
6740,
444,
2278,
2402,
434,
919,
1089,
1004,
3536,
468,
4688,
4053,
1542,
1678,
326,
28913,
2190,
309,
486,
1140,
18,
28... |
@return: An HTML page containing the table of contents page for the given module. This page lists the modules, classes, exceptions, functions, and variables defined by the module. @rtype: C{string} """ | Write an HTML page containing the table of contents page for the given module to the given streams. This page lists the modules, classes, exceptions, functions, and variables defined by the module. @param public: The output stream for the public version of the page. @param private: The output stream for the private ve... | def _write_module_toc(self, public, private, uid, doc): """ @return: An HTML page containing the table of contents page for the given module. This page lists the modules, classes, exceptions, functions, and variables defined by the module. @rtype: C{string} """ doc = self._docmap[uid] (classes,excepts) = self._split_c... | 21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2978,
67,
1391,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
997,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
864,
1605,
358,
326,
864,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2626,
67,
2978,
67,
1391,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
997,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
864,
1605,
358,
326,
864,... |
def handleMakoError(self, exception, environ, start_response): | def handleTemplateLookupException(self, exception, environ, start_response): | def handleMakoError(self, exception, environ, start_response): from mako.exceptions import TopLevelLookupException message = 'The template could not be found: %s' % str(exception) e = errata.HTTPError('404 Not Found', message) try: return self.handleHTTPError(e, environ, start_response) except TopLevelLookupException:... | 5ceb978f0012826f0f2a2d3d48f5812d8ecd4583 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12122/5ceb978f0012826f0f2a2d3d48f5812d8ecd4583/medin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
2283,
6609,
503,
12,
2890,
16,
1520,
16,
5473,
16,
787,
67,
2740,
4672,
628,
29796,
83,
18,
11855,
1930,
7202,
2355,
6609,
503,
225,
883,
273,
296,
1986,
1542,
3377,
486,
506,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
2283,
6609,
503,
12,
2890,
16,
1520,
16,
5473,
16,
787,
67,
2740,
4672,
628,
29796,
83,
18,
11855,
1930,
7202,
2355,
6609,
503,
225,
883,
273,
296,
1986,
1542,
3377,
486,
506,
13... |
if self.column_count() == 1: self.tableview.noteNumberOfRowsChanged() | self.tableview.noteNumberOfRowsChanged() | def add_column(self, title, renderer, min_width, **attrs): column = NSTableColumn.alloc().initWithIdentifier_(attrs) column.headerCell().setStringValue_(title) column.setEditable_(NO) column.setMinWidth_(min_width) renderer.setDataCell_(column) self.renderers.append(renderer) self.tableview.addTableColumn_(column) if s... | 0cf6af6f9f11c1a4534ae444a4dddd3529ceeca0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/0cf6af6f9f11c1a4534ae444a4dddd3529ceeca0/tableview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2827,
12,
2890,
16,
2077,
16,
5690,
16,
1131,
67,
2819,
16,
2826,
7039,
4672,
1057,
273,
423,
882,
429,
1494,
18,
9853,
7675,
2738,
1190,
3004,
67,
12,
7039,
13,
1057,
18,
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,
527,
67,
2827,
12,
2890,
16,
2077,
16,
5690,
16,
1131,
67,
2819,
16,
2826,
7039,
4672,
1057,
273,
423,
882,
429,
1494,
18,
9853,
7675,
2738,
1190,
3004,
67,
12,
7039,
13,
1057,
18,
3... |
os.unlink('%s/etc/localtime' % self.context.chroot_dir) shutil.copy('%s/usr/share/zoneinfo/%s' % (self.context.chroot_dir, timezone), '%s/etc/localtime' % (self.context.chroot_dir,)) | self.install_from_template('/etc/timezone', 'timezone', { 'timezone' : timezone }) self.run_in_target('dpkg-reconfigure', '-fnoninteractive', '-pcritical', 'tzdata') | def set_timezone(self): timezone = self.context.get_setting('timezone') if timezone: os.unlink('%s/etc/localtime' % self.context.chroot_dir) shutil.copy('%s/usr/share/zoneinfo/%s' % (self.context.chroot_dir, timezone), '%s/etc/localtime' % (self.context.chroot_dir,)) | 35390ab247957115d81de76b8be27452661069f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1496/35390ab247957115d81de76b8be27452661069f9/dapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
12690,
12,
2890,
4672,
6371,
273,
365,
18,
2472,
18,
588,
67,
8920,
2668,
12690,
6134,
309,
6371,
30,
1140,
18,
318,
1232,
29909,
87,
19,
14175,
19,
3729,
957,
11,
738,
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,
444,
67,
12690,
12,
2890,
4672,
6371,
273,
365,
18,
2472,
18,
588,
67,
8920,
2668,
12690,
6134,
309,
6371,
30,
1140,
18,
318,
1232,
29909,
87,
19,
14175,
19,
3729,
957,
11,
738,
365,
... |
if (no == ECONNREFUSED) or (platformType == "win32" and no == WSAECONNRESET): | if no == ECONNREFUSED: | def doRead(self): """Called when my socket is ready for reading.""" read = 0 while read < self.maxThroughput: try: data, addr = self.socket.recvfrom(self.maxPacketSize) read += len(data) self.protocol.datagramReceived(data) except socket.error, se: no = se.args[0] if no in (EAGAIN, EINTR, EWOULDBLOCK): return if (no ==... | b179b298195f5b78c8f637eca6973ab49e6d0b89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b179b298195f5b78c8f637eca6973ab49e6d0b89/unix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1994,
12,
2890,
4672,
3536,
8185,
1347,
3399,
2987,
353,
5695,
364,
6453,
12123,
855,
273,
374,
1323,
855,
411,
365,
18,
1896,
24478,
30,
775,
30,
501,
16,
3091,
273,
365,
18,
781... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1994,
12,
2890,
4672,
3536,
8185,
1347,
3399,
2987,
353,
5695,
364,
6453,
12123,
855,
273,
374,
1323,
855,
411,
365,
18,
1896,
24478,
30,
775,
30,
501,
16,
3091,
273,
365,
18,
781... |
new_table_set_col_attr(self.__connection__, table, self.__skeleton__[table]) | new_table_set_col_attr(self.__connection__, table_name, self.__skeleton__[table_name]) | def drop_column(self, table, col_name): """ Takes a while, thanks to SQLite... """ # Check input: if not self.__skeleton__.has_key(table): raise ValueError("Database has no table %s."%table) if not self.__skeleton__[table].has_key(col_name): raise ValueError("Table %s has no column %s."%(table,col_name)) | ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
2827,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
225,
3536,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771,
12143,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
2827,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
225,
3536,
468,
2073,
810,
30,
309,
486,
365,
16186,
7771,
12143,
... |
def common_suffix_length(a, b): '''\ Compute the length of the common suffix of a and b, considering / and \ equal. >>> common_suffix_length('/foo/bar/baz', '\\\\other\\\\bar\\\\baz') 8 >>> common_suffix_length('bar', 'foo/bar') 3 >>> common_suffix_length('bar', 'bar') 3 ''' a = a.replace('\\', '/') b = b.replace('\\'... | def common_suffix_length(a, b): '''\ Compute the length of the common suffix of a and b, considering / and \ equal. >>> common_suffix_length('/foo/bar/baz', '\\\\other\\\\bar\\\\baz') 8 >>> common_suffix_length('bar', 'foo/bar') 3 >>> common_suffix_length('bar', 'bar') 3 ''' a = a.replace('\\', '/') b = b.replace('\\'... | 7dc5a98fa74ee085e0e58fb0f326bdea30111f1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1030/7dc5a98fa74ee085e0e58fb0f326bdea30111f1d/stacktrace_translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
8477,
67,
2469,
12,
69,
16,
324,
4672,
875,
8314,
8155,
326,
769,
434,
326,
2975,
3758,
434,
279,
471,
324,
16,
24453,
342,
471,
521,
3959,
18,
225,
4080,
2975,
67,
8477,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
8477,
67,
2469,
12,
69,
16,
324,
4672,
875,
8314,
8155,
326,
769,
434,
326,
2975,
3758,
434,
279,
471,
324,
16,
24453,
342,
471,
521,
3959,
18,
225,
4080,
2975,
67,
8477,
6... | |
but the interface currently returns the output as a float. | but the interface currently returns the output as a ``float``. | def regulator(self): """ Return the regulator of the points in this subgroup of the Mordell-Weil group. | c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
960,
11775,
12,
2890,
4672,
3536,
2000,
326,
960,
11775,
434,
326,
3143,
316,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
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,
0,
0,
0,
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,
960,
11775,
12,
2890,
4672,
3536,
2000,
326,
960,
11775,
434,
326,
3143,
316,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"""Validates upload file and id | """Validates start and end date End date must be after start date | def post_validate(self, REQUEST=None, errors=None): """Validates upload file and id """ rstartDate = REQUEST.get('startDate', None) rendDate = REQUEST.get('endDate', None) | c4bd1b5ff0f87526e4b7017abb11c26e6b8342ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11956/c4bd1b5ff0f87526e4b7017abb11c26e6b8342ad/ATEvent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
5662,
12,
2890,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
4672,
3536,
9594,
787,
471,
679,
1509,
225,
4403,
1509,
1297,
506,
1839,
787,
1509,
3536,
436,
1937,
1626,
273,
12492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
5662,
12,
2890,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
4672,
3536,
9594,
787,
471,
679,
1509,
225,
4403,
1509,
1297,
506,
1839,
787,
1509,
3536,
436,
1937,
1626,
273,
12492,
... |
(zope.interface.Interface, IJSONRPCRequest)) | (zope.interface.Interface, IJSONRPCRequest, interfaces.ISubItemAware)) | def setUpAdapters(): # register icon resource zope.component.provideAdapter(ResourceStub, name='z3cJSONTreeCollapsedIcon') zope.component.provideAdapter(ResourceStub, name='z3cJSONTreeExpandedIcon') zope.component.provideAdapter(ResourceStub, name='z3cJSONTreeStaticIcon') # register icon zope.component.provideAdapter(... | c97a21aa20d8d4710176847d9e960f8531f192be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9512/c97a21aa20d8d4710176847d9e960f8531f192be/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
26620,
13332,
468,
1744,
4126,
1058,
998,
1306,
18,
4652,
18,
685,
6768,
4216,
12,
1420,
11974,
16,
508,
2218,
94,
23,
71,
2986,
2471,
28084,
5554,
6134,
998,
1306,
18,
4652,
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,
24292,
26620,
13332,
468,
1744,
4126,
1058,
998,
1306,
18,
4652,
18,
685,
6768,
4216,
12,
1420,
11974,
16,
508,
2218,
94,
23,
71,
2986,
2471,
28084,
5554,
6134,
998,
1306,
18,
4652,
18,
... |
self._write(self.write_term_index, directory, 'term-index.html', indices) | self._write(self.write_link_index, directory, 'term-index.html', indices, 'Term Definition Index', 'term-index.html', 'term') | def write(self, directory=None): """ Write the documentation to the given directory. | ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
$(OBJCOPY) """ + platform_objcopyflags(platform) + """ --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn $< $@; \ | $(OBJCOPY) $(""" + cname() + """_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn $< $@; \ | def image(platform): r = set_canonical_name_suffix(".image") r += gvar_add("noinst_PROGRAMS", "[+ name +].image") r += var_set(cname() + "_SOURCES", platform_sources(platform)) r += var_add(cname() + "_SOURCES", shared_sources()) r += var_set("nodist_" + cname() + "_SOURCES", platform_nodist_sources(platform) + "## pla... | c8d22d34fb910911782f3cb62d58a3495edc8286 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9475/c8d22d34fb910911782f3cb62d58a3495edc8286/gentpl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
12,
9898,
4672,
436,
273,
444,
67,
18288,
67,
529,
67,
8477,
2932,
18,
2730,
7923,
436,
1011,
314,
1401,
67,
1289,
2932,
82,
885,
334,
67,
21418,
55,
3113,
5158,
15,
508,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
12,
9898,
4672,
436,
273,
444,
67,
18288,
67,
529,
67,
8477,
2932,
18,
2730,
7923,
436,
1011,
314,
1401,
67,
1289,
2932,
82,
885,
334,
67,
21418,
55,
3113,
5158,
15,
508,
397,
... |
return var.op == x.op or occur_check(var, x.args) elif not isinstance(x, str) and issequence(x): for xi in x: if occur_check(var, xi): return True return False | return (occur_check(var, x.op, s) or occur_check(var, x.args, s)) elif isinstance(x, list) and x != []: return (occur_check(var, x[0], s) or occur_check(var, x[1:], s)) else: return False | def occur_check(var, x): "Return true if var occurs anywhere in x." if var == x: return True elif isinstance(x, Expr): return var.op == x.op or occur_check(var, x.args) elif not isinstance(x, str) and issequence(x): for xi in x: if occur_check(var, xi): return True return False | 8b8527ca4be017ab9086cfa7117d572398073b5f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/16/8b8527ca4be017ab9086cfa7117d572398073b5f/logic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3334,
67,
1893,
12,
1401,
16,
619,
4672,
315,
990,
638,
309,
569,
9938,
25651,
316,
619,
1199,
309,
569,
422,
619,
30,
327,
1053,
1327,
1549,
12,
92,
16,
8074,
4672,
225,
327,
261,
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,
3334,
67,
1893,
12,
1401,
16,
619,
4672,
315,
990,
638,
309,
569,
9938,
25651,
316,
619,
1199,
309,
569,
422,
619,
30,
327,
1053,
1327,
1549,
12,
92,
16,
8074,
4672,
225,
327,
261,
2... |
3) set evt to true to let the parent know we're done | 3) [optional] if test_done is not None, it's an event; wait for parent to set test_done before closing connection 4) set evt to true to let the parent know we're done | def server(evt, serv, dataq=None): """ Open a tcp server in three steps 1) set evt to true to let the parent know we are ready 2) [optional] if is not False, write the list of data from dataq.get() to the socket. 3) set evt to true to let the parent know we're done """ serv.listen(5) evt.set() try: conn, addr = serv.ac... | 3a22b4fa99982d48ad33dec6b9cab3f672873fc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/3a22b4fa99982d48ad33dec6b9cab3f672873fc1/test_telnetlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
73,
11734,
16,
13515,
16,
501,
85,
33,
7036,
4672,
3536,
3502,
279,
9658,
1438,
316,
8925,
6075,
404,
13,
444,
6324,
358,
638,
358,
2231,
326,
982,
5055,
732,
854,
5695,
576,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
12,
73,
11734,
16,
13515,
16,
501,
85,
33,
7036,
4672,
3536,
3502,
279,
9658,
1438,
316,
8925,
6075,
404,
13,
444,
6324,
358,
638,
358,
2231,
326,
982,
5055,
732,
854,
5695,
576,... |
if on == 1 and sn != 2: return self._fix_nan(context) if sn == 1 and on != 2: return other._fix_nan(context) | if on == 1 and sn == 0: return self._fix(context) if sn == 1 and on == 0: return other._fix(context) | def max_mag(self, other, context=None): """Compares the values numerically with their sign ignored.""" other = _convert_other(other, raiseit=True) | d401796327d1f3dcd28a7ea757d21ffe92964a58 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/d401796327d1f3dcd28a7ea757d21ffe92964a58/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
67,
4527,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
19199,
326,
924,
6389,
1230,
598,
3675,
1573,
5455,
12123,
1308,
273,
389,
6283,
67,
3011,
12,
3011,
16,
1002,
305,
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,
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,
943,
67,
4527,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
19199,
326,
924,
6389,
1230,
598,
3675,
1573,
5455,
12123,
1308,
273,
389,
6283,
67,
3011,
12,
3011,
16,
1002,
305,
33... |
request.PolSegment(display = self.display, onerror = onerror, drawable = self.id, gc = gc, segments = [(x1, y1, x2, y2)]) | request.PolySegment(display = self.display, onerror = onerror, drawable = self.id, gc = gc, segments = [(x1, y1, x2, y2)]) | def line(self, gc, x1, y1, x2, y2, onerror = None): | 40291b385a88669906b5859b9f28429fb43d2b0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1732/40291b385a88669906b5859b9f28429fb43d2b0d/drawable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
12,
2890,
16,
8859,
16,
619,
21,
16,
677,
21,
16,
619,
22,
16,
677,
22,
16,
20991,
273,
599,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
12,
2890,
16,
8859,
16,
619,
21,
16,
677,
21,
16,
619,
22,
16,
677,
22,
16,
20991,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if not PY_STRUCT_RANGE_CHECKING and code in self.BUGGY_RANGE_CHECK: if verbose: print "Skipping buggy range check for code", code else: deprecated_err(pack, ">" + code, x) deprecated_err(pack, "<" + code, x) | deprecated_err(pack, ">" + code, x) deprecated_err(pack, "<" + code, x) | def test_one(self, x, pack=struct.pack, unpack=struct.unpack, unhexlify=binascii.unhexlify): # Try signed. code = self.signed_code if self.signed_min <= x <= self.signed_max: # Try big-endian. expected = long(x) if x < 0: expected += 1L << self.bitsize self.assertTrue(expected > 0) expected = hex(expected)[2:-1] # chop... | daa94624a3d43f94ec21c680db3bb09057d0245f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/daa94624a3d43f94ec21c680db3bb09057d0245f/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
476,
12,
2890,
16,
619,
16,
2298,
33,
1697,
18,
2920,
16,
6167,
33,
1697,
18,
17309,
16,
640,
7118,
22451,
33,
4757,
9184,
18,
318,
7118,
22451,
4672,
468,
6161,
6726,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
476,
12,
2890,
16,
619,
16,
2298,
33,
1697,
18,
2920,
16,
6167,
33,
1697,
18,
17309,
16,
640,
7118,
22451,
33,
4757,
9184,
18,
318,
7118,
22451,
4672,
468,
6161,
6726,
18,
... |
print "Pyrex.Compiler.Main.find_pyx_file:", qualified_name, pos result = self.search_package_directories(qualified_name, pyx_suffixes, pos) print "Pyrex.Compiler.Main.find_pyx_file: result =", result return result | return self.search_package_directories(qualified_name, pyx_suffixes, pos) | def find_pyx_file(self, qualified_name, pos): # Search include path for the .pyx file corresponding to the # given fully-qualified module name, as for find_pxd_file(). print "Pyrex.Compiler.Main.find_pyx_file:", qualified_name, pos ### result = self.search_package_directories(qualified_name, pyx_suffixes, pos) print ... | e929bd1e9385367cff2dbcee7867c3cf87870a6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2099/e929bd1e9385367cff2dbcee7867c3cf87870a6c/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2074,
92,
67,
768,
12,
2890,
16,
9348,
67,
529,
16,
949,
4672,
468,
225,
5167,
2341,
589,
364,
326,
263,
2074,
92,
585,
4656,
358,
326,
468,
225,
864,
7418,
17,
19724,
1605... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2074,
92,
67,
768,
12,
2890,
16,
9348,
67,
529,
16,
949,
4672,
468,
225,
5167,
2341,
589,
364,
326,
263,
2074,
92,
585,
4656,
358,
326,
468,
225,
864,
7418,
17,
19724,
1605... |
self.leftColumn = self.formatDocument(self.findSidebarPath()).output | self.leftColumn = self.formatDocument(self.findSidebarPath(path)).output | def render(self, request): """Overrides the default render() function for pages. This checks whether our path is really a file or a directory- if it's a directory, we show a directory listing page. If it's a file, this formats our document and passes control on to the usual rendering processes. """ # Is this actually a... | 83f74e8aaf28abf51f9ed311e6742f8df2d5655e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/83f74e8aaf28abf51f9ed311e6742f8df2d5655e/Doc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
590,
4672,
3536,
13084,
326,
805,
1743,
1435,
445,
364,
4689,
18,
1220,
4271,
2856,
3134,
589,
353,
8654,
279,
585,
578,
279,
1867,
17,
309,
518,
1807,
279,
1867,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
590,
4672,
3536,
13084,
326,
805,
1743,
1435,
445,
364,
4689,
18,
1220,
4271,
2856,
3134,
589,
353,
8654,
279,
585,
578,
279,
1867,
17,
309,
518,
1807,
279,
1867,
1... |
result += "| <span id=\"" + res[i][0] + "\">" + res[i][0] + "</span>\n" | result += '| <span id="' + res[i][0] + '">' + res[i][0] + '</span>\n' | def create_variable_types_table(data): """Creates a table for the variable types.""" | a6feb1e5c52929a2b7bcc20a424e929b737f2517 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9355/a6feb1e5c52929a2b7bcc20a424e929b737f2517/wiki_grabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6105,
67,
2352,
67,
2121,
12,
892,
4672,
3536,
2729,
279,
1014,
364,
326,
2190,
1953,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6105,
67,
2352,
67,
2121,
12,
892,
4672,
3536,
2729,
279,
1014,
364,
326,
2190,
1953,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
exts.append(Extension('_codecs_' + loc, | exts.append(Extension('_codecs_%s' % loc, | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 21df12009e5a5a35695d7e3cfd9c8b4df1ec77be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/21df12009e5a5a35695d7e3cfd9c8b4df1ec77be/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
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,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
if (len(xdata) > len(p0)): s_sq = (func(popt, *args)**2).sum()/(len(xdata)-len(p0)) | if (len(ydata) > len(p0)): s_sq = (func(popt, *args)**2).sum()/(len(ydata)-len(p0)) | def func(x, a, b, c): return a*exp(-b*x) + c | acb3bfeb0b1eccc690d70bdba9d59f31feeff243 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/acb3bfeb0b1eccc690d70bdba9d59f31feeff243/minpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
92,
16,
279,
16,
324,
16,
276,
4672,
327,
279,
14,
2749,
19236,
70,
14,
92,
13,
397,
276,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1326,
12,
92,
16,
279,
16,
324,
16,
276,
4672,
327,
279,
14,
2749,
19236,
70,
14,
92,
13,
397,
276,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print "About to AppendItem %s" %data | def changeHierarchy(self, data, x, y): print "Changing hierarchy for %s..." % repr(data) | ca32727cc5bb3298e217074ff838c7a9f8ab45a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/ca32727cc5bb3298e217074ff838c7a9f8ab45a0/SceneGraphUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
12074,
12,
2890,
16,
501,
16,
619,
16,
677,
4672,
1172,
315,
782,
18183,
9360,
364,
738,
87,
7070,
738,
8480,
12,
892,
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,
2549,
12074,
12,
2890,
16,
501,
16,
619,
16,
677,
4672,
1172,
315,
782,
18183,
9360,
364,
738,
87,
7070,
738,
8480,
12,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
result.addError(self, self.__exc_info()) | result.addError(self, self._exc_info()) | def run(self, result=None): if result is None: result = self.defaultTestResult() result.startTest(self) testMethod = getattr(self, self.__testMethodName) try: try: self.setUp() except KeyboardInterrupt: raise except: result.addError(self, self.__exc_info()) return | b66ad788444c7f79115e9d6749906c4511b216dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b66ad788444c7f79115e9d6749906c4511b216dd/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
563,
18,
1937,
4709,
12,
2890,
13,
1842,
1305,
273,
3869,
12,
2890,
16,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
563,
18,
1937,
4709,
12,
2890,
13,
1842,
1305,
273,
3869,
12,
2890,
16,
36... |
"H2'": atom_info("H", 0, "H'"), | "H2'": atom_info("H", 0, "H"), | def keys(self): return ("element_symbol", "ionic_state", "scattering_label") | 46b20303e8ed53745807da84c39cb29f25aa3911 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/46b20303e8ed53745807da84c39cb29f25aa3911/residue_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
7566,
2956,
67,
7175,
3113,
315,
285,
335,
67,
2019,
3113,
315,
31320,
310,
67,
1925,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1311,
12,
2890,
4672,
327,
7566,
2956,
67,
7175,
3113,
315,
285,
335,
67,
2019,
3113,
315,
31320,
310,
67,
1925,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.displayName = win32api.RegQueryValueEx( key, "Display" )[0] self.standardName = win32api.RegQueryValueEx( key, "Std" )[0] self.daylightName = win32api.RegQueryValueEx( key, "Dlt" )[0] | self.displayName = _winreg.QueryValueEx( key, "Display" )[0] self.standardName = _winreg.QueryValueEx( key, "Std" )[0] self.daylightName = _winreg.QueryValueEx( key, "Dlt" )[0] | def _LoadInfoFromKey( self, key ): """Loads the information from an opened time zone registry key into relevant fields of this TZI object""" self.displayName = win32api.RegQueryValueEx( key, "Display" )[0] self.standardName = win32api.RegQueryValueEx( key, "Std" )[0] self.daylightName = win32api.RegQueryValueEx( key, "... | bd8808a18d9ded3524e77d1c8054398a60ba7dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/bd8808a18d9ded3524e77d1c8054398a60ba7dd7/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2563,
966,
1265,
653,
12,
365,
16,
498,
262,
30,
3536,
7968,
326,
1779,
628,
392,
10191,
813,
4157,
4023,
498,
1368,
9368,
1466,
434,
333,
399,
62,
45,
733,
8395,
365,
18,
5417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
966,
1265,
653,
12,
365,
16,
498,
262,
30,
3536,
7968,
326,
1779,
628,
392,
10191,
813,
4157,
4023,
498,
1368,
9368,
1466,
434,
333,
399,
62,
45,
733,
8395,
365,
18,
5417,
... |
ScipyTest().run() | NumpyTest().run() | def check_instance_methods(self): a = matrix([1.0], dtype='f8') methodargs = { 'astype' : ('intc',), 'clip' : (0.0, 1.0), 'compress' : ([1],), 'repeat' : (1,), 'reshape' : (1,), 'swapaxes' : (0,0) } excluded_methods = [ 'argmin', 'choose', 'dump', 'dumps', 'fill', 'getfield', 'getA', 'item', 'nonzero', 'put', 'putmask'... | 47c92e4224ee36090289fcafa6820f749bc3d9b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/47c92e4224ee36090289fcafa6820f749bc3d9b1/test_defmatrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1336,
67,
5163,
12,
2890,
4672,
279,
273,
3148,
3816,
21,
18,
20,
6487,
3182,
2218,
74,
28,
6134,
707,
1968,
273,
288,
296,
689,
388,
11,
294,
7707,
474,
71,
2187,
3631,
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,
866,
67,
1336,
67,
5163,
12,
2890,
4672,
279,
273,
3148,
3816,
21,
18,
20,
6487,
3182,
2218,
74,
28,
6134,
707,
1968,
273,
288,
296,
689,
388,
11,
294,
7707,
474,
71,
2187,
3631,
296... |
if obj.role == controlTypes.ROLE_POPUPMENU and not obj.parent.parent: obj.name=gui.appTitle | if obj.role == controlTypes.ROLE_POPUPMENU: parent = obj.parent if parent and not parent.parent: obj.name=gui.appTitle | def event_NVDAObject_init(self, obj): # It seems that context menus always get the name "context" and this cannot be overridden. # Fudge the name of the NVDA system tray menu to make it more friendly. if obj.role == controlTypes.ROLE_POPUPMENU and not obj.parent.parent: obj.name=gui.appTitle | 0e1bc127669f0415e4c7e2eb1eda89a6ae3bc894 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/0e1bc127669f0415e4c7e2eb1eda89a6ae3bc894/nvda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
11679,
9793,
921,
67,
2738,
12,
2890,
16,
1081,
4672,
468,
2597,
12001,
716,
819,
21374,
3712,
336,
326,
508,
315,
2472,
6,
471,
333,
2780,
506,
11000,
18,
468,
478,
27110,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
67,
11679,
9793,
921,
67,
2738,
12,
2890,
16,
1081,
4672,
468,
2597,
12001,
716,
819,
21374,
3712,
336,
326,
508,
315,
2472,
6,
471,
333,
2780,
506,
11000,
18,
468,
478,
27110,
32... |
for f in os.listdir(fullfoldername): if f.endswith('.metadata'): continue itemFullName = os.path.join(fullfoldername, f) if os.path.isdir(itemFullName): new_rel_dir = os.path.join(rel_dir,f) subfolderfilesCataloged,subfolderfilesNotCataloged = self.catalogContents(new_rel_dir) filesCataloged = filesCataloged + subf... | for f in os.listdir(fullfoldername): if f.endswith('.metadata'): continue itemFullName = os.path.join(fullfoldername, f) if os.path.isdir(itemFullName): new_rel_dir = os.path.join(rel_dir,f) subfolderfilesCataloged,subfolderfilesNotCataloged = self.catalogContents(new_rel_dir) filesCataloged = filesCataloged + subf... | def catalogContents(self,rel_dir=None, catalog='portal_catalog'): portal = getToolByName(self, 'portal_url').getPortalObject() portalId = portal.getId() if self.filetypes_not_to_catalog: filetypePhrasesSkipList = split(self.filetypes_not_to_catalog,',') else: filetypePhrasesSkipList = [] filesCataloged = 0 filesNotC... | 692ac3754ddf4f2db9a4880d73fdcaa486784f64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/692ac3754ddf4f2db9a4880d73fdcaa486784f64/PloneLocalFolderNG.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
6323,
12,
2890,
16,
2878,
67,
1214,
33,
7036,
16,
6222,
2218,
24386,
67,
7199,
11,
4672,
225,
11899,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
718,
16063,
588,
24395,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6222,
6323,
12,
2890,
16,
2878,
67,
1214,
33,
7036,
16,
6222,
2218,
24386,
67,
7199,
11,
4672,
225,
11899,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
718,
16063,
588,
24395,
9... |
selectList.append("Value!='%s'" % operand ) selectString = ' AND '.join(selectList) req = " SELECT DirID FROM FC_Meta_%s WHERE %s" % (meta,selectString) elif type(value) == types.ListType: vString = ','.join( [ "'"+str(x)+"'" for x in value] ) req = " SELECT DirID FROM FC_Meta_%s WHERE Value IN (%s) " % (meta,vString) ... | selectList.append( "Value!='%s'" % operand ) selectString = ' AND '.join( selectList ) req = " SELECT DirID FROM FC_Meta_%s WHERE %s" % ( meta, selectString ) elif type( value ) == types.ListType: vString = ','.join( [ "'" + str( x ) + "'" for x in value] ) req = " SELECT DirID FROM FC_Meta_%s WHERE Value IN (%s) " % (... | def __findSubdirByMeta(self,meta,value,subdirFlag=True): """ Find directories for the given meta datum. If the the meta datum type is a list, combine values in OR. In case the meta datum is 'Any', finds all the subdirectories for which the meta datum is defined at all. """ if type(value) == types.DictType: selectList ... | 127f98379e5064d0a5d5df2ba7ce74c780770faa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/127f98379e5064d0a5d5df2ba7ce74c780770faa/DirectoryMetadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4720,
1676,
1214,
858,
2781,
12,
2890,
16,
3901,
16,
1132,
16,
1717,
1214,
4678,
33,
5510,
4672,
3536,
4163,
6402,
364,
326,
864,
2191,
12059,
18,
971,
326,
326,
2191,
12059,
618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
1676,
1214,
858,
2781,
12,
2890,
16,
3901,
16,
1132,
16,
1717,
1214,
4678,
33,
5510,
4672,
3536,
4163,
6402,
364,
326,
864,
2191,
12059,
18,
971,
326,
326,
2191,
12059,
618,
... |
print ans['links'] | def loadConfigInfo(self): """Load configuration information from the registry.""" reg = self.client.registry p = reg.packet() p.cd(['', 'Servers', 'RF Mux'], True) p.get('Serial Links', '*(ss)', key='links') ans = yield p.send() self.serialLinks = ans['links'] print ans['links'] | bd3bec2d1a96a99595380448c60b3b4e6256a400 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7016/bd3bec2d1a96a99595380448c60b3b4e6256a400/rfmux_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27318,
966,
12,
2890,
4672,
3536,
2563,
1664,
1779,
628,
326,
4023,
12123,
960,
273,
365,
18,
2625,
18,
9893,
293,
273,
960,
18,
11482,
1435,
293,
18,
4315,
12,
3292,
2187,
296,
11913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27318,
966,
12,
2890,
4672,
3536,
2563,
1664,
1779,
628,
326,
4023,
12123,
960,
273,
365,
18,
2625,
18,
9893,
293,
273,
960,
18,
11482,
1435,
293,
18,
4315,
12,
3292,
2187,
296,
11913,
... | |
cr.execute(qry, val) | cr.execute(qry % val) | def _set_rrulestring(self, cr, uid, id, name, value, arg, context=None): """ Sets values of fields that defines event recurrence from the value of rrule string @param self: The object pointer @param cr: the current row, from the database cursor, @param id: List of calendar event's ids. @param context: A standard dictio... | 469691d5cff52fe60d7d16f1dcd06a942c9e36da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/469691d5cff52fe60d7d16f1dcd06a942c9e36da/base_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
523,
1513,
371,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
508,
16,
460,
16,
1501,
16,
819,
33,
7036,
4672,
3536,
11511,
924,
434,
1466,
716,
11164,
871,
25939,
628,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
523,
1513,
371,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
508,
16,
460,
16,
1501,
16,
819,
33,
7036,
4672,
3536,
11511,
924,
434,
1466,
716,
11164,
871,
25939,
628,
32... |
Return True if the quaternion algebra is a division algebra (i.e. a ring, not necessarily commutative, in which every nonzero element is invertible). So if this returns False, the quaternion algebra is isomorphic to the 2x2 matrix algebra. | Return True if the quaternion algebra is a division algebra (i.e. every nonzero element in self is invertible), and False if the quaternion algebra is isomorphic to the 2x2 matrix algebra. | def is_division_algebra(self): """ Return True if the quaternion algebra is a division algebra (i.e. a ring, not necessarily commutative, in which every nonzero element is invertible). So if this returns False, the quaternion algebra is isomorphic to the 2x2 matrix algebra. EXAMPLES:: sage: QuaternionAlgebra(QQ,-5,-2... | d3c151fbb82f00af772a908259fff7e9b7e9c52f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d3c151fbb82f00af772a908259fff7e9b7e9c52f/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2892,
1951,
67,
287,
29087,
12,
2890,
4672,
3536,
2000,
1053,
309,
326,
26774,
524,
29087,
353,
279,
16536,
524,
29087,
261,
77,
18,
73,
18,
3614,
16966,
930,
316,
365,
353,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2892,
1951,
67,
287,
29087,
12,
2890,
4672,
3536,
2000,
1053,
309,
326,
26774,
524,
29087,
353,
279,
16536,
524,
29087,
261,
77,
18,
73,
18,
3614,
16966,
930,
316,
365,
353,
9... |
print "loading logging config from %s" % __scriptdir__ + '/etc/log.conf' | def DoAll(self,module='all'): start = time.time() self._doAction('DownloadNew',module) self._doAction('ParseAll',module) self._doAction('RelateAll',module) self._doAction('GenerateAll',module) self.News(module) self.Indexpages(module) # self.Publish() log.info(u'DoAll finished in %s' % time.strftime("%H:%M:%S",time.gmt... | dbc5eff0da13e41e3d35104f3425a6ffa3cf9e2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4027/dbc5eff0da13e41e3d35104f3425a6ffa3cf9e2b/Manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
1595,
12,
2890,
16,
2978,
2218,
454,
11,
4672,
787,
273,
813,
18,
957,
1435,
365,
6315,
2896,
1803,
2668,
7109,
1908,
2187,
2978,
13,
365,
6315,
2896,
1803,
2668,
3201,
1595,
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,
2256,
1595,
12,
2890,
16,
2978,
2218,
454,
11,
4672,
787,
273,
813,
18,
957,
1435,
365,
6315,
2896,
1803,
2668,
7109,
1908,
2187,
2978,
13,
365,
6315,
2896,
1803,
2668,
3201,
1595,
2187,... | |
print 'index error for %s %s' % (display_style, widget_type) | print 'index error for %s %s' % (self.display_style, widget_type) | def init_vars(self, settings, display_type, widget_type = 'menu'): """ check which layout is used and set variables for the object """ redraw = self.redraw self.settings = settings | a7dbb47f3ca6335800959388ef53cb3ba0f7304b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/a7dbb47f3ca6335800959388ef53cb3ba0f7304b/area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
4699,
12,
2890,
16,
1947,
16,
2562,
67,
723,
16,
3604,
67,
723,
273,
296,
5414,
11,
4672,
3536,
866,
1492,
3511,
353,
1399,
471,
444,
3152,
364,
326,
733,
3536,
16540,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
4699,
12,
2890,
16,
1947,
16,
2562,
67,
723,
16,
3604,
67,
723,
273,
296,
5414,
11,
4672,
3536,
866,
1492,
3511,
353,
1399,
471,
444,
3152,
364,
326,
733,
3536,
16540,
273,
... |
elif UName == "freebsd": | elif UName == "freebsd": | def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.com... | a5382390fc1645f62582e9440bae90e340b3d767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/a5382390fc1645f62582e9440bae90e340b3d767/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1444,
12,
653,
4672,
468,
468,
5098,
855,
326,
585,
309,
392,
3330,
2190,
353,
315,
7337,
6,
261,
451,
402,
468,
11234,
777,
854,
16,
1529,
3631,
471,
1338,
855,
518,
3647,
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,
968,
1444,
12,
653,
4672,
468,
468,
5098,
855,
326,
585,
309,
392,
3330,
2190,
353,
315,
7337,
6,
261,
451,
402,
468,
11234,
777,
854,
16,
1529,
3631,
471,
1338,
855,
518,
3647,
18,
... |
bodyupdates = self.bodypreupdates() | bodyupdates = cellset(unsure=self.bodypreupdates().unsure) | def preupdates(self): bodyupdates = self.bodypreupdates() stride = self.stride() if bodyupdates and stride != 0: bodyupdates.add(None) return bodyupdates | 71e0598bb7dc6d9b90f66161eeb283e8ddccc073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/71e0598bb7dc6d9b90f66161eeb283e8ddccc073/esotope-bfc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
14703,
12,
2890,
4672,
1417,
14703,
273,
2484,
542,
12,
318,
2055,
33,
2890,
18,
70,
369,
879,
266,
14703,
7675,
318,
2055,
13,
11084,
273,
365,
18,
27937,
1435,
309,
1417,
14703,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
675,
14703,
12,
2890,
4672,
1417,
14703,
273,
2484,
542,
12,
318,
2055,
33,
2890,
18,
70,
369,
879,
266,
14703,
7675,
318,
2055,
13,
11084,
273,
365,
18,
27937,
1435,
309,
1417,
14703,
... |
""" | """ | def __failStalledJobs( self, failedTime ): """ Changes the Stalled status to Failed for jobs long in the Stalled status """ result = self.jobDB.selectJobs( {'Status':'Stalled'} ) failedCounter = 0 if not result['OK'] or not result['Value']: self.log.warn( result ) return result else: jobs = result['Value'] self.log.... | 1bc0d189cfa76ea128be98dcb17942841327a3d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/1bc0d189cfa76ea128be98dcb17942841327a3d2/StalledJobAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6870,
510,
4502,
7276,
12,
365,
16,
2535,
950,
262,
30,
3536,
17776,
326,
934,
4502,
1267,
358,
11175,
364,
6550,
1525,
316,
326,
934,
4502,
1267,
3536,
225,
563,
273,
365,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6870,
510,
4502,
7276,
12,
365,
16,
2535,
950,
262,
30,
3536,
17776,
326,
934,
4502,
1267,
358,
11175,
364,
6550,
1525,
316,
326,
934,
4502,
1267,
3536,
225,
563,
273,
365,
18,
4... |
for n in range(cell.rowspan): if colspan <= 1: | row_index = index + n icells = table[row_index] ilen = len(icells) if ilen < colspan: colspan = ilen i = row_cells.index(cell) k = 0 while k < colspan and (i+k) < ilen: if icells[i+k].type != Cell.free: colspan = k | def render_namespace(items, times): nitems, iitems = len(items), 0 # blocks = [(nrows, ncols), ..] blocks, table, state = [], [], [] nrows = 0 for time in times[:-1]: cells = [] # add the busy cells for rowspan in state: if rowspan > 0: cells.append(Cell(Cell.busy)) else: cells.append(Cell(Cell.free, content={'start':... | 1d613a42339f87a03d37293214879a0488e9bfef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1d613a42339f87a03d37293214879a0488e9bfef/gridlayout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
9... |
self.update(self.currval + 1) | if self.start_time is None: self.start() else: self.update(self.currval + 1) | def next(self): try: next = self._iterable.next() self.update(self.currval + 1) return next except StopIteration: self.finish() raise | bab4de0eb8c041c27799a711d2ac8110938e3728 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5565/bab4de0eb8c041c27799a711d2ac8110938e3728/progressbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
775,
30,
1024,
273,
365,
6315,
15364,
18,
4285,
1435,
309,
365,
18,
1937,
67,
957,
353,
599,
30,
365,
18,
1937,
1435,
469,
30,
365,
18,
2725,
12,
2890,
18,
1701... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1024,
12,
2890,
4672,
775,
30,
1024,
273,
365,
6315,
15364,
18,
4285,
1435,
309,
365,
18,
1937,
67,
957,
353,
599,
30,
365,
18,
1937,
1435,
469,
30,
365,
18,
2725,
12,
2890,
18,
1701... |
'''Commented out until bug is fixed. Percussion [asdf,asdf,asdf] makes trouble, split list+role details | def endElement(self, name): self.buffer = self.buffer.strip() self.buffer = MySQLdb.escape_string(self.buffer) if name == 'title': if len(self.buffer) != 0: if self.inElement['track']: self.release.tracklist[len(self.release.tracklist)-1].title = self.buffer else: self.release.title = self.buffer elif name == 'country'... | 16688d7d6f9858560d48eb6b4add69c66764cf1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12045/16688d7d6f9858560d48eb6b4add69c66764cf1c/discogsreleaseparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
365,
18,
4106,
273,
365,
18,
4106,
18,
6406,
1435,
365,
18,
4106,
273,
13485,
1966,
18,
6939,
67,
1080,
12,
2890,
18,
4106,
13,
309,
508,
422,
296,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
365,
18,
4106,
273,
365,
18,
4106,
18,
6406,
1435,
365,
18,
4106,
273,
13485,
1966,
18,
6939,
67,
1080,
12,
2890,
18,
4106,
13,
309,
508,
422,
296,
26... | |
'x_mail_icon':'''<a href="%s/youralerts/input?ln=%s&idq=%s"> <img src="%s/img/mail-icon-12x8.gif" border="0" alt="" /></a>''' % \ (weburl, ln, id_query, weburl), 'x_rss_icon':'<a href="%s"><img src="%s/img/feed-icon-12x12.gif" border="0" alt="" /></a>'% (rssurl, weburl)}} return out | }} return out | def tmpl_alert_rss_teaser_box_for_query(self, id_query, ln): """Propose teaser for setting up this query as alert or RSS feed. | d80e9e5b545268d60103014de3d2c09f38531285 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/d80e9e5b545268d60103014de3d2c09f38531285/websearch_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
11798,
67,
25151,
67,
736,
14558,
67,
2147,
67,
1884,
67,
2271,
12,
2890,
16,
612,
67,
2271,
16,
7211,
4672,
3536,
626,
4150,
27554,
364,
3637,
731,
333,
843,
487,
6881,
578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
11798,
67,
25151,
67,
736,
14558,
67,
2147,
67,
1884,
67,
2271,
12,
2890,
16,
612,
67,
2271,
16,
7211,
4672,
3536,
626,
4150,
27554,
364,
3637,
731,
333,
843,
487,
6881,
578... |
newDomain = orange.Domain(dataOrig.domain.attributes+[atDisc,dataOrig.domain.classVar]) for (id, metaVar) in dataOrig.domain.getmetas().items(): newDomain.addmeta(id, metaVar) dataOrig = dataOrig.select(newDomain) dataFinal = dataFinal.select(newDomain) newData = newData.select(newDomain) for d in dataOrig: | newDomain = orange.Domain(data.domain.attributes+[atDisc,data.domain.classVar]) newDomain.addmetas(data.domain.getmetas()) newData = orange.ExampleTable(newDomain,data) altData = orange.ExampleTable(newDomain,data) for i,d in enumerate(newData): | def createLogRegExampleTable(data): newDomain = orange.Domain(data.domain.attributes+[data.domain.classVar]) newDomain.addmeta(orange.newmetaid(), orange.FloatVariable("weight")) dataOrig = data.select(newDomain) #original data dataFinal = dataOrig.select(newDomain) #final results will be stored in this object | 4ae7da6ee8b6f203a5502fe34e8cd40ceb01f647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/4ae7da6ee8b6f203a5502fe34e8cd40ceb01f647/orngLR.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1343,
1617,
10908,
1388,
12,
892,
4672,
394,
3748,
273,
578,
726,
18,
3748,
12,
892,
18,
4308,
18,
4350,
15,
63,
892,
18,
4308,
18,
1106,
1537,
5717,
394,
3748,
18,
1289,
3901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1343,
1617,
10908,
1388,
12,
892,
4672,
394,
3748,
273,
578,
726,
18,
3748,
12,
892,
18,
4308,
18,
4350,
15,
63,
892,
18,
4308,
18,
1106,
1537,
5717,
394,
3748,
18,
1289,
3901,
... |
return Dec_n1 | return _Dec_n1 | def compare_total(self, other): """Compares self to other using the abstract representations. | 335c6f295295ab5b62a80d25d26d89243eb80fb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/335c6f295295ab5b62a80d25d26d89243eb80fb0/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
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,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if bzversion.startswith('3.0'): | if bzversion.startswith('3.6'): c = Bugzilla36 elif bzversion.startswith('3.4'): c = Bugzilla34 elif bzversion.startswith('3.2'): c = Bugzilla32 else: | def getBugzillaClassForURL(url): log.debug("Choosing subclass for %s" % url) s = xmlrpclib.ServerProxy(url) rhbz = False bzversion = '' c = None # Check for a RH-only method try: log.debug("Checking for RH Bugzilla method bugzilla.getProdInfo()") prodinfo = s.bugzilla.getProdInfo() rhbz = True except xmlrpclib.Fault: ... | e2e639093d2d6767694bd1f86604f9e359bb7e33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5050/e2e639093d2d6767694bd1f86604f9e359bb7e33/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
637,
15990,
797,
1290,
1785,
12,
718,
4672,
613,
18,
4148,
2932,
9636,
538,
310,
10177,
364,
738,
87,
6,
738,
880,
13,
272,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
12,
718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
637,
15990,
797,
1290,
1785,
12,
718,
4672,
613,
18,
4148,
2932,
9636,
538,
310,
10177,
364,
738,
87,
6,
738,
880,
13,
272,
273,
2025,
13832,
830,
495,
18,
2081,
3886,
12,
718,
... |
local_sdp.media.append(stream.get_local_media(for_offer=False)) else: | if index < len(local_sdp.media): local_sdp.media[index] = stream.get_local_media(for_offer=False) else: local_sdp.media.append(stream.get_local_media(for_offer=False)) elif index >= len(local_sdp.media): | def accept_proposal(self, streams): self.greenlet = api.getcurrent() notification_center = NotificationCenter() | 79bf0e8a74e5fb5cb836c29c6155c38f80c87417 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/79bf0e8a74e5fb5cb836c29c6155c38f80c87417/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
67,
685,
8016,
12,
2890,
16,
8205,
4672,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
67,
685,
8016,
12,
2890,
16,
8205,
4672,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif not self.delegate.values: | elif not self.isEnumeration: | def _get_javaType(self): try: # Handle XML Schema types that directly map to Java types return JAVA_TYPE_MAP[self.type] except KeyError: # Hand back the type of references if self.isReference: return self.type # Hand back the type of complex types if not self.isAttribute and self.delegate.isComplex(): return self.type ... | 597bf0d4a1e6da22ad999e063e4dd62ecca0c1a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12127/597bf0d4a1e6da22ad999e063e4dd62ecca0c1a0/fu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
6290,
559,
12,
2890,
4672,
775,
30,
468,
5004,
3167,
4611,
1953,
716,
5122,
852,
358,
5110,
1953,
327,
21227,
67,
2399,
67,
8352,
63,
2890,
18,
723,
65,
1335,
4999,
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,
588,
67,
6290,
559,
12,
2890,
4672,
775,
30,
468,
5004,
3167,
4611,
1953,
716,
5122,
852,
358,
5110,
1953,
327,
21227,
67,
2399,
67,
8352,
63,
2890,
18,
723,
65,
1335,
4999,
30,
... |
if (("lax" == type) and (add_words_class)): | if (("lax" == regexp_type) and (add_words_class)): | def getString(self, type = "strict"): """This has only been implemented with OR kind in mind. The result depends on `type`. If `type` is "strict" the representation will be the exact interval (@TODO ? except if the whole class is covered for \d and \s). If `type` is "lax" the representation of the class will be used fo... | 9b3ed74c17dec8d9116a2102e8382fb7fa489058 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6399/9b3ed74c17dec8d9116a2102e8382fb7fa489058/generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4997,
12,
2890,
16,
618,
273,
315,
13948,
6,
4672,
3536,
2503,
711,
1338,
2118,
8249,
598,
4869,
3846,
316,
22838,
18,
1021,
563,
10935,
603,
1375,
723,
8338,
971,
1375,
723,
68,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4997,
12,
2890,
16,
618,
273,
315,
13948,
6,
4672,
3536,
2503,
711,
1338,
2118,
8249,
598,
4869,
3846,
316,
22838,
18,
1021,
563,
10935,
603,
1375,
723,
8338,
971,
1375,
723,
68,
353,
... |
rlib_set_datasource_encoding = _librlib.rlib_set_datasource_encoding | rlib_set_datasource_encoding = _rlib.rlib_set_datasource_encoding | def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name | 5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
30,
... |
self.assertEqual(sf0, sf2) | self.assertEqual(sf0, sf2, "%a != %a" % (sf0, sf2)) | def test_listdir(self): sf0 = set(self.files) f1 = os.listdir(support.TESTFN.encode(sys.getfilesystemencoding())) f2 = os.listdir(support.TESTFN) if sys.platform == 'darwin': # Mac OS X decomposes Unicode names. See comment above. sf0 = set(normalize('NFD', f) for f in self.files) f2 = [normalize('NFD', f) for f in f2... | 8172745e27e5336781b228125af0a6feb70a3b3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/8172745e27e5336781b228125af0a6feb70a3b3e/test_pep277.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1098,
1214,
12,
2890,
4672,
9033,
20,
273,
444,
12,
2890,
18,
2354,
13,
284,
21,
273,
1140,
18,
1098,
1214,
12,
13261,
18,
16961,
19793,
18,
3015,
12,
9499,
18,
588,
17846,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1098,
1214,
12,
2890,
4672,
9033,
20,
273,
444,
12,
2890,
18,
2354,
13,
284,
21,
273,
1140,
18,
1098,
1214,
12,
13261,
18,
16961,
19793,
18,
3015,
12,
9499,
18,
588,
17846,
... |
def set_longtitude(self, lon): | def set_longitude(self, lon): | def set_longtitude(self, lon): """(bool) Set the longtitude value of the geo-tag. Args: lat (float): The new latitude value | c1aac4ac97f51905783a45e0e6a75cb6a4106ed8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10620/c1aac4ac97f51905783a45e0e6a75cb6a4106ed8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
16867,
12,
2890,
16,
4281,
4672,
3536,
12,
6430,
13,
1000,
326,
1525,
88,
3540,
460,
434,
326,
7856,
17,
2692,
18,
225,
6634,
30,
2516,
261,
5659,
4672,
1021,
394,
8904,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
16867,
12,
2890,
16,
4281,
4672,
3536,
12,
6430,
13,
1000,
326,
1525,
88,
3540,
460,
434,
326,
7856,
17,
2692,
18,
225,
6634,
30,
2516,
261,
5659,
4672,
1021,
394,
8904,
460,
... |
if PERMISSION_GROUP not in auth_tool.listPermissions().keys(): | if PERMISSION_GROUP not in self.get_naaya_permissions_in_site(): | def checkReviewerRole(self): """ Checks if the 'Reviewer' role exists, creates and adds review permissions if it doesn't exist """ | 120769de86a8ce6fed67727057fbae7ba44407d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/120769de86a8ce6fed67727057fbae7ba44407d6/NyConsultation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
9159,
264,
2996,
12,
2890,
4672,
3536,
13074,
309,
326,
296,
9159,
264,
11,
2478,
1704,
16,
3414,
471,
4831,
10725,
4371,
309,
518,
3302,
1404,
1005,
3536,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
9159,
264,
2996,
12,
2890,
4672,
3536,
13074,
309,
326,
296,
9159,
264,
11,
2478,
1704,
16,
3414,
471,
4831,
10725,
4371,
309,
518,
3302,
1404,
1005,
3536,
2,
-100,
-100,
-100,
-100... |
ap = {"bssid":string_list[0].replace(' ',''),"fts":string_list[1],"lts":string_list[2],"channel":string_list[3].replace(' ',''),"speed":string_list[4],"privacy":string_list[5].replace(' ',''),"power":string_list[6],"beacons":string_list[7],"data":string_list[8],"ip":string_list[9],"essid":string_list[10].replace(' ',''... | ap = {"bssid":string_list[0].replace(' ',''),"fts":string_list[1],"lts":string_list[2],"channel":string_list[3].replace(' ',''),"speed":string_list[4],"privacy":string_list[5].replace(' ',''),"power":string_list[6],"beacons":string_list[7],"data":string_list[8],"ip":string_list[9],"essid":string_list[10][1:]} | def apTag(devices): """ Create a ap dictionary with tags of the data type on an incoming list """ dict = {} for entry in devices: ap = {} string_list = entry.split(',') #entry = entry.replace(' ','') #sorry for the clusterfuck but i swear it all makse sense len(string_list) if len(string_list) == 15: ap = {"bssid":stri... | b61278edc3c7c2774608f0b6c7dda3de78129718 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3861/b61278edc3c7c2774608f0b6c7dda3de78129718/airgraph-ng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
513,
1805,
12,
12506,
4672,
3536,
1788,
279,
513,
3880,
598,
2342,
434,
326,
501,
618,
603,
392,
6935,
666,
3536,
2065,
273,
2618,
364,
1241,
316,
7166,
30,
513,
273,
2618,
533,
67,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
513,
1805,
12,
12506,
4672,
3536,
1788,
279,
513,
3880,
598,
2342,
434,
326,
501,
618,
603,
392,
6935,
666,
3536,
2065,
273,
2618,
364,
1241,
316,
7166,
30,
513,
273,
2618,
533,
67,
10... |
t = self.types.get( k, str ) | t = self.types.get( k, None ) if t is None: return True | def isvalid( self, k, v ): """ @param k: argument key @type k: str @param v: value @type v: any @return: True if v is a valid value for argument k """ t = self.types.get( k, str ) | a38c0cc56b679efffdadbbd02d87234443aefc91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/a38c0cc56b679efffdadbbd02d87234443aefc91/Commandline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
877,
12,
365,
16,
417,
16,
331,
262,
30,
3536,
632,
891,
417,
30,
1237,
498,
632,
723,
225,
417,
30,
609,
632,
891,
331,
30,
460,
632,
723,
225,
331,
30,
1281,
632,
2463,
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,
353,
877,
12,
365,
16,
417,
16,
331,
262,
30,
3536,
632,
891,
417,
30,
1237,
498,
632,
723,
225,
417,
30,
609,
632,
891,
331,
30,
460,
632,
723,
225,
331,
30,
1281,
632,
2463,
30,
... |
itemID = str(post['ItemID']) | itemID = str(post['ItemId']) | def saveCartItem(self, request): """ Serialize cart item into DB. @param request Django HTTP request object @return Name of saved item when successful """ post = request.POST try: idList = eval(post['IdList']) itemID = str(post['ItemID']) config = post['Config'] resultsOutputDir = post['ResultsOutputDir'] except Excep... | 956a405efe3c1dc92e7f01c48718b70944da47db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/956a405efe3c1dc92e7f01c48718b70944da47db/scamp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
13006,
1180,
12,
2890,
16,
590,
4672,
3536,
14293,
7035,
761,
1368,
2383,
18,
225,
632,
891,
590,
18480,
2239,
590,
733,
632,
2463,
1770,
434,
5198,
761,
1347,
6873,
3536,
1603,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
13006,
1180,
12,
2890,
16,
590,
4672,
3536,
14293,
7035,
761,
1368,
2383,
18,
225,
632,
891,
590,
18480,
2239,
590,
733,
632,
2463,
1770,
434,
5198,
761,
1347,
6873,
3536,
1603,
27... |
ratio_min_parts = __calculate_ratio(config, config.ctib_min) | ratio_min_parts = __calculate_ratio(config, config.cwdb_min) | def run(config, tim=None): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.Di... | 36badd65c251eeb079d3bfab833aabc1dc8ebc9b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/36badd65c251eeb079d3bfab833aabc1dc8ebc9b/find_ldb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.