rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
event.when.append(gcalendar.When(start_time=start_time, end_time=end_time)) | event.when.append(gcalendar.When(start_time=start_time, end_time=end_time)) | def _InsertEvent(self, title='Tennis with Beth', content='Meet for a quick lesson', where='On the courts', start_time=None, end_time=None, recurrence_data=None): """Inserts a basic event using either start_time/end_time definitions or gd:recurrence RFC2445 icalendar syntax. Specifying both types of dates is not valid.... | e2262800381bad093762f0b1a04c151ee756015d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/e2262800381bad093762f0b1a04c151ee756015d/calendarExample.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4600,
1133,
12,
2890,
16,
2077,
2218,
25601,
82,
291,
598,
605,
546,
2187,
913,
2218,
4667,
278,
364,
279,
9549,
22766,
2187,
1625,
2218,
1398,
326,
21833,
3428,
2187,
787,
67,
957,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4600,
1133,
12,
2890,
16,
2077,
2218,
25601,
82,
291,
598,
605,
546,
2187,
913,
2218,
4667,
278,
364,
279,
9549,
22766,
2187,
1625,
2218,
1398,
326,
21833,
3428,
2187,
787,
67,
957,... |
for replicaID,info in res['Value'].items(): | for replicaID, info in res['Value'].items(): | def __getWaitingReplicas(self): """ This obtains the Waiting replicas from the Replicas table and for each LFN the requested storage element """ # First obtain the Waiting replicas from the Replicas table res = self.stagerClient.getWaitingReplicas() if not res['OK']: gLogger.error("StageRequest.__getWaitingReplicas: Fa... | 87d9e4a612b5cfd0ddcec58ce5dded533250cdc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/87d9e4a612b5cfd0ddcec58ce5dded533250cdc2/StageRequestAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
15946,
17248,
12,
2890,
4672,
3536,
1220,
3768,
16598,
326,
23333,
21545,
628,
326,
31222,
1014,
471,
364,
1517,
18803,
50,
326,
3764,
2502,
930,
3536,
468,
5783,
7161,
326,
233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
15946,
17248,
12,
2890,
4672,
3536,
1220,
3768,
16598,
326,
23333,
21545,
628,
326,
31222,
1014,
471,
364,
1517,
18803,
50,
326,
3764,
2502,
930,
3536,
468,
5783,
7161,
326,
233... |
logging.info(cmd) | if OPT_SHOW_COMMANDS: logging.info(cmd) | def readCostsFile(file): logging.info("Reading costs from '%s'" % file) costs = [ ] with open(file, "r") as fd: ## Read costs until we find our date tag for line in reversed(fd.readlines()): if line.startswith("-- "): break data = line.split("\t") costs.insert(0, (int(data[0]), float(data[1]))) ## Read ## WITH return c... | 7252cafc619e15c263669d73db03ebfdbbe27311 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11748/7252cafc619e15c263669d73db03ebfdbbe27311/vldb-experiments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
21420,
812,
12,
768,
4672,
2907,
18,
1376,
2932,
15714,
22793,
628,
1995,
87,
4970,
738,
585,
13,
22793,
273,
306,
308,
598,
1696,
12,
768,
16,
315,
86,
7923,
487,
5194,
30,
7541,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
21420,
812,
12,
768,
4672,
2907,
18,
1376,
2932,
15714,
22793,
628,
1995,
87,
4970,
738,
585,
13,
22793,
273,
306,
308,
598,
1696,
12,
768,
16,
315,
86,
7923,
487,
5194,
30,
7541,... |
f = fields[fpos] | f = fields[fpos] | def check_type(field_type): if field_type == 'float': return 0.0 elif field_type == 'integer': return 0 elif field_type == 'boolean': return False return '' | 9f8394a3119b661e0f978387e8467c7103893025 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/9f8394a3119b661e0f978387e8467c7103893025/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
723,
12,
1518,
67,
723,
4672,
309,
652,
67,
723,
422,
296,
5659,
4278,
327,
374,
18,
20,
1327,
652,
67,
723,
422,
296,
7745,
4278,
327,
374,
1327,
652,
67,
723,
422,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
723,
12,
1518,
67,
723,
4672,
309,
652,
67,
723,
422,
296,
5659,
4278,
327,
374,
18,
20,
1327,
652,
67,
723,
422,
296,
7745,
4278,
327,
374,
1327,
652,
67,
723,
422,
296,
... |
filePrefixes = set() fileIds = set() | fileIdsPathMap = {} | def _createPackageChangeSet(repos, db, cfg, bldList, recipeObj, sourceVersion, targetLabel=None, alwaysBumpCount=False, policyTroves=None, signatureKey = None): """ Helper function for cookPackage object. See there for most parameter definitions. BldList is the list of components created by cooking a package recipe. ... | e3de85c6ac4e6646b13442ebba235f6512d98a7c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/e3de85c6ac4e6646b13442ebba235f6512d98a7c/cook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
2261,
21565,
12,
15564,
16,
1319,
16,
2776,
16,
324,
1236,
682,
16,
16100,
2675,
16,
1084,
1444,
16,
1018,
2224,
33,
7036,
16,
3712,
38,
2801,
1380,
33,
8381,
16,
3329,
56,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
2261,
21565,
12,
15564,
16,
1319,
16,
2776,
16,
324,
1236,
682,
16,
16100,
2675,
16,
1084,
1444,
16,
1018,
2224,
33,
7036,
16,
3712,
38,
2801,
1380,
33,
8381,
16,
3329,
56,
... |
full_path = self._ExpandPath(test_list_path) | full_path = os.path.join(path_utils.LayoutTestsDir(test_list_path), test_list_path) full_path = os.path.normpath(full_path) | def _Read(self, expectations): """For each test in an expectations iterable, generate the expectations for it. """ lineno = 0 for line in expectations: lineno += 1 | 211a3ffcbe86cd75b6c6053d87df43b574b52ab2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/211a3ffcbe86cd75b6c6053d87df43b574b52ab2/test_expectations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1994,
12,
2890,
16,
26305,
4672,
3536,
1290,
1517,
1842,
316,
392,
26305,
6087,
16,
2103,
326,
26305,
364,
518,
18,
3536,
7586,
273,
374,
364,
980,
316,
26305,
30,
7586,
1011,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1994,
12,
2890,
16,
26305,
4672,
3536,
1290,
1517,
1842,
316,
392,
26305,
6087,
16,
2103,
326,
26305,
364,
518,
18,
3536,
7586,
273,
374,
364,
980,
316,
26305,
30,
7586,
1011,
404,
... |
dict[x[0][1:]] = (x[0][1:],) + x[1:] | dict[x[0][1:]] = (x[0][1:],) + x[1:] | def _lst2dict(lst): dict = {} for x in lst: dict[x[0][1:]] = (x[0][1:],) + x[1:] return dict | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16923,
22,
1576,
12,
16923,
4672,
2065,
273,
2618,
364,
619,
316,
9441,
30,
2065,
63,
92,
63,
20,
6362,
21,
30,
13563,
273,
261,
92,
63,
20,
6362,
21,
30,
6487,
13,
397,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16923,
22,
1576,
12,
16923,
4672,
2065,
273,
2618,
364,
619,
316,
9441,
30,
2065,
63,
92,
63,
20,
6362,
21,
30,
13563,
273,
261,
92,
63,
20,
6362,
21,
30,
6487,
13,
397,
619,
... |
fileout = out.split() fileout[3] = self.__convertPermission__(out[3]) outt.append( fileout ) | if out: fileout = out.split() fileout[3] = self.__convertPermission__(out[3]) outt.append( fileout ) | def getFileInfo(self, source, token = None, opt = ""): """ rfdir | bef012c3659e2f448845b79cebdf1584fed15e76 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/bef012c3659e2f448845b79cebdf1584fed15e76/ProtocolRfio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
966,
12,
2890,
16,
1084,
16,
1147,
273,
599,
16,
2153,
273,
1408,
4672,
3536,
9075,
1214,
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,
6034,
966,
12,
2890,
16,
1084,
16,
1147,
273,
599,
16,
2153,
273,
1408,
4672,
3536,
9075,
1214,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
no_of_snps, chr2no_of_snps, permutation_type=0) | no_of_snps, chr2no_of_snps, permutation_type=0, how_to_handle_rank=how_to_handle_rank) | def getPermutationRankSumPvalue(self, chr2rank_ls, candidate_gene_snp_index_ls, non_candidate_gene_snp_index_ls, rank_sum_stat, no_of_snps, \ chr2no_of_snps, permutation_type=1, no_of_permutations=10000, no_of_min_breaks=25): """ 2008-10-11 re-calculate rank_sum_stat (of the sample before permutation) due to possibilit... | 0cbc1eb0d025ba7f421937353b64926f439623e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/0cbc1eb0d025ba7f421937353b64926f439623e5/GeneListRankTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
1035,
9245,
12925,
3495,
52,
1132,
12,
2890,
16,
4513,
22,
11500,
67,
3251,
16,
5500,
67,
11857,
67,
87,
6782,
67,
1615,
67,
3251,
16,
1661,
67,
19188,
67,
11857,
67,
87,
6782,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
1035,
9245,
12925,
3495,
52,
1132,
12,
2890,
16,
4513,
22,
11500,
67,
3251,
16,
5500,
67,
11857,
67,
87,
6782,
67,
1615,
67,
3251,
16,
1661,
67,
19188,
67,
11857,
67,
87,
6782,
... |
for (name, streamType) in self.streamList: | for streamType, name in self.streamDict.itervalues(): | def metadataEqual(self, other, ignoreOwnerGroup): | a67de324b6550ed8a3b892f25e8458e04b9f4282 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a67de324b6550ed8a3b892f25e8458e04b9f4282/files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1982,
5812,
12,
2890,
16,
1308,
16,
2305,
5541,
1114,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1982,
5812,
12,
2890,
16,
1308,
16,
2305,
5541,
1114,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
M = self.adjacency_matrix(boundary_first=boundary_first) A = list(-M) S = [sum(M.row(i)) for i in range(M.nrows())] for i in range(len(A)): A[i][i] = S[i] return M.parent()(A) | M = self.adjacency_matrix(**kwds) A = -M if M.is_sparse(): row_sums = {} for (i,j), entry in M.dict().iteritems(): row_sums[i] = row_sums.get(i, 0) + entry else: ones = matrix(M.base_ring(), M.nrows(), 1, [1]*M.nrows()) S = M*ones row_sums = dict((i, S[i,0]) for i in range(M.nrows())) for i in range(M.nrows()): A[i,... | def kirchhoff_matrix(self, weighted=None, boundary_first=False): """ Returns the Kirchhoff matrix (a.k.a. the Laplacian) of the graph. | 1ca6f66137d47879244a15a66558f82f865333e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ca6f66137d47879244a15a66558f82f865333e3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
481,
343,
76,
3674,
67,
5667,
12,
2890,
16,
13747,
33,
7036,
16,
7679,
67,
3645,
33,
8381,
4672,
3536,
2860,
326,
1475,
481,
343,
76,
3674,
3148,
261,
69,
18,
79,
18,
69,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
481,
343,
76,
3674,
67,
5667,
12,
2890,
16,
13747,
33,
7036,
16,
7679,
67,
3645,
33,
8381,
4672,
3536,
2860,
326,
1475,
481,
343,
76,
3674,
3148,
261,
69,
18,
79,
18,
69,
18,
... |
sources = ['sage/rings/padics/padic_fixed_mod_element.pyx', \ 'sage/rings/padics/padic_generic_element.c'], | sources = ['sage/rings/padics/padic_fixed_mod_element.pyx'], | def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False | c82811cc0b935d826f6cfba833e4406f8eb9ed19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/c82811cc0b935d826f6cfba833e4406f8eb9ed19/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
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,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,... |
asyncore.dispatcher.__init__(self) | GanetiBaseAsyncoreDispatcher.__init__(self) | def __init__(self): """Constructor for AsyncUDPSocket | b11780bba16a8aff96439b0acb04e20b90b983b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/b11780bba16a8aff96439b0acb04e20b90b983b5/daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
6293,
364,
9672,
20352,
4534,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
6293,
364,
9672,
20352,
4534,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self._get_ids.clear_cache(cursor.dbname, user, trans_obj['name'], trans_obj['type'], context.get('lang','en_US'), [trans_obj['res_id']]) | self._get_ids.clear_cache(cursor.dbname, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], [trans_obj['res_id']]) | def unlink(self, cursor, user, ids, context=None): if not context: context = {} for trans_obj in self.read(cursor, user, ids, ['name','type','res_id','src','lang'], context=context): self._get_source.clear_cache(cursor.dbname, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], source=trans_obj['src']) self.... | d67b6eccda0e5e7089cacd9a87e96452e1742151 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d67b6eccda0e5e7089cacd9a87e96452e1742151/ir_translation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
364,
906,
67,
2603,
316,
365,
18,
896,
12,
9216,
16,
729,
16,
3258,
16,
102... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
364,
906,
67,
2603,
316,
365,
18,
896,
12,
9216,
16,
729,
16,
3258,
16,
102... |
return new Node(t, LABEL) | return Node(t, LABEL) | def LABEL__build(t): return new Node(t, LABEL) | c7acf93c85d2480e1e64e292c2f42ae1721eefbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/c7acf93c85d2480e1e64e292c2f42ae1721eefbe/Builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18210,
972,
3510,
12,
88,
4672,
327,
394,
2029,
12,
88,
16,
18210,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18210,
972,
3510,
12,
88,
4672,
327,
394,
2029,
12,
88,
16,
18210,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return dict(config.items(section)) | configuration = dict(config.items(section)) | def getConfigSettings(projectName='cjklib', section='Connection'): """ Gets the SQL connection parameter from a config file. | 9ef9a7ae43659042b6895aa114e9f82a67ea24b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/9ef9a7ae43659042b6895aa114e9f82a67ea24b2/dbconnector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4367,
2628,
12,
4406,
461,
2218,
71,
26921,
2941,
2187,
2442,
2218,
1952,
11,
4672,
3536,
11881,
326,
3063,
1459,
1569,
628,
279,
642,
585,
18,
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,
4367,
2628,
12,
4406,
461,
2218,
71,
26921,
2941,
2187,
2442,
2218,
1952,
11,
4672,
3536,
11881,
326,
3063,
1459,
1569,
628,
279,
642,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
(lambda: Player.getElementByID("video").play(), | (createImageNode, lambda: Player.getElementByID("video").play(), | def createNode(): node = Player.createNode("video", {"href":"mjpeg1-48x48.avi", "fps":30}) | 55f1b2d40f73a815fcb28370f8c2d0f9b4a0dd9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/55f1b2d40f73a815fcb28370f8c2d0f9b4a0dd9f/PlayerTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24584,
13332,
756,
273,
19185,
18,
2640,
907,
2932,
9115,
3113,
12528,
7547,
15563,
81,
14423,
21,
17,
8875,
92,
8875,
18,
69,
522,
3113,
315,
74,
1121,
6877,
5082,
6792,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24584,
13332,
756,
273,
19185,
18,
2640,
907,
2932,
9115,
3113,
12528,
7547,
15563,
81,
14423,
21,
17,
8875,
92,
8875,
18,
69,
522,
3113,
315,
74,
1121,
6877,
5082,
6792,
2,
-100,
-100,
... |
if map['large_look'] < map['small_look']: return strs = [str(x) for x in config] runner = Xdelta3Pair() runner.extra = ['-I', '0', '-D', '-C', ','.join(strs)] result = TimeRun(runner.Runner(f1, 1, f2, 2)) print 'config %s dsize %d time %.7f in %u trials' % \ (' '.join(strs), result.r1.dsize, result.time.mean, resul... | def ScoreTests(self): mint = float(min([test.time() for test in self.results])) maxt = float(max([test.time() for test in self.results])) mins = float(min([test.size() for test in self.results])) maxs = float(max([test.size() for test in self.results])) scored = [] timed = [] sized = [] for test in self.results: nt... | def RandomBigRun(f1, f2): input_ranges = [ (7, 20, 'large_look'), (1, 30, 'large_step'), (4, 5, 'small_look'), (1, 32, 'small_chain'), (1, 16, 'small_lchain'), (0, 1, 'ssmatch'), (0, 1, 'trylazy'), (1, 128, 'max_lazy'), (1, 256, 'long_enough'), (0, 1, 'promote'), ] config = [] rand = random.Random() map = {} for inp... | 9f465a9db201b97c43d69778eabd222d4fc09fd5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4464/9f465a9db201b97c43d69778eabd222d4fc09fd5/xdelta3-regtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8072,
9901,
1997,
12,
74,
21,
16,
284,
22,
4672,
225,
810,
67,
14530,
273,
306,
261,
27,
16,
4200,
16,
296,
14095,
67,
7330,
19899,
261,
21,
16,
5196,
16,
296,
14095,
67,
4119,
19899... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8072,
9901,
1997,
12,
74,
21,
16,
284,
22,
4672,
225,
810,
67,
14530,
273,
306,
261,
27,
16,
4200,
16,
296,
14095,
67,
7330,
19899,
261,
21,
16,
5196,
16,
296,
14095,
67,
4119,
19899... |
interface = pUnk.QueryInterface(self._connect_interfaces_[0],1) interface = interface.QueryInterface(pythoncom.IID_IDispatch) | interface = pUnk.QueryInterface(self._connect_interfaces_[0],pythoncom.IID_IDispatch) | def Advise(self, pUnk): # Creates a connection to the client. Simply allocate a new cookie, # find the clients interface, and store it in a dictionary. try: interface = pUnk.QueryInterface(self._connect_interfaces_[0],1) interface = interface.QueryInterface(pythoncom.IID_IDispatch) except pythoncom.com_error: raise Ex... | ebad034aef9424da803371d678019810a22b41fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/ebad034aef9424da803371d678019810a22b41fa/connect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4052,
90,
784,
12,
2890,
16,
293,
984,
79,
4672,
468,
10210,
279,
1459,
358,
326,
1004,
18,
225,
9587,
1283,
10101,
279,
394,
3878,
16,
468,
1104,
326,
7712,
1560,
16,
471,
1707,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4052,
90,
784,
12,
2890,
16,
293,
984,
79,
4672,
468,
10210,
279,
1459,
358,
326,
1004,
18,
225,
9587,
1283,
10101,
279,
394,
3878,
16,
468,
1104,
326,
7712,
1560,
16,
471,
1707,
518,
... |
if node == firstVarStatement: | if node is firstVarStatement: | def __patchVarStatements(node, firstVarStatement): """Patches all variable statements in the given node (works recursively) and replace them with assignments.""" if node == firstVarStatement: return elif node.type == "function": # Don't process inner functions/scopes return elif node.type == "var": __rebuildAsAssignm... | f3d3c29e06447304930daa29a6132584fa73d3a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/f3d3c29e06447304930daa29a6132584fa73d3a5/CombineDeclarations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2272,
1537,
14663,
12,
2159,
16,
1122,
1537,
3406,
4672,
3536,
23501,
777,
2190,
6317,
316,
326,
864,
756,
261,
18597,
8536,
13,
471,
1453,
2182,
598,
13610,
12123,
309,
756,
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,
1001,
2272,
1537,
14663,
12,
2159,
16,
1122,
1537,
3406,
4672,
3536,
23501,
777,
2190,
6317,
316,
326,
864,
756,
261,
18597,
8536,
13,
471,
1453,
2182,
598,
13610,
12123,
309,
756,
353,
... |
data_paths.append((mylist[i], int(mylist[i+1]))) | if use_extend: data_paths.extend((mylist[i], int(mylist[i+1]))) else: data_paths.append((mylist[i], int(mylist[i+1]))) | def create_data_paths(thing): """ This function takes in a string that contains NeXus path and signal pairs and turns them into a tuple (for one pair) or a list of tuples. Parameters: ---------- -> things is a string containing a list of NeXus path and signal pairs Returns: ------- <- A tuple or list of tuples of the... | 53800b1900bc3a0c841491708fef3e2dac940402 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/53800b1900bc3a0c841491708fef3e2dac940402/hlr_driver_helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
892,
67,
4481,
12,
4274,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
7455,
60,
407,
589,
471,
4277,
5574,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
3082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
892,
67,
4481,
12,
4274,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
7455,
60,
407,
589,
471,
4277,
5574,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
3082,
... |
os.mkdir(self.testdir + "/results") os.mkdir(self.testdir + "/profiling") os.mkdir(self.testdir + "/debug") os.mkdir(self.testdir + "/analysis") | self.resultsdir = self.testdir + "/results" os.mkdir(self.resultsdir) self.profdir = self.testdir + "/profiling" os.mkdir(self.profdir) self.debugdir = self.testdir + "/debug" os.mkdir(self.debugdir) self.tmpdir = self.testdir + "/tmp" os.mkdir(self.tmpdir) | def __init__(self, job, testdir): self.job = job self.testdir = job.resultdir + '/' + testdir os.mkdir(self.testdir) os.mkdir(self.testdir + "/results") os.mkdir(self.testdir + "/profiling") os.mkdir(self.testdir + "/debug") os.mkdir(self.testdir + "/analysis") | b9c9b973a975bebd968a788af857b014f44406f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/b9c9b973a975bebd968a788af857b014f44406f1/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1719,
16,
1842,
1214,
4672,
365,
18,
4688,
273,
1719,
365,
18,
3813,
1214,
273,
1719,
18,
2088,
1214,
397,
2023,
397,
1842,
1214,
1140,
18,
26686,
12,
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,
2738,
972,
12,
2890,
16,
1719,
16,
1842,
1214,
4672,
365,
18,
4688,
273,
1719,
365,
18,
3813,
1214,
273,
1719,
18,
2088,
1214,
397,
2023,
397,
1842,
1214,
1140,
18,
26686,
12,
28... |
f = open( T.absfile( outFile ), 'w' ) i=1 for alignment in parsed_blast.alignments: for hsp in alignment.hsps: s = string.replace(alignment.title,'\n',' ') s = string.replace(s, 'pdb|', '\npdb|') f.write('Sequence %i: %s\n'%(i,s)) f.write('Length: %i \tScore: %3.1f \tE-value: %2.1e\n'\ %(hsp.identities[1], hsp.score,... | try: f = open( T.absfile( outFile ), 'w' ) i=1 for alignment in parsed_blast.alignments: for hsp in alignment.hsps: s = string.replace(alignment.title,'\n',' ') s = string.replace(s, 'pdb|', '\npdb|') f.write('Sequence %i: %s\n'%(i,s)) f.write('Score: %3.1f \tE-value: %2.1e\n'\ %(hsp.score, hsp.expect)) f.write('Leng... | def __writeBlastResult( self, parsed_blast, outFile): """ Write the result from the blast search to file (similar to the output produced by a regular blast run). writeBlastResult( parsed_blast, outFile ) @param parsed_blast: Bio.Blast.Record.Blast @type parsed_blast: Bio.Blast.Record.Blast @param outFile: file to wr... | ac3cf0bdca86ff1a95d9adc87b65595c562e4d2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/ac3cf0bdca86ff1a95d9adc87b65595c562e4d2b/SequenceSearcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2626,
38,
2722,
1253,
12,
365,
16,
2707,
67,
30901,
16,
21651,
4672,
3536,
2598,
326,
563,
628,
326,
19047,
1623,
358,
585,
261,
22985,
358,
326,
876,
14929,
635,
279,
6736,
19047,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2626,
38,
2722,
1253,
12,
365,
16,
2707,
67,
30901,
16,
21651,
4672,
3536,
2598,
326,
563,
628,
326,
19047,
1623,
358,
585,
261,
22985,
358,
326,
876,
14929,
635,
279,
6736,
19047,... |
except httplib.HTTPException, e: | except (socket.error, httplib.HTTPException): | def _conn_request(self, conn, request_uri, method, body, headers): for i in range(2): try: conn.request(method, request_uri, body, headers) response = conn.getresponse() except socket.gaierror: conn.close() raise ServerNotFoundError("Unable to find the server at %s" % conn.host) except httplib.HTTPException, e: if i ==... | cccda0b2b8d4876f612c3dd600a7123704c8dbd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13138/cccda0b2b8d4876f612c3dd600a7123704c8dbd0/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4646,
67,
2293,
12,
2890,
16,
1487,
16,
590,
67,
1650,
16,
707,
16,
1417,
16,
1607,
4672,
364,
277,
316,
1048,
12,
22,
4672,
775,
30,
1487,
18,
2293,
12,
2039,
16,
590,
67,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4646,
67,
2293,
12,
2890,
16,
1487,
16,
590,
67,
1650,
16,
707,
16,
1417,
16,
1607,
4672,
364,
277,
316,
1048,
12,
22,
4672,
775,
30,
1487,
18,
2293,
12,
2039,
16,
590,
67,
16... |
(game.condition.upper(), sum(map(lambda x: x > 0, damages)))) | (game.condition.upper(), sum(map(lambda x: x > 0, game.damage)))) | def status(req=0): "Emit status report lines" if not req or req == 1: prstat(_("Stardate"), _("%.1f, Time Left %.2f") \ % (game.state.date, game.state.remtime)) if not req or req == 2: if game.condition != "docked": newcnd() prstat(_("Condition"), _("%s, %i DAMAGES") % \ (game.condition.upper(), sum(map(lambda x: x > 0... | ca9c535343fcd397a088ed2ae758e23254397ca1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ca9c535343fcd397a088ed2ae758e23254397ca1/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
12,
3658,
33,
20,
4672,
315,
17982,
1267,
2605,
2362,
6,
309,
486,
1111,
578,
1111,
422,
404,
30,
846,
5642,
24899,
2932,
18379,
712,
6,
3631,
389,
27188,
18,
21,
74,
16,
2647,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
12,
3658,
33,
20,
4672,
315,
17982,
1267,
2605,
2362,
6,
309,
486,
1111,
578,
1111,
422,
404,
30,
846,
5642,
24899,
2932,
18379,
712,
6,
3631,
389,
27188,
18,
21,
74,
16,
2647,
... |
>>> VersionManagement.infer_next_version('3.1.2', '1.0') | >>> VM_infer('3.1.2', '1.0') | def infer_next_version(last_version, increment): """ Given a simple application version (as a StrictVersion), and an increment (1.0, 0.1, or 0.0.1), guess the next version. >>> VersionManagement.infer_next_version('3.2', '0.0.1') '3.2.1' >>> VersionManagement.infer_next_version(StrictVersion('3.2'), '0.0.1') '3.2.1' >>... | e305d484aa2294b4f486a574edcd9ecbe9dea495 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/833/e305d484aa2294b4f486a574edcd9ecbe9dea495/hgtools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
... |
line = preparser_ipython.preparse_ipython(line) | line = preparser_ipython.preparse_ipython(line, not continuation) | def do_prefilter_paste(line, continuation): """ Alternate prefilter for input. INPUT: line -- a single line; must *not* have any newlines in it continuation -- whether the input line is really part of the previous line, because of open parens or backslash. """ if '\n' in line: raise RuntimeError, "bug in function that... | 79bab614bd0dd588a81900ff8b4f0f467f94c35a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/79bab614bd0dd588a81900ff8b4f0f467f94c35a/interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1484,
2188,
67,
29795,
12,
1369,
16,
17378,
4672,
3536,
21498,
340,
675,
2188,
364,
810,
18,
225,
12943,
30,
980,
1493,
279,
2202,
980,
31,
1297,
380,
902,
14,
1240,
1281,
191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1484,
2188,
67,
29795,
12,
1369,
16,
17378,
4672,
3536,
21498,
340,
675,
2188,
364,
810,
18,
225,
12943,
30,
980,
1493,
279,
2202,
980,
31,
1297,
380,
902,
14,
1240,
1281,
191... |
print timestamp(), " Syncing rpms for child channels in %s" % parent | child_printed = False rpm_printed = False print timestamp(), " Checking rpms for child channels in %s" % parent | def main(): if options.demo: key = False current_channels = {} current_channel_labels = ['rhel-x86_64-server-5'] else: # Login to Satellite server key = login(options.user, options.password) # Build existing channel list current_channels = client.channel.list_all_channels(key) current_channel_labels = [] for channel in... | 47bf7c5912da2993d3407be03ab7a0b52c21819b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/47bf7c5912da2993d3407be03ab7a0b52c21819b/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... |
- `j` - (integer) a symbol index | - ``j`` - (integer) a symbol index | def apply_I(self, j): """ Apply the matrix `I=[-1,0,0,1]` to the `j`-th Manin symbol. | 671c84d5e7cdbe17c4a9c5101eeb0ee36a73d4c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/671c84d5e7cdbe17c4a9c5101eeb0ee36a73d4c3/manin_symbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
45,
12,
2890,
16,
525,
4672,
3536,
5534,
326,
3148,
1375,
45,
33,
18919,
21,
16,
20,
16,
20,
16,
21,
65,
68,
358,
326,
1375,
78,
68,
17,
451,
8660,
267,
3273,
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,
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,
2230,
67,
45,
12,
2890,
16,
525,
4672,
3536,
5534,
326,
3148,
1375,
45,
33,
18919,
21,
16,
20,
16,
20,
16,
21,
65,
68,
358,
326,
1375,
78,
68,
17,
451,
8660,
267,
3273,
18,
2,
-1... |
app = wx.PySimpleApp(redirect=True) | app = wx.PySimpleApp(redirect=False) | def Clear(self): self._fgtxt.SetValue("") self._bgtxt.SetValue("") self._fgclr.SetBackgroundColour(self.GetBackgroundColour()) self._bgclr.SetBackgroundColour(self.GetBackgroundColour()) self._fgclr.Refresh() self._bgclr.Refresh() | 0bdcd2f50750d235bff2766f3d03d7228aa88dff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/0bdcd2f50750d235bff2766f3d03d7228aa88dff/widgetLayoutTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10121,
12,
2890,
4672,
365,
6315,
2137,
5830,
18,
694,
620,
2932,
7923,
365,
6315,
12370,
5830,
18,
694,
620,
2932,
7923,
365,
6315,
2137,
830,
86,
18,
694,
8199,
26404,
12,
2890,
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,
10121,
12,
2890,
4672,
365,
6315,
2137,
5830,
18,
694,
620,
2932,
7923,
365,
6315,
12370,
5830,
18,
694,
620,
2932,
7923,
365,
6315,
2137,
830,
86,
18,
694,
8199,
26404,
12,
2890,
18,
... |
libraries, library_dirs) | libraries, library_dirs, build_info) | def build_extensions (self, extensions): | e57e6ae5d4598077ad8628fb46c7746f64a13579 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e57e6ae5d4598077ad8628fb46c7746f64a13579/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
9489,
261,
2890,
16,
4418,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
9489,
261,
2890,
16,
4418,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return res | return copy.deepcopy(res) | def get_info(self,notfound_action=0): """ Return a dictonary with items that are compatible with numpy.distutils.setup keyword arguments. """ flag = 0 if not self.has_info(): flag = 1 if self.verbosity>0: print self.__class__.__name__ + ':' if hasattr(self, 'calc_info'): self.calc_info() if notfound_action: if not self... | 9098bf39d2bc30cbb0162c92126a5b7c97901371 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/9098bf39d2bc30cbb0162c92126a5b7c97901371/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
16,
902,
7015,
67,
1128,
33,
20,
4672,
3536,
2000,
279,
2065,
265,
814,
598,
1516,
716,
854,
7318,
598,
3972,
18,
4413,
5471,
18,
8401,
4932,
1775,
18,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1376,
12,
2890,
16,
902,
7015,
67,
1128,
33,
20,
4672,
3536,
2000,
279,
2065,
265,
814,
598,
1516,
716,
854,
7318,
598,
3972,
18,
4413,
5471,
18,
8401,
4932,
1775,
18,
3536,
... |
raise DRMError() | raise DRMError("Cannot access DRM-protected book") | def _read_drm(self): self.drmlevel = 0 if '/DRMStorage/Licenses/EUL' in self.entries: self.drmlevel = 5 elif '/DRMStorage/DRMBookplate' in self.entries: self.drmlevel = 3 elif '/DRMStorage/DRMSealed' in self.entries: self.drmlevel = 1 else: return if self.drmlevel < 5: msdes.deskey(self._calculate_deskey(), msdes.DE1) ... | d9b9513a50847b20f58232151be9e985c49ccabd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/d9b9513a50847b20f58232151be9e985c49ccabd/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
3069,
81,
12,
2890,
4672,
365,
18,
3069,
81,
2815,
273,
374,
309,
1173,
6331,
49,
3245,
19,
48,
16548,
19,
41,
1506,
11,
316,
365,
18,
8219,
30,
365,
18,
3069,
81,
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,
389,
896,
67,
3069,
81,
12,
2890,
4672,
365,
18,
3069,
81,
2815,
273,
374,
309,
1173,
6331,
49,
3245,
19,
48,
16548,
19,
41,
1506,
11,
316,
365,
18,
8219,
30,
365,
18,
3069,
81,
28... |
def _signalConnAlias(self, conn): f = self.connect if not conn: f = self.disconnect f(self.list_conn_alias, SIGNAL("currentIndexChanged(QString)"), self._loadAliases) f(self.list_alias, SIGNAL("currentIndexChanged(int)"), self._loadAlias) | self.connect(self.list_conn_alias, SIGNAL("currentIndexChanged(QString)"), self._loadAliases) self.connect(self.list_alias, SIGNAL("currentIndexChanged(int)"), self._loadAlias) def disableSignal(self, disable): self.list_alias.blockSignals(disable) self.list_conn_alias.blockSignals(disable) | def _setupSignal(self): clicked = SIGNAL("clicked()") self.connect(self.tab_widget, SIGNAL("currentChanged(int)"), self._syncTabs) | 201b1c9e4adf26ba529bd9bf36b9e00c8fe2621e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8560/201b1c9e4adf26ba529bd9bf36b9e00c8fe2621e/gui_option.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
11208,
12,
2890,
4672,
17688,
273,
12057,
1013,
2932,
7475,
329,
1435,
7923,
365,
18,
3612,
12,
2890,
18,
7032,
67,
6587,
16,
12057,
1013,
2932,
2972,
5033,
12,
474,
2225,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
8401,
11208,
12,
2890,
4672,
17688,
273,
12057,
1013,
2932,
7475,
329,
1435,
7923,
365,
18,
3612,
12,
2890,
18,
7032,
67,
6587,
16,
12057,
1013,
2932,
2972,
5033,
12,
474,
2225,
363... |
src = tarfile.open(tarname) | src = tarfile.open(tarname, encoding="iso8859-1") | def _create_testtar(self, mode="w:"): src = tarfile.open(tarname) t = src.getmember("ustar/regtype") t.name = "foo" f = src.extractfile(t) tar = tarfile.open(self.tarname, mode) tar.addfile(t, f) tar.close() | a36cde4ccc24a90604899ea9d25d273a2c92c87c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/a36cde4ccc24a90604899ea9d25d273a2c92c87c/test_tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
3813,
11718,
12,
2890,
16,
1965,
1546,
91,
2773,
4672,
1705,
273,
25857,
18,
3190,
12,
11718,
529,
16,
2688,
1546,
9699,
17258,
17,
21,
7923,
268,
273,
1705,
18,
588,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
3813,
11718,
12,
2890,
16,
1965,
1546,
91,
2773,
4672,
1705,
273,
25857,
18,
3190,
12,
11718,
529,
16,
2688,
1546,
9699,
17258,
17,
21,
7923,
268,
273,
1705,
18,
588,
59... |
self.assertRaises(ValueError, time.strftime, '', | self.assertRaises(ValueError, func, | def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple (0 is valid for *all* values). | e5bdf5740529b4ba238a2559495df94fbf74c768 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e5bdf5740529b4ba238a2559495df94fbf74c768/test_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
... |
realfile = py['datadir'] + re.sub('.html', '.txt', pathInfo) if re.match(archiveRoot, redir) and os.path.exists(realfile): | if redir.startswith(archiveRoot): | def saveData(filename, document): makepath(filename) print document # Now we disect the document and remove the first few lines data = document.split('\n') file(filename, "w").write('\n'.join(data[4:])) | fcb5dafc9f2a61bc0a9afeb4b5eeaa7587ee3421 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/fcb5dafc9f2a61bc0a9afeb4b5eeaa7587ee3421/404_handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
751,
12,
3459,
16,
1668,
4672,
1221,
803,
12,
3459,
13,
1172,
1668,
468,
4494,
732,
1015,
386,
326,
1668,
471,
1206,
326,
1122,
11315,
2362,
501,
273,
1668,
18,
4939,
2668,
64,
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,
1923,
751,
12,
3459,
16,
1668,
4672,
1221,
803,
12,
3459,
13,
1172,
1668,
468,
4494,
732,
1015,
386,
326,
1668,
471,
1206,
326,
1122,
11315,
2362,
501,
273,
1668,
18,
4939,
2668,
64,
8... |
(-0.98174770424681035, -0.83146961230254524), (-0.78539816339744828, | (-0.98174770424681035, -0.831469612302545...), (-0.78539816339744828, | def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: f -... | 662ccb636620bd0abeed04142bada4e1054b961e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/662ccb636620bd0abeed04142bada4e1054b961e/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
467... |
if not (u2 >= c * (2.0 - c) and u2 > c * _exp(1.0 - c)): | if u2 < c * (2.0 - c) or u2 <= c * _exp(1.0 - c): | def vonmisesvariate(self, mu, kappa): """Circular data distribution. | fdaed79a0919ce05f40e1059b1d87de120ba03fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fdaed79a0919ce05f40e1059b1d87de120ba03fc/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
331,
265,
81,
6141,
1401,
3840,
12,
2890,
16,
4129,
16,
23125,
4672,
3536,
25858,
501,
7006,
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,
331,
265,
81,
6141,
1401,
3840,
12,
2890,
16,
4129,
16,
23125,
4672,
3536,
25858,
501,
7006,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
horiz_sep = style['horiz_sep'] border = style['border'] tab_str = style['tab_str'] * style['tab_num'] max_col = style['max_col'] - len(border[3]) - len(border[4]) - len(tab_str) prefix = style['prefix'] suffix = style['suffix'] force_horiz = style['force_horiz'] | horiz_sep = astyle['horiz_sep'] border = astyle['border'] tab_str = astyle['tab_str'] * astyle['tab_num'] max_col = astyle['max_col'] - len(border[3]) - len(border[4]) - len(tab_str) prefix = astyle['prefix'] suffix = astyle['suffix'] force_horiz = astyle['force_horiz'] | def _wrap_row(row, max_col): """Wrap a single row""" spaces = _RE_BEGINNING_SPACES.match(row).group() row = row[len(spaces):] return wrap(row, initial_indent=spaces, subsequent_indent=spaces, width=max_col) | 4d14424c17c19594667895642a640eb6b62c737e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/4d14424c17c19594667895642a640eb6b62c737e/textutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
67,
492,
12,
492,
16,
943,
67,
1293,
4672,
3536,
2964,
279,
2202,
1027,
8395,
7292,
273,
389,
862,
67,
16061,
15870,
67,
6616,
55,
18,
1916,
12,
492,
2934,
1655,
1435,
1027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4113,
67,
492,
12,
492,
16,
943,
67,
1293,
4672,
3536,
2964,
279,
2202,
1027,
8395,
7292,
273,
389,
862,
67,
16061,
15870,
67,
6616,
55,
18,
1916,
12,
492,
2934,
1655,
1435,
1027,... |
content = memcache.get((str(_range[0]),str(_range[1])),namespace=url) | content = memcache.get("%d-%d" % ( _range[0], _range[1] ),namespace=url) | def set_last_modified(url,last_modified): query = URL().all().filter('url =',url) entity = query.get() if entity: entity.last_modified = last_modified else: entity = URL(url=url,last_modified=last_modified) entity.put() | bd51bcaf67daf9c48b3cff1bb149f333f4b228bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9599/bd51bcaf67daf9c48b3cff1bb149f333f4b228bf/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2722,
67,
7342,
12,
718,
16,
2722,
67,
7342,
4672,
843,
273,
1976,
7675,
454,
7675,
2188,
2668,
718,
273,
2187,
718,
13,
1522,
273,
843,
18,
588,
1435,
309,
1522,
30,
1522,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2722,
67,
7342,
12,
718,
16,
2722,
67,
7342,
4672,
843,
273,
1976,
7675,
454,
7675,
2188,
2668,
718,
273,
2187,
718,
13,
1522,
273,
843,
18,
588,
1435,
309,
1522,
30,
1522,
... |
scripts=["archivemail"], | scripts=["archivemail.py"], | def check_python_version(): """Abort if we are running on python < v2.0""" too_old_error = """This program requires python v2.0 or greater. | 83ac69d0f816dce75a58f5cf8f93197675d7d31d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1746/83ac69d0f816dce75a58f5cf8f93197675d7d31d/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
8103,
67,
1589,
13332,
3536,
13572,
309,
732,
854,
3549,
603,
5790,
411,
331,
22,
18,
20,
8395,
4885,
67,
1673,
67,
1636,
273,
3536,
2503,
5402,
4991,
5790,
331,
22,
18,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
8103,
67,
1589,
13332,
3536,
13572,
309,
732,
854,
3549,
603,
5790,
411,
331,
22,
18,
20,
8395,
4885,
67,
1673,
67,
1636,
273,
3536,
2503,
5402,
4991,
5790,
331,
22,
18,
20,
... |
return p | return p | #ifndef Py_UNICODE_WIDE if sys.maxunicode > 0xffff: if (x > 0x10000): res = unicode_call_errorhandler( errors, "rawunicodeescape", "\\Uxxxxxxxx out of range", s, size, pos, pos+1) pos = i = res[1] p += res[0] i += 1 else: if (x > 0x10000): res = unicode_call_errorhandler( errors, "rawunicodeescape", "\\Uxxxxxxxx out of... | 1068d8674b2ec1a7e31a58d2ec90350e5153201d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/1068d8674b2ec1a7e31a58d2ec90350e5153201d/app_codecs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
82,
536,
4707,
67,
26642,
67,
59,
10385,
309,
2589,
18,
1896,
9124,
405,
374,
20431,
30,
309,
261,
92,
405,
374,
92,
23899,
4672,
400,
273,
5252,
67,
1991,
67,
1636,
4176,
12,
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,
468,
430,
82,
536,
4707,
67,
26642,
67,
59,
10385,
309,
2589,
18,
1896,
9124,
405,
374,
20431,
30,
309,
261,
92,
405,
374,
92,
23899,
4672,
400,
273,
5252,
67,
1991,
67,
1636,
4176,
12,
13... |
if node.parent.hasattr('id') and not self.use_latex_toc: | elif node.parent.hasattr('id') and not self.use_latex_toc: | def depart_title(self, node): self.body.append(self.context.pop()) # BUG level depends on style. if node.parent.hasattr('id') and not self.use_latex_toc: # pdflatex allows level 0 to 3 # ToC would be the only on level 0 so i choose to decrement the rest. # "Table of contents" bookmark to see the ToC. To avoid this # we... | ba3b8466618c47ebb705f31d29708a7418853ca9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/ba3b8466618c47ebb705f31d29708a7418853ca9/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
2649,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
2472,
18,
5120,
10756,
468,
10937,
43,
1801,
10935,
603,
2154,
18,
1327,
756,
18,
2938,
18,
5332,
1747,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
2649,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
2472,
18,
5120,
10756,
468,
10937,
43,
1801,
10935,
603,
2154,
18,
1327,
756,
18,
2938,
18,
5332,
1747,... |
else: instpkgs = [] availpkgs = [] if po: if po.repoid == 'installed': instpkgs.append(po) else: availpkgs.append(po) elif kwargs.has_key('pattern'): | instpkgs = [] availpkgs = [] if po: if po.repoid == 'installed': instpkgs.append(po) else: availpkgs.append(po) elif kwargs.has_key('pattern'): (e, m, u) = self.rpmdb.matchPackageNames([kwargs['pattern']]) instpkgs.extend(e) instpkgs.extend(m) if not instpkgs: | def update(self, po=None, requiringPo=None, **kwargs): """try to mark for update the item(s) specified. po is a package object - if that is there, mark it for update, if possible else use **kwargs to match the package needing update if nothing is specified at all then attempt to update everything returns the list of t... | 833e6056ee3711813167142d53802e464a0ac258 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/833e6056ee3711813167142d53802e464a0ac258/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
8275,
33,
7036,
16,
29468,
29198,
33,
7036,
16,
2826,
4333,
4672,
3536,
698,
358,
2267,
364,
1089,
326,
761,
12,
87,
13,
1269,
18,
8275,
353,
279,
2181,
733,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
8275,
33,
7036,
16,
29468,
29198,
33,
7036,
16,
2826,
4333,
4672,
3536,
698,
358,
2267,
364,
1089,
326,
761,
12,
87,
13,
1269,
18,
8275,
353,
279,
2181,
733,
300,
... |
self.runner = ['python', iptest_path, '-v'] | self.runner = tools.cmd2argv(iptest_path) + ['-v'] | def __init__(self,runner='iptest',params=None): """Create new test runner.""" if runner == 'iptest': # Find our own 'iptest' script OS-level entry point try: iptest_path = os.path.abspath(find_cmd('iptest')) except FindCmdError: # Script not installed (may be the case for testing situations # that are running from a so... | 91791416ab66f3e518bf5315760c09f0f06f8c9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3900/91791416ab66f3e518bf5315760c09f0f06f8c9b/iptest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
18156,
2218,
8138,
395,
2187,
2010,
33,
7036,
4672,
3536,
1684,
394,
1842,
8419,
12123,
309,
8419,
422,
296,
8138,
395,
4278,
468,
4163,
3134,
4953,
296,
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,
1001,
2738,
972,
12,
2890,
16,
18156,
2218,
8138,
395,
2187,
2010,
33,
7036,
4672,
3536,
1684,
394,
1842,
8419,
12123,
309,
8419,
422,
296,
8138,
395,
4278,
468,
4163,
3134,
4953,
296,
8... |
if line.startswith("["): | if line.startswith("Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id="): bug = line[53:] elif line.startswith("["): | def parseLogLine(logInfo): mapping = { "e": "editorial", "a": "authors", "c": "conformance-checkers", "g": "gecko", "i": "internet-explorer", "o": "opera", "w": "webkit", "r": "google-gears", "t": "tools", "0": "draft-content", "1": "stable-draft", "2": "implemented", "3": "stable" } changes = [] classes = [] for line ... | 943afbec53903141cfdc88408bfe2ea256880388 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10248/943afbec53903141cfdc88408bfe2ea256880388/trackerlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1343,
1670,
12,
1330,
966,
4672,
2874,
273,
288,
315,
73,
6877,
315,
9177,
649,
3113,
315,
69,
6877,
315,
19368,
3113,
315,
71,
6877,
315,
591,
687,
1359,
17,
1893,
414,
3113,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1343,
1670,
12,
1330,
966,
4672,
2874,
273,
288,
315,
73,
6877,
315,
9177,
649,
3113,
315,
69,
6877,
315,
19368,
3113,
315,
71,
6877,
315,
591,
687,
1359,
17,
1893,
414,
3113,
31... |
list.InsertSizedColumn(0, "URL", min=100, greedy=False) | list.InsertSizedColumn(0, "File", min=100, greedy=False) | def createColumns(self, list): list.InsertSizedColumn(0, "URL", min=100, greedy=False) list.InsertSizedColumn(1, "Line", min=10, greedy=False) list.InsertSizedColumn(2, "Match", min=300, greedy=True) | ac13a415d46371714bb2a8ae04bcd47af7cfe478 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/ac13a415d46371714bb2a8ae04bcd47af7cfe478/search_in_files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3380,
12,
2890,
16,
666,
4672,
666,
18,
4600,
55,
1235,
1494,
12,
20,
16,
315,
812,
3113,
1131,
33,
6625,
16,
5174,
24009,
33,
8381,
13,
666,
18,
4600,
55,
1235,
1494,
12,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3380,
12,
2890,
16,
666,
4672,
666,
18,
4600,
55,
1235,
1494,
12,
20,
16,
315,
812,
3113,
1131,
33,
6625,
16,
5174,
24009,
33,
8381,
13,
666,
18,
4600,
55,
1235,
1494,
12,
21,
... |
max_length=None, min_length=None, error_message=_(u'Enter a tax number field (NIP) in the format XXX-XXX-XX-XX or XX-XX-XXX-XXX.'), *args, **kwargs) | max_length=None, min_length=None, *args, **kwargs) | def __init__(self, *args, **kwargs): super(PLTaxNumberField, self).__init__(r'^\d{3}-\d{3}-\d{2}-\d{2}$|^\d{2}-\d{2}-\d{3}-\d{3}$', max_length=None, min_length=None, error_message=_(u'Enter a tax number field (NIP) in the format XXX-XXX-XX-XX or XX-XX-XXX-XXX.'), *args, **kwargs) | 5c0607caf55cab784871570010f3e0845eef5e5f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9988/5c0607caf55cab784871570010f3e0845eef5e5f/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
6253,
7731,
1854,
974,
16,
365,
2934,
972,
2738,
972,
12,
86,
11,
17134,
72,
95,
23,
97,
6943,
72,
95,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
6253,
7731,
1854,
974,
16,
365,
2934,
972,
2738,
972,
12,
86,
11,
17134,
72,
95,
23,
97,
6943,
72,
95,
23,
... |
fname = urllib2.quote(elixer.fix_filename(orig_name, self.res_num)) | fixed_name = elixer.fix_filename(orig_name, self.res_num) fname = urllib2.quote(fixed_name.encode('utf-8')) | def handle_file(self, file_elem): orig_name = file_elem.find('.//NAME').text | b434cb14ac738c2e839d622cc4ec7bc633af0f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/b434cb14ac738c2e839d622cc4ec7bc633af0f1a/bb9_course.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
768,
12,
2890,
16,
585,
67,
10037,
4672,
1647,
67,
529,
273,
585,
67,
10037,
18,
4720,
2668,
18,
759,
1985,
16063,
955,
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,
1640,
67,
768,
12,
2890,
16,
585,
67,
10037,
4672,
1647,
67,
529,
273,
585,
67,
10037,
18,
4720,
2668,
18,
759,
1985,
16063,
955,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
this = apply(_quickfix.new_NestedPartyRole, args) | this = _quickfix.new_NestedPartyRole(*args) | def __init__(self, *args): this = apply(_quickfix.new_NestedPartyRole, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8649,
17619,
2996,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8649,
17619,
2996,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
if buf != 'AB': | bytes = struct.unpack('B' * 2, buf) if bytes != (65, 66): | def xyz_3(): content = """Y X Z | 652866744a864ab589481120e2ef01c9a8f03d6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/652866744a864ab589481120e2ef01c9a8f03d6f/xyz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14779,
67,
23,
13332,
225,
913,
273,
3536,
61,
1139,
2285,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14779,
67,
23,
13332,
225,
913,
273,
3536,
61,
1139,
2285,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
data['product'] = self._product_id_to_name(data['product'] r = self._proxy.bugzilla.editComponent(data) | data['product'] = self._product_id_to_name(data['product']) r = self._proxy.bugzilla.editComponent(data,self.user,self.password) | def _editcomponent(self,data): edit_required_fields = ('initialowner','product','component') for field in edit_required_fields: if field not in data or not data[field]: raise TypeError, "mandatory field missing: %s" % field if type(data['product']) == int: data['product'] = self._product_id_to_name(data['product'] r = ... | aa14a42b0dc429e8e693809f24e6587063216e59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5050/aa14a42b0dc429e8e693809f24e6587063216e59/rhbugzilla.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4619,
4652,
12,
2890,
16,
892,
4672,
3874,
67,
4718,
67,
2821,
273,
7707,
6769,
8443,
17023,
5896,
17023,
4652,
6134,
364,
652,
316,
3874,
67,
4718,
67,
2821,
30,
309,
652,
486,
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,
4619,
4652,
12,
2890,
16,
892,
4672,
3874,
67,
4718,
67,
2821,
273,
7707,
6769,
8443,
17023,
5896,
17023,
4652,
6134,
364,
652,
316,
3874,
67,
4718,
67,
2821,
30,
309,
652,
486,
3... |
rsync_filenames_client += "tcos_share/%s " %( os.path.basename(filename).replace(" ", "\ ").replace("(", "\(").replace(")", "\)").replace("*", "\*").replace("!", "\!").replace("?", "\?").replace("\"", "\\\"") ) rsync_filenames_server += "%s " %( filename.replace(" ", "\ ").replace("(", "\(").replace(")", "\)").replace(... | basename_scape=os.path.basename(filename) abspath_scape=filename for scape in str_scapes: basename_scape=basename_scape.replace("%s" %scape, "\%s" %scape) abspath_scape=abspath_scape.replace("%s" %scape, "\%s" %scape) rsync_filenames_client += "tcos_share/%s " %( basename_scape ) rsync_filenames_server += "%s " %( absp... | def menu_event_all(self, action): start1=time() # don't make actions in clients not selected if self.main.config.GetVar("selectedhosts") == 1: allclients=[] model=self.main.tabla.get_model() rows = [] model.foreach(lambda model, path, iter: rows.append(path)) for host in rows: iter=model.get_iter(host) if model.get_va... | 02aa26e9decb17b7531b02e8a9add63d01cedfb3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/02aa26e9decb17b7531b02e8a9add63d01cedfb3/TcosActions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3824,
67,
2575,
67,
454,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
225,
468,
2727,
1404,
1221,
4209,
316,
7712,
486,
3170,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3824,
67,
2575,
67,
454,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
225,
468,
2727,
1404,
1221,
4209,
316,
7712,
486,
3170,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
... |
return "http://localhost:2310/common/%s.html" % name | return "http://localhost:%d/%s.html" % (self.webserver.port, name) | def _pageURL(self, name): return "http://localhost:2310/common/%s.html" % name | 42a6bba019502106b50182370f7e0cd3f71b0d4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3504/42a6bba019502106b50182370f7e0cd3f71b0d4d/implicit_waits_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2433,
1785,
12,
2890,
16,
508,
4672,
327,
315,
2505,
2207,
13014,
30,
4366,
2163,
19,
6054,
5258,
87,
18,
2620,
6,
738,
508,
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,
389,
2433,
1785,
12,
2890,
16,
508,
4672,
327,
315,
2505,
2207,
13014,
30,
4366,
2163,
19,
6054,
5258,
87,
18,
2620,
6,
738,
508,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
elif c.id.val == pr2.id.val: | elif c.id.val == pr2.id.val and isinstance(c, ProjectI): | def test1071(self): uuid = self.root.sf.getAdminService().getEventContext().sessionUuid ipojo = self.root.sf.getPojosService() query = self.root.sf.getQueryService() update = self.root.sf.getUpdateService() #projects pr1 = ProjectI() pr1.setName(omero.RString('test1071-pr1-%s' % (uuid))) pr1 = update.saveAndReturnObje... | c8092f897dc095636eab38a278deb48cad5c1502 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12409/c8092f897dc095636eab38a278deb48cad5c1502/tickets2000.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2163,
11212,
12,
2890,
4672,
3822,
273,
365,
18,
3085,
18,
21668,
18,
588,
4446,
1179,
7675,
588,
1133,
1042,
7675,
3184,
5897,
277,
1631,
30952,
273,
365,
18,
3085,
18,
21668,
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,
2163,
11212,
12,
2890,
4672,
3822,
273,
365,
18,
3085,
18,
21668,
18,
588,
4446,
1179,
7675,
588,
1133,
1042,
7675,
3184,
5897,
277,
1631,
30952,
273,
365,
18,
3085,
18,
21668,
18,... |
if __name__ == '__main__': | def cli(): | def server_activate(self): self.base.server_activate(self) if self.callback: self.callback() | 1d384634bf8f9e6180839048207bfd3539bbbc51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1d384634bf8f9e6180839048207bfd3539bbbc51/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
67,
10014,
12,
2890,
4672,
365,
18,
1969,
18,
3567,
67,
10014,
12,
2890,
13,
309,
365,
18,
3394,
30,
365,
18,
3394,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
67,
10014,
12,
2890,
4672,
365,
18,
1969,
18,
3567,
67,
10014,
12,
2890,
13,
309,
365,
18,
3394,
30,
365,
18,
3394,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sel = self.selection | sel = self.selection | def OnHeightInc(self, event): sel = self.selection if sel and sel.selection != self: sel.size.y = sel.size.y + 1 sel.startSize.y = sel.startSize.y + 1 sel.resizeCtrl() sel.setSelection() | 102ae9e4df0cfddbfdb2acfb7df920a5d291af8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/102ae9e4df0cfddbfdb2acfb7df920a5d291af8c/Designer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2686,
14559,
12,
2890,
16,
871,
4672,
357,
273,
365,
18,
10705,
309,
357,
471,
357,
18,
10705,
480,
365,
30,
357,
18,
1467,
18,
93,
273,
357,
18,
1467,
18,
93,
397,
404,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2686,
14559,
12,
2890,
16,
871,
4672,
357,
273,
365,
18,
10705,
309,
357,
471,
357,
18,
10705,
480,
365,
30,
357,
18,
1467,
18,
93,
273,
357,
18,
1467,
18,
93,
397,
404,
357,
... |
print >> sys.stderr, "Failed to get CVS Root for %s" % filename return None | return self.root.replace(":","") | def GetCleanRoot(self): parts = self.root.split('@') if len(parts) > 1: # we don't want the extra colon return parts[1].replace(":","") print >> sys.stderr, "Failed to get CVS Root for %s" % filename return None | b3996707b0c9b92f622a50309a45f5c44e3d42fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/b3996707b0c9b92f622a50309a45f5c44e3d42fd/symbolstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7605,
2375,
12,
2890,
4672,
2140,
273,
365,
18,
3085,
18,
4939,
2668,
36,
6134,
309,
562,
12,
6019,
13,
405,
404,
30,
468,
732,
2727,
1404,
2545,
326,
2870,
13336,
327,
2140,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
7605,
2375,
12,
2890,
4672,
2140,
273,
365,
18,
3085,
18,
4939,
2668,
36,
6134,
309,
562,
12,
6019,
13,
405,
404,
30,
468,
732,
2727,
1404,
2545,
326,
2870,
13336,
327,
2140,
63,
... |
return ('UNIX', self.socket.getsockname()) | return ('UNIX', repr(self.socket.getsockname())) | def getHost(self): return ('UNIX', self.socket.getsockname()) | 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,
8580,
12,
2890,
4672,
327,
7707,
10377,
60,
2187,
365,
18,
7814,
18,
14665,
975,
529,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8580,
12,
2890,
4672,
327,
7707,
10377,
60,
2187,
365,
18,
7814,
18,
14665,
975,
529,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
length, = struct.unpack('>H', buffer(raw, n, 2)) | length, = struct.unpack('>H', raw[n:n+2]) | def __init__(self, filename = None): | cd62e8e6b90871124d426461d04b88bd4b1de33c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8084/cd62e8e6b90871124d426461d04b88bd4b1de33c/xauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
273,
599,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.winExifReader.Close() | def readEXIF(self,evt): print "Selected ",self.ExifReaderSelected self.winExifReader.Close() picture=wx.FileDialog(self) picture.SetWildcard("*.jpg") picture.ShowModal() pathPicture=picture.GetPath() if pathPicture !="" or None: myPicture=GeoExif(pathPicture) def read(): self.consoleEntry.AppendText("\n\nSelected metad... | 91ff1b00eaedb2025746d6c2889431911edf54ca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11453/91ff1b00eaedb2025746d6c2889431911edf54ca/gpicsync-GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2294,
5501,
12,
2890,
16,
73,
11734,
4672,
1172,
315,
7416,
3104,
2890,
18,
424,
430,
2514,
7416,
225,
15406,
33,
27226,
18,
812,
6353,
12,
2890,
13,
15406,
18,
694,
12121,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2294,
5501,
12,
2890,
16,
73,
11734,
4672,
1172,
315,
7416,
3104,
2890,
18,
424,
430,
2514,
7416,
225,
15406,
33,
27226,
18,
812,
6353,
12,
2890,
13,
15406,
18,
694,
12121,
2932,
... | |
fileCount +=1 | def createDVDAuthorXMLNoMenus(screensize, numberofitems): """Creates the xml file for dvdauthor containing no menus.""" # creates a simple DVD with no menus that chains the videos one after the other # can contain an intro movie and each title can have a details page # displayed before each title write( "Creating DVD... | e80359024e03fa8904e3d3c802be0384d08b04e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/e80359024e03fa8904e3d3c802be0384d08b04e1/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
40,
21544,
3594,
4201,
2279,
29755,
12,
1017,
266,
773,
554,
16,
1300,
792,
3319,
4672,
3536,
2729,
326,
2025,
585,
364,
12494,
72,
4161,
4191,
1158,
21374,
12123,
225,
468,
3414,
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,
752,
40,
21544,
3594,
4201,
2279,
29755,
12,
1017,
266,
773,
554,
16,
1300,
792,
3319,
4672,
3536,
2729,
326,
2025,
585,
364,
12494,
72,
4161,
4191,
1158,
21374,
12123,
225,
468,
3414,
2... | |
self.subtitle_info.append((i, desc.contents.name)) | if i > 0: self.subtitle_info.append((i, desc.contents.name)) | def setup_subtitle_info(self): self.subtitle_info = list() try: desc = libvlc.libvlc_video_get_spu_description(self.media_player, self.exc.ref()) self.exc.check() count = libvlc.libvlc_video_get_spu_count(self.media_player, self.exc.ref()) self.exc.check() first_desc = desc for i in range(0, count): self.subtitle_info.... | 7256341c261e8d2e6285543b606b219ea2cc66c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/7256341c261e8d2e6285543b606b219ea2cc66c9/vlc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1717,
2649,
67,
1376,
12,
2890,
4672,
365,
18,
1717,
2649,
67,
1376,
273,
666,
1435,
775,
30,
3044,
273,
2561,
27362,
18,
2941,
27362,
67,
9115,
67,
588,
67,
1752,
89,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1717,
2649,
67,
1376,
12,
2890,
4672,
365,
18,
1717,
2649,
67,
1376,
273,
666,
1435,
775,
30,
3044,
273,
2561,
27362,
18,
2941,
27362,
67,
9115,
67,
588,
67,
1752,
89,
67,
... |
if widget.tag == "widget": | w_tag = widget.tag if w_tag == "widget": | def readSkin(screen, skin, names, desktop): if not isinstance(names, list): names = [names] name = "<embedded-in-'%s'>" % screen.__class__.__name__ # try all skins, first existing one have priority for n in names: myscreen, path = lookupScreen(n) if myscreen is not None: # use this name for debug output name = n brea... | 726a696a8d423d9f994767f2df01e135f07fca96 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/726a696a8d423d9f994767f2df01e135f07fca96/skin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
26827,
12,
9252,
16,
18705,
16,
1257,
16,
21304,
4672,
309,
486,
1549,
12,
1973,
16,
666,
4672,
1257,
273,
306,
1973,
65,
225,
508,
273,
3532,
20722,
17,
267,
6627,
9,
87,
28533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
26827,
12,
9252,
16,
18705,
16,
1257,
16,
21304,
4672,
309,
486,
1549,
12,
1973,
16,
666,
4672,
1257,
273,
306,
1973,
65,
225,
508,
273,
3532,
20722,
17,
267,
6627,
9,
87,
28533,
... |
def WalkPath(sourcePath): if os.path.isfile(sourcePath): filenames = list() filenames.append(os.path.basename(sourcePath)) yield os.path.dirname(sourcePath), list(), filenames else: for dirpath, dirnames, filenames in os.walk(sourcePath): yield dirpath, dirnames, filenames | if not os.path.exists(info.packagePath): os.mkdir(info.packagePath) | def WalkPath(sourcePath): if os.path.isfile(sourcePath): filenames = list() filenames.append(os.path.basename(sourcePath)) yield os.path.dirname(sourcePath), list(), filenames else: for dirpath, dirnames, filenames in os.walk(sourcePath): yield dirpath, dirnames, filenames | 7f3312f1643157a93dee00ef14734ec6d030fbd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3612/7f3312f1643157a93dee00ef14734ec6d030fbd5/packagezip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
1376,
18,
5610,
743,
4672,
1140,
18,
26686,
12,
1376,
18,
5610,
743,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
1376,
18,
5610,
743,
4672,
1140,
18,
26686,
12,
1376,
18,
5610,
743,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
r"$V(\varphi)=V_0 + \frac{1}{2}m_0^2\varphi^2$"] | r"$V(\varphi)=U_0 + \frac{1}{2}m_0^2\varphi^2$"] | def get_cmb_models_K1(): msq = c.make_wrapper_model(os.path.join(resdir,"cmb-msqphisq-5e-62-1.0245e-58-1e-61.hf5")) lph = c.make_wrapper_model(os.path.join(resdir, "cmb-lambdaphi4-5e-62-1.0245e-58-1e-61.hf5")) phi23 = c.make_wrapper_model(os.path.join(resdir, "cmb-phi2over3-5e-62-1.0245e-58-1e-61.hf5")) mv0 = c.make_wr... | 4816fd6322ff2cb40b350d8d1610851f8efb7c56 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/4816fd6322ff2cb40b350d8d1610851f8efb7c56/makeplots.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
71,
1627,
67,
7665,
67,
47,
21,
13332,
4086,
85,
273,
276,
18,
6540,
67,
8376,
67,
2284,
12,
538,
18,
803,
18,
5701,
12,
455,
1214,
10837,
71,
1627,
17,
959,
85,
844,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
1627,
67,
7665,
67,
47,
21,
13332,
4086,
85,
273,
276,
18,
6540,
67,
8376,
67,
2284,
12,
538,
18,
803,
18,
5701,
12,
455,
1214,
10837,
71,
1627,
17,
959,
85,
844,
291,... |
data_matrix=data_matrix, snps_table=QC_method_id2snps_table[self.QC_method_id]) | data_matrix=data_matrix, snps_table=QC_method_id2snps_table.get(self.QC_method_id)) | def run(self): """ 2008-04-25 return None if QC_method_id==0 2008-04-20 for plone to call it just to get row_id2NA_mismatch_rate """ #database connection and etc db = Stock_250kDatabase(username=self.user, password=self.passwd, hostname=self.hostname, database=self.dbname) session = db.session transaction = session.cre... | c4e9b8926628d2b435f50364e10cb8870b473c8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/c4e9b8926628d2b435f50364e10cb8870b473c8c/QC_250k.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
4044,
28,
17,
3028,
17,
2947,
327,
599,
309,
2238,
39,
67,
2039,
67,
350,
631,
20,
4044,
28,
17,
3028,
17,
3462,
364,
886,
476,
358,
745,
518,
2537,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
4044,
28,
17,
3028,
17,
2947,
327,
599,
309,
2238,
39,
67,
2039,
67,
350,
631,
20,
4044,
28,
17,
3028,
17,
3462,
364,
886,
476,
358,
745,
518,
2537,
358,
... |
self.gridlayout34.addItem(spacerItem54,1,1,1,1) | self.gridlayout30.addItem(spacerItem54,1,1,1,1) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
if not self.db.security.hasPermission('Email Access', author): raise Unauthorized, 'You are not permitted to access this tracker.' | else: raise Unauthorized, 'You are not permitted to access '\ 'this tracker.' | def handle_message(self, message): ''' message - a Message instance | d707f9bfdb46f60188adeb8fefab434f16a66f3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d707f9bfdb46f60188adeb8fefab434f16a66f3d/mailgw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2150,
12,
2890,
16,
883,
4672,
9163,
883,
300,
279,
2350,
791,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2150,
12,
2890,
16,
883,
4672,
9163,
883,
300,
279,
2350,
791,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
L1_over_omega = self.L_ratio() | L1_over_omega = E.L_ratio() | def sha_an(self, use_database=False): """ Returns the Birch and Swinnerton-Dyer conjectural order of Sha, unless the analytic rank is > 1, in which case this function returns 0. | c96468df560eb2a9187a40076ff99dda42b92dc0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c96468df560eb2a9187a40076ff99dda42b92dc0/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6056,
67,
304,
12,
2890,
16,
999,
67,
6231,
33,
8381,
4672,
3536,
2860,
326,
605,
481,
343,
471,
5434,
267,
82,
1051,
265,
17,
40,
93,
264,
356,
937,
3766,
1353,
434,
2638,
69,
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,
6056,
67,
304,
12,
2890,
16,
999,
67,
6231,
33,
8381,
4672,
3536,
2860,
326,
605,
481,
343,
471,
5434,
267,
82,
1051,
265,
17,
40,
93,
264,
356,
937,
3766,
1353,
434,
2638,
69,
16,
... |
sp = os.popen("aesub '$sp' 2>/dev/null", "r").read()[:-1] sp = string.split(sp, os.pathsep) | paths = os.popen("aesub '$sp' 2>/dev/null", "r").read()[:-1] sp.extend(string.split(paths, os.pathsep)) | def whereis(file): for dir in string.split(os.environ['PATH'], os.pathsep): f = os.path.join(dir, file) if os.path.isfile(f): try: st = os.stat(f) except OSError: continue if stat.S_IMODE(st[stat.ST_MODE]) & 0111: return f return None | ada9e8ad1bdf67b56031535c984c2c83ca90c6db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/ada9e8ad1bdf67b56031535c984c2c83ca90c6db/runtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1625,
291,
12,
768,
4672,
364,
1577,
316,
533,
18,
4939,
12,
538,
18,
28684,
3292,
4211,
17337,
1140,
18,
803,
10814,
4672,
284,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
585,
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,
1625,
291,
12,
768,
4672,
364,
1577,
316,
533,
18,
4939,
12,
538,
18,
28684,
3292,
4211,
17337,
1140,
18,
803,
10814,
4672,
284,
273,
1140,
18,
803,
18,
5701,
12,
1214,
16,
585,
13,
... |
warn_on_default=True): | warn_on_default=True, raw=False): | def GetOption(self, configType, section, option, default=None, type=None, warn_on_default=True): """ Get an option value for given config type and given general configuration section/option or return a default. If type is specified, return as type. Firstly the user configuration is checked, with a fallback to the defau... | 137bf72d36922d72ff92fe5d6f7999dd74b8fae9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/137bf72d36922d72ff92fe5d6f7999dd74b8fae9/configHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1895,
12,
2890,
16,
642,
559,
16,
2442,
16,
1456,
16,
805,
33,
7036,
16,
618,
33,
7036,
16,
1894,
67,
265,
67,
1886,
33,
5510,
16,
1831,
33,
8381,
4672,
3536,
968,
392,
1456,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1895,
12,
2890,
16,
642,
559,
16,
2442,
16,
1456,
16,
805,
33,
7036,
16,
618,
33,
7036,
16,
1894,
67,
265,
67,
1886,
33,
5510,
16,
1831,
33,
8381,
4672,
3536,
968,
392,
1456,
... |
var asyncObj | var asyncObj; var no_async = false; var userAgent = navigator.userAgent.toLowerCase(); | def javascript(): return r""" | a8e6cf1b3af7597141cf6f99b93554e90107fe7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/a8e6cf1b3af7597141cf6f99b93554e90107fe7c/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
327,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
327,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._b.remove(entries) | self._b.working_tree().remove(entries) | def _removePathnames(self, entries): """Remove a sequence of entries""" | 6f1fc57d5d3f49beec008597a6ed44f227e66687 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/6f1fc57d5d3f49beec008597a6ed44f227e66687/bzr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
743,
1973,
12,
2890,
16,
3222,
4672,
3536,
3288,
279,
3102,
434,
3222,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
743,
1973,
12,
2890,
16,
3222,
4672,
3536,
3288,
279,
3102,
434,
3222,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def TimedRequest(self, type_string, record_string, timeout=None): | def TimedRequest(self, type_string, record_string, timeout=None, timer=DEFAULT_TIMER): | def TimedRequest(self, type_string, record_string, timeout=None): """Make a DNS request, returning the reply and duration it took. | e6e6c3fada66a7e5bdd87bdf2cb59f6206791e4c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/e6e6c3fada66a7e5bdd87bdf2cb59f6206791e4c/nameserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23925,
691,
12,
2890,
16,
618,
67,
1080,
16,
1409,
67,
1080,
16,
2021,
33,
7036,
16,
5441,
33,
5280,
67,
56,
31582,
4672,
3536,
6464,
279,
8858,
590,
16,
5785,
326,
4332,
471,
3734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23925,
691,
12,
2890,
16,
618,
67,
1080,
16,
1409,
67,
1080,
16,
2021,
33,
7036,
16,
5441,
33,
5280,
67,
56,
31582,
4672,
3536,
6464,
279,
8858,
590,
16,
5785,
326,
4332,
471,
3734,
... |
if el.startswith('|'): el = '\\' + el | def rematch(el, l): try: # hack to deal with graphlog, which looks like bogus regexes if el.startswith('|'): el = '\\' + el # ensure that the regex matches to the end of the string return re.match(el + r'\Z', l) except re.error: # el is an invalid regex return False | c6c5c41d992b9e6e70280b69506b485338efe194 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/c6c5c41d992b9e6e70280b69506b485338efe194/run-tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
849,
505,
12,
292,
16,
328,
4672,
775,
30,
468,
11769,
358,
10490,
598,
2667,
1330,
16,
1492,
10192,
3007,
324,
28774,
28522,
7,
3387,
716,
326,
3936,
1885,
358,
326,
679,
434,
326,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
849,
505,
12,
292,
16,
328,
4672,
775,
30,
468,
11769,
358,
10490,
598,
2667,
1330,
16,
1492,
10192,
3007,
324,
28774,
28522,
7,
3387,
716,
326,
3936,
1885,
358,
326,
679,
434,
326,
53... | |
self.assertEquals(gio.File('foo.png').icon_new(), gio.File('foo.png').icon_new()) | self.assertEquals(gio.FileIcon(gio.File('foo.png')), gio.FileIcon(gio.File('foo.png'))) | def test_eq(self): self.assertEquals(gio.File('foo.png').icon_new(), gio.File('foo.png').icon_new()) self.assertEquals(gio.ThemedIcon('foo'), gio.ThemedIcon('foo')) | 38848aaa4ffecf6cccf576df496d41f4ce984579 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8659/38848aaa4ffecf6cccf576df496d41f4ce984579/test_gicon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11253,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
75,
1594,
18,
812,
5554,
12,
75,
1594,
18,
812,
2668,
11351,
18,
6446,
6134,
3631,
314,
1594,
18,
812,
5554,
12,
75,
1594,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11253,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
75,
1594,
18,
812,
5554,
12,
75,
1594,
18,
812,
2668,
11351,
18,
6446,
6134,
3631,
314,
1594,
18,
812,
5554,
12,
75,
1594,
... |
fetch = [] | fetch = {} | def findincoming(self, remote, base=None, heads=None): m = self.changelog.nodemap search = [] fetch = [] seen = {} seenbranch = {} if base == None: base = {} | 4c84f5b46af788d6ffe65b1684f37753635888a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/4c84f5b46af788d6ffe65b1684f37753635888a0/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
31033,
12,
2890,
16,
2632,
16,
1026,
33,
7036,
16,
22742,
33,
7036,
4672,
312,
273,
365,
18,
24083,
12970,
18,
2159,
1458,
1623,
273,
5378,
2158,
273,
2618,
5881,
273,
2618,
5881,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
31033,
12,
2890,
16,
2632,
16,
1026,
33,
7036,
16,
22742,
33,
7036,
4672,
312,
273,
365,
18,
24083,
12970,
18,
2159,
1458,
1623,
273,
5378,
2158,
273,
2618,
5881,
273,
2618,
5881,
... |
if gp and gp.op in ('COPY', 'DELETE', 'RENAME', 'ADD'): | if gp and (gp.op in ('COPY', 'DELETE', 'RENAME', 'ADD') or gp.mode): | def iterhunks(ui, fp, sourcefile=None): """Read a patch and yield the following events: - ("file", afile, bfile, firsthunk): select a new target file. - ("hunk", hunk): a new hunk is ready to be applied, follows a "file" event. - ("git", gitchanges): current diff is in git format, gitchanges maps filenames to gitpatch ... | 129a1fb327659ea0ed3bcb35f6db965e33976533 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/129a1fb327659ea0ed3bcb35f6db965e33976533/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
76,
1683,
87,
12,
4881,
16,
4253,
16,
1084,
768,
33,
7036,
4672,
3536,
1994,
279,
4729,
471,
2824,
326,
3751,
2641,
30,
300,
7566,
768,
3113,
279,
768,
16,
324,
768,
16,
1122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
76,
1683,
87,
12,
4881,
16,
4253,
16,
1084,
768,
33,
7036,
4672,
3536,
1994,
279,
4729,
471,
2824,
326,
3751,
2641,
30,
300,
7566,
768,
3113,
279,
768,
16,
324,
768,
16,
1122,
... |
in setRollover(). | in doRollover(). | def emit(self, record): """ Emit a record. | 6451a5e038a86cd88ded99e25d7c49870adb33ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6451a5e038a86cd88ded99e25d7c49870adb33ed/handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
12,
2890,
16,
1409,
4672,
3536,
16008,
279,
1409,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
12,
2890,
16,
1409,
4672,
3536,
16008,
279,
1409,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if not (cliOptions.stow and cliOptions.opt_packages and cliOptions.config_policies and cliOptions.vappio_py and | if not (cliOptions.stow or cliOptions.opt_packages or cliOptions.config_policies or cliOptions.vappio_py or | def cliMerger(cliOptions, _args): ## # If they are all false, set them all to true because they did not specify any if not (cliOptions.stow and cliOptions.opt_packages and cliOptions.config_policies and cliOptions.vappio_py and cliOptions.vappio_scripts): cliOptions.stow = True cliOptions.opt_packages = True cliOptions... | d2dd0365a73892f768cdeec863cdccdc30839d49 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5741/d2dd0365a73892f768cdeec863cdccdc30839d49/updateAllDirs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
8478,
693,
12,
4857,
1320,
16,
389,
1968,
4672,
7541,
468,
971,
2898,
854,
777,
629,
16,
444,
2182,
777,
358,
638,
2724,
2898,
5061,
486,
4800,
1281,
309,
486,
261,
4857,
1320,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
8478,
693,
12,
4857,
1320,
16,
389,
1968,
4672,
7541,
468,
971,
2898,
854,
777,
629,
16,
444,
2182,
777,
358,
638,
2724,
2898,
5061,
486,
4800,
1281,
309,
486,
261,
4857,
1320,
1... |
self.main.exe_cmd("vlc dvd:// --sout ' | self.main.exe_cmd("vlc dvd:// --sout ' | def menu_event_one(self, action): start1=time() (model, iter) = self.main.tabla.get_selection().get_selected() if iter == None: print_debug( "menu_event_one() not selected thin client !!!" ) return self.main.selected_host=model.get_value(iter,COL_HOST) self.main.selected_ip=model.get_value(iter, COL_IP) if not self.do... | 53a3eea66bbc168c70ea325ef8439de22d83ed8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/53a3eea66bbc168c70ea325ef8439de22d83ed8b/TcosActions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3824,
67,
2575,
67,
476,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
261,
2284,
16,
1400,
13,
273,
365,
18,
5254,
18,
7032,
11821,
18,
588,
67,
10705,
7675,
588,
67,
8109,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3824,
67,
2575,
67,
476,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
261,
2284,
16,
1400,
13,
273,
365,
18,
5254,
18,
7032,
11821,
18,
588,
67,
10705,
7675,
588,
67,
8109,
1435... |
full_name = namespaces.pyste + 'UniqueInt<%d>' % EnumExporter.TYPE_COUNT EnumExporter.TYPE_COUNT += 1 | full_name = namespaces.pyste + 'UniqueInt<%d>' % unique_number | def Export(self, codeunit, exported_names): if not self.info.exclude: indent = self.INDENT in_indent = self.INDENT*2 rename = self.info.rename or self.enum.name full_name = self.enum.FullName() unnamed_enum = False if rename.startswith('$_') or rename.startswith('._'): unnamed_enum = True self.ExportUniqueInt(codeunit)... | 15e555c7f1916bcf3db9fba0076b807737d7f377 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9978/15e555c7f1916bcf3db9fba0076b807737d7f377/EnumExporter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11054,
12,
2890,
16,
981,
4873,
16,
11518,
67,
1973,
4672,
309,
486,
365,
18,
1376,
18,
10157,
30,
3504,
273,
365,
18,
2356,
2222,
316,
67,
9355,
273,
365,
18,
2356,
2222,
14,
22,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11054,
12,
2890,
16,
981,
4873,
16,
11518,
67,
1973,
4672,
309,
486,
365,
18,
1376,
18,
10157,
30,
3504,
273,
365,
18,
2356,
2222,
316,
67,
9355,
273,
365,
18,
2356,
2222,
14,
22,
64... |
for arg in domain: if arg[0] == 'period_id' and arg[2] == 'current_period': current_period = period_obj.find(cr, uid)[0] domain.append(['period_id','in',[current_period]]) todel.append(arg) break elif arg[0] == 'period_id' and arg[2] == 'current_year': current_year = fiscalyear_obj.find(cr, uid) ids = fiscalyear_obj.re... | if context.get('period', False) == 'current_period': current_period = period_obj.find(cr, uid)[0] domain.append(['period_id','in',[current_period]]) elif context.get('year', False) == 'current_year': current_year = fiscalyear_obj.find(cr, uid) ids = fiscalyear_obj.read(cr, uid, [current_year], ['period_ids'])[0]['perio... | def read_group(self, cr, uid, domain, *args, **kwargs): todel=[] fiscalyear_obj = self.pool.get('account.fiscalyear') period_obj = self.pool.get('account.period') for arg in domain: if arg[0] == 'period_id' and arg[2] == 'current_period': current_period = period_obj.find(cr, uid)[0] domain.append(['period_id','in',[cur... | 4363de12dda2bcdd8aec1a2b2b8f7f774568ca01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4363de12dda2bcdd8aec1a2b2b8f7f774568ca01/account_entries_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
380,
1968,
16,
2826,
4333,
4672,
358,
3771,
33,
8526,
15324,
771,
6874,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
380,
1968,
16,
2826,
4333,
4672,
358,
3771,
33,
8526,
15324,
771,
6874,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
... |
size = op.value | value = op.value | def parse_ERASE(self, context, operands): size = 0 if operands == None: size = 1 op = Number("1") else: # TODO: Change to use Expression. if '-' in operands[0]: op = Number(operands[0].strip()) if op.isValid(): size = op.value else: op = Number(operands[0]) if op.isValid(): size = op.value + 1 if context.currentRecord.... | 547fd2bc1e4463728858ab42cd4e9cf927abdd7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/547fd2bc1e4463728858ab42cd4e9cf927abdd7a/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
654,
4429,
12,
2890,
16,
819,
16,
14883,
4672,
963,
273,
374,
309,
14883,
422,
599,
30,
963,
273,
404,
1061,
273,
3588,
2932,
21,
7923,
469,
30,
468,
2660,
30,
7576,
358,
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,
1109,
67,
654,
4429,
12,
2890,
16,
819,
16,
14883,
4672,
963,
273,
374,
309,
14883,
422,
599,
30,
963,
273,
404,
1061,
273,
3588,
2932,
21,
7923,
469,
30,
468,
2660,
30,
7576,
358,
9... |
cmdStr += "wc -l" | cmdStr += "wc -l 2> /dev/null" | def existsListeningNetworkSocket(ip, port, tcp): """ <Purpose> Determines if there exists a network socket with the specified ip and port which is the LISTEN state. <Arguments> ip: The IP address of the listening socket port: The port of the listening socket tcp: Is the socket of TCP type, else UDP <Returns> True or ... | d3a623d6ca18cf961f74641194a4f4ade675a78c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/d3a623d6ca18cf961f74641194a4f4ade675a78c/nix_common_api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
31594,
3906,
4534,
12,
625,
16,
1756,
16,
9658,
4672,
3536,
411,
10262,
4150,
34,
30778,
309,
1915,
1704,
279,
2483,
2987,
598,
326,
1269,
2359,
471,
1756,
1492,
353,
326,
15130,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1704,
31594,
3906,
4534,
12,
625,
16,
1756,
16,
9658,
4672,
3536,
411,
10262,
4150,
34,
30778,
309,
1915,
1704,
279,
2483,
2987,
598,
326,
1269,
2359,
471,
1756,
1492,
353,
326,
15130,
1... |
tag=vetoString[1:]) | tag=vetoString[1:], ifos=ifos, cat=vetoCat) | def injZeroSlidePlots(dag, plotDir, config, logPath, injectionSuffix, zerolagSuffix, slideSuffix, cacheFile, doDagCategories, parentDags = None, vetoParentDags = None, vetoCat = 3): """ set up plots for injections, zero lag and time slides dag = the dag plotDir = directory in to set up plots config = config ... | fc357fee84a913444239d3b3d8829e5f036f7cd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/fc357fee84a913444239d3b3d8829e5f036f7cd4/inspiralutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
78,
7170,
21068,
29311,
12,
30204,
16,
3207,
1621,
16,
642,
16,
613,
743,
16,
10380,
5791,
16,
24910,
355,
346,
5791,
16,
12701,
5791,
16,
18748,
16,
741,
40,
346,
10487,
16,
982,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
78,
7170,
21068,
29311,
12,
30204,
16,
3207,
1621,
16,
642,
16,
613,
743,
16,
10380,
5791,
16,
24910,
355,
346,
5791,
16,
12701,
5791,
16,
18748,
16,
741,
40,
346,
10487,
16,
982,... |
return | return | def cdata(self, data): if not data: self.data = None self.results = None self.setStatTable() return # have to handle this appropriately if self.testdata and data.domain <> self.testdata.domain: self.testdata = None self.results = None self.setStatTable() self.data = orange.Filter_hasClassValue(data) self.classindex = 0... | 4a5d0b6408fb255b8754ad2849a498c83b9e6cc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/4a5d0b6408fb255b8754ad2849a498c83b9e6cc3/OWTestLearners.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20712,
12,
2890,
16,
501,
4672,
309,
486,
501,
30,
365,
18,
892,
273,
599,
365,
18,
4717,
273,
599,
365,
18,
542,
5000,
1388,
1435,
327,
225,
468,
1240,
358,
1640,
333,
21419,
309,
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,
20712,
12,
2890,
16,
501,
4672,
309,
486,
501,
30,
365,
18,
892,
273,
599,
365,
18,
4717,
273,
599,
365,
18,
542,
5000,
1388,
1435,
327,
225,
468,
1240,
358,
1640,
333,
21419,
309,
3... |
return self.tk.call(self._w, 'getmode', entrypath) | return self.tk.call(self._w, 'getmode', entrypath) | def getmode(self, entrypath): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3188,
12,
2890,
16,
1241,
803,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3188,
12,
2890,
16,
1241,
803,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.__sig = selection.connect('changed', self.__changed) self.connect_object('destroy', self.__destroy, model) self.connect('popup-menu', self.__popup_menu, library) | self.__sig = selection.connect('changed', self.__selection_changed) s = self.connect('popup-menu', self.__popup_menu, library) self.connect_object('destroy', self.disconnect, s) | def __init__(self, mytag, next, library): super(PanedBrowser.Pane, self).__init__() self.set_fixed_height_mode(True) | 65c353a2f58dd189cd3918d5836dbf8ca05e5f5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/65c353a2f58dd189cd3918d5836dbf8ca05e5f5f/paned.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3399,
2692,
16,
1024,
16,
5313,
4672,
2240,
12,
4069,
329,
9132,
18,
8485,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
542,
67,
12429,
67,
4210,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3399,
2692,
16,
1024,
16,
5313,
4672,
2240,
12,
4069,
329,
9132,
18,
8485,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
542,
67,
12429,
67,
4210,
67,
... |
if not WakeOnLan.WakeOnLan("%s"%mac): | if not WakeOnLan("%s"%mac): | def wol_all(self, *args): if self.main.config.GetVar("scan_network_method") != "static": msg=(_("Wake On Lan only works with static list.\n\nEnable scan method \"static\" in Preferences\nand (wake on lan) support in bios of clients." )) shared.info_msg ( msg ) return msg=_( _("Do you want boot all clients?" )) if shar... | 5df28d130fb730bac7b6ec68e4c44e143b006e97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13520/5df28d130fb730bac7b6ec68e4c44e143b006e97/wakeonlan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
355,
67,
454,
12,
2890,
16,
380,
1968,
4672,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
9871,
67,
5185,
67,
2039,
7923,
480,
315,
3845,
6877,
1234,
33,
24899,
2932,
59,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
355,
67,
454,
12,
2890,
16,
380,
1968,
4672,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
9871,
67,
5185,
67,
2039,
7923,
480,
315,
3845,
6877,
1234,
33,
24899,
2932,
59,
... |
return _("You seem to be a guest user. You have to %(x_url_open)slogin%(x_url_close)s first.") % ('<a href="../youraccount/login?ln=' + ln +'">', '<a/>') | return _("You seem to be a guest user. You have to %(x_url_open)slogin%(x_url_close)s first.") % \ {'x_url_open': '<a href="../youraccount/login?ln=' + ln + '">', 'x_url_close': '<a/>'} | def tmpl_account_adminactivities(self, ln, weburl, uid, guest, roles, activities): """ Displays the admin activities block for this user | a69853177d09ad68b8c1df1067c418693e2d7791 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/a69853177d09ad68b8c1df1067c418693e2d7791/websession_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4631,
67,
3666,
24745,
12,
2890,
16,
7211,
16,
3311,
718,
16,
4555,
16,
13051,
16,
4900,
16,
17259,
4672,
3536,
9311,
87,
326,
3981,
17259,
1203,
364,
333,
729,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10720,
67,
4631,
67,
3666,
24745,
12,
2890,
16,
7211,
16,
3311,
718,
16,
4555,
16,
13051,
16,
4900,
16,
17259,
4672,
3536,
9311,
87,
326,
3981,
17259,
1203,
364,
333,
729,
2,
-100,
-10... |
"xlogid": rp.xlogid, "xrecoff": rp.xrecoff, "wal_name": rp.wal_name, | "xlogid": ctl.xlogid, "xrecoff": ctl.xrecoff, "wal_name": ctl.wal_name, | def slave_backup(self): """ Create backup on slave host. | 5c30a274a6945a32dc53e7725ba74053bda74e5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/5c30a274a6945a32dc53e7725ba74053bda74e5e/walmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11735,
67,
9572,
12,
2890,
4672,
3536,
1788,
5114,
603,
11735,
1479,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11735,
67,
9572,
12,
2890,
4672,
3536,
1788,
5114,
603,
11735,
1479,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print 'Warning: number of controls %d is greater than number of self.affectedected individuals %d.' \ | print 'Warning: number of controls %d is greater than number of affectedected individuals %d.' \ | def prepareSample(self, input_pop): '''Find out indexes all affected and unaffected individuales. ''' BaseSampler.prepareSample(self, input_pop, isSequence(self.cases)) if self.pop is None: # this will produce self.pop and self.cases and self.controls self.prepareSample(input_pop) # if not isSequence(self.cases): # fin... | 30b748ce630fe250610a749c82ee5a53aa4652d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/30b748ce630fe250610a749c82ee5a53aa4652d3/sampling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
8504,
12,
2890,
16,
810,
67,
5120,
4672,
9163,
3125,
596,
5596,
777,
9844,
471,
640,
20119,
7327,
281,
18,
9163,
3360,
26243,
18,
9366,
8504,
12,
2890,
16,
810,
67,
5120,
16,
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,
2911,
8504,
12,
2890,
16,
810,
67,
5120,
4672,
9163,
3125,
596,
5596,
777,
9844,
471,
640,
20119,
7327,
281,
18,
9163,
3360,
26243,
18,
9366,
8504,
12,
2890,
16,
810,
67,
5120,
16,
353... |
security.declareProtected(permissions.View, 'filterWfStateIfNotOwner') | security.declareProtected(permissions.View, 'filterWfStateIfNotOwnerOfReference') | def criteriaByIndexId(self, indexId): # do not change the order of BIBLIOTOPIC_SORTFIELDS + BIBLIOTOPIC_CRITERIAFIELDS | ede980208b9d5ad4ed35b67cfa950c58f8ba9aaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9787/ede980208b9d5ad4ed35b67cfa950c58f8ba9aaf/bibliotopic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3582,
21268,
548,
12,
2890,
16,
770,
548,
4672,
468,
741,
486,
2549,
326,
1353,
434,
605,
13450,
2053,
27019,
20385,
67,
23988,
12683,
397,
605,
13450,
2053,
27019,
20385,
67,
5093,
11844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3582,
21268,
548,
12,
2890,
16,
770,
548,
4672,
468,
741,
486,
2549,
326,
1353,
434,
605,
13450,
2053,
27019,
20385,
67,
23988,
12683,
397,
605,
13450,
2053,
27019,
20385,
67,
5093,
11844,... |
p_email = CFG_EXTERNAL_AUTHENTICATION[login_method][0].auth_user(p_email, p_pw, req) | p_email = CFG_EXTERNAL_AUTHENTICATION[login_method][0].auth_user(p_email, p_pw, req) or CFG_EXTERNAL_AUTHENTICATION[login_method][0].auth_user(p_un, p_pw, req) | def loginUser(req, p_un, p_pw, login_method): """It is a first simple version for the authentication of user. It returns the id of the user, for checking afterwards if the login is correct """ # p_un passed may be an email or a nickname: p_email = get_email_from_username(p_un) # go on with the old stuff based on p_em... | 49031e8cb1930fbdf3cc384365eda238de8d18fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/49031e8cb1930fbdf3cc384365eda238de8d18fb/webuser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
1299,
12,
3658,
16,
293,
67,
318,
16,
293,
67,
14921,
16,
3925,
67,
2039,
4672,
3536,
7193,
353,
279,
1122,
4143,
1177,
364,
326,
5107,
434,
729,
18,
2597,
1135,
326,
612,
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,
3925,
1299,
12,
3658,
16,
293,
67,
318,
16,
293,
67,
14921,
16,
3925,
67,
2039,
4672,
3536,
7193,
353,
279,
1122,
4143,
1177,
364,
326,
5107,
434,
729,
18,
2597,
1135,
326,
612,
434,
... |
s = [x for x in s.split('\n') if len(x.split()) > 0] | s = [x for x in s.split('\n') if len(x.split()) > 0 and \ x.lstrip()[0] != ' | def do_POST(self): global current_log, fulltext_log ctype, pdict = cgi.parse_header(self.headers.getheader('content-type')) length = int(self.headers.getheader('content-length')) if ctype == 'multipart/form-data': self.body = cgi.parse_multipart(self.rfile, pdict) elif ctype == 'application/x-www-form-urlencoded': qs =... | 9579a1b288c8a709d76500548af6cb8d30378bad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/9579a1b288c8a709d76500548af6cb8d30378bad/server1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3798,
12,
2890,
4672,
2552,
783,
67,
1330,
16,
1983,
955,
67,
1330,
11920,
16,
293,
1576,
273,
276,
10052,
18,
2670,
67,
3374,
12,
2890,
18,
2485,
18,
75,
546,
18105,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3798,
12,
2890,
4672,
2552,
783,
67,
1330,
16,
1983,
955,
67,
1330,
11920,
16,
293,
1576,
273,
276,
10052,
18,
2670,
67,
3374,
12,
2890,
18,
2485,
18,
75,
546,
18105,
2668,
... |
if os.environ.get('RUN_MAIN') == 'true': | if os.environ.get('WERKZEUG_RUN_MAIN') == 'true': | def run_with_reloader(main_func, extra_watch): """ Run the given function in an independent python interpreter. """ if os.environ.get('RUN_MAIN') == 'true': thread.start_new_thread(main_func, ()) try: reloader_loop(extra_watch) except KeyboardInterrupt: return try: sys.exit(restart_with_reloader()) except KeyboardInter... | f9e2fad30d34a6b0737539434c03c07c2bc658d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14437/f9e2fad30d34a6b0737539434c03c07c2bc658d4/serving.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
1918,
67,
266,
6714,
12,
5254,
67,
644,
16,
2870,
67,
7585,
4672,
3536,
1939,
326,
864,
445,
316,
392,
14807,
5790,
16048,
18,
3536,
309,
1140,
18,
28684,
18,
588,
2668,
1883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
1918,
67,
266,
6714,
12,
5254,
67,
644,
16,
2870,
67,
7585,
4672,
3536,
1939,
326,
864,
445,
316,
392,
14807,
5790,
16048,
18,
3536,
309,
1140,
18,
28684,
18,
588,
2668,
1883... |
self.render('templates/info.htm', {'message': 'You need to accept the HIT'}) | self.render('templates/info.htm', {'message': 'Please accept the HIT'}) | def get(self): worker_id = self.request.GET.get('workerId', None) | 2f60e67f9c6cfda903bb9a6fc58b671522d2d808 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13960/2f60e67f9c6cfda903bb9a6fc58b671522d2d808/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
4322,
67,
350,
273,
365,
18,
2293,
18,
3264,
18,
588,
2668,
10124,
548,
2187,
599,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
4322,
67,
350,
273,
365,
18,
2293,
18,
3264,
18,
588,
2668,
10124,
548,
2187,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.