rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
finalcard = blurYBuffer.getTextureCard() finalcard.reparentTo(render2d) finalcard.setAttrib(ColorBlendAttrib.make(ColorBlendAttrib.MAdd)) | self.finalcard = blurYBuffer.getTextureCard() self.finalcard.reparentTo(render2d) self.finalcard.setAttrib(ColorBlendAttrib.make(ColorBlendAttrib.MAdd)) | def __init__(self): base.disableMouse() base.setBackgroundColor(0,0,0) camera.setPos(0,-50,0) | 459c50aa921086d1d67f1b6ba1b7fccae4f63aee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/459c50aa921086d1d67f1b6ba1b7fccae4f63aee/Tut-Glow-Filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1026,
18,
8394,
9186,
1435,
1026,
18,
542,
21699,
12,
20,
16,
20,
16,
20,
13,
10836,
18,
542,
1616,
12,
20,
16,
17,
3361,
16,
20,
13,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1026,
18,
8394,
9186,
1435,
1026,
18,
542,
21699,
12,
20,
16,
20,
16,
20,
13,
10836,
18,
542,
1616,
12,
20,
16,
17,
3361,
16,
20,
13,
2,
-100,
-100... |
du.write("\n\n") | dui.write("\n\n") | def __getattr__(self, key): return getattr(self.ui, key) | fa1576c54b737481b5da80765a2ec575ca44663f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/fa1576c54b737481b5da80765a2ec575ca44663f/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
498,
4672,
327,
3869,
12,
2890,
18,
4881,
16,
498,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
498,
4672,
327,
3869,
12,
2890,
18,
4881,
16,
498,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print(p) | logger.debug(p) | def __init__(self, server, port, username, password, resource, muc, config): self.muc = muc self.config = config.copy() for e in self.config: self.config[e]['pcre'] = [] for p in self.config[e]['events']: | aafda75ca94ff8f2803d1d92990754394881af8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/aafda75ca94ff8f2803d1d92990754394881af8a/logxmpp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
16,
1756,
16,
2718,
16,
2201,
16,
1058,
16,
4129,
71,
16,
642,
4672,
225,
365,
18,
81,
5286,
273,
4129,
71,
365,
18,
1425,
273,
642,
18,
3530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
16,
1756,
16,
2718,
16,
2201,
16,
1058,
16,
4129,
71,
16,
642,
4672,
225,
365,
18,
81,
5286,
273,
4129,
71,
365,
18,
1425,
273,
642,
18,
3530,
... |
max_col = astyle['max_col'] \ - len(border[3]) - len(border[4]) - len(tab_str) | max_col = max(astyle['max_col'] \ - len(border[3]) - len(border[4]) - len(tab_str), 1) | def _wrap_row(row, max_col, break_long): """Wrap a single row""" spaces = _RE_BEGINNING_SPACES.match(row).group() row = row[len(spaces):] spaces = spaces.expandtabs() return textwrap.wrap(row, initial_indent=spaces, subsequent_indent=spaces, width=max_col, break_long_words=break_long) | 66a1654f3f88bae94d176cecaddc0d8cbbe9defc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1780/66a1654f3f88bae94d176cecaddc0d8cbbe9defc/textutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
67,
492,
12,
492,
16,
943,
67,
1293,
16,
898,
67,
5748,
4672,
3536,
2964,
279,
2202,
1027,
8395,
7292,
273,
389,
862,
67,
16061,
15870,
67,
6616,
55,
18,
1916,
12,
492,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
67,
492,
12,
492,
16,
943,
67,
1293,
16,
898,
67,
5748,
4672,
3536,
2964,
279,
2202,
1027,
8395,
7292,
273,
389,
862,
67,
16061,
15870,
67,
6616,
55,
18,
1916,
12,
492,
29... |
db = FluidDB (host=choose_host (), debug=choose_debug_mode ()) execute_command_line (flags, db) | execute_command_line(action, args, options, parser) | def testUntagByIDVerboseShow (self): self.untagTest ('id') self.showUntagSuccessTest ('id') | a258ae866ad40d7092b84a6b1737df504976b56c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12637/a258ae866ad40d7092b84a6b1737df504976b56c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
57,
496,
346,
13331,
14489,
5706,
261,
2890,
4672,
365,
18,
318,
2692,
4709,
7707,
350,
6134,
365,
18,
4500,
57,
496,
346,
4510,
4709,
7707,
350,
6134,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
57,
496,
346,
13331,
14489,
5706,
261,
2890,
4672,
365,
18,
318,
2692,
4709,
7707,
350,
6134,
365,
18,
4500,
57,
496,
346,
4510,
4709,
7707,
350,
6134,
2,
-100,
-100,
-100,
-100,
... |
self.radioButton_polySurvey = QtGui.QRadioButton(self.layoutWidget) | self.radioButton_polySurvey = QtGui.QRadioButton(self.surveyGrpBox) | def setupUi(self, ui): ui.setObjectName("ui") ui.resize(625, 637) self.verticalLayout_12 = QtGui.QVBoxLayout(ui) self.verticalLayout_12.setObjectName("verticalLayout_12") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_13 = QtGui.QHBoxLayout() se... | 2503e9f807f1add21e1e4ab81249139c1d70195c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8312/2503e9f807f1add21e1e4ab81249139c1d70195c/Ui_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5915,
4672,
5915,
18,
542,
16707,
2932,
4881,
7923,
5915,
18,
15169,
12,
26,
2947,
16,
1666,
6418,
13,
365,
18,
17824,
3744,
67,
2138,
273,
23425,
18,
53,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5915,
4672,
5915,
18,
542,
16707,
2932,
4881,
7923,
5915,
18,
15169,
12,
26,
2947,
16,
1666,
6418,
13,
365,
18,
17824,
3744,
67,
2138,
273,
23425,
18,
53,
58... |
assert_almost_equal_spec(np.log(np.conj(xa[i])), np.conj(np.log(xa[i]))) | assert_almost_equal(np.log(np.conj(xa[i])), np.conj(np.log(xa[i]))) | def test_special_values(self): xl = [] yl = [] | 8b1f7849329ff9e20b8d222e88356569aa585393 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/8b1f7849329ff9e20b8d222e88356569aa585393/test_umath_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
15643,
273,
5378,
677,
80,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
15643,
273,
5378,
677,
80,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
L = Numeric.size(x) | L = size(x) | def lfiltic(b,a,y,x=None): """Given a linear filter (b,a) and initial conditions on the output y and the input x, return the inital conditions on the state vector zi which is used by lfilter to generate the output given the input. If M=len(b)-1 and N=len(a)-1. Then, the initial conditions are given in the vectors x a... | 936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18594,
4526,
335,
12,
70,
16,
69,
16,
93,
16,
92,
33,
7036,
4672,
3536,
6083,
279,
9103,
1034,
261,
70,
16,
69,
13,
471,
2172,
4636,
603,
326,
876,
677,
471,
326,
810,
619,
16,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18594,
4526,
335,
12,
70,
16,
69,
16,
93,
16,
92,
33,
7036,
4672,
3536,
6083,
279,
9103,
1034,
261,
70,
16,
69,
13,
471,
2172,
4636,
603,
326,
876,
677,
471,
326,
810,
619,
16,
327... |
return WCHAR_T._type.BITS/8 | return r_wchar_t.BITS/8 | def sizeof(tp): """Similar to llmemory.sizeof() but tries hard to return a integer instead of a symbolic value. """ if isinstance(tp, lltype.FixedSizeArray): return sizeof(tp.OF) * tp.length if isinstance(tp, lltype.Struct): # the hint is present in structures probed by rffi_platform. size = tp._hints.get('size') if si... | 03232d63d1d07585de430e0ae57e43d14d3fb37c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/03232d63d1d07585de430e0ae57e43d14d3fb37c/rffi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13726,
12,
6834,
4672,
3536,
16891,
358,
6579,
7858,
18,
1467,
792,
1435,
1496,
9327,
7877,
358,
327,
279,
3571,
3560,
434,
279,
16754,
460,
18,
3536,
309,
1549,
12,
6834,
16,
6579,
723,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13726,
12,
6834,
4672,
3536,
16891,
358,
6579,
7858,
18,
1467,
792,
1435,
1496,
9327,
7877,
358,
327,
279,
3571,
3560,
434,
279,
16754,
460,
18,
3536,
309,
1549,
12,
6834,
16,
6579,
723,... |
muleh rsi, flags=(OF,CF) | muleh ah, flags=(OF,CF) | def macroop MUL_B_M | abe8fb38446c64d40266dfe5aa49e124e2bd5cb3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/abe8fb38446c64d40266dfe5aa49e124e2bd5cb3/multiply_and_divide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
490,
1506,
67,
38,
67,
49,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
490,
1506,
67,
38,
67,
49,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.vboxlayout.setSpacing(6) | self.vboxlayout.setSpacing(2) | def setupUi(self, MinimizeEnergyPropDialog): MinimizeEnergyPropDialog.setObjectName("MinimizeEnergyPropDialog") MinimizeEnergyPropDialog.resize(QtCore.QSize(QtCore.QRect(0,0,400,842).size()).expandedTo(MinimizeEnergyPropDialog.minimumSizeHint())) | 4cf7d69a606c10cf896a0045c5df06ba517408f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4cf7d69a606c10cf896a0045c5df06ba517408f0/MinimizeEnergyPropDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5444,
10153,
664,
31920,
4658,
6353,
4672,
5444,
10153,
664,
31920,
4658,
6353,
18,
542,
16707,
2932,
2930,
10153,
664,
31920,
4658,
6353,
7923,
5444,
10153,
664,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5444,
10153,
664,
31920,
4658,
6353,
4672,
5444,
10153,
664,
31920,
4658,
6353,
18,
542,
16707,
2932,
2930,
10153,
664,
31920,
4658,
6353,
7923,
5444,
10153,
664,
... |
return "Usage: %s <CREDITS> <credits.php> <blanket-permission.php>" % prog_name | return "Usage: %s <CREDITS> <credits.inc> <blanket-permission.inc>" % prog_name | def usage(prog_name): return "Usage: %s <CREDITS> <credits.php> <blanket-permission.php>" % prog_name | f015d2f575e4186dcee82ce8995dc45142d4ab62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/f015d2f575e4186dcee82ce8995dc45142d4ab62/generate_contributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
14654,
67,
529,
4672,
327,
315,
5357,
30,
738,
87,
411,
5458,
40,
10158,
34,
411,
20610,
1282,
18,
9523,
34,
411,
12111,
278,
17,
9827,
18,
9523,
2984,
738,
11243,
67,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
14654,
67,
529,
4672,
327,
315,
5357,
30,
738,
87,
411,
5458,
40,
10158,
34,
411,
20610,
1282,
18,
9523,
34,
411,
12111,
278,
17,
9827,
18,
9523,
2984,
738,
11243,
67,
529,
... |
li.horizontal_mode_set(elementary.ELM_LIST_COMPRESS) | li.mode_set(elementary.ELM_LIST_COMPRESS) | def list3_clicked(obj, it): win = elementary.Window("list-3", elementary.ELM_WIN_BASIC) win.title_set("List 3") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() li = elementary.List(win) win.resize_object_ad... | 4a7cb1bf2e67730857fccc3cfd554136c896cffe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/4a7cb1bf2e67730857fccc3cfd554136c896cffe/test_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
23,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1098,
17,
23,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
23,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1098,
17,
23,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
... |
def __track_on_device( self, track_name ): | def _track_on_device( self, track_name ): | def __track_on_device( self, track_name ): for t in self.tracks_list: if track_name == t.title: return t return False | d399120b89e4b38e793e443e6a19cad0a724c6a0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/d399120b89e4b38e793e443e6a19cad0a724c6a0/sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4101,
67,
265,
67,
5964,
12,
365,
16,
3298,
67,
529,
262,
30,
364,
268,
316,
365,
18,
21499,
67,
1098,
30,
309,
3298,
67,
529,
422,
268,
18,
2649,
30,
327,
268,
327,
1083,
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,
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,
4101,
67,
265,
67,
5964,
12,
365,
16,
3298,
67,
529,
262,
30,
364,
268,
316,
365,
18,
21499,
67,
1098,
30,
309,
3298,
67,
529,
422,
268,
18,
2649,
30,
327,
268,
327,
1083,
2,
... |
([1, 0], {1: 0, 0: 1}) | ([1, 0], {0: 1, 1: 0}) | def supersingular_points(self): r""" This function computes the supersingular j-invariants over the finite field associated to self. | f2135af44f01edbdcd2a4661fd321a9928269b8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/f2135af44f01edbdcd2a4661fd321a9928269b8a/ssmod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
4139,
12,
2890,
4672,
436,
8395,
1220,
445,
15881,
326,
1169,
414,
17830,
525,
17,
267,
15886,
1879,
326,
25922,
652,
3627,
358,
365,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
4139,
12,
2890,
4672,
436,
8395,
1220,
445,
15881,
326,
1169,
414,
17830,
525,
17,
267,
15886,
1879,
326,
25922,
652,
3627,
358,
365,
18,
2,
-100,
-100,
-100,
-100,... |
return dict(error=error, count=count, parent_id=p_id, parent_name=p_name) | return dict(error=error, count=count, parent_id=p_id, parent_name=parent) | def add_factor(self, **kw): id = kw.get('id') error = '' p_name = 'No Parent' model = "comparison.factor" proxy = rpc.RPCProxy(model) res = proxy.read([id], ['id', 'parent_id']) parent = res[0].get('parent_id') p_id = id if parent: | 7293b73a4f153b23b7278e98e303838f1a7269b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7293b73a4f153b23b7278e98e303838f1a7269b6/comparison.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6812,
12,
2890,
16,
2826,
9987,
4672,
225,
612,
273,
5323,
18,
588,
2668,
350,
6134,
555,
273,
875,
293,
67,
529,
273,
296,
2279,
9520,
11,
225,
938,
273,
315,
23050,
18,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6812,
12,
2890,
16,
2826,
9987,
4672,
225,
612,
273,
5323,
18,
588,
2668,
350,
6134,
555,
273,
875,
293,
67,
529,
273,
296,
2279,
9520,
11,
225,
938,
273,
315,
23050,
18,
68... |
class _BaseKeywordDoc(_DocToHtml): | class _BaseKeywordDoc(_DocHelper): | def _get_doc(self, lib): return "Documentation for resource file `%s`." % lib.name | cb95dea07e96d54d843c0aed351e0ed955bfdd79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/cb95dea07e96d54d843c0aed351e0ed955bfdd79/libdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2434,
12,
2890,
16,
2561,
4672,
327,
315,
18905,
364,
1058,
585,
12430,
87,
68,
1199,
738,
2561,
18,
529,
282,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2434,
12,
2890,
16,
2561,
4672,
327,
315,
18905,
364,
1058,
585,
12430,
87,
68,
1199,
738,
2561,
18,
529,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
font-family: courier, monospace; | font-family: monospace; | def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r""" | 82aa8bf8730f6ffcf9f83b66f4df7edb18da69a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/82aa8bf8730f6ffcf9f83b66f4df7edb18da69a0/css.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def IsEnabled(self, item): """Returns whether an item is enabled or disabled.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
1526,
12,
2890,
16,
761,
4672,
3536,
1356,
2856,
392,
761,
353,
3696,
578,
5673,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
1526,
12,
2890,
16,
761,
4672,
3536,
1356,
2856,
392,
761,
353,
3696,
578,
5673,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
class binhunk(githunk): 'A binary patch file. Only understands literals so far.' def __init__(self, gitpatch): super(binhunk, self).__init__(gitpatch) self.hunk = ['GIT binary patch\n'] | def new(self): return [self.text] | a43cd23daa6dc8a784d09525db40e8371edde9ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/a43cd23daa6dc8a784d09525db40e8371edde9ba/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
327,
306,
2890,
18,
955,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
327,
306,
2890,
18,
955,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
for name, setting in self.buildSettingsId[1]: | for name, setting, buildfile, fileref in self.buildSettingsId[1]: | def writeXCConfigurationList(self): self.writeXCBuildConfiguration() w = self.file.write w("/* Begin XCConfigurationList section */\n") w("\t%s = {\n" % self.buildSettingsId[0]) w("\t\tisa = XCConfigurationList;\n") w("\t\tbuildConfigurations = (\n") for name, setting in self.buildSettingsId[1]: w("\t\t\t%s,\n" % setti... | 52ac41d46ade8d8225f37eca6a924d174b6b14d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/52ac41d46ade8d8225f37eca6a924d174b6b14d8/xcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
60,
39,
1750,
682,
12,
2890,
4672,
365,
18,
2626,
60,
39,
3116,
1750,
1435,
341,
273,
365,
18,
768,
18,
2626,
341,
2932,
20308,
14323,
1139,
39,
1750,
682,
2442,
1195,
64,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
60,
39,
1750,
682,
12,
2890,
4672,
365,
18,
2626,
60,
39,
3116,
1750,
1435,
341,
273,
365,
18,
768,
18,
2626,
341,
2932,
20308,
14323,
1139,
39,
1750,
682,
2442,
1195,
64,
82,
... |
" --plot-cum-loudest --plot-pdf-loudest --plot-ng --plot-efficiency --cum-search-ng" | " --plot-cum-loudest --plot-pdf-loudest --plot-ng --plot-efficiency --cum-search-ng"+\ " --num-slides 50 --statistic "+ stat_dict["statistic"]+\ " --bittenl_a "+stat_dict["bittenl_a"]+ " --bittenl_b "+stat_dict["bittenl_b"] | def symlinksafe( target, linkname ): """ Creates a link, does not nag about when it already exists """ try: os.symlink( target, linkname ) except OSError, (errno, strerror): if errno==17: print "WARNING: link %s already exist" % (linkname) else: raise | 6ad3c83b17a791224c0765a4003cd99798d403c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/6ad3c83b17a791224c0765a4003cd99798d403c1/upperlimit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10563,
4626,
12,
1018,
16,
1692,
529,
262,
30,
3536,
10210,
279,
1692,
16,
1552,
486,
290,
346,
2973,
1347,
518,
1818,
1704,
3536,
775,
30,
1140,
18,
21278,
12,
1018,
16,
1692,
529,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10563,
4626,
12,
1018,
16,
1692,
529,
262,
30,
3536,
10210,
279,
1692,
16,
1552,
486,
290,
346,
2973,
1347,
518,
1818,
1704,
3536,
775,
30,
1140,
18,
21278,
12,
1018,
16,
1692,
529,
26... |
new_nick = presence.find('{http://jabber.org/protocol/muc if user.nick == room.own_nick: room.own_nick = new_nick for _room in self.rooms: if _room.jid is not None and is_jid_the_same(_room.jid, room.name): _room.own_nick = new_nick user.change_nick(new_nick) self.add_message_to_room(room, _('[%(old)s] is now known as... | self.on_user_nick_change(room, presence, user, from_nick, from_room) | def on_groupchat_presence(self, presence): """ Triggered whenever a presence stanza is received from a user in a multi-user chat room. Display the presence on the room window and update the presence information of the concerned user """ from common import debug from_nick = presence['from'].resource from_room = presence... | ed39518bf6f74fffb53cbe46f23577d3dfc0cbd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/ed39518bf6f74fffb53cbe46f23577d3dfc0cbd0/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1655,
10880,
67,
21731,
12,
2890,
16,
9805,
4672,
3536,
11321,
329,
17334,
279,
9805,
21650,
353,
5079,
628,
279,
729,
316,
279,
3309,
17,
1355,
7916,
7725,
18,
9311,
326,
9805,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
67,
1655,
10880,
67,
21731,
12,
2890,
16,
9805,
4672,
3536,
11321,
329,
17334,
279,
9805,
21650,
353,
5079,
628,
279,
729,
316,
279,
3309,
17,
1355,
7916,
7725,
18,
9311,
326,
9805,... |
UI.LayoutTableRow( UI.Label(text='Login: '), UI.TextInput(name='login') ), UI.LayoutTableRow( UI.Label(text='Password: '), UI.TextInput(name='password') | UI.LayoutTable( UI.LayoutTableRow( UI.Label(text='Login: '), UI.TextInput(name='login') ), UI.LayoutTableRow( UI.Label(text='Password: '), UI.TextInput(name='password') ) | def get_ui_sec(self): tbl = UI.DataTable( UI.DataTableRow( UI.DataTableCell(UI.Label(text='Login'), width='200px'), UI.Label(), header=True ) ) for s in self.config.options('users'): tbl.appendChild( UI.DataTableRow( UI.Label(text=s), UI.DataTableCell( UI.MiniButton(text='Delete', id='deluser/'+s), hidden=True ) ) ) o ... | 01a7422a3a06c44c1d028a1c996024c581b948c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/01a7422a3a06c44c1d028a1c996024c581b948c3/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4881,
67,
3321,
12,
2890,
4672,
10142,
273,
6484,
18,
21237,
12,
6484,
18,
21237,
1999,
12,
6484,
18,
21237,
4020,
12,
5370,
18,
2224,
12,
955,
2218,
5358,
19899,
1835,
2218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4881,
67,
3321,
12,
2890,
4672,
10142,
273,
6484,
18,
21237,
12,
6484,
18,
21237,
1999,
12,
6484,
18,
21237,
4020,
12,
5370,
18,
2224,
12,
955,
2218,
5358,
19899,
1835,
2218,
... |
self.assertEqual(u"<span>\u25cb\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d</span>", i.get_description()) | self.assertEqual(u"\u25cb\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d", i.get_description()) | def test_valid_utf_feed(self): handle, self.filename = mkstemp(".xml") handle = open(self.filename, "wb") handle.write(u'<?xml version="1.0"?>\n<rss version="2.0">\n <channel>\n <title>Chinese Numbers \u25cb\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d</title>\n <description>Chinese Numbers \u25cb\u4e00... | f3516de9855ccae9ec1570f5dda809dd3d12612d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/f3516de9855ccae9ec1570f5dda809dd3d12612d/unicodetest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
877,
67,
3158,
67,
7848,
12,
2890,
4672,
1640,
16,
365,
18,
3459,
273,
5028,
19781,
84,
2932,
18,
2902,
7923,
1640,
273,
1696,
12,
2890,
18,
3459,
16,
315,
9464,
7923,
1640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
877,
67,
3158,
67,
7848,
12,
2890,
4672,
1640,
16,
365,
18,
3459,
273,
5028,
19781,
84,
2932,
18,
2902,
7923,
1640,
273,
1696,
12,
2890,
18,
3459,
16,
315,
9464,
7923,
1640,
... |
from pyPgSQL import PgSQL return PgSQL.connect(database=name) | from pyPgSQL import PgSQL return PgSQL.connect(database=name) | def get_connection(name) : from pyPgSQL import PgSQL return PgSQL.connect(database=name) | c8a618b16ec6f950b520d1f2a7d9bebd1142eac7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/c8a618b16ec6f950b520d1f2a7d9bebd1142eac7/__unittest_data__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4071,
12,
529,
13,
294,
628,
2395,
27265,
3997,
1930,
26344,
3997,
327,
26344,
3997,
18,
3612,
12,
6231,
33,
529,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
4071,
12,
529,
13,
294,
628,
2395,
27265,
3997,
1930,
26344,
3997,
327,
26344,
3997,
18,
3612,
12,
6231,
33,
529,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
leaves = wkcal.compute_leaves(cr, uid, calendar_id , resource_id[0], resource.get('calendar_id')[0]) | if resource.get('calendar_id', False): leaves = wkcal.compute_leaves(cr, uid, calendar_id , resource_id[0], resource['calendar_id'] and resource['calendar_id'][0] or False) | def _compute_date(self, cr, uid, data, context): """ Schedule the tasks according to resource available and priority. """ pool = pooler.get_pool(cr.dbname) project_obj = pool.get('project.project') task_pool = pool.get('project.task') resource_obj = pool.get('resource.resource') user_obj = pool.get('res.users') project... | 5653f51a43724eaacc1fff4464501803d6b4d59f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5653f51a43724eaacc1fff4464501803d6b4d59f/compute_tasks_date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9200,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
3536,
10674,
326,
4592,
4888,
358,
1058,
2319,
471,
4394,
18,
3536,
2845,
273,
2845,
264,
18,
588,
67,
6011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9200,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
3536,
10674,
326,
4592,
4888,
358,
1058,
2319,
471,
4394,
18,
3536,
2845,
273,
2845,
264,
18,
588,
67,
6011,
... |
raise Todo("PointSymbolizer does not support pickling yet.") | p = mapnik.PointSymbolizer("../data/images/dummy.png", "png", 16, 16) p2 = pickle.loads(pickle.dumps(p,pickle.HIGHEST_PROTOCOL)) eq_(p.filename, p2.filename) eq_(p.allow_overlap, p2.allow_overlap) eq_(p.opacity, p2.opacity) | def test_pointsymbolizer_pickle(): raise Todo("PointSymbolizer does not support pickling yet.") #p = mapnik.PointSymbolizer() #p2 = pickle.loads(pickle.dumps(p,pickle.HIGHEST_PROTOCOL)) #eq_(p2, p) | 5b9ddbaecd93c75344cd473344f974b2a9dbdfe2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12100/5b9ddbaecd93c75344cd473344f974b2a9dbdfe2/object_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4139,
3284,
1824,
67,
20847,
13332,
1002,
399,
7370,
2932,
2148,
5335,
1824,
1552,
486,
2865,
6002,
2456,
4671,
1199,
13,
468,
84,
273,
852,
82,
1766,
18,
2148,
5335,
1824,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4139,
3284,
1824,
67,
20847,
13332,
1002,
399,
7370,
2932,
2148,
5335,
1824,
1552,
486,
2865,
6002,
2456,
4671,
1199,
13,
468,
84,
273,
852,
82,
1766,
18,
2148,
5335,
1824,
143... |
product = 'Extras Packages for Enterprise Linux' | product = 'Fedora EPEL' | def __init__(self, cvspath=None): '''Pull information on releases from the cvs modules file. | 207a9ae6fdfc28643d37feaf12c85459e5d63192 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/207a9ae6fdfc28643d37feaf12c85459e5d63192/pkgdb-import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
276,
6904,
803,
33,
7036,
4672,
9163,
9629,
1779,
603,
14824,
628,
326,
276,
6904,
4381,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
276,
6904,
803,
33,
7036,
4672,
9163,
9629,
1779,
603,
14824,
628,
326,
276,
6904,
4381,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
passb = tan(pi*wp/2) stopb = tan(pi*ws/2) else: passb = wp stopb = ws | passb = tan(pi*wp/2.0) stopb = tan(pi*ws/2.0) else: passb = wp*1.0 stopb = ws*1.0 | def cheb2ord(wp, ws, gpass, gstop, analog=0): """Chebyshev type II filter order selection. Description: Return the order of the lowest order digital Chebyshev Type II filter that loses no more than gpass dB in the passband and has at least gstop dB attenuation in the stopband. Inputs: wp, ws -- Passband and stopban... | a2da3ca000f5d70466563d50355b6ec67f735ec1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/a2da3ca000f5d70466563d50355b6ec67f735ec1/filter_design.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19315,
70,
22,
517,
12,
8612,
16,
4945,
16,
4178,
428,
16,
314,
5681,
16,
25714,
33,
20,
4672,
3536,
39,
580,
1637,
87,
580,
90,
618,
23076,
1034,
1353,
4421,
18,
225,
6507,
30,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19315,
70,
22,
517,
12,
8612,
16,
4945,
16,
4178,
428,
16,
314,
5681,
16,
25714,
33,
20,
4672,
3536,
39,
580,
1637,
87,
580,
90,
618,
23076,
1034,
1353,
4421,
18,
225,
6507,
30,
225,... |
help='Hostname where zope is running at') | help='Hostname where zope is running at.') | def init_argparser(self, parser): """Add our arguments to a parser """ | 1cbea72a4cc6134ec543b7e66641f74522ba3a07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14549/1cbea72a4cc6134ec543b7e66641f74522ba3a07/reload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
3175,
4288,
12,
2890,
16,
2082,
4672,
3536,
986,
3134,
1775,
358,
279,
2082,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
3175,
4288,
12,
2890,
16,
2082,
4672,
3536,
986,
3134,
1775,
358,
279,
2082,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
(attachid, mailresults) = server._proxy.bugzilla.addAttachment(id,kwargs,self.user,self.password) | (attachid, mailresults) = self._proxy.bugzilla.addAttachment(id,kwargs,self.user,self.password) | def attachfile(self,id,attachfile,description,**kwargs): '''Attach a file to the given bug ID. Returns the ID of the attachment or raises xmlrpclib.Fault if something goes wrong. attachfile may be a filename (which will be opened) or a file-like object, which must provide a 'read' method. If it's not one of these, this... | 2f073b7393dd660d21870f2a1b68e250efcf8cc9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5050/2f073b7393dd660d21870f2a1b68e250efcf8cc9/bugzilla.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3306,
768,
12,
2890,
16,
350,
16,
7331,
768,
16,
3384,
16,
636,
4333,
4672,
9163,
4761,
279,
585,
358,
326,
864,
7934,
1599,
18,
2860,
326,
1599,
434,
326,
6042,
578,
14183,
2025,
1383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3306,
768,
12,
2890,
16,
350,
16,
7331,
768,
16,
3384,
16,
636,
4333,
4672,
9163,
4761,
279,
585,
358,
326,
864,
7934,
1599,
18,
2860,
326,
1599,
434,
326,
6042,
578,
14183,
2025,
1383... |
attrnumber = len(self._v_attrnames) | attrnumber = len([ n for n in self._v_attrnames if not issysattrname(n) ]) | def __str__(self): """The string representation for this object.""" # Get the associated filename filename = self._v_node._v_rootgroup._v_filename # The pathname pathname = self._v_node._v_pathname # Get this class name classname = self.__class__.__name__ # Get the parent class name pclassname = self._v_node.__class__.... | 3f411b704163ae8c1a50c6a42b99fee2d28661fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12687/3f411b704163ae8c1a50c6a42b99fee2d28661fd/AttributeSet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
1986,
533,
4335,
364,
333,
733,
12123,
468,
968,
326,
3627,
1544,
1544,
273,
365,
6315,
90,
67,
2159,
6315,
90,
67,
3085,
1655,
6315,
90,
67,
3459... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
4672,
3536,
1986,
533,
4335,
364,
333,
733,
12123,
468,
968,
326,
3627,
1544,
1544,
273,
365,
6315,
90,
67,
2159,
6315,
90,
67,
3085,
1655,
6315,
90,
67,
3459... |
print "Returning object: ", cname | def __getattr__ ( self, inName ): # Get the variable or command from the namespace qname = self.ns + "::" + inName for name in ( inName, qname ): # if it's a variable, find the value, and see if it's a command if self.__eval ( 'info exists ' + name ): print "found name: ", name cname = str ( self.__eval ( 'set ' + name... | 30f3b179bb2252671e45b7d445b38107ea139132 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12580/30f3b179bb2252671e45b7d445b38107ea139132/Slicer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
261,
365,
16,
316,
461,
262,
30,
468,
968,
326,
2190,
578,
1296,
628,
326,
1981,
12621,
273,
365,
18,
2387,
397,
31120,
397,
316,
461,
364,
508,
316,
261,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
261,
365,
16,
316,
461,
262,
30,
468,
968,
326,
2190,
578,
1296,
628,
326,
1981,
12621,
273,
365,
18,
2387,
397,
31120,
397,
316,
461,
364,
508,
316,
261,
316,
... | |
found = False | seedfound = False | def get_data(self): defaults = { "local-hostname" : "ubuntuhost", "instance-id" : "nocloud" } | 515b25be6fc4fa370653d56015542c1944f2cdc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10142/515b25be6fc4fa370653d56015542c1944f2cdc8/DataSourceNoCloud.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
2890,
4672,
3467,
273,
288,
315,
3729,
17,
10358,
6,
294,
315,
373,
25348,
2564,
3113,
315,
1336,
17,
350,
6,
294,
315,
31470,
2760,
6,
289,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
2890,
4672,
3467,
273,
288,
315,
3729,
17,
10358,
6,
294,
315,
373,
25348,
2564,
3113,
315,
1336,
17,
350,
6,
294,
315,
31470,
2760,
6,
289,
2,
-100,
-100,
-100,
-1... |
except (TypeError, AttributeError): pass | def prepare(self, font_dict=None, color_dict=None): """ basic prepare function """ try: if self.visible not in ('', 'yes'): if len(self.visible) > 4 and self.visible[:4] == 'not ': p = plugin.getbyname(self.visible[4:]) else: p = plugin.getbyname(self.visible) if len(self.visible) > 4 and self.visible[:4] == 'not ': se... | c4cb3154a9bea9c4cc26ab2916fee7a863194470 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c4cb3154a9bea9c4cc26ab2916fee7a863194470/theme.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
12,
2890,
16,
3512,
67,
1576,
33,
7036,
16,
2036,
67,
1576,
33,
7036,
4672,
3536,
5337,
2911,
445,
3536,
775,
30,
309,
365,
18,
8613,
486,
316,
7707,
2187,
296,
9707,
11,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
3512,
67,
1576,
33,
7036,
16,
2036,
67,
1576,
33,
7036,
4672,
3536,
5337,
2911,
445,
3536,
775,
30,
309,
365,
18,
8613,
486,
316,
7707,
2187,
296,
9707,
11,
4672,
... | |
self._classifier.get_feature_functions()[0]] | ImageBase.get_feature_functions()[0]] | def _OnChangeSetOfFeatures(self, event): all_features = [x[0] for x in ImageBase.methods_flat_category("Features", ONEBIT)] all_features.sort() existing_features = [x[0] for x in self._classifier.get_feature_functions()[0]] feature_controls = [] for x in all_features: feature_controls.append( Check('', x, default=(x in... | ea003ccf8555df2263428d8007ca7313c6d59f5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/ea003ccf8555df2263428d8007ca7313c6d59f5d/classifier_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1398,
21565,
951,
8696,
12,
2890,
16,
871,
4672,
777,
67,
7139,
273,
306,
92,
63,
20,
65,
364,
619,
316,
3421,
2171,
18,
5163,
67,
15401,
67,
4743,
2932,
8696,
3113,
15623,
15650,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1398,
21565,
951,
8696,
12,
2890,
16,
871,
4672,
777,
67,
7139,
273,
306,
92,
63,
20,
65,
364,
619,
316,
3421,
2171,
18,
5163,
67,
15401,
67,
4743,
2932,
8696,
3113,
15623,
15650,... |
counts = {} destmap = {} catmap = {} catlist = [] catpages = [] if self.often: target = self.often_redirect_cat[self.site.family.name ][self.site.lang] else: target = self.cat_redirect_cat[self.site.family.name ][self.site.lang] | counts, destmap, catmap = {}, {}, {} catlist, catpages, nonemptypages = [], [], [] target = self.cat_redirect_cat[self.site.family.name][self.site.lang] | def run(self): """Run the bot""" self.site = wikipedia.getSite() self.catprefix = self.site.namespace(14)+":" self.result_queue = Queue.Queue() self.log_text = [] | ca6eab2770b59d8de16a37e0a8778c56d5e52a34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/ca6eab2770b59d8de16a37e0a8778c56d5e52a34/category_redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
2512,
8395,
365,
18,
4256,
273,
21137,
18,
588,
4956,
1435,
365,
18,
2574,
3239,
273,
365,
18,
4256,
18,
4937,
12,
3461,
13,
9078,
2773,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
2512,
8395,
365,
18,
4256,
273,
21137,
18,
588,
4956,
1435,
365,
18,
2574,
3239,
273,
365,
18,
4256,
18,
4937,
12,
3461,
13,
9078,
2773,
365,
18,... |
list_title ="Co-Cited With %s record"% len(reclist) | list_title ="Co-Cited With %s records"% len(reclist) | def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=cdslang, relevances=[], relevances_prologue="(", relevances_epilogue="%%)", decompress=zlib.decompress): """Prints list of records 'recIDs' formatted accoding to 'format' in groups of 'rg' starting from 'jrec'. Assumes that the input list 'recIDs' is ... | dda932d7ad497e8f74e73b4141dcc5a712641b70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/dda932d7ad497e8f74e73b4141dcc5a712641b70/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
7094,
12,
3658,
16,
1950,
5103,
16,
525,
3927,
33,
21,
16,
14524,
33,
2163,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
4315,
2069,
539,
16,
6707,
90,
6872,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
7094,
12,
3658,
16,
1950,
5103,
16,
525,
3927,
33,
21,
16,
14524,
33,
2163,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
4315,
2069,
539,
16,
6707,
90,
6872,
2... |
if form.has_key('getCity'): query['getCity'] = [form['getCity'],] if form.has_key('min_price') && form.has_key('max_price'): minprice=value(form['min_price']) maxprice=value(form['min_price']) if va | if form.has_key('search_city'): query['getCity'] = [form['search_city'],] if form.has_key('min_price') and form.has_key('max_price'): minprice=int(form['min_price']) maxprice=int(form['min_price']) | def _getItems(self): """ Return a list of (filtered) objects in a folder Used by BathedEstateMixin and get_batched_folder_contents to create a batched sequence and by helper methods to provide values to the template for the next and previous items """ | 126d0e5abb95031def41c6f984da483fec8ed081 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10433/126d0e5abb95031def41c6f984da483fec8ed081/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3126,
12,
2890,
4672,
3536,
2000,
279,
666,
434,
261,
12071,
13,
2184,
316,
279,
3009,
10286,
635,
605,
421,
329,
41,
2019,
14439,
471,
336,
67,
5303,
329,
67,
5609,
67,
3980... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3126,
12,
2890,
4672,
3536,
2000,
279,
666,
434,
261,
12071,
13,
2184,
316,
279,
3009,
10286,
635,
605,
421,
329,
41,
2019,
14439,
471,
336,
67,
5303,
329,
67,
5609,
67,
3980... |
"""Export factions from mod to text file.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Factions...')) menu.AppendItem(menuItem) menuItem.Enable(bool(self.data)) def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfo... | """Export factions from mod to text file.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Factions...')) menu.AppendItem(menuItem) menuItem.Enable(bool(self.data)) def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfo... | def Execute(self,event): fileName = GPath(self.data[0]) fileInfo = bosh.modInfos[fileName] textName = fileName.root+_('_Relations.csv') textDir = bosh.dirs['patches'] textDir.makedirs() #--File dialog textPath = balt.askSave(self.window,_('Export faction relations to:'),textDir,textName, '*Relations.csv') if not textPa... | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
3968,
273,
611,
743,
12,
2890,
18,
892,
63,
20,
5717,
12538,
273,
324,
17636,
18,
1711,
7655,
63,
17812,
65,
977,
461,
273,
3968,
18,
3085,
15,
67,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7903,
12,
2890,
16,
2575,
4672,
3968,
273,
611,
743,
12,
2890,
18,
892,
63,
20,
5717,
12538,
273,
324,
17636,
18,
1711,
7655,
63,
17812,
65,
977,
461,
273,
3968,
18,
3085,
15,
67,
26... |
out.write("<g transform='translate(0, %.1f)'>\n" % (databox[3])) | out.write("<g transform='translate(0, %.1f)'>\n" % plotheight) | def plot(arg, inp, out, meta): """Read data from `inp` and create a plot of the stations specified in the list `arg`. Plot is written to `out`. Metadata (station name, location) is takem from the `meta` file (usually v2.inv). """ import struct BAD = -9999 table = asdict(arg, inp) if meta: meta = get_meta(table, me... | 56f4bc366ef894f5205cbf82b6b8d1525a03fba4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/56f4bc366ef894f5205cbf82b6b8d1525a03fba4/stationplot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
3175,
16,
12789,
16,
596,
16,
2191,
4672,
3536,
1994,
501,
628,
1375,
31647,
68,
471,
752,
279,
3207,
434,
326,
29719,
1269,
316,
326,
666,
1375,
3175,
8338,
225,
15211,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
3175,
16,
12789,
16,
596,
16,
2191,
4672,
3536,
1994,
501,
628,
1375,
31647,
68,
471,
752,
279,
3207,
434,
326,
29719,
1269,
316,
326,
666,
1375,
3175,
8338,
225,
15211,
353,
... |
'external_referential_id':external_referential_id | 'external_referential_id':external_referential_id, 'module':'base_external_referentials' | def ext_import(self,cr, uid, data, external_referential_id, defaults={}, context={}): #Inward data has to be list of dictionary #This function will import a given set of data as list of dictionary into Open ERP if data: write_ids = [] #Will record ids of records modified, not sure if will be used create_ids = [] #Will... | cbd4d0431cd5eb50a3a5ffbf9e18addf059a7904 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7089/cbd4d0431cd5eb50a3a5ffbf9e18addf059a7904/external_osv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1110,
67,
5666,
12,
2890,
16,
3353,
16,
4555,
16,
501,
16,
3903,
67,
266,
586,
2001,
67,
350,
16,
3467,
28793,
819,
12938,
4672,
468,
382,
2913,
501,
711,
358,
506,
666,
434,
3880,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1110,
67,
5666,
12,
2890,
16,
3353,
16,
4555,
16,
501,
16,
3903,
67,
266,
586,
2001,
67,
350,
16,
3467,
28793,
819,
12938,
4672,
468,
382,
2913,
501,
711,
358,
506,
666,
434,
3880,
4... |
self.cachefile = self.escape_url(self.baseurl) + '.data' | self.cachefile = self.escape_url(self.baseurl + '@' + version) + '.data' | def __init__(self, basepath, url, version, arches, components, groups, rawurl): Source.__init__(self, basepath, url, version, arches, components, groups, rawurl) if not self.rawurl: self.baseurl = self.url + '%(version)s/%(component)s/%(arch)s/' else: self.baseurl = self.rawurl self.cachefile = self.escape_url(self.bas... | 4b84fa15c231c5ad72d261fdb27c470a386de4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/4b84fa15c231c5ad72d261fdb27c470a386de4b3/Packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
4672,
4998,
16186,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
281,
16,
4085,
16,
3252,
16,
13954,
4672,
4998,
16186,
2738,
972,
12,
2890,
16,
23853,
16,
880,
16,
1177,
16,
6637,
... |
return pickle.dumps(self.pickil) | return pickle.dumps(self.diffcls) | def Pickle (self): return pickle.dumps(self.pickil) | a40388a69e71e478dcf35e5adea0a42e2dbb404a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/a40388a69e71e478dcf35e5adea0a42e2dbb404a/difficulty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23038,
298,
261,
2890,
4672,
327,
13379,
18,
13302,
1121,
12,
2890,
18,
5413,
6429,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23038,
298,
261,
2890,
4672,
327,
13379,
18,
13302,
1121,
12,
2890,
18,
5413,
6429,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
yield NullBytes(self, "reserverd[]", 6, "(reserved)") | yield NullBytes(self, "reserved[]", 6, "(reserved)") | def createFields(self): yield GUID(self, "clsid", "16 bytes GUID used by some apps") yield UInt16(self, "ver_min", "Minor version") yield UInt16(self, "ver_maj", "Minor version") yield textHandler(UInt16(self, "endian", "Endian (0xFFFE for Intel)"), hexadecimal) yield UInt16(self, "bb_shift", "Log, base 2, of the big b... | 0bd456007e76a497bfd7c6d01b57bc8bd9650ccd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/0bd456007e76a497bfd7c6d01b57bc8bd9650ccd/ole2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
20322,
12,
2890,
16,
315,
6429,
350,
3113,
315,
2313,
1731,
20322,
1399,
635,
2690,
8279,
7923,
2824,
29810,
2313,
12,
2890,
16,
315,
502,
67,
1154,
3113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
12,
2890,
4672,
2824,
20322,
12,
2890,
16,
315,
6429,
350,
3113,
315,
2313,
1731,
20322,
1399,
635,
2690,
8279,
7923,
2824,
29810,
2313,
12,
2890,
16,
315,
502,
67,
1154,
3113... |
return(sort(fits[:,0])) else: return(array([])) | if len(fits) > 0: return(sort(fits[:,0])) return(array([])) | def bs(self, delta_rms=None, dbar=None, delta_ismin=False, dbar_ismin=False, delta_max=None, dbar_max=None, winwidth=15): #{{{2 """ Return a sorted array of all the b values for which fits have been calculated, and which satisfy the keyword requirements. | 3ce7bee8800eba157d17edf5e5b124d917ff6021 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3464/3ce7bee8800eba157d17edf5e5b124d917ff6021/lineament.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7081,
12,
2890,
16,
3622,
67,
29716,
33,
7036,
16,
1319,
297,
33,
7036,
16,
3622,
67,
291,
1154,
33,
8381,
16,
1319,
297,
67,
291,
1154,
33,
8381,
16,
3622,
67,
1896,
33,
7036,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7081,
12,
2890,
16,
3622,
67,
29716,
33,
7036,
16,
1319,
297,
33,
7036,
16,
3622,
67,
291,
1154,
33,
8381,
16,
1319,
297,
67,
291,
1154,
33,
8381,
16,
3622,
67,
1896,
33,
7036,
16,
... |
if r<>'id' and res[r]: | if r != 'id' and res[r]: | def action_install(self, cr, uid, ids, context=None): result=self.read(cr,uid,ids) mod_obj = self.pool.get('ir.module.module') for res in result: for r in res: if r<>'id' and res[r]: ids = mod_obj.search(cr, uid, [('name', '=', r)]) mod_obj.button_install(cr, uid, ids, context=context) cr.commit() db, pool = pooler.res... | 8bcc50815563c589f792f52ebb9d81896ca0c8ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/8bcc50815563c589f792f52ebb9d81896ca0c8ed/profile_association.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
5425,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
563,
33,
2890,
18,
896,
12,
3353,
16,
1911,
16,
2232,
13,
681,
67,
2603,
273,
365,
18,
6011,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5425,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
563,
33,
2890,
18,
896,
12,
3353,
16,
1911,
16,
2232,
13,
681,
67,
2603,
273,
365,
18,
6011,
18,
58... |
self.lineAboveToday = '__WXGTK__' in wx.PlatformInfo | self.lineAboveToday = not '__WXMSW__' in wx.PlatformInfo | def __init__(self, *arguments, **keywords): super (wxMiniCalendar, self).__init__(*arguments, **keywords) # on Linux, because there are no borders around windows, we # want a line separating the minicalendar and preview area, # bug 4273 self.lineAboveToday = '__WXGTK__' in wx.PlatformInfo self.Bind(minical.EVT_MINI_C... | ab7cb62448619f5a47342eb06f6c5ce8a7af8214 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ab7cb62448619f5a47342eb06f6c5ce8a7af8214/CalendarBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
7099,
16,
2826,
11771,
4672,
2240,
261,
27226,
2930,
77,
7335,
16,
365,
2934,
972,
2738,
972,
30857,
7099,
16,
2826,
11771,
13,
225,
468,
603,
13318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
7099,
16,
2826,
11771,
4672,
2240,
261,
27226,
2930,
77,
7335,
16,
365,
2934,
972,
2738,
972,
30857,
7099,
16,
2826,
11771,
13,
225,
468,
603,
13318,
... |
result = self.jobDB._update(cmd) | result = self._update(cmd) | def setJobJDL(self, jobID, JDL=None, originalJDL = None): """ Insert JDL's for job specified by jobID """ | c3aaa93fe6895d4ad4fb05a9fd9d35ad8f667fec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/c3aaa93fe6895d4ad4fb05a9fd9d35ad8f667fec/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2278,
46,
8914,
12,
2890,
16,
28913,
16,
804,
8914,
33,
7036,
16,
2282,
46,
8914,
273,
599,
4672,
3536,
8040,
804,
8914,
1807,
364,
1719,
1269,
635,
28913,
3536,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2278,
46,
8914,
12,
2890,
16,
28913,
16,
804,
8914,
33,
7036,
16,
2282,
46,
8914,
273,
599,
4672,
3536,
8040,
804,
8914,
1807,
364,
1719,
1269,
635,
28913,
3536,
2,
-100,
-100,
-1... |
global CHANGE_FROM_GL if CHANGE_FROM_GL: CHANGE_FROM_GL = False self._update() CHANGE_FROM_GL = True | self._update() | def update(self): """ Build the tree structure of the current model, public interface """ self.disconnect(self, SIGNAL("selectionChanged()"), self.select) global CHANGE_FROM_GL if CHANGE_FROM_GL: CHANGE_FROM_GL = False self._update() CHANGE_FROM_GL = True self.connect(self, SIGNAL("selectionChanged()"), self.select) | cae7aa74ffc33b519b3f9910d5ec0a1520fdf3c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/cae7aa74ffc33b519b3f9910d5ec0a1520fdf3c4/modelTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
3998,
326,
2151,
3695,
434,
326,
783,
938,
16,
1071,
1560,
3536,
365,
18,
20177,
12,
2890,
16,
12057,
1013,
2932,
10705,
5033,
10031,
3631,
365,
18,
4025,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
3998,
326,
2151,
3695,
434,
326,
783,
938,
16,
1071,
1560,
3536,
365,
18,
20177,
12,
2890,
16,
12057,
1013,
2932,
10705,
5033,
10031,
3631,
365,
18,
4025,
13,... |
outbase = string.join(listx, "_") | outbase ="_".join(listx) | def html_page(self): job_id = check_job_id(self.form) title = 'Input Files for Refmac5 TLS Refinement' x = '' x += self.html_head(title) x += self.html_title(title) | 5cf3e0a446f3ad356a457839d6c6a478c04ac208 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/5cf3e0a446f3ad356a457839d6c6a478c04ac208/refineprep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
2433,
12,
2890,
4672,
1719,
67,
350,
273,
866,
67,
4688,
67,
350,
12,
2890,
18,
687,
13,
225,
2077,
273,
296,
1210,
6471,
364,
3941,
5821,
25,
8098,
868,
926,
820,
11,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
2433,
12,
2890,
4672,
1719,
67,
350,
273,
866,
67,
4688,
67,
350,
12,
2890,
18,
687,
13,
225,
2077,
273,
296,
1210,
6471,
364,
3941,
5821,
25,
8098,
868,
926,
820,
11,
225,... |
def process_sql_file(cr, file): | def process_sql_file(cr, fp): | def process_sql_file(cr, file): queries = fp.read().split(';') for query in queries: new_query = ' '.join(query.split()) if new_query: cr.execute(new_query) | af6d826facac8bae1eacf2d1654bd35ee8a8b173 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/af6d826facac8bae1eacf2d1654bd35ee8a8b173/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4669,
67,
768,
12,
3353,
16,
4253,
4672,
6218,
273,
4253,
18,
896,
7675,
4939,
2668,
4359,
13,
364,
843,
316,
6218,
30,
394,
67,
2271,
273,
296,
2418,
5701,
12,
2271,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4669,
67,
768,
12,
3353,
16,
4253,
4672,
6218,
273,
4253,
18,
896,
7675,
4939,
2668,
4359,
13,
364,
843,
316,
6218,
30,
394,
67,
2271,
273,
296,
2418,
5701,
12,
2271,
18,
4... |
self.fps_display.label.delete() | def set_show_FPS(self, value): if value and self.fps_display is None: self.fps_display = clock.ClockDisplay() elif not value and self.fps_display is not None: self.fps_display.unschedule() self.fps_display.label.delete() self.fps_display = None | 86397ee663b6558591a3bcc466efc4afeae01139 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7473/86397ee663b6558591a3bcc466efc4afeae01139/director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4500,
67,
42,
5857,
12,
2890,
16,
460,
4672,
309,
460,
471,
365,
18,
74,
1121,
67,
5417,
353,
599,
30,
365,
18,
74,
1121,
67,
5417,
273,
7268,
18,
14027,
4236,
1435,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4500,
67,
42,
5857,
12,
2890,
16,
460,
4672,
309,
460,
471,
365,
18,
74,
1121,
67,
5417,
353,
599,
30,
365,
18,
74,
1121,
67,
5417,
273,
7268,
18,
14027,
4236,
1435,
1327,
... | |
if self.parent._args.fullReport and (self.parent.numGarbage == 0): | if self.parent._args.fullReport and (self.parent.numGarbage != 0): | def setUp(self): if self.parent._args.fullReport and (self.parent.numGarbage == 0): if self.parent._args.verbose: self.parent.notify.info('getting referrers...') self.index = 0 else: self.finished() | d3a036d2c946a6602f822dbdcdbee7952a08e222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/d3a036d2c946a6602f822dbdcdbee7952a08e222/GarbageReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
309,
365,
18,
2938,
6315,
1968,
18,
2854,
4820,
471,
261,
2890,
18,
2938,
18,
2107,
43,
12332,
480,
374,
4672,
309,
365,
18,
2938,
6315,
1968,
18,
11369,
30,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
309,
365,
18,
2938,
6315,
1968,
18,
2854,
4820,
471,
261,
2890,
18,
2938,
18,
2107,
43,
12332,
480,
374,
4672,
309,
365,
18,
2938,
6315,
1968,
18,
11369,
30,
365... |
parameterValue = [int(x) for x in parameterValue] | parameterValue = [int( x ) for x in parameterValue] | def getTransformationInputDataQuery(self, transName, connection=False): res = self._getConnectionTransID(connection,transName) if not res['OK']: return res connection = res['Value']['Connection'] transID = res['Value']['TransformationID'] req = "SELECT ParameterName,ParameterValue,ParameterType FROM TransformationInput... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15292,
1210,
751,
1138,
12,
2890,
16,
906,
461,
16,
1459,
33,
8381,
4672,
400,
273,
365,
6315,
588,
1952,
1429,
734,
12,
4071,
16,
2338,
461,
13,
309,
486,
400,
3292,
3141,
3546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15292,
1210,
751,
1138,
12,
2890,
16,
906,
461,
16,
1459,
33,
8381,
4672,
400,
273,
365,
6315,
588,
1952,
1429,
734,
12,
4071,
16,
2338,
461,
13,
309,
486,
400,
3292,
3141,
3546,
... |
d[types.CodeType] = _deepcopy_atomic | try: d[types.CodeType] = _deepcopy_atomic except AttributeError: pass | def _deepcopy_atomic(x, memo): return x | 2d807f5def919ee4114a321d0328fa66c95ebeb5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2d807f5def919ee4114a321d0328fa66c95ebeb5/copy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16589,
3530,
67,
27718,
12,
92,
16,
11063,
4672,
327,
619,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16589,
3530,
67,
27718,
12,
92,
16,
11063,
4672,
327,
619,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if pos != 0: T2_matrix[pos, j_prev] += 1 | if pos != 0: T2_matrix[pos, j_prev] += 1 | def supersingular_points(self): r""" This function computes the supersingular j-invariants over the finite field associated to self. | c732f65751748e79d80e2e4cd21b7817d7f75379 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/c732f65751748e79d80e2e4cd21b7817d7f75379/ssmod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
4139,
12,
2890,
4672,
436,
8395,
1220,
445,
15881,
326,
1169,
414,
17830,
525,
17,
267,
15886,
1879,
326,
25922,
652,
3627,
358,
365,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1169,
414,
17830,
67,
4139,
12,
2890,
4672,
436,
8395,
1220,
445,
15881,
326,
1169,
414,
17830,
525,
17,
267,
15886,
1879,
326,
25922,
652,
3627,
358,
365,
18,
2,
-100,
-100,
-100,
-100,... |
percent_directives = C.percent_directives() | def start_next_comp(self): if len(self.__queue) == 0: return | 9aa7762a32c87107aebd42e211e215d6415aed8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9aa7762a32c87107aebd42e211e215d6415aed8f/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
4285,
67,
2919,
12,
2890,
4672,
309,
562,
12,
2890,
16186,
4000,
13,
422,
374,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
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,
787,
67,
4285,
67,
2919,
12,
2890,
4672,
309,
562,
12,
2890,
16186,
4000,
13,
422,
374,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if self.stripspaces and x == stop: | if self.stripspaces and x > stop: | def gather(self): "Collect and return the contents of the window." result = "" for y in range(self.maxy+1): self.win.move(y, 0) stop = self._end_of_line(y) if stop == 0 and self.stripspaces: continue for x in range(self.maxx+1): if self.stripspaces and x == stop: break result = result + chr(ascii.ascii(self.win.inch(y,... | 3a89f93c2404a8b9204e56f62d7a86a04774d488 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/3a89f93c2404a8b9204e56f62d7a86a04774d488/textpad.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11090,
12,
2890,
4672,
315,
10808,
471,
327,
326,
2939,
434,
326,
2742,
1199,
563,
273,
1408,
364,
677,
316,
1048,
12,
2890,
18,
1896,
93,
15,
21,
4672,
365,
18,
8082,
18,
8501,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11090,
12,
2890,
4672,
315,
10808,
471,
327,
326,
2939,
434,
326,
2742,
1199,
563,
273,
1408,
364,
677,
316,
1048,
12,
2890,
18,
1896,
93,
15,
21,
4672,
365,
18,
8082,
18,
8501,
12,
... |
], context=context): | ], context=context) \ or values[field_name] in create_records) \ and values[field_name] not in delete_records): | def create(self, cursor, user, values, context=None): super(ModelSQL, self).create(cursor, user, values, context=context) if self.table_query(context): return False | 5b3f3d3e3c344f272f7f95f425f8afe0bad8216c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/5b3f3d3e3c344f272f7f95f425f8afe0bad8216c/modelsql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
3347,
16,
729,
16,
924,
16,
819,
33,
7036,
4672,
2240,
12,
1488,
3997,
16,
365,
2934,
2640,
12,
9216,
16,
729,
16,
924,
16,
819,
33,
2472,
13,
309,
365,
18,
2121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
3347,
16,
729,
16,
924,
16,
819,
33,
7036,
4672,
2240,
12,
1488,
3997,
16,
365,
2934,
2640,
12,
9216,
16,
729,
16,
924,
16,
819,
33,
2472,
13,
309,
365,
18,
2121... |
namespacedef = ' '.join('%s="%s"' % a for a in attrs) | namespacedef = ' '.join('%s="%s"' % a for a in self.attrs) | namespacedef = ' '.join('%s="%s"' % a for a in attrs) | 82ffaefa6e1bb5d45a938d6a73670d596e2784b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/82ffaefa6e1bb5d45a938d6a73670d596e2784b7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1981,
536,
273,
296,
2418,
5701,
29909,
87,
11613,
87,
5187,
738,
279,
364,
279,
316,
3422,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1981,
536,
273,
296,
2418,
5701,
29909,
87,
11613,
87,
5187,
738,
279,
364,
279,
316,
3422,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
operand1,operand2 = name.split(' ',1) | operand1,operand2 = name.split(' ',1) | def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args = [] if not context: context = {} args = args[:] ids = [] try: if name and str(name).startswith('partner:'): part_id = int(name.split(':')[1]) part = self.pool.get('res.partner').browse(cr, user, part_id, cont... | 69549b1571f4b6e03e6e91268bf36f7d091efbe0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/69549b1571f4b6e03e6e91268bf36f7d091efbe0/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
16,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
6625,
4672,
309,
486,
833,
30,
833,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
16,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
6625,
4672,
309,
486,
833,
30,
833,
273,
5378,
... |
Tests the findgaps Method. The values are compared with the printgaplist method of the libmseed library and visually compared with the SeisGram2K viewer. | Compares calculated gaps in a MiniSEED file with known values. The values are compared with the printgaplist method of the libmseed library and visually compared with the SeisGram2K viewer. | def test_findgaps(self): """ Tests the findgaps Method. The values are compared with the printgaplist method of the libmseed library and visually compared with the SeisGram2K viewer. """ mseed = libmseed() gapslist = mseed.findgaps(os.path.join(self.path,'gaps.mseed')) self.assertEqual(gapslist[0][0], long(119914560197... | 23e6bd848662703b12c6ba62b8bd81f4188927a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/23e6bd848662703b12c6ba62b8bd81f4188927a0/test_libmseed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4720,
75,
6679,
12,
2890,
4672,
3536,
5427,
4807,
8894,
21085,
316,
279,
27987,
1090,
2056,
585,
598,
4846,
924,
18,
225,
1021,
924,
854,
15843,
598,
326,
1172,
15833,
17842,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4720,
75,
6679,
12,
2890,
4672,
3536,
5427,
4807,
8894,
21085,
316,
279,
27987,
1090,
2056,
585,
598,
4846,
924,
18,
225,
1021,
924,
854,
15843,
598,
326,
1172,
15833,
17842,
7... |
data = MetadataBlocks.writeblocks(self.metadata_blocks) | data = MetadataBlock.writeblocks(self.metadata_blocks) | def save(self, filename=None): if filename is None: filename = self.filename try: f = open(filename, 'rb+') except IOError, err: from errno import ENOENT if err.errno != ENOENT: raise f = open(filename, 'ab') # create, then reopen f = open(filename, 'rb+') | 0d7939d6ef40c5dc8247ce2fbbf34bfe5cf61855 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/0d7939d6ef40c5dc8247ce2fbbf34bfe5cf61855/flac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
33,
7036,
4672,
309,
1544,
353,
599,
30,
1544,
273,
365,
18,
3459,
775,
30,
284,
273,
1696,
12,
3459,
16,
296,
6731,
15,
6134,
1335,
8340,
16,
393,
30,
628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
33,
7036,
4672,
309,
1544,
353,
599,
30,
1544,
273,
365,
18,
3459,
775,
30,
284,
273,
1696,
12,
3459,
16,
296,
6731,
15,
6134,
1335,
8340,
16,
393,
30,
628,... |
else: | else: | def __init__(self,workdir="",datafile="datafile.hdf5", force_create=False, force_single=False): '''Create a hdf5 file from pencil code data. Warning!!! This first implementation either reads an existing file or write a new file. Set force_create to True if you want to force the re-creation of the data with new data. No... | bf1a599ad9cde581f4679533ab3c54c55f5e9732 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1377/bf1a599ad9cde581f4679533ab3c54c55f5e9732/hdf5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1252,
1214,
1546,
3113,
892,
768,
1546,
892,
768,
18,
26428,
25,
3113,
2944,
67,
2640,
33,
8381,
16,
2944,
67,
7526,
33,
8381,
4672,
9163,
1684,
279,
242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1252,
1214,
1546,
3113,
892,
768,
1546,
892,
768,
18,
26428,
25,
3113,
2944,
67,
2640,
33,
8381,
16,
2944,
67,
7526,
33,
8381,
4672,
9163,
1684,
279,
242... |
net_count = 0 "8005551213 > llin nets 2001 123 456 78 90" | count = 0 | def testGenerateNetFixture(self): """ This isn't actually a test. It just takes advantage of the test harness to spam a bunch of messages to the supply app and spit out the data in a format that can be sucked into a fixture """ # this is the number of net reports that will be generated net_count = 0 "8005551213 > l... | 276d166a9e47da8e84003af9f4143780d6b751b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/276d166a9e47da8e84003af9f4143780d6b751b4/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4625,
7308,
26392,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4625,
7308,
26392,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
434,
... |
self.workdir=workdir | self.workdir=os.path.abspath(workdir) | def __init__(self,workdir=None,datafile="datafile.hdf5", force_create=False, force_single=False): '''Create a hdf5 file from pencil code data. | 98b630b097590cb905c7c6cb00f9650d82685ae0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1377/98b630b097590cb905c7c6cb00f9650d82685ae0/hdf5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1252,
1214,
33,
7036,
16,
892,
768,
1546,
892,
768,
18,
26428,
25,
3113,
2944,
67,
2640,
33,
8381,
16,
2944,
67,
7526,
33,
8381,
4672,
9163,
1684,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1252,
1214,
33,
7036,
16,
892,
768,
1546,
892,
768,
18,
26428,
25,
3113,
2944,
67,
2640,
33,
8381,
16,
2944,
67,
7526,
33,
8381,
4672,
9163,
1684,
279,
... |
return self.sslBio | return self.bio | def _ptr(self): return self.sslBio | d11d01823be9c35cb9fd8c8343ce3aea15de9275 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8055/d11d01823be9c35cb9fd8c8343ce3aea15de9275/TwistedProtocolWrapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6723,
12,
2890,
4672,
327,
365,
18,
21010,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6723,
12,
2890,
4672,
327,
365,
18,
21010,
225,
2,
-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 'unpack list' a, b, c = l if a != 4 or b != 5 or c != 6: raise TestFailed | Unpack implied tuple | def __getitem__(self, i): if i >= 0 and i < 3: return i raise IndexError | 266376718b5ef8b719876418de4cf98706f4cdcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/266376718b5ef8b719876418de4cf98706f4cdcd/test_unpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
1545,
374,
471,
277,
411,
890,
30,
327,
277,
1002,
10195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
1545,
374,
471,
277,
411,
890,
30,
327,
277,
1002,
10195,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
_check_strides_match(r_vals[r], storage_map[r][0], self.maker.mode.require_matching_strides, node.op) | if thunk_py: assert r in r_vals _check_strides_match(r_vals[r], storage_map[r][0], self.maker.mode.require_matching_strides, node.op) | def f(): for x in no_recycling: x[0] = None | dd22a040c8c892cfff52dc6439ba86ce9897da22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/dd22a040c8c892cfff52dc6439ba86ce9897da22/debugmode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
13332,
364,
619,
316,
1158,
67,
266,
2431,
830,
310,
30,
619,
63,
20,
65,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
13332,
364,
619,
316,
1158,
67,
266,
2431,
830,
310,
30,
619,
63,
20,
65,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
import copy | import copy | def simpleSearch(problem, datastructure): """ Your search algorithm needs to return a list of actions. A node is a state, and a node is a position of Pacman on the board. a successor is a tuple: ( successor-node, step-action, step-cost ), and returned by problem.getSuccessors a path is a list of successors, and is s... | ac7c6702486eaace4af150c79e8fd822458db8aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/840/ac7c6702486eaace4af150c79e8fd822458db8aa/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
2979,
12,
18968,
16,
5386,
13583,
4672,
3536,
20471,
1623,
4886,
4260,
358,
327,
279,
666,
434,
4209,
18,
225,
432,
756,
353,
279,
919,
16,
471,
279,
756,
353,
279,
1754,
434,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4143,
2979,
12,
18968,
16,
5386,
13583,
4672,
3536,
20471,
1623,
4886,
4260,
358,
327,
279,
666,
434,
4209,
18,
225,
432,
756,
353,
279,
919,
16,
471,
279,
756,
353,
279,
1754,
434,
45... |
expected_text="[57, 79, 88]")) | expected_text="[57, 79, 80, 88]")) | def test_special_terms_u1_and_sl_or_parens(self): """websearch - query for special terms, (U(1) OR SL(2,Z))""" self.assertEqual([], test_web_page_content(CFG_SITE_URL + '/search?of=id&p=%28U%281%29+OR+SL%282%2CZ%29%29', expected_text="[57, 79, 88]")) | 238ec4d0ba64cdfcc061bd70adcca4ed87700967 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/238ec4d0ba64cdfcc061bd70adcca4ed87700967/websearch_regression_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
67,
10112,
67,
89,
21,
67,
464,
67,
2069,
67,
280,
67,
1848,
2387,
12,
2890,
4672,
3536,
4875,
3072,
300,
843,
364,
4582,
6548,
16,
261,
57,
12,
21,
13,
4869,
348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9371,
67,
10112,
67,
89,
21,
67,
464,
67,
2069,
67,
280,
67,
1848,
2387,
12,
2890,
4672,
3536,
4875,
3072,
300,
843,
364,
4582,
6548,
16,
261,
57,
12,
21,
13,
4869,
348,
... |
True if RE and other are the same enzyme.""" return other is cls | True if RE and other are the same enzyme. Specifically this checks they are the same Python object. """ return id(cls)==id(other) | def __eq__(cls, other): """RE == other -> bool | b5f1d850559e85f87a938c5f993d304d32cdc6d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/b5f1d850559e85f87a938c5f993d304d32cdc6d2/Restriction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
6429,
16,
1308,
4672,
3536,
862,
422,
1308,
317,
1426,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
6429,
16,
1308,
4672,
3536,
862,
422,
1308,
317,
1426,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'anchor': ('AjaxForeignKey', ["orm['datatree.DataTree']"], {}), | 'anchor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['datatree.DataTree']"}), | def backwards(self, orm): # Deleting model 'StudentClassRegModuleInfo' db.delete_table('modules_studentclassregmoduleinfo') # Deleting model 'RemoteProfile' db.delete_table('modules_remoteprofile') # Deleting model 'ClassRegModuleInfo' db.delete_table('modules_classregmoduleinfo') # Deleting model 'SATPrepTeacherMo... | 2ef0cc4f8263d0a1c5513b549ab9d107a9531d54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/2ef0cc4f8263d0a1c5513b549ab9d107a9531d54/0001_initial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12727,
12,
2890,
16,
13969,
4672,
225,
468,
20988,
310,
938,
296,
19943,
319,
797,
1617,
3120,
966,
11,
1319,
18,
3733,
67,
2121,
2668,
6400,
67,
26240,
1106,
1574,
2978,
1376,
6134,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12727,
12,
2890,
16,
13969,
4672,
225,
468,
20988,
310,
938,
296,
19943,
319,
797,
1617,
3120,
966,
11,
1319,
18,
3733,
67,
2121,
2668,
6400,
67,
26240,
1106,
1574,
2978,
1376,
6134,
225... |
return ", ".join( "%s=%s" % (key, getattr(self, key)) for key in keys) | return ", ".join([ "%s=%s" % (key, getattr(self, key)) for key in keys]) | def __str__(self): keys = ("client_version", "socket", "name", "sport", "addr", "uid", "groups", "connect_timestamp", "expire") return ", ".join( "%s=%s" % (key, getattr(self, key)) for key in keys) | ae02772ff400e7b08fa5c7c16eaa3e34bffc92c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/ae02772ff400e7b08fa5c7c16eaa3e34bffc92c9/command_dec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
1311,
273,
7566,
2625,
67,
1589,
3113,
315,
7814,
3113,
315,
529,
3113,
315,
87,
655,
3113,
315,
4793,
3113,
315,
1911,
3113,
315,
4650,
3113,
315,
3612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
4672,
1311,
273,
7566,
2625,
67,
1589,
3113,
315,
7814,
3113,
315,
529,
3113,
315,
87,
655,
3113,
315,
4793,
3113,
315,
1911,
3113,
315,
4650,
3113,
315,
3612,
... |
script_lines.append("import sys\n") | script_lines.append("import windows_api\n") | def main(): global STARTER_SCRIPT_NAME added_to_startup = 0 prog_path = os.getcwd() output("Checking OS...") if platform.system() != "Windows": # If it's not Windows, this isn't the right installer output("This installer is designed for use on Windows XP or Vista only.") output("Please download the correct installer fo... | b735237fc7df87995035516b905607218d4ecfb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/b735237fc7df87995035516b905607218d4ecfb5/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
21807,
2560,
67,
10885,
67,
1985,
3096,
67,
869,
67,
23939,
273,
374,
11243,
67,
803,
273,
1140,
18,
588,
11089,
1435,
876,
2932,
14294,
5932,
7070,
13,
309,
4072,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
21807,
2560,
67,
10885,
67,
1985,
3096,
67,
869,
67,
23939,
273,
374,
11243,
67,
803,
273,
1140,
18,
588,
11089,
1435,
876,
2932,
14294,
5932,
7070,
13,
309,
4072,
18,... |
memoryUnits[0] = '0.125' | memoryUnits[0] = '2**-13' | def getOvfCurrentMemory(virtualHardware, configId=None): """ Retrieves the amount of memory (kB) to be allocated for the virtual machine from the Ovf file. @note: DSP0004 v2.5.0 outlines the Programmatic Unit forms for OVF. This pertains specifically to rasd:AllocationUnits, which accepts both the current and deprecat... | 9a3dfb5d70a0718a21504db41a86aad7ec160a32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/9a3dfb5d70a0718a21504db41a86aad7ec160a32/OvfLibvirt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17971,
90,
74,
3935,
6031,
12,
12384,
44,
14519,
16,
642,
548,
33,
7036,
4672,
3536,
20507,
326,
3844,
434,
3778,
261,
79,
38,
13,
358,
506,
11977,
364,
326,
5024,
5228,
628,
326,
531,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17971,
90,
74,
3935,
6031,
12,
12384,
44,
14519,
16,
642,
548,
33,
7036,
4672,
3536,
20507,
326,
3844,
434,
3778,
261,
79,
38,
13,
358,
506,
11977,
364,
326,
5024,
5228,
628,
326,
531,... |
vb37yAONRfBQ3GaLSAoDQAxRYdj70Ht0Sn38GQNQ4XVvpqQ7+HUJC4idhy+U7psOVmoEVhCghIs9 iN/X4CKQhg9oOIk8mu3WNusmrCsCUyqcU8/3W9uuCCV2CDvGdRcnECjChmYwhJURM8B8ti385FvJ OFOLXVKLIVeh2B4W/kYIZj0IAFGeADiayG1uu13sUOjWPrJMEDZXyLbLVrgiEkC7CMwWXgbYtvvP 3SVoqFgq8VCJXdQtFVze+/7CjVrAdHf/dChQaJCfGUtbutvnBBZ8lXQTGg18kobPde4E0JH2IR8V rqEbyGEfZNxQ... | vb37yAONRfBQ3GaLSAoDQAxRYdj70HuESn38GQNQ4XVvppQ7+HUJC1Sdhy+U7psOVmoEVhBwhIs9 VN/X4CKQhg9oOIk8mu3WNusmrCsCUyp0U8/3W9uuCCV2CDvGdRcnECjChmYwhJURM8B8ti385FvJ OFOLXVKLIVeh2B4W/kYIZj0IAFGeADiayG1uu13sUOjWP+JMEDZXyLbLVrgiEkC7CMwWXgbYtvvP 3SVoqFgq8VCJXdQtFoze+/7CjVrAdHf/dChQaJCfGUtbutvnBBeslXQTGg18kvLPde4E0JH2IR8W PIXAHrqBHGTc... | def get_exe_bytes (self): import base64 return base64.decodestring (EXEDATA) | bcce7ec422e6c2e957d00068bf5750d3f67f8e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bcce7ec422e6c2e957d00068bf5750d3f67f8e57/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
261,
2294,
2056,
3706,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
raise TypeError, "ainvs must be a list of integers." | raise TypeError, "ainvs must be a list or tuple of integers." | def __init__(self, ainvs, verbose=False): r""" Create the mwrank elliptic curve with invariants ``a_invs``, which is a list of `\leq 5` \emph{integers} `a_1`, `a_2`, `a_3`, `a_4`, and `a_`$. | c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
279,
5768,
87,
16,
3988,
33,
8381,
4672,
436,
8395,
1788,
326,
14721,
11500,
415,
549,
21507,
8882,
598,
316,
15886,
12176,
69,
67,
5768,
87,
68,
9191,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
279,
5768,
87,
16,
3988,
33,
8381,
4672,
436,
8395,
1788,
326,
14721,
11500,
415,
549,
21507,
8882,
598,
316,
15886,
12176,
69,
67,
5768,
87,
68,
9191,
1... |
likelihood = ? | likelihood = likelihood_ratio(coinc_event_id, time_slide_id) | def ligolw_burca2(database, likelihood_ratio, params_func, verbose = False, params_func_extra_args = ()): """ Assigns likelihood ratio values to excess power coincidences. database is pylal.SnglBurstUtils.CoincDatabase instance, and likelihood_ratio is a LikelihoodRatio class instance. """ # # Find document parts. # t... | 62d8eeaebf6744d5295cd163dbf858f0f5487766 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/62d8eeaebf6744d5295cd163dbf858f0f5487766/ligolw_burca2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16917,
355,
91,
67,
70,
295,
5353,
22,
12,
6231,
16,
18067,
67,
9847,
16,
859,
67,
644,
16,
3988,
273,
1083,
16,
859,
67,
644,
67,
7763,
67,
1968,
273,
1832,
4672,
3536,
12093,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16917,
355,
91,
67,
70,
295,
5353,
22,
12,
6231,
16,
18067,
67,
9847,
16,
859,
67,
644,
16,
3988,
273,
1083,
16,
859,
67,
644,
67,
7763,
67,
1968,
273,
1832,
4672,
3536,
12093,
87,
... |
if self.writeoperation(llopcls, llargs, self.llreprs[tmp], errlabel): self.mark_release(tmp) | self.writeoperation(llopcls, llargs, self.llreprs[tmp], errlabel) | def operation(self, opname, args, result=None, errlabel=None): "Helper to build the LLOps for a single high-level operation." # get the hltypes of the input arguments for v in args: self.makevar(v) args_t = [self.hltypes[v] for v in args] directions = [False] * len(args) # append the hltype of the result if result: sel... | 842d71aa77f5a1dec4c16a6ec8790eb83ff69fa4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/842d71aa77f5a1dec4c16a6ec8790eb83ff69fa4/typer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1674,
12,
2890,
16,
30273,
16,
833,
16,
563,
33,
7036,
16,
393,
1925,
33,
7036,
4672,
315,
2276,
358,
1361,
326,
511,
1502,
1121,
364,
279,
2202,
3551,
17,
2815,
1674,
1199,
468,
336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1674,
12,
2890,
16,
30273,
16,
833,
16,
563,
33,
7036,
16,
393,
1925,
33,
7036,
4672,
315,
2276,
358,
1361,
326,
511,
1502,
1121,
364,
279,
2202,
3551,
17,
2815,
1674,
1199,
468,
336,
... |
if rightDiff<0 and not oldInfo.isCollapsed: | if endToEnd<0 and not oldInfo.isCollapsed: | def speakSelectionChange(oldInfo,newInfo,speakSelected=True,speakUnselected=True,speakSelectionDeleted=True): selectedTextList=[] unselectedTextList=[] if newInfo.isCollapsed and oldInfo.isCollapsed: return if newInfo.compareEndPoints(oldInfo,"startToEnd")>=0 or newInfo.compareEndPoints(oldInfo,"endToStart")<=0: if spe... | 3917512516550c18d6e13529c8dc07ea6ec0508e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/3917512516550c18d6e13529c8dc07ea6ec0508e/speech.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
10244,
6233,
3043,
12,
1673,
966,
16,
2704,
966,
16,
87,
10244,
7416,
33,
5510,
16,
87,
10244,
984,
8109,
33,
5510,
16,
87,
10244,
6233,
7977,
33,
5510,
4672,
3170,
1528,
682,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
272,
10244,
6233,
3043,
12,
1673,
966,
16,
2704,
966,
16,
87,
10244,
7416,
33,
5510,
16,
87,
10244,
984,
8109,
33,
5510,
16,
87,
10244,
6233,
7977,
33,
5510,
4672,
3170,
1528,
682,
33,... |
self.text.append("\n") | self.text.append(self.new_line) | def process_table(self, node, style=""): if self.text[-1].strip(' ') != "\n": self.text.append("\n") self.new_table = True style += self._table_style(node) for i in node.childNodes: if i.nodeType == Node.ELEMENT_NODE: name = i.localName if name == 'tr': self.process_table_record(i, style) style = "" elif name in ('thea... | 4b03df1cf340caeb2a0e882fb5c853890be75c31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/4b03df1cf340caeb2a0e882fb5c853890be75c31/text_html_text_x_moin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2121,
12,
2890,
16,
756,
16,
2154,
1546,
6,
4672,
309,
365,
18,
955,
18919,
21,
8009,
6406,
2668,
8624,
480,
1548,
82,
6877,
365,
18,
955,
18,
6923,
12,
2890,
18,
2704,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2121,
12,
2890,
16,
756,
16,
2154,
1546,
6,
4672,
309,
365,
18,
955,
18919,
21,
8009,
6406,
2668,
8624,
480,
1548,
82,
6877,
365,
18,
955,
18,
6923,
12,
2890,
18,
2704,
67,... |
def unpack(self, archive, output=None): | def unpack(self, archive, output=None, package=None): | def unpack(self, archive, output=None): tf = tarfile.open(archive, "r") members = tf.getmembers() skip = [] if self._renames: for member in members: for oldprefix, newprefix in self._renames: if oldprefix[:len(self._dir)] == self._dir: oldprefix2 = oldprefix[len(self._dir):] else: oldprefix2 = None if member.name[:len(... | 6e85202cd07eb6be416131c43b7216c5fe1a2570 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6e85202cd07eb6be416131c43b7216c5fe1a2570/pimp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
12,
2890,
16,
5052,
16,
876,
33,
7036,
16,
2181,
33,
7036,
4672,
3253,
273,
25857,
18,
3190,
12,
10686,
16,
315,
86,
7923,
4833,
273,
3253,
18,
588,
7640,
1435,
2488,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
12,
2890,
16,
5052,
16,
876,
33,
7036,
16,
2181,
33,
7036,
4672,
3253,
273,
25857,
18,
3190,
12,
10686,
16,
315,
86,
7923,
4833,
273,
3253,
18,
588,
7640,
1435,
2488,
273,
5378,
... |
log.debug(' >> %s [WITH CONTENT]' % path) | def add_doc(self, writer, path, repo): """Adding doc to writer this function itself fetches data from the instance of vcs backend""" node = self.get_node(repo, path) | e999a591b0199bd60a61b6da3d3bcea13ac597a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/e999a591b0199bd60a61b6da3d3bcea13ac597a1/daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2434,
12,
2890,
16,
2633,
16,
589,
16,
3538,
4672,
3536,
13962,
997,
358,
2633,
333,
445,
6174,
17675,
501,
628,
326,
791,
434,
20255,
4221,
8395,
756,
273,
365,
18,
588,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2434,
12,
2890,
16,
2633,
16,
589,
16,
3538,
4672,
3536,
13962,
997,
358,
2633,
333,
445,
6174,
17675,
501,
628,
326,
791,
434,
20255,
4221,
8395,
756,
273,
365,
18,
588,
67,
... | |
mod = imp.load_module(temp_mod_name, file, filename, info) self.assertEquals(1, mod.a) file.close() | mod = imp.load_module(temp_mod_name, file, filename, info) self.assertEquals(1, mod.a) file.close() | def test_issue5604(self): # Test cannot cover imp.load_compiled function. # Martin von Loewis note what shared library cannot have non-ascii # character because init_xxx function cannot be compiled # and issue never happens for dynamic modules. # But sources modified to follow generic way for processing pathes. | 9a7d5ac9f647bad9e48c98255ab54b71ec366127 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/9a7d5ac9f647bad9e48c98255ab54b71ec366127/test_imp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13882,
4313,
3028,
12,
2890,
4672,
468,
7766,
2780,
5590,
1646,
18,
945,
67,
19397,
445,
18,
468,
490,
485,
267,
331,
265,
3176,
359,
291,
4721,
4121,
5116,
5313,
2780,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13882,
4313,
3028,
12,
2890,
4672,
468,
7766,
2780,
5590,
1646,
18,
945,
67,
19397,
445,
18,
468,
490,
485,
267,
331,
265,
3176,
359,
291,
4721,
4121,
5116,
5313,
2780,
1240,
... |
objs = self.companion.designer.getObjectsOfClass(self.linkClass) | objs = self.companion.designer.getObjectsOfClass(LinkClass) | def valueToIECValue(self): for k, v in self.defaults.items(): if self.value == v: return k objs = self.companion.designer.getObjectsOfClass(self.linkClass) for objName in objs.keys(): if objs[objName] and self.value and objs[objName].this == self.value.this: return objName return `None` | 3da2754b98e42eecc4e0cfadfece8a0aca701df4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3da2754b98e42eecc4e0cfadfece8a0aca701df4/PropertyEditors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30605,
45,
7228,
620,
12,
2890,
4672,
364,
417,
16,
331,
316,
365,
18,
7606,
18,
3319,
13332,
309,
365,
18,
1132,
422,
331,
30,
327,
417,
12721,
273,
365,
18,
2919,
304,
285,
18,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30605,
45,
7228,
620,
12,
2890,
4672,
364,
417,
16,
331,
316,
365,
18,
7606,
18,
3319,
13332,
309,
365,
18,
1132,
422,
331,
30,
327,
417,
12721,
273,
365,
18,
2919,
304,
285,
18,
169... |
self.python_exe = os.path.normpath(sys.executable) | self.python_exe = op.normpath(sys.executable) | def __init__(self, build_path=None): self.python_version_major_minor = sys.version_info[:2] self.build_path = build_path self._shortpath_bat = None self.build_path = self.abs_path_clean(build_path) self.manage_python_version_major_minor() self.reset_dispatcher_support() self.set_derived_paths() assert os.path.isabs(sys... | 621ff93ea6f104ac4c6d943d7e9d6c18b1468502 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/621ff93ea6f104ac4c6d943d7e9d6c18b1468502/env_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
67,
803,
33,
7036,
4672,
365,
18,
8103,
67,
1589,
67,
14019,
67,
17364,
273,
2589,
18,
1589,
67,
1376,
10531,
22,
65,
365,
18,
3510,
67,
803,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1361,
67,
803,
33,
7036,
4672,
365,
18,
8103,
67,
1589,
67,
14019,
67,
17364,
273,
2589,
18,
1589,
67,
1376,
10531,
22,
65,
365,
18,
3510,
67,
803,
273... |
import pprint pprint.pprint(results) | def ObtainUploadInfo(self): #Trying to autodetect the imdb fro m the server videos = [] for i, video in enumerate(self._videos): if self._videos[i] != None and self._subs[i] != None: tmp_video = VideoFile(video.getFilePath()) tmp_video.setSubtitles([self._subs[i]]) videos.append(tmp_video) if videos: results = self._ma... | 6f4fe0419cbe50a36eb32a1c79469d05ccf5f84f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/6f4fe0419cbe50a36eb32a1c79469d05ccf5f84f/uploadlistview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24850,
4777,
966,
12,
2890,
4672,
468,
18038,
358,
2059,
369,
278,
386,
326,
709,
1966,
284,
303,
312,
326,
1438,
24752,
273,
5378,
364,
277,
16,
6191,
316,
4241,
12,
2890,
6315,
6768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24850,
4777,
966,
12,
2890,
4672,
468,
18038,
358,
2059,
369,
278,
386,
326,
709,
1966,
284,
303,
312,
326,
1438,
24752,
273,
5378,
364,
277,
16,
6191,
316,
4241,
12,
2890,
6315,
6768,
... | |
'''Get number of files in storage, even across subdirectories. ''' | """Get number of files in storage, even across subdirectories. """ | def numfiles(self): '''Get number of files in storage, even across subdirectories. ''' files_dir = os.path.join(self.dir, 'files') return files_in_dir(files_dir) | 98d1077c4d91289eb72b2804a276c6206419fa5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1906/98d1077c4d91289eb72b2804a276c6206419fa5c/blobfiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
818,
2354,
12,
2890,
4672,
3536,
967,
1300,
434,
1390,
316,
2502,
16,
5456,
10279,
31220,
18,
3536,
1390,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
1214,
16,
296,
2354,
613... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
818,
2354,
12,
2890,
4672,
3536,
967,
1300,
434,
1390,
316,
2502,
16,
5456,
10279,
31220,
18,
3536,
1390,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
1214,
16,
296,
2354,
613... |
with vfs.open(dst, APPEND) as file: | file = vfs.open(dst, APPEND) try: | def save_changes_forever(self): """ This method makes the transaction changes permanent. | 085ae3393f74ade85ed2a2eec6be70f6246ee20a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/085ae3393f74ade85ed2a2eec6be70f6246ee20a/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
6329,
67,
1405,
502,
12,
2890,
4672,
3536,
1220,
707,
7297,
326,
2492,
3478,
16866,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
6329,
67,
1405,
502,
12,
2890,
4672,
3536,
1220,
707,
7297,
326,
2492,
3478,
16866,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
log(2)*a + a*(z - 2)/2 - (a*(z - 2)^2/8) + a*(z - 2)^3/24 | log(2)*a + a*(z - 2)/2 - a*(z - 2)^2/8 + a*(z - 2)^3/24 | def taylor(self, v, a, n): """ Expands self in a truncated Taylor or Laurent series in the variable v around the point a, containing terms through $(x - a)^n$. | 7042f0e43d557a3d80ba470d1c31e104f0ec22eb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/7042f0e43d557a3d80ba470d1c31e104f0ec22eb/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
528,
80,
280,
12,
2890,
16,
331,
16,
279,
16,
290,
4672,
3536,
7784,
5708,
365,
316,
279,
15282,
399,
528,
80,
280,
578,
511,
8377,
547,
4166,
316,
326,
2190,
331,
6740,
326,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
528,
80,
280,
12,
2890,
16,
331,
16,
279,
16,
290,
4672,
3536,
7784,
5708,
365,
316,
279,
15282,
399,
528,
80,
280,
578,
511,
8377,
547,
4166,
316,
326,
2190,
331,
6740,
326,
16... |
base.direct.widget.disableModeColor() | base.direct.widget.disabledModeColor() | def disableWidgetMove(self): self.fMovable = 0 if hasattr(base.direct, 'widget'): base.direct.widget.disableModeColor() else: self.objectHandles.disabledModeColor() | 3216e5c0b6fa9c0a55732cfe2ddd811acbd1acc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/3216e5c0b6fa9c0a55732cfe2ddd811acbd1acc0/DirectManipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4056,
4609,
7607,
12,
2890,
4672,
365,
18,
74,
49,
1527,
429,
273,
374,
309,
3859,
12,
1969,
18,
7205,
16,
296,
6587,
11,
4672,
1026,
18,
7205,
18,
6587,
18,
9278,
2309,
2957,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4056,
4609,
7607,
12,
2890,
4672,
365,
18,
74,
49,
1527,
429,
273,
374,
309,
3859,
12,
1969,
18,
7205,
16,
296,
6587,
11,
4672,
1026,
18,
7205,
18,
6587,
18,
9278,
2309,
2957,
1435,
... |
assert False | if self.parser.elementInScope("tr", True): self.clearStackToTableRowContext() self.parser.openElements.pop() self.parser.switchInsertionMode("inTableBody") else: self.parser.parseError() | def endTagTr(self, name="tr"): # XXX lots of checks assert False | c4afc3f815c4f847b4cf9f0cdfe5a72631a4360c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/c4afc3f815c4f847b4cf9f0cdfe5a72631a4360c/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
1070,
12,
2890,
16,
508,
1546,
313,
6,
4672,
468,
11329,
328,
6968,
434,
4271,
1815,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
1070,
12,
2890,
16,
508,
1546,
313,
6,
4672,
468,
11329,
328,
6968,
434,
4271,
1815,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
local("python2.6 manage.py syncdb") local("python2.6 manage.py loaddata fixtures/*") | local("python2.6 manage.py syncdb --noinput") local("python2.6 manage.py loaddata fixtures/*") | def db_restart(): "Delete and rebuild database on the local" with settings(warn_only=True): local("rm kelpdb") local("python2.6 manage.py syncdb") local("python2.6 manage.py loaddata fixtures/*") | d17cd9688353b6db1135946f0f568dd0cd10eb51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14634/d17cd9688353b6db1135946f0f568dd0cd10eb51/fabfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
67,
19164,
13332,
315,
2613,
471,
13419,
2063,
603,
326,
1191,
6,
598,
1947,
12,
8935,
67,
3700,
33,
5510,
4672,
1191,
2932,
8864,
417,
1992,
1966,
7923,
1191,
2932,
8103,
22,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
67,
19164,
13332,
315,
2613,
471,
13419,
2063,
603,
326,
1191,
6,
598,
1947,
12,
8935,
67,
3700,
33,
5510,
4672,
1191,
2932,
8864,
417,
1992,
1966,
7923,
1191,
2932,
8103,
22,
18,
... |
raise NotImplementedError, "You specified view name %s on a node, but no factory_%s method was found." % (viewName, viewName) | raise NotImplementedError, "You specified view name %s on a node, but no factory_%s method was found in %s or %s." % (viewName, viewName, self, widgets) | def getNodeView(self, request, node): view = None viewName = node.getAttribute('view') | e7cb23c3b876eeb75898a8fcbe360610d209f2d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e7cb23c3b876eeb75898a8fcbe360610d209f2d1/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5973,
1767,
12,
2890,
16,
590,
16,
756,
4672,
1476,
273,
599,
22244,
273,
756,
18,
588,
1499,
2668,
1945,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5973,
1767,
12,
2890,
16,
590,
16,
756,
4672,
1476,
273,
599,
22244,
273,
756,
18,
588,
1499,
2668,
1945,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print "Groups can not be cloned." | print "Groups cannot be cloned." | def _isUphill(ver, uphill): uphillBranch = uphill.branch() verBranch = ver.branch() if uphillBranch == verBranch: return True | ad3bea9dfbe07be2f73cfca3d683843883250e84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ad3bea9dfbe07be2f73cfca3d683843883250e84/clone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
57,
844,
737,
12,
502,
16,
731,
76,
737,
4672,
731,
76,
737,
7108,
273,
731,
76,
737,
18,
7500,
1435,
1924,
7108,
273,
1924,
18,
7500,
1435,
309,
731,
76,
737,
7108,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
57,
844,
737,
12,
502,
16,
731,
76,
737,
4672,
731,
76,
737,
7108,
273,
731,
76,
737,
18,
7500,
1435,
1924,
7108,
273,
1924,
18,
7500,
1435,
309,
731,
76,
737,
7108,
422,
... |
TEST_F(GLES2DecoderTest, %(name)sValidArgs) { | TEST_F(%(test_name)s, %(name)sValidArgs) { | def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """ | 3916c97e1bb1ef3fecfdcaf9d80f239016756c06 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/3916c97e1bb1ef3fecfdcaf9d80f239016756c06/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Returns the closeness centrality (1/average distance to all nodes) as a dictionary of values keyed by node. The degree centrality is | Returns the closeness centrality (1/average distance to all vertices) as a dictionary of values keyed by vertex. The degree centrality is | def centrality_closeness(self, v=False): r""" Returns the closeness centrality (1/average distance to all nodes) as a dictionary of values keyed by node. The degree centrality is normalized to be in range (0,1). | 139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
8230,
7919,
67,
7550,
87,
15681,
12,
2890,
16,
331,
33,
8381,
4672,
436,
8395,
2860,
326,
1219,
87,
15681,
276,
8230,
7919,
261,
21,
19,
15621,
3888,
358,
777,
6928,
13,
487,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
8230,
7919,
67,
7550,
87,
15681,
12,
2890,
16,
331,
33,
8381,
4672,
436,
8395,
2860,
326,
1219,
87,
15681,
276,
8230,
7919,
261,
21,
19,
15621,
3888,
358,
777,
6928,
13,
487,
279,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.