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.create_package(repo["id"], info['name'], info['description']) pv = self.packageVersionApi.create(p.packageid, info['epoch'], info['version'], info['release'], info['arch']) for dep in info['requires']: pv.requires.append(dep) for dep in info['provides']: pv.provides.append(dep) self.packageVersionApi.update(pv) p.versions.append(pv) #self.packageApi.update(p) packages[p["packageid"]] = p log.debug("repo = %s" % (repo)) log.debug("packages = %s" % (packages)) self.update(repo) # Need to send package_count = package_count + 1 log.debug("Repo <%s> added package <%s> with %s versions" % (repo["id"], p["packageid"], len(p["versions"]))) except Exception, e: log.debug("%s" % (traceback.format_exc())) log.error("error reading package %s" % (dir + fname)) log.debug("read [%s] packages" % package_count) self._read_comps_xml(dir, repo)
|
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,
273,
374,
364,
5299,
316,
1577,
682,
30,
309,
261,
12749,
18,
5839,
1918,
2932,
18,
86,
7755,
6,
3719,
30,
775,
30,
1123,
273,
4170,
12728,
5369,
12,
1214,
397,
5299,
13,
468,
84,
273,
365,
18,
5610,
3064,
18,
5610,
12,
1376,
3292,
529,
19486,
293,
273,
365,
18,
5610,
12,
7422,
9614,
350,
6,
6487,
1123,
3292,
529,
19486,
309,
486,
293,
30,
293,
273,
365,
18,
2640,
67,
5610,
12,
7422,
9614,
350,
6,
6487,
1123,
3292,
529,
17337,
1123,
3292,
3384,
19486,
9770,
273,
365,
18,
5610,
1444,
3064,
18,
2640,
12,
84,
9614,
5610,
350,
6,
6487,
1123,
3292,
12015,
17337,
1123,
3292,
1589,
17337,
1123,
3292,
9340,
17337,
1123,
3292,
991,
19486,
364,
5993,
316,
1123,
3292,
18942,
3546,
30,
9770,
18,
18942,
18,
6923,
12,
15037,
13,
364,
5993,
316,
1123,
3292,
685,
13427,
3546,
30,
9770,
18,
685,
13427,
18,
6923,
12,
15037,
13,
365,
18,
5610,
1444,
3064,
18,
2725,
12,
25224,
13,
293,
18,
10169,
18,
6923,
12,
25224,
13,
468,
2890,
18,
5610,
3064,
18,
2725,
12,
84,
13,
5907,
63,
84,
9614,
5610,
350,
11929,
65,
273,
293,
613,
18,
4148,
2932,
7422,
273,
738,
87,
6,
738,
261,
7422,
3719,
613,
18,
4148,
2932,
10308,
273,
738,
87,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
273,
374,
364,
5299,
316,
1577,
682,
30,
309,
261,
12749,
18,
5839,
1918,
2932,
18,
86,
7755,
6,
3719,
30,
775,
30,
1123,
273,
4170,
12728,
5369,
12,
1214,
397,
5299,
13,
468,
84,
273,
365,
18,
5610,
3064,
18,
5610,
12,
1376,
3292,
529,
19486,
293,
273,
365,
18,
5610,
12,
7422,
9614,
350,
6,
6487,
1123,
3292,
529,
19486,
309,
486,
293,
30,
293,
273,
365,
18,
2640,
67,
5610,
12,
7422,
9614,
350,
6,
6487,
1123,
3292,
529,
17337,
1123,
2
] |
"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,
559,
422,
2025,
18,
9859,
18,
3644,
18,
10976,
471,
1151,
18,
2692,
461,
422,
508,
30,
2199,
18,
6923,
12,
3624,
13,
364,
756,
316,
2199,
30,
1084,
18,
4479,
1763,
12,
2159,
13,
1570,
18,
6923,
1763,
12,
2159,
13,
309,
5478,
30,
1570,
18,
6923,
1763,
12,
2434,
18,
2640,
17299,
12,
10814,
3719,
282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
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,
559,
422,
2025,
18,
9859,
18,
3644,
18,
10976,
471,
1151,
18,
2692,
461,
422,
508,
30,
2199,
18,
6923,
12,
3624,
13,
364,
756,
316,
2199,
30,
1084,
18,
4479,
1763,
12,
2159,
13,
1570,
18,
6923,
1763,
12,
2159,
13,
309,
5478,
30,
1570,
18,
6923,
1763,
12,
2434,
18,
2640,
17299,
12,
10814,
3719,
282,
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
] |
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,
1335,
30,
365,
18,
2211,
273,
333,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
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,
1335,
30,
365,
18,
2211,
273,
333,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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", str(os.stat(data.name).st_size)) except: pass return data else: try: web.header("Content-Length", str(len(data))) except: pass print data
|
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,
296,
5784,
6134,
3311,
18,
3374,
2668,
14449,
2187,
2400,
21,
6134,
3311,
18,
3374,
2668,
1649,
17,
3367,
2187,
296,
2135,
17,
2493,
6134,
3311,
18,
3374,
2668,
5933,
17,
9932,
2187,
296,
3890,
6134,
3311,
18,
3374,
2668,
1350,
17,
3779,
2187,
296,
275,
67,
407,
6134,
309,
261,
5332,
1747,
12,
892,
16,
296,
4285,
26112,
30,
775,
30,
3311,
18,
3374,
2932,
1350,
17,
1782,
3113,
609,
12,
538,
18,
5642,
12,
892,
18,
529,
2934,
334,
67,
1467,
3719,
1335,
30,
1342,
327,
501,
469,
30,
775,
30,
3311,
18,
3374,
2932,
1350,
17,
1782,
3113,
609,
12,
1897,
12,
892,
20349,
1335,
30,
1342,
1172,
501,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
296,
5784,
6134,
3311,
18,
3374,
2668,
14449,
2187,
2400,
21,
6134,
3311,
18,
3374,
2668,
1649,
17,
3367,
2187,
296,
2135,
17,
2493,
6134,
3311,
18,
3374,
2668,
5933,
17,
9932,
2187,
296,
3890,
6134,
3311,
18,
3374,
2668,
1350,
17,
3779,
2187,
296,
275,
67,
407,
6134,
309,
261,
5332,
1747,
12,
892,
16,
296,
4285,
26112,
30,
775,
30,
3311,
18,
3374,
2932,
1350,
17,
1782,
3113,
609,
12,
538,
18,
5642,
12,
892,
18,
529,
2934,
334,
67,
1467,
2
] |
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 - ``adaptive_recursion`` - (default: 5) how many levels of recursion to go before giving up when doing adaptive refinement. Setting this to 0 disables adaptive refinement. - ``adaptive_tolerance`` - (default: 0.01) how large a difference should be before the adaptive refinement code considers it significant. See the documentation for plot() for more information. OUTPUT: - ``list`` - a list of points to insert between p1 and p2 to get a better linear approximation between them TESTS:: sage: from sage.plot.plot import adaptive_refinement sage: adaptive_refinement(sin, (0,0), (pi,0), adaptive_tolerance=0.01, adaptive_recursion=0) [] sage: adaptive_refinement(sin, (0,0), (pi,0), adaptive_tolerance=0.01) [(0.125*pi, 0.38268343236508978), (0.1875*pi, 0.55557023301960218), (0.25*pi, 0.707106781186547...), (0.3125*pi, 0.831469612302545...), (0.375*pi, 0.92387953251128674), (0.4375*pi, 0.98078528040323043), (0.5*pi, 1.0), (0.5625*pi, 0.98078528040323043), (0.625*pi, 0.92387953251128674), (0.6875*pi, 0.831469612302545...), (0.75*pi, 0.70710678118654757), (0.8125*pi, 0.55557023301960218), (0.875*pi, 0.3826834323650898...)] This shows that lowering adaptive_tolerance and raising adaptive_recursion both increase the number of subdivision points:: sage: x = var('x') sage: f(x) = sin(1/x) sage: n1 = len(adaptive_refinement(f, (0,0), (pi,0), adaptive_tolerance=0.01)); n1 15 sage: n2 = len(adaptive_refinement(f, (0,0), (pi,0), adaptive_recursion=10, adaptive_tolerance=0.01)); n2 79 sage: n3 = len(adaptive_refinement(f, (0,0), (pi,0), adaptive_tolerance=0.001)); n3 26 """ if level >= adaptive_recursion: return [] x = (p1[0] + p2[0])/2.0 try: y = float(f(x)) except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x), 1) # give up for this branch return [] # this distance calculation is not perfect. if abs((p1[1] + p2[1])/2.0 - y) > adaptive_tolerance: return adaptive_refinement(f, p1, (x, y), adaptive_tolerance=adaptive_tolerance, adaptive_recursion=adaptive_recursion, level=level+1) \ + [(x, y)] + \ adaptive_refinement(f, (x, y), p2, adaptive_tolerance=adaptive_tolerance, adaptive_recursion=adaptive_recursion, level=level+1) else: return []
|
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,
1021,
5855,
688,
25994,
820,
4886,
364,
20947,
279,
445,
284,
18,
2164,
326,
14525,
364,
3207,
364,
279,
2477,
434,
326,
4886,
18,
225,
12943,
30,
282,
300,
225,
12176,
74,
10335,
300,
279,
445,
434,
1245,
2190,
225,
300,
225,
12176,
84,
21,
16,
293,
22,
10335,
300,
2795,
3143,
358,
30446,
3086,
225,
300,
225,
12176,
19195,
688,
67,
31347,
10335,
300,
261,
1886,
30,
1381,
13,
3661,
4906,
7575,
434,
13917,
358,
1960,
1865,
21057,
731,
1347,
9957,
5855,
688,
25994,
820,
18,
13274,
333,
358,
374,
24960,
5855,
688,
25994,
820,
18,
225,
300,
225,
12176,
19195,
688,
67,
25456,
10335,
300,
261,
1886,
30,
374,
18,
1611,
13,
3661,
7876,
279,
7114,
1410,
506,
1865,
326,
5855,
688,
25994,
820,
981,
1959,
24290,
518,
14177,
18,
2164,
326,
7323,
364,
3207,
1435,
364,
1898,
1779,
18,
282,
11550,
30,
282,
300,
225,
12176,
1098,
10335,
300,
279,
666,
434,
3143,
358,
2243,
3086,
293,
21,
471,
293,
22,
358,
336,
279,
7844,
9103,
24769,
3086,
2182,
282,
22130,
55,
2866,
225,
272,
410,
30,
628,
272,
410,
18,
4032,
18,
4032,
1930,
5855,
688,
67,
266,
926,
820,
272,
410,
30,
5855,
688,
67,
266,
926,
820,
12,
21861,
16,
261,
20,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1021,
5855,
688,
25994,
820,
4886,
364,
20947,
279,
445,
284,
18,
2164,
326,
14525,
364,
3207,
364,
279,
2477,
434,
326,
4886,
18,
225,
12943,
30,
282,
300,
225,
12176,
74,
10335,
300,
279,
445,
434,
1245,
2190,
225,
300,
225,
12176,
84,
21,
16,
293,
22,
10335,
300,
2795,
3143,
358,
30446,
3086,
225,
300,
225,
12176,
19195,
688,
67,
31347,
10335,
300,
261,
1886,
30,
1381,
13,
3661,
4906,
7575,
434,
13917,
358,
1960,
1865,
21057,
731,
1347,
2
] |
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,
327,
1983,
9348,
589,
471,
1544,
434,
13549,
19548,
9163,
309,
486,
562,
12,
2890,
18,
1425,
3292,
4811,
451,
67,
19674,
67,
10141,
3546,
4672,
327,
599,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
327,
1983,
9348,
589,
471,
1544,
434,
13549,
19548,
9163,
309,
486,
562,
12,
2890,
18,
1425,
3292,
4811,
451,
67,
19674,
67,
10141,
3546,
4672,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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(node) for snode in specNodes: newSpec = RequestSpec() try: newSpec.load(snode) except Exception,ex: logging.debug('ERROR loading a requestspec, will ignore this requestspec :'+str(ex)) ignore+=1 result.append(newSpec) return (result,ignore)
|
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,
468,
2305,
2535,
2707,
3285,
2305,
273,
374,
225,
756,
273,
1262,
3445,
626,
90,
812,
12,
3459,
13,
756,
273,
1262,
3445,
626,
90,
812,
12,
3459,
13,
857,
53,
273,
6246,
626,
90,
1138,
2932,
691,
1990,
7923,
857,
3205,
273,
857,
53,
12,
2159,
13,
225,
364,
272,
2159,
316,
857,
3205,
30,
394,
1990,
273,
1567,
1990,
1435,
775,
30,
394,
1990,
18,
945,
12,
87,
2159,
13,
1335,
1185,
16,
338,
30,
2907,
18,
4148,
2668,
3589,
7153,
279,
590,
2793,
16,
903,
2305,
333,
590,
2793,
22974,
15,
701,
12,
338,
3719,
2305,
15,
33,
21,
327,
261,
2088,
16,
6185,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
468,
2305,
2535,
2707,
3285,
2305,
273,
374,
225,
756,
273,
1262,
3445,
626,
90,
812,
12,
3459,
13,
756,
273,
1262,
3445,
626,
90,
812,
12,
3459,
13,
857,
53,
273,
6246,
626,
90,
1138,
2932,
691,
1990,
7923,
857,
3205,
273,
857,
53,
12,
2159,
13,
225,
364,
272,
2159,
316,
857,
3205,
30,
394,
1990,
273,
1567,
1990,
1435,
775,
30,
394,
1990,
18,
945,
12,
87,
2159,
13,
1335,
1185,
16,
338,
30,
2907,
18,
4148,
2668,
3589,
7153,
279,
2
] |
|
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (component == 'attributeGroup'): content.append(AttributeGroupReference()) content[-1].fromDom(contents[indx]) elif (component == 'anyAttribute') and (len(contents) == x+1): content.append(AttributeWildCard()) content[-1].fromDom(contents[indx])
|
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
|
66c6baf2288f065b45db940b63cfc5dba1aa9fb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/66c6baf2288f065b45db940b63cfc5dba1aa9f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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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("~"),'.nicotine','plugins') if os.path.isdir(self.plugindir): self.load(self.plugindir) else: self.log("It appears '%s' is not a directory, not loading plugins." % self.plugindir)
|
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,
11657,
9614,
3567,
6,
6362,
6,
5819,
11929,
365,
18,
8057,
273,
5378,
309,
678,
706,
1578,
30,
775,
30,
3399,
1214,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
7215,
4883,
19486,
1335,
4999,
30,
225,
3399,
1214,
16,
92,
273,
1140,
18,
803,
18,
4939,
12,
9499,
18,
19485,
63,
20,
5717,
365,
18,
22045,
728,
481,
273,
1140,
18,
803,
18,
5701,
12,
4811,
1214,
16,
315,
8057,
7923,
469,
30,
365,
18,
22045,
728,
481,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12320,
1355,
2932,
98,
6,
3631,
10332,
18738,
352,
558,
17023,
8057,
6134,
309,
1140,
18,
803,
18,
291,
1214,
12,
2890,
18,
22045,
728,
481,
4672,
365,
18,
945,
12,
2890,
18,
22045,
728,
481,
13,
469,
30,
365,
18,
1330,
2932,
7193,
14606,
1995,
87,
11,
353,
486,
279,
1867,
16,
486,
7153,
4799,
1199,
738,
365,
18,
22045,
728,
481,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
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,
11657,
9614,
3567,
6,
6362,
6,
5819,
11929,
365,
18,
8057,
273,
5378,
309,
678,
706,
1578,
30,
775,
30,
3399,
1214,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
7215,
4883,
19486,
1335,
4999,
30,
225,
3399,
1214,
16,
92,
273,
1140,
18,
803,
18,
4939,
12,
9499,
18,
19485,
63,
20,
5717,
365,
18,
22045,
728,
481,
273,
1140,
18,
803,
18,
5701,
12,
4811,
1214,
16,
315,
8057,
7923,
469,
30,
365,
18,
22045,
728,
481,
273,
1140,
2
] |
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,
25956,
3423,
679,
33,
20,
16,
10310,
628,
326,
6641,
3560,
18,
3536,
309,
486,
272,
30,
327,
875,
309,
562,
12,
87,
13,
405,
769,
30,
309,
679,
30,
327,
272,
10531,
2469,
17,
24,
65,
397,
296,
25956,
327,
296,
2777,
296,
397,
272,
63,
1897,
12,
87,
24950,
2469,
15,
24,
26894,
327,
272,
282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
25956,
3423,
679,
33,
20,
16,
10310,
628,
326,
6641,
3560,
18,
3536,
309,
486,
272,
30,
327,
875,
309,
562,
12,
87,
13,
405,
769,
30,
309,
679,
30,
327,
272,
10531,
2469,
17,
24,
65,
397,
296,
25956,
327,
296,
2777,
296,
397,
272,
63,
1897,
12,
87,
24950,
2469,
15,
24,
26894,
327,
272,
282,
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
] |
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 deny permissions from the access control entries \n \ or rerun this command with --ignoreacl" % (filetoversion, accesscontrollist.getacl(filetoversion)) raise SyncherException(err) # TODO: verify that this file is not already added logging.info("should: check for dups") filetoversionpath, repospathofversionedfile, repospathtoputnewfilein = settings.getFileToVersionPathes(filetoversion) util.remove(filetoversionpath) if subversion.isinsvn(repospathofversionedfile): subversion.deleteinreposonly(repospathofversionedfile) if subversion.isinsvn(repospathofversionedfile): if options.autocommit: logging.info("committing delete of %s" % repospathofversionedfile) subversion.commit(repospathofversionedfile, "removed via unversionthis") else: raise SyncherException("repository will be messed up if we don't commit removal svn for this path") if os.path.isdir(repospathofversionedfile): logging.info("deleting .svn files in %s" % repospathofversionedfile) dryfunc(options.dry, getCommandOut, "find \"%s\" -name .svn -exec rm -rf \"{}\"" % repospathofversionedfile) util.removesymlink(filetoversionpath) acl = None if options.ignoreacl: acl = removeacl(repospathofversionedfile) util.move(repospathofversionedfile, filetoversionpath)#repospathtoputnewfilein) if acl is not None: accesscontrollist.setacl(filetoversion, acl) #created = util.makedirs(repospathtoputnewfilein) except Exception as e: logging.warn("ROLLING BACK because of %s" % e) undo.rollback() raise
|
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,
278,
1527,
722,
711,
279,
296,
13002,
93,
11,
316,
10098,
4371,
261,
3251,
300,
80,
323,
738,
87,
30,
738,
87,
13,
521,
82,
521,
1220,
5402,
353,
4551,
486,
1619,
502,
7304,
358,
866,
309,
1846,
1240,
4132,
358,
3635,
19,
3733,
333,
585,
18,
521,
82,
521,
2974,
4543,
333,
6199,
1206,
17096,
4371,
628,
326,
2006,
3325,
3222,
521,
82,
521,
578,
436,
19780,
333,
1296,
598,
1493,
6185,
10150,
6,
738,
261,
7540,
278,
1527,
722,
16,
2006,
7098,
1098,
18,
588,
10150,
12,
7540,
278,
1527,
722,
3719,
1002,
348,
2515,
264,
503,
12,
370,
13,
225,
468,
2660,
30,
3929,
716,
333,
585,
353,
486,
1818,
3096,
2907,
18,
1376,
2932,
13139,
30,
866,
364,
9417,
87,
7923,
225,
661,
278,
1527,
722,
803,
16,
13686,
803,
792,
21415,
768,
16,
13686,
803,
869,
458,
2704,
768,
267,
273,
1947,
18,
29925,
774,
1444,
743,
281,
12,
7540,
278,
1527,
722,
13,
225,
1709,
18,
4479,
12,
7540,
278,
1527,
722,
803,
13,
225,
309,
720,
1589,
18,
291,
2679,
25031,
12,
15564,
803,
792,
21415,
768,
4672,
720,
1589,
18,
3733,
267,
15564,
3700,
12,
15564,
803,
792,
21415,
768,
13,
309,
720,
1589,
18,
291,
2679,
25031,
12,
15564,
803,
792,
21415,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
278,
1527,
722,
711,
279,
296,
13002,
93,
11,
316,
10098,
4371,
261,
3251,
300,
80,
323,
738,
87,
30,
738,
87,
13,
521,
82,
521,
1220,
5402,
353,
4551,
486,
1619,
502,
7304,
358,
866,
309,
1846,
1240,
4132,
358,
3635,
19,
3733,
333,
585,
18,
521,
82,
521,
2974,
4543,
333,
6199,
1206,
17096,
4371,
628,
326,
2006,
3325,
3222,
521,
82,
521,
578,
436,
19780,
333,
1296,
598,
1493,
6185,
10150,
6,
738,
261,
7540,
278,
1527,
722,
16,
2006,
2
] |
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.speakMessage(str(self.dom.frames.item(frameNum).document.readyState)) documentComplete=False except: pass return documentComplete
|
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,
18,
5668,
3259,
16,
2425,
18,
588,
9233,
921,
7675,
5668,
3259,
4672,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2890,
18,
9859,
18,
1672,
1119,
3719,
1668,
6322,
33,
8381,
364,
2623,
2578,
316,
1048,
12,
2890,
18,
9859,
18,
10278,
18,
2469,
4672,
775,
30,
309,
365,
18,
9859,
18,
10278,
18,
1726,
12,
3789,
2578,
2934,
5457,
18,
1672,
1119,
5,
1546,
6226,
6877,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2890,
18,
9859,
18,
10278,
18,
1726,
12,
3789,
2578,
2934,
5457,
18,
1672,
1119,
3719,
1668,
6322,
33,
8381,
1335,
30,
1342,
327,
1668,
6322,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
18,
5668,
3259,
16,
2425,
18,
588,
9233,
921,
7675,
5668,
3259,
4672,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2890,
18,
9859,
18,
1672,
1119,
3719,
1668,
6322,
33,
8381,
364,
2623,
2578,
316,
1048,
12,
2890,
18,
9859,
18,
10278,
18,
2469,
4672,
775,
30,
309,
365,
18,
9859,
18,
10278,
18,
1726,
12,
3789,
2578,
2934,
5457,
18,
1672,
1119,
5,
1546,
6226,
6877,
7447,
18,
10996,
1435,
7447,
18,
87,
10244,
1079,
12,
701,
12,
2
] |
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,
1019,
97,
353,
486,
385,
95,
7036,
5779,
1508,
1524,
4888,
358,
2097,
2939,
31,
3541,
16,
1524,
1450,
511,
95,
67,
9625,
67,
529,
5496,
225,
971,
511,
95,
67,
4500,
67,
1152,
97,
353,
638,
16,
1508,
1034,
596,
777,
3238,
2184,
31,
3541,
16,
3073,
1158,
11346,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
1019,
97,
353,
486,
385,
95,
7036,
5779,
1508,
1524,
4888,
358,
2097,
2939,
31,
3541,
16,
1524,
1450,
511,
95,
67,
9625,
67,
529,
5496,
225,
971,
511,
95,
67,
4500,
67,
1152,
97,
353,
638,
16,
1508,
1034,
596,
777,
3238,
2184,
31,
3541,
16,
3073,
1158,
11346,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
309,
486,
4215,
18,
267,
67,
2273,
67,
1655,
2668,
71,
6904,
3666,
11,
4672,
327,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
309,
486,
4215,
18,
267,
67,
2273,
67,
1655,
2668,
71,
6904,
3666,
11,
4672,
327,
2065,
12,
2327,
33,
8381,
16,
883,
2218,
1299,
1297,
506,
316,
276,
6904,
3666,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
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,
353,
1660,
20778,
313,
428,
16,
341,
1297,
506,
14800,
13,
300,
453,
1634,
603,
365,
300,
2238,
1634,
603,
365,
300,
4886,
261,
10444,
13,
273,
599,
261,
6117,
478,
303,
19425,
8384,
13,
578,
6489,
1354,
81,
420,
264,
261,
6117,
28602,
1354,
81,
420,
264,
3143,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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,
353,
1660,
20778,
313,
428,
16,
341,
1297,
506,
14800,
13,
300,
453,
1634,
603,
365,
300,
2238,
1634,
603,
365,
300,
4886,
261,
10444,
13,
273,
599,
261,
6117,
478,
303,
19425,
8384,
13,
578,
6489,
1354,
81,
420,
264,
261,
6117,
28602,
1354,
81,
420,
264,
3143,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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_OPERATE_ONLY)
|
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_OPERATE, self.ACTION_ANIMATE_ONLY] if what_to_do in actions: if not self.is_locked: self.lock_for(self.cooldown_ms) self.launch_event(self.event_type, self.is_on) self.toggle(new_state) self._animate_timeout_id = gobject.timeout_add(10, self.animate) else: if self.cooldown_ms >= 1000: self.launch_event('infobar_message', 'Please wait %d seconds' %(self.cooldown_ms / 1000)) if what_to_do == self.ACTION_ANIMATE_ONLY: self.toggle(new_state) self.animate()
|
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,
599,
471,
871,
18,
1745,
353,
486,
599,
30,
4121,
67,
869,
67,
2896,
273,
871,
18,
1745,
309,
1549,
12,
2575,
18,
1745,
16,
2065,
4672,
4121,
67,
869,
67,
2896,
273,
871,
18,
1745,
3292,
1128,
3546,
394,
67,
2019,
273,
871,
18,
1745,
3292,
2019,
3546,
4209,
273,
261,
2890,
18,
12249,
67,
1258,
3445,
1777,
67,
4307,
67,
13950,
1777,
16,
365,
18,
12249,
67,
1258,
3445,
1777,
67,
10857,
13,
309,
365,
18,
291,
67,
15091,
30,
4209,
273,
261,
2890,
18,
12249,
67,
1258,
3445,
1777,
67,
10857,
16,
262,
309,
4121,
67,
869,
67,
2896,
316,
4209,
30,
365,
18,
14401,
12,
2704,
67,
2019,
13,
309,
365,
18,
304,
4988,
67,
350,
353,
599,
30,
365,
18,
304,
4988,
67,
350,
273,
314,
1612,
18,
4538,
67,
1289,
12,
2163,
16,
365,
18,
304,
4988,
13,
4209,
273,
261,
2890,
18,
12249,
67,
1258,
3445,
1777,
67,
4307,
67,
13950,
1777,
16,
365,
18,
12249,
67,
13950,
1777,
67,
10857,
13,
309,
4121,
67,
869,
67,
2896,
316,
4209,
30,
309,
486,
365,
18,
291,
67,
15091,
30,
365,
18,
739,
67,
1884,
12,
2890,
18,
71,
1371,
2378,
67,
959,
13,
365,
18,
20738,
67,
2575,
12,
2890,
18,
2575,
67,
723,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
599,
471,
871,
18,
1745,
353,
486,
599,
30,
4121,
67,
869,
67,
2896,
273,
871,
18,
1745,
309,
1549,
12,
2575,
18,
1745,
16,
2065,
4672,
4121,
67,
869,
67,
2896,
273,
871,
18,
1745,
3292,
1128,
3546,
394,
67,
2019,
273,
871,
18,
1745,
3292,
2019,
3546,
4209,
273,
261,
2890,
18,
12249,
67,
1258,
3445,
1777,
67,
4307,
67,
13950,
1777,
16,
365,
18,
12249,
67,
1258,
3445,
1777,
67,
10857,
13,
309,
365,
18,
291,
67,
15091,
30,
4209,
2
] |
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 imageData: raise ValueError("Cannot pass both filename and imageData")
|
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,
353,
67,
74,
7522,
33,
7036,
16,
24179,
33,
7036,
16,
1623,
67,
6345,
33,
7036,
4672,
468,
23123,
866,
326,
1775,
309,
1544,
353,
599,
471,
26229,
353,
599,
30,
1002,
2068,
2932,
14112,
358,
1342,
3344,
1544,
578,
26229,
7923,
309,
1544,
471,
26229,
30,
1002,
2068,
2932,
4515,
1342,
3937,
1544,
471,
26229,
7923,
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,
0,
0,
0,
0,
0,
0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,
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,
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,
353,
67,
74,
7522,
33,
7036,
16,
24179,
33,
7036,
16,
1623,
67,
6345,
33,
7036,
4672,
468,
23123,
866,
326,
1775,
309,
1544,
353,
599,
471,
26229,
353,
599,
30,
1002,
2068,
2932,
14112,
358,
1342,
3344,
1544,
578,
26229,
7923,
309,
1544,
471,
26229,
30,
1002,
2068,
2932,
4515,
1342,
3937,
1544,
471,
26229,
7923,
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
] |
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,
296,
10157,
11,
7195,
18,
3536,
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,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
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,
296,
10157,
11,
7195,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
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': res_obj.date_deadline or False, 'description': res_obj.description or '-', 'location': res_obj.location or '-', 'attendees': '<br>'.join(att_infos), 'user': res_obj.user_id and res_obj.user_id.name or 'OpenERP User', 'sign': sign, 'company': company } body = html_invitation % body_vals if mail_to and email_from: attach = self.get_ics_file(cr, uid, res_obj, context=context) tools.email_send( email_from, mail_to, sub, body, attach=attach and [('invitation.ics', attach)] or None, subtype='html', reply_to=email_from )
|
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, 'description': res_obj.description or '-', 'location': res_obj.location or '-', 'attendees': '<br>'.join(att_infos), 'user': res_obj.user_id and res_obj.user_id.name or 'OpenERP User', 'sign': sign, 'company': company } body = html_invitation % body_vals if mail_to and email_from: attach = self.get_ics_file(cr, uid, res_obj, context=context) tools.email_send( email_from, mail_to, sub, body, attach=attach and [('invitation.ics', attach)] or None, subtype='html', reply_to=email_from )
|
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 email_from: Email address for user sending the mail @param context: A standard dictionary for contextual values @return: True """ if not context: context = {}
|
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,
4672,
3536,
2479,
4791,
364,
871,
26441,
358,
871,
27645,
323,
281,
18,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
4555,
30,
326,
783,
729,
163,
227,
252,
87,
1599,
364,
4373,
4271,
16,
632,
891,
3258,
30,
987,
434,
27645,
20953,
163,
227,
252,
87,
7115,
18,
632,
891,
2699,
67,
2080,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
4672,
3536,
2479,
4791,
364,
871,
26441,
358,
871,
27645,
323,
281,
18,
632,
891,
4422,
30,
326,
783,
1027,
16,
628,
326,
2063,
3347,
16,
632,
891,
4555,
30,
326,
783,
729,
163,
227,
252,
87,
1599,
364,
4373,
4271,
16,
632,
891,
3258,
30,
987,
434,
27645,
20953,
163,
227,
252,
87,
7115,
18,
632,
891,
2699,
67,
2080,
30,
8166,
1758,
364,
729,
5431,
326,
4791,
632,
891,
819,
30,
432,
4529,
3880,
364,
22724,
924,
632,
2463,
30,
2
] |
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: timeinseconds = time.time() dst_in_effect = time.daylight and time.localtime(timeinseconds)[8] if dst_in_effect: offset = -time.altzone/60 else: offset = -time.timezone/60 if offset > 0: prefix = "+" elif offset < 0: prefix = "-" else: return "Z" # time is already in UTC hours, minutes = map(abs, divmod(offset, 60)) assert 0 <= hours <= 23 assert 0 <= minutes <= 59 return "%s%02d:%02d" % (prefix, hours, minutes)
|
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,
16,
453,
9081,
353,
300,
8642,
30,
713,
4982,
2548,
2456,
4087,
899,
471,
300,
6840,
30,
713,
3541,
18,
225,
10912,
13170,
71,
4369,
598,
4121,
1191,
957,
9334,
5527,
12990,
999,
18,
225,
971,
1158,
1237,
864,
16,
999,
326,
783,
813,
18,
225,
3536,
309,
813,
267,
7572,
353,
599,
30,
813,
267,
7572,
273,
813,
18,
957,
1435,
3046,
67,
267,
67,
13867,
273,
813,
18,
2881,
5099,
471,
813,
18,
3729,
957,
12,
957,
267,
7572,
25146,
28,
65,
309,
3046,
67,
267,
67,
13867,
30,
1384,
273,
300,
957,
18,
2390,
3486,
19,
4848,
469,
30,
1384,
273,
300,
957,
18,
12690,
19,
4848,
309,
1384,
405,
374,
30,
1633,
273,
17487,
1327,
1384,
411,
374,
30,
1633,
273,
7514,
469,
30,
327,
315,
62,
6,
468,
813,
353,
1818,
316,
9951,
225,
7507,
16,
6824,
273,
852,
12,
5113,
16,
26105,
12,
3348,
16,
4752,
3719,
1815,
374,
1648,
7507,
1648,
10213,
1815,
374,
1648,
6824,
1648,
14995,
327,
2213,
87,
9,
3103,
72,
5319,
3103,
72,
6,
738,
261,
3239,
16,
7507,
16,
6824,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
16,
453,
9081,
353,
300,
8642,
30,
713,
4982,
2548,
2456,
4087,
899,
471,
300,
6840,
30,
713,
3541,
18,
225,
10912,
13170,
71,
4369,
598,
4121,
1191,
957,
9334,
5527,
12990,
999,
18,
225,
971,
1158,
1237,
864,
16,
999,
326,
783,
813,
18,
225,
3536,
309,
813,
267,
7572,
353,
599,
30,
813,
267,
7572,
273,
813,
18,
957,
1435,
3046,
67,
267,
67,
13867,
273,
813,
18,
2881,
5099,
471,
813,
18,
3729,
957,
12,
957,
267,
7572,
25146,
28,
2
] |
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("Error in %s", source) # Begin SLB 2/24/99: Modified this loop to # call self.format_url() instead of referring # to the URL directly, since the URLs in these # triples is now a (URL, fragment) pair. The value # of the "source" variable comes from the list of # origins, and is a URL, not a pair. for url, rawlink, msg in triples: if rawlink != self.format_url(url): s = " (%s)" % rawlink else: s = "" self.message(" HREF %s%s\n msg %s", self.format_url(url), s, msg) # End SLB 2/24/99.
|
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,
18,
2452,
1435,
5550,
18,
3804,
1435,
364,
1084,
316,
5550,
30,
22388,
273,
365,
18,
4324,
63,
3168,
65,
365,
18,
2150,
2932,
7923,
309,
562,
12,
16857,
6089,
13,
405,
404,
30,
365,
18,
2150,
27188,
72,
9372,
316,
738,
87,
3113,
562,
12,
16857,
6089,
3631,
1084,
13,
469,
30,
365,
18,
2150,
2932,
668,
316,
738,
87,
3113,
1084,
13,
468,
14323,
348,
12995,
576,
19,
3247,
19,
2733,
30,
21154,
333,
2798,
358,
468,
745,
365,
18,
2139,
67,
718,
1435,
3560,
434,
1278,
20245,
468,
358,
326,
1976,
5122,
16,
3241,
326,
10414,
316,
4259,
468,
22388,
353,
2037,
279,
261,
1785,
16,
5481,
13,
3082,
18,
1021,
460,
468,
434,
326,
315,
3168,
6,
2190,
14535,
628,
326,
666,
434,
468,
28911,
16,
471,
353,
279,
1976,
16,
486,
279,
3082,
18,
364,
880,
16,
1831,
1232,
16,
1234,
316,
22388,
30,
309,
1831,
1232,
480,
365,
18,
2139,
67,
718,
12,
718,
4672,
272,
273,
315,
6142,
87,
2225,
738,
1831,
1232,
469,
30,
272,
273,
1408,
365,
18,
2150,
2932,
225,
670,
10771,
738,
87,
9,
87,
64,
82,
565,
1234,
738,
87,
3113,
365,
18,
2139,
67,
718,
12,
718,
3631,
272,
16,
1234,
13,
468,
4403,
348,
12995,
576,
19,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18,
2452,
1435,
5550,
18,
3804,
1435,
364,
1084,
316,
5550,
30,
22388,
273,
365,
18,
4324,
63,
3168,
65,
365,
18,
2150,
2932,
7923,
309,
562,
12,
16857,
6089,
13,
405,
404,
30,
365,
18,
2150,
27188,
72,
9372,
316,
738,
87,
3113,
562,
12,
16857,
6089,
3631,
1084,
13,
469,
30,
365,
18,
2150,
2932,
668,
316,
738,
87,
3113,
1084,
13,
468,
14323,
348,
12995,
576,
19,
3247,
19,
2733,
30,
21154,
333,
2798,
358,
468,
745,
365,
18,
2139,
2
] |
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() while val[0] != 'network-script': val = pin.get_val() if val[1] == "network-bridge": netenv = "bridge" elif val[1] == "network-route": netenv = "route" elif val[1] == "network-nat": netenv = "nat" else: raise NetworkError("Failed to get network env from xend config") configfile.close() return netenv
|
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,
486,
619,
1425,
30,
619,
1425,
273,
2206,
14175,
19,
92,
275,
19,
92,
409,
17,
1425,
18,
87,
23829,
6,
225,
775,
30,
642,
768,
273,
1696,
12,
92,
1425,
16,
296,
86,
6134,
1335,
30,
327,
315,
18337,
6,
225,
348,
273,
642,
768,
18,
896,
1435,
7092,
273,
6783,
1435,
7092,
18,
2630,
12,
55,
13,
7092,
18,
2630,
67,
9339,
1435,
1244,
273,
7092,
18,
588,
67,
1125,
1435,
1323,
1244,
63,
20,
65,
480,
296,
5185,
17,
4263,
4278,
1244,
273,
7092,
18,
588,
67,
1125,
1435,
225,
309,
1244,
63,
21,
65,
422,
315,
5185,
17,
18337,
6877,
2901,
3074,
273,
315,
18337,
6,
1327,
720,
67,
1125,
63,
20,
65,
422,
315,
5185,
17,
5547,
6877,
2901,
3074,
273,
315,
5547,
6,
1327,
1244,
63,
21,
65,
422,
315,
5185,
17,
18757,
6877,
2901,
3074,
273,
315,
18757,
6,
469,
30,
1002,
5128,
668,
2932,
2925,
358,
336,
2483,
1550,
628,
619,
409,
642,
7923,
225,
642,
768,
18,
4412,
1435,
327,
2901,
3074,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
486,
619,
1425,
30,
619,
1425,
273,
2206,
14175,
19,
92,
275,
19,
92,
409,
17,
1425,
18,
87,
23829,
6,
225,
775,
30,
642,
768,
273,
1696,
12,
92,
1425,
16,
296,
86,
6134,
1335,
30,
327,
315,
18337,
6,
225,
348,
273,
642,
768,
18,
896,
1435,
7092,
273,
6783,
1435,
7092,
18,
2630,
12,
55,
13,
7092,
18,
2630,
67,
9339,
1435,
1244,
273,
7092,
18,
588,
67,
1125,
1435,
1323,
1244,
63,
20,
65,
480,
296,
5185,
17,
4263,
4278,
2
] |
['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,
3712,
327,
1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,
309,
1140,
18,
803,
18,
588,
10838,
12,
768,
22,
13,
411,
1140,
18,
803,
18,
588,
10838,
12,
768,
21,
4672,
327,
1053,
327,
1083,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,
309,
1140,
18,
803,
18,
588,
10838,
12,
768,
22,
13,
411,
1140,
18,
803,
18,
588,
10838,
12,
768,
21,
4672,
327,
1053,
327,
1083,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
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,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 the url of the largest photo photoUrl = flickrripper.getPhotoUrl(photoSizes) #Should download the photo only once photo = flickrripper.downloadPhoto(photoUrl) #Don't upload duplicate images, should add override option duplicates = flickrripper.findDuplicateImages(photo) if duplicates: wikipedia.output(u'Found duplicate image at %s' % duplicates.pop()) else: filename = flickrripper.getFilename(photoInfo, project=u'WLM') flinfoDescription = flickrripper.getFlinfoDescription(photo_id) rijksmonumentid = getRijksmonumentid(photoInfo) photoDescription = buildDescription(flinfoDescription, flickrreview, reviewer, addCategory, removeCategories, rijksmonumentid) #wikipedia.output(photoDescription) if not autonomous: (newPhotoDescription, newFilename, skip)=Tkdialog(photoDescription, photo, filename).run() else: newPhotoDescription=photoDescription newFilename=filename skip=False 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
|
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,
33,
8381,
16,
2059,
4708,
1481,
33,
8381,
4672,
9163,
4389,
279,
2202,
29458,
10701,
9163,
309,
10701,
67,
350,
30,
1172,
10701,
67,
350,
261,
17232,
966,
16,
10701,
11923,
13,
273,
1183,
1200,
523,
625,
457,
18,
588,
19934,
12,
2242,
16254,
16,
10701,
67,
350,
13,
309,
225,
1183,
1200,
523,
625,
457,
18,
291,
5042,
13211,
12,
17232,
966,
4672,
468,
967,
326,
880,
434,
326,
12756,
10701,
10701,
1489,
273,
1183,
1200,
523,
625,
457,
18,
588,
19934,
1489,
12,
17232,
11923,
13,
468,
14309,
4224,
326,
10701,
1338,
3647,
10701,
273,
1183,
1200,
523,
625,
457,
18,
7813,
19934,
12,
17232,
1489,
13,
225,
468,
22293,
1404,
3617,
6751,
4602,
16,
1410,
527,
3849,
1456,
11211,
273,
1183,
1200,
523,
625,
457,
18,
4720,
11826,
8946,
12,
17232,
13,
309,
11211,
30,
21137,
18,
2844,
12,
89,
11,
2043,
6751,
1316,
622,
738,
87,
11,
738,
11211,
18,
5120,
10756,
469,
30,
1544,
273,
1183,
1200,
523,
625,
457,
18,
588,
5359,
12,
17232,
966,
16,
1984,
33,
89,
11,
59,
17063,
6134,
1183,
1376,
3291,
273,
1183,
1200,
523,
625,
457,
18,
588,
2340,
1376,
3291,
12,
17232,
67,
350,
13,
225,
436,
8302,
7904,
2586,
650,
350,
273,
4170,
8302,
7904,
2586,
650,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33,
8381,
16,
2059,
4708,
1481,
33,
8381,
4672,
9163,
4389,
279,
2202,
29458,
10701,
9163,
309,
10701,
67,
350,
30,
1172,
10701,
67,
350,
261,
17232,
966,
16,
10701,
11923,
13,
273,
1183,
1200,
523,
625,
457,
18,
588,
19934,
12,
2242,
16254,
16,
10701,
67,
350,
13,
309,
225,
1183,
1200,
523,
625,
457,
18,
291,
5042,
13211,
12,
17232,
966,
4672,
468,
967,
326,
880,
434,
326,
12756,
10701,
10701,
1489,
273,
1183,
1200,
523,
625,
457,
18,
588,
19934,
2
] |
"""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,
1435,
309,
486,
7081,
30,
327,
225,
2077,
273,
7081,
18,
3645,
2932,
2892,
3113,
13666,
1106,
11,
2497,
6968,
1766,
28179,
11,
97,
2934,
1080,
225,
327,
2077,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
1435,
309,
486,
7081,
30,
327,
225,
2077,
273,
7081,
18,
3645,
2932,
2892,
3113,
13666,
1106,
11,
2497,
6968,
1766,
28179,
11,
97,
2934,
1080,
225,
327,
2077,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 += ' <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">\n' str += ' <TR VALIGN="top">\n'
|
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,
792,
2668,
12599,
3215,
6134,
609,
1011,
2368,
7775,
7383,
1546,
11589,
3215,
6,
605,
7954,
1546,
20,
6,
22631,
1546,
6625,
9,
5187,
609,
1011,
296,
385,
2247,
14461,
26710,
1546,
20,
6,
30609,
10989,
1546,
7,
69,
20,
71,
20,
1403,
6,
385,
2247,
3045,
52,
2226,
1360,
1546,
20,
6,
5333,
82,
11,
609,
1011,
296,
225,
411,
4349,
5333,
82,
11,
609,
1011,
296,
565,
411,
23409,
22631,
1546,
6625,
16407,
5333,
82,
11,
609,
1011,
296,
1377,
411,
7775,
605,
7954,
1546,
20,
6,
385,
2247,
14461,
26710,
1546,
20,
6,
385,
2247,
3045,
52,
2226,
1360,
1546,
20,
6,
5333,
82,
11,
609,
1011,
296,
3639,
411,
4349,
5143,
10452,
1546,
3669,
6,
5333,
82,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
792,
2668,
12599,
3215,
6134,
609,
1011,
2368,
7775,
7383,
1546,
11589,
3215,
6,
605,
7954,
1546,
20,
6,
22631,
1546,
6625,
9,
5187,
609,
1011,
296,
385,
2247,
14461,
26710,
1546,
20,
6,
30609,
10989,
1546,
7,
69,
20,
71,
20,
1403,
6,
385,
2247,
3045,
52,
2226,
1360,
1546,
20,
6,
5333,
82,
11,
609,
1011,
296,
225,
411,
4349,
5333,
82,
11,
609,
1011,
296,
565,
411,
23409,
22631,
1546,
6625,
16407,
5333,
82,
11,
609,
1011,
296,
1377,
411,
7775,
2
] |
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([a,b*c]) AbelianGroup( 2, [0, 0]) sage: F.subgroup([b*c,d]) AbelianGroup( 2, [0, 64]) sage: F.subgroup([a*b,c^6,d],names = list("xyz")) AbelianGroup( 3, [0, 5, 64]) sage: G = F.subgroup([a*b,c^6,d],names = list("xyz")) sage: G AbelianGroup( 3, [0, 5, 64]) sage: print G Subgroup of Abelian group on 5 generators (a, b, c, d, e) with invariants [0, 0, 30, 64, 729] generated by [a*b, c^6, d] with elementary divisors [0, 5, 64] sage: x,y,z = G.gens() sage: x.order() Infinity sage: y.order() 5 sage: z.order() 64 sage: A = AbelianGroup(5,[3, 5, 5, 7, 8], names = "abcde") sage: a,b,c,d,e = A.gens() sage: A.subgroup([a,b]) AbelianGroup( 2, [3, 5]) sage: A.subgroup([a,b,c,d^2,e]) AbelianGroup( 5, [3, 5, 5, 7, 8]) sage: A.subgroup([a,b,c,d^2,e^2]) AbelianGroup( 5, [3, 4, 5, 5, 7]) sage: B = A.subgroup([a^3,b,c,d,e^2]); B AbelianGroup( 4, [4, 5, 5, 7]) sage: B.invariants() [4, 5, 5, 7] sage: A = AbelianGroup(4,[1009, 2003, 3001, 4001], names = "abcd") sage: a,b,c,d = A.gens() sage: B = A.subgroup([a^3,b,c,d]) sage: B.invariants() [1009, 2003, 3001, 4001] sage: A.order() 24266473210027 sage: B.order() 24266473210027 sage: A = AbelianGroup(4,[1008, 2003, 3001, 4001], names = "abcd") sage: a,b,c,d = A.gens() sage: B = A.subgroup([a^3,b,c,d]) sage: B AbelianGroup( 6, [3, 7, 16, 2003, 3001, 4001]) sage: print B Subgroup of Abelian group on 4 generators (a, b, c, d) with invariants [1008, 2003, 3001, 4001] generated by [a^3, b, c, d] with elementary divisors [3, 7, 16, 2003, 3001, 4001] Infinite groups can also be handled: sage: G = AbelianGroup([3,4,0], names = "abc") sage: a,b,c = G.gens() sage: F = G.subgroup([a,b^2,c]); F AbelianGroup( 3, [0, 3, 4]) sage: F.invariants() [0, 3, 4] sage: F.gens() [a, b^2, c] sage: F.order() Infinity
|
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,
5082,
16,
1105,
16,
27,
5540,
6487,
1973,
273,
666,
2932,
18947,
323,
6,
3719,
272,
410,
30,
279,
16,
70,
16,
71,
16,
72,
16,
73,
273,
478,
18,
23730,
1435,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
66,
23,
16,
70,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
374,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
71,
5717,
9771,
292,
2779,
1114,
12,
890,
16,
306,
22,
16,
890,
16,
1381,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
16,
71,
5717,
9771,
292,
2779,
3756,
353,
362,
18435,
358,
2285,
619,
2285,
19,
22,
62,
619,
2285,
19,
23,
62,
619,
2285,
19,
25,
62,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
16,
70,
14,
71,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
374,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
70,
14,
71,
16,
72,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
5178,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
14,
70,
16,
71,
66,
26,
16,
72,
6487,
1973,
273,
666,
2932,
17177,
6,
3719,
9771,
292,
2779,
1114,
12,
890,
16,
306,
20,
16,
1381,
16,
5178,
5717,
272,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5082,
16,
1105,
16,
27,
5540,
6487,
1973,
273,
666,
2932,
18947,
323,
6,
3719,
272,
410,
30,
279,
16,
70,
16,
71,
16,
72,
16,
73,
273,
478,
18,
23730,
1435,
272,
410,
30,
478,
18,
1717,
1655,
3816,
69,
66,
23,
16,
70,
5717,
9771,
292,
2779,
1114,
12,
576,
16,
306,
20,
16,
374,
5717,
272,
410,
30,
478,
18,
1717,
1655,
3816,
71,
5717,
9771,
292,
2779,
1114,
12,
890,
16,
306,
22,
16,
890,
16,
1381,
5717,
2
] |
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,
87,
6,
738,
261,
856,
16,
460,
16,
498,
16,
302,
63,
856,
22643,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
87,
6,
738,
261,
856,
16,
460,
16,
498,
16,
302,
63,
856,
22643,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
12,
768,
13,
7586,
273,
2623,
18,
74,
67,
17782,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Abelian group on 2 generators (x, y) with invariants [2, 3]
|
AbelianGroup( 2, [2, 3])
|
def kernel(self): """ Only works for finite groups.
|
1ca18bca290f184bea6cb10d93bc2595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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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_path)[1] else: key_name = None key = bucket.new_key(key_name) key.set_contents_from_filename(file_path) print 'putting file %s as %s.%s' % (file_path, bucket_name, key.name) successful = True except S3ResponseError, e: print 'caught S3Error' print e time.sleep(self.RetryDelay) return key
|
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,
67,
803,
13,
6873,
273,
1083,
818,
67,
2007,
273,
374,
1323,
486,
6873,
471,
818,
67,
2007,
411,
365,
18,
7539,
1380,
30,
775,
30,
818,
67,
2007,
1011,
404,
2783,
273,
365,
18,
588,
67,
7242,
12,
7242,
67,
529,
13,
309,
365,
18,
27297,
67,
768,
67,
529,
30,
498,
67,
529,
273,
1140,
18,
803,
18,
4939,
12,
768,
67,
803,
25146,
21,
65,
469,
30,
498,
67,
529,
273,
599,
498,
273,
2783,
18,
2704,
67,
856,
12,
856,
67,
529,
13,
498,
18,
542,
67,
3980,
67,
2080,
67,
3459,
12,
768,
67,
803,
13,
1172,
296,
458,
1787,
585,
738,
87,
487,
738,
87,
7866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,
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,
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,
67,
803,
13,
6873,
273,
1083,
818,
67,
2007,
273,
374,
1323,
486,
6873,
471,
818,
67,
2007,
411,
365,
18,
7539,
1380,
30,
775,
30,
818,
67,
2007,
1011,
404,
2783,
273,
365,
18,
588,
67,
7242,
12,
7242,
67,
529,
13,
309,
365,
18,
27297,
67,
768,
67,
529,
30,
498,
67,
529,
273,
1140,
18,
803,
18,
4939,
12,
768,
67,
803,
25146,
21,
65,
469,
30,
498,
67,
529,
273,
599,
498,
273,
2783,
18,
2704,
67,
2
] |
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), ...] """ if res_output_dir and type(res_output_dir) != types.StringType and type(res_output_dir) != types.UnicodeType: raise TypeError, "res_output_dir must be a string" if idList and type(idList) != types.ListType: raise TypeError, "idList must be a list of id [id1, id2,...]" from django.db import connection cur = connection.cursor() q = """ SELECT f.id, f.prevrelgrade, f.prevrelcomment, i.name, i.id, i.checksum FROM youpi_plugin_fitsin AS f, youpi_processing_task AS t, youpi_rel_it AS r, youpi_image AS i WHERE f.task_id=t.id AND r.task_id=f.task_id AND r.image_id = i.id AND t.success=1""" if idList: q += """ AND i.id IN (%s)""" % ','.join([str(r) for r in idList]) if res_output_dir: q += """ AND t.results_output_dir="%s";""" % res_output_dir if q.find(';') == -1: q += ';' cur.execute(q) res = cur.fetchall() tmp = {} for r in res: # Latest grade grades = FirstQEval.objects.filter(fitsin__id = r[0]).order_by('-date') imgName = r[3] # Looks for user-defined grades if grades: if not tmp.has_key(imgName): tmp[imgName] = [] # Keep custom comment in priority, if any if grades[0].custom_comment: tmp[imgName].append((grades[0].grade, grades[0].date, grades[0].custom_comment, grades[0].fitsin.id, r[4], r[5], grades[0].user)) else: # Keep predefined comment tmp[imgName].append((grades[0].grade, grades[0].date, grades[0].comment.comment, grades[0].fitsin.id, r[4], r[5], grades[0].user)) # Now looks for a previous release grade if r[1]: if not tmp.has_key(imgName): tmp[imgName] = [] # Add a fake datetime object to make sure this grade is the older one tmp[imgName].append([r[1], datetime.datetime(datetime.MINYEAR, 1, 1), r[2], r[0], r[4], r[5]]) # Now, only keep the latest grade for each image header = ('Image name', 'Grade', 'Datetime', 'Comment', 'Image ID', 'Fitsin ID', 'Checksum', 'Graded by',) res = [] for imgName, grades in tmp.iteritems(): if len(grades) == 1: res.append((imgName, grades[0][0], grades[0][1], grades[0][2], grades[0][3], grades[0][4], grades[0][5], grades[0][6])) continue latest = grades[0] for k in range(1, len(grades)): if grades[k][1] > latest[1]: latest = grades[k] res.append((imgName, latest[0], latest[1], latest[2], latest[3], latest[4], latest[5], grades[0][6])) # Sort by image name res.sort(cmp = lambda x,y: cmp(x[0], y[0])) res.insert(0, header) return res
|
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,
364,
1517,
1316,
18,
19118,
729,
17,
2178,
471,
2416,
3992,
24396,
854,
5950,
364,
21717,
1779,
471,
2879,
18,
225,
632,
2463,
279,
666,
434,
10384,
306,
12,
2730,
508,
16,
7324,
16,
2879,
3631,
1372,
65,
3536,
225,
309,
400,
67,
2844,
67,
1214,
471,
618,
12,
455,
67,
2844,
67,
1214,
13,
480,
1953,
18,
780,
559,
471,
618,
12,
455,
67,
2844,
67,
1214,
13,
480,
1953,
18,
16532,
559,
30,
1002,
3580,
16,
315,
455,
67,
2844,
67,
1214,
1297,
506,
279,
533,
6,
225,
309,
29174,
471,
618,
12,
350,
682,
13,
480,
1953,
18,
19366,
30,
1002,
3580,
16,
315,
350,
682,
1297,
506,
279,
666,
434,
612,
306,
350,
21,
16,
612,
22,
16,
2777,
4279,
225,
628,
13710,
18,
1966,
1930,
1459,
662,
273,
1459,
18,
9216,
1435,
1043,
273,
3536,
9111,
284,
18,
350,
16,
284,
18,
10001,
2878,
3994,
16,
284,
18,
10001,
2878,
3469,
16,
277,
18,
529,
16,
277,
18,
350,
16,
277,
18,
15149,
4571,
677,
83,
416,
77,
67,
4094,
67,
18352,
267,
5355,
284,
16,
677,
83,
416,
77,
67,
10632,
67,
4146,
5355,
268,
16,
677,
83,
416,
77,
67,
2878,
67,
305,
5355,
436,
16,
677,
83,
416,
77,
67,
2730,
5355,
277,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
364,
1517,
1316,
18,
19118,
729,
17,
2178,
471,
2416,
3992,
24396,
854,
5950,
364,
21717,
1779,
471,
2879,
18,
225,
632,
2463,
279,
666,
434,
10384,
306,
12,
2730,
508,
16,
7324,
16,
2879,
3631,
1372,
65,
3536,
225,
309,
400,
67,
2844,
67,
1214,
471,
618,
12,
455,
67,
2844,
67,
1214,
13,
480,
1953,
18,
780,
559,
471,
618,
12,
455,
67,
2844,
67,
1214,
13,
480,
1953,
18,
16532,
559,
30,
1002,
3580,
16,
315,
455,
67,
2844,
67,
2
] |
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: ", strides if not numpy: print >> output, "byteoffset: 0" if len(strides) > 0: bs = obj.strides[0] else: bs = obj.itemsize print >> output, "bytestride: ", bs print >> output, "itemsize: ", obj.itemsize print >> output, "aligned: ", bp(obj.flags.aligned) print >> output, "contiguous: ", bp(obj.flags.contiguous) if numpy: print >> output, "fortran: ", obj.flags.fortran if not numpy: print >> output, "buffer: ", repr(obj.data) if not numpy: extra = " (DEBUG ONLY)" tic = "'" else: extra = "" tic = "" print >> output, "data pointer: %s%s" % (hex(obj.ctypes._as_parameter_), extra) print >> output, "byteorder: ", endian = obj.dtype.byteorder if endian in ['|','=']: print >> output, "%s%s%s" % (tic, sys.byteorder, tic) byteswap = False elif endian == '>': print >> output, "%sbig%s" % (tic, tic) byteswap = sys.byteorder != "big" else: print >> output, "%slittle%s" % (tic, tic) byteswap = sys.byteorder != "little" print >> output, "byteswap: ", bp(byteswap) if not numpy: print >> output, "type: ", typefrom(obj).name else: print >> output, "type: %s" % obj.dtype
|
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,
3869,
12,
2603,
16,
4940,
1106,
972,
2187,
618,
12,
2603,
3719,
309,
3972,
30,
8442,
273,
3869,
12,
6429,
16,
4940,
529,
972,
2187,
2028,
13,
469,
30,
8442,
273,
2028,
1172,
1671,
876,
16,
315,
1106,
30,
3104,
8442,
1172,
1671,
876,
16,
315,
4867,
30,
3104,
1081,
18,
4867,
21626,
273,
1081,
18,
701,
4369,
1172,
1671,
876,
16,
315,
701,
4369,
30,
3104,
21626,
309,
486,
3972,
30,
1172,
1671,
876,
16,
315,
7229,
3348,
30,
374,
6,
309,
562,
12,
701,
4369,
13,
405,
374,
30,
7081,
273,
1081,
18,
701,
4369,
63,
20,
65,
469,
30,
7081,
273,
1081,
18,
1726,
1467,
1172,
1671,
876,
16,
315,
3890,
313,
831,
30,
3104,
7081,
1172,
1671,
876,
16,
315,
1726,
1467,
30,
3104,
1081,
18,
1726,
1467,
1172,
1671,
876,
16,
315,
20677,
30,
3104,
9107,
12,
2603,
18,
7133,
18,
20677,
13,
1172,
1671,
876,
16,
315,
30611,
30,
3104,
9107,
12,
2603,
18,
7133,
18,
30611,
13,
309,
3972,
30,
1172,
1671,
876,
16,
315,
1884,
13171,
30,
3104,
1081,
18,
7133,
18,
1884,
13171,
309,
486,
3972,
30,
1172,
1671,
876,
16,
315,
4106,
30,
3104,
8480,
12,
2603,
18,
892,
13,
309,
486,
3972,
30,
2870,
273,
315,
261,
9394,
20747,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3869,
12,
2603,
16,
4940,
1106,
972,
2187,
618,
12,
2603,
3719,
309,
3972,
30,
8442,
273,
3869,
12,
6429,
16,
4940,
529,
972,
2187,
2028,
13,
469,
30,
8442,
273,
2028,
1172,
1671,
876,
16,
315,
1106,
30,
3104,
8442,
1172,
1671,
876,
16,
315,
4867,
30,
3104,
1081,
18,
4867,
21626,
273,
1081,
18,
701,
4369,
1172,
1671,
876,
16,
315,
701,
4369,
30,
3104,
21626,
309,
486,
3972,
30,
1172,
1671,
876,
16,
315,
7229,
3348,
30,
374,
6,
2
] |
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,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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(plugin_name, plugin_file) if path == auto_enable: enable_plugin(env, plugin_name) except Exception, e: env.log.error('Failed to load plugin from %s', plugin_file, exc_info=True)
|
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,
5701,
12,
803,
16,
19962,
2074,
26112,
364,
1909,
67,
768,
316,
1909,
67,
2354,
30,
775,
30,
1909,
67,
529,
273,
1140,
18,
803,
18,
13909,
12,
4094,
67,
768,
10531,
17,
23,
5717,
1550,
18,
1330,
18,
4148,
2668,
10515,
585,
1909,
738,
87,
628,
738,
87,
11,
738,
521,
261,
4094,
67,
529,
16,
1909,
67,
768,
3719,
1605,
273,
1646,
18,
945,
67,
3168,
12,
4094,
67,
529,
16,
1909,
67,
768,
13,
309,
589,
422,
3656,
67,
7589,
30,
389,
7589,
67,
4094,
12,
3074,
16,
1909,
67,
529,
13,
1335,
1185,
16,
425,
30,
1550,
18,
1330,
18,
1636,
2668,
2925,
358,
1262,
1909,
628,
738,
87,
2187,
1909,
67,
768,
16,
3533,
67,
1376,
33,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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273,
4715,
12,
538,
18,
803,
18,
5701,
12,
803,
16,
19962,
2074,
26112,
364,
1909,
67,
768,
316,
1909,
67,
2354,
30,
775,
30,
1909,
67,
529,
273,
1140,
18,
803,
18,
13909,
12,
4094,
67,
768,
10531,
17,
23,
5717,
1550,
18,
1330,
18,
4148,
2668,
10515,
585,
1909,
738,
87,
628,
738,
87,
11,
738,
521,
261,
4094,
67,
529,
16,
1909,
67,
768,
3719,
1605,
273,
1646,
18,
945,
67,
3168,
12,
4094,
67,
529,
16,
1909,
67,
768,
13,
309,
589,
422,
3656,
67,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (default off) -e, --echo: enable local echo (default off) -c, --cr: disable CR -> CR+LF translation """ % sys.argv[0]
|
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,
30,
1756,
16,
279,
1300,
16,
805,
273,
374,
578,
279,
2346,
508,
300,
70,
16,
1493,
12124,
1100,
33,
12536,
12587,
30,
9846,
1100,
5141,
16,
805,
19332,
713,
300,
86,
16,
1493,
86,
3428,
299,
87,
30,
565,
4237,
534,
8047,
19,
1268,
55,
4693,
3325,
261,
1886,
3397,
13,
300,
92,
16,
1493,
92,
265,
92,
3674,
30,
282,
4237,
17888,
4693,
3325,
261,
1886,
3397,
13,
300,
73,
16,
1493,
12946,
30,
1377,
4237,
1191,
3376,
261,
1886,
3397,
13,
300,
71,
16,
1493,
3353,
30,
3639,
4056,
6732,
317,
6732,
15,
9105,
4794,
225,
3536,
738,
2589,
18,
19485,
63,
20,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
30,
1756,
16,
279,
1300,
16,
805,
273,
374,
578,
279,
2346,
508,
300,
70,
16,
1493,
12124,
1100,
33,
12536,
12587,
30,
9846,
1100,
5141,
16,
805,
19332,
713,
300,
86,
16,
1493,
86,
3428,
299,
87,
30,
565,
4237,
534,
8047,
19,
1268,
55,
4693,
3325,
261,
1886,
3397,
13,
300,
92,
16,
1493,
92,
265,
92,
3674,
30,
282,
4237,
17888,
4693,
3325,
261,
1886,
3397,
13,
300,
73,
16,
1493,
12946,
30,
1377,
4237,
1191,
3376,
261,
1886,
3397,
2
] |
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('must_escape_dos_devices', \ src_edd or local_edd) log.Log("Restore: must_escape_dos_devices = %d" % \ (src_edd or local_edd), 4)
|
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,
315,
4816,
67,
2556,
69,
3113,
599,
13,
353,
486,
599,
30,
1705,
67,
329,
72,
273,
365,
18,
4816,
67,
2556,
69,
18,
6939,
67,
19219,
67,
12506,
469,
30,
1705,
67,
329,
72,
273,
374,
775,
30,
2346,
67,
13832,
273,
7138,
1214,
18,
6923,
2932,
18196,
7923,
309,
2346,
67,
13832,
18,
80,
5642,
13332,
1191,
67,
329,
72,
273,
404,
469,
30,
1191,
67,
329,
72,
273,
374,
1335,
261,
4618,
668,
4672,
1191,
67,
329,
72,
273,
404,
1000,
9314,
18,
1891,
5160,
2668,
11926,
67,
6939,
67,
19219,
67,
12506,
2187,
521,
1705,
67,
329,
72,
578,
1191,
67,
329,
72,
13,
613,
18,
1343,
2932,
10874,
30,
1297,
67,
6939,
67,
19219,
67,
12506,
273,
738,
72,
6,
738,
521,
261,
4816,
67,
329,
72,
578,
1191,
67,
329,
72,
3631,
1059,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
486,
599,
30,
1705,
67,
329,
72,
273,
365,
18,
4816,
67,
2556,
69,
18,
6939,
67,
19219,
67,
12506,
469,
30,
1705,
67,
329,
72,
273,
374,
775,
30,
2346,
67,
13832,
273,
7138,
1214,
18,
6923,
2932,
18196,
7923,
309,
2346,
67,
13832,
18,
80,
5642,
13332,
1191,
67,
329,
72,
273,
404,
469,
30,
1191,
67,
329,
72,
273,
374,
1335,
261,
4618,
668,
4672,
1191,
67,
329,
72,
273,
404,
1000,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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_disable_menus()
|
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,
15066,
13,
365,
6315,
542,
67,
6769,
67,
2372,
67,
869,
67,
5990,
67,
7528,
1435,
365,
6315,
2640,
67,
20292,
1435,
365,
18,
2747,
10153,
12,
1425,
18,
588,
67,
5668,
67,
1896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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
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,
15066,
13,
365,
6315,
542,
67,
6769,
67,
2372,
67,
869,
67,
5990,
67,
7528,
1435,
365,
6315,
2640,
67,
20292,
1435,
365,
18,
2747,
10153,
12,
1425,
18,
588,
67,
5668,
67,
1896,
381,
1235,
10756,
365,
18,
694,
4247,
12,
25039,
67,
1985,
13,
365,
18,
81,
13053,
67,
1945,
67,
26417,
18,
1564,
12,
1425,
18,
588,
67,
4500,
67,
26417,
10756,
365,
6315,
7589,
67,
8394,
67,
26065,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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 j in range(no_of_cols): if data_matrix[i][j] == 0: no_of_NAs += 1 NA_ratio = no_of_NAs/no_of_cols strain_index2no_of_NAs[i] = NA_ratio if NA_ratio >= row_cutoff: rows_with_too_many_NAs_set.add(i) if debug: print print 'rows_with_too_many_NAs_set' print rows_with_too_many_NAs_set sys.stderr.write("%s strains removed, done.\n"%len(rows_with_too_many_NAs_set)) return rows_with_too_many_NAs_set, strain_index2no_of_NAs
|
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,
2039,
3536,
2589,
18,
11241,
18,
2626,
2932,
18939,
2595,
598,
28182,
4993,
1545,
738,
87,
18483,
17105,
492,
67,
16131,
3719,
1158,
67,
792,
67,
3870,
16,
1158,
67,
792,
67,
6842,
273,
501,
67,
5667,
18,
4867,
2595,
67,
1918,
67,
16431,
67,
9353,
67,
50,
1463,
67,
542,
273,
1000,
1435,
16853,
67,
1615,
22,
2135,
67,
792,
67,
50,
1463,
273,
2618,
364,
277,
316,
1048,
12,
2135,
67,
792,
67,
3870,
4672,
1158,
67,
792,
67,
50,
1463,
273,
374,
18,
20,
364,
525,
316,
1048,
12,
2135,
67,
792,
67,
6842,
4672,
309,
501,
67,
5667,
63,
77,
6362,
78,
65,
422,
374,
30,
1158,
67,
792,
67,
50,
1463,
1011,
404,
28182,
67,
9847,
273,
1158,
67,
792,
67,
50,
1463,
19,
2135,
67,
792,
67,
6842,
16853,
67,
1615,
22,
2135,
67,
792,
67,
50,
1463,
63,
77,
65,
273,
28182,
67,
9847,
309,
28182,
67,
9847,
1545,
1027,
67,
16131,
30,
2595,
67,
1918,
67,
16431,
67,
9353,
67,
50,
1463,
67,
542,
18,
1289,
12,
77,
13,
309,
1198,
30,
1172,
1172,
296,
3870,
67,
1918,
67,
16431,
67,
9353,
67,
50,
1463,
67,
542,
11,
1172,
2595,
67,
1918,
67,
16431,
67,
9353,
67,
50,
1463,
67,
542,
2589,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2039,
3536,
2589,
18,
11241,
18,
2626,
2932,
18939,
2595,
598,
28182,
4993,
1545,
738,
87,
18483,
17105,
492,
67,
16131,
3719,
1158,
67,
792,
67,
3870,
16,
1158,
67,
792,
67,
6842,
273,
501,
67,
5667,
18,
4867,
2595,
67,
1918,
67,
16431,
67,
9353,
67,
50,
1463,
67,
542,
273,
1000,
1435,
16853,
67,
1615,
22,
2135,
67,
792,
67,
50,
1463,
273,
2618,
364,
277,
316,
1048,
12,
2135,
67,
792,
67,
3870,
4672,
1158,
67,
792,
67,
50,
2
] |
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,
9340,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
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,
9340,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
7444,
2506,
364,
20389,
67,
321,
316,
365,
18,
588,
67,
80,
2846,
67,
4683,
13332,
1058,
67,
350,
273,
283,
18,
1916,
12,
321,
67,
4951,
16,
20389,
67,
321,
2934,
1655,
12,
21,
13,
29759,
18,
2725,
67,
383,
304,
67,
2327,
12,
3146,
67,
350,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
7444,
2506,
364,
20389,
67,
321,
316,
365,
18,
588,
67,
80,
2846,
67,
4683,
13332,
1058,
67,
350,
273,
283,
18,
1916,
12,
321,
67,
4951,
16,
20389,
67,
321,
2934,
1655,
12,
21,
13,
29759,
18,
2725,
67,
383,
304,
67,
2327,
12,
3146,
67,
350,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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] * 900 w = [0.0] * 900 yr = [0.0] * 900 fpar = [0.0] * 20 rmsp = [0.0] * 20 g.rngbrh = g.rngbrf / 2 g.rbyrcf = earth.radius / g.rngbrf g.rbyrch = earth.radius / g.rngbrh g.cscrif = math.cos(g.rngbrf / earth.radius) g.cscrih = math.cos(g.rngbrh / earth.radius) g.isrData = [] g.isuData = [] # Open output files for some extra logging # # Combination info f66 = open("log/PApars.statn.log.GHCN.CL.1000.20", "w") # Station usage stats f77 = open("log/PApars.statn.use.GHCN.CL.1000.20", "w") # Isolated urban stations f79 = open("log/PApars.noadj.stations.list", "w") # for debugging f78 = open("work/PApars.pre-flags", "w") last_year = int(open('work/GHCN.last_year', 'r').read().strip()) iyoff = 1879 iyrm = last_year - iyoff nyrsin = iyrm g.mbad = 9999 g.xbad = float(9999) isu = 0 isr = 0 i1snow = 1 g.isrData = [] g.isuData = [] idata = [] for (dict, anomalies) in anomaly_stream: idata.extend(anomalies) mfcur = dict['first'] - iyoff length = len(anomalies) # throw away some precision in lat/lon for compatibility with Fortran lat = 0.1 * math.floor(dict['lat']* 10 + 0.5) lon = 0.1 * math.floor(dict['lon']* 10 + 0.5) # note isr = rural stations, isu = non-rural stations if ((dict['US-brightness'] == ' ' and dict['pop'] == 'R') or dict['US-brightness'] == '1'): d = Struct() g.isrData.append(d) d.mfsr = mfcur d.i1sr = i1snow d.ilsr = i1snow + length - 1 d.cslatr = math.cos(lat * g.pi180) d.snlatr = math.sin(lat * g.pi180) d.cslonr = math.cos(lon * g.pi180) d.snlonr = math.sin(lon * g.pi180) d.idr = int(dict['id'][3:]) else: d = Struct() g.isuData.append(d) d.mfsu = mfcur d.i1su = i1snow d.ilsu = i1snow + length - 1 d.cslatu = math.cos(lat * g.pi180) d.snlatu = math.sin(lat * g.pi180) d.cslonu = math.cos(lon * g.pi180) d.snlonu = math.sin(lon * g.pi180) d.idu = int(dict['id'][3:]) d.cc = dict['id'][:3] i1snow = i1snow + length nstau = len(g.isuData) # total number of bright / urban or dim / sm.town stations nstar = len(g.isrData) # total number of dark / rural stations ldtot = i1snow - 1 # total length of idata used g.log.write(" number of rural/urban stations %11d %11d\n" % (nstar, nstau)) # Convert data to real numbers (ann avgs were multiplied by 10) g.rdata = [] for v in idata: if v == g.mbad: g.rdata.append(g.xbad) else: g.rdata.append(0.1 * v) # Sort the rural stations according to the length of the time record # (ignoring gaps). lengths = [] for i, station in enumerate(g.isrData): a, b = station.i1sr - 1, station.ilsr station.recLen = len([v for v in idata[a:b] if v != g.mbad]) station.index = i for i, station in enumerate(g.isrData): g.log.write(" rural station: %11d id: %11d #ok %11d\n" % ( i + 1, station.idr, station.recLen)) g.isrData.sort(key=lambda s:s.recLen) g.isrData.reverse() for i, station in enumerate(g.isrData): g.log.write(" rural station: %11d id: %11d #ok %11d\n" % ( i + 1, station.idr, station.recLen)) # Combine time series for rural stations around each urban station g.nuseid = [0] * nstar for us in g.isuData: usingFullRadius = False dropStation = False needNewNeighbours = True while True: if needNewNeighbours: data = getNeighbours(us, iyoff, full=usingFullRadius) is0, combined, rngbr, iyu1, iyu2, rbyrc = data if is0 == 0: if usingFullRadius: dropStation = True g.log.write(' no rural neighbors for %9d\n' % us.idu) f79.write(" no rural neighbors for %9d\n" % (us.idu)) break usingFullRadius = True needNewNeighbours = True continue wt, iwt, urb, avg = func2(us, iyrm, is0, iyoff, rngbr, combined) iy1 = 1 needNewNeighbours = False if iy1 == 1: f66.write("year dTs-urban dTs-rural StnID=%9d\n" % ( us.idu)) tmean, n3l, nxy, n3, n3f, nxy3, tm3 = func3( iy1, iyrm, avg, urb, iwt, ts, f, iyoff, yr, x, w, f66) if n3 < g.ncrit: if usingFullRadius: f79.write("%3s%09d good years: %4d total years: %4d" " too little rural-neighbors-overlap" " - drop station 9999\n" % ( us.cc, us.idu, n3, n3l - n3f + 1)) dropStation = True break usingFullRadius = True needNewNeighbours = True continue if float(n3) >= g.xcrit * (n3l - n3f + 1. - .1): break # not enough good years for the given range (<66%) # the - 0.1 is to prevent equality with potential uncertainty # due to hardware rounding or compiler behaviour. # nick barnes, ravenbrook limited, 2008 - 09 - 10 # try to save cases in which the gaps are in the early part: iy1 = int(n3l - (n3 - 1) / g.xcrit) if iy1 < n3f + 1: iy1 = n3f + 1 # avoid infinite loop f79.write("%3s%09d drop early years %4d-%4d\n" % ( us.cc, us.idu, 1 + iyoff, iy1 - 1 + iyoff)) if dropStation: continue #=== c subtract urban station and call a curve fitting program tmean = tm3 / nxy3 nxy = nxy3 getfit(nxy, x, f, fpar, rmsp) # find extended range iyxtnd = int(round(n3 / g.xcrit)) - (n3l - n3f + 1) g.log.write(" possible range increase %11d %11d %11d\n" % ( iyxtnd, n3, n3l - n3f + 1)) n1x = n3f + iyoff n2x = n3l + iyoff if iyxtnd < 0: sys.exit('impossible') if iyxtnd > 0: lxend = iyu2 - (n3l + iyoff) if iyxtnd <= lxend: n2x = n2x + lxend else: n1x = n1x - (iyxtnd - lxend) if n1x < iyu1: n1x = iyu1 n2x = iyu2 flag = flags(fpar[0], fpar[1], int(fpar[2] + g.x0), fpar[4], n3f + iyoff, n3l + iyoff) yield (us.cc, us.idu, fpar[0], fpar[1], int(fpar[2] + g.x0), fpar[3], fpar[4], fpar[5], rmsp[0], rmsp[1], n3f + iyoff, n3l + iyoff, n1x, n2x, flag) nuse = 0 tempRs = sorted(g.isrData, key=lambda s: s.index) for (used, tempRs) in itertools.izip(g.nuseid, tempRs): if used > 0: f77.write(" used station %11d %11d times\n" % ( tempRs.idr, used)) nuse += 1 f77.write("%12d rural stations were used\n" % (nuse)) log_stats()
|
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,
3462,
18,
1330,
17023,
91,
6134,
314,
18,
86,
3368,
2848,
74,
273,
11418,
2848,
74,
314,
18,
82,
3762,
273,
290,
3762,
225,
314,
18,
82,
5642,
273,
314,
18,
1364,
343,
273,
314,
18,
18538,
5453,
273,
314,
18,
82,
334,
438,
273,
314,
18,
18538,
86,
1752,
273,
314,
18,
1364,
343,
84,
273,
374,
314,
18,
82,
2069,
21,
273,
314,
18,
82,
2069,
22,
273,
314,
18,
4880,
2069,
273,
314,
18,
2387,
30390,
273,
314,
18,
2387,
91,
20,
273,
314,
18,
82,
601,
273,
314,
18,
82,
601,
92,
273,
314,
18,
82,
334,
69,
273,
374,
314,
18,
82,
6620,
273,
374,
225,
3742,
273,
306,
20,
18,
20,
65,
380,
2468,
713,
284,
273,
306,
20,
18,
20,
65,
380,
2468,
713,
619,
273,
306,
20,
18,
20,
65,
380,
2468,
713,
341,
273,
306,
20,
18,
20,
65,
380,
2468,
713,
26160,
273,
306,
20,
18,
20,
65,
380,
2468,
713,
284,
1065,
273,
306,
20,
18,
20,
65,
380,
4200,
27806,
84,
273,
306,
20,
18,
20,
65,
380,
4200,
225,
314,
18,
86,
3368,
2848,
76,
273,
314,
18,
86,
3368,
2848,
74,
342,
576,
314,
18,
86,
1637,
1310,
74,
273,
28950,
18,
11282,
342,
314,
18,
86,
3368,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3462,
18,
1330,
17023,
91,
6134,
314,
18,
86,
3368,
2848,
74,
273,
11418,
2848,
74,
314,
18,
82,
3762,
273,
290,
3762,
225,
314,
18,
82,
5642,
273,
314,
18,
1364,
343,
273,
314,
18,
18538,
5453,
273,
314,
18,
82,
334,
438,
273,
314,
18,
18538,
86,
1752,
273,
314,
18,
1364,
343,
84,
273,
374,
314,
18,
82,
2069,
21,
273,
314,
18,
82,
2069,
22,
273,
314,
18,
4880,
2069,
273,
314,
18,
2387,
30390,
273,
314,
18,
2387,
91,
2
] |
|
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,
261,
74,
16,
284,
13,
309,
1549,
12,
2890,
6315,
5112,
63,
74,
6487,
1466,
18,
8578,
13,
471,
819,
18,
588,
2668,
588,
67,
8578,
67,
1467,
2187,
1053,
4672,
327,
315,
2469,
9275,
87,
13,
487,
738,
87,
6,
738,
261,
74,
16,
74,
13,
327,
22563,
87,
5187,
738,
261,
74,
16,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
261,
74,
16,
284,
13,
309,
1549,
12,
2890,
6315,
5112,
63,
74,
6487,
1466,
18,
8578,
13,
471,
819,
18,
588,
2668,
588,
67,
8578,
67,
1467,
2187,
1053,
4672,
327,
315,
2469,
9275,
87,
13,
487,
738,
87,
6,
738,
261,
74,
16,
74,
13,
327,
22563,
87,
5187,
738,
261,
74,
16,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
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,
4106,
273,
365,
18,
4106,
397,
4795,
1335,
30,
365,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
273,
1083,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
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] == "ReleaseItanium": arch = "ia64" debug = False configure = "VC-WIN64I" do_script = "ms\\do_win64i" makefile = "ms\\nt.mak" os.environ["VSEXTCOMP_USECL"] = "MS_ITANIUM" elif sys.argv[1] == "ReleaseAMD64": arch="amd64" debug=False configure = "VC-WIN64A" do_script = "ms\\do_win64a" makefile = "ms\\nt.mak" os.environ["VSEXTCOMP_USECL"] = "MS_OPTERON" make_flags = "" if build_all: make_flags = "-a" # perl should be on the path, but we also look in "\perl" and "c:\\perl" # as "well known" locations perls = find_all_on_path("perl.exe", ["\\perl\\bin", "C:\\perl\\bin"]) perl = find_working_perl(perls) if perl is None: sys.exit(1) print "Found a working perl at '%s'" % (perl,) sys.stdout.flush() # Look for SSL 2 levels up from pcbuild - ie, same place zlib etc all live. ssl_dir = find_best_ssl_dir(("..\\..",)) if ssl_dir is None: sys.exit(1) old_cd = os.getcwd() try: os.chdir(ssl_dir) # If the ssl makefiles do not exist, we invoke Perl to generate them. if not os.path.isfile(makefile): print "Creating the makefiles..." sys.stdout.flush() # Put our working Perl at the front of our path os.environ["PATH"] = os.path.dirname(perl) + \ os.pathsep + \ os.environ["PATH"] if arch=="x86" and debug: # the do_masm script in openssl doesn't generate a debug # build makefile so we generate it here: os.system("perl util\mk1mf.pl debug "+configure+" >"+makefile) run_configure(configure, do_script) # Now run make. print "Executing nmake over the ssl makefiles..." sys.stdout.flush() rc = os.system("nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile)) if rc: print "Executing "+makefile+" failed" print rc sys.exit(rc) finally: os.chdir(old_cd) # And finally, we can build the _ssl module itself for Python. defs = "SSL_DIR=\"%s\"" % (ssl_dir,) if debug: defs = defs + " " + "DEBUG=1" makeCommand = 'nmake /nologo -f _ssl.mak ' + defs + " " + make_flags print "Executing:", makeCommand sys.stdout.flush() rc = os.system(makeCommand) sys.exit(rc)
|
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,
315,
13464,
17,
24572,
1578,
6,
741,
67,
4263,
273,
315,
959,
1695,
2896,
67,
15260,
81,
6,
1221,
768,
273,
315,
959,
1695,
496,
18,
81,
581,
6,
1327,
2589,
18,
19485,
63,
21,
65,
422,
315,
2829,
6877,
6637,
273,
315,
92,
5292,
6,
1198,
273,
1053,
5068,
273,
315,
13464,
17,
24572,
1578,
6,
741,
67,
4263,
273,
315,
959,
1695,
2896,
67,
15260,
81,
6,
1221,
768,
1546,
959,
1695,
72,
1578,
18,
81,
581,
6,
1327,
2589,
18,
19485,
63,
21,
65,
422,
315,
7391,
7193,
304,
5077,
6877,
6637,
273,
315,
1155,
1105,
6,
1198,
273,
1083,
5068,
273,
315,
13464,
17,
24572,
1105,
45,
6,
741,
67,
4263,
273,
315,
959,
1695,
2896,
67,
8082,
1105,
77,
6,
1221,
768,
273,
315,
959,
1695,
496,
18,
81,
581,
6,
1140,
18,
28684,
9614,
58,
1090,
3983,
10057,
67,
8001,
5017,
11929,
273,
315,
3537,
67,
1285,
1258,
22619,
6,
1327,
2589,
18,
19485,
63,
21,
65,
422,
315,
7391,
2192,
40,
1105,
6877,
6637,
1546,
301,
72,
1105,
6,
1198,
33,
8381,
5068,
273,
315,
13464,
17,
24572,
1105,
37,
6,
741,
67,
4263,
273,
315,
959,
1695,
2896,
67,
8082,
1105,
69,
6,
1221,
768,
273,
315,
959,
1695,
496,
18,
81,
581,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
315,
13464,
17,
24572,
1578,
6,
741,
67,
4263,
273,
315,
959,
1695,
2896,
67,
15260,
81,
6,
1221,
768,
273,
315,
959,
1695,
496,
18,
81,
581,
6,
1327,
2589,
18,
19485,
63,
21,
65,
422,
315,
2829,
6877,
6637,
273,
315,
92,
5292,
6,
1198,
273,
1053,
5068,
273,
315,
13464,
17,
24572,
1578,
6,
741,
67,
4263,
273,
315,
959,
1695,
2896,
67,
15260,
81,
6,
1221,
768,
1546,
959,
1695,
72,
1578,
18,
81,
581,
6,
1327,
2589,
18,
2
] |
|
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
2259,
3412,
471,
1240,
358,
5344,
518,
1122,
35,
364,
3539,
316,
642,
18,
11122,
58,
2782,
67,
26368,
30,
309,
533,
18,
4720,
12,
2890,
18,
1214,
16,
3539,
18,
4778,
1214,
13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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
2259,
3412,
471,
1240,
358,
5344,
518,
1122,
35,
364,
3539,
316,
642,
18,
11122,
58,
2782,
67,
26368,
30,
309,
533,
18,
4720,
12,
2890,
18,
1214,
16,
3539,
18,
4778,
1214,
13,
422,
374,
30,
1709,
18,
4778,
12,
2890,
18,
1214,
13,
365,
18,
5829,
273,
3539,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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, err: print str(err) usage() return if in_opts(opts, "-h"): usage() return if in_opts(opts, "-s"): SILENT_MODE = True # The install directory defaults to the current directory. install_dir = "." if len(args) > 1: install_dir = args[1] try: install(install_dir) except UnsupportedPythonError, err: print "Your version of Python (" + err.version + ") is not supported." except AlreadyInstalledError: print "seattle was already installed."
|
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,
471,
4097,
3799,
1435,
15905,
18,
3536,
2552,
5705,
900,
1784,
67,
7038,
1500,
273,
599,
833,
273,
599,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
4487,
7923,
1335,
336,
3838,
18,
967,
3838,
668,
16,
393,
30,
1172,
609,
12,
370,
13,
4084,
1435,
327,
309,
316,
67,
4952,
12,
4952,
16,
3701,
76,
6,
4672,
4084,
1435,
327,
309,
316,
67,
4952,
12,
4952,
16,
3701,
87,
6,
4672,
5705,
900,
1784,
67,
7038,
273,
1053,
468,
1021,
3799,
1867,
3467,
358,
326,
783,
1867,
18,
3799,
67,
1214,
273,
4585,
309,
562,
12,
1968,
13,
405,
404,
30,
3799,
67,
1214,
273,
833,
63,
21,
65,
225,
775,
30,
3799,
12,
5425,
67,
1214,
13,
1335,
7221,
15774,
668,
16,
393,
30,
1172,
315,
15446,
1177,
434,
6600,
7566,
397,
393,
18,
1589,
397,
9369,
353,
486,
3260,
1199,
1335,
17009,
16747,
668,
30,
1172,
315,
307,
4558,
298,
1703,
1818,
5876,
1199,
282,
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,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0
] |
[
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,
471,
4097,
3799,
1435,
15905,
18,
3536,
2552,
5705,
900,
1784,
67,
7038,
1500,
273,
599,
833,
273,
599,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
4487,
7923,
1335,
336,
3838,
18,
967,
3838,
668,
16,
393,
30,
1172,
609,
12,
370,
13,
4084,
1435,
327,
309,
316,
67,
4952,
12,
4952,
16,
3701,
76,
6,
4672,
4084,
1435,
327,
309,
316,
67,
4952,
12,
4952,
16,
3701,
87,
6,
4672,
2
] |
|
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.poll() continue #print "checking pos: %d" % pos #self._console.progress(pos, length) output, errout = pid.communicate() rcode = pid.returncode cpos = processes[pid][0] if rcode == 0: #tf = processes[pid][1].read() #print output[:30] #print tf[:30] contA[cpos][CONTENT] = output.decode('utf-8') #contA[cpos] = tf else: raise RuntimeError("Problems compiling %s: %s" % (classes[cpos], errout)) print "-- terminating process for class: %s" % classes[cpos] del processes[pid] reaped = True
|
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,
30,
738,
72,
6,
738,
562,
12,
18675,
13,
283,
5994,
273,
1083,
1323,
1053,
30,
364,
949,
16,
4231,
316,
4241,
12,
18675,
18,
2452,
1435,
4672,
309,
486,
2529,
471,
4231,
18,
13835,
1435,
422,
599,
30,
225,
468,
599,
273,
1207,
13342,
1404,
14127,
468,
1188,
4231,
18,
13835,
1435,
1324,
468,
1188,
315,
24609,
949,
30,
738,
72,
6,
738,
949,
468,
2890,
6315,
8698,
18,
8298,
12,
917,
16,
769,
13,
876,
16,
6445,
7028,
273,
4231,
18,
5702,
318,
2659,
1435,
436,
710,
273,
4231,
18,
2463,
710,
276,
917,
273,
8488,
63,
6610,
6362,
20,
65,
309,
436,
710,
422,
374,
30,
468,
6632,
282,
273,
8488,
63,
6610,
6362,
21,
8009,
896,
1435,
468,
1188,
876,
10531,
5082,
65,
468,
1188,
3253,
10531,
5082,
65,
466,
37,
63,
71,
917,
6362,
9689,
65,
273,
876,
18,
3922,
2668,
3158,
17,
28,
6134,
468,
1213,
37,
63,
71,
917,
65,
273,
3253,
469,
30,
1002,
7265,
2932,
626,
19122,
1161,
4973,
738,
87,
30,
738,
87,
6,
738,
261,
4701,
63,
71,
917,
6487,
6445,
7028,
3719,
1172,
5238,
28619,
1207,
364,
667,
30,
738,
87,
6,
738,
3318,
63,
71,
917,
65,
1464,
8488,
63,
6610,
65,
283,
5994,
273,
1053,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
30,
738,
72,
6,
738,
562,
12,
18675,
13,
283,
5994,
273,
1083,
1323,
1053,
30,
364,
949,
16,
4231,
316,
4241,
12,
18675,
18,
2452,
1435,
4672,
309,
486,
2529,
471,
4231,
18,
13835,
1435,
422,
599,
30,
225,
468,
599,
273,
1207,
13342,
1404,
14127,
468,
1188,
4231,
18,
13835,
1435,
1324,
468,
1188,
315,
24609,
949,
30,
738,
72,
6,
738,
949,
468,
2890,
6315,
8698,
18,
8298,
12,
917,
16,
769,
13,
876,
16,
6445,
7028,
273,
4231,
18,
2
] |
|
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,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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: # XXX: could append to charmap tail return charset # cannot compress except IndexError: # character set contains unicode characters return _optimize_unicode(charset, fixup) # compress character map i = p = n = 0 runs = [] for c in charmap: if c: if n == 0: p = i n = n + 1 elif n: runs.append((p, n)) n = 0 i = i + 1 if n: runs.append((p, n)) if len(runs) <= 2: # use literal/range for p, n in runs: if n == 1: out.append((LITERAL, p)) else: out.append((RANGE, (p, p+n-1))) if len(out) < len(charset): return out else: # use bitmap data = _mk_bitmap(charmap) out.append((CHARSET, data)) return out return charset
|
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,
30,
309,
1061,
353,
12901,
26316,
30,
596,
18,
6923,
12443,
556,
16,
1712,
3719,
1327,
1061,
353,
511,
18454,
30,
1149,
1458,
63,
904,
416,
12,
842,
25887,
273,
1053,
1327,
1061,
353,
534,
8357,
30,
364,
277,
316,
1048,
12,
904,
416,
12,
842,
63,
20,
65,
3631,
2917,
416,
12,
842,
63,
21,
5717,
15,
21,
4672,
1149,
1458,
63,
77,
65,
273,
1053,
1327,
1061,
353,
31524,
19281,
30,
468,
11329,
30,
3377,
714,
358,
1149,
1458,
5798,
327,
4856,
468,
2780,
8099,
1335,
10195,
30,
468,
3351,
444,
1914,
5252,
3949,
327,
389,
29155,
67,
9124,
12,
9999,
16,
2917,
416,
13,
468,
8099,
3351,
852,
277,
273,
293,
273,
290,
273,
374,
7597,
273,
5378,
364,
276,
316,
1149,
1458,
30,
309,
276,
30,
309,
290,
422,
374,
30,
293,
273,
277,
290,
273,
290,
397,
404,
1327,
290,
30,
7597,
18,
6923,
12443,
84,
16,
290,
3719,
290,
273,
374,
277,
273,
277,
397,
404,
309,
290,
30,
7597,
18,
6923,
12443,
84,
16,
290,
3719,
309,
562,
12,
20152,
13,
1648,
576,
30,
468,
999,
7158,
19,
3676,
364,
293,
16,
290,
316,
7597,
30,
309,
290,
422,
404,
30,
596,
18,
6923,
12443,
23225,
16,
293,
3719,
469,
30,
596,
18,
6923,
12443,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30,
309,
1061,
353,
12901,
26316,
30,
596,
18,
6923,
12443,
556,
16,
1712,
3719,
1327,
1061,
353,
511,
18454,
30,
1149,
1458,
63,
904,
416,
12,
842,
25887,
273,
1053,
1327,
1061,
353,
534,
8357,
30,
364,
277,
316,
1048,
12,
904,
416,
12,
842,
63,
20,
65,
3631,
2917,
416,
12,
842,
63,
21,
5717,
15,
21,
4672,
1149,
1458,
63,
77,
65,
273,
1053,
1327,
1061,
353,
31524,
19281,
30,
468,
11329,
30,
3377,
714,
358,
1149,
1458,
5798,
327,
4856,
2
] |
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.display_pov_axis_checkbox.setText(self.__tr("Display Point of View Axis")) QToolTip.add(self.display_pov_axis_checkbox,self.__tr("Show/Hide Point of View Axis")) self.groupBox17_2.setTitle(self.__tr("Compass")) self.display_compass_checkbox.setText(self.__tr("Display Compass")) QToolTip.add(self.display_compass_checkbox,self.__tr("Show/Hide Display Compass")) self.display_compass_labels_checkbox.setText(self.__tr("Display Compass Labels")) QToolTip.add(self.display_compass_labels_checkbox,self.__tr("Show/Hide Display Compass")) self.textLabel1_4.setText(self.__tr("Location :")) self.compass_position_combox.clear() self.compass_position_combox.insertItem(self.__tr("Upper Right")) self.compass_position_combox.insertItem(self.__tr("Upper Left")) self.compass_position_combox.insertItem(self.__tr("Lower Left")) self.compass_position_combox.insertItem(self.__tr("Lower Right")) self.default_projection_btngrp.setTitle(self.__tr("Default Projection")) QToolTip.add(self.default_projection_btngrp,QString.null) self.radioButton12.setText(self.__tr("Perspective")) self.radioButton13.setText(self.__tr("Orthographic")) self.groupBox14.setTitle(self.__tr("Settings for Adjust")) self.watch_min_in_realtime_checkbox.setText(self.__tr("Watch motion in real time")) QToolTip.add(self.watch_min_in_realtime_checkbox,self.__tr("Enable/disable real time graphical updates for <b>Adjust All</b> or <b>Adjust Selection</b>")) self.update_btngrp.setTitle(QString.null) QToolTip.add(self.update_number_spinbox,self.__tr("Specify how often to update the screen during adjustments")) self.update_units_combobox.clear() self.update_units_combobox.insertItem(self.__tr("frames")) self.update_units_combobox.insertItem(self.__tr("seconds")) self.update_units_combobox.insertItem(self.__tr("minutes")) self.update_units_combobox.insertItem(self.__tr("hours")) QToolTip.add(self.update_units_combobox,self.__tr("Specify how often to update the screen during adjustments")) self.update_every_rbtn.setText(self.__tr("Update every")) QToolTip.add(self.update_every_rbtn,self.__tr("Specify how often to update the screen during adjustments")) self.update_asap_rbtn.setText(self.__tr("Update as fast as possible")) QToolTip.add(self.update_asap_rbtn,self.__tr("Update every 2 seconds, or faster if it doesn't slow adjustments by more than 20%")) self.groupBox20.setTitle(self.__tr("Convergence Criteria")) self.endrms_lbl.setText(self.__tr("EndRMS :")) QToolTip.add(self.endrms_lbl,self.__tr("Target RMS force (pN)")) self.endmax_lbl.setText(self.__tr("EndMax :")) QToolTip.add(self.endmax_lbl,self.__tr("Target max force (pN)")) self.endmax_linedit.setText(self.__tr("10.0")) QToolTip.add(self.endmax_linedit,self.__tr("Target max force (pN)")) self.endrms_linedit.setText(self.__tr("1.0")) QToolTip.add(self.endrms_linedit,self.__tr("Target RMS force (pN)")) self.cutovermax_lbl.setText(self.__tr("CutoverMax :")) QToolTip.add(self.cutovermax_lbl,self.__tr("Cutover max force (pN)")) self.cutovermax_linedit.setText(self.__tr("300.0")) QToolTip.add(self.cutovermax_linedit,self.__tr("Cutover max force (pN)")) self.cutoverrms_linedit.setText(self.__tr("50.0")) QToolTip.add(self.cutoverrms_linedit,self.__tr("Cutover RMS force (pN)")) self.cutoverrms_lbl.setText(self.__tr("CutoverRMS :")) QToolTip.add(self.cutoverrms_lbl,self.__tr("Cutover RMS force (pN)")) self.minimize_warning_lbl.setText(QString.null) self.groupBox8.setTitle(self.__tr("View Animation")) self.animate_views_checkbox.setText(self.__tr("Animate between views")) QToolTip.add(self.animate_views_checkbox,self.__tr("Enable/disable animation between current view and a new view")) self.textLabel1_5.setText(self.__tr("Speed :")) self.textLabel2_3.setText(self.__tr("Slow")) self.textLabel3_4.setText(self.__tr("Fast")) QToolTip.add(self.animation_speed_slider,self.__tr("View Animation Speed")) self.high_quality_graphics_checkbox.setText(self.__tr("High quality graphics")) self.prefs_tab.changeTab(self.tab,self.__tr("General")) self.textLabel1_7.setText(self.__tr("Level of Detail :")) QToolTip.add(self.textLabel1_7,self.__tr("Level of detail for atoms (and bonds)")) self.level_of_detail_combox.clear() self.level_of_detail_combox.insertItem(self.__tr("Low")) self.level_of_detail_combox.insertItem(self.__tr("Medium")) self.level_of_detail_combox.insertItem(self.__tr("High")) self.level_of_detail_combox.insertItem(self.__tr("Variable")) self.level_of_detail_combox.setCurrentItem(2) QToolTip.add(self.level_of_detail_combox,self.__tr("Sets graphics quality for atoms (and bonds)")) self.atom_colors_grpbox.setTitle(self.__tr("Colors")) self.change_element_colors_btn.setText(self.__tr("Change Element Colors...")) self.groupBox13.setTitle(QString.null) self.textLabel3_2_3.setText(self.__tr("Atom Highlighting :")) self.hotspot_lbl_2.setText(self.__tr("Bondpoint Highlighting :")) self.hotspot_lbl.setText(self.__tr("Bondpoint Hotspot :")) self.bondpoint_hilite_color_btn.setText(self.__tr("Choose...")) self.atom_hilite_color_btn.setText(self.__tr("Choose...")) self.hotspot_color_btn.setText(self.__tr("Choose...")) self.reset_atom_colors_btn.setText(self.__tr("Restore Default Colors")) self.textLabel1_3_2.setText(self.__tr("Ball and Stick Atom Scale :")) QToolTip.add(self.textLabel1_3_2,self.__tr("Set Atom Scale factor for Ball and Stick display mode")) self.cpk_atom_rad_spinbox.setSuffix(self.__tr("%")) QToolTip.add(self.cpk_atom_rad_spinbox,self.__tr("Set Atom Scale factor for Ball and Stick display mode")) self.textLabel1_3_2_2.setText(self.__tr("CPK Atom Scale :")) QToolTip.add(self.textLabel1_3_2_2,self.__tr("CPK Atom Scale factor for CPK display mode")) QToolTip.add(self.cpk_scale_factor_linedit,self.__tr("Displays the value of the CPK Atom Scale")) QToolTip.add(self.cpk_scale_factor_slider,self.__tr("Changes Atom Scale factor for CPK display mode")) self.reset_cpk_scale_factor_btn.setText(QString.null) QToolTip.add(self.reset_cpk_scale_factor_btn,self.__tr("Restore default value")) self.prefs_tab.changeTab(self.TabPage,self.__tr("Atoms")) self.high_order_bond_display_btngrp.setTitle(self.__tr("High Order Bonds")) self.radioButton11.setText(self.__tr("Multiple Cylinders")) QToolTip.add(self.radioButton11,self.__tr("Display high order bonds using multiple cylinders")) self.radioButton11_2.setText(self.__tr("Vanes")) QToolTip.add(self.radioButton11_2,self.__tr("Display pi systems in high order bonds as Vanes")) self.radioButton11_2_2.setText(self.__tr("Ribbons")) QToolTip.add(self.radioButton11_2_2,self.__tr("Display pi systems in high order bonds as Ribbons")) self.show_bond_labels_checkbox.setText(self.__tr("Show Bond Type Letters")) QToolTip.add(self.show_bond_labels_checkbox,self.__tr("Display Bond Type Label")) self.show_valence_errors_checkbox.setText(self.__tr("Show Valence Errors")) QToolTip.add(self.show_valence_errors_checkbox,self.__tr("Enable/Disable Valence Error Checker")) self.groupBox4.setTitle(self.__tr("Colors")) self.reset_bond_colors_btn.setText(self.__tr("Restore Default Colors")) self.textLabel3_2.setText(self.__tr("Bond Highlighting :")) self.bond_stretch_color_btn.setText(self.__tr("Choose...")) self.bond_hilite_color_btn.setText(self.__tr("Choose...")) self.textLabel3_3.setText(self.__tr("Vane/Ribbon :")) self.ballstick_bondcolor_btn.setText(self.__tr("Choose...")) self.textLabel3.setText(self.__tr("Ball and Stick Cylinder :")) self.textLabel3_2_2.setText(self.__tr("Bond Stretch :")) self.bond_vane_color_btn.setText(self.__tr("Choose...")) self.textLabel1_3.setText(self.__tr("Ball and Stick Bond Scale :")) QToolTip.add(self.textLabel1_3,self.__tr("Set scale (size) factor for the cylinder representing bonds in Ball and Stick display mode")) self.textLabel1.setText(self.__tr("Bond Line Thickness :")) QToolTip.add(self.textLabel1,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) self.cpk_cylinder_rad_spinbox.setSuffix(self.__tr("%")) QToolTip.add(self.cpk_cylinder_rad_spinbox,self.__tr("Set scale (size) factor for the cylinder representing bonds in Ball and Stick display mode")) self.bond_line_thickness_spinbox.setSuffix(self.__tr(" pixel")) QToolTip.add(self.bond_line_thickness_spinbox,self.__tr("Bond thickness (in pixels) for Lines Display Mode")) self.prefs_tab.changeTab(self.TabPage_2,self.__tr("Bonds")) self.startup_mode_lbl.setText(self.__tr("Startup Mode :")) QToolTip.add(self.startup_mode_lbl,self.__tr("Startup Mode")) self.startup_mode_combox.clear() self.startup_mode_combox.insertItem(self.__tr("Default Mode")) self.startup_mode_combox.insertItem(self.__tr("Build")) QToolTip.add(self.startup_mode_combox,self.__tr("Startup Mode")) self.default_mode_lbl.setText(self.__tr("Default Mode :")) QToolTip.add(self.default_mode_lbl,self.__tr("Default Mode")) self.default_mode_combox.clear() self.default_mode_combox.insertItem(self.__tr("Select Chunks")) self.default_mode_combox.insertItem(self.__tr("Move Chunks")) self.default_mode_combox.insertItem(self.__tr("Build")) QToolTip.add(self.default_mode_combox,self.__tr("Default Mode")) self.mode_groupbox.setTitle(self.__tr("Mode Settings")) self.mode_lbl.setText(self.__tr("Mode :")) self.display_mode_lbl.setText(self.__tr("Display Mode :")) self.mode_combox.clear() self.mode_combox.insertItem(self.__tr("Select Chunks")) self.mode_combox.insertItem(self.__tr("Move Chunks")) self.mode_combox.insertItem(self.__tr("Build")) self.mode_combox.insertItem(self.__tr("Cookie Cutter")) self.mode_combox.insertItem(self.__tr("Extrude")) self.mode_combox.insertItem(self.__tr("Fuse Chunks")) self.mode_combox.insertItem(self.__tr("Movie Player")) QToolTip.add(self.mode_combox,QString.null) self.display_mode_combox.clear() self.display_mode_combox.insertItem(self.__tr("Default")) self.display_mode_combox.insertItem(self.__tr("Invisible")) self.display_mode_combox.insertItem(self.__tr("CPK")) self.display_mode_combox.insertItem(self.__tr("Lines")) self.display_mode_combox.insertItem(self.__tr("Ball and Stick")) self.display_mode_combox.insertItem(self.__tr("Tubes")) QToolTip.add(self.display_mode_combox,self.__tr("Display Mode for this mode")) self.bg_groupbox.setTitle(self.__tr("Background Color")) self.fill_type_lbl.setText(self.__tr("Fill Type :")) self.bg1_color_lbl.setText(self.__tr("Color :")) self.fill_type_combox.clear() self.fill_type_combox.insertItem(self.__tr("Solid")) self.fill_type_combox.insertItem(self.__tr("Blue Sky")) QToolTip.add(self.fill_type_combox,self.__tr("Background fill type")) self.choose_bg1_color_btn.setText(self.__tr("Choose...")) self.restore_bgcolor_btn.setText(self.__tr("Restore Default Color")) self.default_display_btngrp.setTitle(self.__tr("Default Display Mode")) self.vwd_rbtn.setText(self.__tr("CPK")) QToolTip.add(self.vwd_rbtn,self.__tr("CPK (Space Filling) Display Mode")) self.cpk_rbtn.setText(self.__tr("Ball and Stick")) QToolTip.add(self.cpk_rbtn,self.__tr("Ball and Stick Display Mode")) self.lines_rbtn.setText(self.__tr("Lines")) QToolTip.add(self.lines_rbtn,self.__tr("Lines Display Mode")) self.tubes_rbtn.setText(self.__tr("Tubes")) QToolTip.add(self.tubes_rbtn,self.__tr("Tubes Display Mode")) self.buildmode_groupbox.setTitle(self.__tr("Build Mode Defaults")) self.autobond_checkbox.setText(self.__tr("Autobond")) QToolTip.add(self.autobond_checkbox,self.__tr("Build mode's default setting for Autobonding at startup (enabled/disabled)")) self.water_checkbox.setText(self.__tr("Water")) QToolTip.add(self.water_checkbox,self.__tr("Build mode's default setting for Water at startup (enabled/disabled)")) self.buildmode_select_atoms_checkbox.setText(self.__tr("Select Atoms of Deposited Object")) QToolTip.add(self.buildmode_select_atoms_checkbox,self.__tr("Automatically select atoms when depositing")) self.buildmode_highlighting_checkbox.setText(self.__tr("Highlighting")) QToolTip.add(self.buildmode_highlighting_checkbox,self.__tr("Build mode's default setting for Highlighting at startup (enabled/disabled)")) self.prefs_tab.changeTab(self.TabPage_3,self.__tr("Modes")) self.groupBox8_2.setTitle(self.__tr("Directional Light Properties")) self.light_label.setText(self.__tr("Light :")) self.on_label.setText(self.__tr("On :")) self.color_label.setText(self.__tr("Color :")) self.ambient_label.setText(self.__tr("Ambient :")) self.diffuse_label.setText(self.__tr("Diffuse :")) self.specularity_label.setText(self.__tr("Specular :")) self.x_label.setText(self.__tr("X :")) self.y_label.setText(self.__tr("Y :")) self.z_label.setText(self.__tr("Z :")) self.light_combobox.clear() self.light_combobox.insertItem(self.__tr("1 (On)")) self.light_combobox.insertItem(self.__tr("2 (On)")) self.light_combobox.insertItem(self.__tr("3 (Off)")) self.light_checkbox.setText(QString.null) self.light_color_btn.setText(self.__tr("Choose...")) self.lighting_restore_defaults_btn.setText(self.__tr("Restore Defaults")) self.groupBox9_2.setTitle(self.__tr("Material Specular Properties")) self.ms_on_label.setText(self.__tr("On :")) self.ms_finish_label.setText(self.__tr("Finish :")) self.ms_shininess_label.setText(self.__tr("Shininess :")) self.ms_brightness__label.setText(self.__tr("Brightness :")) self.ms_on_checkbox.setText(QString.null) self.textLabel1_6.setText(self.__tr("Metal")) self.textLabel2_4.setText(self.__tr("Plastic")) self.textLabel1_6_2.setText(self.__tr("Flat")) self.textLabel2_4_2.setText(self.__tr("Glossy")) self.textLabel1_6_3.setText(self.__tr("Low")) self.textLabel2_4_3.setText(self.__tr("High")) self.prefs_tab.changeTab(self.TabPage_4,self.__tr("Lighting")) self.file_locations_grp.setTitle(self.__tr("Location of Executables")) self.povray_checkbox.setText(QString.null) QToolTip.add(self.povray_checkbox,self.__tr("Enable POV-Ray")) self.povray_lbl.setText(self.__tr("POV-Ray :")) QToolTip.add(self.povray_lbl,self.__tr("Enable POV-Ray")) self.nanohive_lbl.setText(self.__tr("Nano-Hive :")) QToolTip.add(self.nanohive_lbl,self.__tr("Enable Nano-Hive.")) self.nanohive_checkbox.setText(QString.null) QToolTip.add(self.nanohive_checkbox,self.__tr("Enable Nano-Hive.")) self.povray_path_linedit.setText(QString.null) QToolTip.add(self.povray_path_linedit,self.__tr("The full path to the POV-Ray executable file.")) self.nanohive_path_linedit.setText(QString.null) QToolTip.add(self.nanohive_path_linedit,self.__tr("The full path to the Nano-Hive executable file.")) self.gamess_lbl.setText(self.__tr("GAMESS :")) QToolTip.add(self.gamess_lbl,self.__tr("Enable GAMESS.")) self.megapov_path_linedit.setText(QString.null) QToolTip.add(self.megapov_path_linedit,self.__tr("The full path to the MegaPOV executable file (megapov.exe).")) self.megapov_checkbox.setText(QString.null) QToolTip.add(self.megapov_checkbox,self.__tr("Enable MegaPOV")) self.gamess_path_linedit.setText(QString.null) QToolTip.add(self.gamess_path_linedit,self.__tr("The gamess executable file. Usually it's called gamess.??.x or ??gamess.exe.")) self.gamess_checkbox.setText(QString.null) QToolTip.add(self.gamess_checkbox,self.__tr("Enable GAMESS.")) QToolTip.add(self.povdir_linedit,self.__tr("Select custom POV include directory")) self.nanohive_choose_btn.setText(self.__tr("Choose...")) QToolTip.add(self.nanohive_choose_btn,self.__tr("Choose location of Nano-Hive executable ")) self.povray_choose_btn.setText(self.__tr("Choose...")) QToolTip.add(self.povray_choose_btn,self.__tr("Choose POV-Ray executable")) self.megapov_choose_btn.setText(self.__tr("Choose...")) QToolTip.add(self.megapov_choose_btn,self.__tr("Choose MegaPOV executable (megapov.exe)")) self.povdir_choose_btn.setText(self.__tr("Choose...")) self.gamess_choose_btn.setText(self.__tr("Choose...")) QToolTip.add(self.gamess_choose_btn,self.__tr("Choose GAMESS executable")) self.megapov_lbl.setText(self.__tr("MegaPOV :")) QToolTip.add(self.megapov_lbl,self.__tr("Enable MegaPOV")) self.povdir_checkbox.setText(QString.null) QToolTip.add(self.povdir_checkbox,self.__tr("User-custom directory for POV libraries")) self.povdir_lbl.setText(self.__tr("POV include dir :")) self.prefs_tab.changeTab(self.TabPage_5,self.__tr("Plug-ins")) self.groupBox17.setTitle(self.__tr("History Preferences")) self.msg_serial_number_checkbox.setText(self.__tr("Include message serial number")) self.msg_timestamp_checkbox.setText(self.__tr("Include message timestamp")) self.undo_automatic_checkpoints_checkbox.setText(self.__tr("Automatic Checkpoints")) QToolTip.add(self.undo_automatic_checkpoints_checkbox,self.__tr("Specify Automatic or Manual Checkpoints at program startup.")) self.undo_stack_memory_limit_spinbox.setSuffix(self.__tr(" MB")) self.undo_restore_view_checkbox.setText(self.__tr("Restore View when Undoing Structural Changes")) QToolTip.add(self.undo_restore_view_checkbox,self.__tr("Undo will switch to the view saved with each structural change.")) self.undo_stack_memory_limit_label.setText(self.__tr("Undo Stack Memory Limit :")) self.prefs_tab.changeTab(self.TabPage_6,self.__tr("Undo")) self.groupBox3.setTitle(self.__tr("Window Caption Format")) QToolTip.add(self.groupBox3,self.__tr("Window Border Caption Format")) self.textLabel2.setText(self.__tr("Caption Prefix for Modified File :")) self.textLabel2_2.setText(self.__tr("Caption Suffix for Modified File :")) self.caption_suffix_linedit.setText(QString.null) self.caption_fullpath_checkbox.setText(self.__tr("Display full path of part")) self.groupBox10.setTitle(self.__tr("Window Position and Size")) self.textLabel1_2.setText(self.__tr("Current Size :")) self.textLabel1_2_2.setText(self.__tr("Saved Size :")) self.save_current_btn.setText(self.__tr("Save Current Size")) QToolTip.add(self.save_current_btn,self.__tr("Save current window position and size for next startup")) self.restore_saved_size_btn.setText(self.__tr("Restore Saved Size")) QToolTip.add(self.restore_saved_size_btn,self.__tr("Save current window position and size for next startup")) self.current_width_spinbox.setSuffix(self.__tr(" pixels")) self.current_height_spinbox.setSuffix(self.__tr(" pixels")) self.textLabel1_2_2_2.setText(self.__tr("x")) self.textLabel1_2_2_2_2.setText(self.__tr("x")) self.remember_win_pos_and_size_checkbox.setText(self.__tr("Always save current window position and size when quitting")) self.prefs_tab.changeTab(self.TabPage_7,self.__tr("Window"))
|
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,
1655,
3514,
27,
67,
22,
18,
542,
4247,
12,
2890,
16186,
313,
2932,
26494,
6,
3719,
365,
18,
5417,
67,
10012,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
18040,
15509,
6,
3719,
2238,
29250,
18,
1289,
12,
2890,
18,
5417,
67,
10012,
67,
4890,
67,
12017,
16,
2890,
16186,
313,
2932,
5706,
19,
15690,
18040,
15509,
6,
3719,
365,
18,
5417,
67,
84,
1527,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
4686,
434,
4441,
15509,
6,
3719,
2238,
29250,
18,
1289,
12,
2890,
18,
5417,
67,
84,
1527,
67,
4890,
67,
12017,
16,
2890,
16186,
313,
2932,
5706,
19,
15690,
4686,
434,
4441,
15509,
6,
3719,
365,
18,
1655,
3514,
4033,
67,
22,
18,
542,
4247,
12,
2890,
16186,
313,
2932,
2945,
428,
6,
3719,
365,
18,
5417,
67,
2919,
428,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
5427,
428,
6,
3719,
2238,
29250,
18,
1289,
12,
2890,
18,
5417,
67,
2919,
428,
67,
12017,
16,
2890,
16186,
313,
2932,
5706,
19,
15690,
9311,
5427,
428,
6,
3719,
365,
18,
5417,
67,
2919,
428,
67,
5336,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
5427,
428,
12395,
6,
3719,
2238,
29250,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1655,
3514,
27,
67,
22,
18,
542,
4247,
12,
2890,
16186,
313,
2932,
26494,
6,
3719,
365,
18,
5417,
67,
10012,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
18040,
15509,
6,
3719,
2238,
29250,
18,
1289,
12,
2890,
18,
5417,
67,
10012,
67,
4890,
67,
12017,
16,
2890,
16186,
313,
2932,
5706,
19,
15690,
18040,
15509,
6,
3719,
365,
18,
5417,
67,
84,
1527,
67,
4890,
67,
12017,
18,
542,
1528,
12,
2890,
16186,
313,
2932,
4236,
2
] |
|
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,
365,
18,
6870,
984,
2656,
12,
1397,
18,
492,
1883,
316,
24927,
21,
16,
21,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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,
365,
18,
6870,
984,
2656,
12,
1397,
18,
492,
1883,
316,
24927,
21,
16,
21,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} 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, parent_id=parent_id, domain=domain2) where = [('parent_id','=',parent_id)] domain2 = domain + [('calendar_collection','=', True)] if name: where.append(('name','=',name)) if domain2: where += domain2
|
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,
365,
18,
2472,
18,
1911,
1103,
273,
365,
18,
2472,
18,
2472,
18,
3530,
1435,
1103,
18,
2725,
12,
2890,
18,
72,
5900,
13,
309,
486,
2461,
30,
2461,
273,
5378,
2461,
22,
273,
2461,
397,
306,
2668,
11650,
67,
5548,
17023,
33,
2187,
1083,
25887,
400,
273,
2240,
12,
2159,
67,
6231,
16,
365,
2934,
67,
3624,
67,
588,
12,
3353,
16,
508,
33,
529,
16,
982,
67,
350,
33,
2938,
67,
350,
16,
2461,
33,
4308,
22,
13,
1625,
273,
306,
2668,
2938,
67,
350,
17023,
33,
2187,
2938,
67,
350,
25887,
2461,
22,
273,
2461,
397,
306,
2668,
11650,
67,
5548,
17023,
33,
2187,
1053,
25887,
309,
508,
30,
1625,
18,
6923,
12,
2668,
529,
17023,
33,
2187,
529,
3719,
309,
2461,
22,
30,
1625,
1011,
2461,
22,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
365,
18,
2472,
18,
1911,
1103,
273,
365,
18,
2472,
18,
2472,
18,
3530,
1435,
1103,
18,
2725,
12,
2890,
18,
72,
5900,
13,
309,
486,
2461,
30,
2461,
273,
5378,
2461,
22,
273,
2461,
397,
306,
2668,
11650,
67,
5548,
17023,
33,
2187,
1083,
25887,
400,
273,
2240,
12,
2159,
67,
6231,
16,
365,
2934,
67,
3624,
67,
588,
12,
3353,
16,
508,
33,
529,
16,
982,
67,
350,
33,
2938,
67,
350,
16,
2461,
33,
4308,
22,
13,
1625,
273,
2
] |
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.subscription_modified, subscribe.subscription_removed, objectEventNotify): provideHandler(handler) # Set up an IIntIds utility: from zope.app.intid import IntIds from zope.app.intid.interfaces import IIntIds intids = IntIds() provideUtility(intids, IIntIds) # We'll register a slight variation of the subscription_added # handler that commits the transaction, so that a later lookup of # IKeyReference for our subscription will work: from ZODB.DemoStorage import DemoStorage from ZODB import DB global root db = DB(DemoStorage()) root = db.open().root() subscription_added.__component_adapts__ = ( subscribe.subscription_added.__component_adapts__) provideHandler(subscription_added) # As a last step, we'll register the IKeyReference adapter for all # persistent objects: from zope.app.keyreference.persistent import KeyReferenceToPersistent from persistent.interfaces import IPersistent provideAdapter(KeyReferenceToPersistent, adapts=(IPersistent,)) return subscribe.Subscriptions()
|
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,
9129,
18,
6663,
2979,
429,
1528,
4672,
5615,
4216,
12,
10204,
13,
225,
628,
998,
1306,
18,
4652,
18,
2575,
1930,
733,
1133,
9168,
364,
1838,
316,
261,
9174,
18,
11185,
67,
7342,
16,
9129,
18,
11185,
67,
14923,
16,
733,
1133,
9168,
4672,
5615,
1503,
12,
4176,
13,
225,
468,
1000,
731,
392,
467,
1702,
2673,
12788,
30,
628,
998,
1306,
18,
2910,
18,
474,
350,
1930,
3094,
2673,
628,
998,
1306,
18,
2910,
18,
474,
350,
18,
15898,
1930,
467,
1702,
2673,
509,
2232,
273,
3094,
2673,
1435,
5615,
6497,
12,
474,
2232,
16,
467,
1702,
2673,
13,
225,
468,
1660,
5614,
1744,
279,
20049,
14761,
434,
326,
4915,
67,
9665,
468,
1838,
716,
14335,
326,
2492,
16,
1427,
716,
279,
5137,
3689,
434,
468,
467,
653,
2404,
364,
3134,
4915,
903,
1440,
30,
628,
2285,
19786,
18,
27126,
3245,
1930,
27744,
83,
3245,
628,
2285,
19786,
1930,
2383,
2552,
1365,
1319,
273,
2383,
12,
27126,
3245,
10756,
1365,
273,
1319,
18,
3190,
7675,
3085,
1435,
225,
4915,
67,
9665,
16186,
4652,
67,
16524,
1092,
972,
273,
261,
9129,
18,
11185,
67,
9665,
16186,
4652,
67,
16524,
1092,
972,
13,
5615,
1503,
12,
11185,
67,
9665,
13,
225,
468,
2970,
279,
1142,
2235,
16,
732,
5614,
1744,
326,
467,
653,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9129,
18,
6663,
2979,
429,
1528,
4672,
5615,
4216,
12,
10204,
13,
225,
628,
998,
1306,
18,
4652,
18,
2575,
1930,
733,
1133,
9168,
364,
1838,
316,
261,
9174,
18,
11185,
67,
7342,
16,
9129,
18,
11185,
67,
14923,
16,
733,
1133,
9168,
4672,
5615,
1503,
12,
4176,
13,
225,
468,
1000,
731,
392,
467,
1702,
2673,
12788,
30,
628,
998,
1306,
18,
2910,
18,
474,
350,
1930,
3094,
2673,
628,
998,
1306,
18,
2910,
18,
474,
350,
18,
15898,
1930,
467,
1702,
2673,
2
] |
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,
1027,
316,
563,
30,
1027,
701,
273,
1408,
277,
273,
374,
364,
645,
316,
1027,
30,
309,
277,
316,
2359,
6842,
30,
1027,
701,
1011,
509,
22,
625,
12,
1293,
13,
397,
1548,
88,
6,
469,
30,
1027,
701,
1011,
609,
12,
1293,
13,
397,
1548,
88,
6,
277,
1011,
404,
1172,
1027,
701,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
1027,
316,
563,
30,
1027,
701,
273,
1408,
277,
273,
374,
364,
645,
316,
1027,
30,
309,
277,
316,
2359,
6842,
30,
1027,
701,
1011,
509,
22,
625,
12,
1293,
13,
397,
1548,
88,
6,
469,
30,
1027,
701,
1011,
609,
12,
1293,
13,
397,
1548,
88,
6,
277,
1011,
404,
1172,
1027,
701,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "Oh yay it worked!"
|
irccommand("JOIN " + msg[2])
|
#def isusingprefix(INDATA,COMMAND):
|
ef8ca3a4a95f2af723d7168bd94db4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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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.exists(wikiFilename) and maxCount < 15: sys.stdout.write("File %s already exists.\n"%\ os.path.split(wikiFilename)[1]) wikiFilename=wikiFilename+".wiki" maxCount=maxCount+1 # #Create the wikipage object etc # wikiPage=wiki(wikiFilename) # # Create top two trigger params tables # cTable=wikiPage.wikiTable(2,9) cTable.data=[ ["Trigger Type", "Rank", "FAR", "SNR", "IFOS(Coinc)", "Instruments(Active)", "Coincidence Time (s)", "Total Mass (mSol)", "Chirp Mass (mSol)" ], ["%s"%(wikiCoinc.type), "%s"%(wikiCoinc.rank), "%s"%(wikiCoinc.far), "%s"%(wikiCoinc.snr), "%s"%(wikiCoinc.ifos), "%s"%(wikiCoinc.instruments), "%s"%(wikiCoinc.time), "%s"%(wikiCoinc.mass), "%s"%(wikiCoinc.mchirp) ] ] pTable=wikiPage.wikiTable(len(wikiCoinc.sngls_in_coinc())+1,7) pTable.data[0]=[ "IFO", "GPS Time(s)", "SNR", "CHISQR", "Mass 1", "Mass 2", "Chirp Mass" ] for row,cSngl in enumerate(wikiCoinc.sngls_in_coinc()): pTable.data[row+1]=[ "%s"%(cSngl.ifo), "%s"%(cSngl.time), "%s"%(cSngl.snr), "%s"%(cSngl.chisqr), "%s"%(cSngl.mass1), "%s"%(cSngl.mass2), "%s"%(cSngl.mchirp) ] #Write the tables into the Wiki object wikiPage.putText("Coincident Trigger Event Information: %s\n"\ %(stfu_pipe.gpsTimeToReadableDate(wikiCoinc.time))) wikiPage.insertTable(cTable) wikiPage.putText("Corresponding Coincident Single IFO Trigger Information\n") wikiPage.insertTable(pTable) #Generate a table of contents to appear after candidate params table wikiPage.tableOfContents(3) #Begin including each checklist item as section with subsections wikiPage.section("Follow-up Checklist") #Put each checklist item wikiPage.subsection("Checklist Summary") wikiPage.subsubsection("Does this candidate pass this checklist?") wikiPage.subsubsection("Answer") wikiPage.subsubsection("Relevant Information and Comments") wikiPage.insertHR() # #First real checklist item wikiPage.subsection("#0 False Alarm Probability") wikiPage.subsubsection("Question") wikiPage.putText("What is the false alarm rate associated with this candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") farTable=wikiPage.wikiTable(2,1) farTable.setTableStyle("background-color: yellow; text-align center;") farTable.data[0][0]="False Alarm Rate" farTable.data[1][0]="%s"%(wikiCoinc.far) wikiPage.insertTable(farTable) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#1 Data Quality Flags") wikiPage.subsubsection("Question") wikiPage.putText("Can the data quality flags coincident with this candidate be safely disregarded?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPath=os.path.split(wikiFilename)[0] dqFileList=wikiFileFinder.get_findFlags() if len(dqFileList) != 1: sys.stdout.write("Warning: DQ flags data product import problem.\n") print "Found %i files."%len(dqFileList) for mf in dqFileList: print mf for myFile in dqFileList: wikiPage.putText("%s\n"%(file(myFile).read())) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#2 Veto Investigations") wikiPage.subsubsection("Question") wikiPage.putText("Does the candidate survive the veto investigations performed at its time?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") vetoFileList=wikiFileFinder.get_findVetos() if len(vetoFileList) != 1: sys.stdout.write("Warning: Veto flags data product import problem.\n") for myFile in vetoFileList:print myFile for myFile in vetoFileList: wikiPage.putText("%s\n"%(file(myFile).read())) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#3 IFO Status") wikiPage.subsubsection("Question") wikiPage.putText("Are the interferometers operating normally with a reasonable level of sensitivity around the time of the candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") #Add link to Daily Stats if wikiCoinc.time <= endOfS5: statsLink=wikiPage.makeExternalLink("http://blue.ligo-wa.caltech.edu/scirun/S5/DailyStatistics/",\ "S5 Daily Stats Page") else: statsLink="This should be a link to S6 Daily Stats!\n" wikiPage.putText(statsLink) #Link figures of merit #Get link for all members of wikiCoinc wikiPage.putText("Figures of Merit\n") if wikiCoinc.time > endOfS5: fomLinks=dict() elems=0 for wikiSngl in wikiCoinc.sngls: if not(wikiSngl.ifo.upper().rstrip().lstrip() == 'V1'): fomLinks[wikiSngl.ifo]=stfu_pipe.getFOMLinks(wikiCoinc.time,wikiSngl.ifo) elems=elems+len(fomLinks[wikiSngl.ifo]) else: for myLabel,myLink,myThumb in stfu_pipe.getFOMLinks(wikiCoinc.time,wikiSngl.ifo): wikiPage.putText("%s\n"%(wikiPage.makeExternalLink(myLink,myLabel))) cols=4 rows=(elems/3)+1 fTable=wikiPage.wikiTable(rows,cols) fTable.data[0]=["IFO,Shift","FOM1","FOM2","FOM3"] currentIndex=0 for myIFOKey in fomLinks.keys(): for label,link,thumb in fomLinks[myIFOKey]: myRow=currentIndex/int(3)+1 myCol=currentIndex%int(3)+1 fTable.data[myRow][0]=label thumbURL=thumb fTable.data[myRow][myCol]="%s"%(wikiPage.linkedRemoteImage(thumb,link)) currentIndex=currentIndex+1 wikiPage.insertTable(fTable) else: wikiPage.putText("Can not automatically fetch S5 FOM links.") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#4 Candidate Appearance") wikiPage.subsubsection("Question") wikiPage.putText("Do the Qscan figures show what we would expect for a gravitational-wave event?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") imageDict=dict() indexDict=dict() thumbDict=dict() for sngl in wikiCoinc.sngls: frametype,channelName=stfu_pipe.figure_out_type(sngl.time,sngl.ifo,'hoft') indexDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_hoft_frame(),\ "*/%s/*/%s/*index.html"%(frametype,sngl.time)) imageDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_hoft_frame(),\ "*%s*_%s_16.00_spectrogram_whitened.png"\ %(sngl.time,channelName)) thumbDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_hoft_frame(),\ "*%s*_%s_16.00_spectrogram_whitened?thumb.png"\ %(sngl.time,channelName)) # #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] if len(indexDict[sngl.ifo]) < 1: wikiPage.putText("GW data channel scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >= 1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >= 1 if enoughImage and enoughIndex: wikiPage.insertQscanTable(imageDict,\ thumbDict,\ indexDict) else: sys.stdout.write("Warning: Candidate appearance plot import problem.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#5 Seismic Plots") wikiPage.subsubsection("Question") wikiPage.putText("Is the seismic activity insignificant around the time of the candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") imageDict=dict() indexDict=dict() thumbDict=dict() zValueDict=dict() imageDictAQ=dict() indexDictAQ=dict() thumbDictAQ=dict() zValueDictAQ=dict() # for sngl in wikiCoinc.sngls_in_coinc(): indexDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ "*/%s_RDS_*/%s/*index.html"%(sngl.ifo,sngl.time)) imageDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ "*/%s_RDS_*/%s/*SEI*_512.00_spectrogram_whitened.png"%\ (sngl.ifo,sngl.time)) thumbDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ "*/%s_RDS_*/%s/*SEI*_512.00_spectrogram_whitened?thumb.png"%\ (sngl.ifo,sngl.time)) #Search for corresponding Omega summary.txt file zValueFiles=fnmatch.filter(wikiFileFinder.get_RDS_R_L1_SEIS(),\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time)) zValueDict[sngl.ifo]=list() if (len(zValueFiles) > 0): for zFile in zValueFiles: zValueDict[sngl.ifo].extend(wikiFileFinder.__readSummary__(zFile)) #Reparse only keeping SEI channels tmpList=list() for chan in zValueDict[sngl.ifo]: if "SEI" in chan[0]: tmpList.append(chan) zValueDict[sngl.ifo]=tmpList else: sys.stdout.write("Omega scan summary file not for for %s. ...skipping...\n"%sngl.ifo) #Search for analyzeQscan files #/L1-analyseQscan_L1_932797512_687_seis_rds_L1_SEI-ETMX_X_z_scat-unspecified-gpstime.png timeString=str(float(sngl.time)).replace(".","_") zValueFiles=fnmatch.filter(wikiFileFinder.get_analyzeQscan_SEIS(),\ "*_%s_%s_*.txt"%(sngl.ifo,timeString)) indexDictAQ[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_analyzeQscan_SEIS(),\ "*_%s_%s_*.html"%(sngl.ifo,timeString)) thumbDictAQ[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_analyzeQscan_SEIS(),\ "*%s-*_%s_*_SEI*_z_scat-unspecified-gpstime_thumb.png"\ %(sngl.ifo,timeString)) imageDictAQ[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_analyzeQscan_SEIS(),\ "*%s-*_%s_*_SEI*_z_scat-unspecified-gpstime.png"\ %(sngl.ifo,timeString)) #Process zValue ranking file if found for IFO zValueDictAQ[sngl.ifo]=list() if len(zValueFiles)>0: for zFile in zValueFiles: zValueDictAQ[sngl.ifo].extend(wikiFileFinder.__readZranks__(zFile)) #Reparse keeping SEI channels tmpList=list() for chan in zValueDictAQ[sngl.ifo]: if "SEI" in chan[0]: tmpList.append(chan) zValueDictAQ[sngl.ifo]=tmpList else: sys.stdout.write("Analyze Qscan Z ranking file not found for %s. ...skipping...\n"%sngl.ifo) #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] imageDictAQ[sngl.ifo]=[file2URL.convert(x) for x in imageDictAQ[sngl.ifo]] indexDictAQ[sngl.ifo]=[file2URL.convert(x) for x in indexDictAQ[sngl.ifo]] thumbDictAQ[sngl.ifo]=[file2URL.convert(x) for x in thumbDictAQ[sngl.ifo]] if len(indexDict[sngl.ifo]) < 1: wikiPage.putText("Seismic scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >=1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >=1 if enoughImage and enoughIndex: wikiPage.insertAnalyzeQscanTable(imageDict, thumbDict, indexDict, zValueDict, imageDictAQ, thumbDictAQ, indexDictAQ, zValueDictAQ) else: sys.stdout.write("Warning: Seismic plots product import problem.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#6 Other environmental causes") wikiPage.subsubsection("Question") wikiPage.putText("Were the environmental disturbances (other than seismic) insignificant at the time of the candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") imageDict=dict() indexDict=dict() thumbDict=dict() zValueDict=dict() imageDictAQ=dict() indexDictAQ=dict() thumbDictAQ=dict() zValueDictAQ=dict() #Select only PEM channels for sngl in wikiCoinc.sngls_in_coinc(): imageDict[sngl.ifo]=list() indexDict[sngl.ifo]=list() thumbDict[sngl.ifo]=list() for myFile in fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*html"%(sngl.ifo,sngl.time)): indexDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*_16.00_spectrogram_whitened.png"%\ (sngl.ifo,sngl.time)): if "PEM" in myFile.upper() and not "SEI" in myFile.upper(): imageDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*_16.00_spectrogram_whitened?thumb.png"%\ (sngl.ifo,sngl.time)): if "PEM" in myFile.upper() and not "SEI" in myFile.upper(): thumbDict[sngl.ifo].append(myFile) #Search for corresponding Omega summary.txt file zValueFiles=fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time)) zValueDict[sngl.ifo]=list() if len(zValueFiles)>0: for zFile in zValueFiles: zValueDict[sngl.ifo].extend(wikiFileFinder.__readSummary__(zFile)) #Reparse only keeping PEM and not SEI channels tmpList=list() for chan in zValueDict[sngl.ifo]: if "PEM" in chan[0] and not "SEI" in chan[0]: tmpList.append(chan) zValueDict[sngl.ifo]=tmpList else: sys.stdout.write("Omega scan summary file not for for %s. ...skipping...\n"%sngl.ifo) #Select associated analyzeQscans imageDictAQ[sngl.ifo]=list() indexDictAQ[sngl.ifo]=list() thumbDictAQ[sngl.ifo]=list() timeString=str(float(sngl.time)).replace(".","_") for myFile in fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*html"%(sngl.ifo,timeString)): indexDictAQ[sngl.ifo].append(myFile) zValueFiles=fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*txt"%(sngl.ifo,timeString)) zValueDictAQ[sngl.ifo]=list() if len(zValueFiles)>0: for zFile in zValueFiles: zValueDictAQ[sngl.ifo].extend(wikiFileFinder.__readZranks__(zFile)) for chan in zValueDictAQ[sngl.ifo]: if "PEM" in chan[0] and not "SEI" in chan[0]: tmpList.append(chan) zValueDictAQ[sngl.ifo]=tmpList else: sys.stdout.write("Analyze Qscan Z ranking file not found for %s. ...skipping...\n"%sngl.ifo) #H1-analyseQscan_H1_931176926_116_rds_H0_PEM-MY_SEISX_z_scat-unspecified-gpstime_thumb.png #H1-analyseQscan_H1_931176926_116_rds_H0_PEM-MY_SEISX_z_scat-unspecified-gpstime.png for myFile in fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*_z_scat-unspecified-gpstime.png"%\ (sngl.ifo,timeString)): if "PEM" in myFile.upper() and not "SEI" in myFile.upper(): imageDictAQ[sngl.ifo].append(myFile) for myFile in fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*_z_scat-unspecified-gpstime?thumb.png"%\ (sngl.ifo,timeString)): if "PEM" in myFile.upper() and not "SEI" in myFile.upper(): thumbDictAQ[sngl.ifo].append(myFile) #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] imageDictAQ[sngl.ifo]=[file2URL.convert(x) for x in imageDictAQ[sngl.ifo]] indexDictAQ[sngl.ifo]=[file2URL.convert(x) for x in indexDictAQ[sngl.ifo]] thumbDictAQ[sngl.ifo]=[file2URL.convert(x) for x in thumbDictAQ[sngl.ifo]] if len(imageDict[sngl.ifo]) < 1: wikiPage.putText("PEM scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >=1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >=1 if enoughImage and enoughIndex: wikiPage.insertAnalyzeQscanTable(imageDict, thumbDict, indexDict, zValueDict, imageDictAQ, thumbDictAQ, indexDictAQ, zValueDictAQ) else: sys.stdout.write("Warning: PEM plots import trouble.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#7 Auxiliary degree of freedom") wikiPage.subsubsection("Question") wikiPage.putText("Were the auxiliary channel transients coincident with the candidate insignificant?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") imageDict=dict() indexDict=dict() thumbDict=dict() zValueDict=dict() imageDictAQ=dict() indexDictAQ=dict() thumbDictAQ=dict() zValueDictAQ=dict() #Select only AUX channels for sngl in wikiCoinc.sngls: imageDict[sngl.ifo]=list() indexDict[sngl.ifo]=list() thumbDict[sngl.ifo]=list() for myFile in fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*html"%(sngl.ifo,sngl.time)): indexDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*_16.00_spectrogram_whitened.png"%\ (sngl.ifo,sngl.time)): if not "PEM" in myFile.upper() or not "SEI" in myFile.upper(): imageDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*_16.00_spectrogram_whitened?thumb.png"%\ (sngl.ifo,sngl.time)): if not "PEM" in myFile.upper() or not "SEI" in myFile.upper(): thumbDict[sngl.ifo].append(myFile) zValueFiles=fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time)) zValueDict[sngl.ifo]=list() if len(zValueFiles)>0: for zFile in zValueFiles: zValueDict[sngl.ifo].extend(wikiFileFinder.__readSummary__(zFile)) #Reparse NOT keeping PEM or SEI channels tmpList=list() for chan in zValueDict[sngl.ifo]: if not "PEM" in chan[0] or not "SEI" in chan[0]: tmpList.append(chan) zValueDict[sngl.ifo]=tmpList else: sys.stdout.write("Omega scan summary file not for for %s. ...skipping...\n"%sngl.ifo) #Select associated analyzeQscans imageDictAQ[sngl.ifo]=list() indexDictAQ[sngl.ifo]=list() thumbDictAQ[sngl.ifo]=list() timeString=str(float(sngl.time)).replace(".","_") #H1-analyseQscan_H1_931176926_116_rds-unspecified-gpstime.html for myFile in fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*html"%(sngl.ifo,timeString)): indexDictAQ[sngl.ifo].append(myFile) zValueFiles=fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*txt"%(sngl.ifo,timeString)) #Process zValue ranking file if found for IFO zValueDictAQ[sngl.ifo]=list() if len(zValueFiles)>0: for zFile in zValueFiles: zValueDictAQ[sngl.ifo].extend(wikiFileFinder.__readZranks__(zFile)) #Reparse NOT keeping PEM or SEI channels tmpList=list() for chan in zValueDictAQ[sngl.ifo]: if not "PEM" in chan[0] or not "SEI" in chan[0]: tmpList.append(chan) zValueDictAQ[sngl.ifo]=tmpList else: sys.stdout.write("Z ranking file not found for %s. ...skipping...\n"%sngl.ifo) #H1-analyseQscan_H1_931176926_116_rds_H0_PEM-MY_SEISX_z_scat-unspecified-gpstime_thumb.png #H1-analyseQscan_H1_931176926_116_rds_H0_PEM-MY_SEISX_z_scat-unspecified-gpstime.png for myFile in fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*_z_scat-unspecified-gpstime.png"%\ (sngl.ifo,timeString)): if not "PEM" in myFile.upper() or not "SEI" in myFile.upper(): imageDictAQ[sngl.ifo].append(myFile) for myFile in fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\ "*%s-*_%s_*_z_scat-unspecified-gpstime?thumb.png"%\ (sngl.ifo,timeString)): if not "PEM" in myFile.upper() or not "SEI" in myFile.upper(): thumbDictAQ[sngl.ifo].append(myFile) #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] imageDictAQ[sngl.ifo]=[file2URL.convert(x) for x in imageDictAQ[sngl.ifo]] indexDictAQ[sngl.ifo]=[file2URL.convert(x) for x in indexDictAQ[sngl.ifo]] thumbDictAQ[sngl.ifo]=[file2URL.convert(x) for x in thumbDictAQ[sngl.ifo]] if len(indexDict[sngl.ifo]) < 1: wikiPage.putText("Other scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >=1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >=1 if enoughImage and enoughIndex: wikiPage.insertAnalyzeQscanTable(imageDict, thumbDict, indexDict, zValueDict, imageDictAQ, thumbDictAQ, indexDictAQ, zValueDictAQ) else: sys.stdout.write("Warning: AUX plots import trouble.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#8 Electronic Log Book") wikiPage.subsubsection("Question") wikiPage.putText("Were the instruments behaving normally according to the comments posted by the sci-mons or the operators in the e-log?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiLinkLHOlog=wikiPage.makeExternalLink(stfu_pipe.getiLogURL(myCoinc.time,"H1"), "Hanford eLog") wikiLinkLLOlog=wikiPage.makeExternalLink(stfu_pipe.getiLogURL(myCoinc.time,"L1"), "Livingston eLog") wikiPage.putText("%s\n\n%s\n\n"%(wikiLinkLHOlog,wikiLinkLLOlog)) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#9 Glitch Report") wikiPage.subsubsection("Question") wikiPage.putText("Were the instruments behaving normally according to the weekly glitch report?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") if int(wikiCoinc.time) >= endOfS5: wikiLinkGlitch=wikiPage.makeExternalLink( "https://www.lsc-group.phys.uwm.edu/twiki/bin/view/DetChar/GlitchStudies", "Glitch Reports for S6" ) else: wikiLinkGlitch=wikiPage.makeExternalLink( "http://www.lsc-group.phys.uwm.edu/glitch/investigations/s5index.html#shift", "Glitch Reports for S5" ) wikiPage.putText("%s\n"%(wikiLinkGlitch)) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#10 Snr versus time") wikiPage.subsubsection("Question") wikiPage.putText("Is this trigger significant in a SNR versus time plot of all triggers in its analysis chunk?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#11 Parameters of the candidate") wikiPage.subsubsection("Question") wikiPage.putText("Does the candidate have a high likelihood of being a gravitational-wave according to its parameters?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Effective Distance Ratio Test\n") effDList=wikiFileFinder.get_effDRatio() if len(effDList) != 1: sys.stdout.write("Warning: Effective Distance Test import problem.\n") for myFile in effDList: wikiPage.putText("%s\n"%(file(myFile).read())) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#12 Snr and Chisq") wikiPage.subsubsection("Question") wikiPage.putText("Are the SNR and CHISQ time series consistent with our expectations for a gravitational wave?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") # #Put plots SNR and Chi sqr # indexList=fnmatch.filter(wikiFileFinder.get_plotsnrchisq(),"*.html") thumbList=fnmatch.filter(wikiFileFinder.get_plotsnrchisq(),"*_snr-*thumb.png") thumbList.extend(fnmatch.filter(wikiFileFinder.get_plotsnrchisq(),"*_chisq-*thumb.png")) thumbList.sort() indexList=[file2URL.convert(x) for x in indexList] thumbList=[file2URL.convert(x) for x in thumbList] #Two thumb types possible "_thumb.png" or ".thumb.png" imageList=[x.replace("_thumb.png",".png").replace(".thumb.png",".png") for x in thumbList] ifoCount=len(wikiCoinc.sngls) rowLabel={"SNR":1,"CHISQ":2} rowCount=len(rowLabel) colCount=ifoCount if len(indexList) >= 1: snrTable=wikiPage.wikiTable(rowCount+1,colCount+1) for i,sngl in enumerate(wikiCoinc.sngls): myIndex="" for indexFile in indexList: if indexFile.__contains__("_pipe_%s_FOLLOWUP_"%sngl.ifo): myIndex=indexFile if myIndex=="": snrTable.data[0][i+1]=" %s "%sngl.ifo else: snrTable.data[0][i+1]=wikiPage.makeExternalLink(myIndex,sngl.ifo) for col,sngl in enumerate(wikiCoinc.sngls): for row,label in enumerate(rowLabel.keys()): snrTable.data[row+1][0]=label for k,image in enumerate(imageList): if (image.__contains__("_%s-"%label.lower()) \ and image.__contains__("pipe_%s_FOLLOWUP"%sngl.ifo)): snrTable.data[row+1][col+1]=" %s "%(wikiPage.linkedRemoteImage(thumbList[k],thumbList[k])) wikiPage.insertTable(snrTable) else: sys.stdout.write("Warning: SNR and CHISQ plots not found.\n") wikiPage.putText("SNR and CHISQ plots not found.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#13 Template bank veto") wikiPage.subsubsection("Question") wikiPage.putText("Is the bank veto value consistent with our expectations for a gravitational wave?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#14 Coherent studies") wikiPage.subsubsection("Question") wikiPage.putText("Are the triggers found in multiple interferometers coherent with each other?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") indexList=fnmatch.filter(wikiFileFinder.get_plotchiatimeseries(),"*.html") if len(indexList) >= 1: myIndex=file2URL.convert(indexList[0]) wikiPage.putText(wikiPage.makeExternalLink(myIndex,\ "%s Coherence Study Results"%(wikiCoinc.ifos))) thumbList=fnmatch.filter(wikiFileFinder.get_plotchiatimeseries(),\ "PLOT_CHIA_%s_snr-squared*thumb.png"%(wikiCoinc.time)) imageList=[x.replace("_thumb.png",".png").replace(".thumb.png",".png") for x in thumbList] rowCount=len(imageList) colCount=1 cohSnrTimeTable=wikiPage.wikiTable(rowCount+1,colCount) cohSnrTimeTable.data[0][0]="%s Coherent SNR Squared Times Series"%(wikiCoinc.ifos) for i,image in enumerate(imageList): cohSnrTimeTable.data[i+1][0]=wikiPage.linkedRemoteImage(image,thumbList[i]) wikiPage.insertTable(cohSnrTimeTable) else: sys.stdout.write("Warning: Coherent plotting jobs not found.\n") wikiPage.putText("Coherent Studies plots not found.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#15 Segmentation Stability") wikiPage.subsubsection("Question") wikiPage.putText("Is the candidate stable against changes in segmentation?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#16 Calibration Stability") wikiPage.subsubsection("Question") wikiPage.putText("Is the candidate stable against changes in calibration that are consistent with systematic uncertainties?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #
|
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,
501,
10406,
854,
25790,
316,
1867,
18,
3536,
20706,
55,
25,
33,
474,
12,
28,
5877,
22,
1578,
1611,
24,
13,
9050,
812,
8441,
33,
4720,
28941,
12,
13044,
2471,
16,
13044,
27055,
71,
13,
468,
2073,
358,
2621,
309,
9050,
585,
598,
508,
1818,
1704,
943,
1380,
33,
20,
1323,
1140,
18,
803,
18,
1808,
12,
13044,
5359,
13,
471,
943,
1380,
411,
4711,
30,
2589,
18,
10283,
18,
2626,
2932,
812,
738,
87,
1818,
1704,
8403,
82,
28385,
64,
1140,
18,
803,
18,
4939,
12,
13044,
5359,
25146,
21,
5717,
9050,
5359,
33,
13044,
5359,
9078,
18,
13044,
6,
943,
1380,
33,
1896,
1380,
15,
21,
468,
468,
1684,
326,
341,
1766,
625,
410,
733,
5527,
468,
9050,
1964,
33,
13044,
12,
13044,
5359,
13,
468,
468,
1788,
1760,
2795,
3080,
859,
4606,
468,
276,
1388,
33,
13044,
1964,
18,
13044,
1388,
12,
22,
16,
29,
13,
276,
1388,
18,
892,
22850,
8247,
6518,
1412,
3113,
315,
12925,
3113,
315,
42,
985,
3113,
315,
13653,
54,
3113,
315,
45,
3313,
55,
12,
27055,
71,
2225,
16,
315,
19228,
87,
12,
3896,
2225,
16,
315,
27055,
71,
10328,
2647,
261,
87,
2225,
16,
315,
5269,
490,
428,
261,
81,
20608,
2225,
16,
315,
782,
481,
84,
490,
428,
261,
81,
20608,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
501,
10406,
854,
25790,
316,
1867,
18,
3536,
20706,
55,
25,
33,
474,
12,
28,
5877,
22,
1578,
1611,
24,
13,
9050,
812,
8441,
33,
4720,
28941,
12,
13044,
2471,
16,
13044,
27055,
71,
13,
468,
2073,
358,
2621,
309,
9050,
585,
598,
508,
1818,
1704,
943,
1380,
33,
20,
1323,
1140,
18,
803,
18,
1808,
12,
13044,
5359,
13,
471,
943,
1380,
411,
4711,
30,
2589,
18,
10283,
18,
2626,
2932,
812,
738,
87,
1818,
1704,
8403,
82,
28385,
64,
1140,
18,
803,
2
] |
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
508,
13,
469,
30,
327,
21508,
4503,
12,
2941,
529,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
508,
13,
469,
30,
327,
21508,
4503,
12,
2941,
529,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
2413,
2873,
1098,
33,
8526,
392,
71,
33,
9083,
1098,
63,
20,
65,
364,
436,
316,
5588,
1098,
63,
21,
30,
14542,
462,
5645,
273,
9041,
352,
476,
29743,
12,
19292,
16,
436,
13,
365,
18,
1330,
4288,
18,
6283,
1343,
12,
343,
5645,
13,
309,
365,
18,
7500,
316,
462,
5645,
18,
18078,
30,
2873,
1098,
18,
6923,
12,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
2413,
2873,
1098,
33,
8526,
392,
71,
33,
9083,
1098,
63,
20,
65,
364,
436,
316,
5588,
1098,
63,
21,
30,
14542,
462,
5645,
273,
9041,
352,
476,
29743,
12,
19292,
16,
436,
13,
365,
18,
1330,
4288,
18,
6283,
1343,
12,
343,
5645,
13,
309,
365,
18,
7500,
316,
462,
5645,
18,
18078,
30,
2873,
1098,
18,
6923,
12,
11415,
352,
476,
29743,
12,
19292,
16,
436,
3719,
392,
71,
33,
86,
309,
1338,
3759,
30,
898,
327,
2873,
1098,
2,
-100,
-100
] |
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.assertEqual(f.read(), b"abc")
|
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,
1831,
30,
16083,
273,
365,
18,
6834,
12,
1899,
16,
1725,
13,
16083,
18,
2626,
12,
70,
6,
28953,
7923,
365,
18,
11231,
5812,
12,
4385,
1594,
18,
27201,
12,
23,
3631,
890,
13,
365,
18,
11231,
5812,
12,
4385,
1594,
18,
88,
1165,
9334,
890,
13,
598,
365,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
315,
6731,
3113,
25056,
33,
20,
13,
487,
284,
30,
365,
18,
11231,
5812,
12,
74,
18,
896,
9334,
324,
6,
18947,
7923,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
1831,
30,
16083,
273,
365,
18,
6834,
12,
1899,
16,
1725,
13,
16083,
18,
2626,
12,
70,
6,
28953,
7923,
365,
18,
11231,
5812,
12,
4385,
1594,
18,
27201,
12,
23,
3631,
890,
13,
365,
18,
11231,
5812,
12,
4385,
1594,
18,
88,
1165,
9334,
890,
13,
598,
365,
18,
3190,
12,
13261,
18,
16961,
19793,
16,
315,
6731,
3113,
25056,
33,
20,
13,
487,
284,
30,
365,
18,
11231,
5812,
12,
74,
18,
896,
9334,
324,
6,
18947,
7923,
2,
-100,
-100,
-100
] |
'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,
3352,
622,
326,
864,
880,
261,
12784,
353,
635,
805,
326,
296,
3674,
22354,
11,
348,
2833,
3352,
16,
3308,
1817,
67,
718,
1435,
353,
3550,
316,
279,
3875,
585,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
3352,
622,
326,
864,
880,
261,
12784,
353,
635,
805,
326,
296,
3674,
22354,
11,
348,
2833,
3352,
16,
3308,
1817,
67,
718,
1435,
353,
3550,
316,
279,
3875,
585,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
1868,
10146,
6134,
365,
18,
92,
3341,
67,
3923,
18,
1289,
1895,
2668,
7956,
2187,
296,
1868,
6148,
2187,
296,
3247,
2187,
1754,
33,
20,
16,
1633,
2218,
6134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
1868,
10146,
6134,
365,
18,
92,
3341,
67,
3923,
18,
1289,
1895,
2668,
7956,
2187,
296,
1868,
6148,
2187,
296,
3247,
2187,
1754,
33,
20,
16,
1633,
2218,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
316,
738,
87,
6659,
434,
738,
87,
1909,
3113,
6659,
16186,
1106,
972,
16186,
529,
972,
16,
6659,
18,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
316,
738,
87,
6659,
434,
738,
87,
1909,
3113,
6659,
16186,
1106,
972,
16186,
529,
972,
16,
6659,
18,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
70,
89,
330,
449,
481,
3546,
30,
7239,
9958,
273,
1140,
18,
588,
11089,
1435,
1140,
18,
343,
1214,
2668,
838,
6134,
563,
1011,
336,
67,
3168,
12,
3074,
16,
296,
86,
3428,
19,
3163,
19,
71,
1574,
2187,
2305,
67,
70,
89,
330,
449,
481,
33,
8381,
13,
1140,
18,
343,
1214,
12,
11089,
9958,
13,
327,
563,
282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
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,
70,
89,
330,
449,
481,
3546,
30,
7239,
9958,
273,
1140,
18,
588,
11089,
1435,
1140,
18,
343,
1214,
2668,
838,
6134,
563,
1011,
336,
67,
3168,
12,
3074,
16,
296,
86,
3428,
19,
3163,
19,
71,
1574,
2187,
2305,
67,
70,
89,
330,
449,
481,
33,
8381,
13,
1140,
18,
343,
1214,
12,
11089,
9958,
13,
327,
563,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
813,
67,
26371,
7923,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
813,
67,
26371,
7923,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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(FailingServerTestCase) xmlrpc_tests.append(CGIHandlerTestCase) support.run_unittest(*xmlrpc_tests)
|
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,
16341,
18,
6923,
12,
5784,
2081,
4709,
2449,
13,
31811,
67,
16341,
18,
6923,
12,
11523,
11462,
2081,
4709,
2449,
21,
13,
31811,
67,
16341,
18,
6923,
12,
11523,
11462,
2081,
4709,
2449,
22,
13,
31811,
67,
16341,
18,
6923,
12,
27825,
2081,
4709,
2449,
13,
31811,
67,
16341,
18,
6923,
12,
2081,
3886,
4709,
2449,
13,
31811,
67,
16341,
18,
6923,
12,
3754,
310,
2081,
4709,
2449,
13,
31811,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
16341,
18,
6923,
12,
5784,
2081,
4709,
2449,
13,
31811,
67,
16341,
18,
6923,
12,
11523,
11462,
2081,
4709,
2449,
21,
13,
31811,
67,
16341,
18,
6923,
12,
11523,
11462,
2081,
4709,
2449,
22,
13,
31811,
67,
16341,
18,
6923,
12,
27825,
2081,
4709,
2449,
13,
31811,
67,
16341,
18,
6923,
12,
2081,
3886,
4709,
2449,
13,
31811,
67,
16341,
18,
6923,
12,
3754,
310,
2081,
4709,
2449,
13,
31811,
67,
16341,
18,
6923,
12,
39,
13797,
1503,
4709,
2449,
13,
225,
2865,
18,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"""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 a.element == Singlet: pivatom = a.neighbors()[0] neigh = pivatom.realNeighbors() self.baggage = pivatom.singNeighbors() self.baggage.remove(a) if neigh: if len(neigh)==2: self.pivot = pivatom.posn() self.pivax = norm(neigh[0].posn()-neigh[1].posn()) self.baggage = [] elif len(neigh)>2: self.pivot = None self.pivax = None self.baggage = [] else: # atom on a single stalk self.pivot = pivatom.posn() self.pivax = norm(self.pivot-neigh[0].posn()) else: # no real neighbors self.pivot = pivatom.posn() self.pivax = None else: # we've grabbed an atom self.pivot = None self.pivax = None self.baggage = a.singNeighbors() self.dragatom = a self.w.update()
|
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,
3179,
518,
1807,
324,
265,
785,
358,
309,
3323,
18,
225,
971,
518,
353,
279,
2863,
3179,
16,
8823,
518,
6740,
18,
3536,
279,
273,
365,
18,
83,
18,
1786,
7466,
309,
486,
279,
30,
327,
468,
2037,
16,
309,
5943,
1703,
315,
24235,
731,
6,
365,
18,
7342,
273,
404,
365,
18,
83,
18,
428,
93,
18,
7342,
273,
404,
309,
279,
18,
2956,
422,
348,
310,
1810,
30,
293,
427,
7466,
273,
279,
18,
17549,
1435,
63,
20,
65,
1073,
2031,
273,
293,
427,
7466,
18,
7688,
27053,
1435,
365,
18,
70,
17535,
410,
273,
293,
427,
7466,
18,
2470,
27053,
1435,
365,
18,
70,
17535,
410,
18,
4479,
12,
69,
13,
309,
1073,
2031,
30,
309,
562,
12,
4644,
2031,
13,
631,
22,
30,
365,
18,
27306,
273,
293,
427,
7466,
18,
917,
82,
1435,
365,
18,
84,
427,
651,
273,
4651,
12,
4644,
2031,
63,
20,
8009,
917,
82,
1435,
17,
4644,
2031,
63,
21,
8009,
917,
82,
10756,
365,
18,
70,
17535,
410,
273,
5378,
1327,
562,
12,
4644,
2031,
13,
34,
22,
30,
365,
18,
27306,
273,
599,
365,
18,
84,
427,
651,
273,
599,
365,
18,
70,
17535,
410,
273,
5378,
469,
30,
468,
3179,
603,
279,
2202,
384,
2960,
365,
18,
27306,
273,
293,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3179,
518,
1807,
324,
265,
785,
358,
309,
3323,
18,
225,
971,
518,
353,
279,
2863,
3179,
16,
8823,
518,
6740,
18,
3536,
279,
273,
365,
18,
83,
18,
1786,
7466,
309,
486,
279,
30,
327,
468,
2037,
16,
309,
5943,
1703,
315,
24235,
731,
6,
365,
18,
7342,
273,
404,
365,
18,
83,
18,
428,
93,
18,
7342,
273,
404,
309,
279,
18,
2956,
422,
348,
310,
1810,
30,
293,
427,
7466,
273,
279,
18,
17549,
1435,
63,
20,
65,
1073,
2031,
273,
2
] |
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,
2626,
12,
2844,
13,
282,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
2626,
12,
2844,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.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 ))) " \ "AND (line.partner_id=res_partner.id) " \ "AND (account_account.company_id = %s) " \ "ORDER BY res_partner.name", (form['date1'],form['company_id']))
|
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' ))) AND (line.partner_id=res_partner.id) AND (account_account.company_id = %s) ORDER BY res_partner.name""" % (form['date1'],form['company_id']))
|
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 function and leads to an AssertionError.""" print "- performing Delaunay Triangulation (%d points)..." % len(points) nodePositions, edges, sigma = hourglass.delaunay(points) print "- storing result in a GeoMap..." result = _delaunayMapFromData(nodePositions, edges, imageSize, sigma) if not contourProtection: return result print "- ex-post marking of contour edges for faked CDT..." print " (keep your fingers crossed that no segment is missing!)" edgeSourceDarts = [None] * result.maxEdgeLabel() i = 0 while i < len(jumpPoints) - 1: contourStartLabel = jumpPoints[i] + 1 # +1 for conversion of contourEndLabel = jumpPoints[i+1] + 1 # point indices -> node labels dart = result.node(contourStartLabel).anchor() for nodeLabel in range(contourStartLabel+1, contourEndLabel): j = dart.startNode().degree() + 2 while dart.endNodeLabel() != nodeLabel and j > 0: dart.nextSigma() j -= 1 assert j > 0, """Original contour fragment missing in Delauny map! (This is a problem of the fakedConstrainedDelaunayMap, try compiling the triangle module and using the real constrainedDelaunayMap instead.)""" dart.edge().setFlag(contourProtection) edgeSourceDarts[dart.edgeLabel()] = dart.label() dart.nextAlpha() j = dart.startNode().degree() + 1 while dart.endNodeLabel() != contourStartLabel and j > 0: dart.nextSigma() j -= 1 assert j > 0, "Original contour fragment missing in Delauny map!" dart.edge().setFlag(contourProtection) edgeSourceDarts[dart.edgeLabel()] = dart.label() i += 1 if onlyInner: sys.stdout.write("- reducing delaunay triangulation to inner part...") outerFace = [False] * result.maxFaceLabel() for edge in result.edgeIter(): if edge.flags() & contourProtection: dart = result.dart(edgeSourceDarts[edge.label()]) assert dart.edgeLabel() == edge.label(), str(edge) while True: mergeDart = dart.clone().prevSigma() if mergeDart.edge().flags() & contourProtection: break outerFace[result.mergeFaces(mergeDart).label()] = True sys.stdout.write(".") sys.stdout.flush() sys.stdout.write("\n") return result
|
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,
3536,
9704,
27666,
2837,
69,
318,
528,
863,
16,
333,
17264,
279,
10696,
471,
1216,
10804,
6390,
5231,
325,
303,
621,
4492,
18,
225,
1220,
2026,
2321,
1347,
326,
10696,
1552,
486,
912,
777,
27666,
5155,
16,
1492,
353,
5950,
316,
333,
445,
471,
5871,
87,
358,
392,
12068,
12123,
225,
1172,
3701,
14928,
6603,
69,
318,
528,
10000,
539,
6234,
6142,
72,
3143,
13,
7070,
738,
562,
12,
4139,
13,
756,
11024,
16,
5231,
16,
7299,
273,
6126,
75,
459,
18,
3771,
69,
318,
528,
12,
4139,
13,
225,
1172,
3701,
15729,
563,
316,
279,
9385,
863,
7070,
563,
273,
389,
3771,
69,
318,
528,
863,
1265,
751,
12,
2159,
11024,
16,
5231,
16,
29344,
16,
7299,
13,
225,
309,
486,
15332,
16938,
30,
327,
563,
225,
1172,
3701,
431,
17,
2767,
24073,
434,
15332,
5231,
364,
284,
9477,
385,
9081,
7070,
1172,
315,
225,
261,
10102,
3433,
284,
310,
414,
30783,
730,
716,
1158,
3267,
353,
3315,
5,
2225,
225,
3591,
1830,
40,
485,
87,
273,
306,
7036,
65,
380,
563,
18,
1896,
6098,
2224,
1435,
225,
277,
273,
374,
1323,
277,
411,
562,
12,
24574,
5636,
13,
300,
404,
30,
15332,
1685,
2224,
273,
11833,
5636,
63,
77,
65,
397,
404,
468,
397,
21,
364,
4105,
434,
15332,
1638,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3536,
9704,
27666,
2837,
69,
318,
528,
863,
16,
333,
17264,
279,
10696,
471,
1216,
10804,
6390,
5231,
325,
303,
621,
4492,
18,
225,
1220,
2026,
2321,
1347,
326,
10696,
1552,
486,
912,
777,
27666,
5155,
16,
1492,
353,
5950,
316,
333,
445,
471,
5871,
87,
358,
392,
12068,
12123,
225,
1172,
3701,
14928,
6603,
69,
318,
528,
10000,
539,
6234,
6142,
72,
3143,
13,
7070,
738,
562,
12,
4139,
13,
756,
11024,
16,
5231,
16,
7299,
273,
6126,
75,
459,
18,
3771,
69,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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,
358,
326,
15466,
1438,
2190,
273,
315,
23203,
69,
17,
94,
12369,
63,
37,
17,
62,
5717,
23203,
69,
17,
94,
12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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
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,
358,
326,
15466,
1438,
2190,
273,
315,
23203,
69,
17,
94,
12369,
63,
37,
17,
62,
5717,
23203,
69,
17,
94,
12369,
63,
37,
17,
62,
12369,
63,
20,
17,
29,
12369,
67,
13,
7388,
3936,
273,
283,
18,
11100,
2932,
380,
2932,
397,
2190,
397,
225,
9369,
397,
27816,
82,
7923,
400,
273,
3936,
18,
4720,
454,
12,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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, "public").text = "%s" % self.flagPublicEvent # XXX standard values for unset keys!!!???!!!??? epidists = [] # go through all stream-dictionaries and look for picks for i in range(len(self.streams)): d = self.dicts[i] st = self.streams[i]
|
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,
3631,
315,
1132,
20387,
955,
273,
365,
18,
1576,
1133,
3292,
2902,
1133,
734,
3546,
871,
67,
723,
273,
2592,
12,
2902,
16,
315,
2575,
67,
723,
7923,
2592,
12,
2575,
67,
723,
16,
315,
1132,
20387,
955,
273,
315,
19840,
6,
2592,
12,
2575,
67,
723,
16,
315,
1355,
20387,
955,
273,
365,
18,
5053,
2592,
12,
2575,
67,
723,
16,
315,
482,
20387,
955,
273,
2213,
87,
6,
738,
365,
18,
6420,
4782,
1133,
225,
468,
11329,
4529,
924,
364,
2646,
1311,
25885,
14646,
35,
25885,
14646,
35,
5529,
350,
1486,
273,
5378,
468,
1960,
3059,
777,
1407,
17,
72,
14336,
471,
2324,
364,
6002,
87,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
302,
273,
365,
18,
16287,
63,
77,
65,
384,
273,
365,
18,
16320,
63,
77,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
3631,
315,
1132,
20387,
955,
273,
365,
18,
1576,
1133,
3292,
2902,
1133,
734,
3546,
871,
67,
723,
273,
2592,
12,
2902,
16,
315,
2575,
67,
723,
7923,
2592,
12,
2575,
67,
723,
16,
315,
1132,
20387,
955,
273,
315,
19840,
6,
2592,
12,
2575,
67,
723,
16,
315,
1355,
20387,
955,
273,
365,
18,
5053,
2592,
12,
2575,
67,
723,
16,
315,
482,
20387,
955,
273,
2213,
87,
6,
738,
365,
18,
6420,
4782,
1133,
225,
468,
11329,
4529,
924,
364,
2646,
1311,
2
] |
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() if cats == []: wikipedia.output(u"========== %s ==========" % p.title()) print "No categories" print "----------------------------------------" newcats=choosecats(text) if newcats != [] and newcats is not None: make_categories(p, newcats, mysite) else: if docorrections: wikipedia.output(u"========== %s ==========" % p.title()) for c in cats: print c.title() print "----------------------------------------" newcats=choosecats(text) if newcats == None: make_categories(p, [], mysite) elif newcats != []: make_categories(p, newcats, mysite) except wikipedia.IsRedirectPage: pass finally: pass else: wikipedia.showHelp('catall')
|
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,
2400,
3700,
2704,
4278,
997,
280,
9329,
87,
33,
8381,
469,
30,
4456,
273,
3157,
1733,
18,
4110,
4117,
12,
3175,
13,
309,
4456,
30,
3157,
273,
4456,
309,
3157,
30,
775,
30,
364,
293,
316,
4456,
30,
775,
30,
977,
33,
84,
18,
588,
1435,
27525,
33,
84,
18,
8995,
1435,
309,
27525,
422,
5378,
30,
21137,
18,
2844,
12,
89,
6,
1432,
631,
738,
87,
422,
1432,
6,
738,
293,
18,
2649,
10756,
1172,
315,
2279,
6477,
6,
1172,
315,
2443,
788,
6,
394,
24750,
33,
25777,
24750,
12,
955,
13,
309,
394,
24750,
480,
5378,
471,
394,
24750,
353,
486,
599,
30,
1221,
67,
8995,
12,
84,
16,
394,
24750,
16,
312,
1900,
1137,
13,
469,
30,
309,
997,
280,
9329,
87,
30,
21137,
18,
2844,
12,
89,
6,
1432,
631,
738,
87,
422,
1432,
6,
738,
293,
18,
2649,
10756,
364,
276,
316,
27525,
30,
1172,
276,
18,
2649,
1435,
1172,
315,
2443,
788,
6,
394,
24750,
33,
25777,
24750,
12,
955,
13,
309,
394,
24750,
422,
599,
30,
1221,
67,
8995,
12,
84,
16,
5378,
16,
312,
1900,
1137,
13,
1327,
394,
24750,
480,
5378,
30,
1221,
67,
8995,
12,
84,
16,
394,
24750,
16,
312,
1900,
1137,
13,
1335,
21137,
18,
2520,
5961,
1964,
30,
1342,
3095,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2400,
3700,
2704,
4278,
997,
280,
9329,
87,
33,
8381,
469,
30,
4456,
273,
3157,
1733,
18,
4110,
4117,
12,
3175,
13,
309,
4456,
30,
3157,
273,
4456,
309,
3157,
30,
775,
30,
364,
293,
316,
4456,
30,
775,
30,
977,
33,
84,
18,
588,
1435,
27525,
33,
84,
18,
8995,
1435,
309,
27525,
422,
5378,
30,
21137,
18,
2844,
12,
89,
6,
1432,
631,
738,
87,
422,
1432,
6,
738,
293,
18,
2649,
10756,
1172,
315,
2279,
6477,
6,
1172,
315,
2443,
788,
6,
2
] |
|
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.appendExten("s","Set(DIAL_OPTIONS=m)", self.pbx) else: s.appendExten("s","Set(DIAL_OPTIONS=r)", self.pbx) if self.ivrtime: if self.times: times=self.times.split(',') for t in times: s.appendExten("s","GotoIfTime(%s?%s,s,1)" % (t,self.ivrtime), self.pbx) if self.timeout: s.appendExten("s","Set(TIMEOUT(absolute)=%s)" % self.timeout, self.pbx) for i in range(self.repeat): s.appendExten("s","Background(%s)" % self.backgroundfile, self.pbx) if self.pause: s.appendExten("s","WaitExten(%s)" % self.pause, self.pbx) s.appendExten("s","WaitExten(%d)" % self.waittime, self.pbx) s.appendExten("s","Goto(%s,%s,1)" % (pbx,self.operator), self.pbx) if self.ivr_1: s.appendExten("1","Goto(%s,s,1)" % self.ivr_1, self.pbx) if self.ivr_2: s.appendExten("2","Goto(%s,s,1)" % self.ivr_2, self.pbx) if self.ivr_3: s.appendExten("3","Goto(%s,s,1)" % self.ivr_3, self.pbx) if self.ivr_4: s.appendExten("4","Goto(%s,s,1)" % self.ivr_4, self.pbx) if self.ivr_5: s.appendExten("5","Goto(%s,s,1)" % self.ivr_5, self.pbx) if self.ivr_6: s.appendExten("6","Goto(%s,s,1)" % self.ivr_6, self.pbx) if self.ivr_7: s.appendExten("7","Goto(%s,s,1)" % self.ivr_7, self.pbx) if self.ivr_8: s.appendExten("8","Goto(%s,s,1)" % self.ivr_8, self.pbx) if self.ivr_9: s.appendExten("9","Goto(%s,s,1)" % self.ivr_9, self.pbx) if self.ivr_ast: s.appendExten("*","Goto(%s,s,1)" % self.ivr_ast, self.pbx) if self.phone_1: s.appendExten("1","Goto(%s,%s,1)" % (pbx,self.phone_1), self.pbx) if self.phone_2: s.appendExten("2","Goto(%s,%s,1)" % (pbx,self.phone_2), self.pbx) if self.phone_3: s.appendExten("3","Goto(%s,%s,1)" % (pbx,self.phone_3), self.pbx) if self.phone_4: s.appendExten("4","Goto(%s,%s,1)" % (pbx,self.phone_4), self.pbx) if self.phone_5: s.appendExten("5","Goto(%s,%s,1)" % (pbx,self.phone_5), self.pbx) if self.phone_6: s.appendExten("6","Goto(%s,%s,1)" % (pbx,self.phone_6), self.pbx) if self.phone_7: s.appendExten("7","Goto(%s,%s,1)" % (pbx,self.phone_7), self.pbx) if self.phone_8: s.appendExten("8","Goto(%s,%s,1)" % (pbx,self.phone_8), self.pbx) if self.phone_9: s.appendExten("9","Goto(%s,%s,1)" % (pbx,self.phone_9), self.pbx) if self.phone_ast: s.appendExten("*","Goto(%s,%s,1)" % (pbx,self.phone_ast), self.pbx) s.appendExten("0", "Goto(%s,%s,1)" % (pbx,self.operator), self.pbx) s.appendExten("i","Playback(invalid)", self.pbx) s.appendExten("i","Goto(%s,%s,1)" % (pbx,self.operator), self.pbx) s.appendExten("t","ResetCDR(w)", self.pbx) s.appendExten("t","NoCDR", self.pbx) s.appendExten("t","Hangup", self.pbx) s.appendExten("T","ResetCDR(w)", self.pbx) s.appendExten("T","NoCDR", self.pbx) s.appendExten("T","Hangup", self.pbx) s.appendExten("#","ResetCDR(w)", self.pbx) s.appendExten("#","NoCDR", self.pbx) s.appendExten("#","Hangup", self.pbx)
|
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,
365,
18,
5733,
92,
469,
30,
6386,
92,
273,
315,
844,
5322,
6,
272,
18,
6923,
2932,
6702,
5095,
87,
6,
738,
6386,
92,
13,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
694,
12,
9503,
12,
11052,
13,
5095,
72,
2225,
738,
365,
18,
11052,
4538,
16,
365,
18,
5733,
92,
13,
309,
365,
18,
8683,
76,
30,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
694,
81,
407,
3950,
21056,
9275,
87,
2225,
738,
365,
18,
8683,
76,
16,
365,
18,
5733,
92,
13,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
694,
12,
2565,
1013,
67,
12422,
33,
81,
2225,
16,
365,
18,
5733,
92,
13,
469,
30,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
694,
12,
2565,
1013,
67,
12422,
33,
86,
2225,
16,
365,
18,
5733,
92,
13,
309,
365,
18,
427,
86,
957,
30,
309,
365,
18,
8293,
30,
4124,
33,
2890,
18,
8293,
18,
4939,
12,
2187,
6134,
364,
268,
316,
4124,
30,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
43,
6302,
2047,
950,
9275,
87,
35,
9,
87,
16,
87,
16,
21,
2225,
738,
261,
88,
16,
2890,
18,
427,
86,
957,
3631,
365,
18,
5733,
92,
13,
309,
365,
18,
4538,
30,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
18,
5733,
92,
469,
30,
6386,
92,
273,
315,
844,
5322,
6,
272,
18,
6923,
2932,
6702,
5095,
87,
6,
738,
6386,
92,
13,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
694,
12,
9503,
12,
11052,
13,
5095,
72,
2225,
738,
365,
18,
11052,
4538,
16,
365,
18,
5733,
92,
13,
309,
365,
18,
8683,
76,
30,
272,
18,
6923,
424,
2253,
2932,
87,
15937,
694,
81,
407,
3950,
21056,
9275,
87,
2225,
738,
365,
18,
8683,
76,
16,
365,
18,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 is not None: f90 = f90[0] if cmd==f90: cmd = self.compiler_f90[0] return cmd
|
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,
4700,
353,
486,
599,
30,
284,
4700,
273,
284,
4700,
63,
20,
65,
1797,
273,
365,
18,
4177,
322,
1538,
3292,
1589,
67,
4172,
3546,
309,
1797,
353,
486,
599,
30,
1797,
273,
1797,
63,
20,
65,
309,
1797,
631,
74,
4700,
30,
1797,
273,
365,
18,
9576,
67,
74,
4700,
63,
20,
65,
469,
30,
284,
9349,
273,
365,
18,
4177,
322,
1538,
18,
588,
2668,
9576,
67,
74,
9349,
6134,
309,
284,
9349,
353,
486,
599,
30,
284,
9349,
273,
284,
9349,
63,
20,
65,
309,
1797,
631,
74,
9349,
30,
1797,
273,
365,
18,
9576,
67,
74,
9349,
63,
20,
65,
327,
1797,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
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,
4700,
353,
486,
599,
30,
284,
4700,
273,
284,
4700,
63,
20,
65,
1797,
273,
365,
18,
4177,
322,
1538,
3292,
1589,
67,
4172,
3546,
309,
1797,
353,
486,
599,
30,
1797,
273,
1797,
63,
20,
65,
309,
1797,
631,
74,
4700,
30,
1797,
273,
365,
18,
9576,
67,
74,
4700,
63,
20,
65,
469,
30,
284,
9349,
273,
365,
18,
4177,
322,
1538,
18,
588,
2668,
9576,
67,
74,
9349,
6134,
309,
284,
9349,
353,
486,
599,
30,
284,
9349,
273,
284,
9349,
2
] |
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, ip in enumerate(self._objects): if ip.finished: # This one is finished already, no need to connect to it. prefinished.append(n) continue args = self._get_connect_args(ip, n) ip.connect(self.finish, False, *args).user_args_first = True ip.exception.connect(self.finish, True, *args).user_args_first = True
|
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,
67,
29011,
471,
486,
365,
18,
13527,
30,
468,
10548,
476,
14805,
358,
5055,
1347,
732,
4076,
16,
1427,
2037,
732,
3077,
358,
326,
468,
6808,
657,
5491,
2184,
358,
1104,
596,
1347,
2898,
4076,
18,
675,
13527,
273,
5378,
364,
290,
16,
2359,
316,
4241,
12,
2890,
6315,
6911,
4672,
309,
2359,
18,
13527,
30,
468,
1220,
1245,
353,
6708,
1818,
16,
1158,
1608,
358,
3077,
358,
518,
18,
675,
13527,
18,
6923,
12,
82,
13,
1324,
833,
273,
365,
6315,
588,
67,
3612,
67,
1968,
12,
625,
16,
290,
13,
2359,
18,
3612,
12,
2890,
18,
13749,
16,
1083,
16,
380,
1968,
2934,
1355,
67,
1968,
67,
3645,
273,
1053,
2359,
18,
4064,
18,
3612,
12,
2890,
18,
13749,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
67,
29011,
471,
486,
365,
18,
13527,
30,
468,
10548,
476,
14805,
358,
5055,
1347,
732,
4076,
16,
1427,
2037,
732,
3077,
358,
326,
468,
6808,
657,
5491,
2184,
358,
1104,
596,
1347,
2898,
4076,
18,
675,
13527,
273,
5378,
364,
290,
16,
2359,
316,
4241,
12,
2890,
6315,
6911,
4672,
309,
2359,
18,
13527,
30,
468,
1220,
1245,
353,
6708,
1818,
16,
1158,
1608,
358,
3077,
358,
518,
18,
675,
13527,
18,
6923,
12,
82,
13,
1324,
833,
273,
365,
6315,
588,
67,
2
] |
|
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__ and func_name must be a string cannot_set_attr(self.b, '__name__', 7, TypeError) cannot_set_attr(self.b, 'func_name', 7, TypeError) # __name__ must be available when in restricted mode. Exec will raise # AttributeError if __name__ is not available on f. s = """def f(): pass\nf.__name__""" exec s in {'__builtins__': {}} # Test on methods, too self.assertEqual(self.f.a.__name__, 'a') self.assertEqual(self.fi.a.__name__, 'a') cannot_set_attr(self.f.a, "__name__", 'a', AttributeError) cannot_set_attr(self.fi.a, "__name__", 'a', AttributeError)
|
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,
296,
70,
6134,
365,
18,
70,
16186,
529,
972,
273,
296,
71,
11,
365,
18,
11231,
5812,
12,
2890,
18,
70,
16186,
529,
972,
16,
296,
71,
6134,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
529,
16,
296,
71,
6134,
365,
18,
70,
18,
644,
67,
529,
273,
296,
72,
11,
365,
18,
11231,
5812,
12,
2890,
18,
70,
16186,
529,
972,
16,
296,
72,
6134,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
529,
16,
296,
72,
6134,
468,
1001,
529,
972,
471,
1326,
67,
529,
1297,
506,
279,
533,
365,
18,
12892,
67,
542,
67,
1747,
12,
2890,
18,
70,
16,
4940,
529,
972,
2187,
2371,
16,
3580,
13,
365,
18,
12892,
67,
542,
67,
1747,
12,
2890,
18,
70,
16,
296,
644,
67,
529,
2187,
2371,
16,
3580,
13,
468,
1001,
529,
972,
1297,
506,
2319,
1347,
316,
15693,
1965,
18,
3889,
903,
1002,
468,
6394,
309,
1001,
529,
972,
353,
486,
2319,
603,
284,
18,
272,
273,
3536,
536,
284,
13332,
1342,
64,
82,
74,
16186,
529,
972,
8395,
1196,
272,
316,
13666,
972,
12406,
2679,
972,
4278,
2618,
97,
468,
7766,
603,
2590,
16,
4885,
365,
18,
11231,
5812,
12,
2890,
18,
74,
18,
69,
16186,
529,
972,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
296,
70,
6134,
365,
18,
70,
16186,
529,
972,
273,
296,
71,
11,
365,
18,
11231,
5812,
12,
2890,
18,
70,
16186,
529,
972,
16,
296,
71,
6134,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
529,
16,
296,
71,
6134,
365,
18,
70,
18,
644,
67,
529,
273,
296,
72,
11,
365,
18,
11231,
5812,
12,
2890,
18,
70,
16186,
529,
972,
16,
296,
72,
6134,
365,
18,
11231,
5812,
12,
2890,
18,
70,
18,
644,
67,
529,
2
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.