rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
def AddPoint( self, x, y, z ): | def AddPoint( self, x, y, z = 0 ): | def AddPoint( self, x, y, z ): return _gdal.OGR_G_AddPoint( self._o, x, y, z ) | b7d449ee48f4c53c685bdaab9372c0c76d37109c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/b7d449ee48f4c53c685bdaab9372c0c76d37109c/ogr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
2148,
12,
365,
16,
619,
16,
677,
16,
998,
273,
374,
262,
30,
327,
389,
19016,
287,
18,
51,
6997,
67,
43,
67,
986,
2148,
12,
365,
6315,
83,
16,
619,
16,
677,
16,
998,
262,
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,
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,
1436,
2148,
12,
365,
16,
619,
16,
677,
16,
998,
273,
374,
262,
30,
327,
389,
19016,
287,
18,
51,
6997,
67,
43,
67,
986,
2148,
12,
365,
6315,
83,
16,
619,
16,
677,
16,
998,
262,
2... |
'fields_view_get', False, view_type, context) | 'fields_view_get', False, 'tree', context) | def __init__(self, model, window, res_id=False, view_id=False, domain=None, context=None, name=False): super(Tree, self).__init__() if domain is None: domain = {} if context is None: context = {} if view_id: try: view_base = rpc.execute('object', 'execute', 'ir.ui.view', 'read', view_id, ['model', 'type'], context) ex... | ac9445da3fc207f3e78ac02be6bbf1ccad148ad9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/ac9445da3fc207f3e78ac02be6bbf1ccad148ad9/tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2742,
16,
400,
67,
350,
33,
8381,
16,
1476,
67,
350,
33,
8381,
16,
2461,
33,
7036,
16,
819,
33,
7036,
16,
508,
33,
8381,
4672,
2240,
12,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
938,
16,
2742,
16,
400,
67,
350,
33,
8381,
16,
1476,
67,
350,
33,
8381,
16,
2461,
33,
7036,
16,
819,
33,
7036,
16,
508,
33,
8381,
4672,
2240,
12,
247... |
answer = dialog = wxTextEntryDialog ( None, 'question', 'Title Here', '' ) | answer = wx.TextEntryDialog( None, question, question, '' ) answer.ShowModal() print answer | def input(self, question, password = False): """ Works like raw_input(), but returns a unicode string instead of ASCII. | 0899cbaefcae064dbdaff757cca5ba9a51d5f3db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/0899cbaefcae064dbdaff757cca5ba9a51d5f3db/wxpython_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
810,
12,
2890,
16,
5073,
16,
2201,
273,
1083,
4672,
3536,
4147,
87,
3007,
1831,
67,
2630,
9334,
1496,
1135,
279,
5252,
533,
3560,
434,
11768,
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,
0,
0,
0,
0,
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,
810,
12,
2890,
16,
5073,
16,
2201,
273,
1083,
4672,
3536,
4147,
87,
3007,
1831,
67,
2630,
9334,
1496,
1135,
279,
5252,
533,
3560,
434,
11768,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
handle = win32api.OpenProcess(1, 0, self.pid) return (0 != win32api.TerminateProcess(handle, 0)) | try: handle = win32api.OpenProcess(1, 0, self.pid) try: win32api.TerminateProcess(handle, 0) finally: win32api.CloseHandle(handle) except win32api.error: return False return True | def kill(self): """kill function for Win32""" handle = win32api.OpenProcess(1, 0, self.pid) return (0 != win32api.TerminateProcess(handle, 0)) | d3d59ae224d32c571ee768d6a55fa895799bd25e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/d3d59ae224d32c571ee768d6a55fa895799bd25e/async_sub.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
12,
2890,
4672,
3536,
16418,
445,
364,
21628,
1578,
8395,
1640,
273,
5657,
1578,
2425,
18,
3678,
2227,
12,
21,
16,
374,
16,
365,
18,
6610,
13,
327,
261,
20,
480,
5657,
1578,
2425... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8673,
12,
2890,
4672,
3536,
16418,
445,
364,
21628,
1578,
8395,
1640,
273,
5657,
1578,
2425,
18,
3678,
2227,
12,
21,
16,
374,
16,
365,
18,
6610,
13,
327,
261,
20,
480,
5657,
1578,
2425... |
1: _("jan"), 2: _("feb"), 3: _("mar"), 4: _("apr"), 5: _("may"), 6: _("jun"), 7: _("jul"), 8: _("aug"), 9: _("sep"), 10: _("oct"), 11: _("nov"), 12: _("dec")} | 1: _("Jan"), 2: _("Feb"), 3: _("Mar"), 4: _("Apr"), 5: _("May"), 6: _("Jun"), 7: _("Jul"), 8: _("Aug"), 9: _("Sep"), 10: _("Oct"), 11: _("Nov"), 12: _("Dec")} | def get_i18n_month_name(month_nb, display='short', ln=cdslang): """ get a non-numeric representation of a month, internationalized. @param month_nb: number of month, (1 based!) =>1=jan,..,12=dec @param ln: language for output @return the string representation of month """ _ = gettext_set_language(ln) if display == 'sho... | 09144e08209c1e4f0f49b8b6836cdec16112c8f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1780/09144e08209c1e4f0f49b8b6836cdec16112c8f2/dateutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
77,
2643,
82,
67,
7496,
67,
529,
12,
7496,
67,
6423,
16,
2562,
2218,
6620,
2187,
7211,
33,
4315,
2069,
539,
4672,
3536,
336,
279,
1661,
17,
5246,
4335,
434,
279,
3138,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
77,
2643,
82,
67,
7496,
67,
529,
12,
7496,
67,
6423,
16,
2562,
2218,
6620,
2187,
7211,
33,
4315,
2069,
539,
4672,
3536,
336,
279,
1661,
17,
5246,
4335,
434,
279,
3138,
16,
2... |
document.body[i] = document.body[i].replace('\\InsetSpace \\hspace*{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'hspace*{' + length + '}\n\\end_layout\n\n\\end_inset\n\n') document.body[i] = document.body[i].replace('\\InsetSpace \\hspace{}', \ '\\begin_inset ERT\nst... | addedLines = -1 if hstar.search(document.body[i]): subst = document.body[i].replace('\\InsetSpace \\hspace*{}', \ '\\begin_inset ERT\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'hspace*{' + length + '}\n\\end_layout\n\n\\end_inset\n\n') subst = subst.split('\n') document.body[i : i+1] = subs... | def revert_hspace(document): ' Revert \\InsetSpace \\hspace{} to ERT ' i = 0 while True: i = find_token(document.body, "\\InsetSpace \\hspace", i) if i == -1: return length = get_value(document.body, '\\length', i+1) if length == '': document.warning("Malformed lyx document: Missing '\\length' in Space inset.") return ... | a97fbaa6858229f4bef56786ffb07688ef5a4d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/a97fbaa6858229f4bef56786ffb07688ef5a4d82/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
76,
2981,
12,
5457,
4672,
296,
868,
1097,
1736,
382,
542,
3819,
1736,
76,
2981,
2916,
358,
4232,
56,
296,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15226,
67,
76,
2981,
12,
5457,
4672,
296,
868,
1097,
1736,
382,
542,
3819,
1736,
76,
2981,
2916,
358,
4232,
56,
296,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
... |
if hasattr(PGTop, 'setStartSort'): self.aspect2dp.node().setStartSort(16384) | self.aspect2dp.node().setStartSort(16384) | def setupRender2dp(self): """ Creates a render2d scene graph, the secondary scene graph for 2-d objects and gui elements that are superimposed over the 2-d and 3-d geometry in the window. """ self.render2dp = NodePath('render2dp') | db62d04f895a5621629a2ed89398b785d033137c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/db62d04f895a5621629a2ed89398b785d033137c/ShowBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
3420,
22,
9295,
12,
2890,
4672,
3536,
10210,
279,
1743,
22,
72,
9065,
2667,
16,
326,
9946,
9065,
2667,
364,
576,
17,
72,
2184,
471,
13238,
2186,
716,
854,
2240,
381,
7423,
1879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3420,
22,
9295,
12,
2890,
4672,
3536,
10210,
279,
1743,
22,
72,
9065,
2667,
16,
326,
9946,
9065,
2667,
364,
576,
17,
72,
2184,
471,
13238,
2186,
716,
854,
2240,
381,
7423,
1879,
... |
new_ub.recursive = False | new_ub.recursive = True | def gen_userbit(tup): new_ub = UserBit() new_ub.verb = DataTree.get_by_uri(tup[0], create=True) new_ub.qsc = prog.anchor new_ub.recursive = False new_ub.startdate = tup[2] new_ub.enddate = tup[3] if (tup[1] is None) or (tup[1] == 0) or (tup[1] == '(all)'): new_ub.user = None elif type(tup[1]) in (User, ESPUser): new_ub... | 7ee279a7011d2217ea1bd5240b096ae1e0547918 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/7ee279a7011d2217ea1bd5240b096ae1e0547918/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
1355,
3682,
12,
88,
416,
4672,
394,
67,
373,
273,
2177,
5775,
1435,
394,
67,
373,
18,
16629,
273,
1910,
2471,
18,
588,
67,
1637,
67,
1650,
12,
88,
416,
63,
20,
6487,
752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
67,
1355,
3682,
12,
88,
416,
4672,
394,
67,
373,
273,
2177,
5775,
1435,
394,
67,
373,
18,
16629,
273,
1910,
2471,
18,
588,
67,
1637,
67,
1650,
12,
88,
416,
63,
20,
6487,
752,
... |
out_record_in_format = call_bibformat(recID, format, ln, search_pattern=search_pattern, uid=uid) | out_record_in_format = call_bibformat(recID, format, ln, search_pattern=search_pattern, uid=uid, verbose=verbose) | def print_record(recID, format='hb', ot='', ln=cdslang, decompress=zlib.decompress, search_pattern=None, uid=None): "Prints record 'recID' formatted accoding to 'format'." _ = gettext_set_language(ln) out = "" # sanity check: record_exist_p = record_exists(recID) if record_exist_p == 0: # doesn't exist return out # ... | 845a99c9c5de9c5d99d06ec25bc8f5be515522e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/845a99c9c5de9c5d99d06ec25bc8f5be515522e8/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
4315,
2069,
539,
16,
16824,
33,
94,
2941,
18,
323,
14706,
16,
1623,
67,
4951,
33,
7036,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
4315,
2069,
539,
16,
16824,
33,
94,
2941,
18,
323,
14706,
16,
1623,
67,
4951,
33,
7036,
16,
4... |
message = "Your %s was updated successfully." % model.__class__._meta.verbose_name) | message = "Your %s was updated successfully." % asset.__class__._meta.verbose_name) | def apply_changes(self, request, asset, changes={}, meta=(), fieldmap={}): """Apply a dictionary of changes to an asset. If anything in fact changed, this will create a record of those changes, save the asset(s), and present a message to the user. | ebfa629aa359cc0e5a0a85a094c9a1cbce66d54e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9478/ebfa629aa359cc0e5a0a85a094c9a1cbce66d54e/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
6329,
12,
2890,
16,
590,
16,
3310,
16,
3478,
28793,
2191,
33,
9334,
652,
1458,
12938,
4672,
3536,
7001,
279,
3880,
434,
3478,
358,
392,
3310,
18,
971,
6967,
316,
5410,
3550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
67,
6329,
12,
2890,
16,
590,
16,
3310,
16,
3478,
28793,
2191,
33,
9334,
652,
1458,
12938,
4672,
3536,
7001,
279,
3880,
434,
3478,
358,
392,
3310,
18,
971,
6967,
316,
5410,
3550,
... |
def __getattributes__(name): | def __getattribute__(name): | def __getattributes__(name): """Return the value of the attribute with the specified name. | 90f4053bf2f7c2c005ceb2d08a2f7d1c2cf342c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9827/90f4053bf2f7c2c005ceb2d08a2f7d1c2cf342c3/locales.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
4589,
972,
12,
529,
4672,
3536,
990,
326,
460,
434,
326,
1566,
598,
326,
1269,
508,
18,
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,
1001,
588,
4589,
972,
12,
529,
4672,
3536,
990,
326,
460,
434,
326,
1566,
598,
326,
1269,
508,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
key = _winreg.OpenKeyEx( _winreg.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey ) return _RegKeyEnumerator( key ) def GetIndexedTimeZoneNames( index_key = 'Index' ): | key = _winreg.OpenKeyEx(_winreg.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey) return _RegKeyEnumerator(key) def GetIndexedTimeZoneNames(index_key = 'Index'): | def GetTimeZoneNames( ): "Returns the names of the time zones as defined in the registry" key = _winreg.OpenKeyEx( _winreg.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey ) return _RegKeyEnumerator( key ) | 59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
16760,
1557,
12,
262,
30,
315,
1356,
326,
1257,
434,
326,
813,
13975,
487,
2553,
316,
326,
4023,
6,
498,
273,
389,
8082,
1574,
18,
3678,
653,
424,
12,
389,
8082,
1574,
18,
44,
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,
968,
16760,
1557,
12,
262,
30,
315,
1356,
326,
1257,
434,
326,
813,
13975,
487,
2553,
316,
326,
4023,
6,
498,
273,
389,
8082,
1574,
18,
3678,
653,
424,
12,
389,
8082,
1574,
18,
44,
3... |
' icms.py init creates a new instance\n' ' icms.py start starts the web server') | ' %prog init creates a new instance\n' ' %prog start starts the web server\n' ' %prog update updates the instance (if needed)') | def start(parser, options, target): if options.source is not None: parser.error('option --import not allowed in this context') if options.root is not None: parser.error('option --root not allowed in this context') # Load the config config = RawConfigParser() config.add_section('instance') config.read(['%s/config.ini'... | fa68d086a1fe877a8ae1d77a6739a1d5a8a6179f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/fa68d086a1fe877a8ae1d77a6739a1d5a8a6179f/icms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
4288,
16,
702,
16,
1018,
4672,
309,
702,
18,
3168,
353,
486,
599,
30,
2082,
18,
1636,
2668,
3482,
1493,
5666,
486,
2935,
316,
333,
819,
6134,
225,
309,
702,
18,
3085,
353,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
4288,
16,
702,
16,
1018,
4672,
309,
702,
18,
3168,
353,
486,
599,
30,
2082,
18,
1636,
2668,
3482,
1493,
5666,
486,
2935,
316,
333,
819,
6134,
225,
309,
702,
18,
3085,
353,
4... |
dprint(state) | self.dprint(state) | def playback(self, frame, mode, multiplier=1): mode.BeginUndoAction() state = MacroPlaybackState(frame, mode) dprint(state) SelectAction.debuglevel = 1 while multiplier > 0: for recorded_action in self.getRecordedActions(): recorded_action.performAction(state) multiplier -= 1 SelectAction.debuglevel = 0 mode.EndUndoAct... | d77726ef8abb406e3169b9a46422cfcaff76a425 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/d77726ef8abb406e3169b9a46422cfcaff76a425/macro.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26335,
12,
2890,
16,
2623,
16,
1965,
16,
15027,
33,
21,
4672,
1965,
18,
8149,
31224,
1803,
1435,
919,
273,
31203,
30569,
1119,
12,
3789,
16,
1965,
13,
365,
18,
72,
1188,
12,
2019,
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,
26335,
12,
2890,
16,
2623,
16,
1965,
16,
15027,
33,
21,
4672,
1965,
18,
8149,
31224,
1803,
1435,
919,
273,
31203,
30569,
1119,
12,
3789,
16,
1965,
13,
365,
18,
72,
1188,
12,
2019,
13,
... |
if parent: self.badmodules[fqname][parent.__name__] = None | def import_module(self, partname, fqname, parent): self.msgin(3, "import_module", partname, fqname, parent) try: m = self.modules[fqname] except KeyError: pass else: self.msgout(3, "import_module ->", m) return m if self.badmodules.has_key(fqname): self.msgout(3, "import_module -> None") if parent: self.badmodules[fqna... | dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d/modulefinder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
2978,
12,
2890,
16,
1087,
529,
16,
8508,
529,
16,
982,
4672,
365,
18,
959,
1912,
12,
23,
16,
315,
5666,
67,
2978,
3113,
1087,
529,
16,
8508,
529,
16,
982,
13,
775,
30,
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,
1930,
67,
2978,
12,
2890,
16,
1087,
529,
16,
8508,
529,
16,
982,
4672,
365,
18,
959,
1912,
12,
23,
16,
315,
5666,
67,
2978,
3113,
1087,
529,
16,
8508,
529,
16,
982,
13,
775,
30,
31... | |
for oid in db._storage.commitVersion(self._version, dest, t): db.invalidate(oid, version=dest) | oids=db._storage.commitVersion(self._version, dest, t) for oid in oids: db.invalidate(oid, version=dest) if dest: for oid in oids: db.invalidate(oid, version=self._version) | def commit(self, reallyme, t): db=self._db dest=self._dest for oid in db._storage.commitVersion(self._version, dest, t): db.invalidate(oid, version=dest) | 0accfcdbe1b930c5da92920a081e1455ae2dab56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/0accfcdbe1b930c5da92920a081e1455ae2dab56/DB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
12,
2890,
16,
8654,
3501,
16,
268,
4672,
1319,
33,
2890,
6315,
1966,
1570,
33,
2890,
6315,
10488,
26629,
33,
1966,
6315,
5697,
18,
7371,
1444,
12,
2890,
6315,
1589,
16,
1570,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
12,
2890,
16,
8654,
3501,
16,
268,
4672,
1319,
33,
2890,
6315,
1966,
1570,
33,
2890,
6315,
10488,
26629,
33,
1966,
6315,
5697,
18,
7371,
1444,
12,
2890,
6315,
1589,
16,
1570,
16,
... |
from subprocess import * | import subprocess | def safe_exec(cmd): """ Executes a command and checks its return value, throwing an exception if it fails. """ from subprocess import * try: retcode = call(cmd, shell=True) if retcode < 0: raise RuntimeError("Child was terminated by signal " + -retcode) except OSError, e: raise RuntimeError("Execution failed: " + e) | d8ea22b2ce38709704de3d398e1e3d41e810ae7c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/255/d8ea22b2ce38709704de3d398e1e3d41e810ae7c/make_win.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4183,
67,
4177,
12,
4172,
4672,
3536,
3889,
993,
279,
1296,
471,
4271,
2097,
327,
460,
16,
19440,
392,
1520,
309,
518,
6684,
18,
3536,
1930,
6652,
775,
30,
22115,
273,
745,
12,
4172,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
67,
4177,
12,
4172,
4672,
3536,
3889,
993,
279,
1296,
471,
4271,
2097,
327,
460,
16,
19440,
392,
1520,
309,
518,
6684,
18,
3536,
1930,
6652,
775,
30,
22115,
273,
745,
12,
4172,
1... |
self.deletionMethods = [onDelete] | self.deletionMethods = [onDelete] | def remove(weak, self=self): """Set self.isDead to true when method or instance is destroyed""" methods = self.deletionMethods[:] del self.deletionMethods[:] try: del self.__class__._allInstances[ self.key ] except KeyError: pass for function in methods: try: if callable( function ): function( self ) except: pass | bab5cbf783102ab4afe15dcdc8128a54d7471724 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14949/bab5cbf783102ab4afe15dcdc8128a54d7471724/SpecEventsDispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
26008,
16,
365,
33,
2890,
4672,
3536,
694,
365,
18,
291,
11852,
358,
638,
1347,
707,
578,
791,
353,
17689,
8395,
2590,
273,
365,
18,
19003,
285,
4712,
10531,
65,
1464,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
26008,
16,
365,
33,
2890,
4672,
3536,
694,
365,
18,
291,
11852,
358,
638,
1347,
707,
578,
791,
353,
17689,
8395,
2590,
273,
365,
18,
19003,
285,
4712,
10531,
65,
1464,
365,
1... |
table = self.__tables.get(i, self.__main_table) | table = self.__field_tables.get(i, self.__main_table) | def to_sql(self): stack = [] params = [] for i, e in reverse_enumerate(self.__exp): if self._is_leaf(e, internal=True): table = self.__tables.get(i, self.__main_table) q, p = self.__leaf_to_sql(e, table) params.insert(0, p) stack.append(q) else: if e == '!': stack.append('(NOT (%s))' % (stack.pop(),)) else: ops = {'&':... | 90265824f7ec25a8149908948d1d166966cc134e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/90265824f7ec25a8149908948d1d166966cc134e/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
4669,
12,
2890,
4672,
2110,
273,
5378,
859,
273,
5378,
364,
277,
16,
425,
316,
4219,
67,
7924,
12600,
12,
2890,
16186,
2749,
4672,
309,
365,
6315,
291,
67,
12070,
12,
73,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
4669,
12,
2890,
4672,
2110,
273,
5378,
859,
273,
5378,
364,
277,
16,
425,
316,
4219,
67,
7924,
12600,
12,
2890,
16186,
2749,
4672,
309,
365,
6315,
291,
67,
12070,
12,
73,
16,
... |
if isinstance(value, (datetime.date, datetime.datetime)): | if isinstance(value, (datetime.date, datetime.datetime, sqlbuilder.SQLExpression)): | def fromPython(self, value, state): if value is None: return None if isinstance(value, (datetime.date, datetime.datetime)): return value if hasattr(value, "strftime"): return value.strftime(self.format) raise validators.InvalidField("expected a datetime in the DateTimeCol '%s', got %s instead" % \ (self.name, type(valu... | 74fb945a4c718e824cf5ccb9328efe3e268d7922 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/74fb945a4c718e824cf5ccb9328efe3e268d7922/col.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
15774,
12,
2890,
16,
460,
16,
919,
4672,
309,
460,
353,
599,
30,
327,
599,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3314,
18,
6585,
16,
1847,
9574,
18,
3997,
2300,
3719,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
628,
15774,
12,
2890,
16,
460,
16,
919,
4672,
309,
460,
353,
599,
30,
327,
599,
309,
1549,
12,
1132,
16,
261,
6585,
18,
712,
16,
3314,
18,
6585,
16,
1847,
9574,
18,
3997,
2300,
3719,... |
val[0] = [-bernoulli(k) / (2*k)] return R(val, precision) | val[0] = -bernoulli(k) / (2*k) R = QQ[['q']] return R(val, prec=prec, check=False) | def eisenstein_series_qexp(k, prec=10, K=QQ): r""" Return the $q$-expansion of the weight $k$ Eisenstein series to precision prec in the field $K$. Here's a rough description of how the algorithm works: we know $E_k = const + \sum_n sigma(n,k-1) q^n$. Now, we basically just compute all the $\sigma(n,k-1)$ simultaneous... | 37d32e5b878a862e5e00d658df6e0773a4c46222 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/37d32e5b878a862e5e00d658df6e0773a4c46222/eis_series.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... |
elif event.filename == 'info': | elif event.filename in [':info', 'info']: | def update_metadata(self, event): '''process info and info.xml files for the templates''' fpath = "%s/%s" % (self.path, event.filename) if event.filename == 'info.xml': if not self.infoxml: self.infoxml = XMLSrc(fpath, True) self.infoxml.HandleEvent(event) elif event.filename == 'info': for line in open(fpath).readline... | 50bf9b6cbcc4dc7edc312198795cc524ca61e51b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/50bf9b6cbcc4dc7edc312198795cc524ca61e51b/Plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
4165,
12,
2890,
16,
871,
4672,
9163,
2567,
1123,
471,
1123,
18,
2902,
1390,
364,
326,
5539,
26418,
13543,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
803,
16,
871,
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,
4165,
12,
2890,
16,
871,
4672,
9163,
2567,
1123,
471,
1123,
18,
2902,
1390,
364,
326,
5539,
26418,
13543,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
803,
16,
871,
18,
... |
activeClipboard.put('DifferenceExposure', differenceImage) | activeClipboard.put('DifferenceExposure', differenceExposure) | def process(self): print 'Python ImageSubtractStage process : _rank %i stageId %d' % (self._rank, self.stageId) activeClipboard = self.inputQueue.getNextDataset() | 0a65eff3b995b851c2d37d72647223fb5fdc2e4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6527/0a65eff3b995b851c2d37d72647223fb5fdc2e4e/ImageSubtractStage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
1172,
296,
15774,
3421,
27904,
8755,
1207,
294,
389,
11500,
738,
77,
6009,
548,
738,
72,
11,
738,
261,
2890,
6315,
11500,
16,
365,
18,
12869,
548,
13,
2695,
15339,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
1172,
296,
15774,
3421,
27904,
8755,
1207,
294,
389,
11500,
738,
77,
6009,
548,
738,
72,
11,
738,
261,
2890,
6315,
11500,
16,
365,
18,
12869,
548,
13,
2695,
15339,
... |
def __init__(self, repeats): | def __init__(loc, self, repeats): self.loc = loc | def __init__(self, repeats): self.repeats = repeats | 94506ad601e8639d16184a6d5789d5fc03754d55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10962/94506ad601e8639d16184a6d5789d5fc03754d55/atl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
1829,
16,
365,
16,
31387,
4672,
365,
18,
1829,
273,
1515,
365,
18,
28956,
2323,
273,
31387,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
1829,
16,
365,
16,
31387,
4672,
365,
18,
1829,
273,
1515,
365,
18,
28956,
2323,
273,
31387,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
req = urllib2.Request(urlparse.urljoin(URL_BASE, "view.php")) | def clean_title(t): t = urllib.unquote(t) (t, ext) = os.path.splitext(t) m = re.match("(.*)(?:[(|\[]|, The$)",t, re.I) ret = t if m: ret = m.group(1) return urllib.quote(ret.strip()) | 2ffdaee9138ec9cb46201405bbe8379f1e308d49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/2ffdaee9138ec9cb46201405bbe8379f1e308d49/ofdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
2649,
12,
88,
4672,
268,
273,
11527,
18,
318,
6889,
12,
88,
13,
261,
88,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
88,
13,
312,
273,
283,
18,
1916,
2932,
14361... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2721,
67,
2649,
12,
88,
4672,
268,
273,
11527,
18,
318,
6889,
12,
88,
13,
261,
88,
16,
1110,
13,
273,
1140,
18,
803,
18,
4939,
408,
12,
88,
13,
312,
273,
283,
18,
1916,
2932,
14361... | |
if True: try: main() except: wikipedia.stopme() raise else: wikipedia.stopme() | finally: wikipedia.stopme() | def main(): # read command line parameters # what the bot should do (either resolve double redirs, or delete broken redirs) action = None # where the bot should get his infos from (either None to load the maintenance # special page from the live wiki, the filename of a local sql dump file) source = None # Which namespa... | 6bee548844666b6979e873be1c6893e32f79ff1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/6bee548844666b6979e873be1c6893e32f79ff1c/redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
855,
1296,
980,
1472,
468,
4121,
326,
2512,
1410,
741,
261,
73,
2927,
2245,
1645,
283,
8291,
16,
578,
1430,
12933,
283,
8291,
13,
1301,
273,
599,
468,
1625,
326,
2512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
855,
1296,
980,
1472,
468,
4121,
326,
2512,
1410,
741,
261,
73,
2927,
2245,
1645,
283,
8291,
16,
578,
1430,
12933,
283,
8291,
13,
1301,
273,
599,
468,
1625,
326,
2512,
... |
node_list = [] node_list.append(nodes.image(block_text, **options)) return node_list | reference = None image_node = nodes.image(block_text, **options) if reference: reference += image_node return [reference] else: return [image_node] | def image(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): reference = ''.join(arguments[0].split('\n')) if reference.find(' ') != -1: error = state_machine.reporter.error( 'Image URI contains whitespace.', nodes.literal_block(block_text, block_text), line=lineno) return [er... | 5e6e129e37c492247fe95b5ce27ed6ce3969a0cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/5e6e129e37c492247fe95b5ce27ed6ce3969a0cc/images.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
2114,
273,
875,
18,
5701,
12,
7099,
63,
20,
8009,
4939,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1316,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
2114,
273,
875,
18,
5701,
12,
7099,
63,
20,
8009,
4939,... |
FL_INPUTVALIDATOR, [cty.POINTER(FL_OBJECT), FL_INPUTVALIDATOR], | FL_INPUTVALIDATOR, [cty.POINTER(FL_OBJECT), FL_INPUTVALIDATOR], | def fl_get_input(ob): """ fl_get_input(ob) -> input string """ retval = _fl_get_input(ob) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
2630,
12,
947,
4672,
3536,
1183,
67,
588,
67,
2630,
12,
947,
13,
317,
810,
533,
3536,
225,
5221,
273,
389,
2242,
67,
588,
67,
2630,
12,
947,
13,
327,
5221,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
67,
588,
67,
2630,
12,
947,
4672,
3536,
1183,
67,
588,
67,
2630,
12,
947,
13,
317,
810,
533,
3536,
225,
5221,
273,
389,
2242,
67,
588,
67,
2630,
12,
947,
13,
327,
5221,
282,
... |
zfile = gzip.GzipFile(os.path.join(job.outputdir,'stdout.txt.gz' )) | zfile = os.popen('zcat '+os.path.join(job.outputdir,'stdout.txt.gz' )) | def collectStats(self): """Collect job statistics from different log files and fill dict Athena.stats""" import gzip, time, fileinput from Ganga.GPIDev.Lib.Job import Job job = self.getJobObject() | 748381bb0d116dbfdf831cccab99070c274aefd6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/748381bb0d116dbfdf831cccab99070c274aefd6/Athena.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
4195,
12,
2890,
4672,
3536,
10808,
1719,
7691,
628,
3775,
613,
1390,
471,
3636,
2065,
432,
15991,
69,
18,
5296,
8395,
1930,
10331,
16,
813,
16,
585,
2630,
628,
611,
539,
69,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
4195,
12,
2890,
4672,
3536,
10808,
1719,
7691,
628,
3775,
613,
1390,
471,
3636,
2065,
432,
15991,
69,
18,
5296,
8395,
1930,
10331,
16,
813,
16,
585,
2630,
628,
611,
539,
69,
18,
... |
class CallFront_hSlider(ControlledCallFront): | class CallFrontHSlider(ControlledCallFront): | def action(self, value): if value != None: value = self.attribute2controlDict.get(value, value) if self.valType: for i in range(self.control.count()): if self.valType(str(self.control.itemText(i))) == value: self.control.setCurrentIndex(i) return values = "" for i in range(self.control.count()): values += str(self.cont... | d26de079e17bbf73783829e143857af9e4646987 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/d26de079e17bbf73783829e143857af9e4646987/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
460,
4672,
309,
460,
480,
599,
30,
460,
273,
365,
18,
4589,
22,
7098,
5014,
18,
588,
12,
1132,
16,
460,
13,
309,
365,
18,
1125,
559,
30,
364,
277,
316,
1048,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
460,
4672,
309,
460,
480,
599,
30,
460,
273,
365,
18,
4589,
22,
7098,
5014,
18,
588,
12,
1132,
16,
460,
13,
309,
365,
18,
1125,
559,
30,
364,
277,
316,
1048,
12... |
def connectDBS(self): """ open a connection with the DBS server Arguments: none Return: DBS connection """ url = self.args['DBSURL'] args = {} args['instance'] = self.args['DBSAddress'] try: dbs = DbsCgiApi(url, args) except DbsException, ex: logging.error("Error: cannot contact DBS: %s" % ex) raise retu... | def getFileListFromDBS(self, datasetId): """ _getFileListFromDBS_ Get the list of files of the dataset from DBS Arguments: datasetId -- the name of the dataset Return: list of tuples (name,size,fileBlockId) for all files in dataset """ | 87d7e4aaef9a55485525200d47dab0552b5b83de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/87d7e4aaef9a55485525200d47dab0552b5b83de/MergeSensorComponent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
682,
1265,
2290,
55,
12,
2890,
16,
3709,
548,
4672,
3536,
389,
588,
26098,
1265,
2290,
55,
67,
225,
968,
326,
666,
434,
1390,
434,
326,
3709,
628,
2383,
55,
225,
13599,
30,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
682,
1265,
2290,
55,
12,
2890,
16,
3709,
548,
4672,
3536,
389,
588,
26098,
1265,
2290,
55,
67,
225,
968,
326,
666,
434,
1390,
434,
326,
3709,
628,
2383,
55,
225,
13599,
30,
225,
... | |
for songs in self.__find_songs(selection): | for songs in self.__find_songs(view.get_selection()): | def __songs_selected(self, selection): if self.window: self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) for songs in self.__find_songs(selection): yield True if self.window: self.window.set_cursor(None) self.emit('songs-selected', songs, None) self.save() | 12833e0deddfd67ebe8af2a49e6edf4601963575 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/12833e0deddfd67ebe8af2a49e6edf4601963575/filesystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
816,
564,
67,
8109,
12,
2890,
16,
4421,
4672,
309,
365,
18,
5668,
30,
365,
18,
5668,
18,
542,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
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,
1001,
816,
564,
67,
8109,
12,
2890,
16,
4421,
4672,
309,
365,
18,
5668,
30,
365,
18,
5668,
18,
542,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
18,
... |
t = analyse() | analyse() | def debug(): import traceback exc, val, tb = sys.exc_info() print >> sys.stderr traceback.print_exception(exc, val, tb) print >> sys.stderr | fe1adadce103abae4a38012b8b29cfea6ac754bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/fe1adadce103abae4a38012b8b29cfea6ac754bc/translate_pypy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
13332,
1930,
10820,
3533,
16,
1244,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
1172,
1671,
2589,
18,
11241,
10820,
18,
1188,
67,
4064,
12,
10075,
16,
1244,
16,
8739,
13,
1172,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
13332,
1930,
10820,
3533,
16,
1244,
16,
8739,
273,
2589,
18,
10075,
67,
1376,
1435,
1172,
1671,
2589,
18,
11241,
10820,
18,
1188,
67,
4064,
12,
10075,
16,
1244,
16,
8739,
13,
1172,... |
copyBlockActualColour = N.zeros([vScrollLeftPixels, 216]) + self.cdgColourTable[colour] copyBlockColourIndex = N.zeros([vScrollLeftPixels, 216]) + colour | copyBlockActualColour = N.zeros([hScrollRightPixels, 216]) + self.cdgColourTable[colour] copyBlockColourIndex = N.zeros([hScrollRightPixels, 216]) + colour | def cdgScrollCommon (self, packd, copy): | 8d9e0a20b61ab42fd073708c0dc88fe691294f27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12653/8d9e0a20b61ab42fd073708c0dc88fe691294f27/pycdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7976,
75,
6806,
6517,
261,
2890,
16,
2298,
72,
16,
1610,
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,
... | [
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,
7976,
75,
6806,
6517,
261,
2890,
16,
2298,
72,
16,
1610,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if yc < self.y + self.m_BorderUp: | if yc < self.m_BorderUp: | def alpha_from_y(self, yc): | 8266f3e7a480eb6b62c06787a109e6d21a27c094 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/8266f3e7a480eb6b62c06787a109e6d21a27c094/transfer_function_widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4190,
67,
2080,
67,
93,
12,
2890,
16,
27495,
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... | [
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,
4190,
67,
2080,
67,
93,
12,
2890,
16,
27495,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for err in ("strict", "replace", "xmlcharrefreplace", "backslashreplace", "test.hugeposreturn"): | for err in ("strict", "replace", "xmlcharrefreplace", "backslashreplace", "test.posreturn"): | def __getitem__(self, key): raise ValueError | 2e0b18af3092a24c9689f72af898083ebfd9aec7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2e0b18af3092a24c9689f72af898083ebfd9aec7/test_codeccallbacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
1002,
2068,
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,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
1002,
2068,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
BitField.__init__(self, name, default, size) | def __init__(self, name, default, size, names): BitField.__init__(self, name, default, size) self.multi = type(names) is list if self.multi: self.names = map(lambda x:[x], names) else: self.names = names | f3bb6f928598a2ea74a153fcf625b67e1ef5bf5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/f3bb6f928598a2ea74a153fcf625b67e1ef5bf5a/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
805,
16,
963,
16,
1257,
4672,
365,
18,
7027,
273,
618,
12,
1973,
13,
353,
666,
309,
365,
18,
7027,
30,
365,
18,
1973,
273,
852,
12,
14661,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
805,
16,
963,
16,
1257,
4672,
365,
18,
7027,
273,
618,
12,
1973,
13,
353,
666,
309,
365,
18,
7027,
30,
365,
18,
1973,
273,
852,
12,
14661,
6... | |
return unittest.wait(d) | return unittest.wait(d, timeout=timeout) | def wait(self, d, timeout=10.0): return unittest.wait(d) | ffb33b84e30ecee036d0f07a068fd3353413b5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ffb33b84e30ecee036d0f07a068fd3353413b5c5/test_adbapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
12,
2890,
16,
302,
16,
2021,
33,
2163,
18,
20,
4672,
327,
2836,
3813,
18,
7048,
12,
72,
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,
2529,
12,
2890,
16,
302,
16,
2021,
33,
2163,
18,
20,
4672,
327,
2836,
3813,
18,
7048,
12,
72,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
_ABSOLUTE_URL=r'((http|https|ftp|mailto|file|about)[:/]+?[%s0-9_\@\.\,\?\!\/\:\;\-\ _ABS_AND_RELATIVE_URL=r'([%s0-9_\@\.\,\?\!\/\:\;\-\ | _ABSOLUTE_URL=r'((http|https|ftp|mailto|file|about)[:/]+?[%s0-9_\@\.\,\?\!\/\:\;\-\ _ABS_AND_RELATIVE_URL=r'([%s0-9_\@\.\,\?\!\/\:\;\-\ | def doc_strong(self, s, expr = re.compile(r'\*\*([%s%s%s\s]+?)\*\*' % (letters, digits, strongem_punc)).search #expr = re.compile(r'\s*\*\*([ \n\r%s0-9.:/;,\'\"\?\-\_\/\=\-\>\<\(\)]+)\*\*(?!\*|-)' % letters).search, # old expr, inconsistent punc, failed to cross newlines. ): | 4a62dd59a56984b3c1d384e092efd6af766bb019 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4a62dd59a56984b3c1d384e092efd6af766bb019/DocumentClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
67,
9110,
12,
2890,
16,
272,
16,
3065,
273,
283,
18,
11100,
12,
86,
8314,
12174,
14,
3816,
9,
87,
9,
87,
9,
87,
64,
87,
3737,
16626,
12174,
4035,
738,
261,
26054,
16,
6815,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
67,
9110,
12,
2890,
16,
272,
16,
3065,
273,
283,
18,
11100,
12,
86,
8314,
12174,
14,
3816,
9,
87,
9,
87,
9,
87,
64,
87,
3737,
16626,
12174,
4035,
738,
261,
26054,
16,
6815,
16... |
shirt_size = forms.SelectField(choices=([('','')]+list(shirt_sizes)), required=False) shirt_type = forms.SelectField(choices=([('','')]+list(shirt_types)), required=False) | shirt_size = forms.ChoiceField(choices=([('','')]+list(shirt_sizes)), required=False) shirt_type = forms.ChoiceField(choices=([('','')]+list(shirt_types)), required=False) | def clean_studentrep_expl(self): # TODO: run if blank? if self.clean_data['studentrep'] and not self.has_key['studentrep_expl']: raise ValidationError("Please enter an explanation above.") | 8017ee2dce98074784d46c6e4d0bb3a35a009b75 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/8017ee2dce98074784d46c6e4d0bb3a35a009b75/user_profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
26240,
14462,
67,
338,
412,
12,
2890,
4672,
468,
2660,
30,
1086,
309,
7052,
35,
309,
365,
18,
6200,
67,
892,
3292,
26240,
14462,
3546,
471,
486,
365,
18,
5332,
67,
856,
3292,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
26240,
14462,
67,
338,
412,
12,
2890,
4672,
468,
2660,
30,
1086,
309,
7052,
35,
309,
365,
18,
6200,
67,
892,
3292,
26240,
14462,
3546,
471,
486,
365,
18,
5332,
67,
856,
3292,... |
def get_vt_tagged_versions(self, host, port, db_name, vt_id): | def get_vt_tagged_versions(self, host, port, db_name, vt_id, is_local=True): | def get_vt_tagged_versions(self, host, port, db_name, vt_id): self.server_logger.info("Request: get_vt_tagged_versions(%s,%s,%s,%s)" % \ (host, port, db_name, vt_id)) try: locator = DBLocator(host=host, port=int(port), database=db_name, user=db_read_user, passwd=db_read_pass, obj_id=int(vt_id), obj_type=None, connectio... | 18bf5085bdc109736e6bd679921e3545cc54a82a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/18bf5085bdc109736e6bd679921e3545cc54a82a/application_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11734,
67,
23023,
67,
10169,
12,
2890,
16,
1479,
16,
1756,
16,
1319,
67,
529,
16,
7966,
67,
350,
16,
353,
67,
3729,
33,
5510,
4672,
365,
18,
3567,
67,
4901,
18,
1376,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11734,
67,
23023,
67,
10169,
12,
2890,
16,
1479,
16,
1756,
16,
1319,
67,
529,
16,
7966,
67,
350,
16,
353,
67,
3729,
33,
5510,
4672,
365,
18,
3567,
67,
4901,
18,
1376,
2932,
... |
self.touch() | def _index_pages(self, request, files=None, mode='update', pages=None): """ Index pages (and all given files) | abe71dc364506c67642c0aee33ba275d324b2052 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/abe71dc364506c67642c0aee33ba275d324b2052/indexing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1615,
67,
7267,
12,
2890,
16,
590,
16,
1390,
33,
7036,
16,
1965,
2218,
2725,
2187,
4689,
33,
7036,
4672,
3536,
3340,
4689,
261,
464,
777,
864,
1390,
13,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1615,
67,
7267,
12,
2890,
16,
590,
16,
1390,
33,
7036,
16,
1965,
2218,
2725,
2187,
4689,
33,
7036,
4672,
3536,
3340,
4689,
261,
464,
777,
864,
1390,
13,
2,
-100,
-100,
-100,
-100,... | |
def cache_detail(self): try: db=self._p_jar.db() except: detail={} for oid, ob in Globals.Bobobase._jar.cache.items(): if hasattr(ob, '__class__'): ob=ob.__class__ decor='' else: decor=' class' c="%s.%s%s" % (ob.__module__ or '', ob.__name__, decor) if detail.has_key(c): detail[c]=detail[c]+1 else: detail[c]=1 detail=... | def cache_detail(self, REQUEST=None): """ Returns the name of the classes of the objects in the cache and the number of objects in the cache for each class. """ db=self._p_jar.db() detail = db.cacheDetail() if REQUEST is not None: REQUEST.RESPONSE.setHeader('Content-Type', 'text/plain') return string.join(map(lambda (... | def cache_detail(self): try: db=self._p_jar.db() except: # BoboPOS2 detail={} for oid, ob in Globals.Bobobase._jar.cache.items(): if hasattr(ob, '__class__'): ob=ob.__class__ decor='' else: decor=' class' c="%s.%s%s" % (ob.__module__ or '', ob.__name__, decor) if detail.has_key(c): detail[c]=detail[c]+1 else: detail[c]... | dcd0edcaa04205b5837e8b007af641aa19cf23d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/dcd0edcaa04205b5837e8b007af641aa19cf23d8/CacheManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
67,
8992,
12,
2890,
4672,
775,
30,
1319,
33,
2890,
6315,
84,
67,
11930,
18,
1966,
1435,
1335,
30,
468,
605,
947,
83,
7057,
22,
7664,
12938,
364,
7764,
16,
3768,
316,
18901,
1031,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1247,
67,
8992,
12,
2890,
4672,
775,
30,
1319,
33,
2890,
6315,
84,
67,
11930,
18,
1966,
1435,
1335,
30,
468,
605,
947,
83,
7057,
22,
7664,
12938,
364,
7764,
16,
3768,
316,
18901,
1031,... |
self.nocalc = 1 | self.nocalc = True | def restoreItem(self, item): if item is None: return wasnocalc = self.nocalc self.nocalc = 1 itemtype = item.ActiveState if itemtype == 'player': self.showPlayerWidgets(item) else: self.showDropWidgets(item) | cdc9cf773cf0c254cf668f14ba48aa9d538724e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/cdc9cf773cf0c254cf668f14ba48aa9d538724e6/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
1180,
12,
2890,
16,
761,
4672,
309,
761,
353,
599,
30,
327,
14487,
23735,
71,
273,
365,
18,
82,
23735,
71,
365,
18,
82,
23735,
71,
273,
1053,
761,
723,
273,
761,
18,
3896,
1119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5217,
1180,
12,
2890,
16,
761,
4672,
309,
761,
353,
599,
30,
327,
14487,
23735,
71,
273,
365,
18,
82,
23735,
71,
365,
18,
82,
23735,
71,
273,
1053,
761,
723,
273,
761,
18,
3896,
1119... |
def CompileBAM(preconv, bam, egg): FLT2EGG = PREFIX+"/bin/flt2egg" EGG2BAM = PREFIX+"/bin/egg2bam" if (sys.platform == "win32"): FLT2EGG=FLT2EGG.replace("/","\\")+".exe" EGG2BAM=EGG2BAM.replace("/","\\")+".exe" if (older([bam], egg)): if (egg[-4:]==".flt"): oscmd(FLT2EGG + " -pr " + preconv + " -o " + PREFIX + "/tmp/tm... | def CompileBAM(preconv, bam, egg): FLT2EGG = PREFIX+"/bin/flt2egg" EGG2BAM = PREFIX+"/bin/egg2bam" if (sys.platform == "win32"): FLT2EGG=FLT2EGG.replace("/","\\")+".exe" EGG2BAM=EGG2BAM.replace("/","\\")+".exe" if (older([bam], egg)): if (egg[-4:]==".flt"): oscmd(FLT2EGG + " -pr " + preconv + " -o " + PREFIX + "/tmp/tm... | 8f86705296f973090fc3f2bedce1bf0e6e54e9f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/8f86705296f973090fc3f2bedce1bf0e6e54e9f6/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
38,
2192,
12,
1484,
4896,
16,
11400,
16,
25144,
4672,
478,
12050,
22,
41,
19491,
273,
17154,
9078,
19,
4757,
19,
31864,
22,
23171,
6,
512,
19491,
22,
38,
2192,
273,
17154,
9078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16143,
38,
2192,
12,
1484,
4896,
16,
11400,
16,
25144,
4672,
478,
12050,
22,
41,
19491,
273,
17154,
9078,
19,
4757,
19,
31864,
22,
23171,
6,
512,
19491,
22,
38,
2192,
273,
17154,
9078,
... | |
for fileURL,fileDict in filesDict.items(): | for fileURL, fileDict in filesDict.items(): | def getDirectorySize(self,path): """ Get the size of the directory on the storage """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19831,
1225,
12,
2890,
16,
803,
4672,
3536,
968,
326,
963,
434,
326,
1867,
603,
326,
2502,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19831,
1225,
12,
2890,
16,
803,
4672,
3536,
968,
326,
963,
434,
326,
1867,
603,
326,
2502,
3536,
400,
273,
365,
18,
1893,
1379,
1630,
12,
803,
13,
309,
486,
400,
3292,
3141,
3546,
30,
... |
self.macro = None self._translateText() | """the `FormConnection` instance, used to manage tab of connections.""" self.macro = FormMacro(self, self.storage) """the `FormMacro` instance, used to manage tab of macros.""" | def __init__(self, parent): QtGui.QDialog.__init__(self, parent) self.setupUi(self) self._setupSignal() self.storage = Storage() self.conn = FormConnection(self, self.storage) self.macro = None self._translateText() | 201b1c9e4adf26ba529bd9bf36b9e00c8fe2621e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8560/201b1c9e4adf26ba529bd9bf36b9e00c8fe2621e/gui_option.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
23425,
18,
53,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
8401,
13943,
12,
2890,
13,
365,
6315,
8401,
11208,
1435,
365,
18,
5697,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
23425,
18,
53,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
8401,
13943,
12,
2890,
13,
365,
6315,
8401,
11208,
1435,
365,
18,
5697,... |
class ListTestCase(unittest.TestCase): | class BaseTestCase(unittest.TestCase): | def __index__(self): return self.ind | 684dac4ba62e2ee947f8f39dbd454a15a7549bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/684dac4ba62e2ee947f8f39dbd454a15a7549bd3/test_index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1615,
972,
12,
2890,
4672,
327,
365,
18,
728,
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,
1001,
1615,
972,
12,
2890,
4672,
327,
365,
18,
728,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for Platform in ewb.Build[Arch[0]].PlatformDatabase.values(): d = Platform.OutputDirectory | if type(Arch) == type([]): for Platform in ewb.Build[Arch[0]].PlatformDatabase.values(): d = Platform.OutputDirectory else: for Platform in ewb.Build[Arch].PlatformDatabase.values(): d = Platform.OutputDirectory | def OtherFunc(self, ModuleFile, PlatformFile, ewb, Target, ToolChain, Arch): for Platform in ewb.Build[Arch[0]].PlatformDatabase.values(): d = Platform.OutputDirectory if ModuleFile == None: DestDir = os.path.normpath(os.path.join(os.environ["WORKSPACE"], d, Target + '_' + ToolChain)) else: (filename, ext) = os.path.sp... | ff6b2286472f3be5e451f5241d3d4f13fc9d6f31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/ff6b2286472f3be5e451f5241d3d4f13fc9d6f31/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4673,
2622,
12,
2890,
16,
5924,
812,
16,
11810,
812,
16,
22722,
70,
16,
5916,
16,
13288,
3893,
16,
16959,
4672,
309,
618,
12,
12269,
13,
422,
618,
3816,
65,
4672,
364,
11810,
316,
2272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4673,
2622,
12,
2890,
16,
5924,
812,
16,
11810,
812,
16,
22722,
70,
16,
5916,
16,
13288,
3893,
16,
16959,
4672,
309,
618,
12,
12269,
13,
422,
618,
3816,
65,
4672,
364,
11810,
316,
2272... |
Return True if this group is perfect. A group is perfect if it | Return ``True`` if this group is perfect. A group is perfect if it | def is_perfect(self): """ Return True if this group is perfect. A group is perfect if it equals its derived subgroup. EXAMPLES:: sage: G = PermutationGroup(['(1,2,3)(4,5)', '(1,2,3,4,5)']) sage: G.is_perfect() False sage: G = PermutationGroup(['(1,2,3)(4,5)']) sage: G.is_perfect() False """ return self._gap_().IsPerf... | 6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
19825,
386,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
24746,
18,
432,
1041,
353,
24746,
309,
518,
1606,
2097,
10379,
720,
1655,
18,
225,
5675,
8900,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
19825,
386,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
24746,
18,
432,
1041,
353,
24746,
309,
518,
1606,
2097,
10379,
720,
1655,
18,
225,
5675,
8900,
1... |
if base.direct.fControl and not self.currEditTypes & EDIT_TYPE_UNSCALABLE: if type == 'post': self.fScaling1D = 1 self.scale1D(state) else: self.fScaling3D = 1 self.scale3D(state) else: | if self.useSeparateScaleHandles: | def manipulateObjectTask(self, state): if self.fScaling1D: self.scale1D(state) elif self.fScaling3D: self.scale3D(state) else: # Widget takes precedence if self.constraint: type = self.constraint[2:] if base.direct.fControl and not self.currEditTypes & EDIT_TYPE_UNSCALABLE: if type == 'post': # [gjeon] non-uniform scal... | e6d5ec494707be9dddb9b6144cebc352a9bae73c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/e6d5ec494707be9dddb9b6144cebc352a9bae73c/DirectManipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28286,
921,
2174,
12,
2890,
16,
919,
4672,
309,
365,
18,
74,
8471,
21,
40,
30,
365,
18,
5864,
21,
40,
12,
2019,
13,
1327,
365,
18,
74,
8471,
23,
40,
30,
365,
18,
5864,
23,
40,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28286,
921,
2174,
12,
2890,
16,
919,
4672,
309,
365,
18,
74,
8471,
21,
40,
30,
365,
18,
5864,
21,
40,
12,
2019,
13,
1327,
365,
18,
74,
8471,
23,
40,
30,
365,
18,
5864,
23,
40,
12... |
lineHeight = self.onscreenText.textNode.getLineHeight() | tn = self.onscreenText.textNode mat = tn.getTransform() align = tn.getAlign() lineHeight = tn.getLineHeight() | def getBounds(self, state = 0): # Compute the width and height for the entry itself, ignoring # geometry etc. lineHeight = self.onscreenText.textNode.getLineHeight() numLines = self['numLines'] width = self['width'] self.ll.set(0.0, 0.0, -0.3 * lineHeight - (lineHeight * (numLines - 1))) self.ur.set(width, 0.0, lineHei... | bfa27c5549ea2e4e8a82a2c145626510771ec978 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bfa27c5549ea2e4e8a82a2c145626510771ec978/DirectEntry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22107,
12,
2890,
16,
919,
273,
374,
4672,
468,
8155,
326,
1835,
471,
2072,
364,
326,
1241,
6174,
16,
14398,
468,
5316,
5527,
18,
16002,
273,
365,
18,
265,
9252,
1528,
18,
955,
907,
483... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22107,
12,
2890,
16,
919,
273,
374,
4672,
468,
8155,
326,
1835,
471,
2072,
364,
326,
1241,
6174,
16,
14398,
468,
5316,
5527,
18,
16002,
273,
365,
18,
265,
9252,
1528,
18,
955,
907,
483... |
job_flows = emr_conn.describe_jobflows() | job_flows = describe_job_flows(emr_conn) | def main(): option_parser = make_option_parser() options, args = option_parser.parse_args() if args: option_parser.error('takes no arguments') # set up logging if not options.quiet: log_to_stream(name='mrjob', debug=options.verbose) emr_conn = EMRJobRunner(conf_path=options.conf_path).make_emr_conn() log.info( 'get... | 9d65274350c3ca98dd2bba37139fa3578017faf5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14504/9d65274350c3ca98dd2bba37139fa3578017faf5/terminate_idle_job_flows.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1456,
67,
4288,
273,
1221,
67,
3482,
67,
4288,
1435,
702,
16,
833,
273,
1456,
67,
4288,
18,
2670,
67,
1968,
1435,
225,
309,
833,
30,
1456,
67,
4288,
18,
1636,
2668,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1456,
67,
4288,
273,
1221,
67,
3482,
67,
4288,
1435,
702,
16,
833,
273,
1456,
67,
4288,
18,
2670,
67,
1968,
1435,
225,
309,
833,
30,
1456,
67,
4288,
18,
1636,
2668,
88,
... |
fn_list.append( (fnct[0], fnct[1], fnct[2](self,cr, uid, ids, context)) ) | ids2 = filter(None, fnct[2](self,cr, uid, ids, context)) if ids2: fn_list.append( (fnct[0], fnct[1], ids2) ) | def unlink(self, cr, uid, ids, context=None): if not context: context = {} if not ids: return True if isinstance(ids, (int, long)): ids = [ids] | f8f691f6edf9caaf85a7799e5a0dd79cc2f12713 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f8f691f6edf9caaf85a7799e5a0dd79cc2f12713/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
... |
self.saveButton .set_sensitive (FALSE) self.reloadButton .set_sensitive (FALSE) self.newButton .set_sensitive (FALSE) self.removeButton .set_sensitive (FALSE) self.upButton .set_sensitive (FALSE) self.downButton .set_sensitive (FALSE) self.propertiesButton.set_sensitive (FALSE) | self.saveButton .set_sensitive (False) self.reloadButton .set_sensitive (False) self.newButton .set_sensitive (False) self.removeButton .set_sensitive (False) self.upButton .set_sensitive (False) self.downButton .set_sensitive (False) self.propertiesButton.set_sensitive (False) | def deactivateButtons (self): self.saveButton .set_sensitive (FALSE) self.reloadButton .set_sensitive (FALSE) self.newButton .set_sensitive (FALSE) self.removeButton .set_sensitive (FALSE) self.upButton .set_sensitive (FALSE) self.downButton .set_sensitive (FALSE) self.propertiesButton.set_... | ab8126074d7036807d1d842171687cc01617a181 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ab8126074d7036807d1d842171687cc01617a181/driconf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18790,
14388,
261,
2890,
4672,
365,
18,
5688,
3616,
1377,
263,
542,
67,
23481,
261,
21053,
13,
365,
18,
17517,
3616,
565,
263,
542,
67,
23481,
261,
21053,
13,
365,
18,
2704,
3616,
4202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18790,
14388,
261,
2890,
4672,
365,
18,
5688,
3616,
1377,
263,
542,
67,
23481,
261,
21053,
13,
365,
18,
17517,
3616,
565,
263,
542,
67,
23481,
261,
21053,
13,
365,
18,
2704,
3616,
4202,
... |
self.p.folder().short_issue_names = 1 self.p.createNextIssue('c') self.assertEqual(self.p.nextIssueNumber(),4) | def test_nextIssueNumber(self): self.assertEqual(self.p.nextIssueNumber(),2) self.p.createNextIssue('b') self.assertEqual(self.p.nextIssueNumber(),3) self.p.folder().short_issue_names = 1 self.p.createNextIssue('c') self.assertEqual(self.p.nextIssueNumber(),4) | acf69133db82e469c655bf35fecc93d49ca297d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/acf69133db82e469c655bf35fecc93d49ca297d8/tracker_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4285,
12956,
1854,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
84,
18,
4285,
12956,
1854,
9334,
22,
13,
365,
18,
84,
18,
2640,
2134,
12956,
2668,
70,
6134,
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,
1842,
67,
4285,
12956,
1854,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
84,
18,
4285,
12956,
1854,
9334,
22,
13,
365,
18,
84,
18,
2640,
2134,
12956,
2668,
70,
6134,
365,
18,
... | |
class Extension(_DerivationBase, MarkerInterface, ExtensionMarker): | class Extension(_DerivationBase, ExtensionMarker): | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 6c6678d8443cc0ac1425216db36bdd74c2f8cb7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6c6678d8443cc0ac1425216db36bdd74c2f8cb7b/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"triggerpostun": (1102, RPM_STRING, None, 5), | "triggerpostun": (1102, RPM_STRING, None, 5) | def isErasePreReq(x): return (x & _ERASE_ONLY_MASK) | 2e6f0aceb5ef78ed6e5c11d437a3eca0fbb9ea57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/2e6f0aceb5ef78ed6e5c11d437a3eca0fbb9ea57/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
41,
5648,
1386,
6113,
12,
92,
4672,
327,
261,
92,
473,
389,
654,
4429,
67,
10857,
67,
11704,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
41,
5648,
1386,
6113,
12,
92,
4672,
327,
261,
92,
473,
389,
654,
4429,
67,
10857,
67,
11704,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return | return | def leftUp(self, event): """ Event handler for Left Mouse button left-up event @see: Line_Command._f_results_for_caller_and_prepare_for_new_input() """ if len(self.command.mouseClickPoints) == 3: self.endPoint2 = None self.command.rotateAboutPoint() try: self.command._f_results_for_caller_and_prepare_for_new_input() e... | 1c39d3fbfc5b8b7a784742d9d05b9f4bcdc3332c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11221/1c39d3fbfc5b8b7a784742d9d05b9f4bcdc3332c/RotateAboutPoint_Command.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
1211,
12,
2890,
16,
871,
4672,
3536,
2587,
1838,
364,
13338,
17013,
3568,
2002,
17,
416,
871,
632,
5946,
30,
5377,
67,
2189,
6315,
74,
67,
4717,
67,
1884,
67,
16140,
67,
464,
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,
2002,
1211,
12,
2890,
16,
871,
4672,
3536,
2587,
1838,
364,
13338,
17013,
3568,
2002,
17,
416,
871,
632,
5946,
30,
5377,
67,
2189,
6315,
74,
67,
4717,
67,
1884,
67,
16140,
67,
464,
67,... |
gLogger.error(errStr, "%s %s" % (lfn,storageElementName)) | gLogger.error( errStr, "%s %s" % ( lfn, storageElementName ) ) | def __executeReplicaStorageElementOperation(self,storageElementName,lfn,method,argsDict={}): """ A simple wrapper that allows replica querying then perform the StorageElement operation """ res = self._executeFileCatalogFunction(lfn,'getReplicas') if not res['OK']: errStr = "ReplicaManager.__executeReplicaStorageElement... | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8837,
14222,
3245,
1046,
2988,
12,
2890,
16,
5697,
30584,
16,
80,
4293,
16,
2039,
16,
1968,
5014,
12938,
4672,
3536,
432,
4143,
4053,
716,
5360,
12335,
23936,
1508,
3073,
326,
5235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8837,
14222,
3245,
1046,
2988,
12,
2890,
16,
5697,
30584,
16,
80,
4293,
16,
2039,
16,
1968,
5014,
12938,
4672,
3536,
432,
4143,
4053,
716,
5360,
12335,
23936,
1508,
3073,
326,
5235,
... |
rowHeights_table = _attributes.get((None, 'rowHeights'), None) colWidths_table = _attributes.get((None, 'colWidths'), None) | rowHeights_table = _attributes.get((None, 'rowHeights')) colWidths_table = _attributes.get((None, 'colWidths')) | def table_stream(stream, _tag_uri, _tag_name, _attributes, _ns_decls, pdf_stylesheet, pdf_table_style): data_table = None table_td = None stack = [] stack.append((_tag_name, _attributes, None)) data_table = [] style_id = _attributes.get((None, 'style'), None) style_table = pdf_table_style.get(style_id, TableStyle()) r... | 51b02e012792ad1fcdef1300580c1d6a58548c1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/51b02e012792ad1fcdef1300580c1d6a58548c1f/rml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1014,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
8169,
67,
19403,
16,
8169,
67,
2121,
67,
4060,
4672,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1014,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
8169,
67,
19403,
16,
8169,
67,
2121,
67,
4060,
4672,
501,
... |
NAME NAME:funcname | 'def' NAME:funcname | # Function definition: "def f(x): ..." | 1fb4c317bfd16a777415b4874c4c8db19e81beff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/1fb4c317bfd16a777415b4874c4c8db19e81beff/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
4284,
2379,
30,
315,
536,
284,
12,
92,
4672,
18483,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
projects = ( mysite.search.models.Project.objects.filter(pk__in=list(bugs.values_list(u'project__pk', flat=True).distinct())) .filter(bug__looks_closed=False) .annotate(Count('bug')) .order_by('-bug__count') ) | project_ids = list(bugs.values_list(u'project__id', flat=True).distinct()) projects = Project.objects.filter(id__in=project_ids) | def get_project_names(self): from django.db.models import Count | 362aaf619434af465990988cfda7ea02eac411aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/362aaf619434af465990988cfda7ea02eac411aa/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4406,
67,
1973,
12,
2890,
4672,
628,
13710,
18,
1966,
18,
7665,
1930,
6974,
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,
336,
67,
4406,
67,
1973,
12,
2890,
4672,
628,
13710,
18,
1966,
18,
7665,
1930,
6974,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return line | return Unicode(line) | def str2XML(self, line): """return a valid XML string""" try: s = unicode(line, config.LOCALE) while s[-1] == ' ': s = s[:-1] if s[:4] == '"': s = s[5:] if s[-4:] == '#34;': s = s[:-5] # replace all & to & ... s = s.replace("&", "&") | e4e4639f6ea3e57e463f291a7c76a06466bdd9d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e4e4639f6ea3e57e463f291a7c76a06466bdd9d8/fxdimdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
22,
4201,
12,
2890,
16,
980,
4672,
3536,
2463,
279,
923,
3167,
533,
8395,
775,
30,
272,
273,
5252,
12,
1369,
16,
642,
18,
25368,
13,
1323,
272,
18919,
21,
65,
422,
296,
4290,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
22,
4201,
12,
2890,
16,
980,
4672,
3536,
2463,
279,
923,
3167,
533,
8395,
775,
30,
272,
273,
5252,
12,
1369,
16,
642,
18,
25368,
13,
1323,
272,
18919,
21,
65,
422,
296,
4290,
27... |
def order(self, other): """ Equivalent to cmp(self, other) except that a result of 0 indicates that other is contained in self rather than being identically equal to self. """ if other in self: return 0 return cmp(self, other) | def order(self, other): """ Equivalent to cmp(self, other) except that a result of 0 indicates that other is contained in self rather than being identically equal to self. """ # FIXME: is this used? It is not used anywhere in glue or # pylal. I want to deprecate it. if other in self: return 0 return cmp(self, other) | e3bc53e0f2e5d773775945ca8e5877d903630ac0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/e3bc53e0f2e5d773775945ca8e5877d903630ac0/segments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
16,
1308,
4672,
3536,
31208,
358,
9411,
12,
2890,
16,
1308,
13,
1335,
716,
279,
563,
434,
374,
8527,
716,
1308,
353,
7542,
316,
365,
9178,
2353,
3832,
3390,
6478,
3959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
12,
2890,
16,
1308,
4672,
3536,
31208,
358,
9411,
12,
2890,
16,
1308,
13,
1335,
716,
279,
563,
434,
374,
8527,
716,
1308,
353,
7542,
316,
365,
9178,
2353,
3832,
3390,
6478,
3959,
... | |
self.assert_completion_in_result('operator', 'global', result, | self.assert_completion_in_result('operator', 'imported', result, | def test_global_module_completion_proposal(self): code = 'import operator\no' result = self._assist(code) self.assert_completion_in_result('operator', 'global', result, type='module') | 6d539fe256ff5d47931d765fcb7729894783cbf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8286/6d539fe256ff5d47931d765fcb7729894783cbf0/codeassisttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6347,
67,
2978,
67,
11469,
67,
685,
8016,
12,
2890,
4672,
981,
273,
296,
5666,
3726,
64,
2135,
11,
563,
273,
365,
6315,
428,
376,
12,
710,
13,
365,
18,
11231,
67,
11469,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6347,
67,
2978,
67,
11469,
67,
685,
8016,
12,
2890,
4672,
981,
273,
296,
5666,
3726,
64,
2135,
11,
563,
273,
365,
6315,
428,
376,
12,
710,
13,
365,
18,
11231,
67,
11469,
67... |
print 'Not a directory, skipping',path | print('Not a directory, skipping',path) | def add_data_dir(self,data_path): """Recursively add files under data_path to data_files list. | c85421c3b85e794d07e8de0304136c068c7f2e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/c85421c3b85e794d07e8de0304136c068c7f2e17/misc_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
892,
67,
1214,
12,
2890,
16,
892,
67,
803,
4672,
3536,
12474,
527,
1390,
3613,
501,
67,
803,
358,
501,
67,
2354,
666,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
892,
67,
1214,
12,
2890,
16,
892,
67,
803,
4672,
3536,
12474,
527,
1390,
3613,
501,
67,
803,
358,
501,
67,
2354,
666,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count = 0 ids = set() | """ Loops until either: * the number of ids >= self.batch * self.wait seconds have passed * self.event (a stop Event) is set If event is set or no ids are found, this method returns. If batch ids are found, pass them to self.callback() An inner loop is used since there is no way to signal to the Queue that it should ... | def execute(self): | cbfa36e460ff5ac20dff3c571862ab24db5d2989 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/cbfa36e460ff5ac20dff3c571862ab24db5d2989/fsDropBoxMonitorClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.hboxlayout20 = QtGui.QHBoxLayout() self.hboxlayout20.setMargin(0) self.hboxlayout20.setSpacing(6) self.hboxlayout20.setObjectName("hboxlayout20") | self.hboxlayout23 = QtGui.QHBoxLayout() self.hboxlayout23.setMargin(0) self.hboxlayout23.setSpacing(6) self.hboxlayout23.setObjectName("hboxlayout23") | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
'title': _('Bad Lot Assignation !'), | 'title': _('Insufficient Stock in Lot !'), | def onchange_lot_id(self, cr, uid, ids, prodlot_id=False, product_qty=False, loc_id=False, product_id=False, context=None): """ On change of production lot gives a warning message. @param prodlot_id: Changed production lot id @param product_qty: Quantity of product @param loc_id: Location id @param product_id: Product ... | 1b74ce256736079146d2340019c95af0bd276610 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1b74ce256736079146d2340019c95af0bd276610/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
23372,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
450,
5761,
352,
67,
350,
33,
8381,
16,
3017,
67,
85,
4098,
33,
8381,
16,
1515,
67,
350,
33,
8381,
16,
301... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
23372,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
450,
5761,
352,
67,
350,
33,
8381,
16,
3017,
67,
85,
4098,
33,
8381,
16,
1515,
67,
350,
33,
8381,
16,
301... |
if __debug__: self._note("%s.wait(%s): got it", self, timeout) self._acquire_restore(saved_state) | endtime = _time() + timeout delay = 0.000001 while 1: gotit = waiter.acquire(0) if gotit or _time() >= endtime: break _sleep(delay) if delay < 1.0: delay = delay * 2.0 if not gotit: if __debug__: self._note("%s.wait(%s): timed out", self, timeout) try: self.__waiters.remove(waiter) except ValueError: pass else: if __de... | def wait(self, timeout=None): me = currentThread() assert self._is_owned(), "wait() of un-acquire()d lock" waiter = _allocate_lock() waiter.acquire() self.__waiters.append(waiter) saved_state = self._release_save() if timeout is None: waiter.acquire() if __debug__: self._note("%s.wait(): got it", self) else: endtime = ... | 7593d4951f4c76fa0fa94328d6349868713d8113 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7593d4951f4c76fa0fa94328d6349868713d8113/threading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2529,
12,
2890,
16,
2021,
33,
7036,
4672,
1791,
273,
11800,
1435,
1815,
365,
6315,
291,
67,
995,
329,
9334,
315,
7048,
1435,
434,
640,
17,
1077,
1039,
1435,
72,
2176,
6,
17522,
273,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2529,
12,
2890,
16,
2021,
33,
7036,
4672,
1791,
273,
11800,
1435,
1815,
365,
6315,
291,
67,
995,
329,
9334,
315,
7048,
1435,
434,
640,
17,
1077,
1039,
1435,
72,
2176,
6,
17522,
273,
38... |
dependents.remove(filename) | dependents.remove(infile) | def getDependentConfigFiles(filename, addSelf=True, outfile=None): config = ConfigParser.RawConfigParser() config.read(filename) dependents = set() if addSelf: dependents.add(filename) path = os.path.dirname(filename) try: extends = config.get('buildout', 'extends') except ConfigParser.NoSectionError: return depende... | 05ab05c8f2dc9722d3b8891a65d27320fcf3c03a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9561/05ab05c8f2dc9722d3b8891a65d27320fcf3c03a/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
18571,
809,
2697,
12,
3459,
16,
527,
10084,
33,
5510,
16,
8756,
33,
7036,
4672,
642,
273,
25076,
18,
4809,
809,
2678,
1435,
642,
18,
896,
12,
3459,
13,
225,
2447,
4877,
273,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18571,
809,
2697,
12,
3459,
16,
527,
10084,
33,
5510,
16,
8756,
33,
7036,
4672,
642,
273,
25076,
18,
4809,
809,
2678,
1435,
642,
18,
896,
12,
3459,
13,
225,
2447,
4877,
273,
444,
... |
ipad = "\x36" * blocksize opad = "\x5C" * blocksize | def __init__(self, key, msg = None, digestmod = None): """Create a new HMAC object. | 19fd5d6556b975e2dfffc7ea32bc2251fc254594 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/19fd5d6556b975e2dfffc7ea32bc2251fc254594/hmac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
498,
16,
1234,
273,
599,
16,
5403,
1711,
273,
599,
4672,
3536,
1684,
279,
394,
20792,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
498,
16,
1234,
273,
599,
16,
5403,
1711,
273,
599,
4672,
3536,
1684,
279,
394,
20792,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
assert(self.debugPrint("setIsInput1(isTrue=%s)"%(isTrue,))) | assert(self.debugPrint("setIsInput2(isTrue=%s)"%(isTrue,))) | def setIsInput2(self, isTrue): assert(self.debugPrint("setIsInput1(isTrue=%s)"%(isTrue,))) if 1 or (not isTrue) != (not self.input2Event): # ...the logical state of self.input2Event has changed. self.isInput2=isTrue self.logicTest(self, isTrue, self.isInput1) | 8fbd7392b161da0d965741079240a59ffb6f6281 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/8fbd7392b161da0d965741079240a59ffb6f6281/LogicGateAI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15269,
1210,
22,
12,
2890,
16,
21332,
4672,
1815,
12,
2890,
18,
4148,
5108,
2932,
542,
2520,
1210,
22,
12,
291,
5510,
5095,
87,
2225,
17105,
291,
5510,
16,
20349,
309,
404,
578,
261,
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,
15269,
1210,
22,
12,
2890,
16,
21332,
4672,
1815,
12,
2890,
18,
4148,
5108,
2932,
542,
2520,
1210,
22,
12,
291,
5510,
5095,
87,
2225,
17105,
291,
5510,
16,
20349,
309,
404,
578,
261,
9... |
passed = 0 failed = 0 | npassed = 0 nfailed = 0 | def testGeneral(data): passed = 0 failed = 0 print "Testing unspecified formats..." for value in data: testval = Number(value) if testval.isValid(): try: dummy = len(testval.value) size = 2 except: size = 1 if size == 1: if testval.value != data[value]: print "FAIL: \"%s\", actual %06o != expected %06o" % (value, tes... | 8c0199cd6af087035c295005414bbfc22518bb2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/8c0199cd6af087035c295005414bbfc22518bb2f/number.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12580,
12,
892,
4672,
1130,
2185,
273,
374,
290,
7307,
273,
374,
225,
1172,
315,
22218,
25952,
6449,
7070,
225,
364,
460,
316,
501,
30,
1842,
1125,
273,
3588,
12,
1132,
13,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12580,
12,
892,
4672,
1130,
2185,
273,
374,
290,
7307,
273,
374,
225,
1172,
315,
22218,
25952,
6449,
7070,
225,
364,
460,
316,
501,
30,
1842,
1125,
273,
3588,
12,
1132,
13,
309,
... |
self.dprint("ConfigureLexer done in %0.5fs" % (time.time() - start)) self.has_stc_styling = True self.applyFileLocalComments() self.setSpelling() self.dprint("applySettings returning in %0.5fs" % (time.time() - start)) | def applySettings(self): start = time.time() self.dprint("starting applySettings") self.applyDefaultSettings() Publisher().sendMessage('fundamental.default_settings_applied', self) self.dprint("applyDefaultSettings done in %0.5fs" % (time.time() - start)) # Try to find the editra style corresponding to the major mode.... | 3c367767e8b472ca7bdd6f08e0dc14a092859b84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/3c367767e8b472ca7bdd6f08e0dc14a092859b84/fundamental.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
2628,
12,
2890,
4672,
787,
273,
813,
18,
957,
1435,
365,
18,
72,
1188,
2932,
18526,
2230,
2628,
7923,
365,
18,
9010,
1868,
2628,
1435,
21932,
7675,
4661,
1079,
2668,
74,
1074,
1477... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
2628,
12,
2890,
4672,
787,
273,
813,
18,
957,
1435,
365,
18,
72,
1188,
2932,
18526,
2230,
2628,
7923,
365,
18,
9010,
1868,
2628,
1435,
21932,
7675,
4661,
1079,
2668,
74,
1074,
1477... | |
" import sys, pkg_resources", | " import sys, pkg_resources, imp", | "def __bootstrap__():", | f3383e2c8bc430c7bf129683376bedc3a89cc145 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/f3383e2c8bc430c7bf129683376bedc3a89cc145/bdist_egg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
315,
536,
1001,
12722,
972,
1435,
2773,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
315,
536,
1001,
12722,
972,
1435,
2773,
16,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
r""" Pascal's triangle read by rows: $C(n,k) = {n \choose k} = \frac {n!} {(k!(n-k)!)}$, $0 \le k \le n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A007318 sage: a(0) 1 sage: a(1) 1 sage: a(13) 4 sage: a.list(15) [1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1, 4, 6, 4, 1] sage: ... | def __init__(self): r""" Pascal's triangle read by rows: $C(n,k) = {n \choose k} = \frac {n!} {(k!(n-k)!)}$, $0 \le k \le n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A007318 sage: a(0) 1 sage: a(1) 1 sage: a(13) 4 sage: a.list(15) [1, 1, 1, 1, 2, 1, 1, 3, 3, 1, 1... | def _eval(self, n): return arith.lcm([i for i in range(1,n+1)],integer=True) | 69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
419,
483,
18,
80,
7670,
3816,
77,
364,
277,
316,
1048,
12,
21,
16,
82,
15,
21,
13,
6487,
7745,
33,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
419,
483,
18,
80,
7670,
3816,
77,
364,
277,
316,
1048,
12,
21,
16,
82,
15,
21,
13,
6487,
7745,
33,
5510,
13,
2,
-100,
-100,
-100,
-100,
-10... |
self.iter_map[task.key] = self.model.append(task) self.table.model_changed() | if task.key not in self.iter_map: self.iter_map[task.key] = self.model.append(task) self.table.model_changed() | def handle_task_added(self, task): self.iter_map[task.key] = self.model.append(task) self.table.model_changed() self._update_buttons_state() | eb6e2aa98e26f9afc96c7d0c89bc23cb701e9b71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/eb6e2aa98e26f9afc96c7d0c89bc23cb701e9b71/videoconversionscontroller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4146,
67,
9665,
12,
2890,
16,
1562,
4672,
309,
1562,
18,
856,
486,
316,
365,
18,
2165,
67,
1458,
30,
365,
18,
2165,
67,
1458,
63,
4146,
18,
856,
65,
273,
365,
18,
2284,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
67,
4146,
67,
9665,
12,
2890,
16,
1562,
4672,
309,
1562,
18,
856,
486,
316,
365,
18,
2165,
67,
1458,
30,
365,
18,
2165,
67,
1458,
63,
4146,
18,
856,
65,
273,
365,
18,
2284,
1... |
self.label.set_selectable(True) | def __init__(self, content, use_content=True): gtk.HBox.__init__(self, False) self.set_no_show_all(True) | 4808087cf4629463353f24be7dc505f48f57e6ee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/4808087cf4629463353f24be7dc505f48f57e6ee/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
913,
16,
999,
67,
1745,
33,
5510,
4672,
22718,
18,
44,
3514,
16186,
2738,
972,
12,
2890,
16,
1083,
13,
365,
18,
542,
67,
2135,
67,
4500,
67,
454,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
913,
16,
999,
67,
1745,
33,
5510,
4672,
22718,
18,
44,
3514,
16186,
2738,
972,
12,
2890,
16,
1083,
13,
365,
18,
542,
67,
2135,
67,
4500,
67,
454,
12,
... | |
if not line: raise TokenError, "EOF within multi-line string" if endprog.search(line) >= 0: | if not line: raise TokenError, ("EOF in multi-line string", strstart) if endprog.match(line) >= 0: | def tokenize(readline, tokeneater=printtoken): lnum = parenlev = continued = 0 namechars, numchars = string.letters + '_', string.digits contstr = '' indents = [0] while 1: # loop over lines in stream line = readline() lnum = lnum + 1 pos, max = 0, len(line) if contstr: ... | 448f6b3aedc2486a91ef9b20e7f70017c051de7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/448f6b3aedc2486a91ef9b20e7f70017c051de7c/tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
21... |
l = [file] * size | l = [object] * size | def basic_test_extend(self, size): l = [file] * size l.extend(l) self.assertEquals(len(l), size * 2) self.failUnless(l[0] is l[-1]) self.failUnless(l[size - 1] is l[size + 1]) | 6c6a99d783afb5600820e40c9ed1a2dc955d648a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/6c6a99d783afb5600820e40c9ed1a2dc955d648a/test_bigmem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5337,
67,
3813,
67,
14313,
12,
2890,
16,
963,
4672,
328,
273,
306,
1612,
65,
380,
963,
328,
18,
14313,
12,
80,
13,
365,
18,
11231,
8867,
12,
1897,
12,
80,
3631,
963,
380,
576,
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,
5337,
67,
3813,
67,
14313,
12,
2890,
16,
963,
4672,
328,
273,
306,
1612,
65,
380,
963,
328,
18,
14313,
12,
80,
13,
365,
18,
11231,
8867,
12,
1897,
12,
80,
3631,
963,
380,
576,
13,
... |
self.backgroundGradient = 1 | self.backgroundGradient = env.prefs[ backgroundGradient_prefs_key ] | def setBackgroundColor(self, color, gradient): """ Set the background to 'color' or 'gradient' (Sky Blue). """ self.backgroundColor = color # Ninad and I discussed this and decided that the background should always be set to skyblue. # This issue has to do with Build mode's water surface introducing inconsistencies #... | b4b66c5fd8aab2a545043d6730aa32d9c4d8cfcb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b4b66c5fd8aab2a545043d6730aa32d9c4d8cfcb/ThumbView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
21699,
12,
2890,
16,
2036,
16,
10292,
4672,
3536,
1000,
326,
5412,
225,
358,
296,
3266,
11,
578,
296,
20219,
11,
261,
5925,
93,
8069,
344,
2934,
3536,
365,
18,
9342,
2957,
273,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21699,
12,
2890,
16,
2036,
16,
10292,
4672,
3536,
1000,
326,
5412,
225,
358,
296,
3266,
11,
578,
296,
20219,
11,
261,
5925,
93,
8069,
344,
2934,
3536,
365,
18,
9342,
2957,
273,
20... |
x -- an integer n -- bit length (optional) EXAMPLE: | - ``x`` - an integer - ``n`` - bit length (optional) EXAMPLE:: | def to_bits(self, x, n=None): r""" Return bitstring of length $n$ for integer $x$. The returned bitstring is guaranteed to have length \code{n}. | dd81b4a97db8b232434d8623d237dba45e418834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dd81b4a97db8b232434d8623d237dba45e418834/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
6789,
12,
2890,
16,
619,
16,
290,
33,
7036,
4672,
436,
8395,
2000,
2831,
1080,
434,
769,
271,
82,
8,
364,
3571,
271,
92,
8,
18,
1021,
2106,
2831,
1080,
353,
15403,
358,
1240... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
6789,
12,
2890,
16,
619,
16,
290,
33,
7036,
4672,
436,
8395,
2000,
2831,
1080,
434,
769,
271,
82,
8,
364,
3571,
271,
92,
8,
18,
1021,
2106,
2831,
1080,
353,
15403,
358,
1240... |
if exists(test): | if exists(test) and isfile(test): | def find_input (self, name): """ Look for a source file with the given name, and return either the complete path to the actual file or None if the file is not found. """ for path in self.path: test = join(path, name) if exists(test): return test elif exists(test + ".tex"): return test + ".tex" return None | 2e3dc71000d0b1e1cf7b5830eacfd5730cae704d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/2e3dc71000d0b1e1cf7b5830eacfd5730cae704d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2630,
261,
2890,
16,
508,
4672,
3536,
10176,
364,
279,
1084,
585,
598,
326,
864,
508,
16,
471,
327,
3344,
326,
3912,
589,
358,
326,
3214,
585,
578,
599,
309,
326,
585,
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,
1104,
67,
2630,
261,
2890,
16,
508,
4672,
3536,
10176,
364,
279,
1084,
585,
598,
326,
864,
508,
16,
471,
327,
3344,
326,
3912,
589,
358,
326,
3214,
585,
578,
599,
309,
326,
585,
353,
... |
if debug_output >= DEBUG_ALL | if debug_output >= DEBUG_ALL: | def __init__(self, path, fault_tolerance, debug_output): self.duplicate_path = False self.fault_tolerance = fault_tolerance self.debug_output = debug_output self.path = path is self.path not in sys.path: sys.path.append(self.path) else: self.duplicate_path = True self.dir_modules = [] if debug_output >= DEBUG_ALL pr... | 75dbf626c3b697e568752995866893479a555cae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/75dbf626c3b697e568752995866893479a555cae/moduleloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
12530,
67,
25456,
16,
1198,
67,
2844,
4672,
365,
18,
17342,
67,
803,
273,
225,
1083,
365,
18,
643,
67,
25456,
273,
12530,
67,
25456,
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,
1001,
2738,
972,
12,
2890,
16,
589,
16,
12530,
67,
25456,
16,
1198,
67,
2844,
4672,
365,
18,
17342,
67,
803,
273,
225,
1083,
365,
18,
643,
67,
25456,
273,
12530,
67,
25456,
365,
18,
... |
return the specific attribute as string or an empty string | Return the specific attribute as string or an empty string | def __getitem__(self, key): """ return the specific attribute as string or an empty string """ if key == "geometry": if self['width'] and self['height']: return '%sx%s' % (self['width'], self['height']) return '' | 0710989ab5e31436736f020e1e3d5ba0dfecca41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/0710989ab5e31436736f020e1e3d5ba0dfecca41/imageitem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
3536,
2000,
326,
2923,
1566,
487,
533,
578,
392,
1008,
533,
3536,
309,
498,
422,
315,
14330,
6877,
309,
365,
3292,
2819,
3546,
471,
365,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
3536,
2000,
326,
2923,
1566,
487,
533,
578,
392,
1008,
533,
3536,
309,
498,
422,
315,
14330,
6877,
309,
365,
3292,
2819,
3546,
471,
365,
3292,
... |
Output("{\"%s\", (getter)%s_get_%s, (setter)%s_set_%s, %s}", | Output("{\"%s\", (getter)%s_get_%s, (setter)%s_set_%s, %s},", | def outputGetSetList(self): if self.getsetlist: for name, get, set, doc in self.getsetlist: if get: self.outputGetter(name, get) else: Output("#define %s_get_%s NULL", self.prefix, name) if set: self.outputSetter(name, set) else: Output("#define %s_set_%s NULL", self.prefix, name) Output("static PyGetSetDef %s_getsetl... | 27a445023925a3abb14e08acbfcdd9134ca1a275 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/27a445023925a3abb14e08acbfcdd9134ca1a275/bgenObjectDefinition.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
967,
694,
682,
12,
2890,
4672,
309,
365,
18,
588,
542,
1098,
30,
364,
508,
16,
336,
16,
444,
16,
997,
316,
365,
18,
588,
542,
1098,
30,
309,
336,
30,
365,
18,
2844,
8461,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
967,
694,
682,
12,
2890,
4672,
309,
365,
18,
588,
542,
1098,
30,
364,
508,
16,
336,
16,
444,
16,
997,
316,
365,
18,
588,
542,
1098,
30,
309,
336,
30,
365,
18,
2844,
8461,
12,
... |
""" | """ | def setCurrentSliderPanel(self, panel): """ Created: 26.01.2006, KP Description: Set the currently visible timeslider panel """ self.currSliderPanel = panel | 228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12589,
21824,
5537,
12,
2890,
16,
6594,
4672,
3536,
12953,
30,
10659,
18,
1611,
18,
6976,
26,
16,
1475,
52,
6507,
30,
1000,
326,
4551,
6021,
4124,
80,
3585,
6594,
3536,
365,
18,
17016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12589,
21824,
5537,
12,
2890,
16,
6594,
4672,
3536,
12953,
30,
10659,
18,
1611,
18,
6976,
26,
16,
1475,
52,
6507,
30,
1000,
326,
4551,
6021,
4124,
80,
3585,
6594,
3536,
365,
18,
17016,
... |
<menuitem name="newpaste" | <menuitem name="owith" | def get_menu_definition(self): return """<menubar> <menu name="base_tools" action="base_tools_menu"> <menu name="service_conf" action="base_service_conf_menu"> <menuitem name="newpaste" action="openwith+configure_open_with" /> <separator /> </menu> </menu> </menubar> """ | 2dd5e665824111f08e5d35771363f7341ea29a32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/2dd5e665824111f08e5d35771363f7341ea29a32/openwith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5414,
67,
6907,
12,
2890,
4672,
327,
3536,
32,
27617,
373,
297,
34,
411,
5414,
508,
1546,
1969,
67,
6642,
6,
1301,
1546,
1969,
67,
6642,
67,
5414,
6441,
411,
5414,
508,
1546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5414,
67,
6907,
12,
2890,
4672,
327,
3536,
32,
27617,
373,
297,
34,
411,
5414,
508,
1546,
1969,
67,
6642,
6,
1301,
1546,
1969,
67,
6642,
67,
5414,
6441,
411,
5414,
508,
1546,
... |
"""SMTP 'rset' command. Resets session.""" | """SMTP 'rset' command -- resets session.""" | def rset(self): """SMTP 'rset' command. Resets session.""" code=self.docmd("rset") return code | 58a0b3fcac35fd85d6794fbcb62a4f4925cb00da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/58a0b3fcac35fd85d6794fbcb62a4f4925cb00da/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
542,
12,
2890,
4672,
3536,
55,
14636,
296,
86,
542,
11,
1296,
1493,
20063,
1339,
12123,
981,
33,
2890,
18,
2434,
1264,
2932,
86,
542,
7923,
327,
981,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
542,
12,
2890,
4672,
3536,
55,
14636,
296,
86,
542,
11,
1296,
1493,
20063,
1339,
12123,
981,
33,
2890,
18,
2434,
1264,
2932,
86,
542,
7923,
327,
981,
2,
-100,
-100,
-100,
-100,
-1... |
if v is None: continue if '+' in v: | if var is None: continue if '+' in var: | def expand_template(template, name, page): ''' >>> path = '/path/to/eggs.png' >>> expand_template('{name}', path, 0) '/path/to/eggs.png' >>> expand_template('{base}', path, 0) 'eggs.png' >>> expand_template('{name-ext}.djvu', path, 0) '/path/to/eggs.djvu' >>> expand_template('{base-ext}.djvu', path, 0) 'eggs.djvu' >>> ... | d97c950e025c2aabc9d1dd99451984f039acb44f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3688/d97c950e025c2aabc9d1dd99451984f039acb44f/didjvu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
3202,
12,
3202,
16,
508,
16,
1363,
4672,
9163,
4080,
589,
273,
1173,
803,
19,
869,
19,
1332,
564,
18,
6446,
11,
4080,
4542,
67,
3202,
2668,
95,
529,
24259,
589,
16,
374,
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,
4542,
67,
3202,
12,
3202,
16,
508,
16,
1363,
4672,
9163,
4080,
589,
273,
1173,
803,
19,
869,
19,
1332,
564,
18,
6446,
11,
4080,
4542,
67,
3202,
2668,
95,
529,
24259,
589,
16,
374,
13... |
digits="(16, parent.currency_digits)", | digits="(16, _parent_sale.currency_digits)", | def ignore_packing_exception(self, cursor, user, sale_id, context=None): line_obj = self.pool.get('sale.line') | 63ab9b352113f550a19cea3cf8f4525ee1ffdbe6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9306/63ab9b352113f550a19cea3cf8f4525ee1ffdbe6/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2305,
67,
2920,
310,
67,
4064,
12,
2890,
16,
3347,
16,
729,
16,
272,
5349,
67,
350,
16,
819,
33,
7036,
4672,
980,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1369,
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,
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,
2305,
67,
2920,
310,
67,
4064,
12,
2890,
16,
3347,
16,
729,
16,
272,
5349,
67,
350,
16,
819,
33,
7036,
4672,
980,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1369,
6... |
os.path.walk('.',find_cleanable_files,test_files) | os.path.walk('.',find_cleanable_files,None) | def find_cleanable_files(L,d,N): n = os.path.basename(d) for n in filter(lambda n: n[-3:]=='.PYC' or n[-4:]=='.PDF' or n[-4:]=='.A85',map(string.upper,N)): fn = os.path.normcase(os.path.normpath(os.path.join(d,n))) if os.path.isfile(fn): os.remove(fn) | 4d0dc3502abc76a8a5089d6abb375915de9ad417 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/4d0dc3502abc76a8a5089d6abb375915de9ad417/runtests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6200,
429,
67,
2354,
12,
48,
16,
72,
16,
50,
4672,
290,
273,
1140,
18,
803,
18,
13909,
12,
72,
13,
364,
290,
316,
1034,
12,
14661,
290,
30,
290,
18919,
23,
26894,
631,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6200,
429,
67,
2354,
12,
48,
16,
72,
16,
50,
4672,
290,
273,
1140,
18,
803,
18,
13909,
12,
72,
13,
364,
290,
316,
1034,
12,
14661,
290,
30,
290,
18919,
23,
26894,
631,
10... |
possible = True | def check_shutdown(self): """ Check if shutdown is possible and shutdown the system. """ if self.wakeuptime != self.__last_wakeuptime: # there is a new wakeup time log.info('set wakeup time: %s' % self.wakeuptime) self.__last_wakeuptime = self.wakeuptime util.popen.Process(config.SHUTDOWN_WAKEUP_CMD % self.wakeuptime) | 31d9f7dd652c43c1ae223c9a3e85fc386c0e2f80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/31d9f7dd652c43c1ae223c9a3e85fc386c0e2f80/shutdown.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
15132,
12,
2890,
4672,
3536,
2073,
309,
5731,
353,
3323,
471,
5731,
326,
2619,
18,
3536,
309,
365,
18,
91,
911,
3648,
494,
480,
365,
16186,
2722,
67,
91,
911,
3648,
494,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
15132,
12,
2890,
4672,
3536,
2073,
309,
5731,
353,
3323,
471,
5731,
326,
2619,
18,
3536,
309,
365,
18,
91,
911,
3648,
494,
480,
365,
16186,
2722,
67,
91,
911,
3648,
494,
30,
... | |
self.__base_file = os.path.join(base_dir, 'refs', 'bases', | self.__refs_dir = os.path.join(self.__base_dir, 'refs', 'patches', self.__name) self.__base_file = os.path.join(self.__base_dir, 'refs', 'bases', | def __init__(self, name = None): """Takes a series name as the parameter. """ try: if name: self.__name = name else: self.__name = git.get_head_file() base_dir = git.get_base_dir() except git.GitException, ex: raise StackException, 'GIT tree not initialised: %s' % ex | 844a164019385f19d8607754b3ae130eee1dfd89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/844a164019385f19d8607754b3ae130eee1dfd89/stack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
273,
599,
4672,
3536,
11524,
279,
4166,
508,
487,
326,
1569,
18,
3536,
775,
30,
309,
508,
30,
365,
16186,
529,
273,
508,
469,
30,
365,
16186,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
273,
599,
4672,
3536,
11524,
279,
4166,
508,
487,
326,
1569,
18,
3536,
775,
30,
309,
508,
30,
365,
16186,
529,
273,
508,
469,
30,
365,
16186,
529,
... |
if not self._dict['Download-URL']: | if not self._dict.get('Download-URL'): | def prerequisites(self): """Return a list of prerequisites for this package. The list contains 2-tuples, of which the first item is either a PimpPackage object or None, and the second is a descriptive string. The first item can be None if this package depends on something that isn't pimp-installable, in which case the... | 53b341ff67f2b7d63db2783734a813354a5e3264 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/53b341ff67f2b7d63db2783734a813354a5e3264/pimp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30328,
16608,
2997,
12,
2890,
4672,
3536,
990,
279,
666,
434,
30328,
16608,
2997,
364,
333,
2181,
18,
225,
1021,
666,
1914,
576,
17,
17705,
16,
434,
1492,
326,
1122,
761,
353,
3344,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30328,
16608,
2997,
12,
2890,
4672,
3536,
990,
279,
666,
434,
30328,
16608,
2997,
364,
333,
2181,
18,
225,
1021,
666,
1914,
576,
17,
17705,
16,
434,
1492,
326,
1122,
761,
353,
3344,
279,... |
raise TypeError, "Oops! There are no quadratic non-residues in Z/2Z." | raise ValueError, "Oops! There are no quadratic non-residues in Z/2Z." | def quadratic_nonresidue(p): """ Returns the smalest positive integer quadratic non-residue in Z/pZ for primes p>2. EXAMPLES: sage: quadratic_nonresidue(5) 2 """ p1 = abs(p) ## Deal with the prime p = 2 and |p| <= 1. if p1 == 2: raise TypeError, "Oops! There are no quadratic non-residues in Z/2Z." if p1 < 2: raise T... | 68f0a3ef53b61e8972766bdf68219b2d810e364b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/68f0a3ef53b61e8972766bdf68219b2d810e364b/extras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26146,
67,
5836,
23388,
12,
84,
4672,
3536,
2860,
326,
3029,
287,
395,
6895,
3571,
26146,
1661,
17,
23388,
316,
2285,
19,
84,
62,
364,
846,
4485,
293,
34,
22,
18,
225,
5675,
8900,
1138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26146,
67,
5836,
23388,
12,
84,
4672,
3536,
2860,
326,
3029,
287,
395,
6895,
3571,
26146,
1661,
17,
23388,
316,
2285,
19,
84,
62,
364,
846,
4485,
293,
34,
22,
18,
225,
5675,
8900,
1138... |
if len (parts) > 3: subnamespace = '/'.join (parts[2:-1]) | if len(parts) > 3: subnamespace = '/'.join(parts[2:-1]) | def tag_path_split (self, tag): """A bit like os.path.split, this splits any old kind of a FluidDB tag path into a user, a subnamespace (if there is one) and a tag. But unlike os.path.split, if no namespace is given, the one from the user credentials is returned. | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1047,
67,
803,
67,
4939,
261,
2890,
16,
1047,
4672,
3536,
37,
2831,
3007,
1140,
18,
803,
18,
4939,
16,
333,
11019,
1281,
1592,
3846,
434,
279,
3857,
1911,
2290,
1047,
589,
1368,
279,
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,
1047,
67,
803,
67,
4939,
261,
2890,
16,
1047,
4672,
3536,
37,
2831,
3007,
1140,
18,
803,
18,
4939,
16,
333,
11019,
1281,
1592,
3846,
434,
279,
3857,
1911,
2290,
1047,
589,
1368,
279,
7... |
self.check_sizeof(class_oldstyle().method, h + 4*p) | self.check_sizeof(class_oldstyle().method, size(h + '4P')) | def method(): pass | 5c5f6ea02a90835741c65e40e2b7c4e412c33d55 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5c5f6ea02a90835741c65e40e2b7c4e412c33d55/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.