rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|---|---|
self.gridlayout15.addWidget(self.dnaBasesPerTurnDoubleSpinBox,1,1,1,1)
|
self.gridlayout22.addWidget(self.dnaBasesPerTurnDoubleSpinBox,1,1,1,1)
|
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
|
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
12,
20,
16,
20,
16,
29,
4033,
16,
6028,
21,
2934,
1467,
1435,
2934,
17336,
774,
12,
1299,
1386,
2556,
6353,
18,
15903,
1225,
7002,
1435,
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,
0,
0,
0,
0,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177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
12,
20,
16,
20,
16,
29,
4033,
16,
6028,
21,
2934,
1467,
1435,
2934,
17336,
774,
12,
1299,
1386,
2556,
6353,
18,
15903,
1225,
7002,
1435,
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
] |
super(GenshiLexer, self).__init__(HtmlLexer, GenshiMarkupLexer,
|
super(GenshiLexer, self).__init__(XmlLexer, GenshiMarkupLexer,
|
def __init__(self, **options): super(GenshiLexer, self).__init__(HtmlLexer, GenshiMarkupLexer, **options)
|
8c3dc4d212781ac8fc3d715812710eebdbb4d18f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6148/8c3dc4d212781ac8fc3d715812710eebdbb4d18f/templates.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
2240,
12,
7642,
674,
77,
13356,
16,
365,
2934,
972,
2738,
972,
12,
4432,
13356,
16,
10938,
674,
77,
13111,
13356,
16,
2826,
2116,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
2116,
4672,
2240,
12,
7642,
674,
77,
13356,
16,
365,
2934,
972,
2738,
972,
12,
4432,
13356,
16,
10938,
674,
77,
13111,
13356,
16,
2826,
2116,
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
] |
cover['cover'] = cover['thumbnail'].replace('/thumbs/', '/')
|
id = cover['thumbnail'].split("/")[-1].split(".")[0] cover['cover'] = self.root_url + "/res/exe/GetElement.php?ID=" + id
|
def __extract_from_list(self): """Extracts all the needed information from the already parsed search result page and adds the found cover to the list."""
|
e9e96ec5052955d2f8d3c4d37f97ba6a6e4cd740 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/e9e96ec5052955d2f8d3c4d37f97ba6a6e4cd740/albumart.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8004,
67,
2080,
67,
1098,
12,
2890,
4672,
3536,
12809,
777,
326,
3577,
1779,
628,
326,
1818,
2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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8004,
67,
2080,
67,
1098,
12,
2890,
4672,
3536,
12809,
777,
326,
3577,
1779,
628,
326,
1818,
2707,
1623,
563,
1363,
471,
4831,
326,
1392,
5590,
358,
326,
666,
12123,
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
] |
"""Set the info for objects that does not have a getInfo function"""
|
"""Set the info for objects that does not have a getInfo function (Temporary workaround, should be deprecated soon)"""
|
def _setCachedInfo(self, info): """Set the info for objects that does not have a getInfo function""" self._cached_info = info
|
ec1304614ea5bc838c2f5bb83444fc59ac9c26d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/ec1304614ea5bc838c2f5bb83444fc59ac9c26d8/pylast.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
9839,
966,
12,
2890,
16,
1123,
4672,
3536,
694,
326,
1123,
364,
2184,
716,
1552,
486,
1240,
279,
17142,
445,
261,
11685,
18975,
16,
1410,
506,
6849,
17136,
15574,
225,
365,
6315,
7097,
67,
1376,
273,
1123,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
9839,
966,
12,
2890,
16,
1123,
4672,
3536,
694,
326,
1123,
364,
2184,
716,
1552,
486,
1240,
279,
17142,
445,
261,
11685,
18975,
16,
1410,
506,
6849,
17136,
15574,
225,
365,
6315,
7097,
67,
1376,
273,
1123,
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
] |
player.socket.sysmessage(str(material))
|
def checkmaterial(self, player, arguments, silent = 0): backpack = player.getbackpack()
|
14a5599a691a421a64bb0083fd5eb10c4aa0cf0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/14a5599a691a421a64bb0083fd5eb10c4aa0cf0d/makemenus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
20542,
12,
2890,
16,
7291,
16,
1775,
16,
10404,
273,
374,
4672,
1473,
2920,
273,
7291,
18,
588,
823,
2920,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
|
<http://www.cgd.ucar.edu/cms/eaton/cf-metadata/CF-1.0.html accepted. The default is C{'standard'}, which corresponds to the mixed
|
<http://cf-pcmdi.llnl.gov/documents/cf-conventions/1.1/cf-conventions.html are accepted. The default is C{'standard'}, which corresponds to the mixed
|
def __init__(self,unit_string,calendar='standard'): """
|
f1a8ea649b71709764626c8971eda6dbaaefa807 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8103/f1a8ea649b71709764626c8971eda6dbaaefa807/netcdftime.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4873,
67,
1080,
16,
11650,
2218,
10005,
11,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4873,
67,
1080,
16,
11650,
2218,
10005,
11,
4672,
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,
-100,
-100
] |
tf = tarfile.open( os.path.join( cliParams.targetPath, tarName ), "r" ) cwd = os.getcwd() os.chdir(cliParams.targetPath) for member in tf.getmembers(): tf.extract( member ) os.chdir(cwd)
|
tarCmd = "tar xzf '%s' -C '%s'" % ( tarPath, cliParams.targetPath ) os.system( tarCmd )
|
def downloadAndExtractTarball( pkgVer, targetPath, subDir = False, checkHash = True ): if not subDir: subDir = "tars" tarName = "%s.tar.gz" % ( pkgVer ) tarPath = os.path.join( cliParams.targetPath, tarName ) try: if not urlretrieveTimeout( "%s/%s/%s" % ( cliParams.downBaseURL, subDir, tarName ), tarPath, 300 ): logERROR( "Cannot download %s" % tarName ) return False except Exception, e: logERROR( "Cannot download %s: %s" % ( tarName, str( e ) ) ) sys.exit( 1 ) if checkHash: md5Name = "%s.md5" % ( pkgVer ) md5Path = os.path.join( cliParams.targetPath, md5Name ) try: if not urlretrieveTimeout( "%s/%s/%s" % ( cliParams.downBaseURL, subDir, md5Name ), md5Path, 300 ): logERROR( "Cannot download %s" % tarName ) return False except Exception, e: logERROR( "Cannot download %s: %s" % ( md5Name, str( e ) ) ) sys.exit( 1 ) #Read md5 fd = open( os.path.join( cliParams.targetPath, md5Name ), "r" ) md5Expected = fd.read().strip() fd.close() #Calculate md5 md5Calculated = md5() fd = open( os.path.join( cliParams.targetPath, tarName ), "r" ) buf = fd.read( 4096 ) while buf: md5Calculated.update( buf ) buf = fd.read( 4096 ) fd.close() #Check if md5Expected != md5Calculated.hexdigest(): logERROR( "Oops... md5 for package %s failed!" % pkgVer ) sys.exit( 1 ) #Delete md5 file os.unlink( md5Path ) #Extract tf = tarfile.open( os.path.join( cliParams.targetPath, tarName ), "r" ) cwd = os.getcwd() os.chdir(cliParams.targetPath) for member in tf.getmembers(): tf.extract( member ) os.chdir(cwd) #Delete tar os.unlink( tarPath ) return True
|
2513efb597014ea03ea61ab8399b51003c14768f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/2513efb597014ea03ea61ab8399b51003c14768f/dirac-install.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
1876,
4976,
56,
23846,
12,
3475,
3945,
16,
15026,
16,
720,
1621,
273,
1083,
16,
866,
2310,
273,
1053,
262,
30,
309,
486,
720,
1621,
30,
720,
1621,
273,
315,
88,
5913,
6,
8232,
461,
273,
2213,
87,
18,
11718,
18,
9764,
6,
738,
261,
3475,
3945,
262,
8232,
743,
273,
1140,
18,
803,
18,
5701,
12,
4942,
1370,
18,
3299,
743,
16,
8232,
461,
262,
775,
30,
309,
486,
880,
17466,
2694,
12,
2213,
87,
5258,
87,
5258,
87,
6,
738,
261,
4942,
1370,
18,
2378,
29064,
16,
720,
1621,
16,
8232,
461,
262,
16,
8232,
743,
16,
11631,
262,
30,
613,
3589,
12,
315,
4515,
4224,
738,
87,
6,
738,
8232,
461,
262,
327,
1083,
1335,
1185,
16,
425,
30,
613,
3589,
12,
315,
4515,
4224,
738,
87,
30,
738,
87,
6,
738,
261,
8232,
461,
16,
609,
12,
425,
262,
262,
262,
2589,
18,
8593,
12,
404,
262,
309,
866,
2310,
30,
3481,
25,
461,
273,
2213,
87,
18,
1264,
25,
6,
738,
261,
3475,
3945,
262,
3481,
25,
743,
273,
1140,
18,
803,
18,
5701,
12,
4942,
1370,
18,
3299,
743,
16,
3481,
25,
461,
262,
775,
30,
309,
486,
880,
17466,
2694,
12,
2213,
87,
5258,
87,
5258,
87,
6,
738,
261,
4942,
1370,
18,
2378,
29064,
16,
720,
1621,
16,
3481,
25,
461,
262,
16,
3481,
25,
743,
16,
11631,
262,
30,
613,
3589,
12,
315,
4515,
4224,
738,
87,
6,
738,
8232,
461,
262,
327,
1083,
1335,
1185,
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,
4224,
1876,
4976,
56,
23846,
12,
3475,
3945,
16,
15026,
16,
720,
1621,
273,
1083,
16,
866,
2310,
273,
1053,
262,
30,
309,
486,
720,
1621,
30,
720,
1621,
273,
315,
88,
5913,
6,
8232,
461,
273,
2213,
87,
18,
11718,
18,
9764,
6,
738,
261,
3475,
3945,
262,
8232,
743,
273,
1140,
18,
803,
18,
5701,
12,
4942,
1370,
18,
3299,
743,
16,
8232,
461,
262,
775,
30,
309,
486,
880,
17466,
2694,
12,
2213,
87,
5258,
87,
5258,
87,
6,
738,
261,
4942,
1370,
18,
2378,
29064,
16,
720,
1621,
16,
8232,
461,
262,
16,
8232,
743,
16,
11631,
262,
30,
613,
3589,
12,
315,
4515,
4224,
738,
87,
6,
738,
8232,
461,
262,
327,
1083,
2
] |
if not "PEM" in chan[0] or not "SEI" in chan[0]:
|
if not "PEM" in chan[0] and not "SEI" in chan[0]:
|
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 sys.stdout.write("Available via browser for wiki upload at %s\n"\ %(file2URL.convert(wikiFilename))) # #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") wikiPage.putText("UTC Time of trigger :%s"%(stfu_pipe.gpsTimeToReadableDate(wikiCoinc.time))) 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,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() filesOmega=wikiFileFinder.get_RDS_R_L1_SEIS() filesAnalyze=wikiFileFinder.get_analyzeQscan_SEIS() for sngl in wikiCoinc.sngls_in_coinc(): indexDict[sngl.ifo],imageDict[sngl.ifo],thumbDict[sngl.ifo],zValueDict[sngl.ifo]=list(),list(),list(),list() indexDictAQ[sngl.ifo],imageDictAQ[sngl.ifo],thumbDictAQ[sngl.ifo],zValueDictAQ[sngl.ifo]=list(),list(),list(),list() indexDict[sngl.ifo]=fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*index.html"%(sngl.ifo,sngl.time)) imageDict[sngl.ifo]=fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*SEI*_512.00_spectrogram_whitened.png"%\ (sngl.ifo,sngl.time)) thumbDict[sngl.ifo]=fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*SEI*_512.00_spectrogram_whitened?thumb.png"%\ (sngl.ifo,sngl.time)) #Search for corresponding Omega summary.txt file zValueDict[sngl.ifo]=list() for zFile in fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time)): for chan in wikiFileFinder.__readSummary__(zFile): if "SEI" in chan[0]: zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Search for analyzeQscan files timeString=str(float(sngl.time)).replace(".","_") indexDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ "*_%s_%s_*.html"%(sngl.ifo,timeString)) imageDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_SEI*_z_scat-unspecified-gpstime.png"\ %(sngl.ifo,timeString)) thumbDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_SEI*_z_scat-unspecified-gpstime_thumb.png"\ %(sngl.ifo,timeString)) #Load of analyzeQscan z file if available zValueDictAQ[sngl.ifo]=list() for zFile in fnmatch.filter(filesAnalyze,\ "*_%s_%s_*.txt"%(sngl.ifo,timeString)): for chan in wikiFileFinder.__readSummary__(zFile): if "SEI" in chan[0]: zValueDictAQ[sngl.ifo].append(chan) if len(zValueDictAQ[sngl.ifo]) == 0: sys.stdout.write("AnalyzeQscan summary file not or empty for %s. ...continuing...\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,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() #Select only PEM channels filesOmega=wikiFileFinder.get_RDS_R_L1() filesAnalyze=wikiFileFinder.get_analyzeQscan_RDS() for sngl in wikiCoinc.sngls_in_coinc(): indexDict[sngl.ifo],imageDict[sngl.ifo],thumbDict[sngl.ifo],zValueDict[sngl.ifo]=list(),list(),list(),list() indexDictAQ[sngl.ifo],imageDictAQ[sngl.ifo],thumbDictAQ[sngl.ifo],zValueDictAQ[sngl.ifo]=list(),list(),list(),list() for myFile in fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*html"%(sngl.ifo,sngl.time)): indexDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesOmega,\ "*/%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(filesOmega,\ "*/%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 zValueDict[sngl.ifo]=list() for zFile in fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time)): for chan in wikiFileFinder.__readSummary__(zFile): if "PEM" in chan[0] and not "SEI" in chan[0]: zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Select associated analyzeQscans timeString=str(float(sngl.time)).replace(".","_") for myFile in fnmatch.filter(filesAnalyze,\ "*%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(filesAnalyze,\ "*%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) for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*html"%(sngl.ifo,timeString)): indexDictAQ[sngl.ifo].append(myFile) zValueDictAQ[sngl.ifo]=list() for zFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*txt"%(sngl.ifo,timeString)): for chan in wikiFileFinder.__readSummary__(zFile): if "PEM" in chan[0] and not "SEI" in chan[0]: zValueDictAQ[sngl.ifo].append(chan) if len(zValueDictAQ[sngl.ifo]) == 0: sys.stdout.write("AnalyzeQscan summary file not or empty for %s. ...continuing...\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(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,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() #Select only AUX channels filesOmega=wikiFileFinder.get_RDS_R_L1() filesAnalyze=wikiFileFinder.get_analyzeQscan_RDS() for sngl in wikiCoinc.sngls: indexDict[sngl.ifo],imageDict[sngl.ifo],thumbDict[sngl.ifo],zValueDict[sngl.ifo]=list(),list(),list(),list() indexDictAQ[sngl.ifo],imageDictAQ[sngl.ifo],thumbDictAQ[sngl.ifo],zValueDictAQ[sngl.ifo]=list(),list(),list(),list() for myFile in fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*html"%(sngl.ifo,sngl.time)): indexDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesOmega,\ "*/%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(filesOmega,\ "*/%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) zValueDict[sngl.ifo]=list() for zFile in fnmatch.filter(filesOmega,\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time)): for chan in wikiFileFinder.__readSummary__(zFile): if not "PEM" in chan[0] or not "SEI" in chan[0]: zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Select associated analyzeQscans timeString=str(float(sngl.time)).replace(".","_") for myFile in fnmatch.filter(filesAnalyze,\ "*%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(filesAnalyze,\ "*%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) for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*html"%(sngl.ifo,timeString)): indexDictAQ[sngl.ifo].append(myFile) zValueDictAQ[sngl.ifo]=list() for zFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*txt"%(sngl.ifo,timeString)): for chan in wikiFileFinder.__readSummary__(zFile): if not "PEM" in chan[0] or not "SEI" in chan[0]: zValueDictAQ[sngl.ifo].append(chan) if len(zValueDictAQ[sngl.ifo]) == 0: sys.stdout.write("AnalyzeQscan summary file not or empty for %s. ...continuing...\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("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() # #
|
c64520f211dcf13695883191b82cf519c4889317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/c64520f211dcf13695883191b82cf519c4889317/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,
2589,
18,
10283,
18,
2626,
2932,
5268,
3970,
4748,
364,
9050,
3617,
622,
738,
87,
64,
82,
12691,
8975,
768,
22,
1785,
18,
6283,
12,
13044,
5359,
20349,
225,
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,
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
] |
f.write(" [%s%s graph]" % (config.interwiki_graph_url, interwiki_graph.getFilename(self.originPage)))
|
filename = interwiki_graph.getFilename(self.originPage, extension = config.interwiki_graph_formats[0]) f.write(" [%s%s graph]" % (config.interwiki_graph_url, filename))
|
def problem(self, txt, createneed = True): """Report a problem with the resolution of this subject.""" wikipedia.output(u"ERROR: %s" % txt) self.confirm = True if createneed: self.problemfound = True if globalvar.autonomous: try: f = codecs.open('autonomous_problem.dat', 'a', 'utf-8') f.write("* %s {%s}" % (self.originPage.aslink(True), txt)) if config.interwiki_graph_url: f.write(" [%s%s graph]" % (config.interwiki_graph_url, interwiki_graph.getFilename(self.originPage))) f.write("\n") f.close() except: #raise print 'File autonomous_problem.dat open or corrupted! Try again with -restore.' sys.exit()
|
d07dad2b46ea74aff2f155dd1114d865c6427e0b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/d07dad2b46ea74aff2f155dd1114d865c6427e0b/interwiki.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6199,
12,
2890,
16,
6463,
16,
1519,
270,
4009,
329,
273,
1053,
4672,
3536,
4820,
279,
6199,
598,
326,
7861,
434,
333,
3221,
12123,
21137,
18,
2844,
12,
89,
6,
3589,
30,
738,
87,
6,
738,
6463,
13,
365,
18,
10927,
273,
1053,
309,
1519,
270,
4009,
329,
30,
365,
18,
18968,
7015,
273,
1053,
309,
2552,
1401,
18,
5854,
4708,
1481,
30,
775,
30,
284,
273,
17437,
18,
3190,
2668,
5854,
4708,
1481,
67,
18968,
18,
3404,
2187,
296,
69,
2187,
296,
3158,
17,
28,
6134,
284,
18,
2626,
2932,
14,
738,
87,
288,
9,
87,
1532,
738,
261,
2890,
18,
10012,
1964,
18,
345,
1232,
12,
5510,
3631,
6463,
3719,
309,
642,
18,
2761,
13044,
67,
4660,
67,
718,
30,
1544,
273,
1554,
13044,
67,
4660,
18,
588,
5359,
12,
2890,
18,
10012,
1964,
16,
2710,
273,
642,
18,
2761,
13044,
67,
4660,
67,
11962,
63,
20,
5717,
284,
18,
2626,
2932,
9799,
87,
9,
87,
2667,
4279,
738,
261,
1425,
18,
2761,
13044,
67,
4660,
67,
718,
16,
1544,
3719,
284,
18,
2626,
31458,
82,
7923,
284,
18,
4412,
1435,
1335,
30,
468,
11628,
1172,
296,
812,
2059,
4708,
1481,
67,
18968,
18,
3404,
1696,
578,
27823,
5,
6161,
3382,
598,
300,
13991,
1093,
2589,
18,
8593,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6199,
12,
2890,
16,
6463,
16,
1519,
270,
4009,
329,
273,
1053,
4672,
3536,
4820,
279,
6199,
598,
326,
7861,
434,
333,
3221,
12123,
21137,
18,
2844,
12,
89,
6,
3589,
30,
738,
87,
6,
738,
6463,
13,
365,
18,
10927,
273,
1053,
309,
1519,
270,
4009,
329,
30,
365,
18,
18968,
7015,
273,
1053,
309,
2552,
1401,
18,
5854,
4708,
1481,
30,
775,
30,
284,
273,
17437,
18,
3190,
2668,
5854,
4708,
1481,
67,
18968,
18,
3404,
2187,
296,
69,
2187,
296,
3158,
17,
28,
6134,
284,
18,
2626,
2932,
14,
738,
87,
288,
9,
87,
1532,
738,
261,
2890,
18,
10012,
1964,
18,
345,
1232,
12,
5510,
3631,
6463,
3719,
309,
642,
18,
2761,
13044,
67,
2
] |
if not torot: return Decimal(self)
|
def shift(self, other, context=None): """Returns a shifted copy of self, value-of-other times.""" if context is None: context = getcontext()
|
6f3900163a50d04ecae173e2703f626f5daf8318 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/6f3900163a50d04ecae173e2703f626f5daf8318/decimal.py
|
[
1,
8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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4654,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
279,
21340,
1610,
434,
365,
16,
460,
17,
792,
17,
3011,
4124,
12123,
309,
819,
353,
599,
30,
819,
273,
336,
2472,
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
] |
|
os.write(f, "exec %s -c 'import sys; sys.exit(47)'\n" %
|
os.write(f, "exec '%s' -c 'import sys; sys.exit(47)'\n" %
|
def test_call_string(self): # call() function with string argument on UNIX f, fname = self.mkstemp() os.write(f, "#!/bin/sh\n") os.write(f, "exec %s -c 'import sys; sys.exit(47)'\n" % sys.executable) os.close(f) os.chmod(fname, 0700) rc = subprocess.call(fname) os.remove(fname) self.assertEqual(rc, 47)
|
40bd0d9f64b657d3aeef7ef49ebdf5a491e4d683 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/40bd0d9f64b657d3aeef7ef49ebdf5a491e4d683/test_subprocess.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1991,
67,
1080,
12,
2890,
4672,
468,
745,
1435,
445,
598,
533,
1237,
603,
23160,
284,
16,
5299,
273,
365,
18,
24816,
19781,
84,
1435,
1140,
18,
2626,
12,
74,
16,
6619,
5,
19,
4757,
19,
674,
64,
82,
7923,
1140,
18,
2626,
12,
74,
16,
315,
4177,
1995,
87,
11,
300,
71,
296,
5666,
2589,
31,
2589,
18,
8593,
12,
9462,
2506,
64,
82,
6,
738,
2589,
18,
17751,
13,
1140,
18,
4412,
12,
74,
13,
1140,
18,
343,
1711,
12,
12749,
16,
10934,
713,
13,
4519,
273,
6652,
18,
1991,
12,
12749,
13,
1140,
18,
4479,
12,
12749,
13,
365,
18,
11231,
5812,
12,
1310,
16,
17495,
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,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18,
2626,
12,
74,
16,
6619,
5,
19,
4757,
19,
674,
64,
82,
7923,
1140,
18,
2626,
12,
74,
16,
315,
4177,
1995,
87,
11,
300,
71,
296,
5666,
2589,
31,
2589,
18,
8593,
12,
9462,
2506,
64,
82,
6,
738,
2589,
18,
17751,
13,
1140,
18,
4412,
12,
74,
13,
1140,
18,
343,
1711,
12,
12749,
16,
10934,
713,
13,
4519,
273,
6652,
18,
1991,
12,
12749,
13,
1140,
18,
4479,
12,
12749,
13,
365,
18,
11231,
5812,
12,
1310,
16,
17495,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
azi = __calc_azi(newpt[1], newpt[0])
|
azi = __calc_azi(newpt[0], newpt[1])
|
def __get_corner(point, transmat, orientmat, db): newpt = __point_transformation(point, transmat, orientmat) if db: print "New Point:", newpt pol = __calc_polar(newpt[0], newpt[1], newpt[2]) azi = __calc_azi(newpt[1], newpt[0]) return (pol, azi)
|
28b3e5cc90ae0cc78ae52a1b69d0df938babb351 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/762/28b3e5cc90ae0cc78ae52a1b69d0df938babb351/calc_dgs_params.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
30519,
12,
1153,
16,
906,
7373,
16,
7891,
7373,
16,
1319,
4672,
394,
337,
273,
1001,
1153,
67,
2338,
1471,
12,
1153,
16,
906,
7373,
16,
7891,
7373,
13,
309,
1319,
30,
1172,
315,
1908,
4686,
2773,
16,
394,
337,
2952,
273,
1001,
12448,
67,
3915,
297,
12,
2704,
337,
63,
20,
6487,
394,
337,
63,
21,
6487,
394,
337,
63,
22,
5717,
10562,
77,
273,
1001,
12448,
67,
1561,
77,
12,
2704,
337,
63,
20,
6487,
394,
337,
63,
21,
5717,
327,
261,
3915,
16,
10562,
77,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
30519,
12,
1153,
16,
906,
7373,
16,
7891,
7373,
16,
1319,
4672,
394,
337,
273,
1001,
1153,
67,
2338,
1471,
12,
1153,
16,
906,
7373,
16,
7891,
7373,
13,
309,
1319,
30,
1172,
315,
1908,
4686,
2773,
16,
394,
337,
2952,
273,
1001,
12448,
67,
3915,
297,
12,
2704,
337,
63,
20,
6487,
394,
337,
63,
21,
6487,
394,
337,
63,
22,
5717,
10562,
77,
273,
1001,
12448,
67,
1561,
77,
12,
2704,
337,
63,
20,
6487,
394,
337,
63,
21,
5717,
327,
261,
3915,
16,
10562,
77,
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
] |
- ``diffusion_matrix`` - if True the given matrix `l` is transformed to a matrix which performs the same operation over GF(2) as `l` over `GF(2^n)` (default: False).
|
- ``diffusion_matrix`` - if True the given matrix ``l`` is transformed to a matrix which performs the same operation over `\mathbb{F}_2` as ``l`` over `GF(2^n)` (default: ``False``).
|
def phi(self, l, diffusion_matrix=False): r""" Given a list/matrix of elements in `GF(2^n)`, return a matching list/matrix of elements in `GF(2)`. INPUT: - ``l`` - element to perform phi on. - ``diffusion_matrix`` - if True the given matrix `l` is transformed to a matrix which performs the same operation over GF(2) as `l` over `GF(2^n)` (default: False). EXAMPLE:: sage: sr = mq.SR(2, 1, 2, 4, gf2=True) sage: k = sr.base_ring() sage: A = matrix(k, 1, 2, [k.gen(), 0] ) sage: sr.phi(A) [0 0] [0 0] [1 0] [0 0] """ ret = [] r, c, e = self.r, self.c, self.e
|
f145241e51a69266a2640a052ee008637b5d9160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f145241e51a69266a2640a052ee008637b5d9160/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7706,
12,
2890,
16,
328,
16,
3122,
7063,
67,
5667,
33,
8381,
4672,
436,
8395,
16803,
279,
666,
19,
5667,
434,
2186,
316,
1375,
43,
42,
12,
22,
66,
82,
13,
9191,
327,
279,
3607,
666,
19,
5667,
434,
2186,
316,
1375,
43,
42,
12,
22,
13,
8338,
225,
12943,
30,
282,
300,
225,
12176,
80,
10335,
300,
930,
358,
3073,
7706,
603,
18,
300,
12176,
5413,
7063,
67,
5667,
10335,
300,
309,
1053,
326,
864,
3148,
12176,
80,
10335,
353,
10220,
358,
279,
3148,
1492,
11199,
326,
1967,
1674,
1879,
1375,
64,
15949,
9897,
95,
42,
9044,
22,
68,
487,
12176,
80,
10335,
1879,
1375,
43,
42,
12,
22,
66,
82,
22025,
261,
1886,
30,
12176,
8381,
10335,
2934,
225,
5675,
21373,
2866,
225,
272,
410,
30,
9133,
273,
18327,
18,
10090,
12,
22,
16,
404,
16,
576,
16,
1059,
16,
13828,
22,
33,
5510,
13,
272,
410,
30,
417,
273,
9133,
18,
1969,
67,
8022,
1435,
272,
410,
30,
432,
273,
3148,
12,
79,
16,
404,
16,
576,
16,
306,
79,
18,
4507,
9334,
374,
65,
262,
272,
410,
30,
9133,
18,
9973,
12,
37,
13,
306,
20,
374,
65,
306,
20,
374,
65,
306,
21,
374,
65,
306,
20,
374,
65,
3536,
325,
273,
5378,
436,
16,
276,
16,
425,
273,
365,
18,
86,
16,
365,
18,
71,
16,
365,
18,
73,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7706,
12,
2890,
16,
328,
16,
3122,
7063,
67,
5667,
33,
8381,
4672,
436,
8395,
16803,
279,
666,
19,
5667,
434,
2186,
316,
1375,
43,
42,
12,
22,
66,
82,
13,
9191,
327,
279,
3607,
666,
19,
5667,
434,
2186,
316,
1375,
43,
42,
12,
22,
13,
8338,
225,
12943,
30,
282,
300,
225,
12176,
80,
10335,
300,
930,
358,
3073,
7706,
603,
18,
300,
12176,
5413,
7063,
67,
5667,
10335,
300,
309,
1053,
326,
864,
3148,
12176,
80,
10335,
353,
10220,
358,
279,
3148,
1492,
11199,
326,
1967,
1674,
1879,
1375,
64,
15949,
9897,
95,
42,
9044,
22,
68,
487,
12176,
80,
10335,
1879,
1375,
43,
42,
12,
22,
66,
82,
22025,
261,
1886,
30,
12176,
8381,
2
] |
@login_required @view def diffpatch_mission(request, passed_data={}):
|
def diffpatch_data(request, passed_data={}):
|
def diffpatch_patchsingle_get_patch(request): return make_download(controllers.PatchSingleFileMission.get_patch(), filename=controllers.PatchSingleFileMission.PATCH_FILENAME)
|
8952b834a23d1cccb81c65653d763599d94b7c84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/8952b834a23d1cccb81c65653d763599d94b7c84/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3122,
2272,
67,
2272,
7526,
67,
588,
67,
2272,
12,
2293,
4672,
327,
1221,
67,
7813,
12,
20171,
18,
7332,
5281,
812,
49,
19710,
18,
588,
67,
2272,
9334,
1544,
33,
20171,
18,
7332,
5281,
812,
49,
19710,
18,
20366,
67,
16080,
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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,
18,
20366,
67,
16080,
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
] |
coltypes = dict( (v,k) for k,v in me.colspecs.iteritems() )
|
coltypes = dict( (v,k) for k,v in me.coltypes_sa2db.iteritems() ) coltypes.update( me.coltypes_db2sa)
|
def metadata( me, engine =None): coltypes = dict( (v,k) for k,v in me.colspecs.iteritems() ) engine = engine or me.engine me.metadata = metadata = sqlalchemy.MetaData( engine, reflect=True) for table in metadata.table_iterator(): table.name = plain( table.name) #print `table`
|
d3c06fd5b181cdf1d6d7c6fda6e03bdb23984a1f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/d3c06fd5b181cdf1d6d7c6fda6e03bdb23984a1f/autoload.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1982,
12,
1791,
16,
4073,
273,
7036,
4672,
645,
2352,
273,
2065,
12,
261,
90,
16,
79,
13,
364,
417,
16,
90,
316,
1791,
18,
1293,
2352,
67,
13098,
22,
1966,
18,
2165,
3319,
1435,
262,
645,
2352,
18,
2725,
12,
1791,
18,
1293,
2352,
67,
1966,
22,
13098,
13,
4073,
273,
4073,
578,
1791,
18,
8944,
1791,
18,
4165,
273,
1982,
273,
1847,
24182,
18,
6998,
12,
4073,
16,
3037,
33,
5510,
13,
364,
1014,
316,
1982,
18,
2121,
67,
9838,
13332,
1014,
18,
529,
273,
7351,
12,
1014,
18,
529,
13,
468,
1188,
1375,
2121,
68,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1982,
12,
1791,
16,
4073,
273,
7036,
4672,
645,
2352,
273,
2065,
12,
261,
90,
16,
79,
13,
364,
417,
16,
90,
316,
1791,
18,
1293,
2352,
67,
13098,
22,
1966,
18,
2165,
3319,
1435,
262,
645,
2352,
18,
2725,
12,
1791,
18,
1293,
2352,
67,
1966,
22,
13098,
13,
4073,
273,
4073,
578,
1791,
18,
8944,
1791,
18,
4165,
273,
1982,
273,
1847,
24182,
18,
6998,
12,
4073,
16,
3037,
33,
5510,
13,
364,
1014,
316,
1982,
18,
2121,
67,
9838,
13332,
1014,
18,
529,
273,
7351,
12,
1014,
18,
529,
13,
468,
1188,
1375,
2121,
68,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print(keys) print(vals) raise Exception("Number of vals does not equal number of keys")
|
raise Exception("Number of vals does not equal number of keys. \ Number of vals are: "+str(len(vals))+" and number of keys are: "+str(len(keys)))
|
def get_x_initial_guess_values(self): """ Extract ValueReference and InitialGuess values for all differentiated variables. Returns: Dict with ValueReference as key and InitialGuess as value. """ keys = self._xpatheval("//ScalarVariable/ValueReference/text()[../../VariableCategory=\"state\"]") vals = self._xpatheval("//ScalarVariable/Attributes/RealAttributes/InitialGuess/text()[../../../../VariableCategory=\"state\"]") if len(keys)!=len(vals): print(keys) print(vals) raise Exception("Number of vals does not equal number of keys") return dict(zip(keys, vals))
|
f764f349d643190118591f5efb0058e97cef2494 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f764f349d643190118591f5efb0058e97cef2494/xmlparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
92,
67,
6769,
67,
20885,
67,
2372,
12,
2890,
4672,
3536,
8152,
1445,
2404,
471,
10188,
15977,
924,
364,
777,
3775,
10206,
3152,
18,
225,
2860,
30,
9696,
598,
1445,
2404,
487,
498,
471,
10188,
15977,
487,
460,
18,
225,
3536,
1311,
273,
365,
6315,
18644,
8622,
2932,
759,
13639,
3092,
19,
620,
2404,
19,
955,
1435,
63,
16644,
3092,
4457,
5189,
2019,
2412,
4279,
13,
5773,
273,
365,
6315,
18644,
8622,
2932,
759,
13639,
3092,
19,
2498,
19,
6955,
2498,
19,
4435,
15977,
19,
955,
1435,
63,
16644,
16644,
3092,
4457,
5189,
2019,
2412,
4279,
13,
309,
562,
12,
2452,
13,
5,
33,
1897,
12,
4524,
4672,
1002,
1185,
2932,
1854,
434,
5773,
1552,
486,
3959,
1300,
434,
1311,
18,
521,
3588,
434,
5773,
854,
30,
13773,
701,
12,
1897,
12,
4524,
3719,
9078,
471,
1300,
434,
1311,
854,
30,
13773,
701,
12,
1897,
12,
2452,
20349,
327,
2065,
12,
4450,
12,
2452,
16,
5773,
3719,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
92,
67,
6769,
67,
20885,
67,
2372,
12,
2890,
4672,
3536,
8152,
1445,
2404,
471,
10188,
15977,
924,
364,
777,
3775,
10206,
3152,
18,
225,
2860,
30,
9696,
598,
1445,
2404,
487,
498,
471,
10188,
15977,
487,
460,
18,
225,
3536,
1311,
273,
365,
6315,
18644,
8622,
2932,
759,
13639,
3092,
19,
620,
2404,
19,
955,
1435,
63,
16644,
3092,
4457,
5189,
2019,
2412,
4279,
13,
5773,
273,
365,
6315,
18644,
8622,
2932,
759,
13639,
3092,
19,
2498,
19,
6955,
2498,
19,
4435,
15977,
19,
955,
1435,
63,
16644,
16644,
3092,
4457,
5189,
2019,
2412,
4279,
13,
309,
562,
12,
2452,
13,
5,
33,
1897,
12,
4524,
4672,
1002,
1185,
2932,
1854,
434,
5773,
1552,
486,
2
] |
*args [Optional] Any additional arguments will be passed to the program deployed on vessels.
|
def init(geni_username, vesselcount, vesseltype, program_filename, *args): """ <Purpose> Initializes the deployment of an arbitrary service. Populates a global configuration dictionary and returns a dict of data that could be required by the run() function. init() must be called before the run() function. Note on the return dict: The return value of init() is meant to contain data that is needed by calls to explib.start_vessel() within the run() function. At the time of creation of this library, the only such data that is required by deployable services is the user's GENI port. To add support for services requiring more arguments, simply add the necessary data to the dictionary returned by this function. <Arguments> geni_username SeattleGENI username. Used to locate and handle public and private key files. vesselcount The number of vessels on which to deploy. vesseltype The type of vessel to acquire, based on the SEATTLEGENI_VESSEL_TYPE_* constants within experimentlib.py program_filename The filename of the program to deploy and monitor on vessels. *args [Optional] Any additional arguments will be passed to the program deployed on vessels. <Exceptions> ValueError Raised if argument vesseltype doesn't match one of the experimentlib SEATTLEGENI_VESSEL_TYPE_* constants, if argument program file does not exist, or if argument number of vessels on which to deploy exceeds the user's number of vessel credits. <Side Effects> Initializes certain global variables. <Returns> A dictionary containing data that clients might need for running program on vessels. """ # Fill config dict with argument data # Validate vesseltype, based on constants in explib if vesseltype not in [explib.SEATTLEGENI_VESSEL_TYPE_WAN, explib.SEATTLEGENI_VESSEL_TYPE_LAN, explib.SEATTLEGENI_VESSEL_TYPE_NAT, explib.SEATTLEGENI_VESSEL_TYPE_RAND]: raise ValueError('Invalid vessel type specified. Argument vessel type must be one of the SEATTLEGENI_VESSEL_TYPE_* constants defined in experimentlib.py') config['vesseltype'] = vesseltype # Verify that program file exists if not os.path.isfile(program_filename): raise ValueError('Specified program file ' + program_filename + ' does not exist') config['program_filename'] = program_filename # Setup explib identity object and GENI details config['identity'] = explib.create_identity_from_key_files( geni_username + '.publickey', geni_username + '.privatekey') config['geni_port'] = explib.seattlegeni_user_port(config['identity']) # Validate number of vessels on which to deploy num_vslcredits = explib.seattlegeni_max_vessels_allowed(config['identity']) if vesselcount > num_vslcredits: raise ValueError('Invalid number of vessels specified. The number of deployed vessels must be less than or equal to the user\'s number of vessel credits.') config['vesselcount'] = vesselcount # Create and populate the return dict ret_dict = { 'geni_port': config['geni_port'] } return ret_dict
|
1b25613d2fa7b3bee00f1cdf239a1636ed9f8e57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/1b25613d2fa7b3bee00f1cdf239a1636ed9f8e57/overlord.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
4507,
77,
67,
5053,
16,
331,
403,
292,
1883,
16,
331,
403,
292,
723,
16,
5402,
67,
3459,
16,
380,
1968,
4672,
3536,
411,
10262,
4150,
34,
10188,
3128,
326,
6314,
434,
392,
11078,
1156,
18,
10264,
17099,
279,
2552,
1664,
3880,
471,
1135,
279,
2065,
434,
501,
716,
3377,
506,
1931,
635,
326,
1086,
1435,
445,
18,
1208,
1435,
1297,
506,
2566,
1865,
326,
1086,
1435,
445,
18,
225,
3609,
603,
326,
327,
2065,
30,
1021,
327,
460,
434,
1208,
1435,
353,
20348,
358,
912,
501,
716,
353,
3577,
635,
4097,
358,
431,
6673,
18,
1937,
67,
90,
403,
292,
1435,
3470,
326,
1086,
1435,
445,
18,
2380,
326,
813,
434,
6710,
434,
333,
5313,
16,
326,
1338,
4123,
501,
716,
353,
1931,
635,
7286,
429,
4028,
353,
326,
729,
1807,
611,
1157,
45,
1756,
18,
225,
2974,
527,
2865,
364,
4028,
29468,
1898,
1775,
16,
8616,
527,
326,
4573,
501,
358,
326,
3880,
2106,
635,
333,
445,
18,
225,
411,
4628,
34,
3157,
77,
67,
5053,
3265,
4558,
298,
16652,
45,
2718,
18,
10286,
358,
10627,
471,
1640,
1071,
471,
3238,
498,
1390,
18,
331,
403,
292,
1883,
1021,
1300,
434,
331,
403,
10558,
603,
1492,
358,
7286,
18,
331,
403,
292,
723,
1021,
618,
434,
331,
403,
292,
358,
10533,
16,
2511,
603,
326,
3174,
789,
56,
900,
16652,
45,
67,
3412,
12130,
48,
67,
2399,
67,
14,
6810,
3470,
8724,
2941,
18,
2074,
5402,
67,
3459,
1021,
1544,
434,
326,
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,
1208,
12,
4507,
77,
67,
5053,
16,
331,
403,
292,
1883,
16,
331,
403,
292,
723,
16,
5402,
67,
3459,
16,
380,
1968,
4672,
3536,
411,
10262,
4150,
34,
10188,
3128,
326,
6314,
434,
392,
11078,
1156,
18,
10264,
17099,
279,
2552,
1664,
3880,
471,
1135,
279,
2065,
434,
501,
716,
3377,
506,
1931,
635,
326,
1086,
1435,
445,
18,
1208,
1435,
1297,
506,
2566,
1865,
326,
1086,
1435,
445,
18,
225,
3609,
603,
326,
327,
2065,
30,
1021,
327,
460,
434,
1208,
1435,
353,
20348,
358,
912,
501,
716,
353,
3577,
635,
4097,
358,
431,
6673,
18,
1937,
67,
90,
403,
292,
1435,
3470,
326,
1086,
1435,
445,
18,
2380,
326,
813,
434,
6710,
434,
333,
5313,
2
] |
|
if (len(file_names) != 0):
|
if (len(file_names) != 0 and opts.compile):
|
def __call__(O, file_names): import sys opts = O.options lines = fable.cout.process( file_names=file_names, top_unit_name=opts.top_unit_name, dynamic_parameters=O.dynamic_parameters, fem_do_safe=not opts.no_fem_do_safe, arr_nd_size_max=opts.arr_nd_size_max, inline_all=opts.inline_all, common_equivalence_simple=set(opts.common_equivalence_simple.split(",")), namespace=opts.namespace, separate_cmn_hpp=opts.separate_cmn_hpp, number_of_function_files=opts.number_of_function_files, debug=opts.debug) text = "\n".join(lines)+"\n" if (opts.top_unit_name is None or not opts.debug): sys.stdout.write(text) if (len(file_names) != 0): print if (len(file_names) != 0 and opts.compile): write_only_if_safe(file_name="fable_cout.cpp", text=text) from fable import simple_compilation comp_env = simple_compilation.environment() out_name = comp_env.build( link=opts.link, file_name_cpp="fable_cout.cpp", show_command=True) print if (opts.run): from libtbx import easy_run import os op = os.path cmd = op.join(".", out_name) if (opts.valgrind): cmd = "valgrind " + cmd print cmd easy_run.call(command=cmd) print
|
a6eff680069c8f5a397712608c86c3acc22ab979 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/a6eff680069c8f5a397712608c86c3acc22ab979/cout.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
51,
16,
585,
67,
1973,
4672,
1930,
2589,
1500,
273,
531,
18,
2116,
2362,
273,
284,
429,
18,
71,
659,
18,
2567,
12,
585,
67,
1973,
33,
768,
67,
1973,
16,
1760,
67,
4873,
67,
529,
33,
4952,
18,
3669,
67,
4873,
67,
529,
16,
5976,
67,
3977,
33,
51,
18,
14507,
67,
3977,
16,
284,
351,
67,
2896,
67,
4626,
33,
902,
1500,
18,
2135,
67,
74,
351,
67,
2896,
67,
4626,
16,
2454,
67,
4880,
67,
1467,
67,
1896,
33,
4952,
18,
5399,
67,
4880,
67,
1467,
67,
1896,
16,
6370,
67,
454,
33,
4952,
18,
10047,
67,
454,
16,
2975,
67,
14298,
19713,
67,
9647,
33,
542,
12,
4952,
18,
6054,
67,
14298,
19713,
67,
9647,
18,
4939,
2932,
16,
7923,
3631,
1981,
33,
4952,
18,
4937,
16,
9004,
67,
7670,
82,
67,
76,
11858,
33,
4952,
18,
16627,
340,
67,
7670,
82,
67,
76,
11858,
16,
1300,
67,
792,
67,
915,
67,
2354,
33,
4952,
18,
2696,
67,
792,
67,
915,
67,
2354,
16,
1198,
33,
4952,
18,
4148,
13,
977,
273,
1548,
82,
9654,
5701,
12,
3548,
13,
9078,
64,
82,
6,
309,
261,
4952,
18,
3669,
67,
4873,
67,
529,
353,
599,
578,
486,
1500,
18,
4148,
4672,
2589,
18,
10283,
18,
2626,
12,
955,
13,
309,
261,
1897,
12,
768,
67,
1973,
13,
480,
374,
471,
1500,
18,
11100,
4672,
1172,
309,
261,
1897,
12,
768,
67,
1973,
13,
480,
374,
471,
1500,
18,
11100,
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,
1991,
972,
12,
51,
16,
585,
67,
1973,
4672,
1930,
2589,
1500,
273,
531,
18,
2116,
2362,
273,
284,
429,
18,
71,
659,
18,
2567,
12,
585,
67,
1973,
33,
768,
67,
1973,
16,
1760,
67,
4873,
67,
529,
33,
4952,
18,
3669,
67,
4873,
67,
529,
16,
5976,
67,
3977,
33,
51,
18,
14507,
67,
3977,
16,
284,
351,
67,
2896,
67,
4626,
33,
902,
1500,
18,
2135,
67,
74,
351,
67,
2896,
67,
4626,
16,
2454,
67,
4880,
67,
1467,
67,
1896,
33,
4952,
18,
5399,
67,
4880,
67,
1467,
67,
1896,
16,
6370,
67,
454,
33,
4952,
18,
10047,
67,
454,
16,
2975,
67,
14298,
19713,
67,
9647,
33,
542,
12,
4952,
18,
6054,
2
] |
except: print "Error parsing regular expression: {0}".format(value)
|
except Exception, ex: raise ValueError("Invalid regular expression ({0}): {1}" .format(ex, value))
|
def parse_regexps(self): """ Parse the <common-regexps> section of the config file. """ regexps = getattr(self.xml, "common-regexps").findall("regexp") parsed = {} for regexp in regexps: name = regexp.get("name") value = regexp.get("value") try: parsed[name] = re.compile(value) except: print "Error parsing regular expression: {0}".format(value) return parsed
|
602803e6a0033e23887bd6eb59060617b67f6f96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4776/602803e6a0033e23887bd6eb59060617b67f6f96/policy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7584,
1121,
12,
2890,
4672,
3536,
2884,
326,
411,
6054,
17,
7584,
1121,
34,
2442,
434,
326,
642,
585,
18,
3536,
3936,
1121,
273,
3869,
12,
2890,
18,
2902,
16,
315,
6054,
17,
7584,
1121,
20387,
4720,
454,
2932,
17745,
7923,
2707,
273,
2618,
364,
7195,
316,
3936,
1121,
30,
508,
273,
7195,
18,
588,
2932,
529,
7923,
460,
273,
7195,
18,
588,
2932,
1132,
7923,
775,
30,
2707,
63,
529,
65,
273,
283,
18,
11100,
12,
1132,
13,
1335,
1185,
16,
431,
30,
1002,
2068,
2932,
1941,
6736,
2652,
10797,
20,
97,
4672,
288,
21,
1532,
263,
2139,
12,
338,
16,
460,
3719,
327,
2707,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7584,
1121,
12,
2890,
4672,
3536,
2884,
326,
411,
6054,
17,
7584,
1121,
34,
2442,
434,
326,
642,
585,
18,
3536,
3936,
1121,
273,
3869,
12,
2890,
18,
2902,
16,
315,
6054,
17,
7584,
1121,
20387,
4720,
454,
2932,
17745,
7923,
2707,
273,
2618,
364,
7195,
316,
3936,
1121,
30,
508,
273,
7195,
18,
588,
2932,
529,
7923,
460,
273,
7195,
18,
588,
2932,
1132,
7923,
775,
30,
2707,
63,
529,
65,
273,
283,
18,
11100,
12,
1132,
13,
1335,
1185,
16,
431,
30,
1002,
2068,
2932,
1941,
6736,
2652,
10797,
20,
97,
4672,
288,
21,
1532,
263,
2139,
12,
338,
16,
460,
3719,
327,
2707,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for space_name, z in ambients :
|
for space_name, z, d, reverbGain in ambients : run("cp usertest/geometry_%s.data usertest/geometry"%space_name)
|
def run(command) : print "\033[32m$ %s\033[0m"%command os.system(command)==0 or die("Command failed: "+command)
|
4914e50661cc773b4059b4d78d451b5c9c092df4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1456/4914e50661cc773b4059b4d78d451b5c9c092df4/generateUserTests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
3076,
13,
294,
1172,
1548,
15265,
63,
1578,
81,
8,
738,
87,
64,
15265,
63,
20,
81,
28385,
3076,
1140,
18,
4299,
12,
3076,
13,
631,
20,
578,
10387,
2932,
2189,
2535,
30,
13773,
3076,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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13,
294,
1172,
1548,
15265,
63,
1578,
81,
8,
738,
87,
64,
15265,
63,
20,
81,
28385,
3076,
1140,
18,
4299,
12,
3076,
13,
631,
20,
578,
10387,
2932,
2189,
2535,
30,
13773,
3076,
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,
-100,
-100
] |
store.add((URIRef(uri), RDF['type'], SIOC['UserAccount']))
|
store.add((URIRef(uri), RDF.type, SIOC['UserAccount']))
|
def __toRDF(self): """ Dump mailing list into a RDF file """
|
6e3f3f56fc85dca087289f1359ab0a620afc7e2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2232/6e3f3f56fc85dca087289f1359ab0a620afc7e2e/mailinglist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
869,
30137,
12,
2890,
4672,
3536,
18242,
4791,
310,
666,
1368,
279,
13539,
585,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
869,
30137,
12,
2890,
4672,
3536,
18242,
4791,
310,
666,
1368,
279,
13539,
585,
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,
-100,
-100
] |
def exp(self, prec = infinity):
|
def exp(self, prec=None):
|
def exp(self, prec = infinity): r""" Returns exp of this power series to the indicated precision.
|
099a2a1bde3f214221950460a7d5cfb14c6568d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/099a2a1bde3f214221950460a7d5cfb14c6568d5/power_series_ring_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
12,
2890,
16,
13382,
33,
7036,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,
4166,
358,
326,
17710,
6039,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
12,
2890,
16,
13382,
33,
7036,
4672,
436,
8395,
2860,
1329,
434,
333,
7212,
4166,
358,
326,
17710,
6039,
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
] |
def apply(self):
|
def apply(self,doc):
|
def apply(self): pass
|
53bc30fab33f4c6b74131668b2576a4ea888628b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7053/53bc30fab33f4c6b74131668b2576a4ea888628b/doctemplate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2434,
4672,
1342,
2,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2434,
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,
-100,
-100
] |
if self._check_version_git('1.5.5'):
|
if self.check_version_git('1.5.5'):
|
def _pull_current_branch(self, buildscript): """Pull the current branch if it is tracking a remote branch.""" if not self._is_tracking_a_remote_branch(self._get_current_branch()): return
|
f3dca446ec51b04ec85ec73c7ed97895744dff87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4596/f3dca446ec51b04ec85ec73c7ed97895744dff87/git.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13469,
67,
2972,
67,
7500,
12,
2890,
16,
1361,
4263,
4672,
3536,
9629,
326,
783,
3803,
309,
518,
353,
11093,
279,
2632,
3803,
12123,
309,
486,
365,
6315,
291,
67,
6440,
67,
69,
67,
7222,
67,
7500,
12,
2890,
6315,
588,
67,
2972,
67,
7500,
1435,
4672,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13469,
67,
2972,
67,
7500,
12,
2890,
16,
1361,
4263,
4672,
3536,
9629,
326,
783,
3803,
309,
518,
353,
11093,
279,
2632,
3803,
12123,
309,
486,
365,
6315,
291,
67,
6440,
67,
69,
67,
7222,
67,
7500,
12,
2890,
6315,
588,
67,
2972,
67,
7500,
1435,
4672,
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
] |
cr, uid, self.user_data(cr, uid, context), context)
|
cr, uid, self.user_data(cr, uid, new_id, context), context)
|
def create_user(self, cr, uid, context=None): ''' create a new res.user instance from the data stored in the current res.config.users ''' self.pool.get('res.users').create( cr, uid, self.user_data(cr, uid, context), context)
|
b35d51a3e5f603ea3bd0bd84308d8069a56c09ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/b35d51a3e5f603ea3bd0bd84308d8069a56c09ec/res_user.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1355,
12,
2890,
16,
4422,
16,
4555,
16,
819,
33,
7036,
4672,
9163,
752,
279,
394,
400,
18,
1355,
791,
628,
326,
501,
4041,
316,
326,
783,
400,
18,
1425,
18,
5577,
9163,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
2640,
12,
4422,
16,
4555,
16,
365,
18,
1355,
67,
892,
12,
3353,
16,
4555,
16,
394,
67,
350,
16,
819,
3631,
819,
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,
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4672,
9163,
752,
279,
394,
400,
18,
1355,
791,
628,
326,
501,
4041,
316,
326,
783,
400,
18,
1425,
18,
5577,
9163,
365,
18,
6011,
18,
588,
2668,
455,
18,
5577,
16063,
2640,
12,
4422,
16,
4555,
16,
365,
18,
1355,
67,
892,
12,
3353,
16,
4555,
16,
394,
67,
350,
16,
819,
3631,
819,
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
] |
elif name == 'attachTime': self.attach_time = value elif name == 'instanceId': self.instance_id = value
|
def endElement(self, name, value, connection): if name == 'volumeId': self.id = value elif name == 'createTime': self.create_time = value elif name == 'attachTime': self.attach_time = value elif name == 'instanceId': self.instance_id = value elif name == 'status': if value != '': self.status = value elif name == 'size': self.size = int(value) elif name == 'snapshotId': self.snapshot_id = value elif name == 'device': self.device = value elif name == 'availabilityZone': self.zone = value else: setattr(self, name, value)
|
aef9804e772e5695f707f7af308db82fe461feb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/aef9804e772e5695f707f7af308db82fe461feb4/volume.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
16,
460,
16,
1459,
4672,
309,
508,
422,
296,
9491,
548,
4278,
365,
18,
350,
273,
460,
1327,
508,
422,
296,
2640,
950,
4278,
365,
18,
2640,
67,
957,
273,
460,
1327,
508,
422,
296,
2327,
4278,
309,
460,
480,
875,
30,
365,
18,
2327,
273,
460,
1327,
508,
422,
296,
1467,
4278,
365,
18,
1467,
273,
509,
12,
1132,
13,
1327,
508,
422,
296,
11171,
548,
4278,
365,
18,
11171,
67,
350,
273,
460,
1327,
508,
422,
296,
5964,
4278,
365,
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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,
14840,
12,
2890,
16,
508,
16,
460,
16,
1459,
4672,
309,
508,
422,
296,
9491,
548,
4278,
365,
18,
350,
273,
460,
1327,
508,
422,
296,
2640,
950,
4278,
365,
18,
2640,
67,
957,
273,
460,
1327,
508,
422,
296,
2327,
4278,
309,
460,
480,
875,
30,
365,
18,
2327,
273,
460,
1327,
508,
422,
296,
1467,
4278,
365,
18,
1467,
273,
509,
12,
1132,
13,
1327,
508,
422,
296,
11171,
548,
4278,
365,
18,
11171,
67,
350,
273,
460,
1327,
508,
422,
296,
5964,
4278,
365,
18,
5964,
273,
460,
1327,
508,
422,
296,
24318,
4226,
4278,
365,
18,
3486,
273,
460,
469,
30,
9241,
12,
2890,
16,
508,
16,
460,
13,
2,
-100,
-100,
-100,
-100,
-100
] |
|
elif c == '.' or ext:
|
elif c == '.': if ext: root, ext = root + ext, c else: ext = c elif ext:
|
def splitext(p): root, ext = '', '' for c in p: if c in '/\\': root, ext = root + ext + c, '' elif c == '.' or ext: ext = ext + c else: root = root + c return root, ext
|
73e122f56383e15dc8045caeb5cc853430dd96e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/73e122f56383e15dc8045caeb5cc853430dd96e9/ntpath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11975,
12,
84,
4672,
1365,
16,
1110,
273,
10226,
875,
364,
276,
316,
293,
30,
309,
276,
316,
1173,
1695,
4278,
1365,
16,
1110,
273,
1365,
397,
1110,
397,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11975,
12,
84,
4672,
1365,
16,
1110,
273,
10226,
875,
364,
276,
316,
293,
30,
309,
276,
316,
1173,
1695,
4278,
1365,
16,
1110,
273,
1365,
397,
1110,
397,
276,
16,
875,
1327,
276,
422,
2611,
30,
309,
1110,
30,
1365,
16,
1110,
273,
1365,
397,
1110,
16,
276,
469,
30,
1110,
273,
276,
1327,
1110,
30,
1110,
273,
1110,
397,
276,
469,
30,
1365,
273,
1365,
397,
276,
327,
1365,
16,
1110,
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
] |
def extract(self, *varNames): ''' Crate a new DataStore object with only the specified variables.
|
def extract(self, attrNames): ''' Crate a new DataStore object with only the specified attributes.
|
def extract(self, *varNames): ''' Crate a new DataStore object with only the specified variables. Arguments: *varNames : Variable names of the time series that should be in the new object; string Returns: New DataStore object. ''' #test if all requested variables are in the store myVars = set(self.attributeNames()) reqVars = set(varNames) unknownVars = reqVars - myVars if unknownVars: raise KeyError('Unknown variable(s): %s' % str(list(unknownVars))) #IGNORE:E1010 #compute size of new array and create it newNumCols = len(varNames) newNumRows = self.numObs() newArray = zeros((newNumRows, newNumCols)) #create new DataStore object #TODO: create object of derived class newStore = ArrayStore(newArray, varNames) #copy the variables into the new array for name1 in varNames: newStore[name1] = self[name1] return newStore
|
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
12,
2890,
16,
1604,
1557,
4672,
9163,
385,
5141,
279,
394,
22961,
733,
598,
1338,
326,
1269,
1677,
18,
225,
13599,
30,
380,
1401,
1557,
294,
7110,
1257,
434,
326,
813,
4166,
716,
1410,
506,
316,
326,
394,
733,
31,
533,
2860,
30,
1166,
22961,
733,
18,
9163,
468,
3813,
309,
777,
3764,
3152,
854,
316,
326,
1707,
3399,
5555,
273,
444,
12,
2890,
18,
4589,
1557,
10756,
1111,
5555,
273,
444,
12,
1401,
1557,
13,
5917,
5555,
273,
1111,
5555,
300,
3399,
5555,
309,
5917,
5555,
30,
1002,
4999,
2668,
4874,
2190,
12,
87,
4672,
738,
87,
11,
738,
609,
12,
1098,
12,
8172,
5555,
20349,
468,
20118,
30,
41,
15168,
20,
468,
9200,
963,
434,
394,
526,
471,
752,
518,
394,
2578,
8011,
273,
562,
12,
1401,
1557,
13,
394,
2578,
4300,
273,
365,
18,
2107,
27637,
1435,
11653,
273,
4922,
12443,
2704,
2578,
4300,
16,
394,
2578,
8011,
3719,
468,
2640,
394,
22961,
733,
468,
6241,
30,
752,
733,
434,
10379,
667,
394,
2257,
273,
1510,
2257,
12,
2704,
1076,
16,
569,
1557,
13,
468,
3530,
326,
3152,
1368,
326,
394,
526,
364,
508,
21,
316,
569,
1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,
598,
1338,
326,
1269,
1677,
18,
225,
13599,
30,
380,
1401,
1557,
294,
7110,
1257,
434,
326,
813,
4166,
716,
1410,
506,
316,
326,
394,
733,
31,
533,
2860,
30,
1166,
22961,
733,
18,
9163,
468,
3813,
309,
777,
3764,
3152,
854,
316,
326,
1707,
3399,
5555,
273,
444,
12,
2890,
18,
4589,
1557,
10756,
1111,
5555,
273,
444,
12,
1401,
1557,
13,
5917,
5555,
273,
1111,
5555,
300,
3399,
5555,
309,
5917,
5555,
30,
1002,
4999,
2668,
4874,
2190,
12,
87,
4672,
738,
87,
11,
738,
609,
12,
1098,
12,
8172,
5555,
20349,
468,
20118,
30,
41,
15168,
20,
468,
9200,
963,
434,
2
] |
tool[option] = value
|
tool[setting] = value
|
def _ToolAppend(tools, tool_name, option, value): if not value: return if not tools.get(tool_name): tools[tool_name] = dict() tool = tools[tool_name] if tool.get(option): if type(tool[option]) == list: tool[option] += value else: # TODO(bradnelson): Pick an exception class. print '@@@', option, tool[option], value raise 'Append to non-list option is invalid' else: tool[option] = value
|
5d4328382a6fdbe17089b3cfff76babe72d3e80d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/5d4328382a6fdbe17089b3cfff76babe72d3e80d/msvs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6364,
5736,
12,
6642,
16,
5226,
67,
529,
16,
1456,
16,
460,
4672,
309,
486,
460,
30,
327,
309,
486,
8513,
18,
588,
12,
6738,
67,
529,
4672,
8513,
63,
6738,
67,
529,
65,
273,
2065,
1435,
5226,
273,
8513,
63,
6738,
67,
529,
65,
309,
5226,
18,
588,
12,
3482,
4672,
309,
618,
12,
6738,
63,
3482,
5717,
422,
666,
30,
5226,
63,
3482,
65,
1011,
460,
469,
30,
468,
2660,
12,
70,
6012,
3084,
816,
4672,
23038,
392,
1520,
667,
18,
1172,
4622,
30989,
2187,
1456,
16,
5226,
63,
3482,
6487,
460,
1002,
296,
5736,
358,
1661,
17,
1098,
1456,
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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,
6364,
5736,
12,
6642,
16,
5226,
67,
529,
16,
1456,
16,
460,
4672,
309,
486,
460,
30,
327,
309,
486,
8513,
18,
588,
12,
6738,
67,
529,
4672,
8513,
63,
6738,
67,
529,
65,
273,
2065,
1435,
5226,
273,
8513,
63,
6738,
67,
529,
65,
309,
5226,
18,
588,
12,
3482,
4672,
309,
618,
12,
6738,
63,
3482,
5717,
422,
666,
30,
5226,
63,
3482,
65,
1011,
460,
469,
30,
468,
2660,
12,
70,
6012,
3084,
816,
4672,
23038,
392,
1520,
667,
18,
1172,
4622,
30989,
2187,
1456,
16,
5226,
63,
3482,
6487,
460,
1002,
296,
5736,
358,
1661,
17,
1098,
1456,
353,
2057,
11,
469,
30,
5226,
63,
8920,
65,
273,
460,
282,
2,
-100,
-100,
-100
] |
ANDROID_ROOT = os.environ.get("ANDROID_BUILD_TOP") if not ANDROID_ROOT:
|
ANDROID_BUILD_TOP = os.environ.get("ANDROID_BUILD_TOP") if not ANDROID_BUILD_TOP:
|
def main(): global ANDROID_ROOT # Android project home directory global ICU_VERSION # ICU version number global ICUDATA # e.g. "icudt42l" global ICUDATA_DAT # e.g. "icudt42l.dat" global CLDR_VERSION # CLDR version. The value can be vary upon ICU release. global TMP_DAT_PATH # temp directory to store all resource files and # intermediate dat files. global HELP global VERBOSE argc = len(sys.argv) if argc < 2: print "You must provide icu version number." print "Example: ./icu_dat_generator.py 4.4" sys.exit(1) ICU_VERSION = sys.argv[1] version = GetIcuVersion(ICU_VERSION) if (version == -1): print sys.argv[1] + " is not a valid icu version number!" sys.exit(1) ICUDATA = "icudt" + version + "l" CLDR_VERSION = "1.8" ANDROID_ROOT = os.environ.get("ANDROID_BUILD_TOP") if not ANDROID_ROOT: print "$ANDROID_BUILD_TOP not set! Run 'env_setup.sh'." sys.exit(1) ICUDATA_DAT = ICUDATA + ".dat" HELP = False VERBOSE = False try: opts, args = getopt.getopt(sys.argv[2:], 'hv', ['help', 'verbose']) except getopt.error: print "Invalid option" PrintHelp() sys.exit(1) for opt, arg in opts: if opt in ('-h', '--help'): PrintHelp() sys.exit(1) elif opt in ('-v', '--verbose'): VERBOSE = True # Check for requiered source files. icu_dat_path = os.path.join(ANDROID_ROOT, "external", "icu4c", "stubdata") full_data_filename = os.path.join(icu_dat_path, ICUDATA + "-all.dat") if not os.path.isfile(full_data_filename): print "%s not present." % full_data_filename sys.exit(1) # Create a temporary working directory. TMP_DAT_PATH = os.path.join(ANDROID_ROOT, "external", "icu4c", "tmp") if os.path.exists(TMP_DAT_PATH): shutil.rmtree(TMP_DAT_PATH) os.mkdir(TMP_DAT_PATH) # Extract resource files from icudtxxl-all.dat to TMP_DAT_PATH. ExtractAllResourceToTempDir() datlist = ["us", "us-euro", "default", "us-japan", "zh", "medium", "large"] for dat_subtag in datlist: MakeDat(icu_dat_path, dat_subtag) # Copy icudtxxl.dat to stubdata directory with corresponding subtag. shutil.copyfile(os.path.join(TMP_DAT_PATH, ICUDATA_DAT), os.path.join(icu_dat_path, ICUDATA + "-" + dat_subtag + ".dat")) print "Generate ICU data:" + os.path.join(icu_dat_path, ICUDATA + "-" + dat_subtag + ".dat") # Cleanup temporary working directory and icudtxxl.dat shutil.rmtree(TMP_DAT_PATH) os.remove(os.path.join(icu_dat_path, ICUDATA_DAT))
|
89f309f809ddaba6a3ba4a31a8ee74cfa5e85be3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10672/89f309f809ddaba6a3ba4a31a8ee74cfa5e85be3/icu_dat_generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
4116,
1457,
734,
67,
9185,
225,
468,
15288,
1984,
6382,
1867,
2552,
28009,
67,
5757,
282,
468,
28009,
1177,
1300,
2552,
28009,
4883,
4202,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
6,
2552,
28009,
4883,
67,
11102,
282,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
18,
3404,
6,
2552,
14934,
6331,
67,
5757,
225,
468,
14934,
6331,
1177,
18,
1021,
460,
848,
506,
23674,
12318,
28009,
3992,
18,
2552,
399,
4566,
67,
11102,
67,
4211,
225,
468,
1906,
1867,
358,
1707,
777,
1058,
1390,
471,
468,
12110,
1150,
1390,
18,
2552,
22557,
52,
2552,
27857,
225,
1501,
71,
273,
562,
12,
9499,
18,
19485,
13,
309,
1501,
71,
411,
576,
30,
1172,
315,
6225,
1297,
5615,
277,
6319,
1177,
1300,
1199,
1172,
315,
10908,
30,
263,
19,
335,
89,
67,
3404,
67,
8812,
18,
2074,
1059,
18,
24,
6,
2589,
18,
8593,
12,
21,
13,
28009,
67,
5757,
273,
2589,
18,
19485,
63,
21,
65,
1177,
273,
968,
45,
6319,
1444,
12,
2871,
57,
67,
5757,
13,
309,
261,
1589,
422,
225,
300,
21,
4672,
1172,
2589,
18,
19485,
63,
21,
65,
397,
315,
353,
486,
279,
923,
277,
6319,
1177,
1300,
4442,
2589,
18,
8593,
12,
21,
13,
28009,
4883,
273,
315,
335,
1100,
88,
6,
397,
1177,
397,
315,
80,
6,
14934,
6331,
67,
5757,
273,
315,
21,
18,
28,
6,
4116,
1457,
734,
67,
20215,
67,
10462,
273,
1140,
18,
28684,
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,
2774,
13332,
2552,
4116,
1457,
734,
67,
9185,
225,
468,
15288,
1984,
6382,
1867,
2552,
28009,
67,
5757,
282,
468,
28009,
1177,
1300,
2552,
28009,
4883,
4202,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
6,
2552,
28009,
4883,
67,
11102,
282,
468,
425,
18,
75,
18,
315,
335,
1100,
88,
9452,
80,
18,
3404,
6,
2552,
14934,
6331,
67,
5757,
225,
468,
14934,
6331,
1177,
18,
1021,
460,
848,
506,
23674,
12318,
28009,
3992,
18,
2552,
399,
4566,
67,
11102,
67,
4211,
225,
468,
1906,
1867,
358,
1707,
777,
1058,
1390,
471,
468,
12110,
1150,
1390,
18,
2552,
22557,
52,
2552,
27857,
225,
1501,
71,
273,
562,
12,
9499,
18,
19485,
13,
309,
1501,
2
] |
if index > argumentCount: self.cancelArgumentation = 1
|
if index >= self.argumentCount-1: self.cancelArgumentation = 1
|
def findArguments(self, selectBest = 1, showClassification = 1, example = None): self.cancelArgumentation = 0 self.clearArguments() self.arguments = [[] for i in range(self.classValueList.count())] snapshots = self.createSnapshots if not example and self.subsetdata == None: QMessageBox.information( None, "VizRank Argumentation", 'To find arguments you first have to provide a new example that you wish to classify. \nYou can do this by sending the example to the visualization widget through the "Example Subset" signal.', QMessageBox.Ok + QMessageBox.Default) return (None,None) if len(self.shownResults) == 0: QMessageBox.information( None, "VizRank Argumentation", 'To find arguments you first have to evaluate some projections by clicking "Start evaluating projections" in the Main tab.', QMessageBox.Ok + QMessageBox.Default) return (None,None)
|
1922e1c90901187992cd760d65376cde614d1a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/1922e1c90901187992cd760d65376cde614d1a7a/OWkNNOptimization.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4628,
12,
2890,
16,
2027,
14173,
273,
404,
16,
2405,
19168,
273,
404,
16,
3454,
273,
599,
4672,
365,
18,
10996,
1379,
367,
273,
374,
365,
18,
8507,
4628,
1435,
365,
18,
7099,
273,
306,
8526,
364,
277,
316,
1048,
12,
2890,
18,
1106,
24999,
18,
1883,
10756,
65,
12808,
273,
365,
18,
2640,
17095,
225,
309,
486,
3454,
471,
365,
18,
15657,
892,
422,
599,
30,
30728,
18,
13117,
12,
599,
16,
315,
58,
452,
12925,
5067,
367,
3113,
296,
774,
1104,
1775,
1846,
1122,
1240,
358,
5615,
279,
394,
3454,
716,
1846,
14302,
358,
19974,
18,
521,
82,
6225,
848,
741,
333,
635,
5431,
326,
3454,
358,
326,
30056,
3604,
3059,
326,
315,
10908,
2592,
542,
6,
4277,
1093,
16,
30728,
18,
8809,
397,
30728,
18,
1868,
13,
327,
261,
7036,
16,
7036,
13,
309,
562,
12,
2890,
18,
674,
995,
3447,
13,
422,
374,
30,
30728,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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,
1104,
4628,
12,
2890,
16,
2027,
14173,
273,
404,
16,
2405,
19168,
273,
404,
16,
3454,
273,
599,
4672,
365,
18,
10996,
1379,
367,
273,
374,
365,
18,
8507,
4628,
1435,
365,
18,
7099,
273,
306,
8526,
364,
277,
316,
1048,
12,
2890,
18,
1106,
24999,
18,
1883,
10756,
65,
12808,
273,
365,
18,
2640,
17095,
225,
309,
486,
3454,
471,
365,
18,
15657,
892,
422,
599,
30,
30728,
18,
13117,
12,
599,
16,
315,
58,
452,
12925,
5067,
367,
3113,
296,
774,
1104,
1775,
1846,
1122,
1240,
358,
5615,
279,
394,
3454,
716,
1846,
14302,
358,
19974,
18,
521,
82,
6225,
848,
741,
333,
635,
5431,
326,
3454,
358,
326,
30056,
3604,
3059,
326,
315,
10908,
2592,
2
] |
file.write("<!-- %s -->" % _escape_cdata(node.text, encoding))
|
file.write(_encode("<!-- %s -->" % _escape_cdata(node.text), encoding))
|
def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new namespaces in this scope try: if isinstance(tag, QName) or tag[:1] == "{": tag, xmlns = fixtag(tag, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(tag) file.write("<" + _encode(tag, encoding)) if items or xmlns_items: items.sort() # lexical order for k, v in items: try: if isinstance(k, QName) or k[:1] == "{": k, xmlns = fixtag(k, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(k) try: if isinstance(v, QName): v, xmlns = fixtag(v, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(v) file.write(" %s=\"%s\"" % (_encode(k, encoding), _escape_attrib(v, encoding))) for k, v in xmlns_items: file.write(" %s=\"%s\"" % (_encode(k, encoding), _escape_attrib(v, encoding))) if node.text or len(node): file.write(">") if node.text: file.write(_escape_cdata(node.text, encoding)) for n in node: self._write(file, n, encoding, namespaces) file.write("</" + _encode(tag, encoding) + ">") else: file.write(" />") for k, v in xmlns_items: del namespaces[v] if node.tail: file.write(_escape_cdata(node.tail, encoding))
|
f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e/ElementTree.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
24899,
3015,
2932,
5586,
413,
738,
87,
1493,
2984,
738,
389,
6939,
67,
71,
892,
12,
2159,
18,
955,
3631,
2688,
3719,
1327,
1047,
353,
19652,
11983,
30,
585,
18,
2626,
2932,
12880,
9,
87,
35,
2984,
738,
389,
6939,
67,
71,
892,
12,
2159,
18,
955,
16,
2688,
3719,
469,
30,
1516,
273,
666,
12,
2159,
18,
3319,
10756,
12302,
67,
3319,
273,
5378,
468,
394,
7728,
316,
333,
2146,
775,
30,
309,
1549,
12,
2692,
16,
16723,
13,
578,
1047,
10531,
21,
65,
422,
4144,
6877,
1047,
16,
12302,
273,
2917,
2692,
12,
2692,
16,
7728,
13,
309,
12302,
30,
12302,
67,
3319,
18,
6923,
12,
16741,
13,
1335,
3580,
30,
389,
11628,
67,
8818,
1588,
67,
1636,
12,
2692,
13,
585,
18,
2626,
2932,
32,
6,
397,
389,
3015,
12,
2692,
16,
2688,
3719,
309,
1516,
578,
12302,
67,
3319,
30,
1516,
18,
3804,
1435,
468,
5275,
1706,
1353,
364,
417,
16,
331,
316,
1516,
30,
775,
30,
309,
1549,
12,
79,
16,
16723,
13,
578,
417,
10531,
21,
65,
422,
4144,
6877,
417,
16,
12302,
273,
2917,
2692,
12,
79,
16,
7728,
13,
309,
12302,
30,
12302,
67,
3319,
18,
6923,
12,
16741,
13,
1335,
3580,
30,
389,
11628,
67,
8818,
1588,
67,
1636,
12,
79,
13,
775,
30,
309,
1549,
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,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
24899,
3015,
2932,
5586,
413,
738,
87,
1493,
2984,
738,
389,
6939,
67,
71,
892,
12,
2159,
18,
955,
3631,
2688,
3719,
1327,
1047,
353,
19652,
11983,
30,
585,
18,
2626,
2932,
12880,
9,
87,
35,
2984,
738,
389,
6939,
67,
71,
892,
12,
2159,
18,
955,
16,
2688,
3719,
469,
30,
1516,
273,
666,
12,
2159,
18,
3319,
10756,
12302,
67,
3319,
273,
5378,
468,
394,
7728,
316,
333,
2146,
775,
30,
309,
1549,
12,
2692,
16,
16723,
13,
578,
1047,
10531,
21,
65,
422,
4144,
2
] |
'myapp',
|
'nulls',
|
def hack_path(): import os, sys common_path = os.path.join(os.path.abspath(os.path.dirname(".")), "..") sys.path.append(common_path)
|
15ebd1f5a338cda3afab26999cde80922ee4106f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1254/15ebd1f5a338cda3afab26999cde80922ee4106f/settings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11769,
67,
803,
13332,
1930,
1140,
16,
2589,
2975,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
12287,
2932,
1199,
13,
3631,
315,
838,
7923,
2589,
18,
803,
18,
6923,
12,
6054,
67,
803,
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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,
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,
11769,
67,
803,
13332,
1930,
1140,
16,
2589,
2975,
67,
803,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
12287,
2932,
1199,
13,
3631,
315,
838,
7923,
2589,
18,
803,
18,
6923,
12,
6054,
67,
803,
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
] |
b = time.clock()
|
b = timer()
|
def evolve(self, mode = 'serial'): b = time.clock() self.initialize(mode) self.pre_evolve() self.p_dev = self.pop_deviation() self.iteration_output() while ( self.gen < self.settings['gens'] and self.settings['p_deviation'] < self.p_dev ): self.step(1,mode) self.p_dev = self.pop_deviation() self.iteration_output() self.update_dbase() #enter status prior to post_evolve in dbase self.post_evolve() self.db_entry['run_time'] = time.clock() - b self.write_dbase()
|
8418b2938a491bb6a337b1fba872055375ef3547 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/8418b2938a491bb6a337b1fba872055375ef3547/algorithm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2113,
5390,
12,
2890,
16,
1965,
273,
296,
8818,
11,
4672,
324,
273,
5441,
1435,
365,
18,
11160,
12,
3188,
13,
365,
18,
1484,
67,
14965,
5390,
1435,
365,
18,
84,
67,
5206,
273,
365,
18,
5120,
67,
323,
13243,
1435,
365,
18,
16108,
67,
2844,
1435,
1323,
261,
202,
2890,
18,
4507,
411,
365,
18,
4272,
3292,
23730,
3546,
471,
365,
18,
4272,
3292,
84,
67,
323,
13243,
3546,
411,
365,
18,
84,
67,
5206,
225,
262,
30,
365,
18,
4119,
12,
21,
16,
3188,
13,
365,
18,
84,
67,
5206,
273,
365,
18,
5120,
67,
323,
13243,
1435,
365,
18,
16108,
67,
2844,
1435,
365,
18,
2725,
67,
1966,
448,
1435,
468,
2328,
1267,
6432,
358,
1603,
67,
14965,
5390,
316,
1319,
448,
365,
18,
2767,
67,
14965,
5390,
1435,
365,
18,
1966,
67,
4099,
3292,
2681,
67,
957,
3546,
273,
813,
18,
18517,
1435,
300,
324,
365,
18,
2626,
67,
1966,
448,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2113,
5390,
12,
2890,
16,
1965,
273,
296,
8818,
11,
4672,
324,
273,
5441,
1435,
365,
18,
11160,
12,
3188,
13,
365,
18,
1484,
67,
14965,
5390,
1435,
365,
18,
84,
67,
5206,
273,
365,
18,
5120,
67,
323,
13243,
1435,
365,
18,
16108,
67,
2844,
1435,
1323,
261,
202,
2890,
18,
4507,
411,
365,
18,
4272,
3292,
23730,
3546,
471,
365,
18,
4272,
3292,
84,
67,
323,
13243,
3546,
411,
365,
18,
84,
67,
5206,
225,
262,
30,
365,
18,
4119,
12,
21,
16,
3188,
13,
365,
18,
84,
67,
5206,
273,
365,
18,
5120,
67,
323,
13243,
1435,
365,
18,
16108,
67,
2844,
1435,
365,
18,
2725,
67,
1966,
448,
1435,
468,
2328,
1267,
6432,
358,
2
] |
self.id = nodeId nodeId += 1
|
def __init__(self, tokenizer=None, type=None, args=[]): global nodeId list.__init__(self) self.start = 0 self.end = 0 self.filename = None self.id = nodeId nodeId += 1
|
597e81a478924c90c02591a4852814987640ff42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/597e81a478924c90c02591a4852814987640ff42/Node.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10123,
33,
7036,
16,
618,
33,
7036,
16,
833,
33,
8526,
4672,
2552,
11507,
225,
666,
16186,
2738,
972,
12,
2890,
13,
225,
365,
18,
1937,
273,
374,
365,
18,
409,
273,
374,
365,
18,
3459,
273,
599,
365,
18,
350,
273,
11507,
225,
11507,
1011,
404,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10123,
33,
7036,
16,
618,
33,
7036,
16,
833,
33,
8526,
4672,
2552,
11507,
225,
666,
16186,
2738,
972,
12,
2890,
13,
225,
365,
18,
1937,
273,
374,
365,
18,
409,
273,
374,
365,
18,
3459,
273,
599,
365,
18,
350,
273,
11507,
225,
11507,
1011,
404,
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
] |
|
>>> L.legval(-3, L.chebline(3,2))
|
>>> L.legval(-3, L.legline(3,2))
|
def legline(off, scl) : """ Legendre series whose graph is a straight line. Parameters ---------- off, scl : scalars The specified line is given by ``off + scl*x``. Returns ------- y : ndarray This module's representation of the Legendre series for ``off + scl*x``. See Also -------- polyline, chebline Examples -------- >>> import numpy.polynomial.legendre as L >>> L.legline(3,2) array([3, 2]) >>> L.legval(-3, L.chebline(3,2)) # should be -3 -3.0 """ if scl != 0 : return np.array([off,scl]) else : return np.array([off])
|
45020fb87b0558142d0f3ca873839663269cb2fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/45020fb87b0558142d0f3ca873839663269cb2fc/legendre.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4553,
1369,
12,
3674,
16,
31648,
13,
294,
3536,
17167,
409,
266,
4166,
8272,
2667,
353,
279,
21251,
980,
18,
565,
7012,
12181,
3397,
16,
31648,
294,
23743,
1021,
1269,
980,
353,
864,
635,
12176,
3674,
397,
31648,
14,
92,
68,
8338,
225,
2860,
18365,
677,
294,
8304,
1220,
1605,
1807,
4335,
434,
326,
17167,
409,
266,
4166,
364,
12176,
3674,
397,
31648,
14,
92,
68,
8338,
225,
2164,
8080,
27093,
19604,
16,
19315,
70,
1369,
225,
19830,
27093,
4080,
1930,
3972,
18,
3915,
13602,
18,
16292,
266,
487,
511,
4080,
511,
18,
1935,
1369,
12,
23,
16,
22,
13,
526,
3816,
23,
16,
576,
5717,
4080,
511,
18,
1935,
1125,
19236,
23,
16,
511,
18,
1935,
1369,
12,
23,
16,
22,
3719,
468,
1410,
506,
300,
23,
300,
23,
18,
20,
225,
3536,
309,
31648,
480,
374,
294,
327,
1130,
18,
1126,
3816,
3674,
16,
87,
830,
5717,
469,
294,
327,
1130,
18,
1126,
3816,
3674,
5717,
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,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,
266,
4166,
8272,
2667,
353,
279,
21251,
980,
18,
565,
7012,
12181,
3397,
16,
31648,
294,
23743,
1021,
1269,
980,
353,
864,
635,
12176,
3674,
397,
31648,
14,
92,
68,
8338,
225,
2860,
18365,
677,
294,
8304,
1220,
1605,
1807,
4335,
434,
326,
17167,
409,
266,
4166,
364,
12176,
3674,
397,
31648,
14,
92,
68,
8338,
225,
2164,
8080,
27093,
19604,
16,
19315,
70,
1369,
225,
19830,
27093,
4080,
1930,
3972,
18,
3915,
13602,
18,
16292,
266,
487,
511,
4080,
511,
18,
1935,
1369,
12,
23,
16,
22,
13,
526,
3816,
23,
16,
576,
5717,
4080,
511,
18,
1935,
1125,
19236,
23,
16,
511,
18,
1935,
1369,
2
] |
print "shell placeholder"
|
root.init()
|
def main(): # defaults config_opts = {} setup_default_config_opts(config_opts) # cli option parsing (options, args) = command_parse() # config path -- can be overridden on cmdline config_path=MOCKCONFDIR if options.configdir: config_path = options.configdir # basic config for logging until config files are read logging.config.fileConfig(os.path.join(config_path, config_opts["log_config_file"])) # check args if len(args) < 1: log.error("No srpm or command specified - nothing to do") sys.exit(50) # Read in the config files: default, and then user specified for cfg in ( os.path.join(config_path, 'defaults.cfg'), '%s/%s.cfg' % (config_path, options.chroot)): if os.path.exists(cfg): execfile(cfg) else: log.error("Could not find required config file: %s" % cfg) sys.exit(1) # reconfigure logging in case config file was overridden logging.config.fileConfig(os.path.join(config_path, config_opts["log_config_file"])) # cmdline options override config options set_config_opts_per_cmdline(config_opts, options) warn_obsolete_config_options(config_opts) # do whatever we're here to do root = mock.backend.Root(config_opts, mock.uid.uidManager()) if args[0] == 'init': print "initializing chroot " if config_opts['clean']: root.clean() root.init() elif args[0] == 'clean': print "clean placeholder" elif args[0] == 'chroot': print "chroot placeholder" elif args[0] == 'shell': print "shell placeholder" elif args[0] == 'installdeps': print "installdeps placeholder" elif args[0] == 'rebuild': print "rebuild placeholder" else: pass
|
863d42e7e6937981012968857cb74052971062b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/863d42e7e6937981012968857cb74052971062b1/mock.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
3467,
642,
67,
4952,
273,
2618,
3875,
67,
1886,
67,
1425,
67,
4952,
12,
1425,
67,
4952,
13,
225,
468,
4942,
1456,
5811,
261,
2116,
16,
833,
13,
273,
1296,
67,
2670,
1435,
225,
468,
642,
589,
1493,
848,
506,
11000,
603,
22877,
642,
67,
803,
33,
5980,
3507,
14497,
4537,
309,
702,
18,
1425,
1214,
30,
642,
67,
803,
273,
702,
18,
1425,
1214,
225,
468,
5337,
642,
364,
2907,
3180,
642,
1390,
854,
855,
2907,
18,
1425,
18,
768,
809,
12,
538,
18,
803,
18,
5701,
12,
1425,
67,
803,
16,
642,
67,
4952,
9614,
1330,
67,
1425,
67,
768,
11929,
3719,
225,
468,
866,
833,
309,
562,
12,
1968,
13,
411,
404,
30,
613,
18,
1636,
2932,
2279,
9133,
7755,
578,
1296,
1269,
300,
5083,
358,
741,
7923,
2589,
18,
8593,
12,
3361,
13,
225,
468,
2720,
316,
326,
642,
1390,
30,
805,
16,
471,
1508,
729,
1269,
364,
2776,
316,
261,
1140,
18,
803,
18,
5701,
12,
1425,
67,
803,
16,
296,
7606,
18,
7066,
19899,
1995,
87,
5258,
87,
18,
7066,
11,
738,
261,
1425,
67,
803,
16,
702,
18,
343,
3085,
3719,
30,
309,
1140,
18,
803,
18,
1808,
12,
7066,
4672,
1196,
768,
12,
7066,
13,
469,
30,
613,
18,
1636,
2932,
4445,
486,
1104,
1931,
642,
585,
30,
738,
87,
6,
738,
2776,
13,
2589,
18,
8593,
12,
21,
13,
225,
468,
283,
14895,
2907,
316,
648,
642,
585,
1703,
11000,
2907,
18,
1425,
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,
2774,
13332,
468,
3467,
642,
67,
4952,
273,
2618,
3875,
67,
1886,
67,
1425,
67,
4952,
12,
1425,
67,
4952,
13,
225,
468,
4942,
1456,
5811,
261,
2116,
16,
833,
13,
273,
1296,
67,
2670,
1435,
225,
468,
642,
589,
1493,
848,
506,
11000,
603,
22877,
642,
67,
803,
33,
5980,
3507,
14497,
4537,
309,
702,
18,
1425,
1214,
30,
642,
67,
803,
273,
702,
18,
1425,
1214,
225,
468,
5337,
642,
364,
2907,
3180,
642,
1390,
854,
855,
2907,
18,
1425,
18,
768,
809,
12,
538,
18,
803,
18,
5701,
12,
1425,
67,
803,
16,
642,
67,
4952,
9614,
1330,
67,
1425,
67,
768,
11929,
3719,
225,
468,
866,
833,
309,
562,
12,
1968,
13,
411,
404,
2
] |
atts['align'] = node['align']
|
atts['class'] += " align-" + node['align']
|
def visit_figure(self, node): atts = {'class': 'figure'} if node.get('width'): atts['style'] = 'width: %spx' % node['width'] if node.get('align'): atts['align'] = node['align'] self.body.append(self.starttag(node, 'div', **atts))
|
3b5d9921af9454a6b4d54ae6f689bc0155dafc62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/3b5d9921af9454a6b4d54ae6f689bc0155dafc62/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
19675,
12,
2890,
16,
756,
4672,
15687,
273,
13666,
1106,
4278,
296,
19675,
11,
97,
309,
756,
18,
588,
2668,
2819,
11,
4672,
15687,
3292,
4060,
3546,
273,
296,
2819,
30,
738,
1752,
92,
11,
738,
756,
3292,
2819,
3546,
309,
756,
18,
588,
2668,
7989,
11,
4672,
15687,
3292,
1106,
3546,
1011,
315,
5689,
10951,
397,
756,
3292,
7989,
3546,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
2892,
2187,
2826,
270,
3428,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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30,
738,
1752,
92,
11,
738,
756,
3292,
2819,
3546,
309,
756,
18,
588,
2668,
7989,
11,
4672,
15687,
3292,
1106,
3546,
1011,
315,
5689,
10951,
397,
756,
3292,
7989,
3546,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
2892,
2187,
2826,
270,
3428,
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
] |
def function(self, args, defn, repr=None, latex=None): """ Return the Axiom function with given arguments and definition. INPUT: args -- a string with variable names separated by commas defn -- a string (or Axiom expression) that defines a function of the arguments in Axiom. repr -- an optional string; if given, this is how the function will print. EXAMPLES: sage: f = axiom.function('x', 'sin(x)') sage: f(3.2) -0.058374143427580086 sage: f = axiom.function('x,y', 'sin(x)+cos(y)') sage: f(2,3.5) sin(2) - 0.9364566872907963 sage: f sin(x)+cos(y) sage: g = f.integrate('z'); g (cos(y) + sin(x))*z sage: g(1,2,3) 3*(cos(2) + sin(1)) The function definition can be an axiom object: sage: an_expr = axiom('sin(x)*gamma(x)') sage: t = axiom.function('x', an_expr) sage: t gamma(x)*sin(x) sage: t(2) sin(2) sage: float(t(2)) 0.90929742682568171 sage: loads(t.dumps()) gamma(x)*sin(x) """ name = self._next_var_name() defn = str(defn) args = str(args) axiom.eval('%s(%s) := %s'%(name, args, defn)) if repr is None: repr = defn f = AxiomFunction(self, name, repr, args, latex) return f
|
def _false_symbol(self): return 'false'
|
c37aae41caccee4a71a6b90ea9abcd5b070a7522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/c37aae41caccee4a71a6b90ea9abcd5b070a7522/axiom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5743,
67,
7175,
12,
2890,
4672,
327,
296,
5743,
11,
2,
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,
0,
0,
0,
0,
0,
0,
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,
5743,
67,
7175,
12,
2890,
4672,
327,
296,
5743,
11,
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
] |
|
this = apply(_quickfix.new_PrevClosePx, args)
|
this = _quickfix.new_PrevClosePx(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_PrevClosePx, 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,
9958,
4605,
21776,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
9958,
4605,
21776,
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,
-100,
-100
] |
elif self.r2 < d < self.r3:
|
elif self.r2 < d <= self.r3:
|
def area_at(self, x,y): dx = x-self.x0 dy = y-self.y0 d = sqrt(dx*dx+dy*dy) sq2 = sqrt(2.0) cmp_M = self.M/2.0 cmp_r = (sq2-1)*cmp_M/(2*sq2) cmp_x0 = self.x0+cmp_M-cmp_r cmp_y0 = self.y0+cmp_M-cmp_r cmp_dx = x - cmp_x0 cmp_dy = y - cmp_y0 if cmp_r > sqrt(cmp_dx*cmp_dx + cmp_dy*cmp_dy): return AREA_COMPARE elif d > self.r3: return AREA_OUTSIDE elif self.r2 < d < self.r3: return AREA_CIRCLE elif self.rd < d < self.r2: return AREA_SAMPLE elif abs(dx)<self.m and abs(dy)<self.m: return AREA_SQUARE else: return AREA_INSIDE
|
69bd95301f9911d8a91470bca7826e2868d822c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/69bd95301f9911d8a91470bca7826e2868d822c0/colorsamplerwindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5091,
67,
270,
12,
2890,
16,
619,
16,
93,
4672,
6633,
273,
619,
17,
2890,
18,
92,
20,
7732,
273,
677,
17,
2890,
18,
93,
20,
302,
273,
5700,
12,
13437,
14,
13437,
15,
15680,
14,
15680,
13,
4744,
22,
273,
5700,
12,
22,
18,
20,
13,
9411,
67,
49,
273,
365,
18,
49,
19,
22,
18,
20,
9411,
67,
86,
273,
261,
11410,
22,
17,
21,
17653,
9625,
67,
49,
19,
12,
22,
14,
11410,
22,
13,
9411,
67,
92,
20,
273,
365,
18,
92,
20,
15,
9625,
67,
49,
17,
9625,
67,
86,
9411,
67,
93,
20,
273,
365,
18,
93,
20,
15,
9625,
67,
49,
17,
9625,
67,
86,
9411,
67,
13437,
273,
619,
300,
9411,
67,
92,
20,
9411,
67,
15680,
273,
677,
300,
9411,
67,
93,
20,
309,
9411,
67,
86,
405,
5700,
12,
9625,
67,
13437,
14,
9625,
67,
13437,
397,
9411,
67,
15680,
14,
9625,
67,
15680,
4672,
327,
432,
29416,
67,
4208,
11713,
1327,
302,
405,
365,
18,
86,
23,
30,
327,
432,
29416,
67,
5069,
26498,
1327,
365,
18,
86,
22,
411,
302,
1648,
365,
18,
86,
23,
30,
327,
432,
29416,
67,
7266,
11529,
900,
1327,
365,
18,
13623,
411,
302,
411,
365,
18,
86,
22,
30,
327,
432,
29416,
67,
55,
21373,
1327,
2417,
12,
13437,
13,
32,
2890,
18,
81,
471,
2417,
12,
15680,
13,
32,
2890,
18,
81,
30,
327,
432,
29416,
67,
19716,
469,
30,
327,
432,
29416,
67,
706,
26498,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5091,
67,
270,
12,
2890,
16,
619,
16,
93,
4672,
6633,
273,
619,
17,
2890,
18,
92,
20,
7732,
273,
677,
17,
2890,
18,
93,
20,
302,
273,
5700,
12,
13437,
14,
13437,
15,
15680,
14,
15680,
13,
4744,
22,
273,
5700,
12,
22,
18,
20,
13,
9411,
67,
49,
273,
365,
18,
49,
19,
22,
18,
20,
9411,
67,
86,
273,
261,
11410,
22,
17,
21,
17653,
9625,
67,
49,
19,
12,
22,
14,
11410,
22,
13,
9411,
67,
92,
20,
273,
365,
18,
92,
20,
15,
9625,
67,
49,
17,
9625,
67,
86,
9411,
67,
93,
20,
273,
365,
18,
93,
20,
15,
9625,
67,
49,
17,
9625,
67,
86,
9411,
67,
13437,
273,
619,
300,
2
] |
sage: G[1](b)
|
sage: G[1](b1)
|
def galois_group(self, pari_group = True, use_kash=False): r""" Return the Galois group of the Galois closure of this number field as an abstract group.
|
a9aea27aa0acf9a498267c901faff9e3e1683ff3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a9aea27aa0acf9a498267c901faff9e3e1683ff3/number_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24902,
19606,
67,
1655,
12,
2890,
16,
779,
77,
67,
1655,
273,
1053,
16,
999,
67,
79,
961,
33,
8381,
4672,
436,
8395,
2000,
326,
611,
287,
19606,
1041,
434,
326,
611,
287,
19606,
7213,
434,
333,
1300,
652,
487,
392,
8770,
1041,
18,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24902,
19606,
67,
1655,
12,
2890,
16,
779,
77,
67,
1655,
273,
1053,
16,
999,
67,
79,
961,
33,
8381,
4672,
436,
8395,
2000,
326,
611,
287,
19606,
1041,
434,
326,
611,
287,
19606,
7213,
434,
333,
1300,
652,
487,
392,
8770,
1041,
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
] |
line = map(lambda x:(0,0,self.line_get_convert(cr, uid, x,date, context={})) ,iml)
|
line = map(lambda x:(0, 0, self.line_get_convert(cr, uid, x,date, context={})), iml)
|
def action_move_line_create(self, cr, uid, ids, *args): for inv in self.browse(cr, uid, ids): if inv.move_id: continue company_currency = inv.company_id.currency_id.id # create the analytical lines line_ids = self.read(cr, uid, [inv.id], ['payment_ids'])[0]['payment_ids'] ils = self.pool.get('account.voucher.line').read(cr, uid, line_ids) # one move line per invoice line iml = self._get_analityc_lines(cr, uid, inv.id) # check if taxes are all computed diff_currency_p = inv.currency_id.id <> company_currency # create one move line for the total and possibly adjust the other lines amount total = 0 if inv.type in ('pay_voucher', 'rec_voucher','cont_voucher','bank_pay_voucher','bank_rec_voucher','journal_sale_vou','journal_pur_voucher'): ref = inv.reference else: ref = self._convert_ref(cr, uid, inv.number) date = inv.date total_currency = 0 for i in iml: if inv.currency_id.id != company_currency: i['currency_id'] = inv.currency_id.id i['amount_currency'] = i['amount']
|
4c8838b8ff1995002e5edc1cf71121cfbe916b8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/4c8838b8ff1995002e5edc1cf71121cfbe916b8b/voucher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
8501,
67,
1369,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
364,
2198,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
2198,
18,
8501,
67,
350,
30,
1324,
9395,
67,
7095,
273,
2198,
18,
16840,
67,
350,
18,
7095,
67,
350,
18,
350,
468,
752,
326,
392,
7834,
1706,
2362,
980,
67,
2232,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
306,
5768,
18,
350,
6487,
10228,
9261,
67,
2232,
19486,
63,
20,
23962,
9261,
67,
2232,
3546,
277,
3251,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
90,
14329,
18,
1369,
16063,
896,
12,
3353,
16,
4555,
16,
980,
67,
2232,
13,
468,
1245,
3635,
980,
1534,
9179,
980,
709,
80,
273,
365,
6315,
588,
67,
304,
7919,
71,
67,
3548,
12,
3353,
16,
4555,
16,
2198,
18,
350,
13,
468,
866,
309,
5320,
281,
854,
777,
8470,
3122,
67,
7095,
67,
84,
273,
2198,
18,
7095,
67,
350,
18,
350,
2813,
9395,
67,
7095,
468,
752,
1245,
3635,
980,
364,
326,
2078,
471,
10016,
5765,
326,
1308,
2362,
3844,
2078,
273,
374,
309,
2198,
18,
723,
316,
7707,
10239,
67,
90,
14329,
2187,
296,
3927,
67,
90,
14329,
17023,
1213,
67,
90,
14329,
17023,
10546,
67,
10239,
67,
90,
14329,
17023,
10546,
67,
3927,
67,
90,
14329,
17023,
22644,
67,
87,
5349,
67,
90,
1395,
17023,
22644,
67,
12688,
67,
90,
14329,
11,
4672,
1278,
273,
2198,
18,
6180,
469,
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,
67,
8501,
67,
1369,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
364,
2198,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
2198,
18,
8501,
67,
350,
30,
1324,
9395,
67,
7095,
273,
2198,
18,
16840,
67,
350,
18,
7095,
67,
350,
18,
350,
468,
752,
326,
392,
7834,
1706,
2362,
980,
67,
2232,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
306,
5768,
18,
350,
6487,
10228,
9261,
67,
2232,
19486,
63,
20,
23962,
9261,
67,
2232,
3546,
277,
3251,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
90,
14329,
18,
1369,
16063,
896,
12,
3353,
16,
4555,
16,
980,
67,
2232,
13,
468,
2
] |
raise 'No response from Salesforce'
|
raise RuntimeError, 'No response from Salesforce'
|
def post(self, conn=None, alwaysReturnList=False): headers = { "User-Agent": "BeatBox/" + __version__, "SOAPAction": "\"\"", "Content-Type": "text/xml; charset=utf-8" } if gzipResponse: headers['accept-encoding'] = 'gzip' if gzipRequest: headers['content-encoding'] = 'gzip' close = False (scheme, host, path, params, query, frag) = urlparse(self.serverUrl) max_attempts = 3 response = None attempt = 1 while not response and attempt <= max_attempts: try: if conn == None: conn = makeConnection(scheme, host) close = True conn.request("POST", path, self.makeEnvelope(), headers) response = conn.getresponse() rawResponse = response.read() except: if conn != None: conn.close() conn = None response = None attempt += 1 if not response: raise 'No response from Salesforce' if response.getheader('content-encoding','') == 'gzip': rawResponse = gzip.GzipFile(fileobj=StringIO(rawResponse)).read() if close: conn.close() tramp = xmltramp.parse(rawResponse) try: faultString = str(tramp[_tSoapNS.Body][_tSoapNS.Fault].faultstring) faultCode = str(tramp[_tSoapNS.Body][_tSoapNS.Fault].faultcode).split(':')[-1] if faultCode == 'INVALID_SESSION_ID': raise SessionTimeoutError(faultCode, faultString) else: raise SoapFaultError(faultCode, faultString) except KeyError: pass # first child of body is XXXXResponse result = tramp[_tSoapNS.Body][0] # it contains either a single child, or for a batch call multiple children if alwaysReturnList or len(result) > 1: return result[:] else: return result[0]
|
281022da477746e1ac29fd8544576b6052976783 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4510/281022da477746e1ac29fd8544576b6052976783/_beatbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
16,
1487,
33,
7036,
16,
3712,
990,
682,
33,
8381,
4672,
1607,
273,
288,
315,
1299,
17,
3630,
6877,
315,
1919,
270,
3514,
4898,
397,
1001,
1589,
972,
16,
315,
27952,
1803,
6877,
7023,
2412,
3113,
315,
1350,
17,
559,
6877,
315,
955,
19,
2902,
31,
4856,
33,
3158,
17,
28,
6,
289,
309,
10331,
1064,
30,
1607,
3292,
9436,
17,
5999,
3546,
273,
296,
17380,
11,
309,
10331,
691,
30,
1607,
3292,
1745,
17,
5999,
3546,
273,
296,
17380,
11,
1746,
273,
1083,
261,
9068,
16,
1479,
16,
589,
16,
859,
16,
843,
16,
10111,
13,
273,
15185,
12,
2890,
18,
3567,
1489,
13,
943,
67,
14359,
273,
890,
766,
273,
599,
4395,
273,
404,
1323,
486,
766,
471,
4395,
1648,
943,
67,
14359,
30,
775,
30,
309,
1487,
422,
599,
30,
1487,
273,
1221,
1952,
12,
9068,
16,
1479,
13,
1746,
273,
1053,
1487,
18,
2293,
2932,
3798,
3113,
589,
16,
365,
18,
6540,
10862,
9334,
1607,
13,
766,
273,
1487,
18,
588,
2740,
1435,
27088,
273,
766,
18,
896,
1435,
1335,
30,
309,
1487,
480,
599,
30,
1487,
18,
4412,
1435,
1487,
273,
599,
766,
273,
599,
4395,
1011,
404,
309,
486,
766,
30,
1002,
7265,
16,
296,
2279,
766,
628,
25996,
5734,
11,
225,
309,
766,
18,
75,
546,
18105,
2668,
1745,
17,
5999,
17023,
6134,
422,
296,
17380,
4278,
27088,
273,
10331,
18,
27825,
812,
12,
768,
2603,
33,
780,
4294,
12,
1899,
1064,
13,
2934,
896,
1435,
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,
1603,
12,
2890,
16,
1487,
33,
7036,
16,
3712,
990,
682,
33,
8381,
4672,
1607,
273,
288,
315,
1299,
17,
3630,
6877,
315,
1919,
270,
3514,
4898,
397,
1001,
1589,
972,
16,
315,
27952,
1803,
6877,
7023,
2412,
3113,
315,
1350,
17,
559,
6877,
315,
955,
19,
2902,
31,
4856,
33,
3158,
17,
28,
6,
289,
309,
10331,
1064,
30,
1607,
3292,
9436,
17,
5999,
3546,
273,
296,
17380,
11,
309,
10331,
691,
30,
1607,
3292,
1745,
17,
5999,
3546,
273,
296,
17380,
11,
1746,
273,
1083,
261,
9068,
16,
1479,
16,
589,
16,
859,
16,
843,
16,
10111,
13,
273,
15185,
12,
2890,
18,
3567,
1489,
13,
943,
67,
14359,
273,
890,
766,
273,
599,
4395,
273,
2
] |
headers_out = [] for full_header in res.msg.headers: header, value = full_header.split(':', 1) value = value.strip() if header.lower() not in filtered_headers: headers_out.append((header, value))
|
headers_out = parse_headers(res.msg)
|
def __call__(self, environ, start_response): if (self.allowed_request_methods and environ['REQUEST_METHOD'].lower() not in self.allowed_request_methods): return httpexceptions.HTTPBadRequest("Disallowed")(environ, start_response)
|
a1f073eb53d5993cfff5ae5e673b36def78decfe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/a1f073eb53d5993cfff5ae5e673b36def78decfe/proxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
261,
2890,
18,
8151,
67,
2293,
67,
5163,
471,
5473,
3292,
5519,
67,
5327,
29489,
8167,
1435,
486,
316,
365,
18,
8151,
67,
2293,
67,
5163,
4672,
327,
1062,
11855,
18,
3693,
13403,
2932,
1669,
8151,
7923,
12,
28684,
16,
787,
67,
2740,
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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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
309,
261,
2890,
18,
8151,
67,
2293,
67,
5163,
471,
5473,
3292,
5519,
67,
5327,
29489,
8167,
1435,
486,
316,
365,
18,
8151,
67,
2293,
67,
5163,
4672,
327,
1062,
11855,
18,
3693,
13403,
2932,
1669,
8151,
7923,
12,
28684,
16,
787,
67,
2740,
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
] |
if verbose: print "testing literals with leading zeroes"
|
def test_main(): test_support.run_unittest(TestSpecifics)
|
def expect_error(s): try: eval(s) raise TestFailed("%r accepted" % s) except SyntaxError: pass
|
8a99b5023931c5a01540bda67516235a8dfe8470 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8a99b5023931c5a01540bda67516235a8dfe8470/test_compile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
67,
1636,
12,
87,
4672,
775,
30,
5302,
12,
87,
13,
1002,
7766,
2925,
27188,
86,
8494,
6,
738,
272,
13,
1335,
18453,
30,
1342,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
67,
1636,
12,
87,
4672,
775,
30,
5302,
12,
87,
13,
1002,
7766,
2925,
27188,
86,
8494,
6,
738,
272,
13,
1335,
18453,
30,
1342,
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
] |
package_data = {'rapidsms': ['skeleton/project/*.ini']},
|
package_data = {'rapidsms': ['skeleton/project/*.ini',\ 'skeleton/project/manage.py']},
|
def run (self): _build_py.run(self) if version == "unknown": print "RapidSMS version unknown! Is git in your path?" else: vstring = "VERSION = '%s'" % version vfilename = os.path.join(self.build_lib, "rapidsms", "__version__.py") vfile = file(vfilename, "w") print >>vfile, vstring print "setting %s in %s" % (vstring, vfilename)
|
e08e4ba27e18640f1461c74d7a143d22ffa015b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/e08e4ba27e18640f1461c74d7a143d22ffa015b5/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
389,
3510,
67,
2074,
18,
2681,
12,
2890,
13,
309,
1177,
422,
315,
8172,
6877,
1172,
315,
54,
438,
350,
29533,
1177,
5917,
5,
2585,
5071,
316,
3433,
589,
7225,
469,
30,
331,
1080,
273,
315,
5757,
273,
1995,
87,
4970,
738,
1177,
331,
3459,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3510,
67,
2941,
16,
315,
1266,
2232,
959,
3113,
10425,
1589,
25648,
2074,
7923,
331,
768,
273,
585,
12,
90,
3459,
16,
315,
91,
7923,
1172,
1671,
90,
768,
16,
331,
1080,
1172,
315,
8920,
738,
87,
316,
738,
87,
6,
738,
261,
90,
1080,
16,
331,
3459,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
389,
3510,
67,
2074,
18,
2681,
12,
2890,
13,
309,
1177,
422,
315,
8172,
6877,
1172,
315,
54,
438,
350,
29533,
1177,
5917,
5,
2585,
5071,
316,
3433,
589,
7225,
469,
30,
331,
1080,
273,
315,
5757,
273,
1995,
87,
4970,
738,
1177,
331,
3459,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3510,
67,
2941,
16,
315,
1266,
2232,
959,
3113,
10425,
1589,
25648,
2074,
7923,
331,
768,
273,
585,
12,
90,
3459,
16,
315,
91,
7923,
1172,
1671,
90,
768,
16,
331,
1080,
1172,
315,
8920,
738,
87,
316,
738,
87,
6,
738,
261,
90,
1080,
16,
331,
3459,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
<dd><a href="addexistingfield?colID=%s&ln=%s&fmeth=soo
|
<dd><a href="addexistingfield?colID=%s&ln=%s&fmeth=soo
|
def perform_showsortoptions(colID, ln=cdslang, callback='yes', content='', confirm=-1): """show the sort fields of this collection..""" colID = int(colID) col_dict = dict(get_def_name('', "collection")) fld_dict = dict(get_def_name('', "field")) fld_type = get_sort_nametypes() subtitle = """<a name="8">8. Modify sort options for collection '%s'</a>   <small>[<a title="See guide" href="%s/admin/websearch/guide.html#3.8">?</a>]</small>""" % (col_dict[colID], weburl) output = """<dl> <dt>Field actions (not related to this collection)</dt> <dd>Go to the BibIndex interface to modify</dd> <dt>Collection specific actions <dd><a href="addexistingfield?colID=%s&ln=%s&fmeth=soo#8.2">Add field to collection</a></dd> </dl> """ % (colID, ln) header = ['', 'Fieldname', 'Actions'] actions = [] cdslang = get_languages() lang = dict(cdslang) fld_type_list = fld_type.items() if len(get_col_fld(colID, 'soo')) > 0: res = get_col_fld(colID, 'soo') i = 0 for (fldID, fldvID, stype, score, score_fieldvalue) in res: move = """<table cellspacing="1" cellpadding="0" border="0"><tr><td>""" if i != 0: move += """<a href="%s/admin/websearch/websearchadmin.py/switchfldvaluescore?colID=%s&ln=%s&id_1=%s&id_2=%s&fmeth=soo&rand=%s#8"><img border="0" src="%s/img/smallup.gif" title="Move up"></a>""" % (weburl, colID, ln, fldID, res[i - 1][0], random.randint(0, 1000), weburl) else: move += " " move += "</td><td>" i += 1 if i != len(res): move += """<a href="%s/admin/websearch/websearchadmin.py/switchfldvaluescore?colID=%s&ln=%s&id_1=%s&id_2=%s&fmeth=soo&rand=%s#8"><img border="0" src="%s/img/smalldown.gif" title="Move down"></a>""" % (weburl, colID, ln, fldID, res[i][0], random.randint(0, 1000), weburl) move += """</td></tr></table>""" actions.append([move, fld_dict[int(fldID)]]) for col in [(('Remove', 'removefield'),)]: actions[-1].append('<a href="%s/admin/websearch/websearchadmin.py/%s?colID=%s&ln=%s&fldID=%s&fmeth=soo#8.4">%s</a>' % (weburl, col[0][1], colID, ln, fldID, col[0][0])) for (str, function) in col[1:]: actions[-1][-1] += ' / <a href="%s/admin/websearch/websearchadmin.py/%s?colID=%s&ln=%s&fldID=%s&fmeth=soo#8.5">%s</a>' % (weburl, function, colID, ln, fldID, str) output += tupletotable(header=header, tuple=actions) else: output += """No sort options exists for this collection""" output += content try: body = [output, extra] except NameError: body = [output] if callback: return perform_editcollection(colID, ln, "perform_showsortoptions", addadminbox(subtitle, body)) else: return addadminbox(subtitle, body)
|
e02bf14cfa93e6c83692292855ee97a11d40e01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e02bf14cfa93e6c83692292855ee97a11d40e01d/websearchadminlib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
4500,
3804,
2116,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1524,
1466,
434,
333,
1849,
838,
8395,
225,
645,
734,
273,
509,
12,
1293,
734,
13,
645,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
5548,
6,
3719,
9880,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
1518,
6,
3719,
9880,
67,
723,
273,
336,
67,
3804,
67,
17808,
15180,
1435,
225,
20281,
273,
3536,
32,
69,
508,
1546,
28,
6441,
28,
18,
9518,
1524,
702,
364,
1849,
1995,
87,
11,
1757,
69,
22393,
10600,
23480,
10600,
10,
10600,
31,
32,
12019,
23224,
32,
69,
2077,
1546,
9704,
7343,
6,
3897,
11613,
87,
19,
3666,
19,
4875,
3072,
19,
12118,
18,
2620,
7,
23,
18,
28,
6441,
35,
1757,
69,
34,
65,
1757,
12019,
2984,
3660,
738,
261,
1293,
67,
1576,
63,
1293,
734,
6487,
3311,
718,
13,
876,
273,
3536,
32,
5761,
34,
411,
7510,
34,
974,
4209,
261,
902,
3746,
358,
333,
1849,
13,
1757,
7510,
34,
411,
449,
34,
5741,
358,
326,
605,
495,
1016,
1560,
358,
5612,
1757,
449,
34,
411,
7510,
34,
2532,
2923,
4209,
411,
449,
4438,
69,
3897,
1546,
361,
561,
376,
310,
1518,
35,
1293,
734,
5095,
87,
10,
931,
31,
2370,
5095,
87,
10,
931,
31,
25089,
546,
33,
2048,
83,
7,
28,
18,
22,
6441,
986,
652,
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,
3073,
67,
4500,
3804,
2116,
12,
1293,
734,
16,
7211,
33,
4315,
2069,
539,
16,
1348,
2218,
9707,
2187,
913,
2218,
2187,
6932,
29711,
21,
4672,
3536,
4500,
326,
1524,
1466,
434,
333,
1849,
838,
8395,
225,
645,
734,
273,
509,
12,
1293,
734,
13,
645,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
5548,
6,
3719,
9880,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
1518,
6,
3719,
9880,
67,
723,
273,
336,
67,
3804,
67,
17808,
15180,
1435,
225,
20281,
273,
3536,
32,
69,
508,
1546,
28,
6441,
28,
18,
9518,
1524,
702,
364,
1849,
1995,
87,
11,
1757,
69,
22393,
10600,
23480,
10600,
10,
10600,
2
] |
interface, and if this fails, try one more time to load it. EXAMPLES:
|
interface. If this fails, try one more time to load it. EXAMPLES::
|
def load_hap(): """ Load the GAP hap package into the default GAP interpreter interface, and if this fails, try one more time to load it. EXAMPLES: sage: sage.groups.perm_gps.permgroup.load_hap() """ try: gap.eval('LoadPackage("hap")') except: gap.eval('LoadPackage("hap")')
|
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
76,
438,
13332,
3536,
4444,
326,
611,
2203,
5622,
2181,
1368,
326,
805,
611,
2203,
16048,
1560,
18,
971,
333,
6684,
16,
775,
1245,
1898,
813,
358,
1262,
518,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
4650,
18,
12160,
67,
75,
1121,
18,
12160,
1655,
18,
945,
67,
76,
438,
1435,
3536,
775,
30,
9300,
18,
8622,
2668,
2563,
2261,
2932,
76,
438,
31241,
13,
1335,
30,
9300,
18,
8622,
2668,
2563,
2261,
2932,
76,
438,
31241,
13,
225,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
76,
438,
13332,
3536,
4444,
326,
611,
2203,
5622,
2181,
1368,
326,
805,
611,
2203,
16048,
1560,
18,
971,
333,
6684,
16,
775,
1245,
1898,
813,
358,
1262,
518,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
272,
410,
18,
4650,
18,
12160,
67,
75,
1121,
18,
12160,
1655,
18,
945,
67,
76,
438,
1435,
3536,
775,
30,
9300,
18,
8622,
2668,
2563,
2261,
2932,
76,
438,
31241,
13,
1335,
30,
9300,
18,
8622,
2668,
2563,
2261,
2932,
76,
438,
31241,
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
] |
sys_version = string.split(sys.version)[0]
|
def _setOpt(name, value, conv=None): '''set a module level value from environ/default''' from os import environ ename = 'RL_'+name if environ.has_key(ename): value = environ[ename] if conv: value = conv(value) globals()[name] = value
|
95e794999ad3b0fbb7a9203a6d6ce78360aa3553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/95e794999ad3b0fbb7a9203a6d6ce78360aa3553/rl_config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
6179,
12,
529,
16,
460,
16,
6292,
33,
7036,
4672,
9163,
542,
279,
1605,
1801,
460,
628,
5473,
19,
1886,
26418,
628,
1140,
1930,
5473,
570,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
6179,
12,
529,
16,
460,
16,
6292,
33,
7036,
4672,
9163,
542,
279,
1605,
1801,
460,
628,
5473,
19,
1886,
26418,
628,
1140,
1930,
5473,
570,
339,
273,
296,
54,
48,
4623,
15,
529,
309,
5473,
18,
5332,
67,
856,
12,
1069,
4672,
460,
273,
5473,
63,
1069,
65,
309,
6292,
30,
460,
273,
6292,
12,
1132,
13,
10941,
1435,
63,
529,
65,
273,
460,
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
] |
|
__child__ = Bundle def __iter__(self): return self.entries.iteritems()
|
__child__ = XMLFileBacked
|
def BindTranslation(self, image, ba): '''Map Bundle elements through the translation layer into concrete elements''' return map(lambda x:(x.tag, x.attrib), self.FindTranslation(image).trans[ba.tag][ba.attrib['name']])
|
48b9e1ad0cadd8a44ab4922e06f870290265a284 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/48b9e1ad0cadd8a44ab4922e06f870290265a284/bundler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6936,
6717,
12,
2890,
16,
1316,
16,
9846,
4672,
9163,
863,
8539,
2186,
3059,
326,
4794,
3018,
1368,
12220,
2186,
26418,
327,
852,
12,
14661,
619,
30,
12,
92,
18,
2692,
16,
619,
18,
14588,
3631,
365,
18,
3125,
6717,
12,
2730,
2934,
2338,
63,
12124,
18,
2692,
6362,
12124,
18,
14588,
3292,
529,
3546,
5717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6936,
6717,
12,
2890,
16,
1316,
16,
9846,
4672,
9163,
863,
8539,
2186,
3059,
326,
4794,
3018,
1368,
12220,
2186,
26418,
327,
852,
12,
14661,
619,
30,
12,
92,
18,
2692,
16,
619,
18,
14588,
3631,
365,
18,
3125,
6717,
12,
2730,
2934,
2338,
63,
12124,
18,
2692,
6362,
12124,
18,
14588,
3292,
529,
3546,
5717,
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
] |
type = mydict["type"]
|
typestr = mydict["type"]
|
def parse_metalink(src, headers = {}, nocheck = False, ver=3): src = complete_url(src) is_metalink = nocheck # not all servers support HEAD where GET is also supported # also a WindowsError is thrown if a local file does not exist if src.endswith(".metalink") or src.endswith(".meta4"): is_metalink = True try: # add head check for metalink type, if MIME_TYPE or application/xml? treat as metalink myheaders = urlhead(src, metalink_header=True, headers = headers) if myheaders["content-type"].startswith(MIME_TYPE): print _("Metalink content-type detected.") is_metalink = True elif myheaders["link"]: # Metalink HTTP Link headers implementation # does not check for describedby urls but we can't use any of those anyway # TODO this should be more robust and ignore commas in <> for urls links = myheaders['link'].split(",") fileobj = metalink.MetalinkFile4(os.path.basename(src)) fileobj.set_size(myheaders["content-length"]) for link in links: parts = link.split(";") mydict = {} for part in parts[1:]: part1, part2 = part.split("=", 1) mydict[part1.strip()] = part2.strip() pri = "" try: pri = mydict["pri"] except KeyError: pass type = "" try: type = mydict["type"] except KeyError: pass try: if mydict['rel'] == '"describedby"' and type=="application/metalink4+xml": # TODO support metalink describedby type #fileobj.add_url(parts[0].strip(" <>"), preference=pri) pass elif mydict['rel'] == '"describedby"' and type=="application/pgp-signature": # support openpgp describedby type fp = urlopen(parts[0].strip(" <>"), headers = {"referer": src}) fileobj.hashlist['pgp'] = fp.read() fp.close() elif mydict['rel'] == '"describedby"' or mydict['rel'] == '"duplicate"': fileobj.add_url(parts[0].strip(" <>"), type=type, priority=pri) except KeyError: pass try: hashes = myheaders['digest'].split(",") for hash in hashes: parts = hash.split("=", 1) if parts[0].strip() == 'sha': fileobj.hashlist['sha-1'] = binascii.hexlify(binascii.a2b_base64(parts[1].strip())) else: fileobj.hashlist[parts[0].strip()] = binascii.hexlify(binascii.a2b_base64(parts[1].strip())) except KeyError: pass print _("Using Metalink HTTP Link headers.") mobj = metalink.Metalink4() mobj.files.append(fileobj) return metalink.convert(mobj, ver) except KeyError: pass if not is_metalink: return False try: datasource = urlopen(src, metalink_header=True, headers = headers) except: return False metalinkobj = metalink.parsehandle(datasource, ver) datasource.close() return metalinkobj
|
cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228/metalinkc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
10578,
16194,
12,
4816,
16,
1607,
273,
10615,
1158,
1893,
273,
1083,
16,
1924,
33,
23,
4672,
1705,
273,
3912,
67,
718,
12,
4816,
13,
353,
67,
10578,
16194,
273,
1158,
1893,
225,
468,
486,
777,
7084,
2865,
14792,
1625,
4978,
353,
2546,
3260,
468,
2546,
279,
8202,
668,
353,
6718,
309,
279,
1191,
585,
1552,
486,
1005,
309,
1705,
18,
5839,
1918,
2932,
18,
10578,
16194,
7923,
578,
1705,
18,
5839,
1918,
2932,
18,
3901,
24,
6,
4672,
353,
67,
10578,
16194,
273,
1053,
775,
30,
468,
527,
910,
866,
364,
5100,
16194,
618,
16,
309,
13195,
67,
2399,
578,
2521,
19,
2902,
35,
10116,
487,
5100,
16194,
3399,
2485,
273,
880,
1978,
12,
4816,
16,
5100,
16194,
67,
3374,
33,
5510,
16,
1607,
273,
1607,
13,
309,
3399,
2485,
9614,
1745,
17,
723,
6,
8009,
17514,
1918,
12,
18178,
67,
2399,
4672,
1172,
389,
2932,
12244,
16194,
913,
17,
723,
8316,
1199,
13,
353,
67,
10578,
16194,
273,
1053,
1327,
3399,
2485,
9614,
1232,
11929,
30,
468,
21604,
16194,
2239,
4048,
1607,
4471,
468,
1552,
486,
866,
364,
11893,
1637,
6903,
1496,
732,
848,
1404,
999,
1281,
434,
5348,
13466,
468,
2660,
333,
1410,
506,
1898,
27920,
471,
2305,
23528,
316,
2813,
364,
6903,
4716,
273,
3399,
2485,
3292,
1232,
29489,
4939,
2932,
16,
7923,
17041,
273,
5100,
16194,
18,
12244,
16194,
812,
24,
12,
538,
18,
803,
18,
13909,
12,
4816,
3719,
17041,
18,
542,
67,
1467,
12,
4811,
2485,
9614,
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,
1109,
67,
10578,
16194,
12,
4816,
16,
1607,
273,
10615,
1158,
1893,
273,
1083,
16,
1924,
33,
23,
4672,
1705,
273,
3912,
67,
718,
12,
4816,
13,
353,
67,
10578,
16194,
273,
1158,
1893,
225,
468,
486,
777,
7084,
2865,
14792,
1625,
4978,
353,
2546,
3260,
468,
2546,
279,
8202,
668,
353,
6718,
309,
279,
1191,
585,
1552,
486,
1005,
309,
1705,
18,
5839,
1918,
2932,
18,
10578,
16194,
7923,
578,
1705,
18,
5839,
1918,
2932,
18,
3901,
24,
6,
4672,
353,
67,
10578,
16194,
273,
1053,
775,
30,
468,
527,
910,
866,
364,
5100,
16194,
618,
16,
309,
13195,
67,
2399,
578,
2521,
19,
2902,
35,
10116,
487,
5100,
16194,
3399,
2485,
273,
880,
1978,
12,
4816,
2
] |
return self.rexec.is_builtin(name)
|
return self.rexec.is_builtin(name)
|
def is_builtin(self, name):
|
b9c951d8cedeec531cce217b5117b5d471b1e468 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b9c951d8cedeec531cce217b5117b5d471b1e468/rexec.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
24553,
12,
2890,
16,
508,
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,
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398,
316,
326,
981,
30,
1652,
353,
67,
24553,
12,
2890,
16,
508,
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
] |
'POPINDENT',
|
def fc_forall_require(rule, arg_patterns, arg_context): engine = rule.rule_base.engine patterns = rule.goal_arg_patterns() if len(arg_patterns) == len(patterns): context = contexts.bc_context(rule) try: if all(itertools.imap(lambda pat, arg: pat.match_pattern(context, context, arg, arg_context), patterns, arg_patterns)): rule.rule_base.num_bc_rules_matched += 1 mark1 = context.mark(True) if rule.pattern(0).match_data(context, context, "forall%d_worked" % context.lookup_data('start_lineno')): context.end_save_all_undo() mark2 = context.mark(True) if rule.pattern(1).match_data(context, context, "not forall%d_worked" % context.lookup_data('start_lineno')): context.end_save_all_undo() flag_3 = False with engine.prove(rule.rule_base.root_name, 'fc_premises', context, (rule.pattern(2), rule.pattern(3), rule.pattern(4), rule.pattern(5), rule.pattern(1), rule.pattern(6), rule.pattern(7), rule.pattern(8), rule.pattern(9), rule.pattern(10), rule.pattern(11), rule.pattern(12), rule.pattern(13),)) \ as gen_3: for x_3 in gen_3: flag_3 = True assert x_3 is None, \ "compiler.fc_forall_require: got unexpected plan from when clause 3" flag_4 = False with engine.prove(rule.rule_base.root_name, 'fc_premises', context, (rule.pattern(2), rule.pattern(4), rule.pattern(14), rule.pattern(15), rule.pattern(0), rule.pattern(6), rule.pattern(16), rule.pattern(17), rule.pattern(10), rule.pattern(18), rule.pattern(19), rule.pattern(13), rule.pattern(20),)) \ as gen_4: for x_4 in gen_4: flag_4 = True assert x_4 is None, \ "compiler.fc_forall_require: got unexpected plan from when clause 4" mark5 = context.mark(True) if rule.pattern(21).match_data(context, context, ("forall%d_worked = True" % context.lookup_data('start_lineno'), context.lookup_data('fn_head1'), "forall%d_worked = False" % context.lookup_data('start_lineno'), context.lookup_data('fn_head2'), ('INDENT', 2), "forall%d_worked = True" % context.lookup_data('start_lineno'), 'POPINDENT', context.lookup_data('fn_tail2'), context.lookup_data('fn_tail1'), "if forall%d_worked:" % context.lookup_data('start_lineno'), ("INDENT", 2))): context.end_save_all_undo() mark6 = context.mark(True) if rule.pattern(22).match_data(context, context, context.lookup_data('decl_lines1') + context.lookup_data('decl_lines2')): context.end_save_all_undo() rule.rule_base.num_bc_rule_successes += 1 yield else: context.end_save_all_undo() context.undo_to_mark(mark6) else: context.end_save_all_undo() context.undo_to_mark(mark5) if not flag_4: raise AssertionError("compiler.fc_forall_require: 'when' clause 4 failed") if not flag_3: raise AssertionError("compiler.fc_forall_require: 'when' clause 3 failed") else: context.end_save_all_undo() context.undo_to_mark(mark2) else: context.end_save_all_undo() context.undo_to_mark(mark1) rule.rule_base.num_bc_rule_failures += 1 finally: context.done()
|
e6992b6a694bb95da57aca1817805692e1f2cc64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14714/e6992b6a694bb95da57aca1817805692e1f2cc64/compiler_bc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
67,
1884,
454,
67,
6528,
12,
5345,
16,
1501,
67,
13317,
16,
1501,
67,
2472,
4672,
4073,
273,
1720,
18,
5345,
67,
1969,
18,
8944,
6884,
273,
1720,
18,
27354,
67,
3175,
67,
13317,
1435,
309,
562,
12,
3175,
67,
13317,
13,
422,
562,
12,
13317,
4672,
819,
273,
5781,
18,
13459,
67,
2472,
12,
5345,
13,
775,
30,
309,
777,
12,
2165,
6642,
18,
12161,
12,
14661,
9670,
16,
1501,
30,
9670,
18,
1916,
67,
4951,
12,
2472,
16,
819,
16,
1501,
16,
1501,
67,
2472,
3631,
6884,
16,
1501,
67,
13317,
3719,
30,
1720,
18,
5345,
67,
1969,
18,
2107,
67,
13459,
67,
7482,
67,
11073,
1011,
404,
2267,
21,
273,
819,
18,
3355,
12,
5510,
13,
309,
1720,
18,
4951,
12,
20,
2934,
1916,
67,
892,
12,
2472,
16,
819,
16,
315,
1884,
454,
9,
72,
67,
1252,
329,
6,
738,
819,
18,
8664,
67,
892,
2668,
1937,
67,
17782,
26112,
30,
819,
18,
409,
67,
5688,
67,
454,
67,
31226,
1435,
2267,
22,
273,
819,
18,
3355,
12,
5510,
13,
309,
1720,
18,
4951,
12,
21,
2934,
1916,
67,
892,
12,
2472,
16,
819,
16,
315,
902,
364,
454,
9,
72,
67,
1252,
329,
6,
738,
819,
18,
8664,
67,
892,
2668,
1937,
67,
17782,
26112,
30,
819,
18,
409,
67,
5688,
67,
454,
67,
31226,
1435,
2982,
67,
23,
273,
1083,
598,
4073,
18,
685,
537,
12,
5345,
18,
5345,
67,
1969,
18,
3085,
67,
529,
16,
296,
7142,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
67,
1884,
454,
67,
6528,
12,
5345,
16,
1501,
67,
13317,
16,
1501,
67,
2472,
4672,
4073,
273,
1720,
18,
5345,
67,
1969,
18,
8944,
6884,
273,
1720,
18,
27354,
67,
3175,
67,
13317,
1435,
309,
562,
12,
3175,
67,
13317,
13,
422,
562,
12,
13317,
4672,
819,
273,
5781,
18,
13459,
67,
2472,
12,
5345,
13,
775,
30,
309,
777,
12,
2165,
6642,
18,
12161,
12,
14661,
9670,
16,
1501,
30,
9670,
18,
1916,
67,
4951,
12,
2472,
16,
819,
16,
1501,
16,
1501,
67,
2472,
3631,
6884,
16,
1501,
67,
13317,
3719,
30,
1720,
18,
5345,
67,
1969,
18,
2107,
67,
13459,
67,
7482,
67,
11073,
1011,
404,
2267,
21,
273,
819,
18,
3355,
12,
2
] |
|
return [(S[i].rhs(), mul[i]) for i in range(len(mul))]
|
rt_muls = [(S[i].rhs(), mul[i]) for i in range(len(mul))] if multiplicities: return rt_muls else: return [ rt for rt, mul in rt_muls ]
|
def roots(self, x=None, explicit_solutions=True): r""" Returns roots of \code{self} that can be found exactly, with multiplicities. Not all root are guaranteed to be found.
|
84f6585998d5f8be58b8f476a0bf8b3fd37e3fd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/84f6585998d5f8be58b8f476a0bf8b3fd37e3fd9/calculus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12876,
12,
2890,
16,
619,
33,
7036,
16,
5515,
67,
18281,
6170,
33,
5510,
4672,
436,
8395,
2860,
12876,
434,
521,
710,
95,
2890,
97,
716,
848,
506,
1392,
8950,
16,
598,
3309,
1780,
1961,
18,
225,
2288,
777,
1365,
854,
15403,
358,
506,
1392,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12876,
12,
2890,
16,
619,
33,
7036,
16,
5515,
67,
18281,
6170,
33,
5510,
4672,
436,
8395,
2860,
12876,
434,
521,
710,
95,
2890,
97,
716,
848,
506,
1392,
8950,
16,
598,
3309,
1780,
1961,
18,
225,
2288,
777,
1365,
854,
15403,
358,
506,
1392,
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
] |
self._pos = max(0, pos)
|
def seek(self, pos, whence=0): if self.closed: raise ValueError("seek on closed file") try: pos = pos.__index__() except AttributeError as err: raise TypeError("an integer is required") from err if whence == 0: self._pos = max(0, pos) if pos < 0: raise ValueError("negative seek position %r" % (pos,)) elif whence == 1: self._pos = max(0, self._pos + pos) elif whence == 2: self._pos = max(0, len(self._buffer) + pos) else: raise ValueError("invalid whence value") return self._pos
|
0c4c8991888cb77158727c67e6731285ce1698b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/0c4c8991888cb77158727c67e6731285ce1698b5/io.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
949,
16,
23692,
33,
20,
4672,
309,
365,
18,
12204,
30,
1002,
2068,
2932,
16508,
603,
4375,
585,
7923,
775,
30,
949,
273,
949,
16186,
1615,
972,
1435,
1335,
6394,
487,
393,
30,
1002,
3580,
2932,
304,
3571,
353,
1931,
7923,
628,
393,
309,
23692,
422,
374,
30,
309,
949,
411,
374,
30,
1002,
2068,
2932,
13258,
6520,
1754,
738,
86,
6,
738,
261,
917,
16,
3719,
1327,
23692,
422,
404,
30,
365,
6315,
917,
273,
943,
12,
20,
16,
365,
6315,
917,
397,
949,
13,
1327,
23692,
422,
576,
30,
365,
6315,
917,
273,
943,
12,
20,
16,
562,
12,
2890,
6315,
4106,
13,
397,
949,
13,
469,
30,
1002,
2068,
2932,
5387,
23692,
460,
7923,
327,
365,
6315,
917,
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,
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0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
949,
16,
23692,
33,
20,
4672,
309,
365,
18,
12204,
30,
1002,
2068,
2932,
16508,
603,
4375,
585,
7923,
775,
30,
949,
273,
949,
16186,
1615,
972,
1435,
1335,
6394,
487,
393,
30,
1002,
3580,
2932,
304,
3571,
353,
1931,
7923,
628,
393,
309,
23692,
422,
374,
30,
309,
949,
411,
374,
30,
1002,
2068,
2932,
13258,
6520,
1754,
738,
86,
6,
738,
261,
917,
16,
3719,
1327,
23692,
422,
404,
30,
365,
6315,
917,
273,
943,
12,
20,
16,
365,
6315,
917,
397,
949,
13,
1327,
23692,
422,
576,
30,
365,
6315,
917,
273,
943,
12,
20,
16,
562,
12,
2890,
6315,
4106,
13,
397,
949,
13,
469,
30,
1002,
2068,
2932,
5387,
2
] |
|
""" INPUT: A -- a WeylCharacterRing. Creates an auxiliary ring for the weights of a representation. This ring is associated with a WeylCharacterRing. The weights of a representation of a Lie group G or algebra are the characters of the characters of a Cartan subgroup T or subalgebra that occur when the representation is restricted to that Cartan. If a linear combination of weights is invariant under the Weyl group, then it is a linear combination of characters of G. As with the WeylCharacterRing, you may want to make sure that the prefix matches the name that you assign the ring, so that the __call__ method can parse the ring's own output. If you do not assign a prefix, one is automatically generated by changing the case of the prefix to the associated WeylCharacterRing, from upper case to lower case. However you may assign your own prefixes to both rings. EXAMPLE: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: wd = prod(a2(x/2)-a2(-x/2) for x in a2.lattice().positive_roots()); wd -a2(-1,0,1) + a2(-1,1,0) + a2(0,-1,1) - a2(0,1,-1) - a2(1,-1,0) + a2(1,0,-1) sage: chi = A2([5,3,0]); chi A2(5,3,0) sage: a2(chi) a2(0,3,5) + a2(0,4,4) + a2(0,5,3) + a2(1,2,5) + 2*a2(1,3,4) + 2*a2(1,4,3) + a2(1,5,2) + a2(2,1,5) + 2*a2(2,2,4) + 3*a2(2,3,3) + 2*a2(2,4,2) + a2(2,5,1) + a2(3,0,5) + 2*a2(3,1,4) + 3*a2(3,2,3) + 3*a2(3,3,2) + 2*a2(3,4,1) + a2(3,5,0) + a2(4,0,4) + 2*a2(4,1,3) + 2*a2(4,2,2) + 2*a2(4,3,1) + a2(4,4,0) + a2(5,0,3) + a2(5,1,2) + a2(5,2,1) + a2(5,3,0) sage: a2(chi)*wd -a2(-1,3,6) + a2(-1,6,3) + a2(3,-1,6) - a2(3,6,-1) - a2(6,-1,3) + a2(6,3,-1) sage: sum((-1)^w.length()*a2([6,3,-1]).weyl_group_action(w) for w in a2.lattice().weyl_group()) -a2(-1,3,6) + a2(-1,6,3) + a2(3,-1,6) - a2(3,6,-1) - a2(6,-1,3) + a2(6,3,-1) sage: a2(chi)*wd == sum((-1)^w.length()*a2([6,3,-1]).weyl_group_action(w) for w in a2.lattice().weyl_group()) True In the above example, we create a WeylCharacterRing A2 whose objects are the characters. Attached to this is a second WeightRing called a2. The Weyl denominator is created and labeled wd. This is the product of factors a2(alpha/2)-a2(-alpha/2) where alpha runs through the postive roots. Then character chi with highest weight [5,3,0] is created and coerced into a2. It has many terms. It is multiplied by wd and compared with the alternating sum of its images under Weyl group elements. These are equal, illustrating the Weyl character formula. EXAMPLE: sage: R = WeylCharacterRing(['G',2], prefix = "R", base_ring = QQ) sage: S = WeightRing(R, prefix = "S") sage: L = S.lattice() sage: vc = [sum(S(1/2)*S(f).weyl_group_action(w) for w in L.weyl_group()) for f in L.fundamental_weights()]; vc [S(-1,0,1) + S(-1,1,0) + S(0,-1,1) + S(0,1,-1) + S(1,-1,0) + S(1,0,-1), S(-2,1,1) + S(-1,-1,2) + S(-1,2,-1) + S(1,-2,1) + S(1,1,-2) + S(2,-1,-1)] sage: [v.character() for v in vc] [-R(0,0,0) + R(1,0,-1), -R(0,0,0) - R(1,0,-1) + R(2,-1,-1)] """
|
def character(self): """ Assuming that self is invariant under the Weyl group, this will express it as a linear combination of characters. If self is not Weyl group invariant, this method will not terminate. EXAMPLE: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: W = a2.lattice().weyl_group() sage: mu = a2(2,1,0) sage: nu = sum(mu.weyl_group_action(w) for w in W) sage: nu a2(0,1,2) + a2(0,2,1) + a2(1,0,2) + a2(1,2,0) + a2(2,0,1) + a2(2,1,0) sage: nu.character() -2*A2(1,1,1) + A2(2,1,0) """ return WeylCharacter(self._parent._parent, self._parent._parent.char_from_weights(self._mdict), self._mdict)
|
da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3351,
12,
2890,
4672,
3536,
4725,
21249,
716,
365,
353,
22514,
3613,
326,
678,
402,
80,
1041,
16,
333,
903,
16947,
518,
487,
279,
9103,
10702,
434,
3949,
18,
971,
365,
353,
486,
678,
402,
80,
1041,
22514,
16,
333,
707,
903,
486,
10850,
18,
5675,
21373,
30,
272,
410,
30,
432,
22,
273,
678,
402,
80,
7069,
10369,
12,
3292,
37,
2187,
22,
5717,
272,
410,
30,
279,
22,
273,
15437,
10369,
12,
37,
22,
13,
272,
410,
30,
678,
273,
279,
22,
18,
80,
24966,
7675,
91,
402,
80,
67,
1655,
1435,
272,
410,
30,
4129,
273,
279,
22,
12,
22,
16,
21,
16,
20,
13,
272,
410,
30,
9244,
273,
2142,
12,
13297,
18,
91,
402,
80,
67,
1655,
67,
1128,
12,
91,
13,
364,
341,
316,
678,
13,
272,
410,
30,
9244,
279,
22,
12,
20,
16,
21,
16,
22,
13,
397,
279,
22,
12,
20,
16,
22,
16,
21,
13,
397,
279,
22,
12,
21,
16,
20,
16,
22,
13,
397,
279,
22,
12,
21,
16,
22,
16,
20,
13,
397,
279,
22,
12,
22,
16,
20,
16,
21,
13,
397,
279,
22,
12,
22,
16,
21,
16,
20,
13,
272,
410,
30,
9244,
18,
11560,
1435,
300,
22,
14,
37,
22,
12,
21,
16,
21,
16,
21,
13,
397,
432,
22,
12,
22,
16,
21,
16,
20,
13,
3536,
327,
678,
402,
80,
7069,
12,
2890,
6315,
2938,
6315,
2938,
16,
365,
6315,
2938,
6315,
2938,
18,
3001,
67,
2080,
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,
3351,
12,
2890,
4672,
3536,
4725,
21249,
716,
365,
353,
22514,
3613,
326,
678,
402,
80,
1041,
16,
333,
903,
16947,
518,
487,
279,
9103,
10702,
434,
3949,
18,
971,
365,
353,
486,
678,
402,
80,
1041,
22514,
16,
333,
707,
903,
486,
10850,
18,
5675,
21373,
30,
272,
410,
30,
432,
22,
273,
678,
402,
80,
7069,
10369,
12,
3292,
37,
2187,
22,
5717,
272,
410,
30,
279,
22,
273,
15437,
10369,
12,
37,
22,
13,
272,
410,
30,
678,
273,
279,
22,
18,
80,
24966,
7675,
91,
402,
80,
67,
1655,
1435,
272,
410,
30,
4129,
273,
279,
22,
12,
22,
16,
21,
16,
20,
13,
272,
410,
30,
9244,
273,
2142,
12,
13297,
18,
91,
2
] |
|
addStubMember(iface.name + '.' + member.name, member)
|
addStubMember(iface.name + '.' + member.name, member, traceable)
|
def getInterface(interfaceName, errorLoc): iface = interfacesByName.get(interfaceName) if iface is None: idlFile = findIDL(conf.includePath, conf.irregularFilenames, interfaceName) idl = loadIDL(parser, conf.includePath, idlFile) if not idl.hasName(interfaceName): raise UserError("The interface %s was not found " "in the idl file %r." % (interfaceName, idlFile)) iface = idl.getName(interfaceName, errorLoc) iface.stubMembers = [] interfaces.append(iface) interfacesByName[interfaceName] = iface return iface
|
c14e4ffd79d3b97514ad112cb46c7dbd495ad99b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/c14e4ffd79d3b97514ad112cb46c7dbd495ad99b/qsgen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1358,
12,
5831,
461,
16,
555,
1333,
4672,
9751,
273,
7349,
5911,
18,
588,
12,
5831,
461,
13,
309,
9751,
353,
599,
30,
612,
80,
812,
273,
1104,
734,
48,
12,
3923,
18,
6702,
743,
16,
2195,
18,
481,
16819,
25579,
6809,
16,
24088,
13,
612,
80,
273,
1262,
734,
48,
12,
4288,
16,
2195,
18,
6702,
743,
16,
612,
80,
812,
13,
309,
486,
612,
80,
18,
5332,
461,
12,
5831,
461,
4672,
1002,
2177,
668,
2932,
1986,
1560,
738,
87,
1703,
486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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1358,
12,
5831,
461,
16,
555,
1333,
4672,
9751,
273,
7349,
5911,
18,
588,
12,
5831,
461,
13,
309,
9751,
353,
599,
30,
612,
80,
812,
273,
1104,
734,
48,
12,
3923,
18,
6702,
743,
16,
2195,
18,
481,
16819,
25579,
6809,
16,
24088,
13,
612,
80,
273,
1262,
734,
48,
12,
4288,
16,
2195,
18,
6702,
743,
16,
612,
80,
812,
13,
309,
486,
612,
80,
18,
5332,
461,
12,
5831,
461,
4672,
1002,
2177,
668,
2932,
1986,
1560,
738,
87,
1703,
486,
1392,
315,
315,
267,
326,
612,
80,
585,
738,
86,
1199,
738,
261,
5831,
461,
16,
612,
80,
812,
3719,
9751,
273,
612,
80,
18,
17994,
12,
5831,
461,
16,
555,
1333,
13,
2
] |
if current.child_id: sums[current.id][fn] += sum(sums[child.id][fn] for child in current.child_id)
|
for child in current.child_id: if child.company_id.currency_id.id == current.company_id.currency_id.id: sums[current.id][fn] += sums[child.id][fn] else: sums[current.id][fn] += currency_obj.compute(cr, uid, child.company_id.currency_id.id, current.company_id.currency_id.id, sums[child.id][fn], context=context)
|
def __compute(self, cr, uid, ids, field_names, arg=None, context=None, query='', query_params=()): """ compute the balance, debit and/or credit for the provided account ids Arguments: `ids`: account ids `field_names`: the fields to compute (a list of any of 'balance', 'debit' and 'credit') `arg`: unused fields.function stuff `query`: additional query filter (as a string) `query_params`: parameters for the provided query string (__compute will handle their escaping) as a tuple """ mapping = { 'balance': "COALESCE(SUM(l.debit),0) " \ "- COALESCE(SUM(l.credit), 0) as balance", 'debit': "COALESCE(SUM(l.debit), 0) as debit", 'credit': "COALESCE(SUM(l.credit), 0) as credit" } #get all the necessary accounts children_and_consolidated = self._get_children_and_consol(cr, uid, ids, context=context) #compute for each account the balance/debit/credit from the move lines accounts = {} if children_and_consolidated: aml_query = self.pool.get('account.move.line')._query_get(cr, uid, context=context)
|
c279d8bbffd2a51bc77b439a834635e3815dcf91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c279d8bbffd2a51bc77b439a834635e3815dcf91/account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
33,
7036,
16,
819,
33,
7036,
16,
843,
2218,
2187,
843,
67,
2010,
33,
1435,
4672,
3536,
3671,
326,
11013,
16,
443,
3682,
471,
19,
280,
12896,
364,
326,
2112,
2236,
3258,
13599,
30,
1375,
2232,
68,
30,
2236,
3258,
1375,
1518,
67,
1973,
68,
30,
326,
1466,
358,
3671,
261,
69,
666,
434,
1281,
434,
296,
12296,
2187,
296,
323,
3682,
11,
471,
296,
20688,
6134,
1375,
3175,
68,
30,
10197,
1466,
18,
915,
10769,
1375,
2271,
68,
30,
3312,
843,
1034,
261,
345,
279,
533,
13,
1375,
2271,
67,
2010,
68,
30,
1472,
364,
326,
2112,
843,
533,
261,
972,
9200,
903,
1640,
3675,
20604,
13,
487,
279,
3193,
3536,
2874,
273,
288,
296,
12296,
4278,
315,
3865,
37,
11386,
1441,
12,
14020,
12,
80,
18,
323,
3682,
3631,
20,
13,
315,
521,
3701,
7910,
37,
11386,
1441,
12,
14020,
12,
80,
18,
20688,
3631,
374,
13,
487,
11013,
3113,
296,
323,
3682,
4278,
315,
3865,
37,
11386,
1441,
12,
14020,
12,
80,
18,
323,
3682,
3631,
374,
13,
487,
443,
3682,
3113,
296,
20688,
4278,
315,
3865,
37,
11386,
1441,
12,
14020,
12,
80,
18,
20688,
3631,
374,
13,
487,
12896,
6,
289,
468,
588,
777,
326,
4573,
9484,
2325,
67,
464,
67,
8559,
7953,
690,
273,
365,
6315,
588,
67,
5906,
67,
464,
67,
8559,
355,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
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,
9200,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
33,
7036,
16,
819,
33,
7036,
16,
843,
2218,
2187,
843,
67,
2010,
33,
1435,
4672,
3536,
3671,
326,
11013,
16,
443,
3682,
471,
19,
280,
12896,
364,
326,
2112,
2236,
3258,
13599,
30,
1375,
2232,
68,
30,
2236,
3258,
1375,
1518,
67,
1973,
68,
30,
326,
1466,
358,
3671,
261,
69,
666,
434,
1281,
434,
296,
12296,
2187,
296,
323,
3682,
11,
471,
296,
20688,
6134,
1375,
3175,
68,
30,
10197,
1466,
18,
915,
10769,
1375,
2271,
68,
30,
3312,
843,
1034,
261,
345,
279,
533,
13,
1375,
2271,
67,
2010,
68,
30,
1472,
364,
326,
2112,
843,
533,
261,
972,
2
] |
isp_keeper = None
|
def _FastestByLocalProvider(self): """Find the fastest DNS server by the client provider.""" isp_keeper = None
|
e2cabb384467d6403805229a2b0337247e5ea3e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4017/e2cabb384467d6403805229a2b0337247e5ea3e5/nameserver_list.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12305,
395,
858,
2042,
2249,
12,
2890,
4672,
3536,
3125,
326,
4797,
395,
8858,
1438,
635,
326,
1004,
2893,
12123,
353,
84,
67,
79,
9868,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12305,
395,
858,
2042,
2249,
12,
2890,
4672,
3536,
3125,
326,
4797,
395,
8858,
1438,
635,
326,
1004,
2893,
12123,
353,
84,
67,
79,
9868,
273,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
0.6019058
|
0.60190723019723458
|
def bessel_K(nu,z,prec=53): r""" Implements the "K-Bessel function", or "modifed Bessel function, 2nd kind", with index (or "order") nu and argument z. Defn:
|
5d4d1a4315d1dc34b216f5bb99d2f5bcf1f776e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d4d1a4315d1dc34b216f5bb99d2f5bcf1f776e9/special.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
403,
292,
67,
47,
12,
13053,
16,
94,
16,
4036,
33,
8643,
4672,
436,
8395,
29704,
326,
315,
47,
17,
38,
403,
292,
445,
3113,
578,
315,
1711,
430,
329,
605,
403,
292,
445,
16,
576,
4880,
3846,
3113,
598,
770,
261,
280,
315,
1019,
7923,
9244,
471,
1237,
998,
18,
1505,
4293,
30,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
403,
292,
67,
47,
12,
13053,
16,
94,
16,
4036,
33,
8643,
4672,
436,
8395,
29704,
326,
315,
47,
17,
38,
403,
292,
445,
3113,
578,
315,
1711,
430,
329,
605,
403,
292,
445,
16,
576,
4880,
3846,
3113,
598,
770,
261,
280,
315,
1019,
7923,
9244,
471,
1237,
998,
18,
1505,
4293,
30,
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
] |
def doiskip(pagetext):
|
def doiskip(imagepage):
|
def doiskip(pagetext): ''' Skip this image or not. Returns True if the image is on the skip list, otherwise False saltos=getautoskip() #print saltos for salto in saltos: rex=ur'\{\{\s*['+salto[0].upper()+salto[0].lower()+']'+salto[1:]+'(\}\}|\|)' #print rex if re.search(rex, pagetext): return True ''' return False
|
6d55d119e67c91881b6f3700f81bd66a7fd61a73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/6d55d119e67c91881b6f3700f81bd66a7fd61a73/imagecopy_enwp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
291,
1834,
12,
2730,
2433,
4672,
9163,
6611,
333,
1316,
578,
486,
18,
2860,
1053,
309,
326,
1316,
353,
603,
326,
2488,
666,
16,
3541,
1083,
225,
4286,
538,
33,
588,
21996,
1834,
1435,
468,
1188,
4286,
538,
364,
12814,
869,
316,
4286,
538,
30,
28929,
33,
295,
8314,
23241,
23241,
87,
14,
3292,
15,
21982,
869,
63,
20,
8009,
5797,
1435,
15,
21982,
869,
63,
20,
8009,
8167,
1435,
15,
3546,
11,
15,
21982,
869,
63,
21,
30,
30658,
4713,
6280,
97,
8960,
96,
2506,
468,
1188,
28929,
309,
283,
18,
3072,
12,
266,
92,
16,
4262,
27830,
4672,
327,
1053,
9163,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
291,
1834,
12,
2730,
2433,
4672,
9163,
6611,
333,
1316,
578,
486,
18,
2860,
1053,
309,
326,
1316,
353,
603,
326,
2488,
666,
16,
3541,
1083,
225,
4286,
538,
33,
588,
21996,
1834,
1435,
468,
1188,
4286,
538,
364,
12814,
869,
316,
4286,
538,
30,
28929,
33,
295,
8314,
23241,
23241,
87,
14,
3292,
15,
21982,
869,
63,
20,
8009,
5797,
1435,
15,
21982,
869,
63,
20,
8009,
8167,
1435,
15,
3546,
11,
15,
21982,
869,
63,
21,
30,
30658,
4713,
6280,
97,
8960,
96,
2506,
468,
1188,
28929,
309,
283,
18,
3072,
12,
266,
92,
16,
4262,
27830,
4672,
327,
1053,
9163,
327,
1083,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sys_prefix = sys.prefix
|
sys_prefix = os.path.normpath (sys.prefix)
|
def replace_sys_prefix (self, config_attr, fallback_postfix, use_exec=0): """Attempts to glean a simple pattern from an installation directory available as a 'sysconfig' attribute: if the directory name starts with the "system prefix" (the one hard-coded in the Makefile and compiled into Python), then replace it with the current installation prefix and return the "relocated" installation directory."""
|
f0a18abab7ed197a1eae965cc7198ad45b4bc275 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f0a18abab7ed197a1eae965cc7198ad45b4bc275/install.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
9499,
67,
3239,
261,
2890,
16,
642,
67,
1747,
16,
5922,
67,
2767,
904,
16,
999,
67,
4177,
33,
20,
4672,
3536,
10113,
358,
314,
298,
304,
279,
4143,
1936,
628,
392,
13193,
1867,
2319,
487,
279,
296,
9499,
1425,
11,
1566,
30,
309,
326,
1867,
508,
2542,
598,
326,
315,
4299,
1633,
6,
261,
5787,
1245,
7877,
17,
24808,
316,
326,
4344,
768,
471,
7743,
1368,
6600,
3631,
1508,
1453,
518,
598,
326,
783,
13193,
1633,
471,
327,
326,
315,
266,
1829,
690,
6,
13193,
1867,
12123,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
9499,
67,
3239,
261,
2890,
16,
642,
67,
1747,
16,
5922,
67,
2767,
904,
16,
999,
67,
4177,
33,
20,
4672,
3536,
10113,
358,
314,
298,
304,
279,
4143,
1936,
628,
392,
13193,
1867,
2319,
487,
279,
296,
9499,
1425,
11,
1566,
30,
309,
326,
1867,
508,
2542,
598,
326,
315,
4299,
1633,
6,
261,
5787,
1245,
7877,
17,
24808,
316,
326,
4344,
768,
471,
7743,
1368,
6600,
3631,
1508,
1453,
518,
598,
326,
783,
13193,
1633,
471,
327,
326,
315,
266,
1829,
690,
6,
13193,
1867,
12123,
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
] |
sage: F4(0,0,0,1).branch(A2xA2, rule="extended")
|
sage: F4(0,0,0,1).branch(A2xA2, rule="extended")
|
def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Willenbring, Stable branching rules for classical symmetric pairs, Trans. Amer. Math. Soc. 357 (2005), no. 4, 1601-1626, McKay and Patera, Tables of Dimensions, Indices and Branching Rules for Representations of Simple Lie Algebras (Marcel Dekker, 1981), and Fauser, Jarvis, King and Wybourne, New branching rules induced by plethysm. J. Phys. A 39 (2006), no. 11, 2611--2655. INPUT: - ``chi`` - a character of G - ``R`` - the Weyl Character Ring of G - ``S`` - the Weyl Character Ring of H - ``rule`` - a set of r dominant weights in H where r is the rank of G. You may use a predefined rule by specifying rule = one of"levi", "automorphic", "symmetric", "extended", "triality" or "miscellaneous". The use of these rules will be explained next. After the examples we will explain how to write your own branching rules for cases that we have omitted. To explain the predefined rules we survey the most important branching rules. These may be classified into several cases, and once this is understood, the detailed classification can be read off from the Dynkin diagrams. Dynkin classified the maximal subgroups of Lie groups in Mat. Sbornik N.S. 30(72):349-462 (1952). We will list give predefined rules that cover most cases where the branching rule is to a maximal subgroup. For convenience, we also give some branching rules to subgroups that are not maximal. For example, a Levi subgroup may or may not be maximal. LEVI TYPE. These can be read off from the Dynkin diagram. If removing a node from the Dynkin diagram produces another Dynkin diagram, there is a branching rule. Currently we require that the smaller diagram be connected. For these rules use the option rule="levi":: ['A',r] => ['A',r-1] ['B',r] => ['A',r-1] ['B',r] => ['B',r-1] ['C',r] => ['A',r-1] ['C',r] => ['C',r-1] ['D',r] => ['A',r-1] ['D',r] => ['D',r-1] ['E',r] => ['A',r-1] r = 7,8 ['E',r] => ['D',r-1] r = 6,7,8 ['E',r] => ['E',r-1] F4 => B3 F4 => C3 G2 => A1 (short root) Not all Levi subgroups are maximal subgroups. If the Levi is not maximal there may or may not be a preprogrammed rule="levi" for it. If there is not, the branching rule may still be obtained by going through an intermediate subgroup that is maximal using rule="extended". Thus the other Levi branching rule from G2 => A1 corresponding to the long root is available by first branching G2 => A_2 then A2 => A1. Similarly the branching rules to the Levi subgroup:: ['E',r] => ['A',r-1] r = 6,7,8 may be obtained by first branching E6=>A5xA1, E7=>A7 or E8=>A8. AUTOMORPHIC TYPE. If the Dynkin diagram has a symmetry, then there is an automorphism that is a special case of a branching rule. There is also an exotic "triality" automorphism of D4 having order 3. Use rule="automorphic" or (for D4) rule="triality":: ['A',r] => ['A',r] ['D',r] => ['D',r] E6 => E6 SYMMETRIC TYPE. Related to the automorphic type, when either the Dynkin diagram or the extended diagram has a symmetry there is a branching rule to the subalgebra (or subgroup) of invariants under the automorphism. Use rule="symmetric". The last branching rule, D4=>G2 is not to a maximal subgroup since D4=>B3=>G2, but it is included for convenience. :: ['A',2r+1] => ['B',r] ['A',2r] => ['C',r] ['A',2r] => ['D',r] ['D',r] => ['B',r-1] E6 => F4 D4 => G2 EXTENDED TYPE. If removing a node from the extended Dynkin diagram results in a Dynkin diagram, then there is a branching rule. Use rule="extended" for these. We will also use this classification for some rules that are not of this type, mainly involving type B, such as D6 => B3xB3. Here is the extended Dynkin diagram for D6:: 0 6 O O | | | | O---O---O---O---O 1 2 3 4 6 Removing the node 3 results in an embedding D3xD3 -> D6. This corresponds to the embedding SO(6)xSO(6) -> SO(12), and is of extended type. On the other hand the embedding SO(5)xSO(7)-->SO(12) (e.g. B2xB3 -> D6) cannot be explained this way but for uniformity is implemented under rule="extended". Using rule="extended" you can get any branching rule SO(n) => SO(a) x SO(b) x SO(c) x ... where n = a+b+c+ ... Sp(2n) => Sp(2a) x Sp(2b) x Sp(2c) x ... where n = a+b+c+ ... where O(a) = ['D',r] (a=2r) or ['B',r] (a=2r+1) and Sp(2r)=['C',r]. The following rules are implemented as special cases of rule="extended". :: E6 => A5xA1, A2xA2xA2 E7 => A7, D6xA1, A3xA3xA1 E8 => A8, D8, E7xA1, A4xA4, D5xA3, E6xA2 F4 => B4, C3xA1, A2xA2, A3xA1 G2 => A1xA1 Note that E8 has only a limited number of representations of reasonably low degree. TENSOR: There are branching rules: :: ['A', rs-1] => ['A',r-1] x ['A',s-1] ['B',2rs+r+s] => ['B',r] x ['B',s] ['D',2rs+s] => ['B',r] x ['D',s] ['D',2rs] => ['D',r] x ['D',s] ['D',2rs] => ['C',r] x ['C',s] ['C',2rs+s] => ['B',r] x ['C',s] ['C',2rs] => ['C',r] x ['D',s]. corresponding to the tensor product homomorphism. For type A, the homomorphism is GL(r) x GL(s) -> GL(rs). For the classical types, the relevant fact is that if V,W are orthogonal or symplectic spaces, that is, spaces endowed with symmetric or skew-symmetric bilinear forms, then V tensor W is also an orthogonal space (if V and W are both orthogonal or both symplectic) or symplectic (if one of V and W is orthogonal and the other symplectic). The corresponding branching rules are obtained using rule="tensor". SYMMETRIC POWER: The k-th symmetric and exterior power homomorphisms map GL(n) --> GL(binomial(n+k-1,k)) and GL(binomial(n,k)). The corresponding branching rules are not implemented but a special case is. The k-th symmetric power homomorphism SL(2) --> GL(k+1) has its image inside of SO(2r+1) if k=2r and inside of Sp(2r) if k=2r-1. Hence there are branching rules:: ['B',r] => A1 ['C',r] => A1 and these may be obtained using the rule "symmetric_power". MISCELLANEOUS: Use rule="miscellaneous" for the following rules:: B3 => G2 F4 => G2xA1 (not implemented yet) BRANCHING RULES FROM PLETHYSMS Nearly all branching rules G => H where G is of type A,B,C or D are covered by the preceding rules. The function branching_rules_from_plethysm covers the remaining cases. ISOMORPHIC TYPE: Although not usually referred to as a branching rule, the effects of the accidental isomorphisms may be handled using rule="isomorphic":: B2 => C2 C2 => B2 A3 => D3 D3 => A3 D2 => A1xA1 B1 => A1 C1 => A1 EXAMPLES: (Levi type) :: sage: A1 = WeylCharacterRing("A1") sage: A2 = WeylCharacterRing("A2") sage: A3 = WeylCharacterRing("A3") sage: A4 = WeylCharacterRing("A4") sage: A5 = WeylCharacterRing("A5") sage: B2 = WeylCharacterRing("B2") sage: B3 = WeylCharacterRing("B3") sage: B4 = WeylCharacterRing("B4") sage: C2 = WeylCharacterRing("C2") sage: C3 = WeylCharacterRing("C3") sage: D3 = WeylCharacterRing("D3") sage: D4 = WeylCharacterRing("D4") sage: D5 = WeylCharacterRing("D5") sage: G2 = WeylCharacterRing("G2") sage: F4 = WeylCharacterRing("F4",style="coroots") # long time sage: E6=WeylCharacterRing("E6",style="coroots") sage: D5=WeylCharacterRing("D5",style="coroots") sage: [B3(w).branch(A2,rule="levi") for w in B3.fundamental_weights()] [A2(0,0,-1) + A2(0,0,0) + A2(1,0,0), A2(0,-1,-1) + A2(0,0,-1) + A2(0,0,0) + A2(1,0,-1) + A2(1,0,0) + A2(1,1,0), A2(-1/2,-1/2,-1/2) + A2(1/2,-1/2,-1/2) + A2(1/2,1/2,-1/2) + A2(1/2,1/2,1/2)] The last example must be understood as follows. The representation of B3 being branched is spin, which is not a representation of SO(7) but of its double cover spin(7). The group A2 is really GL(3) and the double cover of SO(7) induces a cover of GL(3) that is trivial over SL(3) but not over the center of GL(3). The weight lattice for this GL(3) consists of triples (a,b,c) of half integers such that a-b and b-c are in `\ZZ`, and this is reflected in the last decomposition. :: sage: [C3(w).branch(A2,rule="levi") for w in C3.fundamental_weights()] [A2(0,0,-1) + A2(1,0,0), A2(0,-1,-1) + A2(1,0,-1) + A2(1,1,0), A2(-1,-1,-1) + A2(1,-1,-1) + A2(1,1,-1) + A2(1,1,1)] sage: [D4(w).branch(A3,rule="levi") for w in D4.fundamental_weights()] [A3(0,0,0,-1) + A3(1,0,0,0), A3(0,0,-1,-1) + A3(0,0,0,0) + A3(1,0,0,-1) + A3(1,1,0,0), A3(1/2,-1/2,-1/2,-1/2) + A3(1/2,1/2,1/2,-1/2), A3(-1/2,-1/2,-1/2,-1/2) + A3(1/2,1/2,-1/2,-1/2) + A3(1/2,1/2,1/2,1/2)] sage: [B3(w).branch(B2,rule="levi") for w in B3.fundamental_weights()] [2*B2(0,0) + B2(1,0), B2(0,0) + 2*B2(1,0) + B2(1,1), 2*B2(1/2,1/2)] sage: C3 = WeylCharacterRing(['C',3]) sage: [C3(w).branch(C2,rule="levi") for w in C3.fundamental_weights()] [2*C2(0,0) + C2(1,0), C2(0,0) + 2*C2(1,0) + C2(1,1), C2(1,0) + 2*C2(1,1)] sage: [D5(w).branch(D4,rule="levi") for w in D5.fundamental_weights()] [2*D4(0,0,0,0) + D4(1,0,0,0), D4(0,0,0,0) + 2*D4(1,0,0,0) + D4(1,1,0,0), D4(1,0,0,0) + 2*D4(1,1,0,0) + D4(1,1,1,0), D4(1/2,1/2,1/2,-1/2) + D4(1/2,1/2,1/2,1/2), D4(1/2,1/2,1/2,-1/2) + D4(1/2,1/2,1/2,1/2)] sage: G2(1,0,-1).branch(A1,rule="levi") A1(0,-1) + A1(1,-1) + A1(1,0) sage: E6=WeylCharacterRing("E6",style="coroots") # long time sage: D5=WeylCharacterRing("D5",style="coroots") # long time sage: fw = E6.fundamental_weights() # long time sage: [E6(fw[i]).branch(D5,rule="levi") for i in [1,2,6]] # long time [D5(0,0,0,0,0) + D5(0,0,0,0,1) + D5(1,0,0,0,0), D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(0,0,0,0,1) + D5(0,1,0,0,0), D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(1,0,0,0,0)] sage: E7=WeylCharacterRing("E7",style="coroots") # long time sage: D6=WeylCharacterRing("D6",style="coroots") # long time sage: fw = E7.fundamental_weights() # long time sage: [E7(fw[i]).branch(D6,rule="levi") for i in [1,2,7]] # long time [3*D6(0,0,0,0,0,0) + 2*D6(0,0,0,0,1,0) + D6(0,1,0,0,0,0), 3*D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0) + 2*D6(0,0,1,0,0,0) + D6(1,0,0,0,1,0), D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0)] sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time sage: E8=WeylCharacterRing("E8",style="coroots",cache=True) # long time sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time sage: E8(1,0,0,0,0,0,0,0).branch(D7,rule="levi") # long time 3*D7(0,0,0,0,0,0,0) + 2*D7(0,0,0,0,0,1,0) + 2*D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0) + D7(0,1,0,0,0,0,0) + 2*D7(0,0,1,0,0,0,0) + D7(0,0,0,1,0,0,0) + D7(1,0,0,0,0,1,0) + D7(1,0,0,0,0,0,1) + D7(2,0,0,0,0,0,0) sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi") # long time D7(0,0,0,0,0,0,0) + D7(0,0,0,0,0,1,0) + D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0) + D7(0,1,0,0,0,0,0) sage: [F4(fw).branch(B3,rule="levi") for fw in F4.fundamental_weights()] # long time [B3(0,0,0) + 2*B3(1/2,1/2,1/2) + 2*B3(1,0,0) + B3(1,1,0), B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 5*B3(1,0,0) + 7*B3(1,1,0) + 3*B3(1,1,1) + 6*B3(3/2,1/2,1/2) + 2*B3(3/2,3/2,1/2) + B3(2,0,0) + 2*B3(2,1,0) + B3(2,1,1), 3*B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 4*B3(1,0,0) + 3*B3(1,1,0) + B3(1,1,1) + 2*B3(3/2,1/2,1/2), 3*B3(0,0,0) + 2*B3(1/2,1/2,1/2) + B3(1,0,0)] sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()] # long time [3*C3(0,0,0) + 2*C3(1,1,1) + C3(2,0,0), 3*C3(0,0,0) + 6*C3(1,1,1) + 4*C3(2,0,0) + 2*C3(2,1,0) + 3*C3(2,2,0) + C3(2,2,2) + C3(3,1,0) + 2*C3(3,1,1), 2*C3(1,0,0) + 3*C3(1,1,0) + C3(2,0,0) + 2*C3(2,1,0) + C3(2,1,1), 2*C3(1,0,0) + C3(1,1,0)] sage: A1xA1 = WeylCharacterRing("A1xA1") sage: [A3(hwv).branch(A1xA1,rule="levi") for hwv in A3.fundamental_weights()] [A1xA1(0,0,1,0) + A1xA1(1,0,0,0), A1xA1(0,0,1,1) + A1xA1(1,0,1,0) + A1xA1(1,1,0,0), A1xA1(1,0,1,1) + A1xA1(1,1,1,0)] sage: A1xB1=WeylCharacterRing("A1xB1",style="coroots") sage: [B3(x).branch(A1xB1,rule="levi") for x in B3.fundamental_weights()] [A1xB1(0,2) + 2*A1xB1(1,0), 3*A1xB1(0,0) + A1xB1(0,2) + 2*A1xB1(1,2) + A1xB1(2,0), 2*A1xB1(0,1) + A1xB1(1,1)] EXAMPLES: (Automorphic type, including D4 triality) :: sage: [A3(chi).branch(A3,rule="automorphic") for chi in A3.fundamental_weights()] [A3(0,0,0,-1), A3(0,0,-1,-1), A3(0,-1,-1,-1)] sage: [D4(chi).branch(D4,rule="automorphic") for chi in D4.fundamental_weights()] [D4(1,0,0,0), D4(1,1,0,0), D4(1/2,1/2,1/2,1/2), D4(1/2,1/2,1/2,-1/2)] sage: [D4(chi).branch(D4,rule="triality") for chi in D4.fundamental_weights()] [D4(1/2,1/2,1/2,-1/2), D4(1,1,0,0), D4(1/2,1/2,1/2,1/2), D4(1,0,0,0)] EXAMPLES: (Symmetric type) :: sage: [w.branch(B2,rule="symmetric") for w in [A4(1,0,0,0,0),A4(1,1,0,0,0),A4(1,1,1,0,0),A4(2,0,0,0,0)]] [B2(1,0), B2(1,1), B2(1,1), B2(0,0) + B2(2,0)] sage: [A5(w).branch(C3,rule="symmetric") for w in A5.fundamental_weights()] [C3(1,0,0), C3(0,0,0) + C3(1,1,0), C3(1,0,0) + C3(1,1,1), C3(0,0,0) + C3(1,1,0), C3(1,0,0)] sage: [A5(w).branch(D3,rule="symmetric") for w in A5.fundamental_weights()] [D3(1,0,0), D3(1,1,0), D3(1,1,-1) + D3(1,1,1), D3(1,1,0), D3(1,0,0)] sage: [D4(x).branch(B3,rule="symmetric") for x in D4.fundamental_weights()] [B3(0,0,0) + B3(1,0,0), B3(1,0,0) + B3(1,1,0), B3(1/2,1/2,1/2), B3(1/2,1/2,1/2)] sage: [D4(x).branch(G2,rule="symmetric") for x in D4.fundamental_weights()] [G2(0,0,0) + G2(1,0,-1), 2*G2(1,0,-1) + G2(2,-1,-1), G2(0,0,0) + G2(1,0,-1), G2(0,0,0) + G2(1,0,-1)] sage: [E6(fw).branch(F4,rule="symmetric") for fw in E6.fundamental_weights()] # long time [F4(0,0,0,0) + F4(0,0,0,1), F4(0,0,0,1) + F4(1,0,0,0), F4(0,0,0,1) + F4(1,0,0,0) + F4(0,0,1,0), F4(1,0,0,0) + 2*F4(0,0,1,0) + F4(1,0,0,1) + F4(0,1,0,0), F4(0,0,0,1) + F4(1,0,0,0) + F4(0,0,1,0), F4(0,0,0,0) + F4(0,0,0,1)] EXAMPLES: (Extended type) :: sage: [B3(x).branch(D3,rule="extended") for x in B3.fundamental_weights()] [D3(0,0,0) + D3(1,0,0), D3(1,0,0) + D3(1,1,0), D3(1/2,1/2,-1/2) + D3(1/2,1/2,1/2)] sage: [G2(w).branch(A2, rule="extended") for w in G2.fundamental_weights()] [A2(0,0,0) + A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3), A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3) + A2(1,0,-1)] sage: [F4(fw).branch(B4,rule="extended") for fw in F4.fundamental_weights()] # long time [B4(1/2,1/2,1/2,1/2) + B4(1,1,0,0), B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2) + B4(3/2,3/2,1/2,1/2) + B4(2,1,1,0), B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0) + B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2), B4(0,0,0,0) + B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0)] sage: E6 = WeylCharacterRing("E6", style="coroots") # long time sage: A2xA2xA2=WeylCharacterRing("A2xA2xA2",style="coroots") sage: A5xA1=WeylCharacterRing("A5xA1",style="coroots") sage: G2 = WeylCharacterRing("G2", style="coroots") sage: A1xA1 = WeylCharacterRing("A1xA1", style="coroots") sage: F4 = WeylCharacterRing("F4",style="coroots") sage: A3xA1 = WeylCharacterRing("A3xA1", style="coroots") sage: A2xA2 = WeylCharacterRing("A2xA2", style="coroots") sage: A1xC3 = WeylCharacterRing("A1xC3",style="coroots") sage: E6(1,0,0,0,0,0).branch(A5xA1,rule="extended") # long time A5xA1(0,0,0,1,0,0) + A5xA1(1,0,0,0,0,1) sage: E6(1,0,0,0,0,0).branch(A2xA2xA2, rule="extended") # long time A2xA2xA2(0,0,0,1,1,0) + A2xA2xA2(0,1,1,0,0,0) + A2xA2xA2(1,0,0,0,0,1) sage: E7=WeylCharacterRing("E7",style="coroots") # long time sage: A7=WeylCharacterRing("A7",style="coroots") # long time sage: E7(1,0,0,0,0,0,0).branch(A7,rule="extended") # long time A7(0,0,0,1,0,0,0) + A7(1,0,0,0,0,0,1) sage: E8=WeylCharacterRing("E8",cache=true,style="coroots") # long time sage: D8=WeylCharacterRing("D8",cache=true,style="coroots") # long time sage: E8(0,0,0,0,0,0,0,1).branch(D8,rule="extended") # long time D8(0,0,0,0,0,0,1,0) + D8(0,1,0,0,0,0,0,0) sage: F4(1,0,0,0).branch(A1xC3,rule="extended") # long time A1xC3(0,2,0,0) + A1xC3(1,0,0,1) + A1xC3(2,0,0,0) sage: G2(0,1).branch(A1xA1, rule="extended") A1xA1(0,2) + A1xA1(2,0) + A1xA1(3,1) sage: F4(0,0,0,1).branch(A2xA2, rule="extended") # long time A2xA2(0,0,1,1) + A2xA2(0,1,0,1) + A2xA2(1,0,1,0) sage: F4(0,0,0,1).branch(A3xA1,rule="extended") # long time A3xA1(0,0,0,0) + A3xA1(0,0,0,2) + A3xA1(0,0,1,1) + A3xA1(0,1,0,0) + A3xA1(1,0,0,1) sage: D4=WeylCharacterRing("D4",style="coroots") sage: D2xD2=WeylCharacterRing("D2xD2",style="coroots") # We get D4 => A1xA1xA1xA1 by remembering that A1xA1 = D2. sage: [D4(fw).branch(D2xD2, rule="extended") for fw in D4.fundamental_weights()] [D2xD2(0,0,1,1) + D2xD2(1,1,0,0), D2xD2(0,0,2,0) + D2xD2(0,0,0,2) + D2xD2(2,0,0,0) + D2xD2(1,1,1,1) + D2xD2(0,2,0,0), D2xD2(1,0,0,1) + D2xD2(0,1,1,0), D2xD2(1,0,1,0) + D2xD2(0,1,0,1)] EXAMPLES: (Tensor type) :: sage: A5=WeylCharacterRing("A5", style="coroots") sage: A2xA1=WeylCharacterRing("A2xA1", style="coroots") sage: [A5(hwv).branch(A2xA1, rule="tensor") for hwv in A5.fundamental_weights()] [A2xA1(1,0,1), A2xA1(0,1,2) + A2xA1(2,0,0), A2xA1(0,0,3) + A2xA1(1,1,1), A2xA1(1,0,2) + A2xA1(0,2,0), A2xA1(0,1,1)] sage: B4=WeylCharacterRing("B4",style="coroots") sage: B1xB1=WeylCharacterRing("B1xB1",style="coroots") sage: [B4(f).branch(B1xB1,rule="tensor") for f in B4.fundamental_weights()] [B1xB1(2,2), B1xB1(0,2) + B1xB1(2,0) + B1xB1(2,4) + B1xB1(4,2), B1xB1(0,2) + B1xB1(0,6) + B1xB1(2,0) + B1xB1(2,2) + B1xB1(2,4) + B1xB1(4,2) + B1xB1(4,4) + B1xB1(6,0), B1xB1(1,3) + B1xB1(3,1)] sage: D4=WeylCharacterRing("D4",style="coroots") sage: C2xC1=WeylCharacterRing("C2xC1",style="coroots") sage: [D4(f).branch(C2xC1,rule="tensor") for f in D4.fundamental_weights()] [C2xC1(1,0,1), C2xC1(0,0,2) + C2xC1(0,1,2) + C2xC1(2,0,0), C2xC1(1,0,1), C2xC1(0,0,2) + C2xC1(0,1,0)] sage: C3=WeylCharacterRing("C3",style="coroots") sage: B1xC1=WeylCharacterRing("B1xC1",style="coroots") sage: [C3(f).branch(B1xC1,rule="tensor") for f in C3.fundamental_weights()] [B1xC1(2,1), B1xC1(2,2) + B1xC1(4,0), B1xC1(0,3) + B1xC1(4,1)] EXAMPLES: (Symmetric Power) :: sage: A1=WeylCharacterRing("A1",style="coroots") sage: B3=WeylCharacterRing("B3",style="coroots") sage: C3=WeylCharacterRing("C3",style="coroots") sage: [B3(fw).branch(A1,rule="symmetric_power") for fw in B3.fundamental_weights()] [A1(6), A1(2) + A1(6) + A1(10), A1(0) + A1(6)] sage: [C3(fw).branch(A1,rule="symmetric_power") for fw in C3.fundamental_weights()] [A1(5), A1(4) + A1(8), A1(3) + A1(9)] EXAMPLES: (Miscellaneous type) :: sage: G2 = WeylCharacterRing("G2") sage: [fw1, fw2, fw3] = B3.fundamental_weights() sage: B3(fw1+fw3).branch(G2, rule="miscellaneous") G2(1,0,-1) + G2(2,-1,-1) + G2(2,0,-2) EXAMPLES: (Isomorphic type) :: sage: [B2(x).branch(C2, rule="isomorphic") for x in B2.fundamental_weights()] [C2(1,1), C2(1,0)] sage: [C2(x).branch(B2, rule="isomorphic") for x in C2.fundamental_weights()] [B2(1/2,1/2), B2(1,0)] sage: [A3(x).branch(D3,rule="isomorphic") for x in A3.fundamental_weights()] [D3(1/2,1/2,1/2), D3(1,0,0), D3(1/2,1/2,-1/2)] sage: [D3(x).branch(A3,rule="isomorphic") for x in D3.fundamental_weights()] [A3(1/2,1/2,-1/2,-1/2), A3(1/4,1/4,1/4,-3/4), A3(3/4,-1/4,-1/4,-1/4)] Here A3(x,y,z,w) can be understood as a representation of SL(4). The weights x,y,z,w and x+t,y+t,z+t,w+t represent the same representation of SL(4) - though not of GL(4) - since A3(x+t,y+t,z+t,w+t) is the same as A3(x,y,z,w) tensored with `det^t`. So as a representation of SL(4), A3(1/4,1/4,1/4,-3/4) is the same as A3(1,1,1,0). The exterior square representation SL(4) -> GL(6) admits an invariant symmetric bilinear form, so is a representation SL(4) -> SO(6) that lifts to an isomorphism SL(4) -> Spin(6). Conversely, there are two isomorphisms SO(6) -> SL(4), of which we've selected one. In cases like this you might prefer style="coroots". :: sage: A3 = WeylCharacterRing("A3",style="coroots") sage: D3 = WeylCharacterRing("D3",style="coroots") sage: [D3(fw) for fw in D3.fundamental_weights()] [D3(1,0,0), D3(0,1,0), D3(0,0,1)] sage: [D3(fw).branch(A3,rule="isomorphic") for fw in D3.fundamental_weights()] [A3(0,1,0), A3(0,0,1), A3(1,0,0)] sage: D2 = WeylCharacterRing("D2", style="coroots") sage: A1xA1 = WeylCharacterRing("A1xA1", style="coroots") sage: [D2(fw).branch(A1xA1,rule="isomorphic") for fw in D2.fundamental_weights()] [A1xA1(1,0), A1xA1(0,1)] EXAMPLES: (Branching rules from plethysms) This is a general rule that includes any branching rule from types A,B,C or D as a special case. Thus it could be used in place of the above rules and would give the same results. However it is most useful when branching from G to a maximal subgroup H such that rank(H) < rank(G)-1. We consider a homomorphism H --> G where G is one of SL(r+1), SO(2r+1), Sp(2r) or SO(2r). The function branching_rule_from_plethysm produces the corresponding branching rule. The main ingredient is the character chi of the representation of H that is the homomorphism to GL(r+1), GL(2r+1) or GL(2r). This rule is so powerful that it contains the other rules implemented above as special cases. First let us consider the symmetric fifth power representation of SL(2). :: sage: A1=WeylCharacterRing("A1",style="coroots") sage: chi=A1([5]) sage: chi.degree() 6 sage: chi.frobenius_schur_indicator() -1 This confirms that the character has degree 6 and is symplectic, so it corresponds to a homomorphism SL(2) --> Sp(6), and there is a corresponding branching rule C3 => A1. :: sage: C3 = WeylCharacterRing("C3",style="coroots") sage: sym5rule = branching_rule_from_plethysm(chi,"C3") sage: [C3(hwv).branch(A1,rule=sym5rule) for hwv in C3.fundamental_weights()] [A1(5), A1(4) + A1(8), A1(3) + A1(9)] This is identical to the results we would obtain using rule="symmetric_power". The next example gives a branching not available by other standard rules. :: sage: G2 = WeylCharacterRing("G2",style="coroots") sage: D7 = WeylCharacterRing("D7",style="coroots") sage: ad=G2(0,1); ad.degree(); ad.frobenius_schur_indicator() 14 1 sage: spin = D7(0,0,0,0,0,1,0); spin.degree() 64 sage: spin.branch(G2, rule=branching_rule_from_plethysm(ad, "D7")) G2(1,1) We have confirmed that the adjoint representation of G2 gives a homomorphism into SO(14), and that the pullback of the one of the two 64 dimensional spin representations to SO(14) is an irreducible representation of G2. BRANCHING FROM A REDUCIBLE ROOT SYSTEM If you are branching from a reducible root system, the rule is a list of rules, one for each component type in the root system. The rules in the list are given in pairs [type, rule], where type is the root system to be branched to, and rule is the branching rule. :: sage: D4 = WeylCharacterRing("D4",style="coroots") sage: D2xD2 = WeylCharacterRing("D2xD2",style="coroots") sage: A1xA1xA1xA1 = WeylCharacterRing("A1xA1xA1xA1",style="coroots") sage: rr = [["A1xA1","isomorphic"],["A1xA1","isomorphic"]] sage: [D4(fw) for fw in D4.fundamental_weights()] [D4(1,0,0,0), D4(0,1,0,0), D4(0,0,1,0), D4(0,0,0,1)] sage: [D4(fw).branch(D2xD2,rule="extended").branch(A1xA1xA1xA1,rule=rr) for fw in D4.fundamental_weights()] [A1xA1xA1xA1(0,0,1,1) + A1xA1xA1xA1(1,1,0,0), A1xA1xA1xA1(0,0,0,2) + A1xA1xA1xA1(0,0,2,0) + A1xA1xA1xA1(0,2,0,0) + A1xA1xA1xA1(1,1,1,1) + A1xA1xA1xA1(2,0,0,0), A1xA1xA1xA1(0,1,1,0) + A1xA1xA1xA1(1,0,0,1), A1xA1xA1xA1(0,1,0,1) + A1xA1xA1xA1(1,0,1,0)] WRITING YOUR OWN RULES Suppose you want to branch from a group G to a subgroup H. Arrange the embedding so that a Cartan subalgebra U of H is contained in a Cartan subalgebra T of G. There is thus a mapping from the weight spaces Lie(T)* --> Lie(U)*. Two embeddings will produce identical branching rules if they differ by an element of the Weyl group of H. The RULE is this map Lie(T)* = G.space() to Lie(U)* = H.space(), which you may implement as a function. As an example, let us consider how to implement the branching rule A3 => C2. Here H = C2 = Sp(4) embedded as a subgroup in A3 = GL(4). The Cartan subalgebra U consists of diagonal matrices with eigenvalues u1, u2, -u2, -u1. The C2.space() is the two dimensional vector spaces consisting of the linear functionals u1 and u2 on U. On the other hand Lie(T) is RR^4. A convenient way to see the restriction is to think of it as the adjoint of the map [u1,u2] -> [u1,u2,-u2,-u1], that is, [x0,x1,x2,x3] -> [x0-x3,x1-x2]. Hence we may encode the rule: :: def rule(x): return [x[0]-x[3],x[1]-x[2]] or simply: :: rule = lambda x : [x[0]-x[3],x[1]-x[2]] EXAMPLES:: sage: A3 = WeylCharacterRing(['A',3]) sage: C2 = WeylCharacterRing(['C',2]) sage: rule = lambda x : [x[0]-x[3],x[1]-x[2]] sage: branch_weyl_character(A3([1,1,0,0]),A3,C2,rule) C2(0,0) + C2(1,1) sage: A3(1,1,0,0).branch(C2, rule) == C2(0,0) + C2(1,1) True """ if type(rule) == str: rule = get_branching_rule(R._cartan_type, S._cartan_type, rule) elif R._cartan_type.is_compound(): Rtypes = R._cartan_type.component_types() Stypes = [CartanType(l[0]) for l in rule] rules = [l[1] for l in rule] ntypes = len(Rtypes) rule_list = [get_branching_rule(Rtypes[i], Stypes[i], rules[i]) for i in range(ntypes)] shifts = R._cartan_type._shifts def rule(x): yl = [] for i in range(ntypes): yl.append(rule_list[i](x[shifts[i]:shifts[i+1]])) return flatten(yl) mdict = {} for k in chi._mdict: if S._style == "coroots": if S._cartan_type.is_atomic() and S._cartan_type[0] == 'E': if S._cartan_type[1] == 6: h = S._space(rule(list(k.to_vector()))) h = S.coerce_to_e6(h) elif S._cartan_type[1] == 7: h = S.coerce_to_e7(S._space(rule(list(k.to_vector())))) else: h = S.coerce_to_sl(S._space(rule(list(k.to_vector())))) else: h = S._space(rule(list(k.to_vector()))) if h in mdict: mdict[h] += chi._mdict[k] else: mdict[h] = chi._mdict[k] hdict = S.char_from_weights(mdict) return WeylCharacter(S, hdict, mdict)
|
7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c/weyl_characters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,
578,
524,
29087,
611,
358,
279,
10648,
1245,
18,
2164,
364,
3454,
16,
534,
18,
385,
18,
1475,
310,
16,
15449,
310,
2931,
364,
667,
1706,
511,
1385,
3252,
1450,
8171,
471,
12490,
280,
2590,
18,
804,
18,
4360,
1900,
18,
432,
1725,
261,
3657,
5877,
3631,
27542,
17,
6334,
29,
16,
9017,
73,
16,
399,
304,
471,
9980,
275,
2848,
310,
16,
934,
429,
3803,
310,
2931,
364,
667,
1706,
15108,
5574,
16,
2604,
18,
3986,
264,
18,
2361,
18,
348,
504,
18,
890,
10321,
261,
6976,
25,
3631,
1158,
18,
1059,
16,
2872,
1611,
17,
2313,
5558,
16,
25891,
47,
528,
471,
453,
2045,
69,
16,
30536,
434,
463,
23124,
16,
23046,
471,
15449,
310,
15718,
364,
868,
6706,
1012,
434,
4477,
511,
1385,
2262,
908,
2848,
345,
261,
49,
297,
2183,
1505,
79,
25293,
16,
5342,
11861,
3631,
471,
478,
69,
1355,
16,
15644,
3516,
16,
1475,
310,
471,
29271,
1075,
321,
73,
16,
1166,
3803,
310,
2931,
1547,
26372,
635,
886,
546,
1900,
81,
18,
804,
18,
4360,
1900,
18,
432,
16977,
261,
6976,
26,
3631,
1158,
18,
4648,
16,
10659,
2499,
413,
5558,
2539,
18,
225,
12943,
30,
225,
300,
12176,
24010,
10335,
300,
279,
3351,
434,
611,
225,
300,
12176,
54,
10335,
300,
326,
678,
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,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,
578,
524,
29087,
611,
358,
279,
10648,
1245,
18,
2164,
364,
3454,
16,
534,
18,
385,
18,
1475,
310,
16,
15449,
310,
2931,
364,
667,
1706,
511,
1385,
3252,
1450,
8171,
471,
12490,
280,
2590,
18,
804,
18,
4360,
1900,
18,
432,
1725,
261,
3657,
5877,
3631,
27542,
17,
6334,
29,
16,
9017,
73,
16,
399,
304,
471,
9980,
275,
2848,
310,
16,
934,
429,
3803,
310,
2931,
364,
667,
1706,
15108,
5574,
16,
2604,
18,
3986,
264,
18,
2361,
18,
348,
504,
2
] |
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/format_templates_manage?ln=%s">%s</a>''' % (config.CFG_SITE_URL, ln , _("Manage Output Formats")))
|
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/output_formats_manage?ln=%s">%s</a>''' % (config.CFG_SITE_URL, ln , _("Manage Output Formats")))
|
def output_format_show_attributes(req, bfo, ln=config.CFG_SITE_LANG): """ Page for output format names and descrition attributes edition. @param ln language @param bfo the filename of the template to show """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/format_templates_manage?ln=%s">%s</a>''' % (config.CFG_SITE_URL, ln , _("Manage Output Formats"))) try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) (auth_code, auth_msg) = check_user(req, 'cfgbibformat') if not auth_code: bfo = wash_url_argument(bfo, 'str') if not bibformatadminlib.can_read_output_format(bfo): #No read permission return page(title=_("Restricted Output Format"), body = """You don't have permission to view this output format.""", language=ln, navtrail = navtrail_previous_links, errors = [("ERR_BIBFORMAT_CANNOT_READ_OUTPUT_FILE", bfo ,"")], lastupdated=__lastupdated__, req=req) output_format = bibformat_engine.get_output_format(code=bfo, with_attributes=True) name = output_format['attrs']['names']['generic'] return page(title=_("Output Format %s Attributes" % name), body=bibformatadminlib.perform_request_output_format_show_attributes(bfo, ln=ln), uid=uid, language=ln, navtrail = navtrail_previous_links , lastupdated=__lastupdated__, req=req) else: return page_not_authorized(req=req, text=auth_msg)
|
9a2a84786d758f87e8ed77653ce50eba71aea70d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/9a2a84786d758f87e8ed77653ce50eba71aea70d/bibformatadmin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
2139,
67,
4500,
67,
4350,
12,
3658,
16,
324,
617,
16,
7211,
33,
1425,
18,
19727,
67,
20609,
67,
10571,
4672,
3536,
3460,
364,
876,
740,
1257,
471,
3044,
583,
285,
1677,
28432,
18,
225,
632,
891,
7211,
2653,
632,
891,
324,
617,
326,
1544,
434,
326,
1542,
358,
2405,
3536,
7211,
273,
341,
961,
67,
4923,
12,
2370,
13,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
8775,
15565,
67,
11515,
67,
7135,
273,
25581,
2139,
3666,
2941,
18,
588,
11589,
15565,
2668,
6309,
473,
4521,
31,
411,
69,
667,
1546,
11589,
15565,
6,
3897,
11613,
87,
19,
3666,
19,
70,
495,
2139,
19,
70,
495,
2139,
3666,
18,
2074,
19,
2844,
67,
11962,
67,
12633,
35,
2370,
5095,
87,
24038,
87,
1757,
69,
1870,
6309,
738,
261,
1425,
18,
19727,
67,
20609,
67,
1785,
16,
7211,
269,
389,
2932,
21258,
3633,
2748,
2323,
6,
20349,
225,
775,
30,
4555,
273,
31652,
12,
3658,
13,
1335,
13485,
1966,
18,
668,
16,
425,
30,
327,
555,
67,
2433,
12,
3658,
13,
225,
261,
1944,
67,
710,
16,
1357,
67,
3576,
13,
273,
866,
67,
1355,
12,
3658,
16,
296,
7066,
70,
495,
2139,
6134,
309,
486,
1357,
67,
710,
30,
324,
617,
273,
341,
961,
67,
718,
67,
3446,
12,
70,
617,
16,
296,
701,
6134,
225,
309,
486,
25581,
2139,
3666,
2941,
18,
4169,
67,
896,
67,
2844,
67,
2139,
12,
70,
617,
4672,
468,
2279,
855,
4132,
327,
1363,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
2139,
67,
4500,
67,
4350,
12,
3658,
16,
324,
617,
16,
7211,
33,
1425,
18,
19727,
67,
20609,
67,
10571,
4672,
3536,
3460,
364,
876,
740,
1257,
471,
3044,
583,
285,
1677,
28432,
18,
225,
632,
891,
7211,
2653,
632,
891,
324,
617,
326,
1544,
434,
326,
1542,
358,
2405,
3536,
7211,
273,
341,
961,
67,
4923,
12,
2370,
13,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
8775,
15565,
67,
11515,
67,
7135,
273,
25581,
2139,
3666,
2941,
18,
588,
11589,
15565,
2668,
6309,
473,
4521,
31,
411,
69,
667,
1546,
11589,
15565,
6,
3897,
11613,
87,
19,
3666,
19,
70,
495,
2139,
19,
70,
495,
2139,
3666,
18,
2074,
19,
2844,
67,
2
] |
"compiler=%s yield "<tr><td>Uname:</td><td>%s</td></tr>" % uname yield "<tr><td>Tree:</td><td>%s</td></tr>" % tree_link(myself, tree) yield "<tr><td>Build Revision:</td><td>%s</td></tr>" % revision_link(myself, revision, tree) yield "<tr><td>Build age:</td><td><div class='age'>%s</div></td></tr>" % red_age(age_mtime) yield "<tr><td>Status:</td><td>%s</td></tr>" % status yield "<tr><td>Compiler:</td><td>%s</td></tr>" % compiler yield "<tr><td>CFLAGS:</td><td>%s</td></tr>" % cflags yield "<tr><td>configure options:</td><td>%s</td></tr>" % config
|
"compiler=%s yield "<tr><td>Uname:</td><td>%s</td></tr>\n" % uname yield "<tr><td>Tree:</td><td>%s</td></tr>\n" % tree_link(myself, tree) yield "<tr><td>Build Revision:</td><td>%s</td></tr>\n" % revision_link(myself, revision, tree) yield "<tr><td>Build age:</td><td><div class='age'>%s</div></td></tr>\n" % red_age(age_mtime) yield "<tr><td>Status:</td><td>%s</td></tr>\n" % status yield "<tr><td>Compiler:</td><td>%s</td></tr>\n" % compiler yield "<tr><td>CFLAGS:</td><td>%s</td></tr>\n" % cflags yield "<tr><td>configure options:</td><td>%s</td></tr>\n" % config yield "</table>\n"
|
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = "" cflags = "" config = "" build = db.get_build(tree, host, compiler, rev) age_mtime = build.age_mtime() (revision, revision_time) = build.revision_details() status = build_status(myself, tree, host, compiler, rev) if rev: assert re.match("^[0-9a-fA-F]*$", rev) log = build.read_log() err = build.read_err() if log: log = cgi.escape(log) m = re.search("(.*)", log) if m: uname = m.group(1) m = re.search("CFLAGS=(.*)", log) if m: cflags = m.group(1) m = re.search("configure options: (.*)", log) if m: config = m.group(1) if err: err = cgi.escape(err) yield '<h2>Host information:</h2>' host_web_file = "../web/%s.html" % host if os.path.exists(host_web_file): yield util.FileLoad(host_web_file) yield "<table class='real'>" yield "<tr><td>Host:</td><td><a href='%s?function=View+Host;host=%s;tree=%s;"\ "compiler=%s#'>%s</a> - %s</td></tr>" % (myself, host, tree, compiler, host, hosts[host]) yield "<tr><td>Uname:</td><td>%s</td></tr>" % uname yield "<tr><td>Tree:</td><td>%s</td></tr>" % tree_link(myself, tree) yield "<tr><td>Build Revision:</td><td>%s</td></tr>" % revision_link(myself, revision, tree) yield "<tr><td>Build age:</td><td><div class='age'>%s</div></td></tr>" % red_age(age_mtime) yield "<tr><td>Status:</td><td>%s</td></tr>" % status yield "<tr><td>Compiler:</td><td>%s</td></tr>" % compiler yield "<tr><td>CFLAGS:</td><td>%s</td></tr>" % cflags yield "<tr><td>configure options:</td><td>%s</td></tr>" % config yield "".join(show_oldrevs(myself, tree, host, compiler)) # check the head of the output for our magic string rev_var = "" if rev: rev_var = ";revision=%s" % rev yield "<div id='log'>" if not plain_logs: yield "<p>Switch to the <a href='%s?function=View+Build;host=%s;tree=%s"\ ";compiler=%s%s;plain=true' title='Switch to bland, non-javascript,"\ " unstyled view'>Plain View</a></p>" % (myself, host, tree, compiler, rev_var) yield "<div id='actionList'>" # These can be pretty wide -- perhaps we need to # allow them to wrap in some way? if err == "": yield "<h2>No error log available</h2>" else: yield "<h2>Error log:</h2>" yield make_collapsible_html('action', "Error Output", "\n%s" % err, "stderr-0") if log == "": yield "<h2>No build log available</h2>" else: yield "<h2>Build log:</h2>" yield print_log_pretty(log) yield "<p><small>Some of the above icons derived from the <a href='http://www.gnome.org'>Gnome Project</a>'s stock icons.</small></p>" yield "</div>" else: yield "<p>Switch to the <a href='%s?function=View+Build;host=%s;tree=%s;"\ "compiler=%s%s' title='Switch to colourful, javascript-enabled, styled"\ " view'>Enhanced View</a></p>" % (myself, host, tree, compiler, rev_var) if err == "": yield "<h2>No error log available</h2>" else: yield '<h2>Error log:</h2>' yield '<div id="errorLog"><pre>%s</pre></div>' % err if log == "": yield '<h2>No build log available</h2>' else: yield '<h2>Build log:</h2>' yield '<div id="buildLog"><pre>%s</pre></div>' % log yield '</div>'
|
aded61733b040c3e2918f7cb5990b12cebe2244e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/aded61733b040c3e2918f7cb5990b12cebe2244e/build.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
3510,
12,
4811,
2890,
16,
2151,
16,
1479,
16,
5274,
16,
5588,
16,
7351,
67,
10011,
33,
8381,
4672,
3536,
1945,
1245,
1361,
316,
7664,
8395,
468,
3387,
326,
859,
854,
923,
1865,
1450,
2182,
1815,
1479,
316,
7206,
16,
315,
8172,
1479,
738,
87,
6,
738,
1479,
1815,
5274,
316,
1161,
330,
414,
16,
315,
8172,
5274,
738,
87,
6,
738,
5274,
1815,
2151,
316,
11491,
16,
315,
902,
279,
1361,
2151,
738,
87,
6,
738,
2151,
225,
31444,
273,
1408,
276,
7133,
273,
1408,
642,
273,
1408,
1361,
273,
1319,
18,
588,
67,
3510,
12,
3413,
16,
1479,
16,
5274,
16,
5588,
13,
9388,
67,
10838,
273,
1361,
18,
410,
67,
10838,
1435,
261,
13057,
16,
6350,
67,
957,
13,
273,
1361,
18,
13057,
67,
6395,
1435,
1267,
273,
1361,
67,
2327,
12,
4811,
2890,
16,
2151,
16,
1479,
16,
5274,
16,
5588,
13,
225,
309,
5588,
30,
1815,
283,
18,
1916,
2932,
66,
63,
20,
17,
29,
69,
17,
29534,
17,
42,
5772,
8,
3113,
5588,
13,
225,
613,
273,
1361,
18,
896,
67,
1330,
1435,
393,
273,
1361,
18,
896,
67,
370,
1435,
225,
309,
613,
30,
613,
273,
276,
10052,
18,
6939,
12,
1330,
13,
225,
312,
273,
283,
18,
3072,
2932,
7444,
2225,
16,
613,
13,
309,
312,
30,
31444,
273,
312,
18,
1655,
12,
21,
13,
312,
273,
283,
18,
3072,
2932,
8955,
6552,
55,
33,
7444,
2225,
16,
613,
13,
309,
312,
30,
276,
7133,
273,
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,
1476,
67,
3510,
12,
4811,
2890,
16,
2151,
16,
1479,
16,
5274,
16,
5588,
16,
7351,
67,
10011,
33,
8381,
4672,
3536,
1945,
1245,
1361,
316,
7664,
8395,
468,
3387,
326,
859,
854,
923,
1865,
1450,
2182,
1815,
1479,
316,
7206,
16,
315,
8172,
1479,
738,
87,
6,
738,
1479,
1815,
5274,
316,
1161,
330,
414,
16,
315,
8172,
5274,
738,
87,
6,
738,
5274,
1815,
2151,
316,
11491,
16,
315,
902,
279,
1361,
2151,
738,
87,
6,
738,
2151,
225,
31444,
273,
1408,
276,
7133,
273,
1408,
642,
273,
1408,
1361,
273,
1319,
18,
588,
67,
3510,
12,
3413,
16,
1479,
16,
5274,
16,
5588,
13,
9388,
67,
10838,
273,
1361,
18,
410,
67,
10838,
1435,
261,
2
] |
print ''.join(self.channel().split()) + '.exe' time.sleep(10)
|
def final_exe(self): if self.default_channel(): if self.default_grid(): return "Meerkat.exe" else: return "MeerkatPreview.exe" else: print ''.join(self.channel().split()) + '.exe' time.sleep(10) return ''.join(self.channel().split()) + '.exe'
|
58e42b6f045a077671622d34a513327c7ff60c8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4269/58e42b6f045a077671622d34a513327c7ff60c8b/viewer_manifest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
727,
67,
14880,
12,
2890,
4672,
309,
365,
18,
1886,
67,
4327,
13332,
309,
365,
18,
1886,
67,
5222,
13332,
327,
315,
4667,
264,
79,
270,
18,
14880,
6,
469,
30,
327,
315,
4667,
264,
79,
270,
11124,
18,
14880,
6,
469,
30,
327,
875,
18,
5701,
12,
2890,
18,
4327,
7675,
4939,
10756,
397,
2418,
14880,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
727,
67,
14880,
12,
2890,
4672,
309,
365,
18,
1886,
67,
4327,
13332,
309,
365,
18,
1886,
67,
5222,
13332,
327,
315,
4667,
264,
79,
270,
18,
14880,
6,
469,
30,
327,
315,
4667,
264,
79,
270,
11124,
18,
14880,
6,
469,
30,
327,
875,
18,
5701,
12,
2890,
18,
4327,
7675,
4939,
10756,
397,
2418,
14880,
11,
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
] |
|
lens = PerspectiveLens() lens.setAspectRatio(aspectRatio)
|
if lens == None: lens = PerspectiveLens() if aspectRatio == None: aspectRatio = self.getAspectRatio(win) lens.setAspectRatio(aspectRatio)
|
def makeCamera(self, win, sort = 0, scene = None, displayRegion = (0, 1, 0, 1), aspectRatio = None, camName = 'cam'): """ Makes a new 3-d camera associated with the indicated window, and creates a display region in the indicated subrectangle. """ dr = win.makeDisplayRegion(*displayRegion) dr.setSort(sort)
|
372dc514088cc23d9a3ce88cac0c0fcc65c6d5ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/372dc514088cc23d9a3ce88cac0c0fcc65c6d5ef/ShowBase.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
16521,
12,
2890,
16,
5657,
16,
1524,
273,
374,
16,
9065,
273,
599,
16,
2562,
5165,
273,
261,
20,
16,
404,
16,
374,
16,
404,
3631,
9648,
8541,
273,
599,
16,
5861,
461,
273,
296,
20133,
11,
4672,
3536,
490,
3223,
279,
394,
890,
17,
72,
10836,
3627,
598,
326,
17710,
2742,
16,
471,
3414,
279,
2562,
3020,
316,
326,
17710,
720,
2607,
4341,
18,
3536,
5081,
273,
5657,
18,
6540,
4236,
5165,
30857,
5417,
5165,
13,
5081,
18,
542,
4416,
12,
3804,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
16521,
12,
2890,
16,
5657,
16,
1524,
273,
374,
16,
9065,
273,
599,
16,
2562,
5165,
273,
261,
20,
16,
404,
16,
374,
16,
404,
3631,
9648,
8541,
273,
599,
16,
5861,
461,
273,
296,
20133,
11,
4672,
3536,
490,
3223,
279,
394,
890,
17,
72,
10836,
3627,
598,
326,
17710,
2742,
16,
471,
3414,
279,
2562,
3020,
316,
326,
17710,
720,
2607,
4341,
18,
3536,
5081,
273,
5657,
18,
6540,
4236,
5165,
30857,
5417,
5165,
13,
5081,
18,
542,
4416,
12,
3804,
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
] |
else:
|
elif mode == 'color':
|
def applyMode(self, mode): if mode == 'off': self.stop() else: self.start() if mode == 'video': if not self.grabbing: self.grabbing = True self.pyambx.startGrabber() else: if self.grabbing: self.grabbing = False self.pyambx.stopGrabber() self.pyambx.setLight(self.color) self.mode = mode
|
7e09713aeb4628a10d124570d94259cd339d4cf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10972/7e09713aeb4628a10d124570d94259cd339d4cf3/plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
2309,
12,
2890,
16,
1965,
4672,
309,
1965,
422,
296,
3674,
4278,
365,
18,
5681,
1435,
1327,
1965,
422,
296,
3266,
4278,
365,
18,
1937,
1435,
309,
1965,
422,
296,
9115,
4278,
309,
486,
365,
18,
2752,
9897,
310,
30,
365,
18,
2752,
9897,
310,
273,
1053,
365,
18,
2074,
2536,
92,
18,
1937,
14571,
23709,
1435,
1327,
1965,
422,
296,
3266,
4278,
309,
365,
18,
2752,
9897,
310,
30,
365,
18,
2752,
9897,
310,
273,
1083,
365,
18,
2074,
2536,
92,
18,
5681,
14571,
23709,
1435,
365,
18,
2074,
2536,
92,
18,
542,
12128,
12,
2890,
18,
3266,
13,
365,
18,
3188,
273,
1965,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
2309,
12,
2890,
16,
1965,
4672,
309,
1965,
422,
296,
3674,
4278,
365,
18,
5681,
1435,
1327,
1965,
422,
296,
3266,
4278,
365,
18,
1937,
1435,
309,
1965,
422,
296,
9115,
4278,
309,
486,
365,
18,
2752,
9897,
310,
30,
365,
18,
2752,
9897,
310,
273,
1053,
365,
18,
2074,
2536,
92,
18,
1937,
14571,
23709,
1435,
1327,
1965,
422,
296,
3266,
4278,
309,
365,
18,
2752,
9897,
310,
30,
365,
18,
2752,
9897,
310,
273,
1083,
365,
18,
2074,
2536,
92,
18,
5681,
14571,
23709,
1435,
365,
18,
2074,
2536,
92,
18,
542,
12128,
12,
2890,
18,
3266,
13,
365,
18,
3188,
273,
1965,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
child_cleanup_cases = '\n'.join([ ''' case %s: { %sChild** child = reinterpret_cast<%sChild**>(&gChildActor); delete *child; *child = 0; return; } '''% (t, t, t) for t in unittests ])
|
def main(argv): template = argv[1] unittests = argv[2:] includes = '\n'.join([ '#include "%s.h"'% (t) for t in unittests ]) enum_values = '\n'.join([ ' %s,'% (t) for t in unittests ]) last_enum = unittests[-1] string_to_enums = '\n'.join([ ''' else if (!strcmp(aString, "%s")) return %s;'''% (t, t) for t in unittests ]) enum_to_strings = '\n'.join([ ''' case %s: return "%s";'''%(t, t) for t in unittests ]) parent_main_cases = '\n'.join([
|
99a813ce664dafa9d339c0fc542797d516a9d0aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/99a813ce664dafa9d339c0fc542797d516a9d0aa/genIPDLUnitTests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
1542,
273,
5261,
63,
21,
65,
2836,
16341,
273,
5261,
63,
22,
26894,
225,
6104,
273,
2337,
82,
10332,
5701,
3816,
2946,
6702,
2213,
87,
18,
76,
5187,
9,
261,
88,
13,
364,
268,
316,
2836,
16341,
308,
13,
282,
2792,
67,
2372,
273,
2337,
82,
10332,
5701,
3816,
296,
565,
738,
87,
11189,
9,
261,
88,
13,
364,
268,
316,
2836,
16341,
308,
13,
1142,
67,
7924,
273,
2836,
16341,
18919,
21,
65,
282,
533,
67,
869,
67,
7924,
87,
273,
2337,
82,
10332,
5701,
3816,
9163,
565,
469,
309,
16051,
701,
9625,
12,
69,
780,
16,
2213,
87,
6,
3719,
327,
738,
87,
4359,
6309,
9,
261,
88,
16,
268,
13,
364,
268,
316,
2836,
16341,
308,
13,
225,
2792,
67,
869,
67,
10219,
273,
2337,
82,
10332,
5701,
3816,
9163,
565,
648,
738,
87,
30,
327,
2213,
87,
6,
4359,
6309,
17105,
88,
16,
268,
13,
364,
268,
316,
2836,
16341,
308,
13,
282,
982,
67,
5254,
67,
22186,
273,
2337,
82,
10332,
5701,
3816,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
1542,
273,
5261,
63,
21,
65,
2836,
16341,
273,
5261,
63,
22,
26894,
225,
6104,
273,
2337,
82,
10332,
5701,
3816,
2946,
6702,
2213,
87,
18,
76,
5187,
9,
261,
88,
13,
364,
268,
316,
2836,
16341,
308,
13,
282,
2792,
67,
2372,
273,
2337,
82,
10332,
5701,
3816,
296,
565,
738,
87,
11189,
9,
261,
88,
13,
364,
268,
316,
2836,
16341,
308,
13,
1142,
67,
7924,
273,
2836,
16341,
18919,
21,
65,
282,
533,
67,
869,
67,
7924,
87,
273,
2337,
82,
10332,
5701,
3816,
9163,
565,
469,
309,
16051,
701,
9625,
12,
69,
780,
16,
2213,
87,
6,
3719,
327,
738,
87,
4359,
6309,
9,
261,
88,
16,
268,
13,
364,
2
] |
|
self.endTagTableRowGroup(self.parser.openElements[-1])
|
self.endTagTableRowGroup(self.parser.openElements[-1].name) self.parser.processStartTag(name, attributes)
|
def startTagTableOther(self, name, attributes): # XXX AT Any ideas on how to share this with endTagTable? if self.elementInScope("tbody", True) or \ self.elementInScope("thead", True) or \ self.elementInScope("tfoot", True): self.clearStackToTableBodyContext() self.endTagTableRowGroup(self.parser.openElements[-1]) else: # innerHTML case self.parser.parseError()
|
028672b6bd90fb4eb6a4abd1ad4a9dafa4b792e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/028672b6bd90fb4eb6a4abd1ad4a9dafa4b792e3/parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1388,
8290,
12,
2890,
16,
508,
16,
1677,
4672,
468,
11329,
14464,
5502,
10572,
345,
603,
3661,
358,
7433,
333,
598,
29765,
1388,
35,
309,
365,
18,
2956,
382,
3876,
2932,
20779,
3113,
1053,
13,
578,
521,
365,
18,
2956,
382,
3876,
2932,
24604,
3113,
1053,
13,
578,
521,
365,
18,
2956,
382,
3876,
2932,
88,
10923,
3113,
1053,
4672,
365,
18,
8507,
2624,
774,
1388,
2250,
1042,
1435,
365,
18,
409,
1805,
30650,
1114,
12,
2890,
18,
4288,
18,
3190,
3471,
18919,
21,
8009,
529,
13,
365,
18,
4288,
18,
2567,
30512,
12,
529,
16,
1677,
13,
469,
30,
468,
14129,
648,
365,
18,
4288,
18,
2670,
668,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
787,
1805,
1388,
8290,
12,
2890,
16,
508,
16,
1677,
4672,
468,
11329,
14464,
5502,
10572,
345,
603,
3661,
358,
7433,
333,
598,
29765,
1388,
35,
309,
365,
18,
2956,
382,
3876,
2932,
20779,
3113,
1053,
13,
578,
521,
365,
18,
2956,
382,
3876,
2932,
24604,
3113,
1053,
13,
578,
521,
365,
18,
2956,
382,
3876,
2932,
88,
10923,
3113,
1053,
4672,
365,
18,
8507,
2624,
774,
1388,
2250,
1042,
1435,
365,
18,
409,
1805,
30650,
1114,
12,
2890,
18,
4288,
18,
3190,
3471,
18919,
21,
8009,
529,
13,
365,
18,
4288,
18,
2567,
30512,
12,
529,
16,
1677,
13,
469,
30,
468,
14129,
648,
365,
18,
4288,
18,
2670,
668,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
def testCvsReapperedDirectoryToSubversion(self):
|
def testCvsReappearedDirectoryToSubversion(self):
|
def testCvsReapperedDirectoryToSubversion(self): """Test that we can handle resurrected cvs directory to svn."""
|
cefc0bfaa697b9105e4b4f56cc4cc0a4eb9b3a4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/cefc0bfaa697b9105e4b4f56cc4cc0a4eb9b3a4f/tailor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
39,
6904,
426,
438,
347,
2258,
2853,
774,
1676,
1589,
12,
2890,
4672,
3536,
4709,
716,
732,
848,
1640,
400,
295,
2607,
329,
276,
6904,
1867,
358,
5893,
82,
12123,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
39,
6904,
426,
438,
347,
2258,
2853,
774,
1676,
1589,
12,
2890,
4672,
3536,
4709,
716,
732,
848,
1640,
400,
295,
2607,
329,
276,
6904,
1867,
358,
5893,
82,
12123,
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
] |
self.stepId = Utils.AddToolButtonBmpIS(self, self.toolbar,
|
self.stepId = Utils.AddToolButtonBmpIS(self, self.toolbar,
|
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
|
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,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2110,
273,
599,
4672,
324,
1966,
18,
38,
1966,
16186,
2738,
972,
12,
2890,
13,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
938,
18,
9177,
16,
300,
21,
16,
296,
24113,
300,
738,
87,
300,
738,
87,
11,
521,
738,
261,
803,
18,
13909,
12,
2284,
18,
3459,
3631,
938,
18,
3459,
3631,
7075,
2148,
12,
20,
16,
28310,
18,
26474,
2686,
3631,
7075,
1225,
12,
12377,
18,
267,
1752,
2384,
16,
28310,
18,
9176,
2686,
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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,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2110,
273,
599,
4672,
324,
1966,
18,
38,
1966,
16186,
2738,
972,
12,
2890,
13,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
938,
18,
9177,
16,
300,
21,
16,
296,
24113,
300,
738,
87,
300,
738,
87,
11,
521,
738,
261,
803,
18,
13909,
12,
2284,
18,
3459,
3631,
938,
18,
3459,
3631,
7075,
2148,
12,
20,
16,
28310,
18,
26474,
2686,
3631,
7075,
1225,
12,
12377,
18,
267,
1752,
2384,
16,
28310,
18,
9176,
2686,
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
] |
"""
|
r"""
|
def strip_answer(self, s): """ Returns the string s with Matlab's answer prompt removed.
|
158cf0a8ce2e4bbf3ba05e93b02a4f869f056e7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/158cf0a8ce2e4bbf3ba05e93b02a4f869f056e7e/matlab.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
13490,
12,
2890,
16,
272,
4672,
436,
8395,
2860,
326,
533,
272,
598,
14493,
7411,
1807,
5803,
6866,
3723,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
13490,
12,
2890,
16,
272,
4672,
436,
8395,
2860,
326,
533,
272,
598,
14493,
7411,
1807,
5803,
6866,
3723,
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
] |
self.assert_(groups[4] == hostname,
|
self.assertEqual(groups[4], hostname,
|
def test_create_tmp(self, repetitions=10): # Create files in tmp directory hostname = socket.gethostname() if '/' in hostname: hostname = hostname.replace('/', r'\057') if ':' in hostname: hostname = hostname.replace(':', r'\072') pid = os.getpid() pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)" r"Q(?P<Q>\d+)\.(?P<host>[^:/]+)") previous_groups = None for x in range(repetitions): tmp_file = self._box._create_tmp() head, tail = os.path.split(tmp_file.name) self.assertEqual(head, os.path.abspath(os.path.join(self._path, "tmp")), "File in wrong location: '%s'" % head) match = pattern.match(tail) self.assert_(match != None, "Invalid file name: '%s'" % tail) groups = match.groups() if previous_groups != None: self.assert_(int(groups[0] >= previous_groups[0]), "Non-monotonic seconds: '%s' before '%s'" % (previous_groups[0], groups[0])) self.assert_(int(groups[1] >= previous_groups[1]) or groups[0] != groups[1], "Non-monotonic milliseconds: '%s' before '%s'" % (previous_groups[1], groups[1])) self.assert_(int(groups[2]) == pid, "Process ID mismatch: '%s' should be '%s'" % (groups[2], pid)) self.assertEqual(int(groups[3]), int(previous_groups[3]) + 1, "Non-sequential counter: '%s' before '%s'" % (previous_groups[3], groups[3])) self.assert_(groups[4] == hostname, "Host name mismatch: '%s' should be '%s'" % (groups[4], hostname)) previous_groups = groups tmp_file.write(_sample_message) tmp_file.seek(0) self.assertEqual(tmp_file.read(), _sample_message) tmp_file.close() file_count = len(os.listdir(os.path.join(self._path, "tmp"))) self.assert_(file_count == repetitions, "Wrong file count: '%s' should be '%s'" % (file_count, repetitions))
|
9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2640,
67,
5645,
12,
2890,
16,
22265,
5029,
33,
2163,
4672,
468,
1788,
1390,
316,
1853,
1867,
5199,
273,
2987,
18,
75,
546,
669,
529,
1435,
309,
2023,
316,
5199,
30,
5199,
273,
5199,
18,
2079,
2668,
19,
2187,
436,
8314,
6260,
27,
6134,
309,
3921,
316,
5199,
30,
5199,
273,
5199,
18,
2079,
2668,
30,
2187,
436,
8314,
8642,
22,
6134,
4231,
273,
1140,
18,
588,
6610,
1435,
1936,
273,
283,
18,
11100,
12,
86,
6,
3680,
52,
32,
957,
5333,
72,
14456,
18,
49,
3680,
52,
32,
49,
5333,
72,
95,
21,
16,
26,
6792,
52,
3680,
52,
32,
52,
5333,
72,
15,
2225,
436,
6,
53,
3680,
52,
32,
53,
5333,
72,
14456,
18,
3680,
52,
32,
2564,
34,
5969,
27824,
3737,
2225,
13,
2416,
67,
4650,
273,
599,
364,
619,
316,
1048,
12,
266,
6951,
5029,
4672,
1853,
67,
768,
273,
365,
6315,
2147,
6315,
2640,
67,
5645,
1435,
910,
16,
5798,
273,
1140,
18,
803,
18,
4939,
12,
5645,
67,
768,
18,
529,
13,
365,
18,
11231,
5812,
12,
1978,
16,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
6315,
803,
16,
315,
5645,
7923,
3631,
315,
812,
316,
7194,
2117,
30,
1995,
87,
4970,
738,
910,
13,
845,
273,
1936,
18,
1916,
12,
13101,
13,
365,
18,
11231,
67,
12,
1916,
480,
599,
16,
315,
1941,
585,
508,
30,
1995,
87,
4970,
738,
5798,
13,
3252,
273,
845,
18,
4650,
1435,
309,
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,
2640,
67,
5645,
12,
2890,
16,
22265,
5029,
33,
2163,
4672,
468,
1788,
1390,
316,
1853,
1867,
5199,
273,
2987,
18,
75,
546,
669,
529,
1435,
309,
2023,
316,
5199,
30,
5199,
273,
5199,
18,
2079,
2668,
19,
2187,
436,
8314,
6260,
27,
6134,
309,
3921,
316,
5199,
30,
5199,
273,
5199,
18,
2079,
2668,
30,
2187,
436,
8314,
8642,
22,
6134,
4231,
273,
1140,
18,
588,
6610,
1435,
1936,
273,
283,
18,
11100,
12,
86,
6,
3680,
52,
32,
957,
5333,
72,
14456,
18,
49,
3680,
52,
32,
49,
5333,
72,
95,
21,
16,
26,
6792,
52,
3680,
52,
32,
52,
5333,
72,
15,
2225,
436,
6,
53,
3680,
52,
32,
53,
5333,
72,
14456,
2
] |
return self.links
|
return self.history
|
def getHistory(self, force=False): if self.history and not force: return self.links if self.pageid == 0 and not self.title: self.setPageInfo() if not self.exists: raise NoPage params = { 'action': 'query', 'prop': 'imageinfo', 'iilimit': self.site.limit, } if self.pageid > 0: params['pageids'] = self.pageid else: params['titles'] = self.title req = api.APIRequest(self.site, params) response = req.query() self.history = response['query']['pages'][str(self.pageid)]['imageinfo'] return self.history
|
b36d4512fbe442cb21cbba571910d58da8257cff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10544/b36d4512fbe442cb21cbba571910d58da8257cff/wikifile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5623,
12,
2890,
16,
2944,
33,
8381,
4672,
309,
365,
18,
8189,
471,
486,
2944,
30,
327,
365,
18,
8189,
309,
365,
18,
30974,
422,
374,
471,
486,
365,
18,
2649,
30,
365,
18,
542,
1964,
966,
1435,
309,
486,
365,
18,
1808,
30,
1002,
2631,
1964,
859,
273,
288,
296,
1128,
4278,
296,
2271,
2187,
296,
5986,
4278,
296,
2730,
1376,
2187,
296,
77,
330,
1038,
4278,
365,
18,
4256,
18,
3595,
16,
289,
309,
365,
18,
30974,
405,
374,
30,
859,
3292,
2433,
2232,
3546,
273,
365,
18,
30974,
469,
30,
859,
3292,
17643,
3546,
273,
365,
18,
2649,
1111,
273,
1536,
18,
2557,
691,
12,
2890,
18,
4256,
16,
859,
13,
766,
273,
1111,
18,
2271,
1435,
365,
18,
8189,
273,
766,
3292,
2271,
21712,
7267,
3546,
63,
701,
12,
2890,
18,
30974,
13,
23962,
2730,
1376,
3546,
327,
365,
18,
8189,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
5623,
12,
2890,
16,
2944,
33,
8381,
4672,
309,
365,
18,
8189,
471,
486,
2944,
30,
327,
365,
18,
8189,
309,
365,
18,
30974,
422,
374,
471,
486,
365,
18,
2649,
30,
365,
18,
542,
1964,
966,
1435,
309,
486,
365,
18,
1808,
30,
1002,
2631,
1964,
859,
273,
288,
296,
1128,
4278,
296,
2271,
2187,
296,
5986,
4278,
296,
2730,
1376,
2187,
296,
77,
330,
1038,
4278,
365,
18,
4256,
18,
3595,
16,
289,
309,
365,
18,
30974,
405,
374,
30,
859,
3292,
2433,
2232,
3546,
273,
365,
18,
30974,
469,
30,
859,
3292,
17643,
3546,
273,
365,
18,
2649,
1111,
273,
1536,
18,
2557,
691,
12,
2890,
18,
4256,
16,
859,
13,
766,
273,
1111,
2
] |
self.body.append ('\n' + hilite_code + '\n')
|
self.out.append ('\n' + hilite_code + '\n')
|
def visit_codeblock (self, node): # was langauge argument defined on node? lang = node.get ('language', None) # otherwise, was it defined in node classes? if (lang is None): lang = node_lang_class (node) # otherwise, use commandline argument or default if lang is None: lang = self.cb_default_lang # replace tabs if required srccode = node.rawsource if (self.cb_replace_tabs): srccode = '\n'.join (adjust_indent_spaces (x, new_width=self.cb_replace_tabs) for x in srccode.split ('\n')) # hilight the code hilite_code = highlight_code (srccode, lang) self.body.append ('\n' + hilite_code + '\n') raise nodes.SkipNode
|
37db8ffa549b63ebad9bbc3310aeafe2a276f03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/37db8ffa549b63ebad9bbc3310aeafe2a276f03b/rst2beamer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
710,
2629,
261,
2890,
16,
756,
4672,
468,
1703,
3303,
8305,
1237,
2553,
603,
756,
35,
3303,
273,
225,
756,
18,
588,
7707,
4923,
2187,
599,
13,
468,
3541,
16,
1703,
518,
2553,
316,
756,
3318,
35,
309,
261,
4936,
353,
599,
4672,
3303,
273,
756,
67,
4936,
67,
1106,
261,
2159,
13,
468,
3541,
16,
999,
28305,
1237,
578,
805,
309,
3303,
353,
599,
30,
3303,
273,
365,
18,
7358,
67,
1886,
67,
4936,
468,
1453,
10920,
309,
1931,
1705,
710,
273,
756,
18,
1899,
3168,
309,
261,
2890,
18,
7358,
67,
2079,
67,
16056,
4672,
1705,
710,
273,
2337,
82,
10332,
5701,
261,
13362,
67,
9355,
67,
9554,
261,
92,
16,
394,
67,
2819,
33,
2890,
18,
7358,
67,
2079,
67,
16056,
13,
364,
619,
316,
1705,
710,
18,
4939,
7707,
64,
82,
26112,
468,
366,
330,
750,
326,
981,
366,
330,
1137,
67,
710,
273,
8839,
67,
710,
261,
4816,
710,
16,
3303,
13,
365,
18,
659,
18,
6923,
7707,
64,
82,
11,
397,
366,
330,
1137,
67,
710,
397,
2337,
82,
6134,
1002,
2199,
18,
6368,
907,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
710,
2629,
261,
2890,
16,
756,
4672,
468,
1703,
3303,
8305,
1237,
2553,
603,
756,
35,
3303,
273,
225,
756,
18,
588,
7707,
4923,
2187,
599,
13,
468,
3541,
16,
1703,
518,
2553,
316,
756,
3318,
35,
309,
261,
4936,
353,
599,
4672,
3303,
273,
756,
67,
4936,
67,
1106,
261,
2159,
13,
468,
3541,
16,
999,
28305,
1237,
578,
805,
309,
3303,
353,
599,
30,
3303,
273,
365,
18,
7358,
67,
1886,
67,
4936,
468,
1453,
10920,
309,
1931,
1705,
710,
273,
756,
18,
1899,
3168,
309,
261,
2890,
18,
7358,
67,
2079,
67,
16056,
4672,
1705,
710,
273,
2337,
82,
10332,
5701,
261,
13362,
67,
9355,
67,
9554,
261,
92,
16,
394,
67,
2819,
2
] |
val = config.getOption(conf.cfg, repo.id, name, default,
|
val = config.getOption(repo.cfg, repo.id, name, default,
|
def parseopts(self, conf, repos): '''Parse any configuration options registered by plugins
|
a2bd464287967874a66a7f691d7c933f93584e01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/a2bd464287967874a66a7f691d7c933f93584e01/plugins.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4952,
12,
2890,
16,
2195,
16,
13686,
4672,
9163,
3201,
1281,
1664,
702,
4104,
635,
4799,
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,
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1281,
1664,
702,
4104,
635,
4799,
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
] |
for ext, cmd in ARCHIVE_FORMATS:
|
for ext, unpackerClass, arg in ARCHIVE_FORMATS:
|
def installPackageOnly(self, output=None): """Install a single source package. If output is given it should be a file-like object and it will receive a log of what happened.""" print 'PimpPackage_binary installPackageOnly' msgs = [] if self._dict.has_key('Pre-install-command'): msg.append("%s: Pre-install-command ignored" % self.fullname()) if self._dict.has_key('Install-command'): msgs.append("%s: Install-command ignored" % self.fullname()) if self._dict.has_key('Post-install-command'): msgs.append("%s: Post-install-command ignored" % self.fullname()) self.beforeInstall()
|
f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
3386,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
6410,
279,
2202,
1084,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
903,
6798,
279,
613,
434,
4121,
17497,
12123,
1172,
296,
52,
14532,
2261,
67,
8578,
3799,
2261,
3386,
11,
225,
8733,
273,
5378,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
1386,
17,
5425,
17,
3076,
11,
4672,
1234,
18,
6923,
27188,
87,
30,
2962,
17,
5425,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
6410,
17,
3076,
11,
4672,
8733,
18,
6923,
27188,
87,
30,
10284,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
3349,
17,
5425,
17,
3076,
11,
4672,
8733,
18,
6923,
27188,
87,
30,
5616,
17,
5425,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
225,
365,
18,
5771,
6410,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
3386,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
6410,
279,
2202,
1084,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
903,
6798,
279,
613,
434,
4121,
17497,
12123,
1172,
296,
52,
14532,
2261,
67,
8578,
3799,
2261,
3386,
11,
225,
8733,
273,
5378,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
1386,
17,
5425,
17,
3076,
11,
4672,
1234,
18,
6923,
27188,
87,
30,
2962,
17,
5425,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
6410,
17,
3076,
11,
4672,
8733,
18,
6923,
27188,
87,
30,
10284,
17,
3076,
5455,
6,
738,
365,
18,
21885,
2
] |
if not isinstance(other, _basebag): other = self._from_iterable(other)
|
def __ne__(self, other: Iterable): if not isinstance(other, _basebag): other = self._from_iterable(other) return not (self == other)
|
8205831eee3ac82f85d8aaf27e4ed7e9aceca84e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5397/8205831eee3ac82f85d8aaf27e4ed7e9aceca84e/collections_extended.py
|
[
1,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4644,
972,
12,
2890,
16,
1308,
30,
6725,
4672,
327,
486,
261,
2890,
422,
1308,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
str_list.append(" Uname %s\n" % rorpath.getuname() or ":")
|
str_list.append(" Uname %s\n" % (rorpath.getuname() or ":"))
|
def RORP2Record(rorpath): """From RORPath, return text record of file's metadata""" str_list = ["File %s\n" % quote_path(rorpath.get_indexpath())] # Store file type, e.g. "dev", "reg", or "sym", and type-specific data type = rorpath.gettype() if type is None: type = "None" str_list.append(" Type %s\n" % type) if type == "reg": str_list.append(" Size %s\n" % rorpath.getsize()) # If there is a resource fork, save it. if rorpath.has_resource_fork(): if not rorpath.get_resource_fork(): rf = "None" else: rf = binascii.hexlify(rorpath.get_resource_fork()) str_list.append(" ResourceFork %s\n" % (rf,)) # If there is Carbon data, save it. if rorpath.has_carbonfile(): if not rorpath.get_carbonfile(): cfile = "None" else: cfile = carbonfile2string(rorpath.get_carbonfile()) str_list.append(" CarbonFile %s\n" % (cfile,)) # If file is hardlinked, add that information if Globals.preserve_hardlinks: numlinks = rorpath.getnumlinks() if numlinks > 1: str_list.append(" NumHardLinks %s\n" % numlinks) str_list.append(" Inode %s\n" % rorpath.getinode()) str_list.append(" DeviceLoc %s\n" % rorpath.getdevloc()) elif type == "None": return "".join(str_list) elif type == "dir" or type == "sock" or type == "fifo": pass elif type == "sym": str_list.append(" SymData %s\n" % quote_path(rorpath.readlink())) elif type == "dev": major, minor = rorpath.getdevnums() if rorpath.isblkdev(): devchar = "b" else: assert rorpath.ischardev() devchar = "c" str_list.append(" DeviceNum %s %s %s\n" % (devchar, major, minor)) # Store time information if type != 'sym' and type != 'dev': str_list.append(" ModTime %s\n" % rorpath.getmtime()) # Add user, group, and permission information uid, gid = rorpath.getuidgid() str_list.append(" Uid %s\n" % uid) str_list.append(" Uname %s\n" % rorpath.getuname() or ":") str_list.append(" Gid %s\n" % gid) str_list.append(" Gname %s\n" % rorpath.getgname() or ":") str_list.append(" Permissions %s\n" % rorpath.getperms()) return "".join(str_list)
|
86c6f7396d11200b1f7e088c90cc05a2ef15ab0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/86c6f7396d11200b1f7e088c90cc05a2ef15ab0c/metadata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
534,
916,
52,
22,
2115,
12,
86,
280,
803,
4672,
3536,
1265,
534,
916,
743,
16,
327,
977,
1409,
434,
585,
1807,
1982,
8395,
609,
67,
1098,
273,
8247,
812,
738,
87,
64,
82,
6,
738,
3862,
67,
803,
12,
86,
280,
803,
18,
588,
67,
1615,
803,
10756,
65,
225,
468,
4994,
585,
618,
16,
425,
18,
75,
18,
315,
5206,
3113,
315,
1574,
3113,
578,
315,
8117,
3113,
471,
618,
17,
12524,
501,
618,
273,
436,
280,
803,
18,
588,
723,
1435,
309,
618,
353,
599,
30,
618,
273,
315,
7036,
6,
609,
67,
1098,
18,
6923,
2932,
225,
1412,
738,
87,
64,
82,
6,
738,
618,
13,
309,
618,
422,
315,
1574,
6877,
609,
67,
1098,
18,
6923,
2932,
225,
6321,
738,
87,
64,
82,
6,
738,
436,
280,
803,
18,
588,
1467,
10756,
225,
468,
971,
1915,
353,
279,
1058,
12515,
16,
1923,
518,
18,
309,
436,
280,
803,
18,
5332,
67,
3146,
67,
23335,
13332,
309,
486,
436,
280,
803,
18,
588,
67,
3146,
67,
23335,
13332,
9075,
273,
315,
7036,
6,
469,
30,
9075,
273,
28222,
18,
7118,
22451,
12,
86,
280,
803,
18,
588,
67,
3146,
67,
23335,
10756,
609,
67,
1098,
18,
6923,
2932,
225,
2591,
22662,
738,
87,
64,
82,
6,
738,
261,
5809,
16,
3719,
225,
468,
971,
1915,
353,
13353,
501,
16,
1923,
518,
18,
309,
436,
280,
803,
18,
5332,
67,
71,
11801,
768,
13332,
309,
486,
436,
280,
803,
18,
588,
67,
71,
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,
534,
916,
52,
22,
2115,
12,
86,
280,
803,
4672,
3536,
1265,
534,
916,
743,
16,
327,
977,
1409,
434,
585,
1807,
1982,
8395,
609,
67,
1098,
273,
8247,
812,
738,
87,
64,
82,
6,
738,
3862,
67,
803,
12,
86,
280,
803,
18,
588,
67,
1615,
803,
10756,
65,
225,
468,
4994,
585,
618,
16,
425,
18,
75,
18,
315,
5206,
3113,
315,
1574,
3113,
578,
315,
8117,
3113,
471,
618,
17,
12524,
501,
618,
273,
436,
280,
803,
18,
588,
723,
1435,
309,
618,
353,
599,
30,
618,
273,
315,
7036,
6,
609,
67,
1098,
18,
6923,
2932,
225,
1412,
738,
87,
64,
82,
6,
738,
618,
13,
309,
618,
422,
315,
1574,
6877,
609,
67,
2
] |
print self.equivs
|
def __init__(self, gcomprisBoard): # Save the gcomprisBoard, it defines everything we need # to know from the core self.gcomprisBoard = gcomprisBoard
|
688c17fe23a581d12f8605c8f929efd7a834f840 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11306/688c17fe23a581d12f8605c8f929efd7a834f840/hangman.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
4672,
468,
7074,
326,
314,
832,
683,
291,
22233,
16,
518,
11164,
7756,
732,
1608,
468,
358,
5055,
628,
326,
2922,
365,
18,
75,
832,
683,
291,
22233,
273,
314,
832,
683,
291,
22233,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
4672,
468,
7074,
326,
314,
832,
683,
291,
22233,
16,
518,
11164,
7756,
732,
1608,
468,
358,
5055,
628,
326,
2922,
365,
18,
75,
832,
683,
291,
22233,
273,
314,
832,
683,
291,
22233,
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
] |
|
raise WalkerEror
|
raise WalkerError
|
def varargslist(self, nodelist): raise WalkerEror
|
0e83a60ba67d19dd3d8904cf68e390b90621614b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0e83a60ba67d19dd3d8904cf68e390b90621614b/transformer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19732,
1098,
12,
2890,
16,
30068,
4672,
1002,
7564,
264,
29228,
280,
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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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
] |
else: pp=self._node self._node = pp lst='' if isinstance(text,(str,unicode)): lst = text.split('\n') if lst and (not len(lst)):
|
self._node = pp lst = tools.ustr(text).split('\n') if not (text and lst):
|
def format(self, text, oldtag=None): if not oldtag: oldtag = self.tag self._node.data = '' node = self._find_parent(self._node, [oldtag]) if node: pp = node.parentNode ns = node.nextSibling pp.removeChild(node) else: pp=self._node self._node = pp lst='' if isinstance(text,(str,unicode)): lst = text.split('\n')
|
09e9af914dd0799c4770a5f12659412038c5a434 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/09e9af914dd0799c4770a5f12659412038c5a434/report_sxw.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
977,
16,
1592,
2692,
33,
7036,
4672,
309,
486,
1592,
2692,
30,
1592,
2692,
273,
365,
18,
2692,
365,
6315,
2159,
18,
892,
273,
875,
756,
273,
365,
6315,
4720,
67,
2938,
12,
2890,
6315,
2159,
16,
306,
1673,
2692,
5717,
309,
756,
30,
8228,
273,
756,
18,
2938,
907,
3153,
273,
756,
18,
4285,
10291,
8228,
18,
4479,
1763,
12,
2159,
13,
469,
30,
8228,
33,
2890,
6315,
2159,
365,
6315,
2159,
273,
8228,
9441,
2218,
11,
309,
1549,
12,
955,
16,
12,
701,
16,
9124,
3719,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
977,
16,
1592,
2692,
33,
7036,
4672,
309,
486,
1592,
2692,
30,
1592,
2692,
273,
365,
18,
2692,
365,
6315,
2159,
18,
892,
273,
875,
756,
273,
365,
6315,
4720,
67,
2938,
12,
2890,
6315,
2159,
16,
306,
1673,
2692,
5717,
309,
756,
30,
8228,
273,
756,
18,
2938,
907,
3153,
273,
756,
18,
4285,
10291,
8228,
18,
4479,
1763,
12,
2159,
13,
469,
30,
8228,
33,
2890,
6315,
2159,
365,
6315,
2159,
273,
8228,
9441,
2218,
11,
309,
1549,
12,
955,
16,
12,
701,
16,
9124,
3719,
30,
9441,
273,
977,
18,
4939,
2668,
64,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Return the number of monomials possible up to a given degree.
|
Return the number of monomials possible up to a given degree.
|
def nterms(nvars, deg): """ Return the number of monomials possible up to a given degree.
|
722300ff09b8199db5acea36fda4b2778a4c12e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/722300ff09b8199db5acea36fda4b2778a4c12e9/sbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
10112,
12,
82,
4699,
16,
5843,
4672,
3536,
2000,
326,
1300,
434,
312,
4708,
649,
87,
3323,
731,
358,
279,
864,
10782,
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,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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,
290,
10112,
12,
82,
4699,
16,
5843,
4672,
3536,
2000,
326,
1300,
434,
312,
4708,
649,
87,
3323,
731,
358,
279,
864,
10782,
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
] |
def shared_object_filename (source_filename):
|
def shared_object_filename (self, source_filename):
|
def shared_object_filename (source_filename): """Return the shared object filename corresponding to a specified source filename.""" pass
|
6f78a193f87ec8bd16486e1e64b2b8d7905c16e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6f78a193f87ec8bd16486e1e64b2b8d7905c16e0/ccompiler.py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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5116,
67,
1612,
67,
3459,
261,
2890,
16,
1084,
67,
3459,
4672,
3536,
990,
326,
5116,
733,
1544,
4656,
358,
279,
1269,
1084,
1544,
12123,
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
] |
_defaults={
|
_defaults = {
|
def unlink(self, cr, uid, ids, context={}): """Allows to delete sale order lines in draft,cancel states""" for rec in self.browse(cr, uid, ids, context=context): if rec.state not in ['draft','cancel']: raise osv.except_osv(_('Invalid action !'), _('Cannot delete a sale order line which is %s !')%(rec.state,)) return super(sale_order_line, self).unlink(cr, uid, ids, context=context)
|
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3536,
19132,
358,
1430,
272,
5349,
1353,
2362,
316,
12246,
16,
10996,
5493,
8395,
364,
1950,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
1950,
18,
2019,
486,
316,
10228,
17153,
17023,
10996,
3546,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
1941,
1301,
401,
19899,
389,
2668,
4515,
1430,
279,
272,
5349,
1353,
980,
1492,
353,
738,
87,
401,
6134,
17105,
3927,
18,
2019,
16,
3719,
327,
2240,
12,
87,
5349,
67,
1019,
67,
1369,
16,
365,
2934,
318,
1232,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
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,
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
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
4672,
309,
1950,
18,
2019,
486,
316,
10228,
17153,
17023,
10996,
3546,
30,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
1941,
1301,
401,
19899,
389,
2668,
4515,
1430,
279,
272,
5349,
1353,
980,
1492,
353,
738,
87,
401,
6134,
17105,
3927,
18,
2019,
16,
3719,
327,
2240,
12,
87,
5349,
67,
1019,
67,
1369,
16,
365,
2934,
318,
1232,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
2472,
13,
225,
2,
-100
] |
print '%s has %d tested inputs' % (config, len(config_tests))
|
def GraphSummary(desc, results_ignore): test_population = 0 config_ordered = [] # drops duplicate test/config pairs (TODO: don't retest them) for config, cresults in test_all_config_results.items(): input_config_map = {} uniq = [] for test in cresults: assert test.config() == config test_population += 1 key = test.tinput() if not input_config_map.has_key(key): input_config_map[key] = {} #end if input_config_map[key].has_key(config): print 'skipping repeat test %s vs. %s' % (input_config_map[key][config], test) continue #end input_config_map[key][config] = test uniq.append(test) #end config_ordered.append(uniq) #end # sort configs descending by number of tests config_ordered.sort(lambda x, y: len(y) - len(x)) print 'population: %d: %d configs max %d results' % \ (test_population, len(config_ordered), len(config_ordered[0])) if config_ordered[0] == 1: return #end # a map from test-key to test-list w/ various configs input_set = {} osize = len(config_ordered) for i in xrange(len(config_ordered)): config = config_ordered[i][0].config() config_tests = config_ordered[i] print '%s has %d tested inputs' % (config, len(config_tests)) if len(input_set) == 0: input_set = dict([(t.tinput(), [t]) for t in config_tests]) continue #end # a map from test-key to test-list w/ various configs update_set = {} for r in config_tests: t = r.tinput() if input_set.has_key(t): update_set[t] = input_set[t] + [r] else: #print 'config %s does not have test %s' % (config, t) pass #end #end if len(update_set) <= 1: break #end input_set = update_set # continue if there are more w/ the same number of inputs if i < (len(config_ordered) - 1) and \ len(config_ordered[i + 1]) == len(config_tests): print 'b %s' % i continue #end # synthesize results for multi-test inputs config_num = None # map of config to sum(various test-keys) smap = {} for (key, tests) in input_set.items(): if config_num == None: config_num = len(tests) smap = dict([(r.config(), (r.time(), r.size())) for r in tests]) else: assert config_num == len(tests) smap = dict([(r.config(), (smap[r.config()][0] + r.time(), smap[r.config()][1] + r.size())) for r in tests]) #end #end if config_num == 1: print 'c %s' % smap continue #end summary = '%s-%d' % (desc, len(input_set)) print "what?", osize, len(input_set), input_set assert len(input_set) < osize osize = len(input_set) print 'generate %s w/ %d configs' % (summary, config_num) syn = [RandomTest(0, (None, None, summary), config, syntuple = (smap[config][0], smap[config][1])) for config in smap.keys()] syn = ScoreTests(syn) GraphResults(summary, syn) #end
|
ca6951c05772975cff7d67dba745c3bc33e71252 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4464/ca6951c05772975cff7d67dba745c3bc33e71252/xdelta3-regtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5601,
4733,
12,
5569,
16,
1686,
67,
6185,
4672,
1842,
67,
23555,
273,
374,
642,
67,
9885,
273,
5378,
225,
468,
29535,
6751,
1842,
19,
1425,
5574,
261,
6241,
30,
2727,
1404,
325,
395,
2182,
13,
364,
642,
16,
276,
4717,
316,
1842,
67,
454,
67,
1425,
67,
4717,
18,
3319,
13332,
810,
67,
1425,
67,
1458,
273,
2618,
10748,
273,
5378,
364,
1842,
316,
276,
4717,
30,
1815,
1842,
18,
1425,
1435,
422,
642,
1842,
67,
23555,
1011,
404,
498,
273,
1842,
18,
88,
2630,
1435,
309,
486,
810,
67,
1425,
67,
1458,
18,
5332,
67,
856,
12,
856,
4672,
810,
67,
1425,
67,
1458,
63,
856,
65,
273,
2618,
468,
409,
309,
810,
67,
1425,
67,
1458,
63,
856,
8009,
5332,
67,
856,
12,
1425,
4672,
1172,
296,
7457,
1382,
7666,
1842,
738,
87,
6195,
18,
738,
87,
11,
738,
261,
2630,
67,
1425,
67,
1458,
63,
856,
6362,
1425,
6487,
1842,
13,
1324,
468,
409,
810,
67,
1425,
67,
1458,
63,
856,
6362,
1425,
65,
273,
1842,
10748,
18,
6923,
12,
3813,
13,
468,
409,
642,
67,
9885,
18,
6923,
12,
31649,
13,
468,
409,
225,
468,
1524,
6784,
17044,
635,
1300,
434,
7434,
642,
67,
9885,
18,
3804,
12,
14661,
619,
16,
677,
30,
562,
12,
93,
13,
300,
562,
12,
92,
3719,
225,
1172,
296,
23555,
30,
738,
72,
30,
738,
72,
6784,
943,
738,
72,
1686,
11,
738,
521,
261,
3813,
67,
23555,
16,
562,
12,
1425,
67,
9885,
3631,
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,
5601,
4733,
12,
5569,
16,
1686,
67,
6185,
4672,
1842,
67,
23555,
273,
374,
642,
67,
9885,
273,
5378,
225,
468,
29535,
6751,
1842,
19,
1425,
5574,
261,
6241,
30,
2727,
1404,
325,
395,
2182,
13,
364,
642,
16,
276,
4717,
316,
1842,
67,
454,
67,
1425,
67,
4717,
18,
3319,
13332,
810,
67,
1425,
67,
1458,
273,
2618,
10748,
273,
5378,
364,
1842,
316,
276,
4717,
30,
1815,
1842,
18,
1425,
1435,
422,
642,
1842,
67,
23555,
1011,
404,
498,
273,
1842,
18,
88,
2630,
1435,
309,
486,
810,
67,
1425,
67,
1458,
18,
5332,
67,
856,
12,
856,
4672,
810,
67,
1425,
67,
1458,
63,
856,
65,
273,
2618,
468,
409,
309,
810,
67,
1425,
67,
2
] |
|
contents = re.sub(titlestart + ".*?" + titleend + "\n","",contents)
|
contents = re.sub(search_string + "\n+","",contents)
|
def findpage(t): search_string = titlestart + "(.*?)" + titleend try: location = re.search(starttext+"([^\Z]*?)"+endtext,t) if include: contents = location.group() else: contents = location.group(1) except AttributeError: print 'Start or end marker not found.' return try: title = re.search(search_string, contents).group(1) except AttributeError: wikipedia.output(u"No title found - skipping a page.") return else: page = wikipedia.Page(mysite, title) wikipedia.output(page.title()) if notitle: #Remove title (to allow creation of redirects) contents = re.sub(titlestart + ".*?" + titleend + "\n","",contents) if page.exists(): if append == "Top": old_text = page.get() contents = contents + old_text commenttext_top = commenttext + " - " + wikipedia.translate(mysite,msg_top) wikipedia.output(u"Page %s already exists, appending on top!"%title) page.put(contents, comment = commenttext_top, minorEdit = False) elif append == "Bottom": old_text = page.get() contents = old_text + contents commenttext_bottom = commenttext + " - " + wikipedia.translate(mysite,msg_bottom) wikipedia.output(u"Page %s already exists, appending on bottom!"%title) page.put(contents, comment = commenttext_bottom, minorEdit = False) elif force: commenttext_force = commenttext + " *** " + wikipedia.translate(mysite,msg_force) + " ***" wikipedia.output(u"Page %s already exists, ***overwriting!"%title) page.put(contents, comment = commenttext_force, minorEdit = False) else: wikipedia.output(u"Page %s already exists, not adding!"%title) else: page.put(contents, comment = commenttext, minorEdit = False) findpage(t[location.end()+1:]) return
|
aa0d0816bb3cf05546f9cb3a7e4de9cb4af2e4cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/aa0d0816bb3cf05546f9cb3a7e4de9cb4af2e4cf/pagefromfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2433,
12,
88,
4672,
1623,
67,
1080,
273,
268,
305,
80,
27893,
397,
315,
7444,
35,
2225,
397,
2077,
409,
775,
30,
2117,
273,
283,
18,
3072,
12,
1937,
955,
9078,
19042,
62,
5772,
35,
2225,
15,
409,
955,
16,
88,
13,
309,
2341,
30,
2939,
273,
2117,
18,
1655,
1435,
469,
30,
2939,
273,
2117,
18,
1655,
12,
21,
13,
1335,
6394,
30,
1172,
296,
1685,
578,
679,
5373,
486,
1392,
1093,
327,
775,
30,
2077,
273,
283,
18,
3072,
12,
3072,
67,
1080,
16,
2939,
2934,
1655,
12,
21,
13,
1335,
6394,
30,
21137,
18,
2844,
12,
89,
6,
2279,
2077,
1392,
300,
14195,
279,
1363,
1199,
13,
327,
469,
30,
1363,
273,
21137,
18,
1964,
12,
81,
1900,
1137,
16,
2077,
13,
21137,
18,
2844,
12,
2433,
18,
2649,
10756,
309,
486,
1280,
30,
468,
3288,
2077,
261,
869,
1699,
6710,
434,
18064,
13,
2939,
273,
283,
18,
1717,
12,
3072,
67,
1080,
397,
1548,
82,
15,
15937,
3113,
3980,
13,
309,
1363,
18,
1808,
13332,
309,
714,
422,
315,
3401,
6877,
1592,
67,
955,
273,
1363,
18,
588,
1435,
2939,
273,
2939,
397,
1592,
67,
955,
2879,
955,
67,
3669,
273,
2879,
955,
397,
315,
300,
315,
397,
21137,
18,
13929,
12,
81,
1900,
1137,
16,
3576,
67,
3669,
13,
21137,
18,
2844,
12,
89,
6,
1964,
738,
87,
1818,
1704,
16,
19997,
603,
1760,
4442,
9,
2649,
13,
1363,
18,
458,
12,
3980,
16,
2879,
273,
2879,
955,
67,
3669,
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,
1104,
2433,
12,
88,
4672,
1623,
67,
1080,
273,
268,
305,
80,
27893,
397,
315,
7444,
35,
2225,
397,
2077,
409,
775,
30,
2117,
273,
283,
18,
3072,
12,
1937,
955,
9078,
19042,
62,
5772,
35,
2225,
15,
409,
955,
16,
88,
13,
309,
2341,
30,
2939,
273,
2117,
18,
1655,
1435,
469,
30,
2939,
273,
2117,
18,
1655,
12,
21,
13,
1335,
6394,
30,
1172,
296,
1685,
578,
679,
5373,
486,
1392,
1093,
327,
775,
30,
2077,
273,
283,
18,
3072,
12,
3072,
67,
1080,
16,
2939,
2934,
1655,
12,
21,
13,
1335,
6394,
30,
21137,
18,
2844,
12,
89,
6,
2279,
2077,
1392,
300,
14195,
279,
1363,
1199,
13,
327,
469,
30,
1363,
273,
21137,
18,
2
] |
self.ic.generator_index = a
|
self.ic.generator_id = a
|
def __init__(self, argv, opts, args): self.opts = opts self.args = args for o, a in self.opts: if o == '--no-prompts': self.ic.no_prompts = True elif o in ('-g', '--generator'): self.ic.generator_index = a
|
e4c88bfcc9130bcf1d5ed59d4e45d520fd6367b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6688/e4c88bfcc9130bcf1d5ed59d4e45d520fd6367b1/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5261,
16,
1500,
16,
833,
4672,
225,
365,
18,
4952,
273,
1500,
365,
18,
1968,
273,
833,
225,
364,
320,
16,
279,
316,
365,
18,
4952,
30,
309,
320,
422,
3534,
2135,
17,
17401,
1092,
4278,
365,
18,
335,
18,
2135,
67,
17401,
1092,
273,
1053,
1327,
320,
316,
7707,
17,
75,
2187,
3534,
8812,
11,
4672,
365,
18,
335,
18,
8812,
67,
1615,
273,
279,
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,
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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,
1001,
2738,
972,
12,
2890,
16,
5261,
16,
1500,
16,
833,
4672,
225,
365,
18,
4952,
273,
1500,
365,
18,
1968,
273,
833,
225,
364,
320,
16,
279,
316,
365,
18,
4952,
30,
309,
320,
422,
3534,
2135,
17,
17401,
1092,
4278,
365,
18,
335,
18,
2135,
67,
17401,
1092,
273,
1053,
1327,
320,
316,
7707,
17,
75,
2187,
3534,
8812,
11,
4672,
365,
18,
335,
18,
8812,
67,
1615,
273,
279,
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
] |
file = open(User.users_file) lines = file.readlines()
|
users_file = None users_file = open(User.users_file)
|
def create_user(name): """Creates a new User. Writes an entry in users.txt for the new user. Exceptions: If the specified name contains any characters other than letters, numbers, or spaces, raises an InvalidNameError. If another user exists with this name, raises a NameAlreadyExistsError. """ # TODO Validate name try: file = open(User.users_file) lines = file.readlines() except IOError, e: logging.critical("There was an error opening the users file (%s). The " "error is: %s." % (User.users_file, e)) file.close() ids = [] names = [] for line in files: entry = line.split(':') if len(entry) != 2: logging.error("There is an invalid entry in the users file: %s. " "Skipping this entry." % line) ids.append(entry[0]) names.append(entry[1]) if name in names: raise NameAlreadyExistsError() id = randint(1000, 9999) while str(id) in ids: id = random.randint(1000, 9999) try: file = open(User.users_file, 'a') file.write("%s:%s\n" % (id, name)) except IOError, e: logging.critical("There was an error opening the users file (%s). The " "error is: %s." % (User.users_file, e)) file.close() return User(id)
|
feaeaa92c068a38b62d763b0747751948256dbfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2803/feaeaa92c068a38b62d763b0747751948256dbfa/user.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1355,
12,
529,
4672,
3536,
2729,
279,
394,
2177,
18,
30053,
392,
1241,
316,
3677,
18,
5830,
364,
326,
394,
729,
18,
12781,
30,
971,
326,
1269,
508,
1914,
1281,
3949,
1308,
2353,
13768,
16,
5600,
16,
578,
7292,
16,
14183,
392,
1962,
461,
668,
18,
971,
4042,
729,
1704,
598,
333,
508,
16,
14183,
279,
1770,
16686,
668,
18,
225,
3536,
468,
2660,
3554,
508,
775,
30,
3677,
67,
768,
273,
599,
3677,
67,
768,
273,
1696,
12,
1299,
18,
5577,
67,
768,
13,
1335,
8340,
16,
425,
30,
2907,
18,
28000,
2932,
9828,
1703,
392,
555,
10890,
326,
3677,
585,
6142,
87,
2934,
1021,
315,
315,
1636,
353,
30,
738,
87,
1199,
738,
261,
1299,
18,
5577,
67,
768,
16,
425,
3719,
585,
18,
4412,
1435,
3258,
273,
5378,
1257,
273,
5378,
364,
980,
316,
1390,
30,
1241,
273,
980,
18,
4939,
2668,
2497,
13,
309,
562,
12,
4099,
13,
480,
576,
30,
2907,
18,
1636,
2932,
9828,
353,
392,
2057,
1241,
316,
326,
3677,
585,
30,
738,
87,
18,
315,
315,
16877,
333,
1241,
1199,
738,
980,
13,
3258,
18,
6923,
12,
4099,
63,
20,
5717,
1257,
18,
6923,
12,
4099,
63,
21,
5717,
309,
508,
316,
1257,
30,
1002,
1770,
16686,
668,
1435,
612,
273,
16783,
12,
18088,
16,
30082,
13,
1323,
609,
12,
350,
13,
316,
3258,
30,
612,
273,
2744,
18,
7884,
474,
12,
18088,
16,
30082,
13,
775,
30,
585,
273,
1696,
12,
1299,
18,
5577,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1355,
12,
529,
4672,
3536,
2729,
279,
394,
2177,
18,
30053,
392,
1241,
316,
3677,
18,
5830,
364,
326,
394,
729,
18,
12781,
30,
971,
326,
1269,
508,
1914,
1281,
3949,
1308,
2353,
13768,
16,
5600,
16,
578,
7292,
16,
14183,
392,
1962,
461,
668,
18,
971,
4042,
729,
1704,
598,
333,
508,
16,
14183,
279,
1770,
16686,
668,
18,
225,
3536,
468,
2660,
3554,
508,
775,
30,
3677,
67,
768,
273,
599,
3677,
67,
768,
273,
1696,
12,
1299,
18,
5577,
67,
768,
13,
1335,
8340,
16,
425,
30,
2907,
18,
28000,
2932,
9828,
1703,
392,
555,
10890,
326,
3677,
585,
6142,
87,
2934,
1021,
315,
315,
1636,
353,
30,
738,
87,
1199,
738,
261,
2
] |
byte_index = (index * self.__bit_size) % 8 return ((self.__value[byte_index] >> byte_index) & self.__bit_size )
|
bit_index = (index * self.__bit_size) % 8 return ((self.__value[byte_index] >> bit_index) & ((1 << self.__bit_size) - 1) )
|
def __getitem__(self, index): "Allow to access value array by index" if not self.__is_value_array: raise ValueError("Report item is not value usage array") if index < self.__report_count: byte_index = (index * self.__bit_size) / 8 byte_index = (index * self.__bit_size) % 8 return ((self.__value[byte_index] >> byte_index) & self.__bit_size ) else: raise IndexError
|
4ec60e496fbef07c76b7566417c50a134745fe3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11669/4ec60e496fbef07c76b7566417c50a134745fe3c/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
770,
4672,
315,
7009,
358,
2006,
460,
526,
635,
770,
6,
309,
486,
365,
16186,
291,
67,
1132,
67,
1126,
30,
1002,
2068,
2932,
4820,
761,
353,
486,
460,
4084,
526,
7923,
309,
770,
411,
365,
16186,
6006,
67,
1883,
30,
1160,
67,
1615,
273,
261,
1615,
380,
365,
16186,
3682,
67,
1467,
13,
342,
1725,
2831,
67,
1615,
273,
261,
1615,
380,
365,
16186,
3682,
67,
1467,
13,
738,
1725,
327,
14015,
2890,
16186,
1132,
63,
7229,
67,
1615,
65,
1671,
2831,
67,
1615,
13,
473,
14015,
21,
2296,
365,
16186,
3682,
67,
1467,
13,
300,
404,
13,
262,
469,
30,
1002,
10195,
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,
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1652,
1001,
31571,
972,
12,
2890,
16,
770,
4672,
315,
7009,
358,
2006,
460,
526,
635,
770,
6,
309,
486,
365,
16186,
291,
67,
1132,
67,
1126,
30,
1002,
2068,
2932,
4820,
761,
353,
486,
460,
4084,
526,
7923,
309,
770,
411,
365,
16186,
6006,
67,
1883,
30,
1160,
67,
1615,
273,
261,
1615,
380,
365,
16186,
3682,
67,
1467,
13,
342,
1725,
2831,
67,
1615,
273,
261,
1615,
380,
365,
16186,
3682,
67,
1467,
13,
738,
1725,
327,
14015,
2890,
16186,
1132,
63,
7229,
67,
1615,
65,
1671,
2831,
67,
1615,
13,
473,
14015,
21,
2296,
365,
16186,
3682,
67,
1467,
13,
300,
404,
13,
262,
469,
30,
1002,
10195,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(child, token))
|
(repr(child), token))
|
def registerParent(self, token, parent): if token in self.token2nodepath.keys(): self.notify.error( "token '%s' already in the table, referencing %s" % (token, self.token2nodepath[token]))
|
965f5a3cc4a1ff3ada0a33684d9aaf0ac8ab2ff3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/965f5a3cc4a1ff3ada0a33684d9aaf0ac8ab2ff3/ParentMgr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
3054,
12,
2890,
16,
1147,
16,
982,
4672,
309,
1147,
316,
365,
18,
2316,
22,
2159,
803,
18,
2452,
13332,
365,
18,
12336,
18,
1636,
12,
315,
2316,
1995,
87,
11,
1818,
316,
326,
1014,
16,
24509,
738,
87,
6,
738,
261,
2316,
16,
365,
18,
2316,
22,
2159,
803,
63,
2316,
22643,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
3054,
12,
2890,
16,
1147,
16,
982,
4672,
309,
1147,
316,
365,
18,
2316,
22,
2159,
803,
18,
2452,
13332,
365,
18,
12336,
18,
1636,
12,
315,
2316,
1995,
87,
11,
1818,
316,
326,
1014,
16,
24509,
738,
87,
6,
738,
261,
2316,
16,
365,
18,
2316,
22,
2159,
803,
63,
2316,
22643,
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
] |
>>> a = A(p)
|
class LocatingTrustedAdapterFactory(object): """Adapt an adapter factory to provide trusted and (locatable) adapters.
|
... def __init__(self, context):
|
c4df19b7123c032c70b5860013f9a3c864759b7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/c4df19b7123c032c70b5860013f9a3c864759b7f/adapter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
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
] |
ProfileNb = eds_dict[0x1000]["DEFAULTVALUE"] & 0x0000ffff
|
ProfileNb = eds_dict[0x1000].get("DEFAULTVALUE", 0) & 0x0000ffff
|
def GenerateNode(filepath, nodeID = 0): # Create a new node Node = node.Node(id = nodeID) try: # Parse file and extract dictionary of EDS entry eds_dict = ParseEDSFile(filepath) # Extract Profile Number from Device Type entry ProfileNb = eds_dict[0x1000]["DEFAULTVALUE"] & 0x0000ffff # If profile is not DS-301 or DS-302 if ProfileNb not in [301, 302]: # Compile Profile name and path to .prf file ProfileName = "DS-%d"%ProfileNb ProfilePath = os.path.join(os.path.split(__file__)[0], "config/%s.prf"%ProfileName) # Verify that profile is available if os.path.isfile(ProfilePath): try: # Load Profile execfile(ProfilePath) Node.SetProfileName(ProfileName) Node.SetProfile(Mapping) Node.SetSpecificMenu(AddMenuEntries) except: pass # Read all entries in the EDS dictionary for entry, values in eds_dict.items(): # All sections with a name in keynames are escaped if entry in SECTION_KEYNAMES: pass else: # Extract informations for the entry entry_infos = Node.GetEntryInfos(entry) # If no informations are available, then we write them if not entry_infos: # First case, entry is a VAR if values["OBJECTTYPE"] == 7: # Add mapping for entry Node.AddMappingEntry(entry, name = values["PARAMETERNAME"], struct = 1) # Add mapping for first subindex Node.AddMappingEntry(entry, 0, values = {"name" : values["PARAMETERNAME"], "type" : values["DATATYPE"], "access" : ACCESS_TRANSLATE[values["ACCESSTYPE"].upper()], "pdo" : values.get("PDOMAPPING", 0) == 1}) # Second case, entry is an ARRAY or RECORD elif values["OBJECTTYPE"] in [8, 9]: # Extract maximum subindex number defined try: max_subindex = values["subindexes"][0]["DEFAULTVALUE"] except: max_subindex = max(*values["subindexes"].keys()) #raise SyntaxError, "Error on entry 0x%4.4X:\nSubindex 0 must be defined for an ARRAY or RECORD entry"%entry # Add mapping for entry Node.AddMappingEntry(entry, name = values["PARAMETERNAME"], struct = 3) # Add mapping for first subindex Node.AddMappingEntry(entry, 0, values = {"name" : "Number of Entries", "type" : 0x05, "access" : "ro", "pdo" : False}) # Add mapping for other subindexes for subindex in xrange(1, int(max_subindex) + 1): # if subindex is defined if subindex in values["subindexes"]: Node.AddMappingEntry(entry, subindex, values = {"name" : values["subindexes"][subindex]["PARAMETERNAME"], "type" : values["subindexes"][subindex]["DATATYPE"], "access" : ACCESS_TRANSLATE[values["subindexes"][subindex]["ACCESSTYPE"].upper()], "pdo" : values["subindexes"][subindex].get("PDOMAPPING", 0) == 1}) # if not, we add a mapping for compatibility else: Node.AddMappingEntry(entry, subindex, values = {"name" : "Compatibility Entry", "type" : 0x05, "access" : "rw", "pdo" : False})
|
61bebf15508c105f83a17988733e8e2265365cb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11017/61bebf15508c105f83a17988733e8e2265365cb9/eds_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
907,
12,
10561,
16,
14871,
273,
374,
4672,
468,
1788,
279,
394,
756,
2029,
273,
756,
18,
907,
12,
350,
273,
14871,
13,
775,
30,
468,
2884,
585,
471,
2608,
3880,
434,
512,
3948,
1241,
1675,
87,
67,
1576,
273,
2884,
2056,
55,
812,
12,
10561,
13,
468,
8152,
11357,
3588,
628,
6077,
1412,
1241,
11357,
22816,
273,
1675,
87,
67,
1576,
63,
20,
92,
18088,
8009,
588,
2932,
5280,
4051,
3113,
374,
13,
473,
374,
92,
2787,
9460,
468,
971,
3042,
353,
486,
8678,
17,
31831,
578,
8678,
17,
23,
3103,
309,
11357,
22816,
486,
316,
306,
31831,
16,
22072,
14542,
468,
16143,
11357,
508,
471,
589,
358,
263,
683,
74,
585,
11357,
461,
273,
315,
3948,
6456,
72,
28385,
4029,
22816,
11357,
743,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
4939,
12,
972,
768,
972,
25146,
20,
6487,
315,
1425,
5258,
87,
18,
683,
74,
28385,
4029,
461,
13,
468,
8553,
716,
3042,
353,
2319,
309,
1140,
18,
803,
18,
291,
768,
12,
4029,
743,
4672,
775,
30,
468,
4444,
11357,
1196,
768,
12,
4029,
743,
13,
2029,
18,
694,
4029,
461,
12,
4029,
461,
13,
2029,
18,
694,
4029,
12,
3233,
13,
2029,
18,
694,
9969,
4599,
12,
986,
4599,
5400,
13,
1335,
30,
1342,
468,
2720,
777,
3222,
316,
326,
512,
3948,
3880,
364,
1241,
16,
924,
316,
1675,
87,
67,
1576,
18,
3319,
13332,
468,
4826,
7178,
598,
279,
508,
316,
498,
1973,
854,
8345,
309,
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,
6654,
907,
12,
10561,
16,
14871,
273,
374,
4672,
468,
1788,
279,
394,
756,
2029,
273,
756,
18,
907,
12,
350,
273,
14871,
13,
775,
30,
468,
2884,
585,
471,
2608,
3880,
434,
512,
3948,
1241,
1675,
87,
67,
1576,
273,
2884,
2056,
55,
812,
12,
10561,
13,
468,
8152,
11357,
3588,
628,
6077,
1412,
1241,
11357,
22816,
273,
1675,
87,
67,
1576,
63,
20,
92,
18088,
8009,
588,
2932,
5280,
4051,
3113,
374,
13,
473,
374,
92,
2787,
9460,
468,
971,
3042,
353,
486,
8678,
17,
31831,
578,
8678,
17,
23,
3103,
309,
11357,
22816,
486,
316,
306,
31831,
16,
22072,
14542,
468,
16143,
11357,
508,
471,
589,
358,
263,
683,
74,
585,
11357,
461,
273,
315,
2
] |
os.setreuid(0, 0) os.setregid(0, 0)
|
self._elevatePrivs()
|
def restorePrivs(self): # back to root first os.setreuid(0, 0) os.setregid(0, 0)
|
8a780e16ad87c2ad0ac3494b2254032748093ced /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/8a780e16ad87c2ad0ac3494b2254032748093ced/uid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
15475,
87,
12,
2890,
4672,
468,
1473,
358,
1365,
1122,
1140,
18,
542,
266,
1911,
12,
20,
16,
374,
13,
1140,
18,
542,
1574,
350,
12,
20,
16,
374,
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,
0,
0,
0,
0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1140,
18,
542,
1574,
350,
12,
20,
16,
374,
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
] |
def readManifest(self, manifest): """ Given a manifest file containing a list of test directories, return a list of absolute paths to the directories contained within. """ manifestdir = os.path.dirname(manifest) testdirs = []
|
def readManifest(self): """ For a given manifest file, read the contents and populate self.testdirs """ manifestdir = os.path.dirname(self.manifest)
|
def readManifest(self, manifest): """ Given a manifest file containing a list of test directories, return a list of absolute paths to the directories contained within. """ manifestdir = os.path.dirname(manifest) testdirs = [] try: f = open(manifest, "r") for line in f: dir = line.rstrip() path = os.path.join(manifestdir, dir) if os.path.isdir(path): testdirs.append(path) f.close() except: pass # just eat exceptions return testdirs
|
427937ff35ea20b5cbfb1e6dd1fb45dae71131c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/427937ff35ea20b5cbfb1e6dd1fb45dae71131c3/runxpcshelltests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
9121,
12,
2890,
4672,
3536,
2457,
279,
864,
5643,
585,
16,
855,
326,
2939,
471,
6490,
365,
18,
3813,
8291,
3536,
5643,
1214,
273,
1140,
18,
803,
18,
12287,
12,
2890,
18,
14357,
13,
775,
30,
284,
273,
1696,
12,
14357,
16,
315,
86,
7923,
364,
980,
316,
284,
30,
1577,
273,
980,
18,
86,
6406,
1435,
589,
273,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
9121,
12,
2890,
4672,
3536,
2457,
279,
864,
5643,
585,
16,
855,
326,
2939,
471,
6490,
365,
18,
3813,
8291,
3536,
5643,
1214,
273,
1140,
18,
803,
18,
12287,
12,
2890,
18,
14357,
13,
775,
30,
284,
273,
1696,
12,
14357,
16,
315,
86,
7923,
364,
980,
316,
284,
30,
1577,
273,
980,
18,
86,
6406,
1435,
589,
273,
1140,
18,
803,
18,
5701,
12,
14357,
1214,
16,
1577,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
1842,
8291,
18,
6923,
12,
803,
13,
284,
18,
4412,
1435,
1335,
30,
1342,
468,
2537,
20729,
4798,
327,
1842,
8291,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: min(g.degree()) >= g.edge_connectivity()
|
sage: min(g.degree()) >= g.edge_connectivity()
|
def edge_connectivity(self, value_only=True, use_edge_labels=False, vertices=False, solver=None, verbose=0): r""" Returns the edge connectivity of the graph. For more information, see the `Wikipedia article on connectivity <http://en.wikipedia.org/wiki/Connectivity_(graph_theory)>`_. INPUT:
|
1b1e9fa38a9074f82933aa4bcd32aa9ddb2cd120 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b1e9fa38a9074f82933aa4bcd32aa9ddb2cd120/generic_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3591,
67,
3612,
2818,
12,
2890,
16,
460,
67,
3700,
33,
5510,
16,
999,
67,
7126,
67,
5336,
33,
8381,
16,
6928,
33,
8381,
16,
12776,
33,
7036,
16,
3988,
33,
20,
4672,
436,
8395,
2860,
326,
3591,
20301,
434,
326,
2667,
18,
2457,
1898,
1779,
16,
2621,
326,
1375,
59,
16049,
7559,
603,
20301,
411,
2505,
2207,
275,
18,
11999,
13744,
18,
3341,
19,
13044,
19,
5215,
2818,
67,
12,
4660,
67,
5787,
630,
13,
30599,
27799,
225,
12943,
30,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3591,
67,
3612,
2818,
12,
2890,
16,
460,
67,
3700,
33,
5510,
16,
999,
67,
7126,
67,
5336,
33,
8381,
16,
6928,
33,
8381,
16,
12776,
33,
7036,
16,
3988,
33,
20,
4672,
436,
8395,
2860,
326,
3591,
20301,
434,
326,
2667,
18,
2457,
1898,
1779,
16,
2621,
326,
1375,
59,
16049,
7559,
603,
20301,
411,
2505,
2207,
275,
18,
11999,
13744,
18,
3341,
19,
13044,
19,
5215,
2818,
67,
12,
4660,
67,
5787,
630,
13,
30599,
27799,
225,
12943,
30,
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
] |
old_items = self.createItemsForParsed(parsed)
|
self.remember_old_items() self.createItemsForParsed(parsed)
|
def feedparser_callback(self, parsed): self.ufeed.confirm_db_thread() if not self.ufeed.id_exists(): return start = clock() parsed = self.parsed = unicodify(parsed) old_items = self.createItemsForParsed(parsed)
|
3c3b6870a8d2a53770dbfe886ab2230073ce65f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/3c3b6870a8d2a53770dbfe886ab2230073ce65f7/feed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
4288,
67,
3394,
12,
2890,
16,
2707,
4672,
365,
18,
696,
73,
329,
18,
10927,
67,
1966,
67,
5930,
1435,
309,
486,
365,
18,
696,
73,
329,
18,
350,
67,
1808,
13332,
327,
787,
273,
7268,
1435,
2707,
273,
365,
18,
10817,
273,
640,
335,
369,
1164,
12,
10817,
13,
1592,
67,
3319,
273,
365,
18,
2640,
3126,
1290,
11257,
12,
10817,
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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
335,
369,
1164,
12,
10817,
13,
1592,
67,
3319,
273,
365,
18,
2640,
3126,
1290,
11257,
12,
10817,
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
] |
if string.lower(attr) == 'type' and \
|
if attr.lower() == 'type' and \
|
def open_ftp(self, url): """Use FTP protocol.""" host, path = splithost(url) if not host: raise IOError, ('ftp error', 'no host given') host, port = splitport(host) user, host = splituser(host) if user: user, passwd = splitpasswd(user) else: passwd = None host = unquote(host) user = unquote(user or '') passwd = unquote(passwd or '') host = socket.gethostbyname(host) if not port: import ftplib port = ftplib.FTP_PORT else: port = int(port) path, attrs = splitattr(path) path = unquote(path) dirs = string.splitfields(path, '/') dirs, file = dirs[:-1], dirs[-1] if dirs and not dirs[0]: dirs = dirs[1:] if dirs and not dirs[0]: dirs[0] = '/' key = user, host, port, string.join(dirs, '/') # XXX thread unsafe! if len(self.ftpcache) > MAXFTPCACHE: # Prune the cache, rather arbitrarily for k in self.ftpcache.keys(): if k != key: v = self.ftpcache[k] del self.ftpcache[k] v.close() try: if not self.ftpcache.has_key(key): self.ftpcache[key] = \ ftpwrapper(user, passwd, host, port, dirs) if not file: type = 'D' else: type = 'I' for attr in attrs: attr, value = splitvalue(attr) if string.lower(attr) == 'type' and \ value in ('a', 'A', 'i', 'I', 'd', 'D'): type = string.upper(value) (fp, retrlen) = self.ftpcache[key].retrfile(file, type) if retrlen is not None and retrlen >= 0: import mimetools, StringIO headers = mimetools.Message(StringIO.StringIO( 'Content-Length: %d\n' % retrlen)) else: headers = noheaders() return addinfourl(fp, headers, "ftp:" + url) except ftperrors(), msg: raise IOError, ('ftp error', msg), sys.exc_info()[2]
|
b2493f855a7319ce0748bfb965253cad9c9f5a2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b2493f855a7319ce0748bfb965253cad9c9f5a2c/urllib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
11727,
12,
2890,
16,
880,
4672,
3536,
3727,
19324,
1771,
12123,
1479,
16,
589,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
1002,
8340,
16,
7707,
11727,
555,
2187,
296,
2135,
1479,
864,
6134,
1479,
16,
1756,
273,
1416,
655,
12,
2564,
13,
729,
16,
1479,
273,
1416,
1355,
12,
2564,
13,
309,
729,
30,
729,
16,
19093,
273,
1416,
24002,
12,
1355,
13,
469,
30,
19093,
273,
599,
1479,
273,
25611,
12,
2564,
13,
729,
273,
25611,
12,
1355,
578,
28707,
19093,
273,
25611,
12,
24002,
578,
28707,
1479,
273,
2987,
18,
75,
546,
669,
1637,
529,
12,
2564,
13,
309,
486,
1756,
30,
1930,
11038,
6673,
1756,
273,
11038,
6673,
18,
17104,
67,
6354,
469,
30,
1756,
273,
509,
12,
655,
13,
589,
16,
3422,
273,
1416,
1747,
12,
803,
13,
589,
273,
25611,
12,
803,
13,
7717,
273,
533,
18,
4939,
2821,
12,
803,
16,
2023,
13,
7717,
16,
585,
273,
7717,
10531,
17,
21,
6487,
7717,
18919,
21,
65,
309,
7717,
471,
486,
7717,
63,
20,
14542,
7717,
273,
7717,
63,
21,
26894,
309,
7717,
471,
486,
7717,
63,
20,
14542,
7717,
63,
20,
65,
273,
2023,
498,
273,
729,
16,
1479,
16,
1756,
16,
533,
18,
5701,
12,
8291,
16,
2023,
13,
468,
11329,
2650,
7127,
5,
309,
562,
12,
2890,
18,
1222,
2436,
807,
13,
405,
4552,
4464,
3513,
37,
5007,
30,
468,
2301,
7556,
326,
1247,
16,
9178,
10056,
86,
10243,
364,
417,
316,
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,
1696,
67,
11727,
12,
2890,
16,
880,
4672,
3536,
3727,
19324,
1771,
12123,
1479,
16,
589,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
1002,
8340,
16,
7707,
11727,
555,
2187,
296,
2135,
1479,
864,
6134,
1479,
16,
1756,
273,
1416,
655,
12,
2564,
13,
729,
16,
1479,
273,
1416,
1355,
12,
2564,
13,
309,
729,
30,
729,
16,
19093,
273,
1416,
24002,
12,
1355,
13,
469,
30,
19093,
273,
599,
1479,
273,
25611,
12,
2564,
13,
729,
273,
25611,
12,
1355,
578,
28707,
19093,
273,
25611,
12,
24002,
578,
28707,
1479,
273,
2987,
18,
75,
546,
669,
1637,
529,
12,
2564,
13,
309,
486,
1756,
30,
1930,
11038,
6673,
1756,
273,
11038,
6673,
18,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.