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 |
|---|---|---|---|---|---|---|
if on == 1 and sn != 2: return self._fix_nan(context) if sn == 1 and on != 2: return other._fix_nan(context) | if on == 1 and sn == 0: return self._fix(context) if sn == 1 and on == 0: return other._fix(context) | def min(self, other, context=None): """Returns the smaller value. | 3f122784a35b5a60fac3e946d1a99941b3f116c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/3f122784a35b5a60fac3e946d1a99941b3f116c9/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
10648,
460,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
326,
10648,
460,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
elif fieldclassname: | elif fieldclassname and not default_widget: | def getWidget(self, widgettype, element, fieldname, elementclass, fieldclassname=None): """ returns either default widget, widget according to attributes or no widget. | 813ecbb7053fb8c893789f0a64ea5a2af478e63d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11941/813ecbb7053fb8c893789f0a64ea5a2af478e63d/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23434,
12,
2890,
16,
3604,
723,
16,
930,
16,
14680,
16,
930,
1106,
16,
652,
18340,
33,
7036,
4672,
3536,
1135,
3344,
805,
3604,
16,
3604,
4888,
358,
1677,
578,
1158,
3604,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23434,
12,
2890,
16,
3604,
723,
16,
930,
16,
14680,
16,
930,
1106,
16,
652,
18340,
33,
7036,
4672,
3536,
1135,
3344,
805,
3604,
16,
3604,
4888,
358,
1677,
578,
1158,
3604,
18,
2,
-100,... |
sage: sr = mq.SR(2,2,4,8) | sage: sr = mq.SR(2, 2, 4, 8) | def is_state_array(self, d): """ Return True if d is a state array, i.e. has the correct dimensions and base field. | 26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2019,
67,
1126,
12,
2890,
16,
302,
4672,
3536,
2000,
1053,
309,
302,
353,
279,
919,
526,
16,
277,
18,
73,
18,
711,
326,
3434,
5769,
471,
1026,
652,
18,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2019,
67,
1126,
12,
2890,
16,
302,
4672,
3536,
2000,
1053,
309,
302,
353,
279,
919,
526,
16,
277,
18,
73,
18,
711,
326,
3434,
5769,
471,
1026,
652,
18,
2,
-100,
-100,
-100,
... |
print pos, res | def verify(pos, res): print pos, res if pos != res: raise support.TestError, "Wrong filepos #1 (%d, %d)" % (pos, res) | 1aefbb8c89c8c83d260e71aaa4a0ae4872f215e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/1aefbb8c89c8c83d260e71aaa4a0ae4872f215e5/test300.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
917,
16,
400,
4672,
225,
309,
949,
480,
400,
30,
1002,
2865,
18,
4709,
668,
16,
315,
13634,
585,
917,
468,
21,
6142,
72,
16,
738,
72,
2225,
738,
261,
917,
16,
400,
13,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
12,
917,
16,
400,
4672,
225,
309,
949,
480,
400,
30,
1002,
2865,
18,
4709,
668,
16,
315,
13634,
585,
917,
468,
21,
6142,
72,
16,
738,
72,
2225,
738,
261,
917,
16,
400,
13,
28... | |
i = 0 | def complete(self, part = None, sound = "learnspell.ogg"): if sound: self.activator.Controller().Sound(sound) | d4558c9ecdb3244d37d9702972fed6a69cc11fa8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8118/d4558c9ecdb3244d37d9702972fed6a69cc11fa8/QuestManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3912,
12,
2890,
16,
1087,
273,
599,
16,
14190,
273,
315,
21346,
1752,
1165,
18,
23972,
6,
4672,
309,
14190,
30,
365,
18,
11422,
639,
18,
2933,
7675,
24331,
12,
29671,
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,
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,
3912,
12,
2890,
16,
1087,
273,
599,
16,
14190,
273,
315,
21346,
1752,
1165,
18,
23972,
6,
4672,
309,
14190,
30,
365,
18,
11422,
639,
18,
2933,
7675,
24331,
12,
29671,
13,
2,
-100,
-100... | |
if op1.int == [0]*len(op1.int) and adjust >= 0 and not divmod: | if op1.int == 0 and adjust >= 0 and not divmod: | def _divide(self, other, divmod = 0, context=None): """Return a / b, to context.prec precision. | 636a6b100fe6083388bc5315758326078abe65b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/636a6b100fe6083388bc5315758326078abe65b4/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2892,
831,
12,
2890,
16,
1308,
16,
26105,
273,
374,
16,
819,
33,
7036,
4672,
3536,
990,
279,
342,
324,
16,
358,
819,
18,
4036,
6039,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
2892,
831,
12,
2890,
16,
1308,
16,
26105,
273,
374,
16,
819,
33,
7036,
4672,
3536,
990,
279,
342,
324,
16,
358,
819,
18,
4036,
6039,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def simple_err(func, *args): try: func(*args) except struct.error: pass else: raise TestFailed, "%s%s did not raise struct.error" % ( func.__name__, args) def any_err(func, *args): try: func(*args) except (struct.error, TypeError): pass else: raise TestFailed, "%s%s did not raise error" % ( func.__name__, args) | def simple_err(func, *args): try: func(*args) except struct.error: pass else: raise TestFailed, "%s%s did not raise struct.error" % ( func.__name__, args) | 8cbd853c59f75418bae9bcfd0fe656e7474c6d87 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/8cbd853c59f75418bae9bcfd0fe656e7474c6d87/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
67,
370,
12,
644,
16,
380,
1968,
4672,
775,
30,
1326,
30857,
1968,
13,
1335,
1958,
18,
1636,
30,
1342,
469,
30,
1002,
7766,
2925,
16,
2213,
87,
9,
87,
5061,
486,
1002,
1958,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
67,
370,
12,
644,
16,
380,
1968,
4672,
775,
30,
1326,
30857,
1968,
13,
1335,
1958,
18,
1636,
30,
1342,
469,
30,
1002,
7766,
2925,
16,
2213,
87,
9,
87,
5061,
486,
1002,
1958,
18... | |
NtermLayout.addWidget(self.NtermResNameLabel) NtermLayout.addWidget(self.NtermSpinBox) | NtermLayout.addWidget(self.helixNtermResNameLabel) NtermLayout.addWidget(self.helixNtermSpinBox) | def setupHelixTab(self): #These go in the Helix tab self.modifyRadioButton = QtGui.QRadioButton(self.tr('Modify')) self.newRadioButtion = QtGui.QRadioButton(self.tr('New')) NterminusLabel = QtGui.QLabel('N term') self.NtermResNameLabel = QtGui.QLabel('?') self.NtermSpinBox = QtGui.QSpinBox() self.NtermSpinBox.setRange(... | e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9/structure_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
44,
26342,
5661,
12,
2890,
4672,
468,
29690,
1960,
316,
326,
670,
26342,
3246,
365,
18,
17042,
19984,
3616,
273,
23425,
18,
53,
19984,
3616,
12,
2890,
18,
313,
2668,
11047,
26112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
44,
26342,
5661,
12,
2890,
4672,
468,
29690,
1960,
316,
326,
670,
26342,
3246,
365,
18,
17042,
19984,
3616,
273,
23425,
18,
53,
19984,
3616,
12,
2890,
18,
313,
2668,
11047,
26112,
... |
l = [1L, 2L, 3L, 4L, 5L] * (size // 5) | l = [1L, 2L, 3L, 4L, 5L] * size size *= 5 | def test_index(self, size): l = [1L, 2L, 3L, 4L, 5L] * (size // 5) self.assertEquals(l.index(1), 0) self.assertEquals(l.index(5, size - 5), size - 1) self.assertEquals(l.index(5, size - 5, size), size - 1) self.assertRaises(ValueError, l.index, 1, size - 4, size) self.assertRaises(ValueError, l.index, 6L) | 58ac820523228252b5516333377d351fed0a2095 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/58ac820523228252b5516333377d351fed0a2095/test_bigmem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1615,
12,
2890,
16,
963,
4672,
328,
273,
306,
21,
48,
16,
576,
48,
16,
890,
48,
16,
1059,
48,
16,
1381,
48,
65,
380,
963,
963,
6413,
1381,
365,
18,
11231,
8867,
12,
80,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1615,
12,
2890,
16,
963,
4672,
328,
273,
306,
21,
48,
16,
576,
48,
16,
890,
48,
16,
1059,
48,
16,
1381,
48,
65,
380,
963,
963,
6413,
1381,
365,
18,
11231,
8867,
12,
80,
... |
Draw a frame in 3D. Primarily used as a helper function for creating frames for 3D graphics viewing. | Draw a frame in 3-D. Primarily used as a helper function for creating frames for 3-D graphics viewing. | def frame3d(lower_left, upper_right, **kwds): """ Draw a frame in 3D. Primarily used as a helper function for creating frames for 3D graphics viewing. INPUT: - ``lower_left`` - the lower left corner of the frame, as a list, tuple, or vector - ``upper_right`` - the upper right corner of the frame, as a list, tuple, ... | 25144c93b092a09ccf947d595af3b9e9d463ccf2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/25144c93b092a09ccf947d595af3b9e9d463ccf2/shapes2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2623,
23,
72,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
316,
890,
17,
40,
18,
225,
2301,
381,
10243,
1399,
487,
279,
4222,
445,
364,
4979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2623,
23,
72,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
316,
890,
17,
40,
18,
225,
2301,
381,
10243,
1399,
487,
279,
4222,
445,
364,
4979,
... |
return event | return event.itsItem | def GenerateCalendarEvent(view, days=30, tzinfo=ICUtzinfo.floating): event = Calendar.CalendarEvent(itsView=view) event.summary = random.choice(HEADLINES) if TEST_I18N: event.summary = uw(event.summary) # Choose random days, hours startDelta = timedelta(days=random.randint(0, days), hours=random.randint(0, 24)) now ... | 57db1ebccacf04e91e375cbac6f32ee00028f8f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/57db1ebccacf04e91e375cbac6f32ee00028f8f6/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
7335,
1133,
12,
1945,
16,
4681,
33,
5082,
16,
15732,
33,
2871,
57,
12994,
1376,
18,
5659,
310,
4672,
871,
273,
5542,
18,
7335,
1133,
12,
1282,
1767,
33,
1945,
13,
871,
18,
7687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
7335,
1133,
12,
1945,
16,
4681,
33,
5082,
16,
15732,
33,
2871,
57,
12994,
1376,
18,
5659,
310,
4672,
871,
273,
5542,
18,
7335,
1133,
12,
1282,
1767,
33,
1945,
13,
871,
18,
7687,
... |
a lyndon word | A Lyndon word. | def __init__(self, data, check=True): r""" Construction of a Lyndon word. | e2d1514e859bc3cc7b4ca3c3cd7d894707227df2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/e2d1514e859bc3cc7b4ca3c3cd7d894707227df2/lyndon_word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
866,
33,
5510,
4672,
436,
8395,
735,
4549,
434,
279,
511,
878,
19752,
2076,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
501,
16,
866,
33,
5510,
4672,
436,
8395,
735,
4549,
434,
279,
511,
878,
19752,
2076,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self._insert_matrix_into_matrix(shift_rows,I, _r, _c) | self._insert_matrix_into_matrix(shift_rows, I, _r, _c) | def shift_rows_matrix(self): """ Return the ShiftRows matrix. | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4654,
67,
3870,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
21444,
4300,
3148,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
4654,
67,
3870,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
21444,
4300,
3148,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
roman = re.split(r'\W',p)[1] | roman = re.split(r'\s+',p)[1] | def idOfAvdelning(self): # There are four main styles of parts ("Avdelning") in swedish law # # 1998:808: "FRSTA AVDELNINGEN\n\nVERGRIPANDE BESTMMELSER" # (also in 1932:130, 1942:740, 1956:623, 1957:297, 1962:381, 1962:700, # 1970:988, 1970:994, 1971:235 (revoked), 1973:370 (revoked), # 1977:263 (revoked), 1987:23... | 9717c0b4291173082a9bb9af7e2f0178a0967181 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4027/9717c0b4291173082a9bb9af7e2f0178a0967181/SFS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
951,
3769,
3771,
2093,
12,
2890,
4672,
468,
6149,
854,
12792,
2774,
5687,
434,
2140,
7566,
3769,
3771,
2093,
7923,
316,
1352,
329,
1468,
328,
2219,
468,
468,
23673,
28,
30,
3672,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
951,
3769,
3771,
2093,
12,
2890,
4672,
468,
6149,
854,
12792,
2774,
5687,
434,
2140,
7566,
3769,
3771,
2093,
7923,
316,
1352,
329,
1468,
328,
2219,
468,
468,
23673,
28,
30,
3672,
28... |
def visit_admonition(self, node, name, admonitionCellAtts={}): | def visit_admonition(self, node, name='', admonitionCellAtts={}): | def visit_admonition(self, node, name, admonitionCellAtts={}): baseAdmonitionCellAtts = {"width" : "15%"} baseAdmonitionCellAtts.update(admonitionCellAtts) self.bodyContent.append('<table width="90%" border="1" align="center">\n' '<tbody><tr><td><table width="100%"><tbody><tr>\n') self.bodyContent.append(self.starttag(... | b2e39b873a497ced8a1470204e7ded3bf23c12bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/b2e39b873a497ced8a1470204e7ded3bf23c12bb/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
2218,
2187,
1261,
2586,
608,
4020,
3075,
87,
12938,
4672,
1026,
1871,
2586,
608,
4020,
3075,
87,
273,
12528,
2819,
6,
294,
315,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
2218,
2187,
1261,
2586,
608,
4020,
3075,
87,
12938,
4672,
1026,
1871,
2586,
608,
4020,
3075,
87,
273,
12528,
2819,
6,
294,
315,
36... |
return http.Response(stream="saved") | return HTMLResponse(stream="saved") | def render(self, ctx): self.worksheet.save_snapshot(self.username) self.worksheet.quit() return http.Response(stream="saved") | 39855fabbbbe971c1c1d64566b1625e9c1c6d482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/39855fabbbbe971c1c1d64566b1625e9c1c6d482/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
365,
18,
1252,
8118,
18,
5688,
67,
11171,
12,
2890,
18,
5053,
13,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
1546,
14077,
7923... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
365,
18,
1252,
8118,
18,
5688,
67,
11171,
12,
2890,
18,
5053,
13,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
1546,
14077,
7923... |
newlabel = newlabel + '<big><b>' + self.parse_formatting(self.currsongformat1, self.songinfo, True) + '</b></big>' | newlabel = newlabel + '<big><b>' + self.parse_formatting(self.currsongformat1, self.songinfo, True) + ' </b></big>' | def update_cursong(self): if self.conn and self.status and self.status.state in ['play', 'pause']: # We must show the trayprogressbar and trayalbumeventbox # before changing self.cursonglabel (and consequently calling # self.labelnotify()) in order to ensure that the notification # popup will have the correct height wh... | 52c79ca8b28459acec3607fb5ef450237f108f18 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/52c79ca8b28459acec3607fb5ef450237f108f18/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1397,
816,
75,
12,
2890,
4672,
309,
365,
18,
4646,
471,
365,
18,
2327,
471,
365,
18,
2327,
18,
2019,
316,
10228,
1601,
2187,
296,
19476,
3546,
30,
468,
1660,
1297,
2405,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1397,
816,
75,
12,
2890,
4672,
309,
365,
18,
4646,
471,
365,
18,
2327,
471,
365,
18,
2327,
18,
2019,
316,
10228,
1601,
2187,
296,
19476,
3546,
30,
468,
1660,
1297,
2405,
326,... |
self.delta = math.log(float(max / min) ** (1.0 / n)) | self.delta = math.log((float(max) / float(min)) ** (1.0 / n)) | def _set_delta(self, min, max, n): self.delta = math.log(float(max / min) ** (1.0 / n)) | d0f712ea8636e2ae1eeeb2f1705504cb3d8206ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/d0f712ea8636e2ae1eeeb2f1705504cb3d8206ea/rate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
9878,
12,
2890,
16,
1131,
16,
943,
16,
290,
4672,
365,
18,
9878,
273,
4233,
18,
1330,
12,
5659,
12,
1896,
342,
1131,
13,
2826,
261,
21,
18,
20,
342,
290,
3719,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
9878,
12,
2890,
16,
1131,
16,
943,
16,
290,
4672,
365,
18,
9878,
273,
4233,
18,
1330,
12,
5659,
12,
1896,
342,
1131,
13,
2826,
261,
21,
18,
20,
342,
290,
3719,
2,
-10... |
else: cnxn_point = self.server | else: cnxn_point = self.server | def make_http_connection(self): | 2fe74a95373a426e5d7017f280b8f32e8a3fcd03 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/2fe74a95373a426e5d7017f280b8f32e8a3fcd03/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2505,
67,
4071,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1221,
67,
2505,
67,
4071,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
config, corner_geom=corner_angles, | config, corner_angles=corner_angles, | def run(config, tim=None): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.Di... | bdca593e4c0d600c2718e12374db475f3f9600b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/763/bdca593e4c0d600c2718e12374db475f3f9600b7/dgs_reduction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
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,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... |
raise ParseError() | raise ParseError("Bad class definition line") | def process_classdef(line, parent_docs, prev_line_doc, lineno, comments, decorators): """ The line handler for class declaration lines, such as: >>> class Foo(Bar, Baz): This handler creates and initializes a new C{VariableDoc} containing a C{ClassDoc}, adds the C{VariableDoc} to the containing namespace, and returns... | a3ef0fa18cbe7a3bcd10dd7313809fd187cded40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a3ef0fa18cbe7a3bcd10dd7313809fd187cded40/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1106,
536,
12,
1369,
16,
982,
67,
8532,
16,
2807,
67,
1369,
67,
2434,
16,
7586,
16,
5678,
16,
19423,
4672,
3536,
1021,
980,
1838,
364,
667,
8266,
2362,
16,
4123,
487,
30,
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,
1207,
67,
1106,
536,
12,
1369,
16,
982,
67,
8532,
16,
2807,
67,
1369,
67,
2434,
16,
7586,
16,
5678,
16,
19423,
4672,
3536,
1021,
980,
1838,
364,
667,
8266,
2362,
16,
4123,
487,
30,
2... |
views = ['welcome', 'browse_thumbnails', 'new_resource_form', | views = ['profile', 'browse_thumbnails', 'new_resource_form', | def get_views(self): views = ['welcome', 'browse_thumbnails', 'new_resource_form', 'edit_form'] # Task list only for reviewers and admins (for now). root = get_context().root is_admin = self.name in root.get_handler('admins').get_usernames() is_rev = self.name in root.get_handler('reviewers').get_usernames() if is_admi... | e4c4547bf8e9ad0fb9892e149604e100ce70a24b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/e4c4547bf8e9ad0fb9892e149604e100ce70a24b/User.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7061,
12,
2890,
4672,
7361,
273,
10228,
5040,
2187,
296,
25731,
67,
14904,
87,
2187,
296,
2704,
67,
3146,
67,
687,
2187,
296,
4619,
67,
687,
3546,
468,
3837,
666,
1338,
364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7061,
12,
2890,
4672,
7361,
273,
10228,
5040,
2187,
296,
25731,
67,
14904,
87,
2187,
296,
2704,
67,
3146,
67,
687,
2187,
296,
4619,
67,
687,
3546,
468,
3837,
666,
1338,
364,
1... |
map_so = hlr_utils.get_map_so(left,None,i) hlr_utils.result_insert(result,res_descr,value,map_so,axis,axis_pos) | map_so = hlr_utils.get_map_so(left, None, i) hlr_utils.result_insert(result, res_descr, value, map_so, axis, axis_pos) | def mult_ncerr(left,right,**kwargs): """ This function multiplies two objects (SOM, SO or tuple[val,val_err2]) and returns the result of the multiplication in an SOM. The function does not handle the case of tuple/tuple. Parameters: ---------- -> left Object on the left of the multiplication sign -> right Object on t... | e39979325b6fc8a32b6f5159862092edaf952c8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/e39979325b6fc8a32b6f5159862092edaf952c8b/hlr_mult_ncerr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
67,
14202,
370,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
3309,
5259,
2795,
2184,
261,
55,
1872,
16,
7460,
578,
3193,
63,
1125,
16,
1125,
67,
370,
22,
5717,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1778,
67,
14202,
370,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
3309,
5259,
2795,
2184,
261,
55,
1872,
16,
7460,
578,
3193,
63,
1125,
16,
1125,
67,
370,
22,
5717,
471,
... |
security.declareProtected(CMFCorePermissions.View, 'widgets') | security.declareProtected(permissions.View, 'widgets') | def viewableFields(self, instance): """Returns a list of viewable fields for the given instance """ return [field for field in self.fields() if field.checkPermission('view', instance)] | 209dd0431121be615174f562fcf89fd6fae6c083 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/209dd0431121be615174f562fcf89fd6fae6c083/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
429,
2314,
12,
2890,
16,
791,
4672,
3536,
1356,
279,
666,
434,
1476,
429,
1466,
364,
326,
864,
791,
3536,
327,
306,
1518,
364,
652,
316,
365,
18,
2821,
1435,
309,
652,
18,
1893,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1476,
429,
2314,
12,
2890,
16,
791,
4672,
3536,
1356,
279,
666,
434,
1476,
429,
1466,
364,
326,
864,
791,
3536,
327,
306,
1518,
364,
652,
316,
365,
18,
2821,
1435,
309,
652,
18,
1893,
... |
except: | except Exception : | def get_image_info(filename, options) : """returns the image's format""" try : image = Image.open(filename) bad_image = image.verify() image_format = image.format sequenced = is_image_sequenced(image) if image_format in options.formats : print(filename, image.format, image.mode+' ') except: bad_image = 1 image_format =... | ae6c0c0a32846854ee29ec13f8067be2c1750d99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10314/ae6c0c0a32846854ee29ec13f8067be2c1750d99/picopt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2730,
67,
1376,
12,
3459,
16,
702,
13,
294,
3536,
6154,
326,
1316,
1807,
740,
8395,
775,
294,
1316,
273,
3421,
18,
3190,
12,
3459,
13,
5570,
67,
2730,
273,
1316,
18,
8705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2730,
67,
1376,
12,
3459,
16,
702,
13,
294,
3536,
6154,
326,
1316,
1807,
740,
8395,
775,
294,
1316,
273,
3421,
18,
3190,
12,
3459,
13,
5570,
67,
2730,
273,
1316,
18,
8705,
1... |
verify verify that include files are the correct format. | help show help for all commands. | def release(): | 69a8646791c8142da8a1eb5c6d803b56746350c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2758/69a8646791c8142da8a1eb5c6d803b56746350c8/eagle3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) | def build(self, node): self.buildAttributes(node, node.attrib, []) self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-... | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
365,
18,
1132,
951,
67,
273,
336,
67,
454,
67,
955,
67,
12,
2159,
13,
364,
1151,
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,
1361,
12,
2890,
16,
756,
4672,
365,
18,
3510,
2498,
12,
2159,
16,
756,
18,
14588,
16,
5378,
13,
365,
18,
1132,
951,
67,
273,
336,
67,
454,
67,
955,
67,
12,
2159,
13,
364,
1151,
316... | |
print "Downloading the vmlinuz and initrd.img" | print "Downloading vmlinuz and initrd.img from URL" | def setup_url(self): """ Download the vmlinuz and initrd.img from URL. """ print "Downloading the vmlinuz and initrd.img" os.chdir(self.image_path) | 05c7b87678411674e1b8b8228fe97a5b64354c3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/05c7b87678411674e1b8b8228fe97a5b64354c3b/unattended.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
718,
12,
2890,
4672,
3536,
13059,
326,
331,
781,
6860,
94,
471,
1208,
13623,
18,
6081,
628,
1976,
18,
3536,
1172,
315,
27217,
331,
781,
6860,
94,
471,
1208,
13623,
18,
6081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
718,
12,
2890,
4672,
3536,
13059,
326,
331,
781,
6860,
94,
471,
1208,
13623,
18,
6081,
628,
1976,
18,
3536,
1172,
315,
27217,
331,
781,
6860,
94,
471,
1208,
13623,
18,
6081,
... |
_compute_ranks = Callable(_compute_ranks) def _compute_ratios(stats_clause): | def _compute_ranks(): min_r = select([func.min(BwHistory.rank)], BwHistory.table.c.router_idhex == RouterStats.table.c.router_idhex).as_scalar() avg_r = select([func.avg(BwHistory.rank)], BwHistory.table.c.router_idhex == RouterStats.table.c.router_idhex).as_scalar() max_r = select([func.max(BwHistory.rank)], BwHistory... | c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/c8ad6cda0735bca71a66e2ae8dc82c8034ffc7ce/SQLSupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9200,
67,
11500,
87,
13332,
1131,
67,
86,
273,
2027,
3816,
644,
18,
1154,
12,
38,
91,
5623,
18,
11500,
13,
6487,
605,
91,
5623,
18,
2121,
18,
71,
18,
10717,
67,
350,
7118,
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,
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,
11500,
87,
13332,
1131,
67,
86,
273,
2027,
3816,
644,
18,
1154,
12,
38,
91,
5623,
18,
11500,
13,
6487,
605,
91,
5623,
18,
2121,
18,
71,
18,
10717,
67,
350,
7118,
422,
... | |
print "No default SystemExit" | def test_alias_exit(self): if not has_sound("SystemExit"): print "No default SystemExit" return if _have_soundcard(): winsound.PlaySound('SystemExit', winsound.SND_ALIAS) else: self.assertRaises( RuntimeError, winsound.PlaySound, 'SystemExit', winsound.SND_ALIAS ) | d8548c726e6684079b8ef7222c2a744120eb3e89 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/d8548c726e6684079b8ef7222c2a744120eb3e89/test_winsound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4930,
67,
8593,
12,
2890,
4672,
309,
486,
711,
67,
29671,
2932,
22729,
6,
4672,
327,
309,
389,
21516,
67,
29671,
3327,
13332,
31307,
772,
18,
11765,
24331,
2668,
22729,
2187,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4930,
67,
8593,
12,
2890,
4672,
309,
486,
711,
67,
29671,
2932,
22729,
6,
4672,
327,
309,
389,
21516,
67,
29671,
3327,
13332,
31307,
772,
18,
11765,
24331,
2668,
22729,
2187,
3... | |
charset='utf-8' | def send_email(fromaddr, toaddr, subject="", content="", html_content='', html_images={}, header=None, footer=None, html_header=None, html_footer=None, copy_to_admin=0, attempt_times=1, attempt_sleeptime=10, debug_level=0, ln=CFG_SITE_LANG, charset='utf-8' ): """Send an forged email to TOADDR from FROMADDR with message... | 439e58f60a16891547553485949cee7c6b02a3c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/439e58f60a16891547553485949cee7c6b02a3c2/mailutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3652,
12,
2080,
4793,
16,
358,
4793,
16,
3221,
1546,
3113,
913,
1546,
3113,
1729,
67,
1745,
2218,
2187,
1729,
67,
7369,
28793,
1446,
33,
7036,
16,
9860,
33,
7036,
16,
1729,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3652,
12,
2080,
4793,
16,
358,
4793,
16,
3221,
1546,
3113,
913,
1546,
3113,
1729,
67,
1745,
2218,
2187,
1729,
67,
7369,
28793,
1446,
33,
7036,
16,
9860,
33,
7036,
16,
1729,
6... | |
execute_cmd(cmd_template % (run_cmd)) | execute_cmd(export_envvars_cmd + " && " + (apache2_restart_template % (run_cmd)) + directives + conf_file_cmd) | def main(options, args): if len(args) < 1: run_cmd = "" else: run_cmd = args[0] # Setup logging class logging.basicConfig(level=logging.INFO, format='%(message)s') if not run_cmd in ("start", "stop", "restart"): logging.info("illegal argument: " + run_cmd) logging.info("Usage: python run_apache2.py start|stop|restart... | f0600c13532a38bf04d2afd531bf8a19051e8c2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10653/f0600c13532a38bf04d2afd531bf8a19051e8c2a/run_apache2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
309,
562,
12,
1968,
13,
411,
404,
30,
1086,
67,
4172,
273,
1408,
469,
30,
1086,
67,
4172,
273,
833,
63,
20,
65,
225,
468,
10939,
2907,
667,
2907,
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,
12,
2116,
16,
833,
4672,
309,
562,
12,
1968,
13,
411,
404,
30,
1086,
67,
4172,
273,
1408,
469,
30,
1086,
67,
4172,
273,
833,
63,
20,
65,
225,
468,
10939,
2907,
667,
2907,
18,
... |
if self._docmap.has_key(f.target().module())] | if is_documented(f.target().module())] | def _write_project_toc(self, public, private): """ @return: An HTML page containing the table of contents page for the whole project. This page lists the classes, exceptions, functions, and variables defined by any module or package in the project. @rtype: C{string} """ # Header and name. str = self._header('Everythin... | 21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4406,
67,
1391,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
632,
2463,
30,
1922,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
7339,
1984,
18,
225,
1220,
1363,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4406,
67,
1391,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
632,
2463,
30,
1922,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
7339,
1984,
18,
225,
1220,
1363,
6... |
preserve = False | preserve = 0 | def __iter__(self): preserve = False for token in _base.Filter.__iter__(self): type = token["type"] if not preserve and type == "StartTag" \ and token["name"] in self.spacePreserveElements: preserve = True | daf2201d57fa2d5fefa9d13c862a205f40913ae0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/daf2201d57fa2d5fefa9d13c862a205f40913ae0/whitespace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
9420,
273,
374,
364,
1147,
316,
389,
1969,
18,
1586,
16186,
2165,
972,
12,
2890,
4672,
618,
273,
1147,
9614,
723,
11929,
309,
486,
9420,
471,
618,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
9420,
273,
374,
364,
1147,
316,
389,
1969,
18,
1586,
16186,
2165,
972,
12,
2890,
4672,
618,
273,
1147,
9614,
723,
11929,
309,
486,
9420,
471,
618,
422,
... |
monitoring_enabled=False, subnet_id=None): | monitoring_enabled=False, subnet_id=None, block_device_map=None): | def run(self, min_count=1, max_count=1, key_name=None, security_groups=None, user_data=None, addressing_type=None, instance_type='m1.small', placement=None, kernel_id=None, ramdisk_id=None, monitoring_enabled=False, subnet_id=None): """ Runs this instance. :type min_count: int :param min_count: The minimum number of i... | 9b35754deba5554ddc8ee4e2336b9b73d357691f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/9b35754deba5554ddc8ee4e2336b9b73d357691f/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1131,
67,
1883,
33,
21,
16,
943,
67,
1883,
33,
21,
16,
498,
67,
529,
33,
7036,
16,
4373,
67,
4650,
33,
7036,
16,
729,
67,
892,
33,
7036,
16,
1758,
310,
67,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1131,
67,
1883,
33,
21,
16,
943,
67,
1883,
33,
21,
16,
498,
67,
529,
33,
7036,
16,
4373,
67,
4650,
33,
7036,
16,
729,
67,
892,
33,
7036,
16,
1758,
310,
67,
72... |
if cLine!=[]: lines.append((space_available, cLine)) | if cLine!=[]: lines.append((maxwidth - currentwidth, cLine)) | def breakLines(self, width): """ Returns a broken line structure. There are two cases A) For the simple case of a single formatting input fragment the output is A fragment specifier with kind = 0 fontName, fontSize, leading, textColor lines= A list of lines Each line has two items. 1) unused width in points 2) word li... | f6eea109139e51a262ad518e3cd318ba67577676 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/f6eea109139e51a262ad518e3cd318ba67577676/paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
898,
5763,
12,
2890,
16,
1835,
4672,
3536,
2860,
279,
12933,
980,
3695,
18,
6149,
854,
2795,
6088,
225,
432,
13,
2457,
326,
4143,
648,
434,
279,
2202,
10407,
810,
5481,
326,
876,
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,
898,
5763,
12,
2890,
16,
1835,
4672,
3536,
2860,
279,
12933,
980,
3695,
18,
6149,
854,
2795,
6088,
225,
432,
13,
2457,
326,
4143,
648,
434,
279,
2202,
10407,
810,
5481,
326,
876,
353,
... |
out = TemporaryFile("w") | out = TemporaryFile() | def update_file(self, filename): '''Update the specified configuration file.''' sectname = None optname = None out = TemporaryFile("w") if os.path.exists(filename): f = file(filename, "r") else: # doesn't exist, so create it - all the changed options will # be added to it if options["globals", "verbose"]: print "Creati... | cfc9cd733a379cce73446367aac2c802ab6c357f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/cfc9cd733a379cce73446367aac2c802ab6c357f/Options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
768,
12,
2890,
16,
1544,
4672,
9163,
1891,
326,
1269,
1664,
585,
1093,
6309,
29140,
529,
273,
599,
2153,
529,
273,
599,
596,
273,
22791,
812,
1435,
309,
1140,
18,
803,
18,
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,
1089,
67,
768,
12,
2890,
16,
1544,
4672,
9163,
1891,
326,
1269,
1664,
585,
1093,
6309,
29140,
529,
273,
599,
2153,
529,
273,
599,
596,
273,
22791,
812,
1435,
309,
1140,
18,
803,
18,
18... |
def s_apply(self, func, *args, **kw): | def s_apply(self, func, args=(), kw=None): | def s_apply(self, func, *args, **kw): | e7b9fde1b8461b389f2bcc21350eb132a287f14b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e7b9fde1b8461b389f2bcc21350eb132a287f14b/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
67,
9010,
12,
2890,
16,
1326,
16,
380,
1968,
16,
2826,
9987,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
272,
67,
9010,
12,
2890,
16,
1326,
16,
380,
1968,
16,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
AABFeGl0UHJvY2VzcwAAAFJlZ0Nsb3NlS2V5AAAAUHJvcGVydHlTaGVldEEAAFRleHRPdXRBAABl eGl0AABFbmRQYWludAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | AABFeGl0UHJvY2VzcwAAAFJlZ0Nsb3NlS2V5AAAAUHJvcGVydHlTaGVldEEAAFRleHRPdXRBAABm cmVlAABFbmRQYWludAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | def get_exe_bytes (self): import base64 return base64.decodestring (EXEDATA) | ecaf0d8b471113bbbf14b7eedb470b2f1d1d1b1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ecaf0d8b471113bbbf14b7eedb470b2f1d1d1b1f/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... |
def testParseCert(self): | def test_parse_cert(self): | def testParseCert(self): # note that this uses an 'unofficial' function in _ssl.c, # provided solely for this test, to exercise the certificate # parsing code p = ssl._ssl._test_decode_cert(CERTFILE, False) if test_support.verbose: sys.stdout.write("\n" + pprint.pformat(p) + "\n") | f08683542eada763321715f558eac5b2baec28e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f08683542eada763321715f558eac5b2baec28e9/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
67,
7593,
12,
2890,
4672,
468,
4721,
716,
333,
4692,
392,
296,
318,
3674,
22354,
11,
445,
316,
389,
8157,
18,
71,
16,
468,
2112,
3704,
2357,
364,
333,
1842,
16,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
67,
7593,
12,
2890,
4672,
468,
4721,
716,
333,
4692,
392,
296,
318,
3674,
22354,
11,
445,
316,
389,
8157,
18,
71,
16,
468,
2112,
3704,
2357,
364,
333,
1842,
16,
358,
... |
return fields[0] | res = fields[0] | def format(f,val,grouping=0): """Formats a value in the same way that the % formatting would use, but takes the current locale into account. Grouping is applied if the third parameter is true.""" result = f % val fields = string.split(result, ".") if grouping: fields[0]=_group(fields[0]) if len(fields)==2: return field... | 8f4146e89f920a7d391af99c009972b34c949a27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8f4146e89f920a7d391af99c009972b34c949a27/locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
... |
if isinstance(now, QMenu): | if isinstance(now, QMenu): | def focus_changed(old, now): #On Mac OS X context menu grabs focus, #don't want to update actions for that if isinstance(now, QMenu): return if isinstance(now, QWebView): now.page().selectionChanged.connect(update_edit_actions) elif isinstance(now, QLineEdit): now.selectionChanged.connect(update_edit_actions) if isinst... | ed158435d48b5b6dd5e22c5fb0f2cba74cda4b10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14305/ed158435d48b5b6dd5e22c5fb0f2cba74cda4b10/qtui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7155,
67,
6703,
12,
1673,
16,
2037,
4672,
468,
1398,
13217,
5932,
1139,
819,
3824,
3087,
2038,
7155,
16,
468,
19752,
1404,
2545,
358,
1089,
4209,
364,
716,
309,
1549,
12,
3338,
16,
2238,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7155,
67,
6703,
12,
1673,
16,
2037,
4672,
468,
1398,
13217,
5932,
1139,
819,
3824,
3087,
2038,
7155,
16,
468,
19752,
1404,
2545,
358,
1089,
4209,
364,
716,
309,
1549,
12,
3338,
16,
2238,... |
else: new_job.testname = re.sub('\s.*', '', new_job.name) | def invoke_test(self, pairing, kernel, kernel_label, priority='Medium', **dargs): """ Given a pairing of a control file to a machine label, find all machines with that label, and submit that control file to them. Returns a list of job objects """ job_name = '%s : %s' % (pairing.machine_label, kernel_label) hosts = sel... | 6895b4d994f5758a86e0b101eb2e94e0aa5bb4b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/6895b4d994f5758a86e0b101eb2e94e0aa5bb4b5/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
67,
3813,
12,
2890,
16,
3082,
310,
16,
5536,
16,
5536,
67,
1925,
16,
4394,
2218,
25599,
2187,
2826,
72,
1968,
4672,
3536,
16803,
279,
3082,
310,
434,
279,
3325,
585,
358,
279,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
67,
3813,
12,
2890,
16,
3082,
310,
16,
5536,
16,
5536,
67,
1925,
16,
4394,
2218,
25599,
2187,
2826,
72,
1968,
4672,
3536,
16803,
279,
3082,
310,
434,
279,
3325,
585,
358,
279,
52... | |
def cb_copy(self, args): | def cb_copy(self, *args): | def cb_copy(self, args): if not self.iocheck(): return data = self.vin.get() if not data: self.err('End of input file') self.ishow() return if self.vout.getinfo() <> self.vin.getinfo(): print 'Copying info...' self.vout.setinfo(self.vin.getinfo()) self.vout.put(data) self.oshow() self.ishow() | a8993cfe16a04c612da72f72181ac63c6f858224 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a8993cfe16a04c612da72f72181ac63c6f858224/Vedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
3530,
12,
2890,
16,
380,
1968,
4672,
309,
486,
365,
18,
1594,
1893,
13332,
327,
501,
273,
365,
18,
21529,
18,
588,
1435,
309,
486,
501,
30,
365,
18,
370,
2668,
1638,
434,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
3530,
12,
2890,
16,
380,
1968,
4672,
309,
486,
365,
18,
1594,
1893,
13332,
327,
501,
273,
365,
18,
21529,
18,
588,
1435,
309,
486,
501,
30,
365,
18,
370,
2668,
1638,
434,
8... |
"""Resolve the system identifier of an entity and return either | """Resolve the system identifier of an entity and return either | def resolveEntity(self, publicId, systemId): | 8cdc103233c927819774d9857ca81d9c8a608f7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8cdc103233c927819774d9857ca81d9c8a608f7e/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
1943,
12,
2890,
16,
1071,
548,
16,
30083,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
1943,
12,
2890,
16,
1071,
548,
16,
30083,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
logging.debug("%s exited cleanly", self.__progname) | logging.debug("%s[%d] exited cleanly", self.__progname, self.pid) | def __CheckExit(self): """Checks whether program has exitted and all I/O has been handled. | 050758234f2c0f6a8f94f132874fc6e013ce8e0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2049/050758234f2c0f6a8f94f132874fc6e013ce8e0e/daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1564,
6767,
12,
2890,
4672,
3536,
4081,
2856,
5402,
711,
2427,
2344,
471,
777,
467,
19,
51,
711,
2118,
7681,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1564,
6767,
12,
2890,
4672,
3536,
4081,
2856,
5402,
711,
2427,
2344,
471,
777,
467,
19,
51,
711,
2118,
7681,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
nodes.append(self.com_assign(nodelist[i], OP_ASSIGN)) n = Assign(nodes, exprNode) | nodesl.append(self.com_assign(nodelist[i], OP_ASSIGN)) n = Assign(nodesl, exprNode) | def expr_stmt(self, nodelist): # augassign testlist | testlist ('=' testlist)* en = nodelist[-1] exprNode = self.lookup_node(en)(en[1:]) if len(nodelist) == 1: n = Discard(exprNode) n.lineno = exprNode.lineno return n if nodelist[1][0] == token.EQUAL: nodes = [] for i in range(0, len(nodelist) - 2, 2): nodes.append(sel... | 96d5855736b55a31bbe2a7d53586d8508139f000 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/96d5855736b55a31bbe2a7d53586d8508139f000/transformer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3065,
67,
10589,
12,
2890,
16,
30068,
4672,
468,
31350,
6145,
1842,
1098,
571,
1842,
1098,
7707,
2218,
1842,
1098,
17653,
570,
273,
30068,
18919,
21,
65,
3065,
907,
273,
365,
18,
8664,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3065,
67,
10589,
12,
2890,
16,
30068,
4672,
468,
31350,
6145,
1842,
1098,
571,
1842,
1098,
7707,
2218,
1842,
1098,
17653,
570,
273,
30068,
18919,
21,
65,
3065,
907,
273,
365,
18,
8664,
6... |
plog("ERROR", self.proto+" 3-way failure at "+exit_node+". This makes "+str(err_cnt)+" node failures for "+address) | plog("ERROR", self.proto+" http error code failure at "+exit_node+". This makes "+str(err_cnt)+" node failures for "+address) | def register_httpcode_failure(self, address, exit_node): if address in self.httpcode_fails: self.httpcode_fails[address].add(exit_node) else: self.httpcode_fails[address] = sets.Set([exit_node]) err_cnt = len(self.httpcode_fails[address]) if err_cnt > self.httpcode_limit: # Remove all associated data for this url. # (... | 3caedeccfc2bf55b52be1cc570ebf46956d4b7d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/3caedeccfc2bf55b52be1cc570ebf46956d4b7d6/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
2505,
710,
67,
12251,
12,
2890,
16,
1758,
16,
2427,
67,
2159,
4672,
309,
1758,
316,
365,
18,
2505,
710,
67,
6870,
87,
30,
365,
18,
2505,
710,
67,
6870,
87,
63,
2867,
8009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
67,
2505,
710,
67,
12251,
12,
2890,
16,
1758,
16,
2427,
67,
2159,
4672,
309,
1758,
316,
365,
18,
2505,
710,
67,
6870,
87,
30,
365,
18,
2505,
710,
67,
6870,
87,
63,
2867,
8009,
... |
'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE' )), | 'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE', 'Windows Vista' )), | def _getOsType( os=None ): """Select the OS behavior based on os argument, 'python.os' registry setting and 'os.name' Java property. os: explicitly select desired OS. os=None to autodetect, os='None' to disable """ os = str(os or sys.registry.getProperty( "python.os" ) or \ System.getProperty( "os.name" )) _osTypeMap ... | 1ef0cdc01dc4e8be7750b62367428df47a70785a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/1ef0cdc01dc4e8be7750b62367428df47a70785a/javashell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
15112,
559,
12,
1140,
33,
7036,
262,
30,
3536,
3391,
326,
5932,
6885,
2511,
603,
1140,
1237,
16,
296,
8103,
18,
538,
11,
4023,
3637,
471,
296,
538,
18,
529,
11,
5110,
1272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15112,
559,
12,
1140,
33,
7036,
262,
30,
3536,
3391,
326,
5932,
6885,
2511,
603,
1140,
1237,
16,
296,
8103,
18,
538,
11,
4023,
3637,
471,
296,
538,
18,
529,
11,
5110,
1272,
... |
if ( self.getTag( pxl_tags_dict['sint32_array'] ) ): | new_tag = unpack('B', self.data[self.index])[0] if ( new_tag == pxl_tags_dict['sint32_array'] ): self.index = self.index + 1 | def Tag_sint32_array(self): if ( self.getTag( pxl_tags_dict['sint32_array'] ) ): self.unpack_string = 'l' self.size_of_element = 4 print "sint32_array [", return 1 return 0 | 56f3b40c49b4c8c2c1bf30f153b578ada70886f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/56f3b40c49b4c8c2c1bf30f153b578ada70886f5/pxldis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
87,
474,
1578,
67,
1126,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
225,
309,
261,
394,
67,
2692,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
87,
474,
1578,
67,
1126,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
225,
309,
261,
394,
67,
2692,
422,
... |
try: del e.__dict__ except (TypeError, AttributeError): pass else: self.fail("%r's __dict__ can be deleted" % e) | self.assertEqual(can_delete_dict(e), can_delete_dict(ValueError())) | def verify_dict_readonly(x): """ x has to be an instance of a class inheriting from Base. """ cant(x, {}) try: del x.__dict__ except (AttributeError, TypeError): pass else: self.fail("shouldn't allow del %r.__dict__" % x) dict_descr = Base.__dict__["__dict__"] try: dict_descr.__set__(x, {}) except (AttributeError, Type... | 21f6aac633a78271e762d6cd4b709e6a91d0c42a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/21f6aac633a78271e762d6cd4b709e6a91d0c42a/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
1576,
67,
16365,
12,
92,
4672,
3536,
619,
711,
358,
506,
392,
791,
434,
279,
667,
6811,
310,
628,
3360,
18,
3536,
848,
88,
12,
92,
16,
2618,
13,
775,
30,
1464,
619,
16186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
67,
1576,
67,
16365,
12,
92,
4672,
3536,
619,
711,
358,
506,
392,
791,
434,
279,
667,
6811,
310,
628,
3360,
18,
3536,
848,
88,
12,
92,
16,
2618,
13,
775,
30,
1464,
619,
16186,
... |
Returns the ramification index over the ground ring, i.e. 1. INPUT: self -- a local ring OUTPUT: integer -- the ramification index of this ring, i.e., 1 | Returns the ramification index over the ground ring: 1 unless overridden. INPUT: self -- a local ring OUTPUT: integer -- the ramification index of this ring: 1 unless overridden. | def ramification_index(self): r""" Returns the ramification index over the ground ring, i.e. 1. | c87165f9fc2c05807f4b7e2f4bdadedde99f81f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c87165f9fc2c05807f4b7e2f4bdadedde99f81f6/local_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24975,
1480,
67,
1615,
12,
2890,
4672,
436,
8395,
2860,
326,
24975,
1480,
770,
1879,
326,
19209,
9221,
16,
277,
18,
73,
18,
404,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
24975,
1480,
67,
1615,
12,
2890,
4672,
436,
8395,
2860,
326,
24975,
1480,
770,
1879,
326,
19209,
9221,
16,
277,
18,
73,
18,
404,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
adapt any proxied objects, it will unproxy them and then | adapt any proxied objects, it will unproxy them and then | def assertLocation(adapter, parent): """Assert locatable adapters. This function asserts that the adapter get location-proxied unless it does not provide ILocation itself. Further more the returned locatable adapter get its parent set unless its __parent__ attribute is not None. see adapter.txt """ # handle none-loca... | 0a6c383163de2cbc7a5bb82ffc49f98c92f1cf63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/0a6c383163de2cbc7a5bb82ffc49f98c92f1cf63/adapter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
2735,
12,
10204,
16,
982,
4672,
3536,
8213,
1515,
8163,
17272,
18,
225,
1220,
445,
26124,
716,
326,
4516,
336,
2117,
17,
20314,
2092,
3308,
518,
1552,
486,
5615,
467,
2735,
6174,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1815,
2735,
12,
10204,
16,
982,
4672,
3536,
8213,
1515,
8163,
17272,
18,
225,
1220,
445,
26124,
716,
326,
4516,
336,
2117,
17,
20314,
2092,
3308,
518,
1552,
486,
5615,
467,
2735,
6174,
1... |
if sys.platform == "win32": | if sys.platform == 'win32': | def _restart_with_reloader(): while True: args = [sys.executable] + sys.argv if sys.platform == "win32": args = ['"%s"' % arg for arg in args] new_environ = os.environ.copy() new_environ["RUN_MAIN"] = 'true' # This call reinvokes ourself and goes into the other branch of main as # a new process. exit_code = os.spawnve... | b6b0179517bddd1b4f5a6175ad7fb6980451fe71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/b6b0179517bddd1b4f5a6175ad7fb6980451fe71/autoreload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19164,
67,
1918,
67,
266,
6714,
13332,
1323,
1053,
30,
833,
273,
306,
9499,
18,
17751,
65,
397,
2589,
18,
19485,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
833,
273,
306,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19164,
67,
1918,
67,
266,
6714,
13332,
1323,
1053,
30,
833,
273,
306,
9499,
18,
17751,
65,
397,
2589,
18,
19485,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
833,
273,
306,
49... |
def items(self, socket, args): | def cmd_items(self, socket, args): | def items(self, socket, args): ids = [] response = {} | a740b862130870da0fc69e2a6140b60e22516d95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12359/a740b862130870da0fc69e2a6140b60e22516d95/canto_backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
3319,
12,
2890,
16,
2987,
16,
833,
4672,
3258,
273,
5378,
766,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1797,
67,
3319,
12,
2890,
16,
2987,
16,
833,
4672,
3258,
273,
5378,
766,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for z in points: if len(z) == 3: return self._graphic3d()(points, coerce=coerce, **kwds) xdata.append(z[0]) ydata.append(z[1]) | xdata = [z[0] for z in points] ydata = [z[1] for z in points] | def __call__(self, points, coerce=True, **kwds): try: return points.plot(**kwds) except AttributeError: pass options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v | 7dd1e64b988388d122dbb515b526ff9fd46bed93 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7dd1e64b988388d122dbb515b526ff9fd46bed93/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
3143,
16,
12270,
33,
5510,
16,
2826,
25577,
4672,
775,
30,
327,
3143,
18,
4032,
12,
636,
25577,
13,
1335,
6394,
30,
1342,
702,
273,
2065,
12,
2890,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
3143,
16,
12270,
33,
5510,
16,
2826,
25577,
4672,
775,
30,
327,
3143,
18,
4032,
12,
636,
25577,
13,
1335,
6394,
30,
1342,
702,
273,
2065,
12,
2890,
18,
... |
archive.getObject("sim:terrain.balkan") archive.getObject("sim:theater.balkan") | def dumpData(args): cachepath = CSP.getCachePath() dar = os.path.join(cachepath, "sim.dar") for arg in args: if arg.startswith('--dump-data='): dar = arg[12:] archive = SimData.DataArchive(dar, 1) archive.dump() archive.getObject("sim:terrain.balkan") archive.getObject("sim:theater.balkan") | 94661ef29cba181b6a9e410a25555e266eb0174d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14747/94661ef29cba181b6a9e410a25555e266eb0174d/CSPSim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
751,
12,
1968,
4672,
1247,
803,
273,
385,
3118,
18,
588,
1649,
743,
1435,
302,
297,
273,
1140,
18,
803,
18,
5701,
12,
2493,
803,
16,
315,
9812,
18,
72,
297,
7923,
364,
1501,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
751,
12,
1968,
4672,
1247,
803,
273,
385,
3118,
18,
588,
1649,
743,
1435,
302,
297,
273,
1140,
18,
803,
18,
5701,
12,
2493,
803,
16,
315,
9812,
18,
72,
297,
7923,
364,
1501,
31... | |
def _fetch_all_rows(self): r = list(self._result.fetch(self.arraysize, 1)) while len(r) >= self.arraysize: rows = self._result.fetch(self.arraysize, 1) if not rows: break r.extend(list(rows)) return r | def _fetch_all_rows(self): return _fetchall(self._result, self.arraysize, 1) | def _fetch_all_rows(self): r = list(self._result.fetch(self.arraysize, 1)) while len(r) >= self.arraysize: rows = self._result.fetch(self.arraysize, 1) if not rows: break r.extend(list(rows)) return r | 47edf13df137fea66f12ca636de5f3fc396f8007 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10477/47edf13df137fea66f12ca636de5f3fc396f8007/MySQLdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5754,
67,
454,
67,
3870,
12,
2890,
4672,
436,
273,
666,
12,
2890,
6315,
2088,
18,
5754,
12,
2890,
18,
1126,
1467,
16,
404,
3719,
1323,
562,
12,
86,
13,
1545,
365,
18,
1126,
1467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5754,
67,
454,
67,
3870,
12,
2890,
4672,
436,
273,
666,
12,
2890,
6315,
2088,
18,
5754,
12,
2890,
18,
1126,
1467,
16,
404,
3719,
1323,
562,
12,
86,
13,
1545,
365,
18,
1126,
1467... |
self.assertTrue(context.devices is devices) | self.assertTrue(hw_context.devices is devices) | def test_construction_3(self): devices = object() hw_context = HardwareContext(devices=devices) self.assertTrue(context.devices is devices) | ce54aa5c679c13f696fb5cc82e3ec222c5d9d937 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/ce54aa5c679c13f696fb5cc82e3ec222c5d9d937/test_dashboard_bundle_format_1_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
591,
4549,
67,
23,
12,
2890,
4672,
7166,
273,
733,
1435,
16139,
67,
2472,
273,
27438,
1042,
12,
12506,
33,
12506,
13,
365,
18,
11231,
5510,
12,
2472,
18,
12506,
353,
7166,
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,
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,
591,
4549,
67,
23,
12,
2890,
4672,
7166,
273,
733,
1435,
16139,
67,
2472,
273,
27438,
1042,
12,
12506,
33,
12506,
13,
365,
18,
11231,
5510,
12,
2472,
18,
12506,
353,
7166,
13... |
def recall(self, s): if self.history: self.history.recall(s) | def recall(self, s, event): self.text.undo_block_start() try: self.text.tag_remove("sel", "1.0", "end") self.text.mark_set("insert", "end-1c") s = s.strip() lines = s.split('\n') if lines: prefix = self.text.get("insert linestart","insert").rstrip() if prefix and prefix[-1]==':': self.newline_and_indent_event(event) s... | def recall(self, s): if self.history: self.history.recall(s) | 89f61869181408bb747f0049dfb3f51059eccc4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/89f61869181408bb747f0049dfb3f51059eccc4a/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20895,
12,
2890,
16,
272,
4672,
309,
365,
18,
8189,
30,
365,
18,
8189,
18,
266,
1991,
12,
87,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20895,
12,
2890,
16,
272,
4672,
309,
365,
18,
8189,
30,
365,
18,
8189,
18,
266,
1991,
12,
87,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if TiersOfATLAS.getSiteProperty(sitename,'alternateName')==dq2alternatename \ and TiersOfATLAS.getSiteProperty(sitename,'domain').find('atlasuserdisk')>0: | if TiersOfATLAS.getSiteProperty(sitename,'alternateName')==dq2alternatename and TiersOfATLAS.getSiteProperty(sitename,'srm').startswith('token:ATLASUSERDISK'): | def findsetype(sitesrm): setype= 'NULL' if sitesrm.find('castor')>=0: setype = 'CASTOR' elif sitesrm.find('dpm')>=0: setype = 'DPM' elif sitesrm.find('pnfs')>=0: setype = 'DCACHE' elif sitesrm.find('/nfs/')>=0: setype = 'NFS' return setype | 1cf0dbe6aba8b73d66cecd9b18de763cbc43815a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/1cf0dbe6aba8b73d66cecd9b18de763cbc43815a/ganga-stage-in-out-dq2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9... |
bits = [self.getToken()] while 1: tok = self.getToken() if not tok.startswith('"'): break bits.append(tok) sval = "".join(bits)[1:-1] sval = sval.replace('""', '"') sd = StringDef(sid, self.addId(sid), sval) | self.getToken() sd = StringDef(sid, self.addId(sid), self.currentQuotedString()) | def parse_stringtable(self): while self.getToken() != "BEGIN": pass self.getToken() while 1: if self.token == "END": break sid = self.token # Handle quoted strings - pity shlex doesn't handle it. bits = [self.getToken()] while 1: tok = self.getToken() if not tok.startswith('"'): break bits.append(tok) sval = "".join(bi... | 4c7ce4aac702da7f45a3728e193d41cf292ed38d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/4c7ce4aac702da7f45a3728e193d41cf292ed38d/win32rcparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1080,
2121,
12,
2890,
4672,
1323,
365,
18,
588,
1345,
1435,
480,
315,
16061,
6877,
1342,
365,
18,
588,
1345,
1435,
1323,
404,
30,
309,
365,
18,
2316,
422,
315,
4415,
6877,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1080,
2121,
12,
2890,
4672,
1323,
365,
18,
588,
1345,
1435,
480,
315,
16061,
6877,
1342,
365,
18,
588,
1345,
1435,
1323,
404,
30,
309,
365,
18,
2316,
422,
315,
4415,
6877,
89... |
websucker.Sucker.savefilename(self, url)) | websucker.Sucker.savefilename(self.sucker, url)) | def go(self, event=None): if not self.msgq: self.msgq = Queue.Queue(0) self.check_msgq() if not self.sucker: self.sucker = SuckerThread(self.msgq) if self.sucker.stopit: return self.url_entry.selection_range(0, END) url = self.url_entry.get() url = url.strip() if not url: self.top.bell() self.message("[Error: No URL en... | ee889a6d90cce7001929fcb161043767eb810158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ee889a6d90cce7001929fcb161043767eb810158/wsgui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
12,
2890,
16,
871,
33,
7036,
4672,
309,
486,
365,
18,
3576,
85,
30,
365,
18,
3576,
85,
273,
7530,
18,
3183,
12,
20,
13,
365,
18,
1893,
67,
3576,
85,
1435,
309,
486,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
12,
2890,
16,
871,
33,
7036,
4672,
309,
486,
365,
18,
3576,
85,
30,
365,
18,
3576,
85,
273,
7530,
18,
3183,
12,
20,
13,
365,
18,
1893,
67,
3576,
85,
1435,
309,
486,
365,
18,
... |
"""comment: get or set the Finder-comment of the item, displayed in the Get Info window.""" | """comment: get or set the Finder-comment of the item, displayed in the 'Get Info' window.""" | def comment(object, comment=None): """comment: get or set the Finder-comment of the item, displayed in the Get Info window.""" object = macfs.FSSpec(object) fss = macfs.FSSpec(object) object_alias = fss.NewAlias() if comment == None: return _getcomment(object_alias) else: return _setcomment(object_alias, comment) | cb100d16e3e7c368179a8b507afd5534c5681eb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cb100d16e3e7c368179a8b507afd5534c5681eb6/findertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2879,
12,
1612,
16,
2879,
33,
7036,
4672,
3536,
3469,
30,
336,
578,
444,
326,
19307,
17,
3469,
434,
326,
761,
16,
10453,
316,
326,
296,
967,
3807,
11,
2742,
12123,
733,
273,
5318,
2556... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2879,
12,
1612,
16,
2879,
33,
7036,
4672,
3536,
3469,
30,
336,
578,
444,
326,
19307,
17,
3469,
434,
326,
761,
16,
10453,
316,
326,
296,
967,
3807,
11,
2742,
12123,
733,
273,
5318,
2556... |
""" Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be a $\Z/(p^M)\Z$-algebra in which the matrix of frobenius will be construc... | """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be a $\Z/(p^M)\Z$-algebra in which the matrix of frobenius will be construc... | def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be... | e8c5dfe629aabf0303b396e56733ea0c7032d92a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e8c5dfe629aabf0303b396e56733ea0c7032d92a/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
1942... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
1942... |
["test_package_name"], gtype="default") | ["pulp-test-package"], gtype="default") | def immutable_groups(self): #TODO until we fix group import, this tests needs to be commented out | ce30026430cce5fde70028c0cfd89ceb57f43430 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/ce30026430cce5fde70028c0cfd89ceb57f43430/test_comps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11732,
67,
4650,
12,
2890,
4672,
468,
6241,
225,
3180,
732,
2917,
1041,
1930,
16,
333,
7434,
4260,
358,
506,
31813,
596,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11732,
67,
4650,
12,
2890,
4672,
468,
6241,
225,
3180,
732,
2917,
1041,
1930,
16,
333,
7434,
4260,
358,
506,
31813,
596,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
eq(msg.get_param('importance', unquote=0), '"high value"') | eq(msg.get_param('importance', unquote=False), '"high value"') | def test_set_param(self): eq = self.assertEqual msg = Message() msg.set_param('charset', 'iso-2022-jp') eq(msg.get_param('charset'), 'iso-2022-jp') msg.set_param('importance', 'high value') eq(msg.get_param('importance'), 'high value') eq(msg.get_param('importance', unquote=0), '"high value"') eq(msg.get_params(), [('t... | a0a00761a500478223f0e076983fddcdfb4ac587 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a0a00761a500478223f0e076983fddcdfb4ac587/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
891,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
1234,
273,
2350,
1435,
1234,
18,
542,
67,
891,
2668,
9999,
2187,
296,
9699,
17,
18212,
22,
17,
21797,
6134,
755... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
67,
891,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
1234,
273,
2350,
1435,
1234,
18,
542,
67,
891,
2668,
9999,
2187,
296,
9699,
17,
18212,
22,
17,
21797,
6134,
755... |
debug(" country-code second level domain %s", domain) | _debug(" country-code second level domain %s", domain) | def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request... | feb0a3bdbccc7b45bc8b960aa4c3434838b52d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/feb0a3bdbccc7b45bc8b960aa4c3434838b52d05/cookielib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
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,
444,
67,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
3113... |
return self._round_down(prec) | return -1 | def _round_half_up(self, prec): """Rounds 5 up (away from 0)""" if self._int[prec] in '56789': return self._round_up(prec) else: return self._round_down(prec) | 5b88ff0b9845dbf9714b6a766650a341e791ead2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/5b88ff0b9845dbf9714b6a766650a341e791ead2/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2260,
67,
20222,
67,
416,
12,
2890,
16,
13382,
4672,
3536,
54,
9284,
1381,
731,
261,
26718,
628,
374,
15574,
309,
365,
6315,
474,
63,
4036,
65,
316,
296,
20277,
4278,
327,
365,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2260,
67,
20222,
67,
416,
12,
2890,
16,
13382,
4672,
3536,
54,
9284,
1381,
731,
261,
26718,
628,
374,
15574,
309,
365,
6315,
474,
63,
4036,
65,
316,
296,
20277,
4278,
327,
365,
63... |
reg.register_volume_resample(image['data'], image2, Z, scale, mode) scaled_image = {'data' : image2, 'mat' : M, 'dim' : D, 'fwhm' : F} return scaled_image def demo_MRI_volume_align(scale=2, alpha=3.0, beta=4.0, gamma=5.0, Tx = 0.0, Ty = 0.0, Tz = 0.0): | reg.register_volume_resample(image, image2, Z, scale, mode) return image2, M def demo_build_dual_volumes(scale=2, alpha=3.0, beta=4.0, gamma=5.0, Tx = 0.0, Ty = 0.0, Tz = 0.0): | def build_scale_image(image, scale): # # rescale the 'mat' (voxel to physical mapping matrix) # (layers, rows, cols) = image['data'].shape M = image['mat'] * scale # dimensions D = np.zeros(3, dtype=np.int32); # Gaussian kernel - fill in with build_fwhm() F = np.zeros(3, dtype=np.float64); Z = np.zeros(3, dtype=np.floa... | a0a06507bdbd3322039b726463a7cc1c63e59774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/a0a06507bdbd3322039b726463a7cc1c63e59774/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5864,
67,
2730,
12,
2730,
16,
3159,
4672,
468,
468,
30323,
326,
296,
7373,
11,
261,
90,
2409,
292,
358,
11640,
2874,
3148,
13,
468,
261,
10396,
16,
2595,
16,
5347,
13,
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,
1361,
67,
5864,
67,
2730,
12,
2730,
16,
3159,
4672,
468,
468,
30323,
326,
296,
7373,
11,
261,
90,
2409,
292,
358,
11640,
2874,
3148,
13,
468,
261,
10396,
16,
2595,
16,
5347,
13,
273,
... |
cmd = "p4 -G print '%s | cmd = 'p4 -G print "%s | def getfile(self, name, rev): cmd = "p4 -G print '%s#%s'" % (self.depotname[name], rev) stdout = util.popen(cmd) | 79519eb6ce04a2e484d6b68097562601856aad0c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/79519eb6ce04a2e484d6b68097562601856aad0c/p4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
12,
2890,
16,
508,
16,
5588,
4672,
1797,
273,
315,
84,
24,
300,
43,
1172,
1995,
87,
7,
9,
87,
4970,
738,
261,
2890,
18,
323,
13130,
529,
63,
529,
6487,
5588,
13,
3909,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
12,
2890,
16,
508,
16,
5588,
4672,
1797,
273,
315,
84,
24,
300,
43,
1172,
1995,
87,
7,
9,
87,
4970,
738,
261,
2890,
18,
323,
13130,
529,
63,
529,
6487,
5588,
13,
3909,
27... |
log.log( "<Directive>PROC.isalive(), ID '%s', Connection refused" % (self.state.ID), 5 ) | log.log( "<Directive>PORT.isalive(), ID '%s', Connection refused" % (self.state.ID), 5 ) | def isalive(self,host,port,send="",expect=""): """ Connects to host:port, sends send, receives input, compares it to expect and returns TRUE or FALSE accordingly """ #print "Trying to connect to %s:%d send:'%s' exp:'%s'" % (host,port,send,expect) #DEBUG try: s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) try: | fb3a0335969e05e00a88f58ebfcacd7889db7280 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/fb3a0335969e05e00a88f58ebfcacd7889db7280/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
11462,
12,
2890,
16,
2564,
16,
655,
16,
4661,
1546,
3113,
12339,
1546,
6,
4672,
3536,
8289,
87,
358,
1479,
30,
655,
16,
9573,
1366,
16,
17024,
810,
16,
20670,
518,
358,
4489,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
11462,
12,
2890,
16,
2564,
16,
655,
16,
4661,
1546,
3113,
12339,
1546,
6,
4672,
3536,
8289,
87,
358,
1479,
30,
655,
16,
9573,
1366,
16,
17024,
810,
16,
20670,
518,
358,
4489,
471,... |
atom = Atom(atom_name, V(self.coords[n][0], self.coords[n][1], self.coords[n][2]), mol) | if self.length == 1 and \ n == 3: r = 1.100 xd = r * cosa yd = r * sina * cosd zd = r * sina * sind ypd = yd * coskh - zd * sinkh zpd = zd * coskh + yd * sinkh xpd = xd * cosph - zpd * sinph zqd = zpd * cosph + xd * sinph xqd = xpd * costh - ypd * sinth yqd = ypd * costh + xpd * sinth if inv: tmp = -zqd zqd = xqd xqd... | def _buildResiduum(self, mol, zmatrix, n_atoms, phi, psi, init_pos): """ | bfcd9bbf8883b807c4b4f0c2104f99b7390da40d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/bfcd9bbf8883b807c4b4f0c2104f99b7390da40d/PeptideGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
607,
350,
89,
379,
12,
2890,
16,
12629,
16,
998,
5667,
16,
290,
67,
14937,
16,
7706,
16,
23921,
16,
1208,
67,
917,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
M = int(M) if M < 2: raise ValueError, "M (=%s) must be at least 2" % M base_ring = Q.base_ring() F0, F1, offset = frobenius_expansion_by_newton(Q, p, M) if compute_exact_forms: F0_coeffs = transpose_list(F0.coeffs()) F0_reduced, f_0 = reduce_all(Q, p, F0_coeffs, offset, True) F1_coeffs = transpose_list(F1.co... | M = int(M) if M < 2: raise ValueError, "M (=%s) must be at least 2" % M base_ring = Q.base_ring() F0, F1, offset = frobenius_expansion_by_newton(Q, p, M) if compute_exact_forms: F0_coeffs = transpose_list(F0.coeffs()) F0_reduced, f_0 = reduce_all(Q, p, F0_coeffs, offset, True) F1_coeffs = transpose_list(F1.co... | def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be... | 06ea403f27d6562f2b12bd1e2b8f27b9b674388a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/06ea403f27d6562f2b12bd1e2b8f27b9b674388a/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
1942... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3148,
67,
792,
67,
74,
303,
19425,
8384,
12,
53,
16,
293,
16,
490,
16,
2606,
33,
7036,
16,
3671,
67,
17165,
67,
9741,
33,
8381,
4672,
3536,
14169,
281,
326,
3148,
434,
478,
303,
1942... |
else: info = get_pkginfo(dist) version = dist.version | def _render_view(self, req): plugins = {} plugins_dir = os.path.realpath(os.path.join(self.env.path, 'plugins')) plugins_dir = os.path.normcase(plugins_dir) # needs to match loader.py | a19afbf9389754dc9ae5bef27420e6906a9c1195 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/a19afbf9389754dc9ae5bef27420e6906a9c1195/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
4672,
4799,
273,
2618,
4799,
67,
1214,
273,
1140,
18,
803,
18,
7688,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
3074,
18,
803,
16,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
4672,
4799,
273,
2618,
4799,
67,
1214,
273,
1140,
18,
803,
18,
7688,
803,
12,
538,
18,
803,
18,
5701,
12,
2890,
18,
3074,
18,
803,
16,
296,
... | |
bt.clicked = (my_anchorblock_bt, ab) | bt.callback_clicked_add(my_anchorblock_bt, ab) | def my_anchorblock_anchor(obj, ei, ab, *args, **kwargs): if ei: bt = elementary.Button(obj) bt.label_set(ei.name) ei.hover.content_set("middle", bt) bt.show() if (ei.hover_top): bx = elementary.Box(obj) bt = elementary.Button(obj) bt.label_set("Top 1") bx.pack_end(bt) bt.clicked = (my_anchorblock_bt, ab) bt.show() bt =... | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
16215,
2629,
67,
16215,
12,
2603,
16,
13247,
16,
1223,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
13247,
30,
10921,
273,
930,
814,
18,
3616,
12,
2603,
13,
10921,
18,
1925,
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,
3399,
67,
16215,
2629,
67,
16215,
12,
2603,
16,
13247,
16,
1223,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
13247,
30,
10921,
273,
930,
814,
18,
3616,
12,
2603,
13,
10921,
18,
1925,
67,... |
if issubclass(t, TypeType): | try: issc = issubclass(t, TypeType) except TypeError: issc = 0 if issc: | def save(self, object, pers_save = 0): memo = self.memo | fd9341d485ee05de1dfebf5f6329750bb2e69863 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fd9341d485ee05de1dfebf5f6329750bb2e69863/pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
733,
16,
13508,
67,
5688,
273,
374,
4672,
11063,
273,
365,
18,
19521,
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,
1652,
1923,
12,
2890,
16,
733,
16,
13508,
67,
5688,
273,
374,
4672,
11063,
273,
365,
18,
19521,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.service.removeActiveConnection(self.addr, self) | self.service.removeActiveConnection(self.addr) | def connectionLost(self, reason): if self.state == socks5.STATE_CONNECT_PENDING: self.service.removePendingConnection(self.addr, self) else: if self.peersock != None: self.peersock.peersock = None self.peersock.transport.loseConnection() self.peersock = None self.service.removeActiveConnection(self.addr, self) | 6f1bbcc313689a1392d118e8a025dcdd576189e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3999/6f1bbcc313689a1392d118e8a025dcdd576189e6/proxy65.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
19024,
12,
2890,
16,
3971,
4672,
309,
365,
18,
2019,
422,
7313,
87,
25,
18,
7998,
67,
11032,
67,
25691,
30,
365,
18,
3278,
18,
4479,
8579,
1952,
12,
2890,
18,
4793,
16,
365,
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,
1459,
19024,
12,
2890,
16,
3971,
4672,
309,
365,
18,
2019,
422,
7313,
87,
25,
18,
7998,
67,
11032,
67,
25691,
30,
365,
18,
3278,
18,
4479,
8579,
1952,
12,
2890,
18,
4793,
16,
365,
13... |
if server_type not in self.server_types: | if server_type not in server_types: | def run_server(self, application, options): server_type = options.server_type | 0be839568d456e96389fafa94bc53826e172b444 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/0be839568d456e96389fafa94bc53826e172b444/flup_frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3567,
12,
2890,
16,
2521,
16,
702,
4672,
1438,
67,
723,
273,
702,
18,
3567,
67,
723,
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,
1086,
67,
3567,
12,
2890,
16,
2521,
16,
702,
4672,
1438,
67,
723,
273,
702,
18,
3567,
67,
723,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return super(Body, self).parent.shouldAllowIAccessibleFocusEvent | parent = super(Body, self).parent if not parent: return False return parent.shouldAllowIAccessibleFocusEvent | def _get_shouldAllowIAccessibleFocusEvent(self): # We must override this because we override parent to skip the MSAAHTML Registered Handler client, # which might have the focused state. if controlTypes.STATE_FOCUSED in self.states: return True return super(Body, self).parent.shouldAllowIAccessibleFocusEvent | 5dd2314bd262f18e509a661ec86ce2004187dbe3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/5dd2314bd262f18e509a661ec86ce2004187dbe3/MSHTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
13139,
7009,
45,
10451,
9233,
1133,
12,
2890,
4672,
468,
1660,
1297,
3849,
333,
2724,
732,
3849,
982,
358,
2488,
326,
490,
5233,
37,
4870,
26940,
4663,
1004,
16,
468,
1492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
13139,
7009,
45,
10451,
9233,
1133,
12,
2890,
4672,
468,
1660,
1297,
3849,
333,
2724,
732,
3849,
982,
358,
2488,
326,
490,
5233,
37,
4870,
26940,
4663,
1004,
16,
468,
1492,... |
self._dirty = dirty = bool(attrs.DIRTY) return dirty | return self._v_attrs.DIRTY | def _getdirty(self): if hasattr(self, "_dirty"): return self._dirty | dd26cdddecb0856b0077fc6ad5bd6d0060fe648e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12687/dd26cdddecb0856b0077fc6ad5bd6d0060fe648e/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
18013,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
4192,
18013,
6,
4672,
327,
365,
6315,
18013,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
588,
18013,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
4192,
18013,
6,
4672,
327,
365,
6315,
18013,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if line.startswith(" pass else: rv.append(line[3:]) | rv.append(line[3:]) | def convertTreeDump(treedump): """convert the output of str(document) to the format used in the testcases""" treedump = treedump.split("\n") rv = [] for line in treedump: if line.startswith("#document"): pass else: rv.append(line[3:]) return "\n".join(rv) | ab59ae7aa214383746148502163e0d51b7f50dd9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/ab59ae7aa214383746148502163e0d51b7f50dd9/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
2471,
10628,
12,
88,
15656,
2801,
4672,
3536,
6283,
326,
876,
434,
609,
12,
5457,
13,
358,
326,
740,
1399,
316,
326,
1842,
22186,
8395,
9787,
329,
2801,
273,
9787,
329,
2801,
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,
1765,
2471,
10628,
12,
88,
15656,
2801,
4672,
3536,
6283,
326,
876,
434,
609,
12,
5457,
13,
358,
326,
740,
1399,
316,
326,
1842,
22186,
8395,
9787,
329,
2801,
273,
9787,
329,
2801,
18,
... |
raise SMTPSenderRefused | raise SMTPSenderRefused('%s: %s' % (from_addr, resp)) | def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction. | 40233ea70a1e66e172e8524f3458fff8bd148b4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/40233ea70a1e66e172e8524f3458fff8bd148b4c/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
628,
67,
4793,
16,
358,
67,
23305,
16,
1234,
16,
4791,
67,
2116,
22850,
6487,
4519,
337,
67,
2116,
33,
8526,
4672,
3536,
2503,
1296,
11199,
392,
7278,
4791,
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,
1366,
4408,
12,
2890,
16,
628,
67,
4793,
16,
358,
67,
23305,
16,
1234,
16,
4791,
67,
2116,
22850,
6487,
4519,
337,
67,
2116,
33,
8526,
4672,
3536,
2503,
1296,
11199,
392,
7278,
4791,
2... |
def motor_textctrl(self,panel,attr,size=(100,-1)): return pvTextCtrl(panel, size=size, pv=self.motor.get_pv(attr)) def onLimitChange(self,pv=None,attr=None,**kw): lim_val = self.motor.get_field(attr) if 'low_limit' == attr: self.drives[0].SetMin(lim_val) elif 'high_limit' == attr: self.drives[0].Set... | def motor_textctrl(self,panel,attr,size=(100,-1)): return pvTextCtrl(panel, size=size, # style=wx.ALIGN_RIGHT, pv=self.motor.get_pv(attr)) | afe0af9ce20213d58b33e8c4b281e7f67e47c2f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12945/afe0af9ce20213d58b33e8c4b281e7f67e47c2f0/pv_multiple_callbacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23573,
67,
955,
16277,
12,
2890,
16,
13916,
16,
1747,
16,
1467,
28657,
6625,
16,
17,
21,
3719,
30,
327,
9770,
1528,
12418,
12,
13916,
16,
225,
963,
33,
1467,
16,
468,
2154,
33,
27226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23573,
67,
955,
16277,
12,
2890,
16,
13916,
16,
1747,
16,
1467,
28657,
6625,
16,
17,
21,
3719,
30,
327,
9770,
1528,
12418,
12,
13916,
16,
225,
963,
33,
1467,
16,
468,
2154,
33,
27226,
... | |
sage: msm.__cmp__(3) | sage: msm.__cmp__(3) | def __cmp__(self, other): """ Compare self and other. | bbc73f7219c5b9ba8de6e0a0c04efa730ad9ba3b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/bbc73f7219c5b9ba8de6e0a0c04efa730ad9ba3b/markov_multifractal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
11051,
365,
471,
1308,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
11051,
365,
471,
1308,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rdfParser.parser(self.location, self.URI) | rdfParser.parse(self.location, self.URI) | def load(self, location, URI): self.location = location self.URI = URI rdfParser = RDFParser() rdfParser.setAdder(store.add) | d7fcc3b60b48276ca91b99c82771475cc00de1dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/d7fcc3b60b48276ca91b99c82771475cc00de1dd/storeio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
2117,
16,
3699,
4672,
365,
18,
3562,
273,
2117,
365,
18,
3098,
273,
3699,
9160,
2678,
273,
13539,
2678,
1435,
9160,
2678,
18,
542,
986,
264,
12,
2233,
18,
1289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
2117,
16,
3699,
4672,
365,
18,
3562,
273,
2117,
365,
18,
3098,
273,
3699,
9160,
2678,
273,
13539,
2678,
1435,
9160,
2678,
18,
542,
986,
264,
12,
2233,
18,
1289,
13,... |
None, as_unicode(r'\uFFFE'), color, ptsize=24, surrogates=True) rend1 = font.render(None, as_unicode(r'\uD80C\uDCA7'), color, ptsize=24, surrogates=True) rend2 = font.render(None, as_unicode(r'\U000130A7'), color, ptsize=24) | None, as_unicode(r'\uFFFE'), color, ptsize=24) rend1 = font.render(None, as_unicode(r'\uD80C\uDCA7'), color, ptsize=24) rend2 = font.render(None, as_unicode(r'\U000130A7'), color, ptsize=24) | def test_freetype_Font_render(self): | 123afcae652a53186b6d23aaebda05fb0f4996ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/123afcae652a53186b6d23aaebda05fb0f4996ba/freetype_font_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
74,
266,
5872,
67,
5711,
67,
5902,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
74,
266,
5872,
67,
5711,
67,
5902,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"\n\n(Currently using %r)") % (version, e.args[0]) | "\n\n(Currently using %r)\n" % (version, e.args[0])) | def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, download_delay=15, no_fake=False): # making sure we use the absolute path to_dir = os.path.abspath(to_dir) was_imported = 'pkg_resources' in sys.modules or \ 'setuptools' in sys.modules try: try: import pkg_resources if not hasattr... | 484b5a9d633c0ea05ea6f5f640ca41f2c1174e3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8186/484b5a9d633c0ea05ea6f5f640ca41f2c1174e3e/distribute_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
67,
542,
30693,
12,
1589,
33,
5280,
67,
5757,
16,
4224,
67,
1969,
33,
5280,
67,
1785,
16,
358,
67,
1214,
33,
538,
18,
1397,
1214,
16,
4224,
67,
10790,
33,
3600,
16,
1158,
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,
999,
67,
542,
30693,
12,
1589,
33,
5280,
67,
5757,
16,
4224,
67,
1969,
33,
5280,
67,
1785,
16,
358,
67,
1214,
33,
538,
18,
1397,
1214,
16,
4224,
67,
10790,
33,
3600,
16,
1158,
67,
... |
return u'[[%s]]' % title | title = u'[[%s]]' % title | def title(self, underscore=False, savetitle=False, decode=False, withNamespace=True, withSection=True, asUrl=False, asLink=False, allowInterwiki=True, forceInterwiki=False, textlink=False, as_filename=False): """Return the title of this Page, as a Unicode string. | 5305fbbed0c6e94064d7131ae6ece7c2583e90ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/5305fbbed0c6e94064d7131ae6ece7c2583e90ea/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2077,
12,
2890,
16,
13677,
33,
8381,
16,
4087,
278,
1280,
33,
8381,
16,
2495,
33,
8381,
16,
598,
3402,
33,
5510,
16,
598,
5285,
33,
5510,
16,
487,
1489,
33,
8381,
16,
487,
2098,
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,
2077,
12,
2890,
16,
13677,
33,
8381,
16,
4087,
278,
1280,
33,
8381,
16,
2495,
33,
8381,
16,
598,
3402,
33,
5510,
16,
598,
5285,
33,
5510,
16,
487,
1489,
33,
8381,
16,
487,
2098,
33,
... |
self.optimize_loop(ops, 'Not', expected) | expected = """ [i0] jump(i0) """ self.optimize_loop(ops, 'Not', expected, expected_preamble=preamble) | def test_constant_boolrewrite_lt(self): ops = """ [i0] i1 = int_lt(i0, 0) guard_true(i1) [] i2 = int_ge(i0, 0) guard_false(i2) [] jump(i0) """ expected = """ [i0] i1 = int_lt(i0, 0) guard_true(i1) [] jump(i0) """ self.optimize_loop(ops, 'Not', expected) | 86d3ac7fcd8c34942685a0bee0fe0514a1a06a5a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/86d3ac7fcd8c34942685a0bee0fe0514a1a06a5a/test_optimizeopt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
14384,
67,
6430,
21489,
67,
5618,
12,
2890,
4672,
6727,
273,
3536,
306,
77,
20,
65,
277,
21,
273,
509,
67,
5618,
12,
77,
20,
16,
374,
13,
11026,
67,
3767,
12,
77,
21,
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,
1842,
67,
14384,
67,
6430,
21489,
67,
5618,
12,
2890,
4672,
6727,
273,
3536,
306,
77,
20,
65,
277,
21,
273,
509,
67,
5618,
12,
77,
20,
16,
374,
13,
11026,
67,
3767,
12,
77,
21,
13,... |
if self.selected_item: self.netview.highlight_off() | def select_item(self, item): if self.selected_item: self.netview.highlight_off() self.selected_item = item if item: self.netview.highlight(item) self.netview.set_entry_types(item.get_text_entries()) | 9714ea205e3801b4208867d4ac6f86b8a1f92875 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6050/9714ea205e3801b4208867d4ac6f86b8a1f92875/nettools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
1726,
12,
2890,
16,
761,
4672,
365,
18,
8109,
67,
1726,
273,
761,
309,
761,
30,
365,
18,
2758,
1945,
18,
15978,
12,
1726,
13,
365,
18,
2758,
1945,
18,
542,
67,
4099,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
1726,
12,
2890,
16,
761,
4672,
365,
18,
8109,
67,
1726,
273,
761,
309,
761,
30,
365,
18,
2758,
1945,
18,
15978,
12,
1726,
13,
365,
18,
2758,
1945,
18,
542,
67,
4099,
67,
... | |
YearGuess = year | YearGuess = int(year) | def getdate(s=""): """Attempt to parse the given string as a date. The format is unknown, but it's assumed that the broken American m/d/y isn't a possibility. It attempts to distinguish between d/m/y and y/m/d using the values, and handles any seperator. if dateorder (global) is 'DMY' or 'YMD', it overrides the last-r... | 04701c9fa902b705abc8e5c35e908b586d5e8ac9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8228/04701c9fa902b705abc8e5c35e908b586d5e8ac9/parseing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
712,
12,
87,
1546,
6,
4672,
3536,
7744,
358,
1109,
326,
864,
533,
487,
279,
1509,
18,
1021,
740,
353,
5917,
16,
1496,
518,
1807,
12034,
716,
326,
12933,
3986,
3036,
304,
312,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
712,
12,
87,
1546,
6,
4672,
3536,
7744,
358,
1109,
326,
864,
533,
487,
279,
1509,
18,
1021,
740,
353,
5917,
16,
1496,
518,
1807,
12034,
716,
326,
12933,
3986,
3036,
304,
312,
19,
... |
def _stats(self, x): | def _stats(self): | def _stats(self, x): return 0, 0.25, 0, -1.0 | e30c53e4e1f48dd6cf050ad084549d4fe72837b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/e30c53e4e1f48dd6cf050ad084549d4fe72837b5/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5296,
12,
2890,
4672,
327,
374,
16,
374,
18,
2947,
16,
374,
16,
300,
21,
18,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
389,
5296,
12,
2890,
4672,
327,
374,
16,
374,
18,
2947,
16,
374,
16,
300,
21,
18,
20,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If the order contains a non-integral element, even if we don't check that, we'll find that the rank is wrong or that the order isn't closed under multiplication: | If the order contains a non-integral element, even if we don't check that, we'll find that the rank is wrong or that the order isn't closed under multiplication: | def absolute_order_from_module_generators(gens, check_integral=True, check_rank=True, check_is_ring=True, is_maximal=None, allow_subfield = False): """ INPUT: gens -- list of elements of an absolute number field that generates an order in that number field as a ZZ *module*. check_integral -- check that each gen is inte... | e523b3c439fa132a1905b21fdc9900972e1ea34c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e523b3c439fa132a1905b21fdc9900972e1ea34c/order.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4967,
67,
1019,
67,
2080,
67,
2978,
67,
25959,
12,
23730,
16,
866,
67,
14970,
23811,
33,
5510,
16,
866,
67,
11500,
33,
5510,
16,
866,
67,
291,
67,
8022,
33,
5510,
16,
353,
67,
1896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4967,
67,
1019,
67,
2080,
67,
2978,
67,
25959,
12,
23730,
16,
866,
67,
14970,
23811,
33,
5510,
16,
866,
67,
11500,
33,
5510,
16,
866,
67,
291,
67,
8022,
33,
5510,
16,
353,
67,
1896,
... |
"restore GL_MODELVIEW_STACK_DEPTH to 1, if necessary" | """ restore GL_MODELVIEW_STACK_DEPTH to 1, if necessary """ | def _restore_modelview_stack_depth(self): #bruce 050608 split this out "restore GL_MODELVIEW_STACK_DEPTH to 1, if necessary" #bruce 040923: I'd like to reset the OpenGL state # completely, here, incl the stack depths, to mitigate some # bugs. How?? Note that there might be some OpenGL init code # earlier which I'll ha... | 9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
13991,
67,
2284,
1945,
67,
3772,
67,
5979,
12,
2890,
4672,
468,
2848,
3965,
374,
3361,
4848,
28,
1416,
333,
596,
3536,
5217,
10252,
67,
17391,
12145,
67,
21971,
67,
27479,
358,
404,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13991,
67,
2284,
1945,
67,
3772,
67,
5979,
12,
2890,
4672,
468,
2848,
3965,
374,
3361,
4848,
28,
1416,
333,
596,
3536,
5217,
10252,
67,
17391,
12145,
67,
21971,
67,
27479,
358,
404,... |
modulename = frame.f_globals["__name__"] | try: modulename = frame.f_globals["__name__"] except KeyError: modulename = None | def trace(self, frame, why, arg): if why == 'line': # something is fishy about getting the file name filename = frame.f_globals.get("__file__", None) if filename is None: filename = frame.f_code.co_filename modulename = frame.f_globals["__name__"] | 66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
12,
2890,
16,
2623,
16,
11598,
16,
1501,
4672,
309,
11598,
422,
296,
1369,
4278,
468,
5943,
353,
284,
1468,
93,
2973,
8742,
326,
585,
508,
1544,
273,
2623,
18,
74,
67,
16227,
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,
2606,
12,
2890,
16,
2623,
16,
11598,
16,
1501,
4672,
309,
11598,
422,
296,
1369,
4278,
468,
5943,
353,
284,
1468,
93,
2973,
8742,
326,
585,
508,
1544,
273,
2623,
18,
74,
67,
16227,
18,... |
actualId['filter'] = str(rows[0][0]) | actualId['filter'] = rows[0][0] | def _needFilter(self, dataId): if dataId.has_key('filter'): return dataId actualId = dict(dataId) if not dataId.has_key('visit'): raise KeyError, \ "Data id missing visit key, cannot look up filter\n" + \ str(dataId) if not hasattr(self, 'registry') or self.registry is None: raise RuntimeError, "No registry available t... | 7b3e22217005f826f36013a7f89e91710d9ae2a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6940/7b3e22217005f826f36013a7f89e91710d9ae2a5/cfhtMapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14891,
1586,
12,
2890,
16,
501,
548,
4672,
309,
501,
548,
18,
5332,
67,
856,
2668,
2188,
11,
4672,
327,
501,
548,
3214,
548,
273,
2065,
12,
892,
548,
13,
309,
486,
501,
548,
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,
389,
14891,
1586,
12,
2890,
16,
501,
548,
4672,
309,
501,
548,
18,
5332,
67,
856,
2668,
2188,
11,
4672,
327,
501,
548,
3214,
548,
273,
2065,
12,
892,
548,
13,
309,
486,
501,
548,
18,... |
if 1 in map(int.__cmp__, window.shape, binned.array.shape): | if 1 in map(int.__cmp__, window.shape, binned.numerator.shape): | def filter_ratios(binned, window): """ Filter the binned ratio data using the window function. The transformation is done in place. """ dims = len(binned.numerator.shape) if dims != len(window.shape): raise ValueError, "binned array and window dimensions mismatch" if 1 in map(int.__cmp__, window.shape, binned.array.sh... | 9c138e0b66a2290e2e30237a6ea1edb247122699 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/9c138e0b66a2290e2e30237a6ea1edb247122699/rate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
17048,
7441,
12,
4757,
11748,
16,
2742,
4672,
3536,
4008,
326,
4158,
11748,
7169,
501,
1450,
326,
2742,
445,
18,
225,
1021,
8620,
353,
2731,
316,
3166,
18,
3536,
9914,
273,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
67,
17048,
7441,
12,
4757,
11748,
16,
2742,
4672,
3536,
4008,
326,
4158,
11748,
7169,
501,
1450,
326,
2742,
445,
18,
225,
1021,
8620,
353,
2731,
316,
3166,
18,
3536,
9914,
273,
562... |
class NoThreadTestFrame(wxFrame): | class TesterApp (wxApp): def OnInit (self): f = TesterFrame(None) return true class TesterFrame(wxFrame): | def test(): all_tests = test_suite() runner = unittest.TextTestRunner(verbosity=2) runner.run(all_tests) | 10a9f586935a179066a0a38a59a0ccd013cd4a66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/10a9f586935a179066a0a38a59a0ccd013cd4a66/test_gui_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
777,
67,
16341,
273,
1842,
67,
30676,
1435,
8419,
273,
2836,
3813,
18,
1528,
4709,
9709,
12,
16629,
8807,
33,
22,
13,
8419,
18,
2681,
12,
454,
67,
16341,
13,
282,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13332,
777,
67,
16341,
273,
1842,
67,
30676,
1435,
8419,
273,
2836,
3813,
18,
1528,
4709,
9709,
12,
16629,
8807,
33,
22,
13,
8419,
18,
2681,
12,
454,
67,
16341,
13,
282,
2,
-100,... |
self.do_hint(input[0], 'hint-tester', [k.rsplit("/", 1) for k in input[1:] if "/" in k]) | try: self.do_hint(input[0], 'hint-tester', [k.rsplit("/", 1) for k in input[1:] if "/" in k]) except KeyboardInterrupt: continue readline.write_history_file(histfile) | def hint_tester(self): """Run a command line interface to test hints | 752b3aab77c97cb365d087ea7482ee5f19adcea7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2784/752b3aab77c97cb365d087ea7482ee5f19adcea7/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7380,
67,
1078,
387,
12,
2890,
4672,
3536,
1997,
279,
1296,
980,
1560,
358,
1842,
13442,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7380,
67,
1078,
387,
12,
2890,
4672,
3536,
1997,
279,
1296,
980,
1560,
358,
1842,
13442,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.