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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'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) except Exception, exception: rpc.process_exception(exception, window) raise try: view = rpc.execute('object', 'execute', view_base['model'], 'fields_view_get', view_id, view_base['type'],context) except Exception, exception: rpc.process_exception(exception, window) raise else: try: view = rpc.execute('object', 'execute', model, 'fields_view_get', False, view_type, context) except Exception, exception: rpc.process_exception(exception, window) raise
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, 2471, 16, 365, 2934, 972, 2738, 972, 1435, 309, 2461, 353, 599, 30, 2461, 273, 2618, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 1476, 67, 350, 30, 775, 30, 1476, 67, 1969, 273, 225, 6724, 18, 8837, 2668, 1612, 2187, 296, 8837, 2187, 296, 481, 18, 4881, 18, 1945, 2187, 296, 896, 2187, 1476, 67, 350, 16, 10228, 2284, 2187, 296, 723, 17337, 819, 13, 1335, 1185, 16, 1520, 30, 6724, 18, 2567, 67, 4064, 12, 4064, 16, 2742, 13, 1002, 775, 30, 1476, 273, 6724, 18, 8837, 2668, 1612, 2187, 296, 8837, 2187, 1476, 67, 1969, 3292, 2284, 17337, 296, 2821, 67, 1945, 67, 588, 2187, 1476, 67, 350, 16, 1476, 67, 1969, 3292, 723, 17337, 2472, 13, 1335, 1185, 16, 1520, 30, 6724, 18, 2567, 67, 4064, 12, 4064, 16, 2742, 13, 1002, 469, 30, 775, 30, 1476, 273, 6724, 18, 8837, 2668, 1612, 2187, 296, 8837, 2187, 938, 16, 296, 2821, 67, 1945, 67, 588, 2187, 1083, 16, 296, 3413, 2187, 819, 13, 1335, 1185, 16, 1520, 30, 6724, 18, 2567, 67, 4064, 12, 4064, 16, 2742, 13, 1002, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2471, 16, 365, 2934, 972, 2738, 972, 1435, 309, 2461, 353, 599, 30, 2461, 273, 2618, 309, 819, 353, 599, 30, 819, 273, 2618, 309, 1476, 67, 350, 30, 775, 30, 1476, 67, 1969, 273, 225, 6724, 18, 8837, 2668, 1612, 2187, 296, 8837, 2187, 296, 481, 18, 4881, 18, 1945, 2187, 296, 896, 2187, 1476, 67, 350, 16, 10228, 2284, 2187, 296, 723, 17337, 819, 13, 1335, 1185, 16, 1520, 30, 6724, 18, 2567, 67, 4064, 12, 4064, 16, 2742, 13, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 18, 26106, 2227, 12, 4110, 16, 374, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 18, 26106, 2227, 12, 4110, 16, 374, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 == 'short': monthes = {0: _("Month"), 1: _("jan"), 2: _("feb"), 3: _("mar"), 4: _("apr"), 5: _("may"), 6: _("jun"), 7: _("jul"), 8: _("aug"), 9: _("sep"), 10: _("oct"), 11: _("nov"), 12: _("dec")} else: monthes = {0: _("Month"), 1: _("january"), 2: _("february"), 3: _("march"), 4: _("april"), 5: _("may"), 6: _("june"), 7: _("july"), 8: _("august"), 9: _("september"), 10: _("october"), 11: _("november"), 12: _("december")} return monthes[month_nb]
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, 29553, 1235, 18, 632, 891, 3138, 67, 6423, 30, 1300, 434, 3138, 16, 261, 21, 2511, 24949, 516, 21, 33, 78, 304, 16, 838, 16, 2138, 33, 4924, 632, 891, 7211, 30, 2653, 364, 876, 632, 2463, 326, 533, 4335, 434, 3138, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 309, 2562, 422, 296, 6620, 4278, 3138, 281, 273, 288, 20, 30, 389, 2932, 5445, 6, 3631, 404, 30, 389, 2932, 46, 304, 6, 3631, 576, 30, 389, 2932, 2954, 70, 6, 3631, 890, 30, 389, 2932, 49, 297, 6, 3631, 1059, 30, 389, 2932, 37, 683, 6, 3631, 1381, 30, 389, 2932, 49, 528, 6, 3631, 1666, 30, 389, 2932, 46, 318, 6, 3631, 2371, 30, 389, 2932, 46, 332, 6, 3631, 1725, 30, 389, 2932, 37, 637, 6, 3631, 2468, 30, 389, 2932, 5097, 6, 3631, 1728, 30, 389, 2932, 19320, 6, 3631, 4648, 30, 389, 2932, 50, 1527, 6, 3631, 2593, 30, 389, 2932, 1799, 7923, 97, 469, 30, 3138, 281, 273, 288, 20, 30, 389, 2932, 5445, 6, 3631, 404, 30, 389, 2932, 78, 304, 24335, 6, 3631, 576, 30, 389, 2932, 3030, 2848, 24335, 6, 3631, 890, 30, 389, 2932, 81, 991, 6, 3631, 1059, 30, 389, 2932, 438, 86, 330, 6, 3631, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 29553, 1235, 18, 632, 891, 3138, 67, 6423, 30, 1300, 434, 3138, 16, 261, 21, 2511, 24949, 516, 21, 33, 78, 304, 16, 838, 16, 2138, 33, 4924, 632, 891, 7211, 30, 2653, 364, 876, 632, 2463, 326, 533, 4335, 434, 3138, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 309, 2562, 422, 296, 6620, 4278, 3138, 281, 273, 288, 20, 30, 389, 2932, 5445, 6, 3631, 404, 30, 389, 2932, 46, 304, 6, 3631, 576, 30, 389, 2932, 2954, 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\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'hspace{' + length + '}\n\\end_layout\n\n\\end_inset\n\n')
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] = subst addedLines += len(subst) - 1 i += addedLines + 1 continue if hspace.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] = subst addedLines += len(subst) - 1 i += addedLines + 1 continue i += 1
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 del document.body[i+1] 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\nstatus collapsed\n\n' \ '\\begin_layout Standard\n\n\n\\backslash\n' \ 'hspace{' + length + '}\n\\end_layout\n\n\\end_inset\n\n')
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, 18, 3432, 16, 8422, 382, 542, 3819, 1736, 76, 2981, 3113, 277, 13, 309, 277, 422, 300, 21, 30, 327, 769, 273, 336, 67, 1132, 12, 5457, 18, 3432, 16, 3718, 2469, 2187, 277, 15, 21, 13, 309, 769, 422, 875, 30, 1668, 18, 8551, 2932, 18695, 18519, 92, 1668, 30, 10230, 3718, 2469, 11, 316, 14059, 316, 542, 1199, 13, 327, 1464, 1668, 18, 3432, 63, 77, 15, 21, 65, 3096, 5763, 273, 300, 21, 309, 366, 10983, 18, 3072, 12, 5457, 18, 3432, 63, 77, 65, 4672, 27750, 273, 1668, 18, 3432, 63, 77, 8009, 2079, 2668, 1695, 382, 542, 3819, 1736, 76, 2981, 14, 8978, 16, 521, 3718, 10086, 67, 267, 542, 4232, 56, 64, 82, 2327, 17027, 64, 82, 64, 82, 11, 521, 3718, 10086, 67, 6741, 8263, 64, 82, 64, 82, 64, 82, 1695, 823, 12877, 64, 82, 11, 521, 296, 76, 2981, 14, 27828, 397, 769, 397, 296, 6280, 82, 1695, 409, 67, 6741, 64, 82, 64, 82, 1695, 409, 67, 267, 542, 64, 82, 64, 82, 6134, 27750, 273, 27750, 18, 4939, 2668, 64, 82, 6134, 1668, 18, 3432, 63, 77, 294, 277, 15, 21, 65, 273, 27750, 3096, 5763, 1011, 562, 12, 1717, 334, 13, 300, 404, 277, 1011, 3096, 5763, 397, 404, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 18, 3432, 16, 8422, 382, 542, 3819, 1736, 76, 2981, 3113, 277, 13, 309, 277, 422, 300, 21, 30, 327, 769, 273, 336, 67, 1132, 12, 5457, 18, 3432, 16, 3718, 2469, 2187, 277, 15, 21, 13, 309, 769, 422, 875, 30, 1668, 18, 8551, 2932, 18695, 18519, 92, 1668, 30, 10230, 3718, 2469, 11, 316, 14059, 316, 542, 1199, 13, 327, 1464, 1668, 18, 3432, 63, 77, 15, 21, 65, 3096, 5763, 273, 300, 21, 309, 366, 10983, 18, 3072, 12, 5457, 2 ]
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, 326, 576, 17, 72, 471, 890, 17, 72, 5316, 316, 326, 2742, 18, 3536, 365, 18, 5902, 22, 9295, 273, 2029, 743, 2668, 5902, 22, 9295, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 326, 576, 17, 72, 471, 890, 17, 72, 5316, 316, 326, 2742, 18, 3536, 365, 18, 5902, 22, 9295, 273, 2029, 743, 2668, 5902, 22, 9295, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.user = tup[1] else: new_ub.user = ESPUser.objects.get(id=tup[1]) new_ub.save() return 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, 33, 5510, 13, 394, 67, 373, 18, 85, 1017, 273, 11243, 18, 16215, 394, 67, 373, 18, 10543, 273, 1053, 394, 67, 373, 18, 1937, 712, 273, 15822, 63, 22, 65, 394, 67, 373, 18, 409, 712, 273, 15822, 63, 23, 65, 309, 261, 88, 416, 63, 21, 65, 353, 599, 13, 578, 261, 88, 416, 63, 21, 65, 422, 374, 13, 578, 261, 88, 416, 63, 21, 65, 422, 7747, 454, 2506, 4672, 394, 67, 373, 18, 1355, 273, 599, 1327, 618, 12, 88, 416, 63, 21, 5717, 316, 261, 1299, 16, 512, 3118, 1299, 4672, 394, 67, 373, 18, 1355, 273, 15822, 63, 21, 65, 469, 30, 394, 67, 373, 18, 1355, 273, 512, 3118, 1299, 18, 6911, 18, 588, 12, 350, 33, 88, 416, 63, 21, 5717, 394, 67, 373, 18, 5688, 1435, 327, 394, 67, 373, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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6487, 752, 33, 5510, 13, 394, 67, 373, 18, 85, 1017, 273, 11243, 18, 16215, 394, 67, 373, 18, 10543, 273, 1053, 394, 67, 373, 18, 1937, 712, 273, 15822, 63, 22, 65, 394, 67, 373, 18, 409, 712, 273, 15822, 63, 23, 65, 309, 261, 88, 416, 63, 21, 65, 353, 599, 13, 578, 261, 88, 416, 63, 21, 65, 422, 374, 13, 578, 261, 88, 416, 63, 21, 65, 422, 7747, 454, 2506, 4672, 394, 67, 373, 18, 1355, 273, 599, 1327, 2 ]
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 # New Python BibFormat procedure for formatting # Old procedure follows further below # We must still check some special formats, but these # should disappear when BibFormat improves. if not (CFG_BIBFORMAT_USE_OLD_BIBFORMAT \ or format.lower().startswith('t') \ or format.lower().startswith('hm') \ or str(format[0:3]).isdigit() \ or ot): # Unspecified format is hd if format == '': format = 'hd' if record_exist_p == -1 and get_output_format_content_type(format) == 'text/html': # HTML output displays a default value for deleted records. # Other format have to deal with it. out += _("The record has been deleted.") else: out += call_bibformat(recID, format, ln, search_pattern=search_pattern, uid=uid) # at the end of HTML brief mode, print the "Detailed record" functionality: if format.lower().startswith('hb') and \ format.lower() != 'hb_p': out += websearch_templates.tmpl_print_record_brief_links( ln = ln, recID = recID, weburl = weburl ) return out # Old PHP BibFormat procedure for formatting # print record opening tags, if needed: if format == "marcxml" or format == "oai_dc": out += " <record>\n" out += " <header>\n" for oai_id in get_fieldvalues(recID, CFG_OAI_ID_FIELD): out += " <identifier>%s</identifier>\n" % oai_id out += " <datestamp>%s</datestamp>\n" % get_modification_date(recID) out += " </header>\n" out += " <metadata>\n" if format.startswith("xm") or format == "marcxml": # look for detailed format existence: query = "SELECT value FROM bibfmt WHERE id_bibrec='%s' AND format='%s'" % (recID, format) res = run_sql(query, None, 1) if res and record_exist_p == 1: # record 'recID' is formatted in 'format', so print it out += "%s" % decompress(res[0][0]) else: # record 'recID' is not formatted in 'format' -- they are not in "bibfmt" table; so fetch all the data from "bibXXx" tables: if format == "marcxml": out += """ <record xmlns="http://www.loc.gov/MARC21/slim">\n""" out += " <controlfield tag=\"001\">%d</controlfield>\n" % int(recID) elif format.startswith("xm"): out += """ <record>\n""" out += " <controlfield tag=\"001\">%d</controlfield>\n" % int(recID) if record_exist_p == -1: # deleted record, so display only OAI ID and 980: oai_ids = get_fieldvalues(recID, CFG_OAI_ID_FIELD) if oai_ids: out += "<datafield tag=\"%s\" ind1=\"%s\" ind2=\"%s\"><subfield code=\"%s\">%s</subfield></datafield>\n" % \ (CFG_OAI_ID_FIELD[0:3], CFG_OAI_ID_FIELD[3:4], CFG_OAI_ID_FIELD[4:5], CFG_OAI_ID_FIELD[5:6], oai_ids[0]) out += "<datafield tag=\"980\" ind1=\"\" ind2=\"\"><subfield code=\"c\">DELETED</subfield></datafield>\n" else: for digit1 in range(0, 10): for digit2 in range(0, 10): bx = "bib%d%dx" % (digit1, digit2) bibx = "bibrec_bib%d%dx" % (digit1, digit2) query = "SELECT b.tag,b.value,bb.field_number FROM %s AS b, %s AS bb "\ "WHERE bb.id_bibrec='%s' AND b.id=bb.id_bibxxx AND b.tag LIKE '%s%%' "\ "ORDER BY bb.field_number, b.tag ASC" % (bx, bibx, recID, str(digit1)+str(digit2)) res = run_sql(query) field_number_old = -999 field_old = "" for row in res: field, value, field_number = row[0], row[1], row[2] ind1, ind2 = field[3], field[4] if ind1 == "_": ind1 = "" if ind2 == "_": ind2 = "" # print field tag if field_number != field_number_old or field[:-1] != field_old[:-1]: if format.startswith("xm") or format == "marcxml": if field_number_old != -999: out += """ </datafield>\n""" out += """ <datafield tag="%s" ind1="%s" ind2="%s">\n""" % \ (encode_for_xml(field[0:3]), encode_for_xml(ind1), encode_for_xml(ind2)) field_number_old = field_number field_old = field # print subfield value if format.startswith("xm") or format == "marcxml": value = encode_for_xml(value) out += """ <subfield code="%s">%s</subfield>\n""" % (encode_for_xml(field[-1:]), value) # all fields/subfields printed in this run, so close the tag: if (format.startswith("xm") or format == "marcxml") and field_number_old != -999: out += """ </datafield>\n""" # we are at the end of printing the record: if format.startswith("xm") or format == "marcxml": out += " </record>\n" elif format == "xd" or format == "oai_dc": # XML Dublin Core format, possibly OAI -- select only some bibXXx fields: out += """ <dc xmlns="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.org/dc/elements/1.1/ http://www.openarchives.org/OAI/1.1/dc.xsd">\n""" if record_exist_p == -1: out += "" else: for f in get_fieldvalues(recID, "041__a"): out += " <language>%s</language>\n" % f for f in get_fieldvalues(recID, "100__a"): out += " <creator>%s</creator>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "700__a"): out += " <creator>%s</creator>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "245__a"): out += " <title>%s</title>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "65017a"): out += " <subject>%s</subject>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "8564_u"): out += " <identifier>%s</identifier>\n" % encode_for_xml(f) for f in get_fieldvalues(recID, "520__a"): out += " <description>%s</description>\n" % encode_for_xml(f) out += " <date>%s</date>\n" % get_creation_date(recID) out += " </dc>\n" elif str(format[0:3]).isdigit(): # user has asked to print some fields only if format == "001": out += "<!--%s-begin-->%s<!--%s-end-->\n" % (format, recID, format) else: vals = get_fieldvalues(recID, format) for val in vals: out += "<!--%s-begin-->%s<!--%s-end-->\n" % (format, val, format) elif format.startswith('t'): ## user directly asked for some tags to be displayed only if record_exist_p == -1: out += get_fieldvalues_alephseq_like(recID, ["001", CFG_OAI_ID_FIELD, "980"]) else: out += get_fieldvalues_alephseq_like(recID, ot) elif format == "hm": if record_exist_p == -1: out += "<pre>" + cgi.escape(get_fieldvalues_alephseq_like(recID, ["001", CFG_OAI_ID_FIELD, "980"])) + "</pre>" else: out += "<pre>" + cgi.escape(get_fieldvalues_alephseq_like(recID, ot)) + "</pre>" elif format.startswith("h") and ot: ## user directly asked for some tags to be displayed only if record_exist_p == -1: out += "<pre>" + get_fieldvalues_alephseq_like(recID, ["001", CFG_OAI_ID_FIELD, "980"]) + "</pre>" else: out += "<pre>" + get_fieldvalues_alephseq_like(recID, ot) + "</pre>" elif format == "hd": # HTML detailed format if record_exist_p == -1: out += _("The record has been deleted.") else: # look for detailed format existence: query = "SELECT value FROM bibfmt WHERE id_bibrec='%s' AND format='%s'" % (recID, format) res = run_sql(query, None, 1) if res: # record 'recID' is formatted in 'format', so print it out += "%s" % decompress(res[0][0]) else: # record 'recID' is not formatted in 'format', so try to call BibFormat on the fly or use default format: out_record_in_format = call_bibformat(recID, format, ln, search_pattern=search_pattern, uid=uid) if out_record_in_format: out += out_record_in_format else: out += websearch_templates.tmpl_print_record_detailed( ln = ln, recID = recID, weburl = weburl, ) elif format.startswith("hb_") or format.startswith("hd_"): # underscore means that HTML brief/detailed formats should be called on-the-fly; suitable for testing formats if record_exist_p == -1: out += _("The record has been deleted.") else: out += call_bibformat(recID, format, ln, search_pattern=search_pattern, uid=uid) elif format.startswith("hx"): # BibTeX format, called on the fly: if record_exist_p == -1: out += _("The record has been deleted.") else: out += call_bibformat(recID, format, ln, search_pattern=search_pattern, uid=uid) elif format.startswith("hs"): # for citation/download similarity navigation links: if record_exist_p == -1: out += _("The record has been deleted.") else: out += '<a href="%s">' % websearch_templates.build_search_url(recid=recID, ln=ln) # firstly, title: titles = get_fieldvalues(recID, "245__a") if titles: for title in titles: out += "<strong>%s</strong>" % title else: # usual title not found, try conference title: titles = get_fieldvalues(recID, "111__a") if titles: for title in titles: out += "<strong>%s</strong>" % title else: # just print record ID: out += "<strong>%s %d</strong>" % (get_field_i18nname("record ID", ln), recID) out += "</a>" # secondly, authors: authors = get_fieldvalues(recID, "100__a") + get_fieldvalues(recID, "700__a") if authors: out += " - %s" % authors[0] if len(authors) > 1: out += " <em>et al</em>" # thirdly publication info: publinfos = get_fieldvalues(recID, "773__s") if not publinfos: publinfos = get_fieldvalues(recID, "909C4s") if not publinfos: publinfos = get_fieldvalues(recID, "037__a") if not publinfos: publinfos = get_fieldvalues(recID, "088__a") if publinfos: out += " - %s" % publinfos[0] else: # fourthly publication year (if not publication info): years = get_fieldvalues(recID, "773__y") if not years: years = get_fieldvalues(recID, "909C4y") if not years: years = get_fieldvalues(recID, "260__c") if years: out += " (%s)" % years[0] else: # HTML brief format by default if record_exist_p == -1: out += _("The record has been deleted.") else: query = "SELECT value FROM bibfmt WHERE id_bibrec='%s' AND format='%s'" % (recID, format) res = run_sql(query) if res: # record 'recID' is formatted in 'format', so print it out += "%s" % decompress(res[0][0]) else: # record 'recID' is not formatted in 'format', so try to call BibFormat on the fly: or use default format: if CFG_WEBSEARCH_CALL_BIBFORMAT: out_record_in_format = call_bibformat(recID, format, ln, search_pattern=search_pattern, uid=uid) if out_record_in_format: out += out_record_in_format else: out += websearch_templates.tmpl_print_record_brief( ln = ln, recID = recID, weburl = weburl, ) else: out += websearch_templates.tmpl_print_record_brief( ln = ln, recID = recID, weburl = weburl, ) # at the end of HTML brief mode, print the "Detailed record" functionality: if format == 'hp' or format.startswith("hb_") or format.startswith("hd_"): pass # do nothing for portfolio and on-the-fly formats else: out += websearch_templates.tmpl_print_record_brief_links( ln = ln, recID = recID, weburl = weburl, ) # print record closing tags, if needed: if format == "marcxml" or format == "oai_dc": out += " </metadata>\n" out += " </record>\n" 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, 4555, 33, 7036, 4672, 315, 15402, 1409, 296, 3927, 734, 11, 4955, 4078, 4751, 358, 296, 2139, 14550, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 225, 596, 273, 1408, 225, 468, 16267, 866, 30, 1409, 67, 7398, 67, 84, 273, 1409, 67, 1808, 12, 3927, 734, 13, 309, 1409, 67, 7398, 67, 84, 422, 374, 30, 468, 3302, 1404, 1005, 327, 596, 225, 468, 1166, 6600, 605, 495, 1630, 12131, 364, 10407, 468, 18613, 12131, 13040, 9271, 5712, 468, 1660, 1297, 4859, 866, 2690, 4582, 6449, 16, 1496, 4259, 468, 1410, 1015, 438, 17964, 1347, 605, 495, 1630, 13069, 3324, 18, 309, 486, 261, 19727, 67, 38, 13450, 7254, 67, 8001, 67, 11846, 67, 38, 13450, 7254, 521, 578, 740, 18, 8167, 7675, 17514, 1918, 2668, 88, 6134, 521, 578, 740, 18, 8167, 7675, 17514, 1918, 2668, 76, 81, 6134, 521, 578, 609, 12, 2139, 63, 20, 30, 23, 65, 2934, 291, 11052, 1435, 521, 578, 15835, 4672, 225, 468, 1351, 13827, 740, 353, 15921, 309, 740, 422, 875, 30, 740, 273, 296, 22057, 11, 225, 309, 1409, 67, 7398, 67, 84, 422, 300, 21, 471, 336, 67, 2844, 67, 2139, 67, 1745, 67, 723, 12, 2139, 13, 422, 296, 955, 19, 2620, 4278, 468, 3982, 876, 22461, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4555, 33, 7036, 4672, 315, 15402, 1409, 296, 3927, 734, 11, 4955, 4078, 4751, 358, 296, 2139, 14550, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 225, 596, 273, 1408, 225, 468, 16267, 866, 30, 1409, 67, 7398, 67, 84, 273, 1409, 67, 1808, 12, 3927, 734, 13, 309, 1409, 67, 7398, 67, 84, 422, 374, 30, 468, 3302, 1404, 1005, 327, 596, 225, 468, 1166, 6600, 605, 495, 1630, 12131, 364, 10407, 468, 18613, 12131, 13040, 9271, 5712, 468, 1660, 2 ]
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, 16, 333, 903, 752, 279, 1409, 434, 5348, 3478, 16, 1923, 326, 3310, 12, 87, 3631, 471, 3430, 279, 883, 358, 326, 729, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 16, 333, 903, 752, 279, 1409, 434, 5348, 3478, 16, 1923, 326, 3310, 12, 87, 3631, 471, 3430, 279, 883, 358, 326, 729, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 16491, 966, 18, 12994, 1617, 653, 262, 327, 389, 1617, 653, 3572, 7385, 12, 498, 262, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 3297, 67, 14922, 67, 5535, 1792, 3740, 16, 16491, 966, 18, 12994, 1617, 653, 262, 327, 389, 1617, 653, 3572, 7385, 12, 498, 262, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
' 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' % target]) # Load the root resource storage = FileStorage('%s/database.fs' % target) database = zodb.Database(storage) root_resource = database.get_resource('/') # Import the root class if is not the default if config.has_option('instance', 'root'): exec('import %s' % config.get('instance', 'root')) # Load the root handler and start the server metadata = root_resource.get_resource('.metadata') metadata = Metadata(metadata) format = metadata.get_property('format') root = Root.build_handler(root_resource, format=format) root.name = root.class_title # Start the server if options.port: port = options.port elif config.has_option('instance', 'port'): port = config.getint('instance', 'port') else: port = None server = Server(root, port=port, access_log='%s/access_log' % target, error_log='%s/error_log' % target, pid_file='%s/pid' % target) server.start()
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, 486, 599, 30, 2082, 18, 1636, 2668, 3482, 1493, 3085, 486, 2935, 316, 333, 819, 6134, 225, 468, 4444, 326, 642, 642, 273, 6576, 809, 2678, 1435, 642, 18, 1289, 67, 3464, 2668, 1336, 6134, 642, 18, 896, 12, 3292, 9, 87, 19, 1425, 18, 8767, 11, 738, 1018, 5717, 225, 468, 4444, 326, 1365, 1058, 2502, 273, 1387, 3245, 29909, 87, 19, 6231, 18, 2556, 11, 738, 1018, 13, 2063, 273, 998, 10605, 18, 4254, 12, 5697, 13, 1365, 67, 3146, 273, 2063, 18, 588, 67, 3146, 2668, 2473, 13, 225, 468, 6164, 326, 1365, 667, 309, 353, 486, 326, 805, 309, 642, 18, 5332, 67, 3482, 2668, 1336, 2187, 296, 3085, 11, 4672, 1196, 2668, 5666, 738, 87, 11, 738, 642, 18, 588, 2668, 1336, 2187, 296, 3085, 26112, 225, 468, 4444, 326, 1365, 1838, 471, 787, 326, 1438, 1982, 273, 1365, 67, 3146, 18, 588, 67, 3146, 2668, 18, 4165, 6134, 1982, 273, 6912, 12, 4165, 13, 740, 273, 1982, 18, 588, 67, 4468, 2668, 2139, 6134, 1365, 273, 7450, 18, 3510, 67, 4176, 12, 3085, 67, 3146, 16, 740, 33, 2139, 13, 1365, 18, 529, 273, 1365, 18, 1106, 67, 2649, 225, 468, 3603, 326, 1438, 309, 702, 18, 655, 30, 1756, 273, 702, 18, 655, 1327, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 486, 599, 30, 2082, 18, 1636, 2668, 3482, 1493, 3085, 486, 2935, 316, 333, 819, 6134, 225, 468, 4444, 326, 642, 642, 273, 6576, 809, 2678, 1435, 642, 18, 1289, 67, 3464, 2668, 1336, 6134, 642, 18, 896, 12, 3292, 9, 87, 19, 1425, 18, 8767, 11, 738, 1018, 5717, 225, 468, 4444, 326, 1365, 1058, 2502, 273, 1387, 3245, 29909, 87, 19, 6231, 18, 2556, 11, 738, 1018, 13, 2063, 273, 998, 10605, 18, 4254, 12, 5697, 13, 1365, 67, 3146, 273, 2 ]
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.EndUndoAction()
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, 6766, 1803, 18, 4148, 2815, 273, 404, 1323, 15027, 405, 374, 30, 364, 16421, 67, 1128, 316, 365, 18, 588, 426, 3850, 785, 6100, 13332, 16421, 67, 1128, 18, 16092, 1803, 12, 2019, 13, 15027, 3947, 404, 6766, 1803, 18, 4148, 2815, 273, 374, 1965, 18, 1638, 31224, 1803, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 6766, 1803, 18, 4148, 2815, 273, 404, 1323, 15027, 405, 374, 30, 364, 16421, 67, 1128, 316, 365, 18, 588, 426, 3850, 785, 6100, 13332, 16421, 67, 1128, 18, 16092, 1803, 12, 2019, 13, 15027, 3947, 404, 6766, 1803, 18, 4148, 2815, 273, 374, 1965, 18, 1638, 31224, 1803, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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[fqname][parent.__name__] = None return None try: fp, pathname, stuff = self.find_module(partname, parent and parent.__path__) except ImportError: self.msgout(3, "import_module ->", None) return None try: m = self.load_module(fqname, fp, pathname, stuff) finally: if fp: fp.close() if parent: setattr(parent, partname, m) self.msgout(3, "import_module ->", m) return m
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, 312, 273, 365, 18, 6400, 63, 19206, 529, 65, 1335, 4999, 30, 1342, 469, 30, 365, 18, 3576, 659, 12, 23, 16, 315, 5666, 67, 2978, 317, 3113, 312, 13, 327, 312, 309, 365, 18, 8759, 6400, 18, 5332, 67, 856, 12, 19206, 529, 4672, 365, 18, 3576, 659, 12, 23, 16, 315, 5666, 67, 2978, 317, 599, 7923, 327, 599, 775, 30, 4253, 16, 9806, 16, 10769, 273, 365, 18, 4720, 67, 2978, 12, 2680, 529, 16, 982, 471, 982, 16186, 803, 972, 13, 1335, 11308, 30, 365, 18, 3576, 659, 12, 23, 16, 315, 5666, 67, 2978, 317, 3113, 599, 13, 327, 599, 775, 30, 312, 273, 365, 18, 945, 67, 2978, 12, 19206, 529, 16, 4253, 16, 9806, 16, 10769, 13, 3095, 30, 309, 4253, 30, 4253, 18, 4412, 1435, 309, 982, 30, 9241, 12, 2938, 16, 1087, 529, 16, 312, 13, 365, 18, 3576, 659, 12, 23, 16, 315, 5666, 67, 2978, 317, 3113, 312, 13, 327, 312, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 312, 273, 365, 18, 6400, 63, 19206, 529, 65, 1335, 4999, 30, 1342, 469, 30, 365, 18, 3576, 659, 12, 23, 16, 315, 5666, 67, 2978, 317, 3113, 312, 13, 327, 312, 309, 365, 18, 8759, 6400, 18, 5332, 67, 856, 12, 19206, 529, 4672, 365, 18, 3576, 659, 12, 23, 16, 315, 5666, 67, 2978, 317, 599, 7923, 327, 599, 775, 30, 4253, 16, 9806, 16, 10769, 273, 365, 18, 4720, 67, 2978, 12, 2680, 529, 16, 982, 471, 982, 16186, 2 ]
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, 268, 13, 364, 7764, 316, 26629, 30, 1319, 18, 5387, 340, 12, 839, 16, 1177, 33, 10488, 13, 309, 1570, 30, 282, 364, 7764, 316, 26629, 30, 1319, 18, 5387, 340, 12, 839, 16, 1177, 33, 2890, 6315, 1589, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 268, 13, 364, 7764, 316, 26629, 30, 1319, 18, 5387, 340, 12, 839, 16, 1177, 33, 10488, 13, 309, 1570, 30, 282, 364, 7764, 316, 26629, 30, 1319, 18, 5387, 340, 12, 839, 16, 1177, 33, 2890, 6315, 1589, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 16, 5972, 33, 5510, 13, 309, 22115, 411, 374, 30, 1002, 7265, 2932, 1763, 1703, 14127, 635, 4277, 315, 397, 300, 15685, 13, 1335, 10002, 16, 425, 30, 1002, 7265, 2932, 3210, 2535, 30, 315, 397, 425, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 16, 5972, 33, 5510, 13, 309, 22115, 411, 374, 30, 1002, 7265, 2932, 1763, 1703, 14127, 635, 4277, 315, 397, 300, 15685, 13, 1335, 10002, 16, 425, 30, 1002, 7265, 2932, 3210, 2535, 30, 315, 397, 425, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 18, 19003, 285, 4712, 10531, 65, 775, 30, 1464, 365, 16186, 1106, 972, 6315, 454, 5361, 63, 365, 18, 856, 308, 1335, 4999, 30, 1342, 225, 364, 445, 316, 2590, 30, 775, 30, 309, 4140, 12, 445, 262, 30, 445, 12, 365, 262, 1335, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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]
[ 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, 18, 19003, 285, 4712, 10531, 65, 775, 30, 1464, 365, 16186, 1106, 972, 6315, 454, 5361, 63, 365, 18, 856, 308, 1335, 4999, 30, 1342, 225, 364, 445, 316, 2590, 30, 775, 30, 309, 4140, 12, 445, 262, 30, 445, 12, 365, 262, 1335, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 = {'&': ' AND ', '|': ' OR '} q1 = stack.pop() q2 = stack.pop() stack.append('(%s %s %s)' % (q1, ops[e], q2,))
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, 2713, 33, 5510, 4672, 1014, 273, 365, 16186, 1518, 67, 9373, 18, 588, 12, 77, 16, 365, 16186, 5254, 67, 2121, 13, 1043, 16, 293, 273, 365, 16186, 12070, 67, 869, 67, 4669, 12, 73, 16, 1014, 13, 859, 18, 6387, 12, 20, 16, 293, 13, 2110, 18, 6923, 12, 85, 13, 469, 30, 309, 425, 422, 11817, 4278, 2110, 18, 6923, 2668, 12, 4400, 6142, 87, 13, 2506, 738, 261, 3772, 18, 5120, 9334, 3719, 469, 30, 6727, 273, 13666, 10, 4278, 296, 4116, 2265, 6699, 4278, 296, 4869, 23886, 1043, 21, 273, 2110, 18, 5120, 1435, 1043, 22, 273, 2110, 18, 5120, 1435, 2110, 18, 6923, 2668, 9275, 87, 738, 87, 738, 87, 2506, 738, 261, 85, 21, 16, 6727, 63, 73, 6487, 1043, 22, 16, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 2713, 33, 5510, 4672, 1014, 273, 365, 16186, 1518, 67, 9373, 18, 588, 12, 77, 16, 365, 16186, 5254, 67, 2121, 13, 1043, 16, 293, 273, 365, 16186, 12070, 67, 869, 67, 4669, 12, 73, 16, 1014, 13, 859, 18, 6387, 12, 20, 16, 293, 13, 2110, 18, 6923, 12, 85, 13, 469, 30, 309, 425, 422, 11817, 4278, 2110, 18, 6923, 2668, 12, 4400, 6142, 87, 13, 2506, 738, 261, 3772, 18, 5120, 9334, 3719, 469, 30, 6727, 273, 13666, 10, 4278, 2 ]
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(value)), value, state)
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, 30, 327, 460, 309, 3859, 12, 1132, 16, 315, 701, 9982, 6, 4672, 327, 460, 18, 701, 9982, 12, 2890, 18, 2139, 13, 1002, 11632, 18, 1941, 974, 2932, 3825, 279, 3314, 316, 326, 3716, 914, 1995, 87, 2187, 2363, 738, 87, 3560, 6, 738, 521, 261, 2890, 18, 529, 16, 618, 12, 1132, 13, 3631, 460, 16, 919, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 30, 327, 460, 309, 3859, 12, 1132, 16, 315, 701, 9982, 6, 4672, 327, 460, 18, 701, 9982, 12, 2890, 18, 2139, 13, 1002, 11632, 18, 1941, 974, 2932, 3825, 279, 3314, 316, 326, 3716, 914, 1995, 87, 2187, 2363, 738, 87, 3560, 6, 738, 521, 261, 2890, 18, 529, 16, 618, 12, 1132, 13, 3631, 460, 16, 919, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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)$ simultaneously, as $\sigma$ is multiplicative. INPUT: k -- even positive integer prec -- nonnegative integer K -- a ring in which B_k/(2*k) is invertible EXAMPLES: sage: eisenstein_series_qexp(2,5) -1/24 + q + 3*q^2 + 4*q^3 + 7*q^4 + O(q^5) sage: eisenstein_series_qexp(2,0) O(q^0) AUTHORS: -- William Stein: original implementation -- Craig Citro (2007-06-01): rewrote for massive speedup """ k = Integer(k) if k%2 or k < 2: raise ValueError, "k (=%s) must be an even positive integer"%k precision = Integer(prec) if precision < 0: raise ValueError, "prec (=%s) must an even nonnegative integer"%prec R = K[['q']] one = Integer(1) val = [one] * (prec + 1) pow = 0 ind = 0 term = 0 expt = k - one for p in prime_range(1,prec+1): int_p = int(p) ppow = int_p mult = p**expt term = mult*mult last = mult while (ppow <= prec): ind = ppow while (ind <= prec): val[ind] = val[ind] * (term - one) // (last - one) ind += ppow ppow *= int_p last = term term *= mult val[0] = [-bernoulli(k) / (2*k)] return R(val, precision)
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, 79, 8, 512, 291, 275, 334, 13685, 4166, 358, 6039, 13382, 316, 326, 652, 271, 47, 8, 18, 225, 13743, 1807, 279, 23909, 2477, 434, 3661, 326, 4886, 6330, 30, 732, 5055, 271, 41, 67, 79, 273, 1866, 397, 521, 1364, 67, 82, 7299, 12, 82, 16, 79, 17, 21, 13, 1043, 66, 82, 8, 18, 4494, 16, 732, 23772, 2537, 3671, 777, 326, 271, 64, 13201, 12, 82, 16, 79, 17, 21, 21877, 27504, 715, 16, 487, 271, 64, 13201, 8, 353, 3309, 28884, 18, 225, 12943, 30, 417, 1493, 5456, 6895, 3571, 13382, 1493, 1661, 13258, 3571, 1475, 1493, 279, 9221, 316, 1492, 605, 67, 79, 19, 12, 22, 14, 79, 13, 353, 9848, 1523, 225, 5675, 8900, 11386, 30, 272, 410, 30, 425, 291, 275, 334, 13685, 67, 10222, 67, 85, 2749, 12, 22, 16, 25, 13, 300, 21, 19, 3247, 397, 1043, 397, 890, 14, 85, 66, 22, 397, 1059, 14, 85, 66, 23, 397, 2371, 14, 85, 66, 24, 397, 531, 12, 85, 66, 25, 13, 272, 410, 30, 425, 291, 275, 334, 13685, 67, 10222, 67, 85, 2749, 12, 22, 16, 20, 13, 531, 12, 85, 66, 20, 13, 225, 12790, 14006, 30, 1493, 678, 16607, 301, 7780, 267, 30, 2282, 4471, 1493, 385, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 79, 8, 512, 291, 275, 334, 13685, 4166, 358, 6039, 13382, 316, 326, 652, 271, 47, 8, 18, 225, 13743, 1807, 279, 23909, 2477, 434, 3661, 326, 4886, 6330, 30, 732, 5055, 271, 41, 67, 79, 273, 1866, 397, 521, 1364, 67, 82, 7299, 12, 82, 16, 79, 17, 21, 13, 1043, 66, 82, 8, 18, 4494, 16, 732, 23772, 2537, 3671, 777, 326, 271, 64, 13201, 12, 82, 16, 79, 17, 21, 21877, 27504, 715, 16, 487, 271, 64, 13201, 8, 2 ]
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).readlines(): match = info_regex.match(line) if not match: logger.warning("Failed to match line: %s"%line) continue else: mgd = match.groupdict() for key, value in mgd.iteritems(): if value: self.metadata[key] = value if len(self.metadata['perms']) == 3: self.metadata['perms'] = "0%s" % \ (self.metadata['perms'])
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, 3459, 13, 309, 871, 18, 3459, 422, 296, 1376, 18, 2902, 4278, 309, 486, 365, 18, 1376, 2902, 30, 365, 18, 1376, 2902, 273, 3167, 7740, 12, 28900, 16, 1053, 13, 365, 18, 1376, 2902, 18, 3259, 1133, 12, 2575, 13, 1327, 871, 18, 3459, 316, 306, 4278, 1376, 2187, 296, 1376, 3546, 30, 364, 980, 316, 1696, 12, 28900, 2934, 896, 3548, 13332, 845, 273, 1123, 67, 7584, 18, 1916, 12, 1369, 13, 309, 486, 845, 30, 1194, 18, 8551, 2932, 2925, 358, 845, 980, 30, 738, 87, 28385, 1369, 13, 1324, 469, 30, 11174, 72, 273, 845, 18, 1655, 1576, 1435, 364, 498, 16, 460, 316, 11174, 72, 18, 2165, 3319, 13332, 309, 460, 30, 365, 18, 4165, 63, 856, 65, 273, 460, 309, 562, 12, 2890, 18, 4165, 3292, 15969, 19486, 422, 890, 30, 365, 18, 4165, 3292, 15969, 3546, 273, 315, 20, 9, 87, 6, 738, 521, 261, 2890, 18, 4165, 3292, 15969, 19486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 3459, 13, 309, 871, 18, 3459, 422, 296, 1376, 18, 2902, 4278, 309, 486, 365, 18, 1376, 2902, 30, 365, 18, 1376, 2902, 273, 3167, 7740, 12, 28900, 16, 1053, 13, 365, 18, 1376, 2902, 18, 3259, 1133, 12, 2575, 13, 1327, 871, 18, 3459, 316, 306, 4278, 1376, 2187, 296, 1376, 3546, 30, 364, 980, 316, 1696, 12, 28900, 2934, 896, 3548, 13332, 845, 273, 1123, 67, 7584, 18, 1916, 12, 1369, 13, 309, 486, 845, 30, 1194, 18, 8551, 2932, 2925, 2 ]
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, 3752, 273, 365, 18, 2630, 3183, 18, 588, 2134, 10656, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 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, 3752, 273, 365, 18, 2630, 3183, 18, 588, 2134, 10656, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 23203, 12, 8960, 8526, 96, 16, 1021, 8, 2225, 16, 88, 16, 283, 18, 45, 13, 325, 273, 268, 309, 312, 30, 325, 273, 312, 18, 1655, 12, 21, 13, 327, 11527, 18, 6889, 12, 1349, 18, 6406, 10756, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 23203, 12, 8960, 8526, 96, 16, 1021, 8, 2225, 16, 88, 16, 283, 18, 45, 13, 325, 273, 268, 309, 312, 30, 325, 273, 312, 18, 1655, 12, 21, 13, 327, 11527, 18, 6889, 12, 1349, 18, 6406, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 namespace should be processed when using a SQL dump # default to -1 which means all namespaces will be processed namespace = -1 # at which redirect shall we start searching double redirects again (only with dump) # default to -1 which means all redirects are checked restart = -1 for arg in sys.argv[1:]: arg = wikipedia.argHandler(arg) if arg: if arg == 'double': action = 'double' elif arg == 'broken': action = 'broken' elif arg.startswith('-sql'): if len(arg) == 4: sqlfilename = wikipedia.input(u'Please enter the SQL dump\'s filename: ') else: sqlfilename = arg[5:] import sqldump source = sqlfilename elif arg.startswith('-namespace:'): namespace = int(arg[11:]) elif arg.startswith('-restart:'): restart = int(arg[9:]) else: print 'Unknown argument: %s' % arg if action == 'double': # get summary text wikipedia.setAction(wikipedia.translate(wikipedia.getSite(), msg_double)) fix_double_redirects(source) elif action == 'broken': delete_broken_redirects(source) else: wikipedia.output(__doc__, 'utf-8')
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, 1410, 336, 18423, 10626, 628, 261, 73, 2927, 599, 358, 1262, 326, 18388, 468, 4582, 1363, 628, 326, 8429, 9050, 16, 326, 1544, 434, 279, 1191, 1847, 4657, 585, 13, 1084, 273, 599, 468, 21918, 1981, 1410, 506, 5204, 1347, 1450, 279, 3063, 4657, 468, 805, 358, 300, 21, 1492, 4696, 777, 7728, 903, 506, 5204, 1981, 273, 300, 21, 468, 622, 1492, 3136, 24315, 732, 787, 15300, 1645, 18064, 3382, 261, 3700, 598, 4657, 13, 468, 805, 358, 300, 21, 1492, 4696, 777, 18064, 854, 5950, 7870, 273, 300, 21, 364, 1501, 316, 2589, 18, 19485, 63, 21, 30, 14542, 1501, 273, 21137, 18, 3175, 1503, 12, 3175, 13, 309, 1501, 30, 309, 1501, 422, 296, 9056, 4278, 1301, 273, 296, 9056, 11, 1327, 1501, 422, 296, 70, 19906, 4278, 1301, 273, 296, 70, 19906, 11, 1327, 1501, 18, 17514, 1918, 2668, 17, 4669, 11, 4672, 309, 562, 12, 3175, 13, 422, 1059, 30, 1847, 3459, 273, 21137, 18, 2630, 12, 89, 11, 8496, 6103, 326, 3063, 4657, 3730, 87, 1544, 30, 8624, 469, 30, 1847, 3459, 273, 1501, 63, 25, 26894, 1930, 1847, 8481, 1084, 273, 1847, 3459, 1327, 1501, 18, 17514, 1918, 2668, 17, 4937, 2497, 4672, 1981, 273, 509, 12, 3175, 63, 2499, 30, 5717, 1327, 1501, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 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, 1410, 336, 18423, 10626, 628, 261, 73, 2927, 599, 358, 1262, 326, 18388, 468, 4582, 1363, 628, 326, 8429, 9050, 16, 326, 1544, 434, 279, 1191, 1847, 4657, 585, 13, 1084, 273, 599, 468, 21918, 1981, 1410, 506, 5204, 1347, 1450, 279, 3063, 4657, 468, 805, 358, 300, 21, 1492, 4696, 777, 7728, 903, 506, 5204, 1981, 273, 300, 21, 468, 622, 1492, 3136, 24315, 732, 787, 15300, 1645, 18064, 3382, 261, 3700, 598, 4657, 13, 468, 805, 358, 300, 21, 1492, 4696, 777, 2 ]
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 [error] options['uri'] = reference if options.has_key('target'): block = states.escape2null(options['target']).splitlines() block = [line for line in block] target_type, data = state.parse_target(block, block_text, lineno) if target_type == 'refuri': node_list = nodes.reference(refuri=data) elif target_type == 'refname': node_list = nodes.reference( refname=data, name=whitespace_normalize_name(options['target'])) state.document.note_refname(node_list) else: # malformed target node_list = [data] # data is a system message del options['target'] else: node_list = [] node_list.append(nodes.image(block_text, **options)) return node_list
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, 2668, 64, 82, 26112, 309, 2114, 18, 4720, 2668, 8624, 480, 300, 21, 30, 555, 273, 919, 67, 9149, 18, 266, 7988, 18, 1636, 12, 296, 2040, 3699, 1914, 7983, 1093, 16, 2199, 18, 13107, 67, 2629, 12, 2629, 67, 955, 16, 1203, 67, 955, 3631, 980, 33, 17782, 13, 327, 306, 1636, 65, 702, 3292, 1650, 3546, 273, 2114, 309, 702, 18, 5332, 67, 856, 2668, 3299, 11, 4672, 1203, 273, 5493, 18, 6939, 22, 2011, 12, 2116, 3292, 3299, 3546, 2934, 4939, 3548, 1435, 1203, 273, 306, 1369, 364, 980, 316, 1203, 65, 1018, 67, 723, 16, 501, 273, 919, 18, 2670, 67, 3299, 12, 2629, 16, 1203, 67, 955, 16, 7586, 13, 309, 1018, 67, 723, 422, 296, 1734, 1650, 4278, 756, 67, 1098, 273, 2199, 18, 6180, 12, 1734, 1650, 33, 892, 13, 1327, 1018, 67, 723, 422, 296, 1734, 529, 4278, 756, 67, 1098, 273, 2199, 18, 6180, 12, 1278, 529, 33, 892, 16, 508, 33, 18777, 67, 12237, 67, 529, 12, 2116, 3292, 3299, 3546, 3719, 919, 18, 5457, 18, 7652, 67, 1734, 529, 12, 2159, 67, 1098, 13, 469, 30, 21821, 468, 17458, 1018, 756, 67, 1098, 273, 306, 892, 65, 1850, 468, 501, 353, 279, 2619, 883, 1464, 702, 3292, 3299, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2668, 64, 82, 26112, 309, 2114, 18, 4720, 2668, 8624, 480, 300, 21, 30, 555, 273, 919, 67, 9149, 18, 266, 7988, 18, 1636, 12, 296, 2040, 3699, 1914, 7983, 1093, 16, 2199, 18, 13107, 67, 2629, 12, 2629, 67, 955, 16, 1203, 67, 955, 3631, 980, 33, 17782, 13, 327, 306, 1636, 65, 702, 3292, 1650, 3546, 273, 2114, 309, 702, 18, 5332, 67, 856, 2668, 3299, 11, 4672, 1203, 273, 5493, 18, 6939, 22, 2011, 12, 2116, 3292, 3299, 2 ]
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/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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 9681, 734, 14965, 18, 5664, 18, 2278, 1930, 3956, 1719, 273, 365, 18, 588, 2278, 921, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 9681, 734, 14965, 18, 5664, 18, 2278, 1930, 3956, 1719, 273, 365, 18, 588, 2278, 921, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.control.itemText(i)) + (i < self.control.count()-1 and ", " or ".") print "unable to set %s to value '%s'. Possible values are %s" % (self.control, value, values) else: self.control.setCurrentIndex(value)
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, 2890, 18, 7098, 18, 1883, 1435, 4672, 309, 365, 18, 1125, 559, 12, 701, 12, 2890, 18, 7098, 18, 1726, 1528, 12, 77, 20349, 422, 460, 30, 365, 18, 7098, 18, 542, 3935, 1016, 12, 77, 13, 327, 924, 273, 1408, 364, 277, 316, 1048, 12, 2890, 18, 7098, 18, 1883, 1435, 4672, 924, 1011, 609, 12, 2890, 18, 7098, 18, 1726, 1528, 12, 77, 3719, 397, 261, 77, 411, 365, 18, 7098, 18, 1883, 1435, 17, 21, 471, 3104, 315, 578, 4585, 13, 1172, 315, 18828, 358, 444, 738, 87, 358, 460, 1995, 87, 10332, 25433, 924, 854, 738, 87, 6, 738, 261, 2890, 18, 7098, 16, 460, 16, 924, 13, 469, 30, 365, 18, 7098, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 2890, 18, 7098, 18, 1883, 1435, 4672, 309, 365, 18, 1125, 559, 12, 701, 12, 2890, 18, 7098, 18, 1726, 1528, 12, 77, 20349, 422, 460, 30, 365, 18, 7098, 18, 542, 3935, 1016, 12, 77, 13, 327, 924, 273, 1408, 364, 277, 316, 1048, 12, 2890, 18, 7098, 18, 1883, 1435, 4672, 924, 1011, 609, 12, 2890, 18, 7098, 18, 1726, 1528, 12, 77, 3719, 397, 261, 77, 411, 365, 18, 7098, 18, 1883, 1435, 17, 21, 471, 3104, 315, 2 ]
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 return dbs def connectDLS(self): """ open a connection with the DLS server Arguments: none Return: DLS connection """ try: dlsapi = dlsClient.getDlsApi(dls_type = self.args["DLSType"], dls_endpoint = self.args["DLSAddress"]) except dlsApi.DlsApiError, inst: logging.error("Error: Cannot contact DLS: %s" % str(inst)) raise return dlsapi def getDatasetContents(self, path): """ get contents of a dataset Arguments: path -- dataset name Return: list of files organized by fileblock """ blockList = [] try: processed = DbsProcessedDataset(datasetPathName = path) blockList = self.dbsApi.getDatasetContents(processed) except Exception, ex: logging.error("DBS error (exception: %s)" % ex) connected = False while not connected: try: self.dbsApi = self.connectDBS() except Exception, ex: logging.error( \ " failing to reconnect to DBS: (exception: %s)" % ex) logging.error( \ " trying again in %s seconds" % self.delayDBS) time.sleep(self.delayDBS) else: connected = True logging.error(" reconnected to DBS!") try: processed = DbsProcessedDataset(datasetPathName = path) blockList = self.dbsApi.getDatasetContents(processed) except Exception, ex: logging.error("DBS error (exception: %s)" % ex) return [] if blockList is None: logging.info("Empty file block for dataset %s" % path) return [] return blockList
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, 3709, 548, 1493, 326, 508, 434, 326, 3709, 225, 2000, 30, 225, 666, 434, 10384, 261, 529, 16, 1467, 16, 768, 1768, 548, 13, 364, 777, 1390, 316, 3709, 225, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 30, 225, 666, 434, 10384, 261, 529, 16, 1467, 16, 768, 1768, 548, 13, 364, 777, 1390, 316, 3709, 225, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 59, 5858, 3719, 364, 272, 7260, 316, 365, 16186, 4720, 67, 816, 564, 12, 1945, 18, 588, 67, 10705, 1435, 4672, 2824, 1053, 309, 365, 18, 5668, 30, 365, 18, 5668, 18, 542, 67, 9216, 12, 7036, 13, 365, 18, 18356, 2668, 816, 564, 17, 8109, 2187, 272, 7260, 16, 599, 13, 365, 18, 5688, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0 ]
[ 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, 59, 5858, 3719, 364, 272, 7260, 316, 365, 16186, 4720, 67, 816, 564, 12, 1945, 18, 588, 67, 10705, 1435, 4672, 2824, 1053, 309, 365, 18, 5668, 30, 365, 18, 5668, 18, 542, 67, 9216, 12, 7036, 13, 365, 18, 18356, 2668, 816, 564, 17, 8109, 2187, 272, 7260, 16, 599, 13, 365, 18, 5688, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1671, 2589, 18, 11241, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 1671, 2589, 18, 11241, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for 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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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 619, 30, 63, 92, 6487, 1257, 13, 469, 30, 365, 18, 1973, 273, 1257, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 619, 30, 63, 92, 6487, 1257, 13, 469, 30, 365, 18, 1973, 273, 1257, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 11773, 351, 67, 84, 551, 13, 2934, 3072, 468, 8638, 273, 283, 18, 11100, 12, 86, 8314, 87, 12174, 12174, 14, 3816, 521, 82, 64, 86, 9, 87, 20, 17, 29, 18, 27824, 31, 16, 3730, 31670, 10936, 6943, 67, 29885, 18206, 6943, 5333, 31428, 4713, 13, 16004, 12174, 14, 19306, 64, 14, 24718, 2506, 738, 13768, 2934, 3072, 16, 468, 1592, 3065, 16, 27403, 293, 551, 16, 2535, 358, 6828, 19181, 18, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 11773, 351, 67, 84, 551, 13, 2934, 3072, 468, 8638, 273, 283, 18, 11100, 12, 86, 8314, 87, 12174, 12174, 14, 3816, 521, 82, 64, 86, 9, 87, 20, 17, 29, 18, 27824, 31, 16, 3730, 31670, 10936, 6943, 67, 29885, 18206, 6943, 5333, 31428, 4713, 13, 16004, 12174, 14, 19306, 64, 14, 24718, 2506, 738, 13768, 2934, 3072, 16, 468, 1592, 3065, 16, 27403, 293, 551, 16, 2535, 358, 6828, 19181, 18, 262, 30, 2, -100, -100, -100, -100, -100, -100 ]
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, 26240, 14462, 67, 338,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 26240, 14462, 67, 338, 412, 3546, 30, 1002, 13167, 2932, 8496, 6103, 392, 21285, 5721, 1199, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, connection_id=None)
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, 691, 30, 336, 67, 11734, 67, 23023, 67, 10169, 9275, 87, 15529, 87, 15529, 87, 15529, 87, 2225, 738, 521, 261, 2564, 16, 1756, 16, 1319, 67, 529, 16, 7966, 67, 350, 3719, 775, 30, 8871, 273, 2383, 5786, 12, 2564, 33, 2564, 16, 1756, 33, 474, 12, 655, 3631, 2063, 33, 1966, 67, 529, 16, 729, 33, 1966, 67, 896, 67, 1355, 16, 19093, 33, 1966, 67, 896, 67, 5466, 16, 1081, 67, 350, 33, 474, 12, 11734, 67, 350, 3631, 1081, 67, 723, 33, 7036, 16, 1459, 67, 350, 33, 7036, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 691, 30, 336, 67, 11734, 67, 23023, 67, 10169, 9275, 87, 15529, 87, 15529, 87, 15529, 87, 2225, 738, 521, 261, 2564, 16, 1756, 16, 1319, 67, 529, 16, 7966, 67, 350, 3719, 775, 30, 8871, 273, 2383, 5786, 12, 2564, 33, 2564, 16, 1756, 33, 474, 12, 655, 3631, 2063, 33, 1966, 67, 529, 16, 729, 33, 1966, 67, 896, 67, 1355, 16, 19093, 33, 1966, 67, 896, 67, 5466, 16, 1081, 67, 350, 33, 474, 12, 11734, 67, 350, 3631, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def 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=detail.items() else: detail=db.cacheDetail() detail=map(lambda d: (("%s.%s" % (d[0].__module__, d[0].__name__)), d[1]), detail.items()) detail.sort() return detail def cache_extreme_detail(self): try: db=self._p_jar.db() except: detail=[] rc=sys.getrefcount db=Globals.Bobobase._jar.db for oid, ob in Globals.Bobobase._jar.cache.items(): id=oid if hasattr(ob, '__class__'): if hasattr(ob,'__dict__'): d=ob.__dict__ if d.has_key('id'): id="%s (%s)" % (oid, d['id']) elif d.has_key('__name__'): id="%s (%s)" % (oid, d['__name__']) ob=ob.__class__ decor='' else: decor=' class' detail.append({ 'oid': id, 'klass': "%s.%s%s" % (ob.__module__, ob.__name__, decor), 'rc': rc(ob)-4, 'references': db.objectReferencesIn(oid), })
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 (name, count): '%6d %s' % (count, name), detail), '\n') else:
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]=1 detail=detail.items() else: # ZODB 3 detail=db.cacheDetail() detail=map(lambda d: (("%s.%s" % (d[0].__module__, d[0].__name__)), d[1]), detail.items())
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, 18, 38, 947, 947, 448, 6315, 11930, 18, 2493, 18, 3319, 13332, 309, 3859, 12, 947, 16, 4940, 1106, 7250, 4672, 3768, 33, 947, 16186, 1106, 972, 4839, 2218, 11, 469, 30, 4839, 2218, 667, 11, 276, 11613, 87, 7866, 87, 9, 87, 6, 738, 261, 947, 16186, 2978, 972, 578, 10226, 3768, 16186, 529, 972, 16, 4839, 13, 309, 7664, 18, 5332, 67, 856, 12, 71, 4672, 7664, 63, 71, 65, 33, 8992, 63, 71, 3737, 21, 469, 30, 7664, 63, 71, 65, 33, 21, 7664, 33, 8992, 18, 3319, 1435, 469, 30, 468, 2285, 19786, 890, 7664, 33, 1966, 18, 2493, 6109, 1435, 7664, 33, 1458, 12, 14661, 302, 30, 261, 27188, 87, 7866, 87, 6, 738, 261, 72, 63, 20, 8009, 972, 2978, 972, 16, 302, 63, 20, 8009, 972, 529, 972, 13, 3631, 302, 63, 21, 65, 3631, 7664, 18, 3319, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 18, 38, 947, 947, 448, 6315, 11930, 18, 2493, 18, 3319, 13332, 309, 3859, 12, 947, 16, 4940, 1106, 7250, 4672, 3768, 33, 947, 16186, 1106, 972, 4839, 2218, 11, 469, 30, 4839, 2218, 667, 11, 276, 11613, 87, 7866, 87, 9, 87, 6, 738, 261, 947, 16186, 2978, 972, 578, 10226, 3768, 16186, 529, 972, 16, 4839, 13, 309, 7664, 18, 5332, 67, 856, 12, 71, 4672, 7664, 63, 71, 65, 33, 8992, 63, 71, 3737, 21, 469, 30, 7664, 63, 71, 2 ]
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, 309, 761, 723, 422, 296, 14872, 4278, 365, 18, 4500, 12148, 16166, 12, 1726, 13, 469, 30, 365, 18, 4500, 7544, 16166, 12, 1726, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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365, 18, 82, 23735, 71, 273, 1053, 761, 723, 273, 761, 18, 3896, 1119, 309, 761, 723, 422, 296, 14872, 4278, 365, 18, 4500, 12148, 16166, 12, 1726, 13, 469, 30, 365, 18, 4500, 7544, 16166, 12, 1726, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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/tmp.egg" + " " + egg) oscmd(EGG2BAM + " -o " + bam + " " + PREFIX + "/tmp/tmp.egg") else: oscmd(EGG2BAM + " -pr " + preconv + " -o " + bam + " " + egg) MakeDirectory(PREFIX+"/models") MakeDirectory(PREFIX+"/models/audio") MakeDirectory(PREFIX+"/models/audio/sfx") MakeDirectory(PREFIX+"/models/icons") MakeDirectory(PREFIX+"/models/maps") MakeDirectory(PREFIX+"/models/misc") MakeDirectory(PREFIX+"/models/gui") CopyAllFiles(PREFIX+"/models/audio/sfx/", "dmodels/src/audio/sfx/", ".wav") CopyAllFiles(PREFIX+"/models/icons/", "dmodels/src/icons/", ".gif") CopyAllFiles(PREFIX+"/models/", "models/", ".egg") CopyAllFiles(PREFIX+"/models/", "models/", ".bam") CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".jpg") CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".png") CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".rgb") CopyAllFiles(PREFIX+"/models/maps/", "models/maps/", ".rgba") CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".jpg") CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".png") CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".rgb") CopyAllFiles(PREFIX+"/models/maps/", "dmodels/src/maps/", ".rgba") CompileBAM("../=", PREFIX+"/models/gui/dialog_box_gui.bam", "dmodels/src/gui/dialog_box_gui.flt") CompileBAM("../=", PREFIX+"/models/misc/camera.bam", "dmodels/src/misc/camera.flt") CompileBAM("../=", PREFIX+"/models/misc/fade.bam", "dmodels/src/misc/fade.flt") CompileBAM("../=", PREFIX+"/models/misc/fade_sphere.bam", "dmodels/src/misc/fade_sphere.flt") CompileBAM("../=", PREFIX+"/models/misc/gridBack.bam", "dmodels/src/misc/gridBack.flt") CompileBAM("../=", PREFIX+"/models/misc/iris.bam", "dmodels/src/misc/iris.flt") CompileBAM("../=", PREFIX+"/models/misc/lilsmiley.bam", "dmodels/src/misc/lilsmiley.egg") CompileBAM("../=", PREFIX+"/models/misc/objectHandles.bam", "dmodels/src/misc/objectHandles.flt") CompileBAM("../=", PREFIX+"/models/misc/rgbCube.bam", "dmodels/src/misc/rgbCube.flt") CompileBAM("../=", PREFIX+"/models/misc/smiley.bam", "dmodels/src/misc/smiley.egg") CompileBAM("../=", PREFIX+"/models/misc/sphere.bam", "dmodels/src/misc/sphere.flt") CompileBAM("../=", PREFIX+"/models/misc/xyzAxis.bam", "dmodels/src/misc/xyzAxis.flt") CompileBAM("../=", PREFIX+"/models/misc/Pointlight.bam", "dmodels/src/misc/Pointlight.egg") CompileBAM("../=", PREFIX+"/models/misc/Dirlight.bam", "dmodels/src/misc/Dirlight.egg") CompileBAM("../=", PREFIX+"/models/misc/Spotlight.bam", "dmodels/src/misc/Spotlight.egg")
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/tmp.egg" + " " + egg) oscmd(EGG2BAM + " -o " + bam + " " + PREFIX + "/tmp/tmp.egg") else: oscmd(EGG2BAM + " -pr " + preconv + " -o " + bam + " " + egg)
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, 19, 4757, 19, 23171, 22, 11477, 6, 309, 261, 9499, 18, 9898, 422, 315, 8082, 1578, 6, 4672, 478, 12050, 22, 41, 19491, 33, 42, 12050, 22, 41, 19491, 18, 2079, 2932, 19, 15937, 1695, 7923, 9078, 18, 14880, 6, 512, 19491, 22, 38, 2192, 33, 41, 19491, 22, 38, 2192, 18, 2079, 2932, 19, 15937, 1695, 7923, 9078, 18, 14880, 6, 309, 261, 1498, 3816, 11477, 6487, 25144, 3719, 30, 309, 261, 23171, 18919, 24, 26894, 631, 9654, 31864, 6, 4672, 31476, 1264, 12, 42, 12050, 22, 41, 19491, 397, 315, 300, 683, 315, 397, 675, 4896, 397, 315, 300, 83, 315, 397, 17154, 397, 2206, 5645, 19, 5645, 18, 23171, 6, 397, 315, 315, 397, 25144, 13, 31476, 1264, 12, 41, 19491, 22, 38, 2192, 397, 315, 300, 83, 315, 397, 11400, 397, 315, 315, 397, 17154, 397, 2206, 5645, 19, 5645, 18, 23171, 7923, 469, 30, 31476, 1264, 12, 41, 19491, 22, 38, 2192, 397, 315, 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, 19491, 273, 17154, 9078, 19, 4757, 19, 31864, 22, 23171, 6, 512, 19491, 22, 38, 2192, 273, 17154, 9078, 19, 4757, 19, 23171, 22, 11477, 6, 309, 261, 9499, 18, 9898, 422, 315, 8082, 1578, 6, 4672, 478, 12050, 22, 41, 19491, 33, 42, 12050, 22, 41, 19491, 18, 2079, 2932, 19, 15937, 1695, 7923, 9078, 18, 14880, 6, 512, 19491, 22, 38, 2192, 33, 41, 19491, 22, 38, 2192, 18, 2079, 2932, 19, 15937, 1695, 7923, 9078, 18, 14880, 6, 309, 261, 1498, 3816, 11477, 6487, 25144, 3719, 30, 309, 261, 23171, 18919, 24, 26894, 631, 9654, 31864, 6, 4672, 31476, 1264, 2 ]
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, 327, 400, 6903, 273, 400, 3292, 620, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 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, 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, 327, 400, 6903, 273, 400, 3292, 620, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 273, 5235, 1435, 365, 18, 4646, 273, 2748, 1952, 12, 2890, 16, 365, 18, 5697, 13, 365, 18, 26448, 273, 599, 365, 6315, 13929, 1528, 1435, 2, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 273, 5235, 1435, 365, 18, 4646, 273, 2748, 1952, 12, 2890, 16, 365, 18, 5697, 13, 365, 18, 26448, 273, 599, 365, 6315, 13929, 1528, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for 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.splitext(os.path.normpath(os.path.join(os.environ["WORKSPACE"], d, Target + '_' + ToolChain, Arch, ModuleFile))) DestDir = filename FileList = glob.glob(os.path.normpath(os.path.join(DestDir, 'makefile'))) FileNum = len(FileList) if FileNum > 0: self.SameTypeFileInDir(FileNum, 'makefile', DestDir) p = Popen(["nmake", "/nologo", "-f", FileList[0], self.Args], env=os.environ, cwd=os.path.dirname(FileList[0])) p.communicate() if p.returncode != None: self.isexit(p.returncode) else: self.isexit(1)
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, 22722, 70, 18, 3116, 63, 12269, 63, 20, 65, 8009, 8201, 4254, 18, 2372, 13332, 302, 273, 11810, 18, 1447, 2853, 469, 30, 364, 11810, 316, 22722, 70, 18, 3116, 63, 12269, 8009, 8201, 4254, 18, 2372, 13332, 302, 273, 11810, 18, 1447, 2853, 309, 5924, 812, 422, 599, 30, 28510, 1621, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 28684, 9614, 10566, 6616, 6, 6487, 302, 16, 5916, 397, 4427, 397, 13288, 3893, 3719, 469, 30, 261, 3459, 16, 1110, 13, 273, 1140, 18, 803, 18, 4939, 408, 12, 538, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 28684, 9614, 10566, 6616, 6, 6487, 302, 16, 5916, 397, 4427, 397, 13288, 3893, 16, 16959, 16, 5924, 812, 20349, 28510, 1621, 273, 1544, 1387, 682, 273, 4715, 18, 10581, 12, 538, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 9378, 1621, 16, 296, 6540, 768, 11, 20349, 1387, 2578, 273, 562, 12, 26098, 13, 309, 1387, 2578, 405, 374, 30, 365, 18, 8650, 559, 812, 382, 1621, 12, 812, 2578, 16, 296, 6540, 768, 2187, 28510, 1621, 13, 293, 273, 14339, 3816, 6, 82, 6540, 3113, 2206, 82, 3966, 83, 3113, 3701, 74, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 22722, 70, 18, 3116, 63, 12269, 63, 20, 65, 8009, 8201, 4254, 18, 2372, 13332, 302, 273, 11810, 18, 1447, 2853, 469, 30, 364, 11810, 316, 22722, 70, 18, 3116, 63, 12269, 8009, 8201, 4254, 18, 2372, 13332, 302, 273, 11810, 18, 1447, 2853, 309, 5924, 812, 422, 599, 30, 28510, 1621, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 28684, 9614, 10566, 6616, 6, 6487, 302, 16, 5916, 397, 4427, 397, 13288, 3893, 3719, 469, 2 ]
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_().IsPerfectGroup().bool()
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, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 12, 3292, 12, 21, 16, 22, 16, 23, 21433, 24, 16, 25, 13, 2187, 7747, 21, 16, 22, 16, 23, 16, 24, 16, 25, 2506, 5717, 272, 410, 30, 611, 18, 291, 67, 19825, 386, 1435, 1083, 272, 410, 30, 611, 273, 13813, 9245, 1114, 12, 3292, 12, 21, 16, 22, 16, 23, 21433, 24, 16, 25, 2506, 5717, 272, 410, 30, 611, 18, 291, 67, 19825, 386, 1435, 1083, 3536, 327, 365, 6315, 14048, 67, 7675, 2520, 22016, 386, 1114, 7675, 6430, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 12, 3292, 12, 21, 16, 22, 16, 23, 21433, 24, 16, 25, 13, 2187, 7747, 21, 16, 22, 16, 23, 16, 24, 16, 25, 2506, 5717, 272, 410, 30, 611, 18, 291, 67, 19825, 386, 1435, 1083, 272, 410, 30, 611, 273, 13813, 9245, 1114, 12, 3292, 12, 21, 16, 22, 16, 23, 21433, 24, 16, 25, 2506, 5717, 272, 410, 30, 611, 18, 291, 67, 19825, 386, 1435, 1083, 3536, 327, 365, 6315, 2 ]
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 scaling self.fScaling1D = 1 self.scale1D(state) else: # [gjeon] uniform scaling self.fScaling3D = 1 self.scale3D(state) else: if type == 'post' and not self.currEditTypes & EDIT_TYPE_UNMOVABLE: self.xlate1D(state) elif type == 'disc' and not self.currEditTypes & EDIT_TYPE_UNMOVABLE: self.xlate2D(state) elif type == 'ring' and not self.currEditTypes & EDIT_TYPE_UNROTATABLE: self.rotate1D(state) # No widget interaction, determine free manip mode elif self.fFreeManip: # If we've been scaling and changed modes, reset object handles if 0 and (self.fScaling1D or self.fScaling3D) and (not base.direct.fAlt): if hasattr(base.direct, 'widget'): base.direct.widget.transferObjectHandleScale() else: self.objectHandles.transferObjectHandlesScale()
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, 2019, 13, 469, 30, 468, 11103, 5530, 14172, 309, 365, 18, 13364, 30, 618, 273, 365, 18, 13364, 63, 22, 26894, 309, 1026, 18, 7205, 18, 74, 3367, 471, 486, 365, 18, 17016, 4666, 2016, 473, 21307, 67, 2399, 67, 2124, 2312, 1013, 2782, 30, 309, 618, 422, 296, 2767, 4278, 468, 306, 75, 78, 73, 265, 65, 1661, 17, 24120, 10612, 365, 18, 74, 8471, 21, 40, 273, 404, 365, 18, 5864, 21, 40, 12, 2019, 13, 469, 30, 468, 306, 75, 78, 73, 265, 65, 10823, 10612, 365, 18, 74, 8471, 23, 40, 273, 404, 365, 18, 5864, 23, 40, 12, 2019, 13, 469, 30, 309, 618, 422, 296, 2767, 11, 471, 486, 365, 18, 17016, 4666, 2016, 473, 21307, 67, 2399, 67, 2124, 5980, 58, 2782, 30, 365, 18, 18402, 340, 21, 40, 12, 2019, 13, 1327, 618, 422, 296, 2251, 71, 11, 471, 486, 365, 18, 17016, 4666, 2016, 473, 21307, 67, 2399, 67, 2124, 5980, 58, 2782, 30, 365, 18, 18402, 340, 22, 40, 12, 2019, 13, 1327, 618, 422, 296, 8022, 11, 471, 486, 365, 18, 17016, 4666, 2016, 473, 21307, 67, 2399, 67, 2124, 1457, 56, 789, 2782, 30, 365, 18, 20342, 21, 40, 12, 2019, 13, 468, 2631, 3604, 13581, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2019, 13, 469, 30, 468, 11103, 5530, 14172, 309, 365, 18, 13364, 30, 618, 273, 365, 18, 13364, 63, 22, 26894, 309, 1026, 18, 7205, 18, 74, 3367, 471, 486, 365, 18, 17016, 4666, 2016, 473, 21307, 67, 2399, 67, 2124, 2312, 1013, 2782, 30, 309, 618, 422, 296, 2767, 4278, 468, 306, 75, 78, 73, 265, 65, 1661, 17, 24120, 10612, 365, 18, 74, 8471, 21, 40, 273, 404, 365, 18, 5864, 21, 40, 12, 2019, 13, 469, 30, 2 ]
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, lineHeight * 1.3)
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, 4834, 273, 16002, 18, 588, 4059, 1435, 5689, 273, 16002, 18, 588, 10044, 1435, 980, 2686, 273, 16002, 18, 588, 1670, 2686, 1435, 818, 5763, 273, 365, 3292, 2107, 5763, 3546, 1835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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4834, 273, 16002, 18, 588, 4059, 1435, 5689, 273, 16002, 18, 588, 10044, 1435, 980, 2686, 273, 16002, 18, 588, 1670, 2686, 1435, 818, 5763, 273, 365, 3292, 2107, 5763, 3546, 1835, 273, 365, 3292, 2819, 3546, 365, 18, 2906, 18, 542, 12, 20, 18, 20, 16, 374, 18, 20, 16, 300, 20, 18, 23, 380, 980, 2686, 300, 261, 1369, 2686, 380, 261, 2107, 5763, 300, 404, 20349, 365, 18, 295, 18, 542, 12, 2819, 16, 374, 18, 20, 16, 980, 2686, 380, 2 ]
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( 'getting info about all job flows (this goes back about 2 weeks)') job_flows = emr_conn.describe_jobflows() now = datetime.utcnow() num_running = 0 num_idle = 0 num_done = 0 # a list of tuples of job flow id, name, idle time (as a timedelta) to_terminate = [] for jf in job_flows: # check if job flow is done if hasattr(jf, 'enddatetime'): num_done += 1 # check if job flow is currently running elif jf.steps and not hasattr(jf.steps[-1], 'enddatetime'): num_running += 1 # job flow is idle. how long? else: num_idle += 1 if jf.steps: idle_since = datetime.strptime( jf.steps[-1].enddatetime, ISO8601) else: idle_since = datetime.strptime( jf.creationdatetime, ISO8601) idle_time = now - idle_since # don't care about fractions of a second idle_time = timedelta(idle_time.days, idle_time.seconds) log.debug('Job flow %s (%s) idle for %s' % (jf.jobflowid, jf.name, idle_time)) if idle_time > timedelta(hours=options.max_hours_idle): to_terminate.append( (jf.jobflowid, jf.name, idle_time)) log.info('Job flow statuses: %d running, %d idle, %d done' % (num_running, num_idle, num_done)) terminate_and_notify(emr_conn, to_terminate, options)
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, 3223, 1158, 1775, 6134, 225, 468, 444, 731, 2907, 309, 486, 702, 18, 20380, 30, 613, 67, 869, 67, 3256, 12, 529, 2218, 21387, 4688, 2187, 1198, 33, 2116, 18, 11369, 13, 225, 801, 86, 67, 4646, 273, 7141, 54, 2278, 9709, 12, 3923, 67, 803, 33, 2116, 18, 3923, 67, 803, 2934, 6540, 67, 351, 86, 67, 4646, 1435, 225, 613, 18, 1376, 12, 296, 588, 1787, 1123, 2973, 777, 1719, 22465, 261, 2211, 13998, 1473, 2973, 576, 17314, 2506, 13, 1719, 67, 24190, 273, 6401, 67, 4688, 67, 24190, 12, 351, 86, 67, 4646, 13, 225, 2037, 273, 3314, 18, 17892, 3338, 1435, 225, 818, 67, 8704, 273, 374, 818, 67, 20390, 273, 374, 818, 67, 8734, 273, 374, 468, 279, 666, 434, 10384, 434, 1719, 4693, 612, 16, 508, 16, 12088, 813, 261, 345, 279, 10661, 13, 358, 67, 30017, 273, 5378, 225, 364, 525, 74, 316, 1719, 67, 24190, 30, 468, 866, 309, 1719, 4693, 353, 2731, 309, 3859, 12, 78, 74, 16, 296, 409, 6585, 11, 4672, 818, 67, 8734, 1011, 404, 468, 866, 309, 1719, 4693, 353, 4551, 3549, 1327, 525, 74, 18, 8986, 471, 486, 3859, 12, 78, 74, 18, 8986, 18919, 21, 6487, 296, 409, 6585, 11, 4672, 818, 67, 8704, 1011, 404, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 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, 3223, 1158, 1775, 6134, 225, 468, 444, 731, 2907, 309, 486, 702, 18, 20380, 30, 613, 67, 869, 67, 3256, 12, 529, 2218, 21387, 4688, 2187, 1198, 33, 2116, 18, 11369, 13, 225, 801, 86, 67, 4646, 273, 7141, 54, 2278, 9709, 12, 3923, 67, 803, 33, 2116, 18, 3923, 67, 803, 2934, 6540, 67, 351, 86, 67, 4646, 1435, 225, 613, 18, 1376, 12, 296, 588, 1787, 1123, 2973, 777, 1719, 22465, 261, 2211, 13998, 1473, 2973, 576, 17314, 2506, 13, 1719, 2 ]
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, 3719, 30, 3258, 273, 306, 2232, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3719, 30, 3258, 273, 306, 2232, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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_sensitive (FALSE)
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, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 4479, 3616, 565, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 416, 3616, 3639, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 2378, 3616, 1377, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 4738, 3616, 18, 542, 67, 23481, 261, 21053, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 4479, 3616, 565, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 416, 3616, 3639, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 2378, 3616, 1377, 263, 542, 67, 23481, 261, 21053, 13, 365, 18, 4738, 3616, 18, 542, 67, 23481, 261, 21053, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 11231, 5812, 12, 2890, 18, 84, 18, 4285, 12956, 1854, 9334, 23, 13, 365, 18, 84, 18, 5609, 7675, 6620, 67, 13882, 67, 1973, 273, 404, 365, 18, 84, 18, 2640, 2134, 12956, 2668, 71, 6134, 365, 18, 11231, 5812, 12, 2890, 18, 84, 18, 4285, 12956, 1854, 9334, 24, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 11231, 5812, 12, 2890, 18, 84, 18, 4285, 12956, 1854, 9334, 23, 13, 365, 18, 84, 18, 5609, 7675, 6620, 67, 13882, 67, 1973, 273, 404, 365, 18, 84, 18, 2640, 2134, 12956, 2668, 71, 6134, 365, 18, 11231, 5812, 12, 2890, 18, 84, 18, 4285, 12956, 1854, 9334, 24, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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() except AttributeError: print_compact_traceback( "bug: command %s has no attr"\ "'_f_results_for_caller_and_prepare_for_new_input'.") self.command.mouseClickPoints = [] self.resetVariables() self.glpane.gl_update() return
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, 9366, 67, 1884, 67, 2704, 67, 2630, 1435, 3536, 225, 309, 562, 12, 2890, 18, 3076, 18, 11697, 6563, 5636, 13, 422, 890, 30, 365, 18, 409, 2148, 22, 273, 599, 365, 18, 3076, 18, 20342, 24813, 2148, 1435, 775, 30, 365, 18, 3076, 6315, 74, 67, 4717, 67, 1884, 67, 16140, 67, 464, 67, 9366, 67, 1884, 67, 2704, 67, 2630, 1435, 1335, 6394, 30, 1172, 67, 21038, 67, 21696, 12, 315, 925, 30, 1296, 738, 87, 711, 1158, 1604, 12691, 2491, 67, 74, 67, 4717, 67, 1884, 67, 16140, 67, 464, 67, 9366, 67, 1884, 67, 2704, 67, 2630, 14550, 13, 365, 18, 3076, 18, 11697, 6563, 5636, 273, 5378, 365, 18, 6208, 6158, 1435, 225, 365, 18, 7043, 29009, 18, 7043, 67, 2725, 1435, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 9366, 67, 1884, 67, 2704, 67, 2630, 1435, 3536, 225, 309, 562, 12, 2890, 18, 3076, 18, 11697, 6563, 5636, 13, 422, 890, 30, 365, 18, 409, 2148, 22, 273, 599, 365, 18, 3076, 18, 20342, 24813, 2148, 1435, 775, 30, 365, 18, 3076, 6315, 74, 67, 4717, 67, 1884, 67, 16140, 67, 464, 67, 9366, 67, 1884, 67, 2704, 67, 2630, 1435, 1335, 6394, 30, 1172, 67, 21038, 67, 21696, 12, 315, 925, 30, 1296, 738, 87, 711, 1158, 1604, 12691, 2491, 2 ]
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.__executeReplicaStorageElementOperation: Completely failed to get replicas for LFNs." gLogger.error(errStr,res['Message']) return res failed = res['Value']['Failed'] for lfn,reason in res['Value']['Failed'].items(): gLogger.error("ReplicaManager.__executeReplicaStorageElementOperation: Failed to get replicas for file.", "%s %s" % (lfn,reason)) lfnReplicas = res['Value']['Successful'] pfnDict = {} for lfn,replicas in lfnReplicas.items(): if replicas.has_key(storageElementName): pfnDict[replicas[storageElementName]] = lfn else: errStr = "ReplicaManager.__executeReplicaStorageElementOperation: File does not have replica at supplied Storage Element." gLogger.error(errStr, "%s %s" % (lfn,storageElementName)) failed[lfn] = errStr res = self._executeStorageElementFunction(storageElementName,pfnDict.keys(),method,argsDict) if not res['OK']: gLogger.error("ReplicaManager.__executeReplicaStorageElementOperation: Failed to execute %s StorageElement operation." % method,res['Message']) return res successful = {} for pfn,pfnRes in res['Value']['Successful'].items(): successful[pfnDict[pfn]] = pfnRes for pfn, errorMessage in res['Value']['Failed'].items(): failed[pfnDict[pfn]] = errorMessage resDict = {'Successful':successful,'Failed':failed} return S_OK(resDict)
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, 1046, 1674, 3536, 400, 273, 365, 6315, 8837, 812, 9769, 2083, 12, 80, 4293, 11189, 588, 17248, 6134, 309, 486, 400, 3292, 3141, 3546, 30, 393, 1585, 273, 315, 14222, 1318, 16186, 8837, 14222, 3245, 1046, 2988, 30, 8359, 2357, 2535, 358, 336, 21545, 364, 18803, 10386, 1199, 314, 3328, 18, 1636, 12, 370, 1585, 16, 455, 3292, 1079, 19486, 327, 400, 2535, 273, 400, 3292, 620, 21712, 2925, 3546, 364, 328, 4293, 16, 10579, 316, 400, 3292, 620, 21712, 2925, 29489, 3319, 13332, 314, 3328, 18, 1636, 2932, 14222, 1318, 16186, 8837, 14222, 3245, 1046, 2988, 30, 11175, 358, 336, 21545, 364, 585, 1199, 16, 2213, 87, 738, 87, 6, 738, 261, 80, 4293, 16, 10579, 3719, 328, 4293, 17248, 273, 400, 3292, 620, 21712, 14277, 3546, 293, 4293, 5014, 273, 2618, 364, 328, 4293, 16, 266, 10528, 316, 328, 4293, 17248, 18, 3319, 13332, 309, 21545, 18, 5332, 67, 856, 12, 5697, 30584, 4672, 293, 4293, 5014, 63, 266, 10528, 63, 5697, 30584, 13563, 273, 328, 4293, 469, 30, 393, 1585, 273, 315, 14222, 1318, 16186, 8837, 14222, 3245, 1046, 2988, 30, 1387, 1552, 486, 1240, 12335, 622, 4580, 5235, 3010, 1199, 314, 3328, 18, 1636, 12, 393, 1585, 16, 2213, 87, 738, 87, 6, 738, 261, 328, 4293, 16, 2502, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 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, 1046, 1674, 3536, 400, 273, 365, 6315, 8837, 812, 9769, 2083, 12, 80, 4293, 11189, 588, 17248, 6134, 309, 486, 400, 3292, 3141, 3546, 30, 393, 1585, 273, 315, 14222, 1318, 16186, 8837, 14222, 3245, 1046, 2988, 30, 8359, 2357, 2535, 358, 336, 21545, 364, 18803, 10386, 1199, 314, 3328, 18, 1636, 12, 370, 1585, 16, 455, 3292, 1079, 19486, 327, 400, 2535, 273, 400, 3292, 620, 21712, 2925, 3546, 364, 328, 4293, 16, 10579, 316, 400, 3292, 620, 21712, 2925, 29489, 3319, 13332, 314, 2 ]
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()) rowHeights_table = _attributes.get((None, 'rowHeights'), None) colWidths_table = _attributes.get((None, 'colWidths'), None) # reportlab default value splitByRow_table = 1 repeatRows_table = to_int(_attributes.get((None, 'repeatRows'), 1), 1) if rowHeights_table is not None: rowHeights_table_tab = rowHeights_table.split(',') rowHeights_table = [] for rh in rowHeights_table_tab: rowHeights_table.append(get_value_reportlab(rh)) if colWidths_table is not None: colWidths_table_tab = colWidths_table.split(',') colWidths_table = [] for cw in colWidths_table_tab: colWidths_table.append(get_value_reportlab(cw)) while True: try: event, value, line_number = stream.next() except StopIteration: return None #### START ELEMENT #### if event == START_ELEMENT: tag_uri, tag_name, attributes, ns_decls = value push = True if tag_name == 'tr': table_tr = [] end_tag_tr = False elif tag_name == 'td': table_td = [] end_tag_td = False elif tag_name == 'image': if stack[-1][0] == 'td': push = False widget = image_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet, True) if widget is not None: table_td.append(widget) else: pass elif tag_name == 'para': if stack[-1][0] == 'td': push = False widget = paragraph_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet) if widget is not None: table_td.append(widget) else: pass elif tag_name in ['pre', 'xpre']: if stack[-1][0] == 'td': push = False widget = preformatted_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet) if widget is not None: table_td.append(widget) else: pass elif tag_name == 'spacer': if stack[-1][0] == 'td': push = False widget = spacer_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet) if widget is not None: table_td.append(widget) else: pass elif tag_name == 'blockTable': if stack[-1][0] == 'td': push = False widget = table_stream(stream, tag_uri, tag_name, attributes, ns_decls, pdf_stylesheet, pdf_table_style) if widget is not None: table_td.append(widget) else: pass if push: stack.append((tag_name, attributes, None)) #### END ELEMENT #### elif event == END_ELEMENT: tag_uri, tag_name = value if stack[-1][0] == _tag_name: element = stack.pop() widget = Table(data_table, colWidths_table, rowHeights_table, style_table, splitByRow=splitByRow_table, repeatRows=repeatRows_table) return widget elif stack[-1][0] == 'tr': data_table.append(table_tr) stack.pop() end_tag_tr = True table_tr = None elif stack[-1][0] == 'td': end_tag_td = True if len(table_td) == 1: table_td = table_td[0] table_tr.append(table_td) table_td = None stack.pop() #### TEXT ELEMENT #### elif event == TEXT: if stack[-1][0] == 'blockTable': pass elif stack[-1][0] == 'tr': pass elif stack[-1][0] == 'td': value = strip(Unicode.decode(value, encoding)) if len(value) > 0 and value != ' ': value = XML.encode(value) # entities table_td.append(value) else: pass
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, 67, 2121, 273, 599, 1014, 67, 4465, 273, 599, 2110, 273, 5378, 2110, 18, 6923, 12443, 67, 2692, 67, 529, 16, 389, 4350, 16, 599, 3719, 225, 501, 67, 2121, 273, 5378, 2154, 67, 350, 273, 389, 4350, 18, 588, 12443, 7036, 16, 296, 4060, 19899, 599, 13, 2154, 67, 2121, 273, 8169, 67, 2121, 67, 4060, 18, 588, 12, 4060, 67, 350, 16, 3555, 2885, 10756, 1027, 2686, 87, 67, 2121, 273, 389, 4350, 18, 588, 12443, 7036, 16, 296, 492, 2686, 87, 26112, 645, 22407, 67, 2121, 273, 389, 4350, 18, 588, 12443, 7036, 16, 296, 1293, 22407, 26112, 468, 2605, 7411, 805, 460, 1416, 858, 1999, 67, 2121, 273, 404, 7666, 4300, 67, 2121, 273, 358, 67, 474, 24899, 4350, 18, 588, 12443, 7036, 16, 296, 9374, 4300, 19899, 404, 3631, 404, 13, 225, 309, 1027, 2686, 87, 67, 2121, 353, 486, 599, 30, 1027, 2686, 87, 67, 2121, 67, 7032, 273, 1027, 2686, 87, 67, 2121, 18, 4939, 12, 2187, 6134, 1027, 2686, 87, 67, 2121, 273, 5378, 364, 6259, 316, 1027, 2686, 87, 67, 2121, 67, 7032, 30, 1027, 2686, 87, 67, 2121, 18, 6923, 12, 588, 67, 1132, 67, 6006, 7411, 12, 30138, 3719, 225, 309, 645, 22407, 67, 2121, 353, 486, 599, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2121, 273, 599, 1014, 67, 4465, 273, 599, 2110, 273, 5378, 2110, 18, 6923, 12443, 67, 2692, 67, 529, 16, 389, 4350, 16, 599, 3719, 225, 501, 67, 2121, 273, 5378, 2154, 67, 350, 273, 389, 4350, 18, 588, 12443, 7036, 16, 296, 4060, 19899, 599, 13, 2154, 67, 2121, 273, 8169, 67, 2121, 67, 4060, 18, 588, 12, 4060, 67, 350, 16, 3555, 2885, 10756, 1027, 2686, 87, 67, 2121, 273, 389, 4350, 18, 588, 12443, 7036, 16, 296, 492, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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] == '&#34': s = s[5:] if s[-4:] == '#34;': s = s[:-5] # replace all & to &amp; ... s = s.replace("&", "&amp;")
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, 272, 273, 272, 10531, 17, 21, 65, 309, 272, 10531, 24, 65, 422, 21312, 5026, 4278, 272, 273, 272, 63, 25, 26894, 309, 272, 18919, 24, 26894, 422, 2946, 5026, 31, 4278, 272, 273, 272, 10531, 17, 25, 65, 468, 1453, 777, 473, 358, 473, 931, 31, 1372, 272, 273, 272, 18, 2079, 2932, 10, 3113, 7830, 931, 4868, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 272, 273, 272, 10531, 17, 21, 65, 309, 272, 10531, 24, 65, 422, 21312, 5026, 4278, 272, 273, 272, 63, 25, 26894, 309, 272, 18919, 24, 26894, 422, 2946, 5026, 31, 4278, 272, 273, 272, 10531, 17, 25, 65, 468, 1453, 777, 473, 358, 473, 931, 31, 1372, 272, 273, 272, 18, 2079, 2932, 10, 3113, 7830, 931, 4868, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 358, 365, 18, 3536, 468, 9852, 30, 353, 333, 1399, 35, 225, 2597, 353, 486, 1399, 25651, 316, 17960, 578, 468, 2395, 80, 287, 18, 225, 467, 2545, 358, 443, 29246, 518, 18, 309, 1308, 316, 365, 30, 327, 374, 327, 9411, 12, 2890, 16, 1308, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 358, 365, 18, 3536, 468, 9852, 30, 353, 333, 1399, 35, 225, 2597, 353, 486, 1399, 25651, 316, 17960, 578, 468, 2395, 80, 287, 18, 225, 467, 2545, 358, 443, 29246, 518, 18, 309, 1308, 316, 365, 30, 327, 374, 327, 9411, 12, 2890, 16, 1308, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 267, 67, 2088, 2668, 9497, 2187, 296, 29266, 2187, 563, 16, 618, 2218, 2978, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 618, 2218, 2978, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 cease blocking activities. """ count = 0 ids = set() start = time.time() while (len(ids) < self.batch) \ and (time.time() < (start+self.wait)) \ and not self.event.isSet():
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 12, 20, 16, 20, 16, 4848, 29, 16, 1105, 22, 2934, 1467, 1435, 2934, 17336, 774, 12, 1299, 1386, 2556, 6353, 18, 15903, 1225, 7002, 1435, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'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 id @return: Warning message """ if not prodlot_id or not loc_id: return {} ctx = context and context.copy() or {} ctx['location_id'] = loc_id prodlot = self.pool.get('stock.production.lot').browse(cr, uid, prodlot_id, ctx) location = self.pool.get('stock.location').browse(cr, uid, loc_id) warning = {} if (location.usage == 'internal') and (product_qty > (prodlot.stock_available or 0.0)): warning = { 'title': _('Bad Lot Assignation !'), 'message': _('You are moving %.2f products but only %.2f available in this lot.') % (product_qty, prodlot.stock_available or 0.0) } return {'warning': warning}
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, 3017, 67, 350, 33, 8381, 16, 819, 33, 7036, 4672, 3536, 2755, 2549, 434, 12449, 17417, 14758, 279, 3436, 883, 18, 632, 891, 450, 5761, 352, 67, 350, 30, 27707, 12449, 17417, 612, 632, 891, 3017, 67, 85, 4098, 30, 18189, 434, 3017, 632, 891, 1515, 67, 350, 30, 7050, 612, 632, 891, 3017, 67, 350, 30, 8094, 612, 632, 2463, 30, 9728, 883, 3536, 309, 486, 450, 5761, 352, 67, 350, 578, 486, 1515, 67, 350, 30, 327, 2618, 1103, 273, 819, 471, 819, 18, 3530, 1435, 578, 2618, 1103, 3292, 3562, 67, 350, 3546, 273, 1515, 67, 350, 450, 5761, 352, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 17273, 18, 23372, 16063, 25731, 12, 3353, 16, 4555, 16, 450, 5761, 352, 67, 350, 16, 1103, 13, 2117, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 16063, 25731, 12, 3353, 16, 4555, 16, 1515, 67, 350, 13, 3436, 273, 2618, 309, 261, 3562, 18, 9167, 422, 296, 7236, 6134, 471, 261, 5896, 67, 85, 4098, 405, 261, 685, 5761, 352, 18, 15381, 67, 5699, 578, 374, 18, 20, 3719, 30, 3436, 273, 288, 296, 2649, 4278, 389, 2668, 5048, 11339, 20296, 363, 316, 511, 352, 401, 19899, 296, 2150, 4278, 389, 2668, 6225, 854, 12499, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3017, 67, 350, 33, 8381, 16, 819, 33, 7036, 4672, 3536, 2755, 2549, 434, 12449, 17417, 14758, 279, 3436, 883, 18, 632, 891, 450, 5761, 352, 67, 350, 30, 27707, 12449, 17417, 612, 632, 891, 3017, 67, 85, 4098, 30, 18189, 434, 3017, 632, 891, 1515, 67, 350, 30, 7050, 612, 632, 891, 3017, 67, 350, 30, 8094, 612, 632, 2463, 30, 9728, 883, 3536, 309, 486, 450, 5761, 352, 67, 350, 578, 486, 1515, 67, 350, 30, 327, 2618, 1103, 273, 2 ]
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 __debug__: self._note("%s.wait(%s): got it", self, timeout) finally: self._acquire_restore(saved_state)
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 = _time() + timeout delay = 0.000001 # 1 usec 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 __debug__: self._note("%s.wait(%s): got it", self, timeout) self._acquire_restore(saved_state)
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, 389, 16247, 67, 739, 1435, 17522, 18, 1077, 1039, 1435, 365, 16186, 7048, 414, 18, 6923, 12, 7048, 264, 13, 5198, 67, 2019, 273, 365, 6315, 9340, 67, 5688, 1435, 309, 2021, 353, 599, 30, 17522, 18, 1077, 1039, 1435, 309, 1001, 4148, 972, 30, 365, 6315, 7652, 27188, 87, 18, 7048, 13332, 2363, 518, 3113, 365, 13, 469, 30, 31361, 273, 389, 957, 1435, 397, 2021, 4624, 273, 374, 18, 2787, 1611, 468, 404, 999, 71, 1323, 404, 30, 2363, 305, 273, 17522, 18, 1077, 1039, 12, 20, 13, 309, 2363, 305, 578, 389, 957, 1435, 1545, 31361, 30, 898, 389, 19607, 12, 10790, 13, 309, 4624, 411, 404, 18, 20, 30, 4624, 273, 4624, 380, 576, 18, 20, 309, 486, 2363, 305, 30, 309, 1001, 4148, 972, 30, 365, 6315, 7652, 27188, 87, 18, 7048, 9275, 87, 4672, 7491, 596, 3113, 365, 16, 2021, 13, 775, 30, 365, 16186, 7048, 414, 18, 4479, 12, 7048, 264, 13, 1335, 2068, 30, 1342, 469, 30, 309, 1001, 4148, 972, 30, 365, 6315, 7652, 27188, 87, 18, 7048, 9275, 87, 4672, 2363, 518, 3113, 365, 16, 2021, 13, 365, 6315, 1077, 1039, 67, 13991, 12, 14077, 67, 2019, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 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, 389, 16247, 67, 739, 1435, 17522, 18, 1077, 1039, 1435, 365, 16186, 7048, 414, 18, 6923, 12, 7048, 264, 13, 5198, 67, 2019, 273, 365, 6315, 9340, 67, 5688, 1435, 309, 2021, 353, 599, 30, 17522, 18, 1077, 1039, 1435, 309, 1001, 4148, 972, 30, 365, 6315, 7652, 27188, 87, 18, 7048, 13332, 2363, 518, 3113, 365, 13, 469, 30, 31361, 273, 389, 957, 1435, 397, 2021, 4624, 273, 374, 18, 2787, 1611, 468, 404, 999, 71, 1323, 404, 30, 2363, 305, 273, 17522, 2 ]
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 dependents except ConfigParser.NoOptionError: return dependents extendParts = extends.split() hasPath = False for part in extendParts: if '/' in part or '\\' in part: hasPath = True # extends filenames are always relative to the actual file fullname = os.path.join(path, part) if is_win32: #most buildouts use / but win32 uses \ fullname = fullname.replace('/', '\\') if not os.path.exists(fullname): logger.error("FATAL: %s not found, but is referenced by %s" % ( fullname, filename)) sys.exit(0) dependents.update(getDependentConfigFiles(fullname)) if hasPath: #we need to clean relative path from extends as on the server #everything is flat extendParts = [os.path.split(part)[-1] for part in extendParts] extends = '\n '.join(extendParts) config.set('buildout', 'extends', extends) if outfile: #if the config is created by ourselves config.write(open(outfile, 'w')) else: #this is a referenced config, don't modify the original newname = os.path.split(filename)[-1] config.write(open(newname, 'w')) if addSelf: #adjust dependents dependents.remove(filename) dependents.add(newname) return dependents
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, 1435, 309, 527, 10084, 30, 2447, 4877, 18, 1289, 12, 3459, 13, 225, 589, 273, 1140, 18, 803, 18, 12287, 12, 3459, 13, 225, 775, 30, 3231, 273, 642, 18, 588, 2668, 3510, 659, 2187, 296, 13020, 6134, 1335, 25076, 18, 2279, 5285, 668, 30, 327, 2447, 4877, 1335, 25076, 18, 2279, 1895, 668, 30, 327, 2447, 4877, 225, 2133, 4305, 273, 3231, 18, 4939, 1435, 711, 743, 273, 1083, 364, 1087, 316, 2133, 4305, 30, 309, 2023, 316, 1087, 578, 5282, 316, 1087, 30, 711, 743, 273, 1053, 225, 468, 3231, 9066, 854, 3712, 3632, 358, 326, 3214, 585, 13321, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 1087, 13, 225, 309, 353, 67, 8082, 1578, 30, 468, 10329, 1361, 20125, 999, 342, 1496, 5657, 1578, 4692, 521, 13321, 273, 13321, 18, 2079, 2668, 19, 2187, 5282, 13, 225, 309, 486, 1140, 18, 803, 18, 1808, 12, 21885, 4672, 1194, 18, 1636, 2932, 29891, 30, 738, 87, 486, 1392, 16, 1496, 353, 8042, 635, 738, 87, 6, 738, 261, 13321, 16, 1544, 3719, 2589, 18, 8593, 12, 20, 13, 225, 2447, 4877, 18, 2725, 12, 588, 18571, 809, 2697, 12, 21885, 3719, 225, 309, 711, 743, 30, 468, 1814, 1608, 358, 2721, 3632, 589, 628, 3231, 487, 603, 326, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1435, 309, 527, 10084, 30, 2447, 4877, 18, 1289, 12, 3459, 13, 225, 589, 273, 1140, 18, 803, 18, 12287, 12, 3459, 13, 225, 775, 30, 3231, 273, 642, 18, 588, 2668, 3510, 659, 2187, 296, 13020, 6134, 1335, 25076, 18, 2279, 5285, 668, 30, 327, 2447, 4877, 1335, 25076, 18, 2279, 1895, 668, 30, 327, 2447, 4877, 225, 2133, 4305, 273, 3231, 18, 4939, 1435, 711, 743, 273, 1083, 364, 1087, 316, 2133, 4305, 30, 309, 2023, 316, 1087, 578, 5282, 316, 2 ]
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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 902, 21332, 13, 480, 261, 902, 365, 18, 2630, 22, 1133, 4672, 468, 1372, 5787, 6374, 919, 434, 365, 18, 2630, 22, 1133, 711, 3550, 18, 365, 18, 291, 1210, 22, 33, 291, 5510, 365, 18, 28339, 4709, 12, 2890, 16, 21332, 16, 365, 18, 291, 1210, 21, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 902, 21332, 13, 480, 261, 902, 365, 18, 2630, 22, 1133, 4672, 468, 1372, 5787, 6374, 919, 434, 365, 18, 2630, 22, 1133, 711, 3550, 18, 365, 18, 291, 1210, 22, 33, 291, 5510, 365, 18, 28339, 4709, 12, 2890, 16, 21332, 16, 365, 18, 291, 1210, 21, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, testval.value, data[value]) failed += 1 else: #print "PASS: \"%s\", actual %06o == expected %06o" % (value, testval.value, data[value]) passed += 1 else: if testval.value[0] != data[value][0] or testval.value[1] != data[value][1]: print "FAIL: \"%s\", actual (%06o,%06o) != expected (%06o,%06o)" % (value, testval.value[0], testval.value[1], data[value][0], data[value][1]) failed += 1 else: #print "PASS: \"%s\", actual (%06o,%06o) == expected (%06o,%06o)" % (value, testval.value[0], testval.value[1], data[value][0], data[value][1]) passed += 1 else: print "FAIL: \"%s\" failed to parse" % (value) failed += 1 print "Unspecified: %d passed, %d failed of %d total" % (passed, failed, passed+failed) print return (passed, failed)
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, 1842, 1125, 18, 26810, 13332, 775, 30, 9609, 273, 562, 12, 3813, 1125, 18, 1132, 13, 963, 273, 576, 1335, 30, 963, 273, 404, 309, 963, 422, 404, 30, 309, 1842, 1125, 18, 1132, 480, 501, 63, 1132, 14542, 1172, 315, 12319, 30, 22049, 87, 22564, 3214, 738, 7677, 83, 480, 2665, 738, 7677, 83, 6, 738, 261, 1132, 16, 1842, 1125, 18, 1132, 16, 501, 63, 1132, 5717, 2535, 1011, 404, 469, 30, 468, 1188, 315, 10884, 30, 22049, 87, 22564, 3214, 738, 7677, 83, 422, 2665, 738, 7677, 83, 6, 738, 261, 1132, 16, 1842, 1125, 18, 1132, 16, 501, 63, 1132, 5717, 2275, 1011, 404, 469, 30, 309, 1842, 1125, 18, 1132, 63, 20, 65, 480, 501, 63, 1132, 6362, 20, 65, 578, 1842, 1125, 18, 1132, 63, 21, 65, 480, 501, 63, 1132, 6362, 21, 14542, 1172, 315, 12319, 30, 22049, 87, 22564, 3214, 6142, 7677, 83, 15529, 7677, 83, 13, 480, 2665, 6142, 7677, 83, 15529, 7677, 83, 2225, 738, 261, 1132, 16, 1842, 1125, 18, 1132, 63, 20, 6487, 1842, 1125, 18, 1132, 63, 21, 6487, 501, 63, 1132, 6362, 20, 6487, 501, 63, 1132, 6362, 21, 5717, 2535, 1011, 404, 469, 30, 468, 1188, 315, 10884, 30, 22049, 87, 22564, 3214, 6142, 7677, 83, 15529, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 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, 1842, 1125, 18, 26810, 13332, 775, 30, 9609, 273, 562, 12, 3813, 1125, 18, 1132, 13, 963, 273, 576, 1335, 30, 963, 273, 404, 309, 963, 422, 404, 30, 309, 1842, 1125, 18, 1132, 480, 501, 63, 1132, 14542, 1172, 315, 12319, 30, 22049, 87, 22564, 3214, 738, 7677, 83, 480, 2665, 738, 7677, 83, 6, 738, 261, 1132, 16, 1842, 1125, 18, 1132, 16, 501, 63, 1132, 5717, 2535, 1011, 404, 469, 30, 468, 1188, 315, 10884, 30, 22049, 87, 22564, 3214, 738, 2 ]
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. If # there is no mode corresponding to the major mode name, let the # Editra styling system choose the style based on the filename if self.editra_synonym is not None: file_type = self.editra_synonym else: file_type = self.keyword if not self.isEditraLanguage(file_type): ext, file_type = MajorModeMatcherDriver.getEditraType(self.buffer.url) self.dprint("ext=%s file_type=%s" % (ext, file_type)) if file_type == 'generic' or file_type is None: file_type = 'Plain Text' self.dprint("ext=%s file_type=%s" % (ext, file_type)) self.editra_lang = file_type self.SetStyleFont(wx.GetApp().fonts.classprefs.primary_editing_font) self.SetStyleFont(wx.GetApp().fonts.classprefs.secondary_editing_font, False) self.dprint("font styling done in %0.5fs" % (time.time() - start))
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, 14773, 287, 18, 1886, 67, 4272, 67, 438, 3110, 2187, 365, 13, 365, 18, 72, 1188, 2932, 9010, 1868, 2628, 2731, 316, 738, 20, 18, 25, 2556, 6, 738, 261, 957, 18, 957, 1435, 300, 787, 3719, 225, 468, 6161, 358, 1104, 326, 3874, 354, 2154, 4656, 358, 326, 7888, 1965, 18, 225, 971, 468, 1915, 353, 1158, 1965, 4656, 358, 326, 7888, 1965, 508, 16, 2231, 326, 468, 15328, 354, 16253, 2456, 2619, 9876, 326, 2154, 2511, 603, 326, 1544, 309, 365, 18, 4619, 354, 67, 11982, 6435, 353, 486, 599, 30, 585, 67, 723, 273, 365, 18, 4619, 354, 67, 11982, 6435, 469, 30, 585, 67, 723, 273, 365, 18, 11041, 309, 486, 365, 18, 291, 4666, 354, 3779, 12, 768, 67, 723, 4672, 1110, 16, 585, 67, 723, 273, 25977, 2309, 6286, 4668, 18, 588, 4666, 354, 559, 12, 2890, 18, 4106, 18, 718, 13, 365, 18, 72, 1188, 2932, 408, 5095, 87, 585, 67, 723, 5095, 87, 6, 738, 261, 408, 16, 585, 67, 723, 3719, 309, 585, 67, 723, 422, 296, 13540, 11, 578, 585, 67, 723, 353, 599, 30, 585, 67, 723, 273, 296, 13360, 3867, 11, 365, 18, 72, 1188, 2932, 408, 5095, 87, 585, 67, 723, 5095, 87, 6, 738, 261, 408, 16, 585, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 14773, 287, 18, 1886, 67, 4272, 67, 438, 3110, 2187, 365, 13, 365, 18, 72, 1188, 2932, 9010, 1868, 2628, 2731, 316, 738, 20, 18, 25, 2556, 6, 738, 261, 957, 18, 957, 1435, 300, 787, 3719, 225, 468, 6161, 358, 1104, 326, 3874, 354, 2154, 4656, 358, 326, 7888, 1965, 18, 225, 971, 468, 1915, 353, 1158, 1965, 4656, 358, 326, 7888, 1965, 508, 16, 2231, 326, 468, 15328, 354, 16253, 2456, 2619, 9876, 326, 2154, 2511, 603, 326, 1544, 309, 365, 18, 4619, 2 ]
" 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
r""" 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: a(100) 715 AUTHOR: -- Jaap Spies (2007-01-31) """ def __init__(self):
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, 4, 6, 4, 1] sage: a(100) 715 AUTHOR: -- Jaap Spies (2007-01-31) """
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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.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, 18, 6923, 12, 4146, 13, 365, 18, 2121, 18, 2284, 67, 6703, 1435, 365, 6315, 2725, 67, 16016, 67, 2019, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 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, 18, 6923, 12, 4146, 13, 365, 18, 2121, 18, 2284, 67, 6703, 1435, 365, 6315, 2725, 67, 16016, 67, 2019, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 5510, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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: # continued string if not line: raise TokenError, "EOF within multi-line string" if endprog.search(line) >= 0: pos = end = endprog.regs[0][1] tokeneater(STRING, contstr + line[:end], strstart, (lnum, end), line) contstr = '' else: contstr = contstr + line continue elif parenlev == 0 and not continued: # new statement if not line: break column = 0 while pos < max: # measure leading whitespace if line[pos] == ' ': column = column + 1 elif line[pos] == '\t': column = (column/tabsize + 1)*tabsize elif line[pos] == '\f': column = 0 else: break pos = pos + 1 if pos == max: break if line[pos] in '#\r\n': # skip comments or blank lines tokeneater((NEWLINE, COMMENT)[line[pos] == '#'], line[pos:], (lnum, pos), (lnum, len(line)), line) continue if column > indents[-1]: # count indents or dedents indents.append(column) tokeneater(INDENT, line[:pos], (lnum, 0), (lnum, pos), line) while column < indents[-1]: indents = indents[:-1] tokeneater(DEDENT, line[:pos], (lnum, 0), (lnum, pos), line) else: # continued statement if not line: raise TokenError, "EOF within multi-line statement" continued = 0 while pos < max: if pseudoprog.match(line, pos) > 0: # scan for tokens start, end = pseudoprog.regs[1] spos, epos = (lnum, start), (lnum, end) token, initial = line[start:end], line[start] pos = end if initial in namechars: # ordinary name tokeneater(NAME, token, spos, epos, line) elif initial in numchars: # ordinary number tokeneater(NUMBER, token, spos, epos, line) elif initial in '\r\n': tokeneater(NEWLINE, token, spos, epos, line) elif initial == '#': tokeneater(COMMENT, token, spos, epos, line) elif initial == '\\': # continued stmt continued = 1 elif token in ('\'\'\'', '"""'): # triple-quoted endprog = endprogs[token] if endprog.search(line, pos) >= 0: # all on one line pos = endprog.regs[0][1] token = line[start:pos] tokeneater(STRING, token, spos, (lnum, pos), line) else: strstart = (lnum, start) # multiple lines contstr = line[start:] break elif initial in '\'"': if token[-1] == '\n': # continued string strstart = (lnum, start) endprog, contstr = endprogs[initial], line[start:] break else: # ordinary string tokeneater(STRING, token, spos, epos, line) else: if initial in '([{': parenlev = parenlev + 1 elif initial in ')]}': parenlev = parenlev - 1 tokeneater(OP, token, spos, epos, line) else: tokeneater(ERRORTOKEN, line[pos], spos, (lnum, pos+1), line) pos = pos + 1 for indent in indents[1:]: # pop remaining indent levels tokeneater(DEDENT, '', (lnum, 0), (lnum, 0), '')
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, 2187, 533, 18, 16649, 466, 701, 273, 875, 3504, 87, 273, 306, 20, 65, 225, 1323, 404, 30, 4766, 282, 468, 2798, 1879, 2362, 316, 1407, 980, 273, 12023, 1435, 328, 2107, 273, 328, 2107, 397, 404, 949, 16, 943, 273, 374, 16, 562, 12, 1369, 13, 225, 309, 466, 701, 30, 18701, 468, 17545, 5957, 533, 309, 486, 980, 30, 1002, 3155, 668, 16, 7566, 12706, 316, 3309, 17, 1369, 533, 3113, 609, 1937, 13, 309, 679, 14654, 18, 1916, 12, 1369, 13, 1545, 374, 30, 949, 273, 679, 273, 679, 14654, 18, 266, 564, 63, 20, 6362, 21, 65, 1147, 73, 2045, 12, 5804, 16, 466, 701, 397, 980, 10531, 409, 6487, 609, 1937, 16, 261, 80, 2107, 16, 679, 3631, 980, 13, 466, 701, 273, 875, 469, 30, 466, 701, 273, 466, 701, 397, 980, 1324, 225, 1327, 22146, 298, 90, 422, 374, 471, 486, 17545, 5957, 30, 225, 468, 394, 3021, 309, 486, 980, 30, 898, 1057, 273, 374, 1323, 949, 411, 943, 30, 10402, 468, 6649, 7676, 7983, 309, 980, 63, 917, 65, 422, 296, 4290, 1057, 273, 1057, 397, 404, 1327, 980, 63, 917, 65, 422, 2337, 88, 4278, 1057, 273, 261, 2827, 19, 7032, 1467, 397, 404, 17653, 7032, 1467, 1327, 980, 63, 917, 65, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2187, 533, 18, 16649, 466, 701, 273, 875, 3504, 87, 273, 306, 20, 65, 225, 1323, 404, 30, 4766, 282, 468, 2798, 1879, 2362, 316, 1407, 980, 273, 12023, 1435, 328, 2107, 273, 328, 2107, 397, 404, 949, 16, 943, 273, 374, 16, 562, 12, 1369, 13, 225, 309, 466, 701, 30, 18701, 468, 17545, 5957, 533, 309, 486, 980, 30, 1002, 3155, 668, 16, 7566, 12706, 316, 3309, 17, 1369, 533, 3113, 609, 1937, 13, 309, 679, 14654, 18, 1916, 12, 1369, 13, 2 ]
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, 365, 18, 6870, 984, 2656, 12, 80, 63, 20, 65, 353, 328, 18919, 21, 5717, 365, 18, 6870, 984, 2656, 12, 80, 63, 1467, 300, 404, 65, 353, 328, 63, 1467, 397, 404, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 365, 18, 6870, 984, 2656, 12, 80, 63, 20, 65, 353, 328, 18919, 21, 5717, 365, 18, 6870, 984, 2656, 12, 80, 63, 1467, 300, 404, 65, 353, 328, 63, 1467, 397, 404, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 # with the thumbview background color whenever Build mode's bg color is solid. # Change to "if 0:" to have the thubview background match the current mode background. # This fixes bug 1229. Mark 060116 if 1: self.backgroundGradient = 1 else: self.backgroundGradient = gradient
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, 2036, 225, 468, 423, 267, 361, 471, 467, 19169, 407, 730, 333, 471, 2109, 13898, 716, 326, 5412, 1410, 3712, 506, 444, 358, 15513, 14081, 18, 468, 1220, 5672, 711, 358, 741, 598, 3998, 1965, 1807, 16313, 9034, 16658, 2822, 316, 13168, 3209, 468, 598, 326, 11156, 1945, 5412, 2036, 17334, 3998, 1965, 1807, 7611, 2036, 353, 18035, 18, 468, 7576, 358, 315, 430, 374, 2773, 358, 1240, 326, 286, 373, 1945, 5412, 845, 326, 783, 1965, 5412, 18, 468, 1220, 24436, 7934, 2593, 5540, 18, 225, 6622, 13026, 1611, 2313, 309, 404, 30, 365, 18, 9342, 15651, 273, 1550, 18, 1484, 2556, 63, 5412, 15651, 67, 1484, 2556, 67, 856, 308, 469, 30, 365, 18, 9342, 15651, 273, 10292, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 2036, 225, 468, 423, 267, 361, 471, 467, 19169, 407, 730, 333, 471, 2109, 13898, 716, 326, 5412, 1410, 3712, 506, 444, 358, 15513, 14081, 18, 468, 1220, 5672, 711, 358, 741, 598, 3998, 1965, 1807, 16313, 9034, 16658, 2822, 316, 13168, 3209, 468, 598, 326, 11156, 1945, 5412, 2036, 17334, 3998, 1965, 1807, 7611, 2036, 353, 18035, 18, 468, 7576, 358, 315, 430, 374, 2773, 358, 1240, 326, 286, 373, 1945, 5412, 845, 326, 783, 1965, 5412, 18, 468, 1220, 24436, 7934, 2593, 2 ]
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, 769, 521, 710, 95, 82, 5496, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 769, 521, 710, 95, 82, 5496, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 486, 1392, 18, 3536, 364, 589, 316, 365, 18, 803, 30, 1842, 273, 1233, 12, 803, 16, 508, 13, 309, 1704, 12, 3813, 13, 471, 8814, 12, 3813, 4672, 327, 1842, 1327, 1704, 12, 3813, 397, 3552, 21763, 6, 4672, 327, 1842, 397, 3552, 21763, 6, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 316, 365, 18, 803, 30, 1842, 273, 1233, 12, 803, 16, 508, 13, 309, 1704, 12, 3813, 13, 471, 8814, 12, 3813, 4672, 327, 1842, 1327, 1704, 12, 3813, 397, 3552, 21763, 6, 4672, 327, 1842, 397, 3552, 21763, 6, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 print "Scanning directory: %s" % self.path sys.path.append(self.path) self.scan() self.load()
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, 4148, 67, 2844, 273, 1198, 67, 2844, 365, 18, 803, 273, 589, 225, 353, 365, 18, 803, 486, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 6923, 12, 2890, 18, 803, 13, 469, 30, 365, 18, 17342, 67, 803, 273, 1053, 225, 365, 18, 1214, 67, 6400, 273, 5378, 309, 1198, 67, 2844, 1545, 6369, 67, 4685, 30, 1172, 315, 1541, 10903, 1867, 30, 738, 87, 6, 738, 365, 18, 803, 2589, 18, 803, 18, 6923, 12, 2890, 18, 803, 13, 365, 18, 9871, 1435, 365, 18, 945, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 4148, 67, 2844, 273, 1198, 67, 2844, 365, 18, 803, 273, 589, 225, 353, 365, 18, 803, 486, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 6923, 12, 2890, 18, 803, 13, 469, 30, 365, 18, 17342, 67, 803, 273, 1053, 225, 365, 18, 1214, 67, 6400, 273, 5378, 309, 1198, 67, 2844, 1545, 6369, 67, 4685, 30, 1172, 315, 1541, 10903, 1867, 30, 738, 87, 6, 738, 365, 18, 803, 2589, 18, 803, 18, 6923, 12, 2890, 18, 803, 13, 365, 2 ]
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, 4210, 3546, 30, 327, 1995, 30319, 9, 87, 11, 738, 261, 2890, 3292, 2819, 17337, 365, 3292, 4210, 19486, 327, 875, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4210, 3546, 30, 327, 1995, 30319, 9, 87, 11, 738, 261, 2890, 3292, 2819, 17337, 365, 3292, 4210, 19486, 327, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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_getsetlist[] = {", self.prefix) IndentLevel() for name, get, set, doc in self.getsetlist: if doc: doc = `doc` else: doc = "NULL" Output("{\"%s\", (getter)%s_get_%s, (setter)%s_set_%s, %s}", name, self.prefix, name, self.prefix, name, doc) DedentLevel() Output("};") else: Output("#define %s_getsetlist NULL", self.prefix)
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, 529, 16, 336, 13, 469, 30, 3633, 2932, 7, 11255, 738, 87, 67, 588, 10185, 87, 3206, 3113, 365, 18, 3239, 16, 508, 13, 309, 444, 30, 365, 18, 2844, 8465, 12, 529, 16, 444, 13, 469, 30, 3633, 2932, 7, 11255, 738, 87, 67, 542, 10185, 87, 3206, 3113, 365, 18, 3239, 16, 508, 13, 225, 3633, 2932, 3845, 4707, 967, 694, 3262, 738, 87, 67, 588, 542, 1098, 8526, 273, 288, 3113, 365, 18, 3239, 13, 28653, 2355, 1435, 364, 508, 16, 336, 16, 444, 16, 997, 316, 365, 18, 588, 542, 1098, 30, 309, 997, 30, 997, 273, 1375, 2434, 68, 469, 30, 997, 273, 315, 8560, 6, 3633, 2932, 95, 2412, 9, 87, 22564, 261, 11990, 13, 9, 87, 67, 588, 10185, 87, 16, 261, 18062, 13, 9, 87, 67, 542, 10185, 87, 16, 738, 87, 5779, 3113, 508, 16, 365, 18, 3239, 16, 508, 16, 365, 18, 3239, 16, 508, 16, 997, 13, 463, 329, 319, 2355, 1435, 3633, 2932, 97, 4868, 13, 469, 30, 3633, 2932, 7, 11255, 738, 87, 67, 588, 542, 1098, 3206, 3113, 365, 18, 3239, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 529, 16, 336, 13, 469, 30, 3633, 2932, 7, 11255, 738, 87, 67, 588, 10185, 87, 3206, 3113, 365, 18, 3239, 16, 508, 13, 309, 444, 30, 365, 18, 2844, 8465, 12, 529, 16, 444, 13, 469, 30, 3633, 2932, 7, 11255, 738, 87, 67, 542, 10185, 87, 3206, 3113, 365, 18, 3239, 16, 508, 13, 225, 3633, 2932, 3845, 4707, 967, 694, 3262, 738, 87, 67, 588, 542, 1098, 8526, 273, 288, 3113, 365, 18, 3239, 13, 28653, 2355, 1435, 2 ]
"""
"""
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, 21824, 5537, 273, 6594, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 21824, 5537, 273, 6594, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
<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, 3278, 67, 3923, 6, 1301, 1546, 1969, 67, 3278, 67, 3923, 67, 5414, 6441, 225, 411, 5414, 1726, 508, 1546, 543, 483, 6, 1301, 1546, 3190, 1918, 15, 14895, 67, 3190, 67, 1918, 6, 20954, 411, 11287, 20954, 7765, 5414, 34, 7765, 5414, 34, 7765, 27617, 373, 297, 34, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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, 3278, 67, 3923, 6, 1301, 1546, 1969, 67, 3278, 67, 3923, 67, 5414, 6441, 225, 411, 5414, 1726, 508, 1546, 543, 483, 6, 1301, 1546, 3190, 1918, 15, 14895, 67, 3190, 67, 1918, 6, 20954, 411, 11287, 20954, 7765, 5414, 34, 7765, 5414, 34, 7765, 27617, 373, 297, 34, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 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' >>> expand_template('{page}', path, 0) '1' >>> expand_template('{page:04}', path, 0) '0001' >>> expand_template('{page}', path, 42) '43' >>> expand_template('{page+26}', path, 42) '69' >>> expand_template('{page-26}', path, 42) '17' ''' base = os.path.basename(name) name_ext, _ = os.path.splitext(name) base_ext, _ = os.path.splitext(base) d = { 'name': name, 'name-ext': name_ext, 'base': base, 'base-ext': base_ext, 'page': page + 1, } for _, var, _, _ in formatter.parse(template): if v is None: continue if '+' in v: sign = +1 base_var, offset = var.split('+') elif '-' in v: sign = -1 base_var, offset = var.split('-') else: continue try: offset = sign * int(offset, 10) except ValueError: continue try: base_value = d[base_var] except LookupError: continue if not isinstance(base_value, int): continue d[var] = d[base_var] + offset return formatter.format(template, **d)
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, 1173, 803, 19, 869, 19, 1332, 564, 18, 6446, 11, 4080, 4542, 67, 3202, 2668, 95, 1969, 24259, 589, 16, 374, 13, 296, 1332, 564, 18, 6446, 11, 4080, 4542, 67, 3202, 2668, 95, 529, 17, 408, 5496, 31646, 90, 89, 2187, 589, 16, 374, 13, 1173, 803, 19, 869, 19, 1332, 564, 18, 31646, 90, 89, 11, 4080, 4542, 67, 3202, 2668, 95, 1969, 17, 408, 5496, 31646, 90, 89, 2187, 589, 16, 374, 13, 296, 1332, 564, 18, 31646, 90, 89, 11, 4080, 4542, 67, 3202, 2668, 95, 2433, 24259, 589, 16, 374, 13, 296, 21, 11, 4080, 4542, 67, 3202, 2668, 95, 2433, 30, 3028, 24259, 589, 16, 374, 13, 296, 13304, 11, 4080, 4542, 67, 3202, 2668, 95, 2433, 24259, 589, 16, 14856, 13, 296, 8942, 11, 4080, 4542, 67, 3202, 2668, 95, 2433, 15, 5558, 24259, 589, 16, 14856, 13, 296, 8148, 11, 4080, 4542, 67, 3202, 2668, 95, 2433, 17, 5558, 24259, 589, 16, 14856, 13, 296, 4033, 11, 9163, 1026, 273, 1140, 18, 803, 18, 13909, 12, 529, 13, 508, 67, 408, 16, 389, 273, 1140, 18, 803, 18, 4939, 408, 12, 529, 13, 1026, 67, 408, 16, 389, 273, 1140, 18, 803, 18, 4939, 408, 12, 1969, 13, 302, 273, 288, 296, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1173, 803, 19, 869, 19, 1332, 564, 18, 6446, 11, 4080, 4542, 67, 3202, 2668, 95, 1969, 24259, 589, 16, 374, 13, 296, 1332, 564, 18, 6446, 11, 4080, 4542, 67, 3202, 2668, 95, 529, 17, 408, 5496, 31646, 90, 89, 2187, 589, 16, 374, 13, 1173, 803, 19, 869, 19, 1332, 564, 18, 31646, 90, 89, 11, 4080, 4542, 67, 3202, 2668, 95, 1969, 17, 408, 5496, 31646, 90, 89, 2187, 589, 16, 374, 13, 296, 1332, 564, 18, 31646, 90, 2 ]
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, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 365, 18, 6011, 18, 588, 2668, 87, 5349, 18, 1369, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.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, 10332, 16235, 39, 11, 578, 290, 18919, 24, 26894, 631, 10332, 17508, 11, 578, 290, 18919, 24, 26894, 631, 10332, 37, 7140, 2187, 1458, 12, 1080, 18, 5797, 16, 50, 3719, 30, 2295, 273, 1140, 18, 803, 18, 7959, 3593, 12, 538, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 72, 16, 82, 20349, 309, 1140, 18, 803, 18, 291, 768, 12, 4293, 4672, 1140, 18, 4479, 12, 4293, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 10332, 16235, 39, 11, 578, 290, 18919, 24, 26894, 631, 10332, 17508, 11, 578, 290, 18919, 24, 26894, 631, 10332, 37, 7140, 2187, 1458, 12, 1080, 18, 5797, 16, 50, 3719, 30, 2295, 273, 1140, 18, 803, 18, 7959, 3593, 12, 538, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 72, 16, 82, 20349, 309, 1140, 18, 803, 18, 291, 768, 12, 4293, 4672, 1140, 18, 4479, 12, 4293, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 468, 1915, 353, 279, 394, 19891, 416, 813, 613, 18, 1376, 2668, 542, 19891, 416, 813, 30, 738, 87, 11, 738, 365, 18, 91, 911,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 468, 1915, 353, 279, 394, 19891, 416, 813, 613, 18, 1376, 2668, 542, 19891, 416, 813, 30, 738, 87, 11, 738, 365, 18, 91, 911, 3648, 494, 13, 365, 16186, 2722, 67, 91, 911, 3648, 494, 273, 365, 18, 91, 911, 3648, 494, 1709, 18, 84, 3190, 18, 2227, 12, 1425, 18, 2664, 1693, 12711, 67, 59, 37, 6859, 3079, 67, 19473, 738, 365, 18, 91, 911, 3648, 494, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 273, 5071, 18, 588, 67, 1978, 67, 768, 1435, 1026, 67, 1214, 273, 5071, 18, 588, 67, 1969, 67, 1214, 1435, 1335, 5071, 18, 11540, 503, 16, 431, 30, 1002, 7283, 503, 16, 296, 43, 1285, 2151, 486, 30372, 30, 738, 87, 11, 738, 431, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 273, 5071, 18, 588, 67, 1978, 67, 768, 1435, 1026, 67, 1214, 273, 5071, 18, 588, 67, 1969, 67, 1214, 1435, 1335, 5071, 18, 11540, 503, 16, 431, 30, 1002, 7283, 503, 16, 296, 43, 1285, 2151, 486, 30372, 30, 738, 87, 11, 738, 431, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 descriptive string should tell the user what to do.""" rv = [] if not self._dict['Download-URL']: return [(None, "This package needs to be installed manually")] if not self._dict['Prerequisites']: return [] for item in self._dict['Prerequisites']: if type(item) == str: pkg = None descr = str(item) else: name = item['Name'] if item.has_key('Version'): name = name + '-' + item['Version'] if item.has_key('Flavor'): name = name + '-' + item['Flavor'] pkg = self._db.find(name) if not pkg: descr = "Requires unknown %s"%name else: descr = pkg.description() rv.append((pkg, descr)) return rv
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, 453, 14532, 2261, 733, 578, 599, 16, 471, 326, 2205, 353, 279, 302, 31812, 533, 18, 1021, 1122, 761, 848, 506, 599, 309, 333, 2181, 10935, 603, 5943, 716, 5177, 1404, 293, 14532, 17, 5425, 429, 16, 316, 1492, 648, 326, 302, 31812, 533, 1410, 9276, 326, 729, 4121, 358, 741, 12123, 225, 5633, 273, 5378, 309, 486, 365, 6315, 1576, 18, 588, 2668, 7109, 17, 1785, 11, 4672, 327, 306, 12, 7036, 16, 315, 2503, 2181, 4260, 358, 506, 5876, 10036, 7923, 65, 309, 486, 365, 6315, 1576, 3292, 2050, 822, 16608, 2997, 3546, 30, 327, 5378, 364, 761, 316, 365, 6315, 1576, 3292, 2050, 822, 16608, 2997, 3546, 30, 309, 618, 12, 1726, 13, 422, 609, 30, 3475, 273, 599, 18426, 273, 609, 12, 1726, 13, 469, 30, 508, 273, 761, 3292, 461, 3546, 309, 761, 18, 5332, 67, 856, 2668, 1444, 11, 4672, 508, 273, 508, 397, 4014, 397, 761, 3292, 1444, 3546, 309, 761, 18, 5332, 67, 856, 2668, 2340, 9444, 11, 4672, 508, 273, 508, 397, 4014, 397, 761, 3292, 2340, 9444, 3546, 3475, 273, 365, 6315, 1966, 18, 4720, 12, 529, 13, 309, 486, 3475, 30, 18426, 273, 315, 21671, 5917, 738, 87, 28385, 529, 469, 30, 18426, 273, 3475, 18, 3384, 1435, 5633, 18, 6923, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 453, 14532, 2261, 733, 578, 599, 16, 471, 326, 2205, 353, 279, 302, 31812, 533, 18, 1021, 1122, 761, 848, 506, 599, 309, 333, 2181, 10935, 603, 5943, 716, 5177, 1404, 293, 14532, 17, 5425, 429, 16, 316, 1492, 648, 326, 302, 31812, 533, 1410, 9276, 326, 729, 4121, 358, 741, 12123, 225, 5633, 273, 5378, 309, 486, 365, 6315, 1576, 18, 588, 2668, 7109, 17, 1785, 11, 4672, 327, 306, 12, 7036, 16, 315, 2503, 2181, 4260, 358, 506, 5876, 10036, 7923, 65, 2 ]
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 TypeError, "Oops! p must be a prime number > 2." ## TO DO: Test that p is prime??? ## Find the smallest non-residue mod p for r in range(2,p): if legendre_symbol(r, p) == -1: return r
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, 11386, 30, 272, 410, 30, 26146, 67, 5836, 23388, 12, 25, 13, 576, 3536, 293, 21, 273, 2417, 12, 84, 13, 225, 7541, 28998, 598, 326, 17014, 293, 273, 576, 471, 571, 84, 96, 1648, 404, 18, 309, 293, 21, 422, 576, 30, 1002, 2068, 16, 315, 51, 4473, 5, 225, 6149, 854, 1158, 26146, 1661, 17, 15567, 3610, 316, 2285, 19, 22, 62, 1199, 309, 293, 21, 411, 576, 30, 1002, 3580, 16, 315, 51, 4473, 5, 225, 293, 1297, 506, 279, 17014, 1300, 405, 576, 1199, 225, 7541, 8493, 5467, 30, 7766, 716, 293, 353, 17014, 14646, 35, 225, 7541, 4163, 326, 13541, 1661, 17, 23388, 681, 293, 364, 436, 316, 1048, 12, 22, 16, 84, 4672, 309, 7241, 266, 67, 7175, 12, 86, 16, 293, 13, 422, 300, 21, 30, 327, 436, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 11386, 30, 272, 410, 30, 26146, 67, 5836, 23388, 12, 25, 13, 576, 3536, 293, 21, 273, 2417, 12, 84, 13, 225, 7541, 28998, 598, 326, 17014, 293, 273, 576, 471, 571, 84, 96, 1648, 404, 18, 309, 293, 21, 422, 576, 30, 1002, 2068, 16, 315, 51, 4473, 5, 225, 6149, 854, 1158, 26146, 1661, 17, 15567, 3610, 316, 2285, 19, 22, 62, 1199, 309, 293, 21, 411, 576, 30, 1002, 3580, 16, 315, 51, 4473, 5, 225, 293, 1297, 506, 279, 17014, 2 ]
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, 729, 16, 279, 720, 4937, 261, 430, 1915, 353, 1245, 13, 471, 279, 1047, 18, 12484, 640, 5625, 1140, 18, 803, 18, 4939, 16, 309, 1158, 1981, 353, 864, 16, 326, 1245, 628, 326, 729, 4448, 353, 2106, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 729, 16, 279, 720, 4937, 261, 430, 1915, 353, 1245, 13, 471, 279, 1047, 18, 12484, 640, 5625, 1140, 18, 803, 18, 4939, 16, 309, 1158, 1981, 353, 864, 16, 326, 1245, 628, 326, 729, 4448, 353, 2106, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]