rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pv = self.packageVersionApi.create(p.packageid, info['epoch'], | pv = self.packageVersionApi.create(p["packageid"], info['epoch'], | def _add_packages_from_dir(self, dir, repo): dirList = os.listdir(dir) packages = repo['packages'] package_count = 0 for fname in dirList: if (fname.endswith(".rpm")): try: info = getRPMInformation(dir + fname) #p = self.packageApi.package(info['name']) p = self.package(repo["id"], info['name']) if not p: p = self.crea... | b63b9f5dccf9939a1050996b70144329176bccfc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/b63b9f5dccf9939a1050996b70144329176bccfc/repo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
10308,
67,
2080,
67,
1214,
12,
2890,
16,
1577,
16,
3538,
4672,
1577,
682,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
5907,
273,
3538,
3292,
10308,
3546,
2181,
67,
1883,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
10308,
67,
2080,
67,
1214,
12,
2890,
16,
1577,
16,
3538,
4672,
1577,
682,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
5907,
273,
3538,
3292,
10308,
3546,
2181,
67,
1883,
27... |
"paragraph", "subparagraph", "description", "opcodedesc", "classdesc", "funcdesc", "methoddesc", "excdesc", "datadesc", "funcdescni", "methoddescni", "excdescni", "datadescni", | "paragraph", "subparagraph", "excdesc", "datadesc", "excdescni", "datadescni", ) RECURSE_INTO_PARA_CONTAINERS = ( "chapter", "section", "subsection", "subsubsection", "paragraph", "subparagraph", "abstract", "memberdesc", "memberdescni", "datadesc", "datadescni", | def move_elements_by_name(doc, source, dest, name, sep=None): nodes = [] for child in source.childNodes: if child.nodeType == xml.dom.core.ELEMENT and child.tagName == name: nodes.append(child) for node in nodes: source.removeChild(node) dest.appendChild(node) if sep: dest.appendChild(doc.createTextNode(sep)) | 6fd3b456df1736e218c2900c3479631306a4f4d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6fd3b456df1736e218c2900c3479631306a4f4d7/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
6274,
67,
1637,
67,
529,
12,
2434,
16,
1084,
16,
1570,
16,
508,
16,
5478,
33,
7036,
4672,
2199,
273,
5378,
364,
1151,
316,
1084,
18,
3624,
3205,
30,
309,
1151,
18,
2159,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
6274,
67,
1637,
67,
529,
12,
2434,
16,
1084,
16,
1570,
16,
508,
16,
5478,
33,
7036,
4672,
2199,
273,
5378,
364,
1151,
316,
1084,
18,
3624,
3205,
30,
309,
1151,
18,
2159,
55... |
this = apply(_quickfix.new_MDReqRejReason, args) | this = _quickfix.new_MDReqRejReason(*args) | def __init__(self, *args): this = apply(_quickfix.new_MDReqRejReason, 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,
6188,
6113,
426,
78,
8385,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
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,
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,
6188,
6113,
426,
78,
8385,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1... |
j,k = 1,0 | j, k = 1, 0 | def validedChanges(*args): """Check for a least one selected kana portion (display of a message if not the case), catch parameters, then close the window. | 64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1244,
13898,
7173,
30857,
1968,
4672,
3536,
1564,
364,
279,
4520,
1245,
3170,
417,
13848,
14769,
261,
5417,
434,
279,
883,
309,
486,
326,
648,
3631,
1044,
1472,
16,
1508,
1746,
326,
2742,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1244,
13898,
7173,
30857,
1968,
4672,
3536,
1564,
364,
279,
4520,
1245,
3170,
417,
13848,
14769,
261,
5417,
434,
279,
883,
309,
486,
326,
648,
3631,
1044,
1472,
16,
1508,
1746,
326,
2742,
... |
1/0 | 1./0 | def f(p): 1/0 | 33715f480fc70c2d6211595f77c5fb72a0d256c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/33715f480fc70c2d6211595f77c5fb72a0d256c5/test_profilehooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
84,
4672,
404,
19,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
84,
4672,
404,
19,
20,
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,
-... |
print data | sys.stdout.write(data) session_id = 1 | def h(self,web,data): web.header('Content-Type', 'application/x-dmap-tagged') web.header('DAAP-Server', 'Simple') web.header('Expires', '-1') web.header('Cache-Control', 'no-cache') web.header('Accept-Ranges', 'bytes') web.header('Content-Language', 'en_us') if (hasattr(data, 'next')): try: web.header("Content-Length",... | 7f1700be343da028c435d27dd80f8aeb85c12223 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8691/7f1700be343da028c435d27dd80f8aeb85c12223/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
12,
2890,
16,
4875,
16,
892,
4672,
3311,
18,
3374,
2668,
1350,
17,
559,
2187,
296,
3685,
19,
92,
17,
72,
1458,
17,
23023,
6134,
3311,
18,
3374,
2668,
9793,
2203,
17,
2081,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
12,
2890,
16,
4875,
16,
892,
4672,
3311,
18,
3374,
2668,
1350,
17,
559,
2187,
296,
3685,
19,
92,
17,
72,
1458,
17,
23023,
6134,
3311,
18,
3374,
2668,
9793,
2203,
17,
2081,
2187,
... |
points:: | points, though which one creates more points is heavily dependent upon the function being plotted. :: | def adaptive_refinement(f, p1, p2, adaptive_tolerance=0.01, adaptive_recursion=5, level=0): r""" The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: - ``f`` - a function of one variable - ``p1, p2`` - two points to refine between - `... | aa6916134b0b3764422bd53e781315007a519805 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/aa6916134b0b3764422bd53e781315007a519805/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5855,
688,
67,
266,
926,
820,
12,
74,
16,
293,
21,
16,
293,
22,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
1801,
33,
20,
4672,
436,
8395,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5855,
688,
67,
266,
926,
820,
12,
74,
16,
293,
21,
16,
293,
22,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
1801,
33,
20,
4672,
436,
8395,
1... |
self.config['g_series'] = cfile['file_seriesname']+'.%(ext)s' | self.config['g_series'] = cfile['file_seriesname']+self.graphic_suffix[rel_type]+'.%(ext)s' | def _getSecondarySourceGraphics(self, cfile, graphic_type, watched=False): '''Download from secondary source such as movieposter.com return None return full qualified path and filename of downloaded graphic ''' if not len(self.config['myth_secondary_sources']): return None | 147cd3ef0bfc1beba805d496a3aeed4923b921a1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/147cd3ef0bfc1beba805d496a3aeed4923b921a1/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
14893,
1830,
17558,
12,
2890,
16,
276,
768,
16,
19548,
67,
723,
16,
23135,
33,
8381,
4672,
9163,
7109,
628,
9946,
1084,
4123,
487,
7344,
522,
881,
29811,
18,
832,
327,
599,
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,
588,
14893,
1830,
17558,
12,
2890,
16,
276,
768,
16,
19548,
67,
723,
16,
23135,
33,
8381,
4672,
9163,
7109,
628,
9946,
1084,
4123,
487,
7344,
522,
881,
29811,
18,
832,
327,
599,
3... |
result.append(newSpec) | def readSpecFile(filename): """ _readSpecFile_ Tool for extracting multiple RequestSpecs from a file Returns a list of spec instances found """ result = [] # ignore failed parsed requests ignore = 0 node = loadIMProvFile(filename) node = loadIMProvFile(filename) specQ = IMProvQuery("RequestSpec") specNodes = specQ(n... | 3869ae41eb2148ee2f5f65c38a278dfa90c684e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/3869ae41eb2148ee2f5f65c38a278dfa90c684e0/RequestSpec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1990,
812,
12,
3459,
4672,
3536,
389,
896,
1990,
812,
67,
225,
13288,
364,
27117,
3229,
1567,
15999,
628,
279,
585,
225,
2860,
279,
666,
434,
857,
3884,
1392,
3536,
563,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1990,
812,
12,
3459,
4672,
3536,
389,
896,
1990,
812,
67,
225,
13288,
364,
27117,
3229,
1567,
15999,
628,
279,
585,
225,
2860,
279,
666,
434,
857,
3884,
1392,
3536,
563,
273,
5378,
... | |
PyErr_Format(PyExc_TypeError, "%.400s constructor takes either 0 or " "%d positional argument%s", Py_TYPE(self)->tp_name, | PyErr_Format(PyExc_TypeError, "%.400s constructor takes %s" "%" PY_FORMAT_SIZE_T "d positional argument%s", Py_TYPE(self)->tp_name, numfields == 0 ? "" : "either 0 or ", | def visitModule(self, mod): self.emit(""" | 549a2cbf7e049de06b3d8b45dc419577921ed25b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/549a2cbf7e049de06b3d8b45dc419577921ed25b/asdl_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
3120,
12,
2890,
16,
681,
4672,
365,
18,
18356,
2932,
3660,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
3120,
12,
2890,
16,
681,
4672,
365,
18,
18356,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
except ValueError: print "Cannot extract TLS group number." | except ValueError: print "Cannot extract TLS group number:\n ", record, file_name return [] | def extract_tls_parameters(remark_3_records): | c7414c7bd0f10baaa7d702b1454c3d4335e68afe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/c7414c7bd0f10baaa7d702b1454c3d4335e68afe/remark_3_interpretation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
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,
... | [
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,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
(r"(\s|.)", Name.Builtin), | (r"(\s|.)", Name.Builtin) | def word_callback(lexer, match): word = match.group() | cfe64ea65eacd18eae0cdcbaec6bc03b39d3ea28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2885/cfe64ea65eacd18eae0cdcbaec6bc03b39d3ea28/other.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2076,
67,
3394,
12,
31731,
16,
845,
4672,
2076,
273,
845,
18,
1655,
1435,
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,
... | [
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,
2076,
67,
3394,
12,
31731,
16,
845,
4672,
2076,
273,
845,
18,
1655,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.annotation.fromDom(i) | self.annotation.fromDom(contents[indx]) elif (component == 'attribute'): if contents[indx].hasattr('name'): content.append(AttributeDeclaration()) elif contents[indx].hasattr('ref'): content.append(AttributeReference()) else: raise SchemaError, 'Unknown attribute type' content[-1].fromDom(contents[indx]) elif (componen... | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 66c6baf2288f065b45db940b63cfc5dba1aa9fb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/66c6baf2288f065b45db940b63cfc5dba1aa9fb0/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tree = oe.mailbox.dbxTree(dbxStream, address, entries) | tree = oe_mailbox.dbxTree(dbxStream, address, entries) | def _convertOutlookExpressToMbox(self, content): """Check if the uploaded mailbox file is an Outlook Express DBX one. | b939df774e8b09ad51d2d92670490e6b1622f831 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/b939df774e8b09ad51d2d92670490e6b1622f831/UserInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6283,
1182,
7330,
424,
1028,
774,
49,
2147,
12,
2890,
16,
913,
4672,
3536,
1564,
309,
326,
9140,
14187,
585,
353,
392,
2976,
7330,
18482,
2383,
60,
1245,
18,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6283,
1182,
7330,
424,
1028,
774,
49,
2147,
12,
2890,
16,
913,
4672,
3536,
1564,
309,
326,
9140,
14187,
585,
353,
392,
2976,
7330,
18482,
2383,
60,
1245,
18,
2,
-100,
-100,
-100,
... |
mydir = (os.path.split(sys.argv[0]))[0] | try: mydir = os.path.join(os.environ['APPDATA']) except KeyError: mydir,x = os.path.split(sys.argv[0]) | def __init__(self, frame): self.frame = frame self.log("Loading plugin handler") self.myUsername = self.frame.np.config.sections["server"]["login"] self.plugins = [] if WIN32: mydir = (os.path.split(sys.argv[0]))[0] self.plugindir = os.path.join(mydir, "plugins") else: self.plugindir = os.path.join(os.path.expanduser("... | 24801fbfef00af6047bd97682bef614051766b3a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/24801fbfef00af6047bd97682bef614051766b3a/pluginsystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2623,
4672,
365,
18,
3789,
273,
2623,
365,
18,
1330,
2932,
10515,
1909,
1838,
7923,
365,
18,
4811,
8575,
273,
365,
18,
3789,
18,
6782,
18,
1425,
18,
1165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2623,
4672,
365,
18,
3789,
273,
2623,
365,
18,
1330,
2932,
10515,
1909,
1838,
7923,
365,
18,
4811,
8575,
273,
365,
18,
3789,
18,
6782,
18,
1425,
18,
1165... |
return s[:-4] + '...' return '...' + s[4:] | return s[:length-4] + ' ...' return '... ' + s[len(s)-length+4:] | def trunc(s, length, end=1): """Truncate a string s to length length, by cutting off the last (length-4) characters and replacing them with ' ...' With end=0, truncate from the front instead. """ if not s: return '' if len(s) > length: if end: return s[:-4] + '...' return '...' + s[4:] return s | d8165d152b789bb2f73e04c9c2311882ca86746f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2493/d8165d152b789bb2f73e04c9c2311882ca86746f/pbpscript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6956,
12,
87,
16,
769,
16,
679,
33,
21,
4672,
3536,
25871,
279,
533,
272,
358,
769,
769,
16,
635,
6391,
1787,
3397,
326,
1142,
261,
2469,
17,
24,
13,
3949,
471,
13993,
2182,
598,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6956,
12,
87,
16,
769,
16,
679,
33,
21,
4672,
3536,
25871,
279,
533,
272,
358,
769,
769,
16,
635,
6391,
1787,
3397,
326,
1142,
261,
2469,
17,
24,
13,
3949,
471,
13993,
2182,
598,
296... |
dryfunc(options.dry, getCommandOut, "find \"%s\" -name .svn -exec rm -rf \"{}\"" % repospathofversionedfile) | dryfunc(options.dry, getPipedCommandOut, "find \"%s\" -name .svn -exec rm -rf \"{}\" \\;" % repospathofversionedfile) | def unversionthis(filetoversion): try: if accesscontrollist.hasacl(filetoversion) and not options.ignoreacl: err = "filetoversion has a 'deny' in ACL permissions (ls -lde %s: %s) \n \ This program is currently not clever enough to check if you have permission to move/delete this file. \n \ To avoid this problem remove ... | 4c733124dc4bf6d8fbe589d37fdcd75266656273 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10713/4c733124dc4bf6d8fbe589d37fdcd75266656273/unversionthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
1589,
2211,
12,
7540,
278,
1527,
722,
4672,
775,
30,
309,
2006,
7098,
1098,
18,
5332,
10150,
12,
7540,
278,
1527,
722,
13,
471,
486,
702,
18,
6185,
10150,
30,
393,
273,
315,
7540,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
1589,
2211,
12,
7540,
278,
1527,
722,
4672,
775,
30,
309,
2006,
7098,
1098,
18,
5332,
10150,
12,
7540,
278,
1527,
722,
13,
471,
486,
702,
18,
6185,
10150,
30,
393,
273,
315,
7540,... |
audio.cancel() audio.speakMessage(str(self.dom.readyState)) | if winUser.isDescendantWindow(self.NVDAObject.windowHandle,api.getFocusObject().windowHandle): audio.cancel() audio.speakMessage(str(self.dom.readyState)) | def isDocumentComplete(self): documentComplete=True if self.dom.readyState!="complete": audio.cancel() audio.speakMessage(str(self.dom.readyState)) documentComplete=False for frameNum in range(self.dom.frames.length): try: if self.dom.frames.item(frameNum).document.readyState!="complete": audio.cancel() audio.speakMess... | 2ccbd29a498b50e15a00cf571a2d239c140eb639 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/2ccbd29a498b50e15a00cf571a2d239c140eb639/MSHTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
2519,
6322,
12,
2890,
4672,
1668,
6322,
33,
5510,
309,
365,
18,
9859,
18,
1672,
1119,
5,
1546,
6226,
6877,
309,
5657,
1299,
18,
291,
29014,
3829,
12,
2890,
18,
11679,
9793,
921,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2519,
6322,
12,
2890,
4672,
1668,
6322,
33,
5510,
309,
365,
18,
9859,
18,
1672,
1119,
5,
1546,
6226,
6877,
309,
5657,
1299,
18,
291,
29014,
3829,
12,
2890,
18,
11679,
9793,
921,
1... |
docs.sort(lambda x,y: _cmp_name(x, y)) | docs.sort(lambda x,y,s=self: s._cmp_name(x, y)) | def _sort(self, docs, sort_order=None): """ Sort and filter a list of C{ObjDoc}s. In particular, if C{sort_order} is not C{None}, then sort according to its contents; otherwise, sort using L{_cmp_name}. If L{_show_private} is true, then filter out all private objects; otherwise, perform no filtering. | 62ff4e473663c51d0a945a451e36120f11d9450a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/62ff4e473663c51d0a945a451e36120f11d9450a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3804,
12,
2890,
16,
3270,
16,
1524,
67,
1019,
33,
7036,
4672,
3536,
5928,
471,
1034,
279,
666,
434,
385,
95,
2675,
1759,
97,
87,
18,
225,
657,
6826,
16,
309,
385,
95,
3804,
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,
389,
3804,
12,
2890,
16,
3270,
16,
1524,
67,
1019,
33,
7036,
4672,
3536,
5928,
471,
1034,
279,
666,
434,
385,
95,
2675,
1759,
97,
87,
18,
225,
657,
6826,
16,
309,
385,
95,
3804,
67,
... |
if not [x for x in groups if x['name'] in ('cvsextras', 'cvsadmin')] and person['id'] > MAXSYSTEMUID: return dict(status=False, message='%s is not in a group that' ' is allowed to own a package' % owner) | try: self._acl_can_be_held_by_user('owner', (person, groups)) except AclNotAllowedError, e return dict(status=False, message=str(e)) | def add_package(self, package, owner, summary): '''Add a new package to the database. ''' # Check that the tg.identity is allowed to set an owner if not identity.in_any_group('cvsadmin'): return dict(status=False, message='User must be in cvsadmin') | 89e61b70031507809123a3070a9c56e059cbbf35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/89e61b70031507809123a3070a9c56e059cbbf35/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5610,
12,
2890,
16,
2181,
16,
3410,
16,
4916,
4672,
9163,
986,
279,
394,
2181,
358,
326,
2063,
18,
9163,
468,
2073,
716,
326,
18289,
18,
10781,
353,
2935,
358,
444,
392,
3410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5610,
12,
2890,
16,
2181,
16,
3410,
16,
4916,
4672,
9163,
986,
279,
394,
2181,
358,
326,
2063,
18,
9163,
468,
2073,
716,
326,
18289,
18,
10781,
353,
2935,
358,
444,
392,
3410,... |
sage: HK.coleman_integral(w*x^3,S,P) 2*5^2 + 4*5^3 + 5^6 + 2*5^7 + O(5^8) sage: negP = HK(0,-3) sage: HK.coleman_integral(w, P,negP, algorithm='teichmuller') 2*5^2 + 3*5^3 + 2*5^6 + 4*5^8 + O(5^9) sage: HK.coleman_integral(w, P, negP) 2*5^2 + 3*5^3 + 2*5^6 + 4*5^8 + O(5^9) AUTHORS: | sage: HK.coleman_integral(w*x^3,S,P) 2*5^2 + 4*5^3 + 5^6 + 2*5^7 + O(5^8) sage: negP = HK(0,-3) sage: HK.coleman_integral(w, P,negP, algorithm='teichmuller') 2*5^2 + 3*5^3 + 2*5^6 + 4*5^8 + O(5^9) sage: HK.coleman_integral(w, P, negP) 2*5^2 + 3*5^3 + 2*5^6 + 4*5^8 + O(5^9) AUTHORS: | def coleman_integral(self, w, P, Q, algorithm = 'None'): """ INPUT: - w differential (if one of P,Q is Weierstrass, w must be odd) - P point on self - Q point on self - algorithm (optional) = None (uses Frobenius) or teichmuller (uses Teichmuller points) | 5067c9f3282b0d03ba4df2e4d4149da37b9c1331 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5067c9f3282b0d03ba4df2e4d4149da37b9c1331/hyperelliptic_padic_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
790,
4728,
67,
14970,
23811,
12,
2890,
16,
341,
16,
453,
16,
2238,
16,
4886,
273,
296,
7036,
11,
4672,
3536,
12943,
30,
300,
341,
15221,
2001,
261,
430,
1245,
434,
453,
16,
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,
276,
790,
4728,
67,
14970,
23811,
12,
2890,
16,
341,
16,
453,
16,
2238,
16,
4886,
273,
296,
7036,
11,
4672,
3536,
12943,
30,
300,
341,
15221,
2001,
261,
430,
1245,
434,
453,
16,
53,
... |
c.Run() | def call_blockdev_snapshot(self, node, cf_bdev): """Request a snapshot of the given block device. | ecfe94918845683627f97b646872fde40247176b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ecfe94918845683627f97b646872fde40247176b/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
2629,
5206,
67,
11171,
12,
2890,
16,
756,
16,
6080,
67,
70,
5206,
4672,
3536,
691,
279,
4439,
434,
326,
864,
1203,
2346,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
2629,
5206,
67,
11171,
12,
2890,
16,
756,
16,
6080,
67,
70,
5206,
4672,
3536,
691,
279,
4439,
434,
326,
864,
1203,
2346,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
actions = [self.ACTION_ANIMATE_AND_OPERATE, self.ACTION_ANIMATE_ONLY] | actions = (self.ACTION_ANIMATE_AND_OPERATE, self.ACTION_ANIMATE_ONLY) if self.is_locked: actions = (self.ACTION_ANIMATE_ONLY, ) if what_to_do in actions: self.toggle(new_state) if self.animate_id is None: self.animate_id = gobject.timeout_add(10, self.animate) actions = (self.ACTION_ANIMATE_AND_OPERATE, self.ACTION_OPE... | def action(self, event=None): what_to_do = self.ACTION_ANIMATE_AND_OPERATE new_state = None if event is not None and event.content is not None: what_to_do = event.content if isinstance(event.content, dict): what_to_do = event.content['action'] new_state = event.content['state'] actions = [self.ACTION_ANIMATE_AND_OPERAT... | ccb593c8b7e8f82b3dc9caeb447999b88b75f2e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5280/ccb593c8b7e8f82b3dc9caeb447999b88b75f2e7/icon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
871,
33,
7036,
4672,
4121,
67,
869,
67,
2896,
273,
365,
18,
12249,
67,
1258,
3445,
1777,
67,
4307,
67,
13950,
1777,
394,
67,
2019,
273,
599,
309,
871,
353,
486,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
871,
33,
7036,
4672,
4121,
67,
869,
67,
2896,
273,
365,
18,
12249,
67,
1258,
3445,
1777,
67,
4307,
67,
13950,
1777,
394,
67,
2019,
273,
599,
309,
871,
353,
486,
5... |
if search_hidden: | if search_hidden is not None: | def upload(self, filename=None, imageData=None, title=None, desc=None, tags=None, is_public=None, is_family=None, is_friend=None, safety=None, search_hidden=None): # Sanity check the arguments if filename is None and imageData is None: raise ValueError("Need to pass either filename or imageData") if filename and imageD... | f1eb4fc29e06f5b6b54d4fc3fbd2f857a5d191dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11023/f1eb4fc29e06f5b6b54d4fc3fbd2f857a5d191dc/flickrest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
12,
2890,
16,
1544,
33,
7036,
16,
26229,
33,
7036,
16,
2077,
33,
7036,
16,
3044,
33,
7036,
16,
2342,
33,
7036,
16,
353,
67,
482,
33,
7036,
16,
353,
67,
9309,
33,
7036,
16,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
12,
2890,
16,
1544,
33,
7036,
16,
26229,
33,
7036,
16,
2077,
33,
7036,
16,
3044,
33,
7036,
16,
2342,
33,
7036,
16,
353,
67,
482,
33,
7036,
16,
353,
67,
9309,
33,
7036,
16,
35... |
def get_next_song_index(self): | def get_next_random_song_filename(self): | def get_next_song_index(self): """Choose a song at random. Be sure it is not already in the playlist and it does not match the 'exclude' regexp. """ | 05a2689316661b4838403bc54160a8a4b5da8f7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6855/05a2689316661b4838403bc54160a8a4b5da8f7c/mpdrandomd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
9188,
67,
816,
75,
67,
3459,
12,
2890,
4672,
3536,
24529,
279,
17180,
622,
2744,
18,
4823,
3071,
518,
353,
486,
1818,
316,
326,
16428,
471,
518,
1552,
486,
845,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
9188,
67,
816,
75,
67,
3459,
12,
2890,
4672,
3536,
24529,
279,
17180,
622,
2744,
18,
4823,
3071,
518,
353,
486,
1818,
316,
326,
16428,
471,
518,
1552,
486,
845,
326,... |
else: other_invitation_ids = [] for att2 in self.browse(cr, uid, other_invitation_ids): att_infos.append(((att2.user_id and att2.user_id.name) or \ (att2.partner_id and att2.partner_id.name) or \ att2.email) + ' - Status: ' + att2.state.title()) body_vals = {'name': res_obj.name, 'start_date': res_obj.date, 'end_date'... | for att2 in self.browse(cr, uid, other_invitation_ids): att_infos.append(((att2.user_id and att2.user_id.name) or \ (att2.partner_id and att2.partner_id.name) or \ att2.email) + ' - Status: ' + att2.state.title()) body_vals = {'name': res_obj.name, 'start_date': res_obj.date, 'end_date': res_obj.date_deadline or False... | def _send_mail(self, cr, uid, ids, mail_to, email_from=tools.config.get('email_from', False), context=None): """ Send mail for event invitation to event attendees. @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of attendee’s IDs. @param emai... | 568351b86acf37bfade00da7c8f1ba5065f03fc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/568351b86acf37bfade00da7c8f1ba5065f03fc2/base_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
4408,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4791,
67,
869,
16,
2699,
67,
2080,
33,
6642,
18,
1425,
18,
588,
2668,
3652,
67,
2080,
2187,
1083,
3631,
819,
33,
7036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4661,
67,
4408,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4791,
67,
869,
16,
2699,
67,
2080,
33,
6642,
18,
1425,
18,
588,
2668,
3652,
67,
2080,
2187,
1083,
3631,
819,
33,
7036... |
dayling savings and -08:00 otherwise. Zone is coincides with what | dayling savings and -08:00 otherwise. Zone coincides with what | def gettzd(timeinseconds = None): """Return w3's timezone identification string. Expresed as [+/-]hh:mm. For instance, PDT is -07:00 during dayling savings and -08:00 otherwise. Zone is coincides with what localtime(), etc., use. If no argument given, use the current time. """ if timeinseconds is None: timeinsecon... | 6248edd386076d761a1e48c22f98e74aa807c93e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/783/6248edd386076d761a1e48c22f98e74aa807c93e/Time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12994,
72,
12,
957,
267,
7572,
273,
599,
4672,
3536,
990,
341,
23,
1807,
6371,
24739,
533,
18,
225,
1312,
1484,
730,
487,
306,
31298,
17,
65,
21622,
30,
7020,
18,
225,
2457,
791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12994,
72,
12,
957,
267,
7572,
273,
599,
4672,
3536,
990,
341,
23,
1807,
6371,
24739,
533,
18,
225,
1312,
1484,
730,
487,
306,
31298,
17,
65,
21622,
30,
7020,
18,
225,
2457,
791,
... |
self.format_url(url), s, msg) | self.format_url(url), s, msg) | def report_errors(self): if not self.bad: self.message("\nNo errors") return self.message("\nError Report:") sources = self.errors.keys() sources.sort() for source in sources: triples = self.errors[source] self.message("") if len(triples) > 1: self.message("%d Errors in %s", len(triples), source) else: self.message("Er... | 5445e352b244db461527b895255328eaa1a7dc6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5445e352b244db461527b895255328eaa1a7dc6f/wcnew.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2890,
4672,
309,
486,
365,
18,
8759,
30,
365,
18,
2150,
31458,
82,
2279,
1334,
7923,
327,
365,
18,
2150,
31458,
82,
668,
8706,
2773,
13,
5550,
273,
365,
18,
4324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
67,
4324,
12,
2890,
4672,
309,
486,
365,
18,
8759,
30,
365,
18,
2150,
31458,
82,
2279,
1334,
7923,
327,
365,
18,
2150,
31458,
82,
668,
8706,
2773,
13,
5550,
273,
365,
18,
4324,
... |
elif val[1] == "network-route": | elif sub_val[0] == "network-route": | def getXendNetConfig(): # Find out what environment we're in: bridge, nat, or route xconfig = os.getenv("XEND_CONFIG") if not xconfig: xconfig = "/etc/xen/xend-config.sxp" try: configfile = open(xconfig, 'r') except: return "bridge" S = configfile.read() pin = Parser() pin.input(S) pin.input_eof() val = pin.get_val()... | 30d1d39adad997219d9266653a1f7265cb591f26 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/30d1d39adad997219d9266653a1f7265cb591f26/NetConfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6538,
409,
7308,
809,
13332,
468,
4163,
596,
4121,
3330,
732,
4565,
316,
30,
10105,
16,
10535,
16,
578,
1946,
619,
1425,
273,
1140,
18,
588,
3074,
2932,
60,
4415,
67,
7203,
7923,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6538,
409,
7308,
809,
13332,
468,
4163,
596,
4121,
3330,
732,
4565,
316,
30,
10105,
16,
10535,
16,
578,
1946,
619,
1425,
273,
1140,
18,
588,
3074,
2932,
60,
4415,
67,
7203,
7923,
309,
... |
['sage/gsl/interpolation.pyx'], libraries = ['gsl', BLAS, BLAS2], define_macros=[('GSL_DISABLE_DEPRECATED','1')]) | ['sage/gsl/interpolation.pyx'], libraries = ['gsl', BLAS, BLAS2], define_macros=[('GSL_DISABLE_DEPRECATED','1')]) | 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 | 12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d/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,... |
pkglist ]) | ] + pkglist) | def remove_packages(pkglist): proc = subprocess.call([ 'emerge', '--unmerge', pkglist ]) return proc == os.EX_OK | c51ba60c8826cc86748400edf41a8edb17be64f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10378/c51ba60c8826cc86748400edf41a8edb17be64f5/tinderbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
10308,
12,
10657,
1098,
4672,
5418,
273,
6652,
18,
1991,
3816,
296,
351,
1583,
2187,
3534,
318,
2702,
2187,
308,
397,
3475,
1098,
13,
327,
5418,
422,
1140,
18,
2294,
67,
3141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
67,
10308,
12,
10657,
1098,
4672,
5418,
273,
6652,
18,
1991,
3816,
296,
351,
1583,
2187,
3534,
318,
2702,
2187,
308,
397,
3475,
1098,
13,
327,
5418,
422,
1140,
18,
2294,
67,
3141,
... |
wikipedia.output(newPhotoDescription) if not skip: bot = upload.UploadRobot(photoUrl, description=newPhotoDescription, useFilename=newFilename, keepFilename=True, verifyDescription=False) bot.upload_image(debug=False) return 1 return 0 | wikipedia.output(newPhotoDescription) if not skip: bot = upload.UploadRobot(photoUrl, description=newPhotoDescription, useFilename=newFilename, keepFilename=True, verifyDescription=False) bot.upload_image(debug=False) return 1 return 0 | def processPhoto(flickr=None, photo_id=u'', flickrreview=False, reviewer=u'', addCategory=u'', removeCategories=False, autonomous=False): ''' Process a single Flickr photo ''' if photo_id: print photo_id (photoInfo, photoSizes) = flickrripper.getPhoto(flickr, photo_id) if flickrripper.isAllowedLicense(photoInfo): #Get... | bc27f27a5b0fbb3bb90a31410f477020f5d574c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7426/bc27f27a5b0fbb3bb90a31410f477020f5d574c1/flickrripper_wlm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
19934,
12,
2242,
16254,
33,
7036,
16,
10701,
67,
350,
33,
89,
11,
2187,
1183,
16254,
16041,
33,
8381,
16,
10725,
264,
33,
89,
11,
2187,
527,
4457,
33,
89,
11,
2187,
1206,
10487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
19934,
12,
2242,
16254,
33,
7036,
16,
10701,
67,
350,
33,
89,
11,
2187,
1183,
16254,
16041,
33,
8381,
16,
10725,
264,
33,
89,
11,
2187,
527,
4457,
33,
89,
11,
2187,
1206,
10487,
... |
"""http://www.mol.fi/paikat/Job.do?jobID=*""" | """http://www.mol.fi/paikat/Job.do?*""" | def _handle_mol(url): """http://www.mol.fi/paikat/Job.do?jobID=*""" bs = getUrl(url).getBS() if not bs: return title = bs.first("div", {'class':'otsikko'}).string return title | 17d9c8810c54ee0df18e3226edf801bb7fd4bd0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14781/17d9c8810c54ee0df18e3226edf801bb7fd4bd0a/module_urltitle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
21260,
12,
718,
4672,
3536,
2505,
2207,
5591,
18,
21260,
18,
22056,
19,
8774,
1766,
270,
19,
2278,
18,
2896,
35,
14,
8395,
7081,
273,
8928,
12,
718,
2934,
588,
12692,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
21260,
12,
718,
4672,
3536,
2505,
2207,
5591,
18,
21260,
18,
22056,
19,
8774,
1766,
270,
19,
2278,
18,
2896,
35,
14,
8395,
7081,
273,
8928,
12,
718,
2934,
588,
12692,
14... |
str += I+'<TH CLASS="navbar"> Class' +\ ' </TH>\n' | str += I+'<th class="navbar"> Class' str += ' </th>\n' | def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA... | 1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
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,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... |
AbelianGroup( 4, [0, 2, 3, 5]) | Abelian Group isomorphic to Z x Z/2Z x Z/3Z x Z/5Z | def __init__(self, ambient, gens, names="f"): """ EXAMPLES: sage: F = AbelianGroup(5,[30,64,729],names = list("abcde")) sage: a,b,c,d,e = F.gens() sage: F.subgroup([a^3,b]) AbelianGroup( 2, [0, 0]) sage: F.subgroup([c]) AbelianGroup( 3, [2, 3, 5]) sage: F.subgroup([a,c]) AbelianGroup( 4, [0, 2, 3, 5]) sage: F.subgroup... | 474e9cd21e5543c10385340d5e9747ad7d0f1773 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/474e9cd21e5543c10385340d5e9747ad7d0f1773/abelian_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
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,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63... |
utils.system("start tcsd", ignore_status=True) raise error.TestError("expecting %s = %s, receiving %s = %s" % | raise error.TestError("expecting %s = %s, observing %s = %s" % | def expect(d, key, value): if (d[key] != value): utils.system("start tcsd", ignore_status=True) raise error.TestError("expecting %s = %s, receiving %s = %s" % (key, value, key, d[key])) | 7bfabc008cf3f580a5d1adfd6ef7bb7142a706d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7177/7bfabc008cf3f580a5d1adfd6ef7bb7142a706d0/hardware_TPMCheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
72,
16,
498,
16,
460,
4672,
309,
261,
72,
63,
856,
65,
480,
460,
4672,
1002,
555,
18,
4709,
668,
2932,
12339,
310,
738,
87,
273,
738,
87,
16,
8681,
310,
738,
87,
273,
738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
72,
16,
498,
16,
460,
4672,
309,
261,
72,
63,
856,
65,
480,
460,
4672,
1002,
555,
18,
4709,
668,
2932,
12339,
310,
738,
87,
273,
738,
87,
16,
8681,
310,
738,
87,
273,
738... |
self.sb.error.SetDimensions(rect.x+2, rect.y+2, | self.sb.error.SetDimensions(rect.x+2, rect.y+2, | def interaction(self, frame, info=None): self.frame = frame code = frame.f_code file = code.co_filename base = os.path.basename(file) lineno = frame.f_lineno | 872f754eafee36b7b9b20954604570707e5cd36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/872f754eafee36b7b9b20954604570707e5cd36c/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13581,
12,
2890,
16,
2623,
16,
1123,
33,
7036,
4672,
365,
18,
3789,
273,
2623,
981,
273,
2623,
18,
74,
67,
710,
585,
273,
981,
18,
2894,
67,
3459,
1026,
273,
1140,
18,
803,
18,
13909... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13581,
12,
2890,
16,
2623,
16,
1123,
33,
7036,
4672,
365,
18,
3789,
273,
2623,
981,
273,
2623,
18,
74,
67,
710,
585,
273,
981,
18,
2894,
67,
3459,
1026,
273,
1140,
18,
803,
18,
13909... |
Abelian group on 2 generators (x, y) with invariants [2, 3] | AbelianGroup( 2, [2, 3]) | def kernel(self): """ Only works for finite groups. | 1ca18bca290f184bea6cb10d93bc2595c7e0e5fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/1ca18bca290f184bea6cb10d93bc2595c7e0e5fd/abelian_group_morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5536,
12,
2890,
4672,
3536,
5098,
6330,
364,
25922,
3252,
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,
5536,
12,
2890,
4672,
3536,
5098,
6330,
364,
25922,
3252,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print 'putting file %s as %s.%s' % (file_path, bucket_name, key.name) | print 'putting file %s as %s.%s' % (file_path, bucket_name, key.name) | def put_file(self, bucket_name, file_path): self.log(method='put_file', bucket_name=bucket_name, file_path=file_path) successful = False num_tries = 0 while not successful and num_tries < self.RetryCount: try: num_tries += 1 bucket = self.get_bucket(bucket_name) if self.preserve_file_name: key_name = os.path.split(file... | 48b9f392bcbc4a7ea6c31710206d637d024b727a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/48b9f392bcbc4a7ea6c31710206d637d024b727a/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
768,
12,
2890,
16,
2783,
67,
529,
16,
585,
67,
803,
4672,
365,
18,
1330,
12,
2039,
2218,
458,
67,
768,
2187,
2783,
67,
529,
33,
7242,
67,
529,
16,
585,
67,
803,
33,
768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
768,
12,
2890,
16,
2783,
67,
529,
16,
585,
67,
803,
4672,
365,
18,
1330,
12,
2039,
2218,
458,
67,
768,
2187,
2783,
67,
529,
33,
7242,
67,
529,
16,
585,
67,
803,
33,
768,
... |
res.append((imgName, grades[0][0], grades[0][1], grades[0][2], grades[0][3], grades[0][4], grades[0][5], grades[0][6])) | res.append((imgName, grades[0][0], grades[0][2], grades[0][3], grades[0][4], grades[0][1], grades[0][5], grades[0][6])) | def get_grades(res_output_dir = None, idList = None): """ Returns all images grades in the database. Only the latest grade, when available, is returned for each image. Both user-defined and previous release grades are checked for grading information and comment. @return a list of tuples [(image name, grade, comment), ... | 06bbf02326e39180c5d0c43ecf29eafadd9d283a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/06bbf02326e39180c5d0c43ecf29eafadd9d283a/grading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13088,
12,
455,
67,
2844,
67,
1214,
273,
599,
16,
29174,
273,
599,
4672,
3536,
2860,
777,
4602,
24396,
316,
326,
2063,
18,
5098,
326,
4891,
7324,
16,
1347,
2319,
16,
353,
2106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13088,
12,
455,
67,
2844,
67,
1214,
273,
599,
16,
29174,
273,
599,
4672,
3536,
2860,
777,
4602,
24396,
316,
326,
2063,
18,
5098,
326,
4891,
7324,
16,
1347,
2319,
16,
353,
2106... |
print >> output, "data pointer: %s%s" % (hex(obj.ctypes._as_parameter_), extra) | print >> output, "data pointer: %s%s" % (hex(obj.ctypes._as_parameter_.value), extra) | def info(obj, output=sys.stdout, numpy=0): if numpy: bp = lambda x: x else: bp = lambda x: int(x) cls = getattr(obj, '__class__', type(obj)) if numpy: nm = getattr(cls, '__name__', cls) else: nm = cls print >> output, "class: ", nm print >> output, "shape: ", obj.shape strides = obj.strides print >> output, "strides: "... | 4c49c1891382a2320ab8c3dcfce0e80487906cff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/4c49c1891382a2320ab8c3dcfce0e80487906cff/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
12,
2603,
16,
876,
33,
9499,
18,
10283,
16,
3972,
33,
20,
4672,
309,
3972,
30,
9107,
273,
3195,
619,
30,
619,
469,
30,
9107,
273,
3195,
619,
30,
509,
12,
92,
13,
2028,
273,
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,
1123,
12,
2603,
16,
876,
33,
9499,
18,
10283,
16,
3972,
33,
20,
4672,
309,
3972,
30,
9107,
273,
3195,
619,
30,
619,
469,
30,
9107,
273,
3195,
619,
30,
509,
12,
92,
13,
2028,
273,
3... |
def test_variableschema(self): dummy = self._dummy dummy.update(id='dummy1') self.assertEqual(dummy.getId(),'dummy1') | def test_variableschema(self): self.folder.dummy = Dummy(oid='dummy') dummy = self.folder.dummy dummy.setTitle('dummy1') self.assertEqual(dummy.Title(),'dummy1') | def test_variableschema(self): | ad7091df760c0a7489c2dac6e9fbaa5eb5f08655 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ad7091df760c0a7489c2dac6e9fbaa5eb5f08655/test_varschema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7528,
1243,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7528,
1243,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
enable_plugin(env, plugin_name) | _enable_plugin(env, plugin_name) | def _load_py_files(env, search_path, auto_enable=None): for path in search_path: plugin_files = glob(os.path.join(path, '*.py')) for plugin_file in plugin_files: try: plugin_name = os.path.basename(plugin_file[:-3]) env.log.debug('Loading file plugin %s from %s' % \ (plugin_name, plugin_file)) module = imp.load_source(... | 20976725cc7a73b4a447b0ca585c1ea5c4f8fe86 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/20976725cc7a73b4a447b0ca585c1ea5c4f8fe86/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
2074,
67,
2354,
12,
3074,
16,
1623,
67,
803,
16,
3656,
67,
7589,
33,
7036,
4672,
364,
589,
316,
1623,
67,
803,
30,
1909,
67,
2354,
273,
4715,
12,
538,
18,
803,
18,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
2074,
67,
2354,
12,
3074,
16,
1623,
67,
803,
16,
3656,
67,
7589,
33,
7036,
4672,
364,
589,
316,
1623,
67,
803,
30,
1909,
67,
2354,
273,
4715,
12,
538,
18,
803,
18,
57... |
if not prop._compile_started: | if prop.parent is self and not prop._compile_started: | def _post_configure_properties(self): """Call the ``init()`` method on all ``MapperProperties`` attached to this mapper. | 7af9d1c04b431a98c1e19dd234a00fb202283c0a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/7af9d1c04b431a98c1e19dd234a00fb202283c0a/mapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2767,
67,
14895,
67,
4738,
12,
2890,
4672,
3536,
1477,
326,
12176,
2738,
1435,
10335,
707,
603,
777,
12176,
4597,
2297,
10335,
7495,
358,
333,
5815,
18,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
2767,
67,
14895,
67,
4738,
12,
2890,
4672,
3536,
1477,
326,
12176,
2738,
1435,
10335,
707,
603,
777,
12176,
4597,
2297,
10335,
7495,
358,
333,
5815,
18,
2,
-100,
-100,
-100,
-100,
-... |
-p, --port=PORT: port, a number, defualt = 0 or a device name | -p, --port=PORT: port, a number, default = 0 or a device name | def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (... | b786cd543c0d1d1d0891ed88728d89d9950c58cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/b786cd543c0d1d1d0891ed88728d89d9950c58cb/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... |
device_rp = rbdir.append("aux") if device_rp.lstat(): local_edd = 1 else: local_edd = 0 | try: device_rp = rbdir.append("aux") if device_rp.lstat(): local_edd = 1 else: local_edd = 0 except (OSError): local_edd = 1 | def set_must_escape_dos_devices(self, rbdir): """If local edd or src edd, then must escape """ if getattr(self, "src_fsa", None) is not None: src_edd = self.src_fsa.escape_dos_devices else: src_edd = 0 device_rp = rbdir.append("aux") if device_rp.lstat(): local_edd = 1 else: local_edd = 0 SetConnections.UpdateGlobal('m... | b8a8f0407b1b2a63b2a9edd2543147cf27293aa2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/783/b8a8f0407b1b2a63b2a9edd2543147cf27293aa2/fs_abilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11926,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
1675,
72,
578,
1705,
1675,
72,
16,
1508,
1297,
4114,
3536,
309,
3869,
12,
2890,
16,
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,
444,
67,
11926,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
1675,
72,
578,
1705,
1675,
72,
16,
1508,
1297,
4114,
3536,
309,
3869,
12,
2890,
16,
31... |
IEnumStr.__init__(self, ["RGB","RGBA"]) | IEnumStr.__init__(self, ["RGB", "RGBA"]) | def __init__ (self) : IEnumStr.__init__(self, ["RGB","RGBA"]) | e6b2e44036d3a8b58fb73fd3b51f4165a59478b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4914/e6b2e44036d3a8b58fb73fd3b51f4165a59478b1/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
13,
294,
467,
3572,
1585,
16186,
2738,
972,
12,
2890,
16,
8247,
11343,
15937,
23263,
6,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
13,
294,
467,
3572,
1585,
16186,
2738,
972,
12,
2890,
16,
8247,
11343,
15937,
23263,
6,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.SetTitle(self.title_base) | self.SetTitle(APPLICATION_NAME) | def __init__(self): wx.Frame.__init__(self, None, size=config.get_window_size(), style=wx.DEFAULT_FRAME_STYLE) self._set_initial_values_to_member_variables() self._create_gui() self.Maximize(config.get_window_maximized()) self.SetTitle(self.title_base) self.mnu_view_sidebar.Check(config.get_show_sidebar()) self._enable... | f9ba1251fba4c6e1fd79f0257c2701642e518762 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/f9ba1251fba4c6e1fd79f0257c2701642e518762/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
963,
33,
1425,
18,
588,
67,
5668,
67,
1467,
9334,
2154,
33,
27226,
18,
5280,
67,
15072,
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,
1001,
2738,
972,
12,
2890,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
963,
33,
1425,
18,
588,
67,
5668,
67,
1467,
9334,
2154,
33,
27226,
18,
5280,
67,
15072,
67,
... |
sys.stderr.write("Removing rows with too many NAs...") | sys.stderr.write("Removing rows with NA rate >= %s ..."%(row_cutoff)) | def remove_rows_with_too_many_NAs(cls, data_matrix, row_cutoff, debug=0): """ 2008-05-08 become classmethod """ sys.stderr.write("Removing rows with too many NAs...") no_of_rows, no_of_cols = data_matrix.shape rows_with_too_many_NAs_set = Set() strain_index2no_of_NAs = {} for i in range(no_of_rows): no_of_NAs = 0.0 for... | 9c37de4822440ddecb9d7de412265d707bdb9dbc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/9c37de4822440ddecb9d7de412265d707bdb9dbc/FilterStrainSNPMatrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
3870,
67,
1918,
67,
16431,
67,
9353,
67,
50,
1463,
12,
6429,
16,
501,
67,
5667,
16,
1027,
67,
16131,
16,
1198,
33,
20,
4672,
3536,
4044,
28,
17,
6260,
17,
6840,
12561,
667,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
3870,
67,
1918,
67,
16431,
67,
9353,
67,
50,
1463,
12,
6429,
16,
501,
67,
5667,
16,
1027,
67,
16131,
16,
1198,
33,
20,
4672,
3536,
4044,
28,
17,
6260,
17,
6840,
12561,
667,... |
self.__lock.acquire() | self._available.acquire() | def shutdown(self): self.__lock.acquire() try: for con in self.__cnxs: con.cnx.close() finally: self.__lock.release() | 4439746dd49f45fdd6d37cb8534b75a39afcdad0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/4439746dd49f45fdd6d37cb8534b75a39afcdad0/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
365,
6315,
5699,
18,
1077,
1039,
1435,
775,
30,
364,
356,
316,
365,
16186,
10305,
13713,
30,
356,
18,
10305,
92,
18,
4412,
1435,
3095,
30,
365,
16186,
739,
18,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
365,
6315,
5699,
18,
1077,
1039,
1435,
775,
30,
364,
356,
316,
365,
16186,
10305,
13713,
30,
356,
18,
10305,
92,
18,
4412,
1435,
3095,
30,
365,
16186,
739,
18,
93... |
if prec is infinity: | if prec is infinity and self.degree() > 0: | def __invert__(self): """ Inverse of the power series, which we assume to have nonzero constant term so that the inverse is again a power series. | 40f3d9145118e324dcadda3d7dfd8365723ad073 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/40f3d9145118e324dcadda3d7dfd8365723ad073/power_series_ring_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
3536,
657,
2476,
434,
326,
7212,
4166,
16,
1492,
732,
6750,
358,
1240,
16966,
5381,
2481,
1427,
716,
326,
8322,
353,
3382,
279,
7212,
4166,
18,
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,
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,
267,
1097,
972,
12,
2890,
4672,
3536,
657,
2476,
434,
326,
7212,
4166,
16,
1492,
732,
6750,
358,
1240,
16966,
5381,
2481,
1427,
716,
326,
8322,
353,
3382,
279,
7212,
4166,
18,
2,
... |
pass | self.body.append(self.context.pop()) | def depart_image(self, node): pass | 1c335118dca38df949bc8cb376ce377f00ca3a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/1c335118dca38df949bc8cb376ce377f00ca3a57/html4css1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
2730,
12,
2890,
16,
756,
4672,
1342,
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... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
2730,
12,
2890,
16,
756,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
resource_id = re.match(urn_pattern, ia_urn).group(0) | resource_id = re.match(urn_pattern, ia_urn).group(1) | def update_loan_status(self): """Update the loan status based off the status in ACS4""" urn_pattern = r'acs:\w+:(.*)' for ia_urn in self.get_lending_resources(): resource_id = re.match(urn_pattern, ia_urn).group(0) borrow.update_loan_status(resource_id) | 0d86ced97a5cdeb05624044c7dad2cd74cf09ccf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/0d86ced97a5cdeb05624044c7dad2cd74cf09ccf/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
383,
304,
67,
2327,
12,
2890,
4672,
3536,
1891,
326,
28183,
1267,
2511,
3397,
326,
1267,
316,
432,
4596,
24,
8395,
18412,
67,
4951,
273,
436,
11,
28965,
5581,
91,
15,
30,
744... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
383,
304,
67,
2327,
12,
2890,
4672,
3536,
1891,
326,
28183,
1267,
2511,
3397,
326,
1267,
316,
432,
4596,
24,
8395,
18412,
67,
4951,
273,
436,
11,
28965,
5581,
91,
15,
30,
744... |
try: | if pcl_data.nokits: | def __init__(self, appdir): | a557af5bd5f16aa8e745c49124b6913355238d30 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/a557af5bd5f16aa8e745c49124b6913355238d30/devide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
1214,
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... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
1214,
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,... |
f78 = open("work/PApars.pre-flags", "w") | def PApars(rngbrf, nlap, anomaly_stream): g.log = open('log/PApars.GHCN.CL.1000.20.log','w') g.rngbrf = rngbrf g.nlap = nlap g.nstat = g.sumch = g.nyrs = g.nstap = g.nyrsp = g.sumchp = 0 g.nsl1 = g.nsl2 = g.ndsl = g.nswitch = g.nsw0 = g.nok = g.nokx = g.nsta = 0 g.nshort = 0 ts = [0.0] * 900 f = [0.0] * 900 x = [0.0]... | 04764b9605b1025116b2db5b3602a74bb6031fc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/04764b9605b1025116b2db5b3602a74bb6031fc2/step2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15662,
8954,
12,
86,
3368,
2848,
74,
16,
290,
3762,
16,
392,
26988,
67,
3256,
4672,
314,
18,
1330,
273,
1696,
2668,
1330,
19,
4066,
8954,
18,
16715,
12821,
18,
5017,
18,
18088,
18,
346... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15662,
8954,
12,
86,
3368,
2848,
74,
16,
290,
3762,
16,
392,
26988,
67,
3256,
4672,
314,
18,
1330,
273,
1696,
2668,
1330,
19,
4066,
8954,
18,
16715,
12821,
18,
5017,
18,
18088,
18,
346... | |
cols = intersect(self._inherit_fields.keys(), fields) | cols = intersect(self._inherit_fields.keys(), fields_to_read) | def convert_field(f): if f in ('create_date', 'write_date'): return "date_trunc('second', %s) as %s" % (f, f) if isinstance(self._columns[f], fields.binary) and context.get('get_binary_size', True): return "length(%s) as %s" % (f,f) return '"%s"' % (f,) | 8ae5a06e35207b8c35182160e11718968900a444 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/8ae5a06e35207b8c35182160e11718968900a444/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
1518,
12,
74,
4672,
309,
284,
316,
7707,
2640,
67,
712,
2187,
296,
2626,
67,
712,
11,
4672,
327,
315,
712,
67,
23558,
2668,
8538,
2187,
738,
87,
13,
487,
738,
87,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
1518,
12,
74,
4672,
309,
284,
316,
7707,
2640,
67,
712,
2187,
296,
2626,
67,
712,
11,
4672,
327,
315,
712,
67,
23558,
2668,
8538,
2187,
738,
87,
13,
487,
738,
87,
6,
738,
... |
try: blob=self.recv() if blob is None: pass elif blob == '': self.handle_close() else: self.buffer = self.buffer + blob except: self.close() | if self._ssl_accepting: s = self.socket.accept_ssl() if s: self._ssl_accepting = 0 else: try: blob = self.recv(4096) if blob is None: pass elif blob == '': self.handle_close() else: self.buffer = self.buffer + blob except SSL.SSLError, what: if str(what) == 'unexpected eof': self.handle_close() return else: raise | def handle_read(self): try: blob=self.recv() if blob is None: pass elif blob == '': self.handle_close() else: self.buffer = self.buffer + blob except: self.close() | 1cf0b9cc3867f97e1e442063b268bff37d2bdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/1cf0b9cc3867f97e1e442063b268bff37d2bdb10/echod-async.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
896,
12,
2890,
4672,
775,
30,
4795,
33,
2890,
18,
18334,
1435,
309,
4795,
353,
599,
30,
1342,
1327,
4795,
422,
875,
30,
365,
18,
4110,
67,
4412,
1435,
469,
30,
365,
18,
410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
896,
12,
2890,
4672,
775,
30,
4795,
33,
2890,
18,
18334,
1435,
309,
4795,
353,
599,
30,
1342,
1327,
4795,
422,
875,
30,
365,
18,
4110,
67,
4412,
1435,
469,
30,
365,
18,
410... |
self.transaction = True | def __init__(self, store): global handle if handle != None: self.transaction = True self.sh = handle else: self.sh=get_handle(store) self.transaction = False | 35490f2fa56ad10a42e0df031fd435fe3fc932f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/35490f2fa56ad10a42e0df031fd435fe3fc932f6/seobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1707,
4672,
2552,
1640,
225,
309,
1640,
480,
599,
30,
365,
18,
674,
273,
1640,
469,
30,
365,
18,
674,
33,
588,
67,
4110,
12,
2233,
13,
365,
18,
7958,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1707,
4672,
2552,
1640,
225,
309,
1640,
480,
599,
30,
365,
18,
674,
273,
1640,
469,
30,
365,
18,
674,
33,
588,
67,
4110,
12,
2233,
13,
365,
18,
7958,
... | |
run_configure(configure, do_script) | def main(): build_all = "-a" in sys.argv if sys.argv[1] == "Release": arch = "x86" debug = False configure = "VC-WIN32" do_script = "ms\\do_masm" makefile = "ms\\nt.mak" elif sys.argv[1] == "Debug": arch = "x86" debug = True configure = "VC-WIN32" do_script = "ms\\do_masm" makefile="ms\\d32.mak" elif sys.argv[1] == "Re... | 8f2484bf2f1bacabd5606bc1dbda5a5197a45bd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8f2484bf2f1bacabd5606bc1dbda5a5197a45bd1/build_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1361,
67,
454,
273,
3701,
69,
6,
316,
2589,
18,
19485,
309,
2589,
18,
19485,
63,
21,
65,
422,
315,
7391,
6877,
6637,
273,
315,
92,
5292,
6,
1198,
273,
1083,
5068,
273,
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,
2774,
13332,
1361,
67,
454,
273,
3701,
69,
6,
316,
2589,
18,
19485,
309,
2589,
18,
19485,
63,
21,
65,
422,
315,
7391,
6877,
6637,
273,
315,
92,
5292,
6,
1198,
273,
1083,
5068,
273,
3... | |
usage() sys.exit(-1) | usage() sys.exit(-1) | def usage(): print "Usage: missing.py [--nocolor] [--hidetrans] langXX" | 6a4c4fb149ce545711f2ea5cbc01572ef63b9c03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/206/6a4c4fb149ce545711f2ea5cbc01572ef63b9c03/missing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
315,
5357,
30,
3315,
18,
2074,
306,
413,
31470,
355,
280,
65,
306,
413,
76,
350,
16354,
634,
65,
3303,
5619,
6,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
315,
5357,
30,
3315,
18,
2074,
306,
413,
31470,
355,
280,
65,
306,
413,
76,
350,
16354,
634,
65,
3303,
5619,
6,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if os.path.isfile(self.dir + '/.password'): | if os.path.isfile(self.dir + '/.password') and config.NEW_SKIN: | def cwd(self, arg=None, menuw=None): """ make a menu item for each file in the directory """ # are we on a ROM_DRIVE and have to mount it first? for media in config.REMOVABLE_MEDIA: if string.find(self.dir, media.mountdir) == 0: util.mount(self.dir) self.media = media | fbe4ad64f5190b15428fb58a8f41e5d9e06338a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/fbe4ad64f5190b15428fb58a8f41e5d9e06338a9/mediamenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7239,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
1221,
279,
3824,
761,
364,
1517,
585,
316,
326,
1867,
3536,
225,
468,
854,
732,
603,
279,
534,
1872,
67,
40,
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,
7239,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
1221,
279,
3824,
761,
364,
1517,
585,
316,
326,
1867,
3536,
225,
468,
854,
732,
603,
279,
534,
1872,
67,
40,
2... |
time.sleep(5) | def main(): """ Intended for internal use. If you want to run the installer from another script, use install.install(prog_path). Parses command line arguments and calls install() accordingly. """ global SILENT_MODE opts = None args = None try: opts, args = getopt.getopt(sys.argv[1:], "hs") except getopt.GetoptError, er... | afe52e13cb76fb3d04696f9c6931db6e0621e809 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/afe52e13cb76fb3d04696f9c6931db6e0621e809/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
657,
8140,
364,
2713,
999,
18,
971,
1846,
2545,
358,
1086,
326,
16050,
628,
4042,
2728,
16,
999,
3799,
18,
5425,
12,
14654,
67,
803,
2934,
2280,
2420,
1296,
980,
1775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
657,
8140,
364,
2713,
999,
18,
971,
1846,
2545,
358,
1086,
326,
16050,
628,
4042,
2728,
16,
999,
3799,
18,
5425,
12,
14654,
67,
803,
2934,
2280,
2420,
1296,
980,
1775,... | |
print "-- starting process for class: %s" % classId | def reap_processes(wait=False): # reap the current processes (wait==False: if they are finished) #print "-- entering reap_processes with len: %d" % len(processes) reaped = False while True: for pos, pid in enumerate(processes.keys()): if not wait and pid.poll() == None: # None = process hasn't terminated #print pid.po... | 83dce8af86e08a211989c0be7a9958c50f26647a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/83dce8af86e08a211989c0be7a9958c50f26647a/TreeCompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
438,
67,
18675,
12,
7048,
33,
8381,
4672,
468,
283,
438,
326,
783,
8488,
261,
7048,
631,
8381,
30,
309,
2898,
854,
6708,
13,
468,
1188,
5238,
19014,
283,
438,
67,
18675,
598,
562,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
438,
67,
18675,
12,
7048,
33,
8381,
4672,
468,
283,
438,
326,
783,
8488,
261,
7048,
631,
8381,
30,
309,
2898,
854,
6708,
13,
468,
1188,
5238,
19014,
283,
438,
67,
18675,
598,
562,... | |
first_doc = encode_link(dosc_n_slots) docs_n_slots = docs_slots_n + 3 + frequency | first_doc = encode_link(docs_n_slots) docs_n_slots = docs_n_slots + 3 + frequency | def index_term(self, tree_file, docs_file, word, documents): """ Indexes the given documents for the given words. | 4e709a2fc5d2cbb8b456e3dd46a12604ca37f7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/4e709a2fc5d2cbb8b456e3dd46a12604ca37f7ba/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
67,
6408,
12,
2890,
16,
2151,
67,
768,
16,
3270,
67,
768,
16,
2076,
16,
7429,
4672,
3536,
3340,
281,
326,
864,
7429,
364,
326,
864,
4511,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
67,
6408,
12,
2890,
16,
2151,
67,
768,
16,
3270,
67,
768,
16,
2076,
16,
7429,
4672,
3536,
3340,
281,
326,
864,
7429,
364,
326,
864,
4511,
18,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
out.append((CHARSET, data)) | outappend((CHARSET, data)) | def _optimize_charset(charset, fixup): # internal: optimize character set out = [] charmap = [False]*256 try: for op, av in charset: if op is NEGATE: out.append((op, av)) elif op is LITERAL: charmap[fixup(av)] = True elif op is RANGE: for i in range(fixup(av[0]), fixup(av[1])+1): charmap[i] = True elif op is CATEGORY: ... | 01c9f8c35f583338e3638906ceeef9d2f29a0254 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/01c9f8c35f583338e3638906ceeef9d2f29a0254/sre_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
29155,
67,
9999,
12,
9999,
16,
2917,
416,
4672,
468,
2713,
30,
10979,
3351,
444,
596,
273,
5378,
1149,
1458,
273,
306,
8381,
5772,
5034,
775,
30,
364,
1061,
16,
1712,
316,
4856,
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,
29155,
67,
9999,
12,
9999,
16,
2917,
416,
4672,
468,
2713,
30,
10979,
3351,
444,
596,
273,
5378,
1149,
1458,
273,
306,
8381,
5772,
5034,
775,
30,
364,
1061,
16,
1712,
316,
4856,
3... |
self.megapov_checkbox.setText(QString.null) QToolTip.add(self.megapov_checkbox,self.__tr("Enable MegaPOV")) | def languageChange(self): self.setCaption(self.__tr("Preferences")) self.ok_btn.setText(self.__tr("OK")) self.groupBox7_2.setTitle(self.__tr("Axes")) self.display_origin_axis_checkbox.setText(self.__tr("Display Origin Axis")) QToolTip.add(self.display_origin_axis_checkbox,self.__tr("Show/Hide Origin Axis")) self.displa... | 7cc18611a6df93ebc9707a8878e31fb8451f8ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/7cc18611a6df93ebc9707a8878e31fb8451f8ff6/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
12377,
6,
3719,
365,
18,
601,
67,
11898,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
3141,
6,
3719,
365,
18,... | |
cur.execute('insert into booze values (%s)',("Cooper's",)) | cur.execute( 'insert into %sbooze values (%%s)' % self.table_prefix, ("Cooper's",) ) | def _paraminsert(self,cur): self.executeDDL1(cur) cur.execute("insert into booze values ('Victoria Bitter')") self.failUnless(cur.rowcount in (-1,1)) | cfcc2c93bb2f3afff81cb651f606e164b84e739d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7955/cfcc2c93bb2f3afff81cb651f606e164b84e739d/dbapi20.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
891,
6387,
12,
2890,
16,
1397,
4672,
365,
18,
8837,
21293,
21,
12,
1397,
13,
662,
18,
8837,
2932,
6387,
1368,
800,
83,
8489,
924,
7707,
58,
933,
280,
1155,
605,
6132,
23291,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
891,
6387,
12,
2890,
16,
1397,
4672,
365,
18,
8837,
21293,
21,
12,
1397,
13,
662,
18,
8837,
2932,
6387,
1368,
800,
83,
8489,
924,
7707,
58,
933,
280,
1155,
605,
6132,
23291,
13,
... |
} M_NS = { | } M_NS = { | def _child_get(self, cr, name=False, parent_id=False, domain=None): dirobj = self.context._dirobj uid = self.context.uid ctx = self.context.context.copy() ctx.update(self.dctx) if not domain: domain = [] domain2 = domain + [('calendar_collection','=', False)] res = super(node_database, self)._child_get(cr, name=name, p... | fe0ee384c7b5a64c12f8725027352df173701456 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fe0ee384c7b5a64c12f8725027352df173701456/caldav_node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
8381,
16,
982,
67,
350,
33,
8381,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2890,
16,
4422,
16,
508,
33,
8381,
16,
982,
67,
350,
33,
8381,
16,
2461,
33,
7036,
4672,
4314,
303,
441,
273,
365,
18,
2472,
6315,
3211,
303,
441,
4555,
273,
... |
from zope.app.keyreference.persistent import KeyReferenceToPersistent | from zope.keyreference.persistent import KeyReferenceToPersistent | def create_subscriptions(): # Register adapters and handlers: from zope.component import provideUtility, provideAdapter, provideHandler for adapter in (subscribe.catalog_data, subscribe.SubscriptionSearchableText): provideAdapter(adapter) from zope.component.event import objectEventNotify for handler in (subscribe.sub... | 3fb60a10319ab198bd5c7915f3a0a3e936887e2b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9844/3fb60a10319ab198bd5c7915f3a0a3e936887e2b/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
19964,
13332,
468,
5433,
17272,
471,
4919,
30,
628,
998,
1306,
18,
4652,
1930,
5615,
6497,
16,
5615,
4216,
16,
5615,
1503,
364,
4516,
316,
261,
9174,
18,
7199,
67,
892,
16,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19964,
13332,
468,
5433,
17272,
471,
4919,
30,
628,
998,
1306,
18,
4652,
1930,
5615,
6497,
16,
5615,
4216,
16,
5615,
1503,
364,
4516,
316,
261,
9174,
18,
7199,
67,
892,
16,
91... |
print(" Ziel: "+dstendpoint[0][0]+"/"+str(dstendpoint[0][1])+":"+dstendpoint[1]) dstfilter = filter2where("dst", dstendpoint[0][0], dstendpoint[0][1], dstendpoint[1]) | print(" Ziel: "+dstendpoint[0][0]+"/"+dstendpoint[0][1]+":"+dstendpoint[1]) dstfilter = filter2where("dst", dstendpoint[0][0], string.atoi(dstendpoint[0][1]), dstendpoint[1]) | def printresult(result, colnames, ipcols): rowstr = "" for col in colnames: rowstr += col + "\t" print(rowstr) for row in result: rowstr = "" i = 0 for col in row: if i in ipcols: rowstr += int2ip(col) + "\t" else: rowstr += str(col) + "\t" i += 1 print rowstr | 36da5ebce86e3ad89a7e51790f261c3c224af8d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2286/36da5ebce86e3ad89a7e51790f261c3c224af8d8/inspect-anomaly.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
2088,
12,
2088,
16,
645,
1973,
16,
2359,
6842,
4672,
1027,
701,
273,
1408,
364,
645,
316,
645,
1973,
30,
1027,
701,
1011,
645,
397,
1548,
88,
6,
1172,
12,
492,
701,
13,
364,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
2088,
12,
2088,
16,
645,
1973,
16,
2359,
6842,
4672,
1027,
701,
273,
1408,
364,
645,
316,
645,
1973,
30,
1027,
701,
1011,
645,
397,
1548,
88,
6,
1172,
12,
492,
701,
13,
364,
10... |
print "Oh yay it worked!" | irccommand("JOIN " + msg[2]) | #def isusingprefix(INDATA,COMMAND): | ef8ca3a4a95f2af723d7168bd94db4f6f12db03d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2452/ef8ca3a4a95f2af723d7168bd94db4f6f12db03d/ircbp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
353,
9940,
3239,
12,
2356,
3706,
16,
19104,
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,
468,
536,
353,
9940,
3239,
12,
2356,
3706,
16,
19104,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
the lcov format. | the lcov format. This method needs to be called before the TearDown method. | def Upload(self, coverage_file, upload_path, sym_path=None, src_root=None): """Upload the results to the dashboard. | 1ad94952bd681814884ac8d6bfb7e25018c6a904 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/1ad94952bd681814884ac8d6bfb7e25018c6a904/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9414,
12,
2890,
16,
11196,
67,
768,
16,
3617,
67,
803,
16,
5382,
67,
803,
33,
7036,
16,
1705,
67,
3085,
33,
7036,
4672,
3536,
4777,
326,
1686,
358,
326,
11825,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9414,
12,
2890,
16,
11196,
67,
768,
16,
3617,
67,
803,
16,
5382,
67,
803,
33,
7036,
16,
1705,
67,
3085,
33,
7036,
4672,
3536,
4777,
326,
1686,
358,
326,
11825,
18,
2,
-100,
-100,
-10... |
imageDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ | imageDict[sngl.ifo]=fnmatch.filter(filesOmega,\ | def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex... | fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1564,
1098,
12,
13044,
5359,
33,
7036,
16,
13044,
27055,
71,
33,
7036,
16,
13044,
2471,
33,
7036,
16,
768,
22,
1785,
33,
7036,
4672,
3536,
2985,
358,
2911,
279,
866,
1098,
1625,
... |
sage: sr = mq.SR(1,1,1,4,gf2=True,polybori=True) sage: P = sr.vector([0,0,1,0]) sage: K = sr.vector([1,0,0,1]) sage: F,s = sr.polynomial_system(P, K) | sage: sr = mq.SR(1, 1, 1, 4, gf2=True, polybori=True) sage: P = sr.vector([0, 0, 1, 0]) sage: K = sr.vector([1, 0, 0, 1]) sage: F, s = sr.polynomial_system(P, K) | def polynomial_system(self, P=None, K=None): """ Return a MPolynomialSystem for self for a given plaintext-key pair. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
67,
4299,
12,
2890,
16,
453,
33,
7036,
16,
1475,
33,
7036,
4672,
3536,
2000,
279,
490,
5850,
13602,
3163,
364,
365,
364,
279,
864,
11917,
17,
856,
3082,
18,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16991,
67,
4299,
12,
2890,
16,
453,
33,
7036,
16,
1475,
33,
7036,
4672,
3536,
2000,
279,
490,
5850,
13602,
3163,
364,
365,
364,
279,
864,
11917,
17,
856,
3082,
18,
2,
-100,
-100,
-100,... |
PangoFontset = struct__PangoFontset | PangoFontset = struct__PangoFontset | def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname) | 92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... |
cm('test.test_pyclbr', ignore=('defined_in',)) | cm('test.test_pyclbr') | def test_others(self): cm = self.checkModule | 72a925f8cd88b62bf84ae9701ad9e59a7e7d85d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/72a925f8cd88b62bf84ae9701ad9e59a7e7d85d9/test_pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
28197,
12,
2890,
4672,
5003,
273,
365,
18,
1893,
3120,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
28197,
12,
2890,
4672,
5003,
273,
365,
18,
1893,
3120,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
cslist.append(self._cset_from_rev(anc, r)) anc=r | chtmp = MonotoneChangeset(anc, r) self.logparser.convertLog(chtmp) if self.branch in chtmp.branches: cslist.append(MonotoneChangeset(anc, r)) anc=r if onlyFirst: break | def getCset(self, revlist): # receives a revlist, already toposorted (i.e. ordered by # ancestry) and outputs a list of changesets cslist=[] anc=revlist[0] for r in revlist[1:]: cslist.append(self._cset_from_rev(anc, r)) anc=r return cslist | 99161ee430dbc4a866be3eb80981544ead94434b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/99161ee430dbc4a866be3eb80981544ead94434b/monotone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
542,
12,
2890,
16,
5588,
1098,
4672,
468,
17024,
279,
5588,
1098,
16,
1818,
358,
917,
24726,
261,
77,
18,
73,
18,
5901,
635,
468,
392,
27626,
13,
471,
6729,
279,
666,
434,
3478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
542,
12,
2890,
16,
5588,
1098,
4672,
468,
17024,
279,
5588,
1098,
16,
1818,
358,
917,
24726,
261,
77,
18,
73,
18,
5901,
635,
468,
392,
27626,
13,
471,
6729,
279,
666,
434,
3478,
... |
with io.open(support.TESTFN, "rb", buffering=0) as f: | with self.open(support.TESTFN, "rb", buffering=0) as f: | def test_truncate(self): # Truncate implicitly flushes the buffer. with io.open(support.TESTFN, self.write_mode, buffering=0) as raw: bufio = self.tp(raw, 8) bufio.write(b"abcdef") self.assertEqual(bufio.truncate(3), 3) self.assertEqual(bufio.tell(), 3) with io.open(support.TESTFN, "rb", buffering=0) as f: self.assertE... | 1eb8e6fd9a20dd970536c19c924ca697ad648652 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/1eb8e6fd9a20dd970536c19c924ca697ad648652/test_io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27201,
12,
2890,
4672,
468,
25869,
24682,
3663,
281,
326,
1613,
18,
598,
2527,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
365,
18,
2626,
67,
3188,
16,
25056,
33,
20,
13,
487,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27201,
12,
2890,
4672,
468,
25869,
24682,
3663,
281,
326,
1613,
18,
598,
2527,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
365,
18,
2626,
67,
3188,
16,
25056,
33,
20,
13,
487,... |
'SAGE External System Code (e.g., PARI, MAGMA, etc.)', | 'Sage External System Code (e.g., PARI, MAGMA, etc.)', | def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file). | ae2ebdf61ef0e4abf79e5e38de819254d5ad978b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/ae2ebdf61ef0e4abf79e5e38de819254d5ad978b/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... |
self.xorg_conf.addOption('Screen', 'DefaultDepth', '24', position=0, prefix='') | self.xorg_conf.addOption('Screen', 'Device', 'Configured Video Device', position=0) | def customiseConfig(self): # set DefaultDepth to 24; X.org does not work otherwise self.xorg_conf.makeSection('Screen', identifier='Default Screen') self.xorg_conf.addOption('Screen', 'DefaultDepth', '24', position=0, prefix='') | 6b1dc8a89445b666d185f48bc208d573fc88650e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13004/6b1dc8a89445b666d185f48bc208d573fc88650e/config-xorg-vboxguest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1679,
784,
809,
12,
2890,
4672,
468,
444,
2989,
6148,
358,
4248,
31,
1139,
18,
3341,
1552,
486,
1440,
3541,
365,
18,
92,
3341,
67,
3923,
18,
6540,
5285,
2668,
7956,
2187,
2756,
2218,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1679,
784,
809,
12,
2890,
4672,
468,
444,
2989,
6148,
358,
4248,
31,
1139,
18,
3341,
1552,
486,
1440,
3541,
365,
18,
92,
3341,
67,
3923,
18,
6540,
5285,
2668,
7956,
2187,
2756,
2218,
1... |
print event | self.log.debug(event) | def _process(self, event): for processor in ibid.processors: try: processor.process(event) except Exception: self.log.exception(u"Exception occured in %s processor of %s plugin", processor.__class__.__name__, processor.name) | 891bf388f99cc1f33520dd3511934dec3fae630f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/891bf388f99cc1f33520dd3511934dec3fae630f/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
12,
2890,
16,
871,
4672,
364,
6659,
316,
9834,
350,
18,
22962,
30,
775,
30,
6659,
18,
2567,
12,
2575,
13,
1335,
1185,
30,
365,
18,
1330,
18,
4064,
12,
89,
6,
503,
16206,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
12,
2890,
16,
871,
4672,
364,
6659,
316,
9834,
350,
18,
22962,
30,
775,
30,
6659,
18,
2567,
12,
2575,
13,
1335,
1185,
30,
365,
18,
1330,
18,
4064,
12,
89,
6,
503,
16206,
... |
result += get_source(env, '../rts/System/creg', ignore_builddir=True) | cwdPrev = os.getcwd() os.chdir('..') result += get_source(env, 'rts/System/creg', ignore_builddir=False) os.chdir(cwdPrev) | def get_shared_skirmishAI_source_Creg(env): result = [] if env.has_key('builddir') and env['builddir']: result += get_source(env, '../rts/System/creg', ignore_builddir=True) return result | 553bbc8f87003da2c4935f1146c4ae9d8818885c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1030/553bbc8f87003da2c4935f1146c4ae9d8818885c/filelist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11574,
67,
7771,
3985,
1468,
18194,
67,
3168,
67,
39,
1574,
12,
3074,
4672,
563,
273,
5378,
309,
1550,
18,
5332,
67,
856,
2668,
70,
89,
330,
449,
481,
6134,
471,
1550,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11574,
67,
7771,
3985,
1468,
18194,
67,
3168,
67,
39,
1574,
12,
3074,
4672,
563,
273,
5378,
309,
1550,
18,
5332,
67,
856,
2668,
70,
89,
330,
449,
481,
6134,
471,
1550,
3292,
... |
return [self[id] for (id,) in CoincDatabaseConnection.cursor().execute("SELECT DISTINCT time_slide_id FROM time_slide")] | return [self[id] for (id,) in self.connection.cursor().execute("SELECT DISTINCT time_slide_id FROM time_slide")] | def all_offsets(self): return [self[id] for (id,) in CoincDatabaseConnection.cursor().execute("SELECT DISTINCT time_slide_id FROM time_slide")] | d54fb732022835e478a56be4372e71bb33d3cede /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/d54fb732022835e478a56be4372e71bb33d3cede/SnglBurstUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
16542,
12,
2890,
4672,
327,
306,
2890,
63,
350,
65,
364,
261,
350,
16,
13,
316,
28932,
71,
4254,
1952,
18,
9216,
7675,
8837,
2932,
4803,
23286,
813,
67,
26371,
67,
350,
4571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
777,
67,
16542,
12,
2890,
4672,
327,
306,
2890,
63,
350,
65,
364,
261,
350,
16,
13,
316,
28932,
71,
4254,
1952,
18,
9216,
7675,
8837,
2932,
4803,
23286,
813,
67,
26371,
67,
350,
4571,
... |
xmlrpc_tests.append(KeepaliveServerTestCase) | xmlrpc_tests.append(KeepaliveServerTestCase1) xmlrpc_tests.append(KeepaliveServerTestCase2) | def test_main(): xmlrpc_tests = [XMLRPCTestCase, HelperTestCase, DateTimeTestCase, BinaryTestCase, FaultTestCase] xmlrpc_tests.append(SimpleServerTestCase) xmlrpc_tests.append(KeepaliveServerTestCase) xmlrpc_tests.append(GzipServerTestCase) xmlrpc_tests.append(ServerProxyTestCase) xmlrpc_tests.append(FailingServerTestC... | 9a96ed69551dade73e041c5d7528afed89a0c37e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/9a96ed69551dade73e041c5d7528afed89a0c37e/test_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
31811,
67,
16341,
273,
306,
4201,
54,
52,
1268,
395,
2449,
16,
9705,
4709,
2449,
16,
3716,
4709,
2449,
16,
7896,
4709,
2449,
16,
25609,
4709,
2449,
65,
31811,
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,
1842,
67,
5254,
13332,
31811,
67,
16341,
273,
306,
4201,
54,
52,
1268,
395,
2449,
16,
9705,
4709,
2449,
16,
3716,
4709,
2449,
16,
7896,
4709,
2449,
16,
25609,
4709,
2449,
65,
31811,
67,
... |
result = jobMonitor.setJobParameters(self.jobID,parameters) | def sendStoredJobParameters(self): """ Send the job parameters stored in the internal cache """ | 51caaa7e74aea392fd6679301a6ed710987614fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/51caaa7e74aea392fd6679301a6ed710987614fd/JobReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
18005,
2278,
2402,
12,
2890,
4672,
3536,
2479,
326,
1719,
1472,
4041,
316,
326,
2713,
1247,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1366,
18005,
2278,
2402,
12,
2890,
4672,
3536,
2479,
326,
1719,
1472,
4041,
316,
326,
2713,
1247,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
"""If there's nothing nearby, do nothing If cursor is on a | """If there's nothing nearby, do nothing. If cursor is on a | def leftShiftDown(self, event): """If there's nothing nearby, do nothing If cursor is on a singlet, drag it around, rotating the atom it's bonded to if possible. If it is a real atom, drag it around. """ a = self.o.selatom if not a: return # now, if something was "lit up" self.modified = 1 self.o.assy.modified = 1 if ... | 9bb0cf1da79ef56a2947c3b48ffbb6563ab8c0eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/9bb0cf1da79ef56a2947c3b48ffbb6563ab8c0eb/depositMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
10544,
4164,
12,
2890,
16,
871,
4672,
3536,
2047,
1915,
1807,
5083,
13378,
1637,
16,
741,
5083,
18,
971,
3347,
353,
603,
279,
4864,
1810,
16,
8823,
518,
6740,
16,
4168,
1776,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
10544,
4164,
12,
2890,
16,
871,
4672,
3536,
2047,
1915,
1807,
5083,
13378,
1637,
16,
741,
5083,
18,
971,
3347,
353,
603,
279,
4864,
1810,
16,
8823,
518,
6740,
16,
4168,
1776,
326,
... |
def main(input, output): p = Doxy2SWIG(input) | def convert(input, output, include_function_definition=True): p = Doxy2SWIG(input, include_function_definition) | def main(input, output): p = Doxy2SWIG(input) p.generate() p.write(output) | 5406ea81f76a42a2764112ef6fe5ea7842c15201 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1130/5406ea81f76a42a2764112ef6fe5ea7842c15201/doxy2swig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2630,
16,
876,
16,
2341,
67,
915,
67,
6907,
33,
5510,
4672,
293,
273,
2256,
1698,
22,
18746,
3047,
12,
2630,
16,
2341,
67,
915,
67,
6907,
13,
293,
18,
7163,
1435,
293,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2630,
16,
876,
16,
2341,
67,
915,
67,
6907,
33,
5510,
4672,
293,
273,
2256,
1698,
22,
18746,
3047,
12,
2630,
16,
2341,
67,
915,
67,
6907,
13,
293,
18,
7163,
1435,
293,
18,
... |
self.cr.execute("SELECT DISTINCT res_partner.id AS id, " \ "res_partner.name AS name " \ "FROM res_partner,account_move_line AS line, account_account " \ "WHERE (line.account_id=account_account.id) " \ "AND ((reconcile_id IS NULL) " \ "OR (reconcile_id IN (SELECT recon.id FROM account_move_reconcile AS recon WHERE reco... | self.cr.execute("""SELECT DISTINCT res_partner.id AS id, res_partner.name AS name FROM res_partner,account_move_line AS line, account_account WHERE (line.account_id=account_account.id) AND ((reconcile_id IS NULL) OR (reconcile_id IN (SELECT recon.id FROM account_move_reconcile AS recon WHERE recon.create_date > '%s' ))... | def _get_lines(self, form): | 643490cad73510344d6ed02d798ee204cbf1bfb7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/643490cad73510344d6ed02d798ee204cbf1bfb7/aged_trial_balance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3548,
12,
2890,
16,
646,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3548,
12,
2890,
16,
646,
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,
... |
dart.edge().setFlag(contourProtection) | dart.edge().setFlag(CONTOUR_SEGMENT) | def fakedConstrainedDelaunayMap(points, jumpPoints, imageSize, contourProtection = CONTOUR_PROTECTION, onlyInner = True): """See constrainedDelaunayMap, this calculates a DT and throws away outer edges retroactively. This may fail when the DT does not contain all constrained segments, which is checked in this functio... | 9780fdb920d074c0946e5e96a8fed5fb752733ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/9780fdb920d074c0946e5e96a8fed5fb752733ff/delaunay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
9477,
442,
31142,
2837,
69,
318,
528,
863,
12,
4139,
16,
11833,
5636,
16,
29344,
16,
15332,
16938,
273,
3492,
4296,
1099,
67,
3373,
1448,
3106,
16,
1338,
2857,
273,
1053,
4672,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
9477,
442,
31142,
2837,
69,
318,
528,
863,
12,
4139,
16,
11833,
5636,
16,
29344,
16,
15332,
16938,
273,
3492,
4296,
1099,
67,
3373,
1448,
3106,
16,
1338,
2857,
273,
1053,
4672,
225,... |
if target in self.targets: self.targets.remove(target) | if target in self.targets: self.targets.remove(target) | def _remove_target_addr(self, target): if target in self.targets: self.targets.remove(target) | 66eda46415e31c1e17a158bdfb92fc82dc56f58c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/66eda46415e31c1e17a158bdfb92fc82dc56f58c/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
67,
3299,
67,
4793,
12,
2890,
16,
1018,
4672,
309,
1018,
316,
365,
18,
11358,
30,
365,
18,
11358,
18,
4479,
12,
3299,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
67,
3299,
67,
4793,
12,
2890,
16,
1018,
4672,
309,
1018,
316,
365,
18,
11358,
30,
365,
18,
11358,
18,
4479,
12,
3299,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
result += "| " + format(res[i][1]) + "\n" | result += "| " + format(i[1]) + "\n" | def create_window_overview_table(data): """Creates a table for all available windows.""" #matches a line like # Addon_connect The dialog to connect to the addon server variable = "(?:[a-z]|[A-Z])(?:[a-z]|[A-Z]|[0-9]|_)*" regex = re.compile(" *(" + variable + ") +(.*)\n") res = regex.findall(data) | 03dd1fa87e7ed6a1aae10ff4e922ba7db9cd3ff8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9355/03dd1fa87e7ed6a1aae10ff4e922ba7db9cd3ff8/wiki_grabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
5668,
67,
26081,
67,
2121,
12,
892,
4672,
3536,
2729,
279,
1014,
364,
777,
2319,
9965,
12123,
468,
8436,
279,
980,
3007,
468,
1436,
265,
67,
3612,
1171,
1021,
6176,
358,
3077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5668,
67,
26081,
67,
2121,
12,
892,
4672,
3536,
2729,
279,
1014,
364,
777,
2319,
9965,
12123,
468,
8436,
279,
980,
3007,
468,
1436,
265,
67,
3612,
1171,
1021,
6176,
358,
3077,
... |
if self.dictOrigin['Program'] == "hyp2000": | if self.dictOrigin['Program'] == "hyp2000" and \ 'SsynthWeight' in d: | def dicts2XML(self): """ Returns information of all dictionaries as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.dictEvent['xmlEventID'] event_type = Sub(xml, "event_type") Sub(event_type, "value").text = "manual" Sub(event_type, "user").text = self.username Sub(event_type, "publi... | b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15838,
22,
4201,
12,
2890,
4672,
3536,
2860,
1779,
434,
777,
16176,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67,
350,
6,
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,
15838,
22,
4201,
12,
2890,
4672,
3536,
2860,
1779,
434,
777,
16176,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67,
350,
6,
3... |
start=[] | def main(): docorrections=True start=[] gen = None genFactory = pagegenerators.GeneratorFactory() for arg in wikipedia.handleArgs(): if arg == '-onlynew': docorrections=False else: generator = genFactory.handleArg(arg) if generator: gen = generator if gen: try: for p in generator: try: text=p.get() cats=p.categories(... | 8f6f6f483ed9be711e2173b5e4718262d618f4ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/8f6f6f483ed9be711e2173b5e4718262d618f4ab/catall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
997,
280,
9329,
87,
33,
5510,
3157,
273,
599,
225,
3157,
1733,
273,
1363,
25959,
18,
3908,
1733,
1435,
225,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
422,
240... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
997,
280,
9329,
87,
33,
5510,
3157,
273,
599,
225,
3157,
1733,
273,
1363,
25959,
18,
3908,
1733,
1435,
225,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
422,
240... | |
s.appendExten("9","Goto(%s,%s,1)" % (pbx,self.phone_9), self.pbx) | s.appendExten("9","Goto(%s,%s,1)" % (pbx,self.phone_9), context) | def createAsteriskConfig(self): s = AstConf("extensions.conf") s.setSection(self.name) if self.pbx: pbx = self.pbx else: pbx = "phones" s.append("include=%s" % pbx) s.appendExten("s","Set(TIMEOUT(digit)=%d)" % self.digittimeout, self.pbx) if self.moh: s.appendExten("s","Setmusiconhold(%s)" % self.moh, self.pbx) s.appen... | e581660927aebaacc03692e1a06a4d11542ff6a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/e581660927aebaacc03692e1a06a4d11542ff6a3/cfg_ivr_treenode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
37,
8190,
10175,
809,
12,
2890,
4672,
272,
273,
16614,
3976,
2932,
9489,
18,
3923,
7923,
272,
18,
542,
5285,
12,
2890,
18,
529,
13,
309,
365,
18,
5733,
92,
30,
6386,
92,
273,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
37,
8190,
10175,
809,
12,
2890,
4672,
272,
273,
16614,
3976,
2932,
9489,
18,
3923,
7923,
272,
18,
542,
5285,
12,
2890,
18,
529,
13,
309,
365,
18,
5733,
92,
30,
6386,
92,
273,
36... |
REFERENCES: Howard M. Heys, A Tutorial on Linear and Differential Cryptanalysis, Cryptologia, v.XXVI n.3, p.189-221, July 2002 | def difference_distribution_matrix(self): """ Return difference distribution matrix $A$ for this S-box. | dd81b4a97db8b232434d8623d237dba45e418834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dd81b4a97db8b232434d8623d237dba45e418834/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7114,
67,
16279,
67,
5667,
12,
2890,
4672,
3536,
2000,
7114,
7006,
3148,
271,
37,
8,
364,
333,
348,
17,
2147,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7114,
67,
16279,
67,
5667,
12,
2890,
4672,
3536,
2000,
7114,
7006,
3148,
271,
37,
8,
364,
333,
348,
17,
2147,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
f90 = self.executables['compiler_f90'] | f90 = self.executables.get('compiler_f90') | def get_version_cmd(self): """ Compiler command to print out version information. """ f77 = self.executables['compiler_f77'] if f77 is not None: f77 = f77[0] cmd = self.executables['version_cmd'] if cmd is not None: cmd = cmd[0] if cmd==f77: cmd = self.compiler_f77[0] else: f90 = self.executables['compiler_f90'] if f90... | 9ddd860b31ea1d4517eb3fff6ab4c280ebb14dec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/9ddd860b31ea1d4517eb3fff6ab4c280ebb14dec/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1589,
67,
4172,
12,
2890,
4672,
3536,
12972,
1296,
358,
1172,
596,
1177,
1779,
18,
3536,
284,
4700,
273,
365,
18,
4177,
322,
1538,
3292,
9576,
67,
74,
4700,
3546,
309,
284,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1589,
67,
4172,
12,
2890,
4672,
3536,
12972,
1296,
358,
1172,
596,
1177,
1779,
18,
3536,
284,
4700,
273,
365,
18,
4177,
322,
1538,
3292,
9576,
67,
74,
4700,
3546,
309,
284,
47... |
self._finalize_connect(prefinished) | def _changed(self, action): """ Called when a callback connects or disconnects from us. """ if len(self) == 1 and action == Signal.SIGNAL_CONNECTED and not self.finished: # Someone wants to know when we finish, so now we connect to the # underlying InProgress objects to find out when they finish. prefinished = [] for n... | 0d9f6bc38cba8464d9f7e2cdc2c065c63763827b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/0d9f6bc38cba8464d9f7e2cdc2c065c63763827b/async.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6703,
12,
2890,
16,
1301,
4672,
3536,
11782,
1347,
279,
1348,
23441,
578,
9479,
87,
628,
584,
18,
3536,
309,
562,
12,
2890,
13,
422,
404,
471,
1301,
422,
12032,
18,
11260,
1013,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6703,
12,
2890,
16,
1301,
4672,
3536,
11782,
1347,
279,
1348,
23441,
578,
9479,
87,
628,
584,
18,
3536,
309,
562,
12,
2890,
13,
422,
404,
471,
1301,
422,
12032,
18,
11260,
1013,
6... | |
cannot_set_attr(self.b, '__name__', 7, TypeError) cannot_set_attr(self.b, 'func_name', 7, TypeError) | self.cannot_set_attr(self.b, '__name__', 7, TypeError) self.cannot_set_attr(self.b, 'func_name', 7, TypeError) | def test_func_name(self): self.assertEqual(self.b.__name__, 'b') self.assertEqual(self.b.func_name, 'b') self.b.__name__ = 'c' self.assertEqual(self.b.__name__, 'c') self.assertEqual(self.b.func_name, 'c') self.b.func_name = 'd' self.assertEqual(self.b.__name__, 'd') self.assertEqual(self.b.func_name, 'd') # __name__ a... | 8ada17742baaa36357dbdf70009d247c1863c291 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/8ada17742baaa36357dbdf70009d247c1863c291/test_funcattrs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
644,
67,
529,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
70,
16186,
529,
972,
16,
296,
70,
6134,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
529,
16,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
644,
67,
529,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
70,
16186,
529,
972,
16,
296,
70,
6134,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
529,
16,
29... |
raise OSError(0, 'No such directory', path) | raise OSError(0, 'No such directory', path) | def listdir(path): l = File(path).list() if l is None: raise OSError(0, 'No such directory', path) return list(l) | 5983a691b16eecde718073ce68a1624ff2a162aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/5983a691b16eecde718073ce68a1624ff2a162aa/javaos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13529,
12,
803,
4672,
328,
273,
1387,
12,
803,
2934,
1098,
1435,
309,
328,
353,
599,
30,
1002,
10002,
12,
20,
16,
296,
2279,
4123,
1867,
2187,
589,
13,
327,
666,
12,
80,
13,
225,
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,
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,
13529,
12,
803,
4672,
328,
273,
1387,
12,
803,
2934,
1098,
1435,
309,
328,
353,
599,
30,
1002,
10002,
12,
20,
16,
296,
2279,
4123,
1867,
2187,
589,
13,
327,
666,
12,
80,
13,
225,
2,
... |
if not subitem in result and not subitem in excludeWithDeps and not subitem in deps["warn"]: | if not subitem in result and not subitem in excludeWithDeps and not subitem in skipList: | def classlistFromClassRecursive(item, excludeWithDeps, variants, result): # support blocking if item in excludeWithDeps: return | 779574821bd05657d9aed278a2d44657763d63b8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/779574821bd05657d9aed278a2d44657763d63b8/DependencyLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
667,
1098,
1265,
797,
10483,
12,
1726,
16,
4433,
1190,
14430,
16,
12935,
16,
563,
4672,
468,
2865,
9445,
309,
761,
316,
4433,
1190,
14430,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
667,
1098,
1265,
797,
10483,
12,
1726,
16,
4433,
1190,
14430,
16,
12935,
16,
563,
4672,
468,
2865,
9445,
309,
761,
316,
4433,
1190,
14430,
30,
327,
2,
-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.