rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if notification.data.registration is not None: route = notification.data.route if notification.data.next_route: next_route = notification.data.next_route next_route_text = 'Trying next route %s:%d;transport=%s.' % (next_route.address, next_route.port, next_route.transport) else: next_route_text = 'No more routes to try; retrying in %.2f seconds.' % (notification.data.delay) if notification.data.code: status_text = '%d %s' % (notification.data.code, notification.data.reason) else: status_text = notification.data.reason self.output.put('%s Failed to register contact for sip:%s at %s:%d;transport=%s: %s. %s\n' % (datetime.now().replace(microsecond=0), self.account.id, route.address, route.port, route.transport, status_text, next_route_text)) else: self.output.put('%s Failed to register contact for sip:%s: %s\n' % (datetime.now().replace(microsecond=0), self.account.id, notification.data.reason))
self.output.put('%s Failed to register contact for sip:%s: %s (retrying in %.2f seconds)\n' % (datetime.now().replace(microsecond=0), self.account.id, notification.data.error, notification.data.timeout))
def _NH_SIPAccountRegistrationDidFail(self, notification): if notification.data.registration is not None: route = notification.data.route if notification.data.next_route: next_route = notification.data.next_route next_route_text = 'Trying next route %s:%d;transport=%s.' % (next_route.address, next_route.port, next_route.transport) else: next_route_text = 'No more routes to try; retrying in %.2f seconds.' % (notification.data.delay) if notification.data.code: status_text = '%d %s' % (notification.data.code, notification.data.reason) else: status_text = notification.data.reason self.output.put('%s Failed to register contact for sip:%s at %s:%d;transport=%s: %s. %s\n' % (datetime.now().replace(microsecond=0), self.account.id, route.address, route.port, route.transport, status_text, next_route_text)) else: self.output.put('%s Failed to register contact for sip:%s: %s\n' % (datetime.now().replace(microsecond=0), self.account.id, notification.data.reason))
10da3d316b246fbfc61503bf1361db6c121c92c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/10da3d316b246fbfc61503bf1361db6c121c92c8/sip_message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 3032, 7843, 18250, 3754, 12, 2890, 16, 3851, 4672, 309, 3851, 18, 892, 18, 14170, 353, 486, 599, 30, 1946, 273, 3851, 18, 892, 18, 5547, 309, 3851, 18, 892, 18, 4285, 67, 5547, 30, 1024, 67, 5547, 273, 3851, 18, 892, 18, 4285, 67, 5547, 1024, 67, 5547, 67, 955, 273, 296, 18038, 1024, 1946, 738, 87, 5319, 72, 31, 13049, 5095, 87, 1093, 738, 261, 4285, 67, 5547, 18, 2867, 16, 1024, 67, 5547, 18, 655, 16, 1024, 67, 5547, 18, 13049, 13, 469, 30, 1024, 67, 5547, 67, 955, 273, 296, 2279, 1898, 4912, 358, 775, 31, 21081, 316, 12639, 22, 74, 3974, 1093, 738, 261, 9927, 18, 892, 18, 10790, 13, 309, 3851, 18, 892, 18, 710, 30, 1267, 67, 955, 273, 1995, 72, 738, 87, 11, 738, 261, 9927, 18, 892, 18, 710, 16, 3851, 18, 892, 18, 10579, 13, 469, 30, 1267, 67, 955, 273, 3851, 18, 892, 18, 10579, 365, 18, 2844, 18, 458, 29909, 87, 11175, 358, 1744, 5388, 364, 10341, 5319, 87, 622, 738, 87, 5319, 72, 31, 13049, 5095, 87, 30, 738, 87, 18, 738, 87, 64, 82, 11, 738, 261, 6585, 18, 3338, 7675, 2079, 12, 14458, 8538, 33, 20, 3631, 365, 18, 4631, 18, 350, 16, 1946, 18, 2867, 16, 1946, 18, 655, 16, 1946, 18, 13049, 16, 1267, 67, 955, 16, 1024, 67, 5547, 67, 955, 3719, 469, 30, 365, 18, 2844, 18, 458, 29909, 87, 11175, 358, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 3032, 7843, 18250, 3754, 12, 2890, 16, 3851, 4672, 309, 3851, 18, 892, 18, 14170, 353, 486, 599, 30, 1946, 273, 3851, 18, 892, 18, 5547, 309, 3851, 18, 892, 18, 4285, 67, 5547, 30, 1024, 67, 5547, 273, 3851, 18, 892, 18, 4285, 67, 5547, 1024, 67, 5547, 67, 955, 273, 296, 18038, 1024, 1946, 738, 87, 5319, 72, 31, 13049, 5095, 87, 1093, 738, 261, 4285, 67, 5547, 18, 2867, 16, 1024, 67, 5547, 18, 655, 16, 1024, 67, 5547, 18, 13049, 13, 469, 30, 1024, 67, 5547, 67, 955, 273, 296, 2279, 1898, 4912, 358, 775, 31, 21081, 316, 12639, 22, 74, 3974, 1093, 738, 261, 9927, 18, 892, 18, 2 ]
model, selection_iter = selection.get_selected()
model, selection_iter = selection.get_selected()
def get_selected_task(self, tv=None): uid = None if not tv: tview = self.task_tview else: tview = tv # Get the selection in the gtk.TreeView selection = tview.get_selection() #If we don't have anything and no tview specified #Let's have a look in the closed task view if selection and selection.count_selected_rows() <= 0 and not tv: tview = self.taskdone_tview selection = tview.get_selection() #Then in the notes pane if selection and selection.count_selected_rows() <= 0 and not tv: tview = self.note_tview selection = tview.get_selection() # Get the selection iter if selection: model, selection_iter = selection.get_selected() #pylint: disable-msg=W0612 if selection_iter: ts = tview.get_model() uid = ts.get_value(selection_iter, 0) return uid
fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8109, 67, 4146, 12, 2890, 16, 13521, 33, 7036, 4672, 4555, 273, 599, 309, 486, 13521, 30, 268, 1945, 273, 365, 18, 4146, 67, 88, 1945, 469, 30, 268, 1945, 273, 13521, 468, 968, 326, 4421, 316, 326, 22718, 18, 2471, 1767, 4421, 273, 268, 1945, 18, 588, 67, 10705, 1435, 468, 2047, 732, 2727, 1404, 1240, 6967, 471, 1158, 268, 1945, 1269, 468, 24181, 1807, 1240, 279, 2324, 316, 326, 4375, 1562, 1476, 309, 4421, 471, 4421, 18, 1883, 67, 8109, 67, 3870, 1435, 1648, 374, 471, 486, 13521, 30, 268, 1945, 273, 365, 18, 4146, 8734, 67, 88, 1945, 4421, 273, 268, 1945, 18, 588, 67, 10705, 1435, 468, 20112, 316, 326, 10913, 13618, 309, 4421, 471, 4421, 18, 1883, 67, 8109, 67, 3870, 1435, 1648, 374, 471, 486, 13521, 30, 268, 1945, 273, 365, 18, 7652, 67, 88, 1945, 4421, 273, 268, 1945, 18, 588, 67, 10705, 1435, 468, 968, 326, 4421, 1400, 309, 4421, 30, 938, 16, 4421, 67, 2165, 273, 4421, 18, 588, 67, 8109, 1435, 468, 2074, 5671, 30, 4056, 17, 3576, 33, 59, 7677, 2138, 309, 4421, 67, 2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 13521, 33, 7036, 4672, 4555, 273, 599, 309, 486, 13521, 30, 268, 1945, 273, 365, 18, 4146, 67, 88, 1945, 469, 30, 268, 1945, 273, 13521, 468, 968, 326, 4421, 316, 326, 22718, 18, 2471, 1767, 4421, 273, 268, 1945, 18, 588, 67, 10705, 1435, 468, 2047, 732, 2727, 1404, 1240, 6967, 471, 1158, 268, 1945, 1269, 468, 24181, 1807, 1240, 279, 2324, 316, 326, 4375, 1562, 1476, 309, 4421, 471, 4421, 18, 1883, 67, 8109, 67, 3870, 1435, 1648, 374, 471, 486, 13521, 30, 268, 1945, 273, 365, 18, 4146, 8734, 67, 88, 1945, 4421, 273, 268, 1945, 18, 588, 67, 10705, 1435, 468, 20112, 316, 326, 10913, 13618, 2 ]
data.byteswap()
if big_endian: data.byteswap()
def readframes(self, nframes): if self._data_seek_needed: self._data_chunk.rewind() pos = self._soundpos * self._framesize if pos: self._data_chunk.setpos(pos) self._data_seek_needed = 0 if nframes == 0: return '' if self._sampwidth > 1: # unfortunately the fromfile() method does not take # something that only looks like a file object, so # we have to reach into the innards of the chunk object import array data = array.array(_array_fmts[self._sampwidth]) nitems = nframes * self._nchannels if nitems * self._sampwidth > self._data_chunk.chunksize - self._data_chunk.size_read: nitems = (self._data_chunk.chunksize - self._data_chunk.size_read) / self._sampwidth data.fromfile(self._data_chunk.file, nitems) self._data_chunk.size_read = self._data_chunk.size_read + nitems * self._sampwidth data.byteswap() data = data.tostring() else: data = self._data_chunk.read(nframes * self._framesize) if self._convert and data: data = self._convert(data) self._soundpos = self._soundpos + len(data) / (self._nchannels * self._sampwidth) return data
ebb9c922cb1f1b72fe929cfba223e42df7492a1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ebb9c922cb1f1b72fe929cfba223e42df7492a1c/wave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 10278, 12, 2890, 16, 290, 10278, 4672, 309, 365, 6315, 892, 67, 16508, 67, 17471, 30, 365, 6315, 892, 67, 6551, 18, 266, 10094, 1435, 949, 273, 365, 6315, 29671, 917, 380, 365, 6315, 10278, 554, 309, 949, 30, 365, 6315, 892, 67, 6551, 18, 542, 917, 12, 917, 13, 365, 6315, 892, 67, 16508, 67, 17471, 273, 374, 309, 290, 10278, 422, 374, 30, 327, 875, 309, 365, 6315, 87, 931, 2819, 405, 404, 30, 468, 640, 24233, 326, 628, 768, 1435, 707, 1552, 486, 4862, 468, 5943, 716, 1338, 10192, 3007, 279, 585, 733, 16, 1427, 468, 732, 1240, 358, 9287, 1368, 326, 316, 82, 14727, 434, 326, 2441, 733, 1930, 526, 501, 273, 526, 18, 1126, 24899, 1126, 67, 8666, 87, 63, 2890, 6315, 87, 931, 2819, 5717, 290, 3319, 273, 290, 10278, 380, 365, 6315, 82, 9114, 309, 290, 3319, 380, 365, 6315, 87, 931, 2819, 405, 365, 6315, 892, 67, 6551, 18, 6551, 1467, 300, 365, 6315, 892, 67, 6551, 18, 1467, 67, 896, 30, 290, 3319, 273, 261, 2890, 6315, 892, 67, 6551, 18, 6551, 1467, 300, 365, 6315, 892, 67, 6551, 18, 1467, 67, 896, 13, 342, 365, 6315, 87, 931, 2819, 501, 18, 2080, 768, 12, 2890, 6315, 892, 67, 6551, 18, 768, 16, 290, 3319, 13, 365, 6315, 892, 67, 6551, 18, 1467, 67, 896, 273, 365, 6315, 892, 67, 6551, 18, 1467, 67, 896, 397, 290, 3319, 380, 365, 6315, 87, 931, 2819, 309, 5446, 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, 855, 10278, 12, 2890, 16, 290, 10278, 4672, 309, 365, 6315, 892, 67, 16508, 67, 17471, 30, 365, 6315, 892, 67, 6551, 18, 266, 10094, 1435, 949, 273, 365, 6315, 29671, 917, 380, 365, 6315, 10278, 554, 309, 949, 30, 365, 6315, 892, 67, 6551, 18, 542, 917, 12, 917, 13, 365, 6315, 892, 67, 16508, 67, 17471, 273, 374, 309, 290, 10278, 422, 374, 30, 327, 875, 309, 365, 6315, 87, 931, 2819, 405, 404, 30, 468, 640, 24233, 326, 628, 768, 1435, 707, 1552, 486, 4862, 468, 5943, 716, 1338, 10192, 3007, 279, 585, 733, 16, 1427, 468, 732, 1240, 358, 9287, 1368, 326, 316, 82, 14727, 434, 326, 2441, 733, 1930, 526, 501, 273, 526, 2 ]
"""
""" % (release, release)
def makeSource(release): return """deb http://archive.ubuntu.com/ubuntu/ %s main restricted universe multiverse
b2193d52ad9353e3581ae854c5da52d2073f1610 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3102/b2193d52ad9353e3581ae854c5da52d2073f1610/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1830, 12, 9340, 4672, 327, 3536, 31888, 1062, 2207, 10686, 18, 373, 25348, 18, 832, 19, 373, 25348, 19, 738, 87, 2774, 15693, 29235, 1778, 17488, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1830, 12, 9340, 4672, 327, 3536, 31888, 1062, 2207, 10686, 18, 373, 25348, 18, 832, 19, 373, 25348, 19, 738, 87, 2774, 15693, 29235, 1778, 17488, 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 ]
and not hasattr(self, "ladder"):
and not (self.isAxisChunk() or self.isStrandChunk()):
def setDisplay(self, disp): # TODO: optimize when self.display == disp, since I just reviewed # all calls and this looks safe. (Ditto with Atom version of this # method.) [bruce comment 080305 @@@@] """ change self's display mode """ if self.display == disp: #bruce 080305 optimization; looks safe after review of all calls; # important (due to avoiding inlined changeapp and display list # remake) if user selects several chunks and changes them all # at once, and some are already set to disp. return # piotr 080409: fixing bug 2785 if disp == diDNACYLINDER \ and not hasattr(self, "ladder"): # not a DNA chunk return # don't change anything self.display = disp # inlined self.changeapp(1): self.havelist = 0 self.haveradii = 0 self.changed() return
4224694ce5c1dddab7e2ae38be893359901c4e54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4224694ce5c1dddab7e2ae38be893359901c4e54/chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23512, 12, 2890, 16, 16232, 4672, 468, 2660, 30, 10979, 1347, 365, 18, 5417, 422, 16232, 16, 3241, 467, 2537, 10725, 329, 468, 777, 4097, 471, 333, 10192, 4183, 18, 261, 40, 305, 869, 598, 7149, 1177, 434, 333, 468, 707, 12998, 306, 2848, 3965, 2879, 374, 3672, 5082, 25, 22175, 30989, 65, 3536, 2549, 365, 1807, 2562, 1965, 3536, 309, 365, 18, 5417, 422, 16232, 30, 468, 2848, 3965, 374, 3672, 5082, 25, 14850, 31, 10192, 4183, 1839, 10725, 434, 777, 4097, 31, 468, 10802, 261, 24334, 358, 4543, 310, 316, 22316, 2549, 2910, 471, 2562, 666, 468, 849, 911, 13, 309, 729, 19770, 11392, 6055, 471, 3478, 2182, 777, 468, 622, 3647, 16, 471, 2690, 854, 1818, 444, 358, 16232, 18, 327, 225, 468, 293, 1594, 313, 16314, 3028, 5908, 30, 28716, 7934, 12732, 7140, 309, 16232, 422, 4314, 8609, 2226, 61, 48, 14822, 521, 471, 486, 261, 2890, 18, 291, 6558, 5579, 1435, 578, 365, 18, 291, 1585, 464, 5579, 1435, 4672, 468, 486, 279, 463, 11277, 2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1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23512, 12, 2890, 16, 16232, 4672, 468, 2660, 30, 10979, 1347, 365, 18, 5417, 422, 16232, 16, 3241, 467, 2537, 10725, 329, 468, 777, 4097, 471, 333, 10192, 4183, 18, 261, 40, 305, 869, 598, 7149, 1177, 434, 333, 468, 707, 12998, 306, 2848, 3965, 2879, 374, 3672, 5082, 25, 22175, 30989, 65, 3536, 2549, 365, 1807, 2562, 1965, 3536, 309, 365, 18, 5417, 422, 16232, 30, 468, 2848, 3965, 374, 3672, 5082, 25, 14850, 31, 10192, 4183, 1839, 10725, 434, 777, 4097, 31, 468, 10802, 261, 24334, 358, 4543, 310, 316, 22316, 2549, 2910, 471, 2562, 666, 468, 849, 911, 13, 309, 729, 19770, 11392, 6055, 471, 3478, 2182, 777, 468, 622, 3647, 16, 471, 2690, 854, 2 ]
if options.silent: self.displayShortResults(sys.stdout, True, None, self.counters) else: sys.stdout.write("===========================\n") self.displayResults(sys.stdout, True, None, self.counters)
if options.silent: self.displayShortResults(sys.stdout, True, None, self.counters) else: sys.stdout.write("===========================\n") self.displayResults(sys.stdout, True, None, self.counters)
def run(self):
a918b5b08ac20d4e7c765bdce653969ebad6c315 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/a918b5b08ac20d4e7c765bdce653969ebad6c315/xstc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 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,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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, 1086, 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 ]
result += "-0x%x" % abs(self._disp)
result += "-0x%x" % abs(self.disp)
def _toText(self): if self._type == OPERAND_IMMEDIATE: if self._value >= 0: return "0x%x" % self._value else: return "-0x%x" % abs(self._value) elif self._type == OPERAND_REGISTER: return self.GetName() elif self._type == OPERAND_ABSOLUTE_ADDRESS: return '[0x%x]' % self._disp elif self._type == OPERAND_FAR_MEMORY: return '%s:%s' % (hex(self._seg), hex(self._off)) elif (self._type == OPERAND_MEMORY): result = "[" if self._base != None: result += Registers[self._base] + "+" if self._index != None: result += Registers[self._index] if self._scale > 1: result += "*%d" % self._scale if self._disp >= 0: result += "+0x%x" % self._disp else: result += "-0x%x" % abs(self._disp) return result + "]"
7c2914851425839fab07457054443c7767eb9683 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8360/7c2914851425839fab07457054443c7767eb9683/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1528, 12, 2890, 4672, 309, 365, 6315, 723, 422, 17205, 4307, 67, 3445, 15971, 1777, 30, 309, 365, 6315, 1132, 1545, 374, 30, 327, 315, 20, 92, 9, 92, 6, 738, 365, 6315, 1132, 469, 30, 327, 3701, 20, 92, 9, 92, 6, 738, 2417, 12, 2890, 6315, 1132, 13, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 27511, 30, 327, 365, 18, 967, 461, 1435, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 2090, 26786, 67, 15140, 30, 327, 5271, 20, 92, 9, 92, 3864, 738, 365, 6315, 25453, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 42, 985, 67, 24329, 30, 327, 1995, 87, 5319, 87, 11, 738, 261, 7118, 12, 2890, 6315, 5680, 3631, 3827, 12, 2890, 6315, 3674, 3719, 1327, 261, 2890, 6315, 723, 422, 17205, 4307, 67, 24329, 4672, 563, 273, 13626, 309, 365, 6315, 1969, 480, 599, 30, 563, 1011, 2526, 6045, 63, 2890, 6315, 1969, 65, 397, 17487, 309, 365, 6315, 1615, 480, 599, 30, 563, 1011, 2526, 6045, 63, 2890, 6315, 1615, 65, 309, 365, 6315, 5864, 405, 404, 30, 563, 1011, 15902, 9, 72, 6, 738, 365, 6315, 5864, 309, 365, 6315, 25453, 1545, 374, 30, 563, 1011, 13773, 20, 92, 9, 92, 6, 738, 365, 6315, 25453, 469, 30, 563, 1011, 3701, 20, 92, 9, 92, 6, 738, 2417, 12, 2890, 18, 25453, 13, 327, 563, 397, 9870, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1528, 12, 2890, 4672, 309, 365, 6315, 723, 422, 17205, 4307, 67, 3445, 15971, 1777, 30, 309, 365, 6315, 1132, 1545, 374, 30, 327, 315, 20, 92, 9, 92, 6, 738, 365, 6315, 1132, 469, 30, 327, 3701, 20, 92, 9, 92, 6, 738, 2417, 12, 2890, 6315, 1132, 13, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 27511, 30, 327, 365, 18, 967, 461, 1435, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 2090, 26786, 67, 15140, 30, 327, 5271, 20, 92, 9, 92, 3864, 738, 365, 6315, 25453, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 42, 985, 67, 24329, 30, 327, 1995, 87, 5319, 87, 11, 738, 261, 7118, 12, 2890, 6315, 5680, 2 ]
- ``u`` - vertex at which to start search - ``ignore_direction`` - (default False) only applies to directed graphs. If True, searches across edges in either direction. EXAMPLES:: sage: G = Graph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } )
- ``start`` - vertex or list of vertices from which to start the traversal - ``ignore_direction`` - (default False) only applies to directed graphs. If True, searches across edges in either direction. - ``distance`` - the maximum distance from the ``start`` nodes to traverse. The ``start`` nodes are distance zero from themselves. - ``neighbors`` - a function giving the neighbors of a vertex. The function should take a vertex and return a list of vertices. For a graph, ``neighbors`` is by default the :meth:`.neighbors` function of the graph. For a digraph, the ``neighbors`` function defaults to the :meth:`.successors` function of the graph. EXAMPLES:: sage: G = Graph( { 0: [1], 1: [2], 2: [3], 3: [4], 4: [0]} )
def breadth_first_search(self, u, ignore_direction=False): """ Returns an iterator over vertices in a breadth-first ordering.
9d535ef33940ee3901e4b9966c012168cfeef72c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9d535ef33940ee3901e4b9966c012168cfeef72c/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 25254, 67, 3645, 67, 3072, 12, 2890, 16, 582, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 6928, 316, 279, 324, 25254, 17, 3645, 9543, 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, 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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, 324, 25254, 67, 3645, 67, 3072, 12, 2890, 16, 582, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 6928, 316, 279, 324, 25254, 17, 3645, 9543, 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 ]
["../waste/Static Libraries"])
["../"*n + "waste/Static Libraries" for n in (0,1,2,3,4)])
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
86da0b3d77eb01699271cbb263b578f077f88a51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/86da0b3d77eb01699271cbb263b578f077f88a51/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 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 ]
_wordchars_re = re.compile(r'[^\\\'\"\ ]*')
_wordchars_re = re.compile(r'[^\\\'\"%s ]*' % string.whitespace)
def grok_environment_error (exc, prefix="error: "): """Generate a useful error message from an EnvironmentError (IOError or OSError) exception object. Handles Python 1.5.1 and 1.5.2 styles, and does what it can to deal with exception objects that don't have a filename (which happens when the error is due to a two-file operation, such as 'rename()' or 'link()'. Returns the error message as a string prefixed with 'prefix'. """ # check for Python 1.5.2-style {IO,OS}Error exception objects if hasattr (exc, 'filename') and hasattr (exc, 'strerror'): if exc.filename: error = prefix + "%s: %s" % (exc.filename, exc.strerror) else: # two-argument functions in posix module don't # include the filename in the exception object! error = prefix + "%s" % exc.strerror else: error = prefix + str(exc[-1]) return error
808d09497c0f1bdb0f5c30f4816d58ac8eb49002 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/808d09497c0f1bdb0f5c30f4816d58ac8eb49002/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 3250, 67, 10274, 67, 1636, 261, 10075, 16, 1633, 1546, 1636, 30, 315, 4672, 3536, 4625, 279, 5301, 555, 883, 628, 392, 7518, 668, 261, 4294, 668, 578, 10002, 13, 1520, 733, 18, 225, 27020, 6600, 404, 18, 25, 18, 21, 471, 404, 18, 25, 18, 22, 5687, 16, 471, 1552, 4121, 518, 848, 358, 10490, 598, 1520, 2184, 716, 2727, 1404, 1240, 279, 1544, 261, 12784, 10555, 1347, 326, 555, 353, 6541, 358, 279, 2795, 17, 768, 1674, 16, 4123, 487, 296, 18539, 11866, 578, 296, 1232, 1435, 10332, 225, 2860, 326, 555, 883, 487, 279, 533, 12829, 598, 296, 3239, 10332, 3536, 468, 866, 364, 6600, 404, 18, 25, 18, 22, 17, 4060, 288, 4294, 16, 4618, 97, 668, 1520, 2184, 309, 3859, 261, 10075, 16, 296, 3459, 6134, 471, 3859, 261, 10075, 16, 296, 701, 1636, 11, 4672, 309, 3533, 18, 3459, 30, 555, 273, 1633, 397, 2213, 87, 30, 738, 87, 6, 738, 261, 10075, 18, 3459, 16, 3533, 18, 701, 1636, 13, 469, 30, 468, 2795, 17, 3446, 4186, 316, 16366, 1605, 2727, 1404, 468, 2341, 326, 1544, 316, 326, 1520, 733, 5, 555, 273, 1633, 397, 2213, 87, 6, 738, 3533, 18, 701, 1636, 469, 30, 555, 273, 1633, 397, 609, 12, 10075, 18919, 21, 5717, 225, 327, 555, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 3250, 67, 10274, 67, 1636, 261, 10075, 16, 1633, 1546, 1636, 30, 315, 4672, 3536, 4625, 279, 5301, 555, 883, 628, 392, 7518, 668, 261, 4294, 668, 578, 10002, 13, 1520, 733, 18, 225, 27020, 6600, 404, 18, 25, 18, 21, 471, 404, 18, 25, 18, 22, 5687, 16, 471, 1552, 4121, 518, 848, 358, 10490, 598, 1520, 2184, 716, 2727, 1404, 1240, 279, 1544, 261, 12784, 10555, 1347, 326, 555, 353, 6541, 358, 279, 2795, 17, 768, 1674, 16, 4123, 487, 296, 18539, 11866, 578, 296, 1232, 1435, 10332, 225, 2860, 326, 555, 883, 487, 279, 533, 12829, 598, 296, 3239, 10332, 3536, 468, 866, 364, 6600, 404, 18, 25, 18, 22, 17, 4060, 288, 4294, 2 ]
) as inq
def getNewTroveList(self, authToken, clientVersion, mark): try: mark = long(mark) except: # deny invalid marks raise errors.InsufficientPermission
91d7ab7a8240dbb3ab80a0adefc061f13820982c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/91d7ab7a8240dbb3ab80a0adefc061f13820982c/netserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12654, 56, 303, 537, 682, 12, 2890, 16, 24050, 16, 1004, 1444, 16, 2267, 4672, 775, 30, 2267, 273, 1525, 12, 3355, 13, 1335, 30, 468, 17096, 2057, 13999, 1002, 1334, 18, 5048, 11339, 5041, 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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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 ]
node.type.key_type = self._resolve(element_type[0]) node.type.value_type = self._resolve(element_type[1])
node.type.key_type = self._resolve(element_type[0], parent) node.type.value_type = self._resolve(element_type[1], parent)
def _apply_annotations_element_type(self, parent, node, options): element_type_opt = options.get(OPT_ELEMENT_TYPE) element_type = element_type_opt.flat() if isinstance(node.type, ast.List): assert len(element_type) == 1 node.type.element_type = self._resolve(element_type[0]) elif isinstance(node.type, ast.Map): assert len(element_type) == 2 node.type.key_type = self._resolve(element_type[0]) node.type.value_type = self._resolve(element_type[1]) elif isinstance(node.type, ast.Array): node.type.element_type = self._resolve(element_type[0]) else: message.warn_node(parent, "Unknown container %r for element-type annotation" % (node.type, ))
4577bf1a7f6dc33d1ff566ae8d1360f1fde769f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/4577bf1a7f6dc33d1ff566ae8d1360f1fde769f9/maintransformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9010, 67, 14670, 67, 2956, 67, 723, 12, 2890, 16, 982, 16, 756, 16, 702, 4672, 930, 67, 723, 67, 3838, 273, 702, 18, 588, 12, 15620, 67, 10976, 67, 2399, 13, 930, 67, 723, 273, 930, 67, 723, 67, 3838, 18, 15401, 1435, 309, 1549, 12, 2159, 18, 723, 16, 3364, 18, 682, 4672, 1815, 562, 12, 2956, 67, 723, 13, 422, 404, 756, 18, 723, 18, 2956, 67, 723, 273, 365, 6315, 10828, 12, 2956, 67, 723, 63, 20, 5717, 1327, 1549, 12, 2159, 18, 723, 16, 3364, 18, 863, 4672, 1815, 562, 12, 2956, 67, 723, 13, 422, 576, 756, 18, 723, 18, 856, 67, 723, 273, 365, 6315, 10828, 12, 2956, 67, 723, 63, 20, 6487, 982, 13, 756, 18, 723, 18, 1132, 67, 723, 273, 365, 6315, 10828, 12, 2956, 67, 723, 63, 21, 6487, 982, 13, 1327, 1549, 12, 2159, 18, 723, 16, 3364, 18, 1076, 4672, 756, 18, 723, 18, 2956, 67, 723, 273, 365, 6315, 10828, 12, 2956, 67, 723, 63, 20, 5717, 469, 30, 883, 18, 8935, 67, 2159, 12, 2938, 16, 315, 4874, 1478, 738, 86, 364, 930, 17, 723, 3204, 6, 738, 261, 2159, 18, 723, 16, 8623, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9010, 67, 14670, 67, 2956, 67, 723, 12, 2890, 16, 982, 16, 756, 16, 702, 4672, 930, 67, 723, 67, 3838, 273, 702, 18, 588, 12, 15620, 67, 10976, 67, 2399, 13, 930, 67, 723, 273, 930, 67, 723, 67, 3838, 18, 15401, 1435, 309, 1549, 12, 2159, 18, 723, 16, 3364, 18, 682, 4672, 1815, 562, 12, 2956, 67, 723, 13, 422, 404, 756, 18, 723, 18, 2956, 67, 723, 273, 365, 6315, 10828, 12, 2956, 67, 723, 63, 20, 5717, 1327, 1549, 12, 2159, 18, 723, 16, 3364, 18, 863, 4672, 1815, 562, 12, 2956, 67, 723, 13, 422, 576, 756, 18, 723, 18, 856, 67, 723, 273, 365, 6315, 10828, 12, 2956, 67, 723, 2 ]
self.learner = learner or SVMLearner(kernel_type=orange.SVMLearner.Linear)
self.learner = learner or SVMLearner(kernel_type=orange.SVMLearner.Linear, normalization=False)
def __init__(self, learner=None): self.learner = learner or SVMLearner(kernel_type=orange.SVMLearner.Linear)
5b752fa297e4e1a9f47e1fd1094721a4f0810d7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/5b752fa297e4e1a9f47e1fd1094721a4f0810d7b/orngSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 884, 24834, 33, 7036, 4672, 365, 18, 298, 24834, 273, 884, 24834, 578, 29537, 1495, 2091, 1224, 12, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 884, 24834, 33, 7036, 4672, 365, 18, 298, 24834, 273, 884, 24834, 578, 29537, 1495, 2091, 1224, 12, 8111, 67, 723, 33, 280, 726, 18, 23927, 1495, 2091, 1224, 18, 15982, 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 ]
print (path, garbage)
def retrieve(self, url, filename=None): url = unwrap(url) if self.tempcache and self.tempcache.has_key(url): return self.tempcache[url] type, url1 = splittype(url) if not filename and (not type or type == 'file'): try: fp = self.open_local_file(url1) hdrs = fp.info() del fp return url2pathname(splithost(url1)[1]), hdrs except IOError, msg: pass fp = self.open(url) headers = fp.info() if not filename: import tempfile garbage, path = splittype(url) print (garbage, path) garbage, path = splithost(path or "") print (garbage, path) path, garbage = splitquery(path or "") print (path, garbage) path, garbage = splitattr(path or "") print (path, garbage) suffix = os.path.splitext(path)[1] filename = tempfile.mktemp(suffix) self.__tempfiles.append(filename) result = filename, headers if self.tempcache is not None: self.tempcache[url] = result tfp = open(filename, 'wb') bs = 1024*8 block = fp.read(bs) while block: tfp.write(block) block = fp.read(bs) fp.close() tfp.close() del fp del tfp return result
d3ae7bd68cbe12dc8de31911aa5c8abf07b5a127 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d3ae7bd68cbe12dc8de31911aa5c8abf07b5a127/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 12, 2890, 16, 880, 16, 1544, 33, 7036, 4672, 880, 273, 11014, 12, 718, 13, 309, 365, 18, 874, 2436, 807, 471, 365, 18, 874, 2436, 807, 18, 5332, 67, 856, 12, 718, 4672, 327, 365, 18, 874, 2436, 807, 63, 718, 65, 618, 16, 880, 21, 273, 1416, 723, 12, 718, 13, 309, 486, 1544, 471, 261, 902, 618, 578, 618, 422, 296, 768, 11, 4672, 775, 30, 4253, 273, 365, 18, 3190, 67, 3729, 67, 768, 12, 718, 21, 13, 31424, 273, 4253, 18, 1376, 1435, 1464, 4253, 327, 880, 22, 28336, 12, 13106, 483, 669, 12, 718, 21, 25146, 21, 65, 3631, 31424, 1335, 8340, 16, 1234, 30, 1342, 4253, 273, 365, 18, 3190, 12, 718, 13, 1607, 273, 4253, 18, 1376, 1435, 309, 486, 1544, 30, 1930, 13275, 15340, 16, 589, 273, 1416, 723, 12, 718, 13, 1172, 261, 75, 12332, 16, 589, 13, 15340, 16, 589, 273, 6121, 483, 669, 12, 803, 578, 1408, 13, 1172, 261, 75, 12332, 16, 589, 13, 589, 16, 15340, 273, 1416, 2271, 12, 803, 578, 1408, 13, 589, 16, 15340, 273, 1416, 1747, 12, 803, 578, 1408, 13, 3758, 273, 1140, 18, 803, 18, 4939, 408, 12, 803, 25146, 21, 65, 1544, 273, 13275, 18, 24816, 5814, 12, 8477, 13, 365, 16186, 5814, 2354, 18, 6923, 12, 3459, 13, 563, 273, 1544, 16, 1607, 309, 365, 18, 874, 2436, 807, 353, 486, 599, 30, 365, 18, 874, 2436, 807, 63, 718, 65, 273, 563, 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, 4614, 12, 2890, 16, 880, 16, 1544, 33, 7036, 4672, 880, 273, 11014, 12, 718, 13, 309, 365, 18, 874, 2436, 807, 471, 365, 18, 874, 2436, 807, 18, 5332, 67, 856, 12, 718, 4672, 327, 365, 18, 874, 2436, 807, 63, 718, 65, 618, 16, 880, 21, 273, 1416, 723, 12, 718, 13, 309, 486, 1544, 471, 261, 902, 618, 578, 618, 422, 296, 768, 11, 4672, 775, 30, 4253, 273, 365, 18, 3190, 67, 3729, 67, 768, 12, 718, 21, 13, 31424, 273, 4253, 18, 1376, 1435, 1464, 4253, 327, 880, 22, 28336, 12, 13106, 483, 669, 12, 718, 21, 25146, 21, 65, 3631, 31424, 1335, 8340, 16, 1234, 30, 1342, 4253, 273, 365, 18, 3190, 2 ]
try: self['threads'][thread]['downloads'][-1]['minSize'] = self.getint(thread, i)
try: self['threads'][thread]['downloads'][-1]['minSize'] = ( self.getint(thread, i))
def parse(self): for option in self.boolOptionsGlobal: try: if option.lower() in self.options('global'): try: self['global'][option] = self.getboolean('global', option) except ValueError: print >> sys.stderr, u'failed to parse option %s in global' % option except ConfigParser.NoSectionError, m: raise SystemExit(unicodeC(m)) for option in self.stringOptionsGlobal: if option.lower() in self.options('global'): self['global'][option] = self._ifnone( self.get('global', option) ) for option in self.intOptionsGlobal: if option.lower() in self.options('global'): try: self['global'][option] = self.getint('global', option) except ValueError: print >> sys.stderr, u'failed to parse option %s in global' % option threads = self.sections() del threads[threads.index('global')] for thread in threads: self['threads'][thread] = ThreadLink() for option in self.boolOptionsThread: if option.lower() in self.options(thread): try: self['threads'][thread][option] = self.getboolean(thread, option) except ValueError: print >> sys.stderr, u'failed to parse option %s in thread %s' % (option, thread) for option in self.stringOptionsThread: if option.lower() in self.options(thread): self['threads'][thread][option] = self._ifnone( self.get(thread, option) ) for option in self.intOptionsThread: if option.lower() in self.options(thread): try: self['threads'][thread][option] = self.getint(thread, option) except ValueError: print >> sys.stderr, u'failed to parse option %s in thread %s' % (option, thread) #populate thread.downloads downList = [ x for x in self.options(thread) if x.lower().startswith('download') ] checkList = [ x for x in self.options(thread) if x.lower().startswith('checktime') ] downList.sort() for i in downList: if i.lower().endswith('false'): try: self['threads'][thread]['downloads'][-1]['False'] = self.getboolean(thread, i) # either boolean except ValueError: self['threads'][thread]['downloads'][-1]['False'] = self._ifnone( self.get(thread, i) ) # or a string elif i.lower().endswith('true'): try: self['threads'][thread]['downloads'][-1]['True'] = self.getboolean(thread, i) except ValueError: pass # let default holder elif i.lower().endswith('dir'): self['threads'][thread]['downloads'][-1]['Dir'] = self._ifnone( self.get(thread, i) ) elif i.lower().endswith('maxsize'): try: self['threads'][thread]['downloads'][-1]['maxSize'] = self.getint(thread, i) except ValueError: pass elif i.lower().endswith('minsize'): try: self['threads'][thread]['downloads'][-1]['minSize'] = self.getint(thread, i) except ValueError: pass elif i.lower().endswith('function'): self['threads'][thread]['downloads'][-1]['Function'] = self._ifnone( self.get(thread, i) ) else: self['threads'][thread]['downloads'].append( DownloadItemConfig( self.get(thread, i) ) ) # regex'd, would fail with None checkList.sort() for j in checkList: optionCheck = self.get(thread, j) if j.endswith('day'): if self.dayList.count(optionCheck.capitalize()): self['threads'][thread]['checkTime'].append( [self.dayList.index(optionCheck.capitalize()) % 7 , 0, 23] ) else: raise Exception, u"Could not identify valid day of the week for %s" % optionCheck elif j.endswith('start'): self['threads'][thread]['checkTime'][-1][1] = int(optionCheck) if self['threads'][thread]['checkTime'][-1][1] > 23: self['threads'][thread]['checkTime'][-1][1] = 23 elif self['threads'][thread]['checkTime'][-1][1] < 0: self['threads'][thread]['checkTime'][-1][1] = 0 elif j.endswith('stop'): self['threads'][thread]['checkTime'][-1][2] = int(optionCheck) if self['threads'][thread]['checkTime'][-1][2] > 23: self['threads'][thread]['checkTime'][-1][2] = 23 elif self['threads'][thread]['checkTime'][-1][2] < 0: self['threads'][thread]['checkTime'][-1][2] = 0
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 364, 1456, 316, 365, 18, 6430, 1320, 5160, 30, 775, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 775, 30, 365, 3292, 6347, 3546, 63, 3482, 65, 273, 365, 18, 588, 6494, 2668, 6347, 2187, 1456, 13, 1335, 2068, 30, 1172, 1671, 2589, 18, 11241, 16, 582, 11, 7307, 358, 1109, 1456, 738, 87, 316, 2552, 11, 738, 1456, 1335, 25076, 18, 2279, 5285, 668, 16, 312, 30, 1002, 25454, 12, 9124, 39, 12, 81, 3719, 364, 1456, 316, 365, 18, 1080, 1320, 5160, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 365, 3292, 6347, 3546, 63, 3482, 65, 273, 365, 6315, 430, 6102, 12, 365, 18, 588, 2668, 6347, 2187, 1456, 13, 262, 364, 1456, 316, 365, 18, 474, 1320, 5160, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 775, 30, 365, 3292, 6347, 3546, 63, 3482, 65, 273, 365, 18, 588, 474, 2668, 6347, 2187, 1456, 13, 1335, 2068, 30, 1172, 1671, 2589, 18, 11241, 16, 582, 11, 7307, 358, 1109, 1456, 738, 87, 316, 2552, 11, 738, 1456, 7403, 273, 365, 18, 11657, 1435, 1464, 7403, 63, 12495, 18, 1615, 2668, 6347, 6134, 65, 364, 2650, 316, 7403, 30, 365, 3292, 12495, 3546, 63, 5930, 65, 273, 4884, 2098, 1435, 364, 1456, 316, 365, 18, 6430, 1320, 3830, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 12, 5930, 4672, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 364, 1456, 316, 365, 18, 6430, 1320, 5160, 30, 775, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 775, 30, 365, 3292, 6347, 3546, 63, 3482, 65, 273, 365, 18, 588, 6494, 2668, 6347, 2187, 1456, 13, 1335, 2068, 30, 1172, 1671, 2589, 18, 11241, 16, 582, 11, 7307, 358, 1109, 1456, 738, 87, 316, 2552, 11, 738, 1456, 1335, 25076, 18, 2279, 5285, 668, 16, 312, 30, 1002, 25454, 12, 9124, 39, 12, 81, 3719, 364, 1456, 316, 365, 18, 1080, 1320, 5160, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 365, 3292, 6347, 3546, 63, 3482, 65, 273, 365, 6315, 2 ]
print 'SKIP URL ' + text
if debug: print 'SKIP URL ' + text
def check_list(text, cl): for entry in cl: if entry: if text.find(entry) != -1: print 'SKIP URL ' + text #print 'DEBUG: ' + entry return True
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1098, 12, 955, 16, 927, 4672, 364, 1241, 316, 927, 30, 309, 1241, 30, 309, 977, 18, 4720, 12, 4099, 13, 480, 300, 21, 30, 1172, 296, 22589, 1976, 296, 397, 977, 468, 1188, 296, 9394, 30, 296, 397, 1241, 327, 1053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1098, 12, 955, 16, 927, 4672, 364, 1241, 316, 927, 30, 309, 1241, 30, 309, 977, 18, 4720, 12, 4099, 13, 480, 300, 21, 30, 1172, 296, 22589, 1976, 296, 397, 977, 468, 1188, 296, 9394, 30, 296, 397, 1241, 327, 1053, 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 ]
elif _token_ == 'OPEN_PAREN': OPEN_PAREN = self._scan('OPEN_PAREN')
elif _token_ == 'PLACEHOLDER_OPEN_PAREN': PLACEHOLDER_OPEN_PAREN = self._scan('PLACEHOLDER_OPEN_PAREN')
def placeholder_suffix_expression(self, _previous_primary): _token_ = self._peek('DOT', 'OPEN_PAREN', 'OPEN_BRACKET') if _token_ == 'DOT': DOT = self._scan('DOT') ID = self._scan('ID') _primary = GetUDNNode(_previous_primary, ID) elif _token_ == 'OPEN_PAREN': OPEN_PAREN = self._scan('OPEN_PAREN') _arg_list = None if self._peek('CLOSE_PAREN', '"[ \\t]*not[ \\t]*"', 'START_PLACEHOLDER', 'ID', '"True"', '"False"', '\'"\'', '"\'"', 'NUM', 'OPEN_BRACKET', 'OPEN_PAREN', 'OPEN_BRACE', "'[ \\t]*\\-[ \\t]*'") != 'CLOSE_PAREN': argument_list = self.argument_list() _arg_list = argument_list CLOSE_PAREN = self._scan('CLOSE_PAREN') _primary = CallFunctionNode(_previous_primary, _arg_list) else:# == 'OPEN_BRACKET' OPEN_BRACKET = self._scan('OPEN_BRACKET') expression = self.expression() _primary = SliceNode(_previous_primary, expression) CLOSE_BRACKET = self._scan('CLOSE_BRACKET') return _primary
021a128968e749a38255378c63ac9abcc4edb9e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4381/021a128968e749a38255378c63ac9abcc4edb9e6/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6695, 67, 8477, 67, 8692, 12, 2890, 16, 389, 11515, 67, 8258, 4672, 389, 2316, 67, 273, 365, 6315, 347, 3839, 2668, 17591, 2187, 296, 11437, 67, 15111, 2187, 296, 11437, 67, 21217, 6134, 309, 389, 2316, 67, 422, 296, 17591, 4278, 15772, 273, 365, 6315, 9871, 2668, 17591, 6134, 1599, 273, 365, 6315, 9871, 2668, 734, 6134, 389, 8258, 273, 968, 57, 8609, 907, 24899, 11515, 67, 8258, 16, 1599, 13, 1327, 389, 2316, 67, 422, 296, 12134, 21424, 67, 11437, 67, 15111, 4278, 25564, 1441, 21424, 67, 11437, 67, 15111, 273, 365, 6315, 9871, 2668, 12134, 21424, 67, 11437, 67, 15111, 6134, 389, 3175, 67, 1098, 273, 599, 309, 365, 6315, 347, 3839, 2668, 13384, 67, 15111, 2187, 2119, 63, 1736, 88, 5772, 902, 63, 1736, 88, 5772, 6, 2187, 296, 7570, 67, 12134, 21424, 2187, 296, 734, 2187, 2119, 5510, 6, 2187, 2119, 8381, 6, 2187, 2337, 4970, 3730, 2187, 2119, 3730, 6, 2187, 296, 6069, 2187, 296, 11437, 67, 21217, 2187, 296, 11437, 67, 15111, 2187, 296, 11437, 67, 26980, 2187, 2491, 63, 1736, 88, 5772, 1695, 17, 63, 1736, 88, 65, 4035, 7923, 480, 296, 13384, 67, 15111, 4278, 1237, 67, 1098, 273, 365, 18, 3446, 67, 1098, 1435, 389, 3175, 67, 1098, 273, 1237, 67, 1098, 14435, 67, 15111, 273, 365, 6315, 9871, 2668, 13384, 67, 15111, 6134, 389, 8258, 273, 3049, 2083, 907, 24899, 11515, 67, 8258, 16, 389, 3175, 67, 1098, 13, 469, 27363, 422, 296, 11437, 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, 6695, 67, 8477, 67, 8692, 12, 2890, 16, 389, 11515, 67, 8258, 4672, 389, 2316, 67, 273, 365, 6315, 347, 3839, 2668, 17591, 2187, 296, 11437, 67, 15111, 2187, 296, 11437, 67, 21217, 6134, 309, 389, 2316, 67, 422, 296, 17591, 4278, 15772, 273, 365, 6315, 9871, 2668, 17591, 6134, 1599, 273, 365, 6315, 9871, 2668, 734, 6134, 389, 8258, 273, 968, 57, 8609, 907, 24899, 11515, 67, 8258, 16, 1599, 13, 1327, 389, 2316, 67, 422, 296, 12134, 21424, 67, 11437, 67, 15111, 4278, 25564, 1441, 21424, 67, 11437, 67, 15111, 273, 365, 6315, 9871, 2668, 12134, 21424, 67, 11437, 67, 15111, 6134, 389, 3175, 67, 1098, 273, 599, 309, 365, 6315, 347, 3839, 2668, 13384, 67, 2 ]
test_support.run_unittest(VectorTest, NumberTest, MiscTest, DictTest, ListTest)
test_support.run_unittest(VectorTest, NumberTest, MiscTest, DictTest, ListTest, HashableTest)
def test_main(): test_support.run_unittest(VectorTest, NumberTest, MiscTest, DictTest, ListTest)
a7db97636653b6820f3ed9ac2eb87189e37fca7b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/a7db97636653b6820f3ed9ac2eb87189e37fca7b/test_richcmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 5018, 4709, 16, 3588, 4709, 16, 16584, 71, 4709, 16, 9696, 4709, 16, 987, 4709, 16, 2474, 429, 4709, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 5018, 4709, 16, 3588, 4709, 16, 16584, 71, 4709, 16, 9696, 4709, 16, 987, 4709, 16, 2474, 429, 4709, 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 ]
return(array(dbars))
return(ravel(dbars))
def dbar(self, bs=[]): #{{{2 """ Return the mean L{mhd} from the L{Lineament} to its doppelgangers having the given backrotation. If no doppelgangers have that backrotation, generate them.
3ce7bee8800eba157d17edf5e5b124d917ff6021 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3464/3ce7bee8800eba157d17edf5e5b124d917ff6021/lineament.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 297, 12, 2890, 16, 7081, 33, 8526, 4672, 3735, 12187, 22, 3536, 2000, 326, 3722, 511, 95, 81, 22057, 97, 628, 326, 511, 95, 1670, 14773, 97, 358, 2097, 302, 556, 84, 292, 75, 539, 414, 7999, 326, 864, 1473, 18807, 18, 225, 971, 1158, 302, 556, 84, 292, 75, 539, 414, 1240, 716, 1473, 18807, 16, 2103, 2182, 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, 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 18807, 18, 225, 971, 1158, 302, 556, 84, 292, 75, 539, 414, 1240, 716, 1473, 18807, 16, 2103, 2182, 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 ]
pass
global _completer_delims, _completer_delims_set _completer_delims = string _completer_delims_set = set(string)
def set_completer_delims(string): pass
24d3df536f1a55ecda3dd9e7f94f30c1a507dddb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/24d3df536f1a55ecda3dd9e7f94f30c1a507dddb/readline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 832, 17754, 67, 3771, 12097, 12, 1080, 4672, 2552, 389, 832, 17754, 67, 3771, 12097, 16, 389, 832, 17754, 67, 3771, 12097, 67, 542, 389, 832, 17754, 67, 3771, 12097, 273, 533, 389, 832, 17754, 67, 3771, 12097, 67, 542, 273, 444, 12, 1080, 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, 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 67, 3771, 12097, 16, 389, 832, 17754, 67, 3771, 12097, 67, 542, 389, 832, 17754, 67, 3771, 12097, 273, 533, 389, 832, 17754, 67, 3771, 12097, 67, 542, 273, 444, 12, 1080, 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 ]
print "Couldn't find that builder, or build did not compile."
print "I could not find that builder, or build did not compile." print "Check that the builder name matches exactly (case sensitive)," print "and wrap quotes around builder names that have spaces."
def _ScrapeBuilderOutput(self): # If the build log file is specified, use that instead of scraping. if self.builder_output_log_file: log = open(self.builder_output_log_file, 'r') return "".join(log.readlines())
36ab901b4725c5605ff2df5df681c32a3782a143 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/36ab901b4725c5605ff2df5df681c32a3782a143/failure_finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1541, 25360, 1263, 1447, 12, 2890, 4672, 468, 971, 326, 1361, 613, 585, 353, 1269, 16, 999, 716, 3560, 434, 888, 1266, 310, 18, 309, 365, 18, 9574, 67, 2844, 67, 1330, 67, 768, 30, 613, 273, 1696, 12, 2890, 18, 9574, 67, 2844, 67, 1330, 67, 768, 16, 296, 86, 6134, 327, 1408, 18, 5701, 12, 1330, 18, 896, 3548, 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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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, 389, 1541, 25360, 1263, 1447, 12, 2890, 4672, 468, 971, 326, 1361, 613, 585, 353, 1269, 16, 999, 716, 3560, 434, 888, 1266, 310, 18, 309, 365, 18, 9574, 67, 2844, 67, 1330, 67, 768, 30, 613, 273, 1696, 12, 2890, 18, 9574, 67, 2844, 67, 1330, 67, 768, 16, 296, 86, 6134, 327, 1408, 18, 5701, 12, 1330, 18, 896, 3548, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.setup[6]:
if not self.setup[14]:
def processEmail(mailbox, data, idList, account, count, id, tmpData): conds = ["%s.find(%s)>-1", "not %s.find(%s)>-1", "%s==%s", "not %s==%s", "%s.startswith(%s)", "%s.endswith(%s)"] msg = myParser.parsestr(data) parts = GetParts(msg) flag = False if self.setup[4] == 1: #filter AND mode i = 0 while i < 6: what, cond, strng = self.setup[5][i] if what > 0 and not eval(conds[cond] % (('parts[what-1]'), 'strng')): break i += 1 if i == 6: flag = True else: #filter OR mode i = 0 while i < 6: what, cond, strng = self.setup[5][i] if what > 0 and eval(conds[cond] % (('parts[what-1]'), 'strng')): flag = True break i += 1 if flag: if msg.has_key('Message-Id'): messId = msg['Message-Id'] else: messId = parts[1] if self.setup[11]: #trigger event for each email ? if not messId in idList: if self.setup[13] > 0: eg.TriggerEvent(self.setup[12], payload = parts[self.setup[13]-1], prefix = 'E-mail') else: eg.TriggerEvent(self.setup[12], prefix = 'E-mail') if self.setup[14]: #~ delete if account[1] == 0: #POP resp = mailbox.dele(id) #if resp[:3]=='+OK': # print "deleted !!!" # notDeleted = False else: resp = mailbox.store(id, "+FLAGS", '(\Deleted)') #if resp[0] =='OK': # resp = mailbox.expunge() # if resp[0] =='OK': # print "deleted !!!" count += 1 #show notification window? if self.setup[6]: tmpRec = [messId] #0 ID tmpRec.append(parts[0]) #1 Subject tmpRec.append(parts[1]) #2 From tmpRec.append(account[0]) #3 tmpRec.append(str(count)) #4 tmpRec.append(id) #5 tmpData.append(tmpRec) return (count, tmpData)
13d01fd8c7f4aa0f76ad65c4e2acaf56decc3fae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/13d01fd8c7f4aa0f76ad65c4e2acaf56decc3fae/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 4134, 12, 4408, 2147, 16, 501, 16, 29174, 16, 2236, 16, 1056, 16, 612, 16, 1853, 751, 4672, 30958, 273, 8247, 9, 87, 18, 4720, 9275, 87, 13, 34, 17, 21, 3113, 315, 902, 738, 87, 18, 4720, 9275, 87, 13, 34, 17, 21, 3113, 2213, 87, 631, 9, 87, 3113, 315, 902, 738, 87, 631, 9, 87, 3113, 2213, 87, 18, 17514, 1918, 9275, 87, 2225, 16, 2213, 87, 18, 5839, 1918, 9275, 87, 2225, 65, 1234, 273, 3399, 2678, 18, 1065, 2420, 313, 12, 892, 13, 2140, 273, 968, 4305, 12, 3576, 13, 2982, 273, 1083, 309, 365, 18, 8401, 63, 24, 65, 422, 404, 30, 468, 2188, 4116, 1965, 277, 273, 374, 1323, 277, 411, 1666, 30, 4121, 16, 6941, 16, 609, 3368, 273, 365, 18, 8401, 63, 25, 6362, 77, 65, 309, 4121, 405, 374, 471, 486, 5302, 12, 20874, 63, 10013, 65, 738, 261, 2668, 6019, 63, 23770, 17, 21, 3864, 3631, 296, 701, 3368, 26112, 30, 898, 277, 1011, 404, 309, 277, 422, 1666, 30, 2982, 273, 1053, 469, 30, 5375, 468, 2188, 4869, 1965, 277, 273, 374, 1323, 277, 411, 1666, 30, 4121, 16, 6941, 16, 609, 3368, 273, 365, 18, 8401, 63, 25, 6362, 77, 65, 309, 4121, 405, 374, 471, 5302, 12, 20874, 63, 10013, 65, 738, 261, 2668, 6019, 63, 23770, 17, 21, 3864, 3631, 296, 701, 3368, 26112, 30, 2982, 273, 1053, 898, 277, 1011, 404, 309, 2982, 30, 309, 1234, 18, 5332, 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, 1207, 4134, 12, 4408, 2147, 16, 501, 16, 29174, 16, 2236, 16, 1056, 16, 612, 16, 1853, 751, 4672, 30958, 273, 8247, 9, 87, 18, 4720, 9275, 87, 13, 34, 17, 21, 3113, 315, 902, 738, 87, 18, 4720, 9275, 87, 13, 34, 17, 21, 3113, 2213, 87, 631, 9, 87, 3113, 315, 902, 738, 87, 631, 9, 87, 3113, 2213, 87, 18, 17514, 1918, 9275, 87, 2225, 16, 2213, 87, 18, 5839, 1918, 9275, 87, 2225, 65, 1234, 273, 3399, 2678, 18, 1065, 2420, 313, 12, 892, 13, 2140, 273, 968, 4305, 12, 3576, 13, 2982, 273, 1083, 309, 365, 18, 8401, 63, 24, 65, 422, 404, 30, 468, 2188, 4116, 1965, 277, 273, 374, 1323, 277, 2 ]
text += "<nobr>Unhandled exception of type <b>%s </b> occured at %d:%02d:%02d:</nobr><br><nobr>Traceback:</nobr><br>" % ( str(type) , t[3],t[4],t[5])
text += "<nobr>Unhandled exception of type <b>%s </b> occured at %d:%02d:%02d:</nobr><br><nobr>Traceback:</nobr><br>" % ( str(type).replace("<", "(").replace(">", ")") , t[3],t[4],t[5])
def exceptionHandler(self, type, value, tracebackInfo): if self.focusOnCatchException: self.canvasDlg.menuItemShowOutputWindow() #self.canvasDlg.workspace.cascade() # cascade shown windows
40829685cd29c8dfe4184ee8d3348b4e8d4571ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/40829685cd29c8dfe4184ee8d3348b4e8d4571ea/orngOutput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 1503, 12, 2890, 16, 618, 16, 460, 16, 10820, 966, 4672, 309, 365, 18, 13923, 1398, 14842, 503, 30, 365, 18, 15424, 40, 23623, 18, 5414, 1180, 5706, 1447, 3829, 1435, 468, 2890, 18, 15424, 40, 23623, 18, 14915, 18, 22277, 1435, 565, 468, 17599, 12188, 9965, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 1503, 12, 2890, 16, 618, 16, 460, 16, 10820, 966, 4672, 309, 365, 18, 13923, 1398, 14842, 503, 30, 365, 18, 15424, 40, 23623, 18, 5414, 1180, 5706, 1447, 3829, 1435, 468, 2890, 18, 15424, 40, 23623, 18, 14915, 18, 22277, 1435, 565, 468, 17599, 12188, 9965, 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 ]
nn = gap.eval("NumeratorOfRationalFunction(ff)") dd = gap.eval("DenominatorOfRationalFunction(ff)")
nn = gap.eval("NumeratorOfRationalFunction(ff)").replace("x_1","x") dd = gap.eval("DenominatorOfRationalFunction(ff)").replace("x_1","x")
def poincare_series(self, p=2, n=10): """ Returns the Poincare series of G mod p (p must be a prime), for n>1 large. In other words, if you input a finite group G, a prime p, and a positive integer n, it returns a quotient of polynomials f(x)=P(x)/Q(x) whose coefficient of $x^k$ equals the rank of the vector space $H_k(G,ZZ/pZZ)$, for all k in the range $1\leq k \leq n$. REQUIRES: GAP package HAP (in gap_packages-*.spkg).
dec2af0d3a1e0445413373435894862c1e9fe7bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/dec2af0d3a1e0445413373435894862c1e9fe7bf/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 885, 71, 834, 67, 10222, 12, 2890, 16, 293, 33, 22, 16, 290, 33, 2163, 4672, 3536, 2860, 326, 453, 885, 71, 834, 4166, 434, 611, 681, 293, 261, 84, 1297, 506, 279, 17014, 3631, 364, 290, 34, 21, 7876, 18, 657, 1308, 4511, 16, 309, 1846, 810, 279, 25922, 1041, 611, 16, 279, 17014, 293, 16, 471, 279, 6895, 3571, 290, 16, 518, 1135, 279, 26708, 434, 16991, 87, 284, 12, 92, 13, 33, 52, 12, 92, 13176, 53, 12, 92, 13, 8272, 16554, 434, 271, 92, 66, 79, 8, 1606, 326, 6171, 434, 326, 3806, 3476, 271, 44, 67, 79, 12, 43, 16, 27096, 19, 84, 27096, 21877, 16, 364, 777, 417, 316, 326, 1048, 271, 21, 64, 298, 85, 417, 521, 298, 85, 290, 8, 18, 225, 2438, 8627, 7031, 30, 611, 2203, 2181, 670, 2203, 261, 267, 9300, 67, 10308, 17, 11146, 1752, 14931, 2934, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 885, 71, 834, 67, 10222, 12, 2890, 16, 293, 33, 22, 16, 290, 33, 2163, 4672, 3536, 2860, 326, 453, 885, 71, 834, 4166, 434, 611, 681, 293, 261, 84, 1297, 506, 279, 17014, 3631, 364, 290, 34, 21, 7876, 18, 657, 1308, 4511, 16, 309, 1846, 810, 279, 25922, 1041, 611, 16, 279, 17014, 293, 16, 471, 279, 6895, 3571, 290, 16, 518, 1135, 279, 26708, 434, 16991, 87, 284, 12, 92, 13, 33, 52, 12, 92, 13176, 53, 12, 92, 13, 8272, 16554, 434, 271, 92, 66, 79, 8, 1606, 326, 6171, 434, 326, 3806, 3476, 271, 44, 67, 79, 12, 43, 16, 27096, 19, 84, 27096, 21877, 16, 364, 777, 417, 316, 326, 1048, 2 ]
computed bound is greater than a value set by the eclib
computed bound is greater than a value set by the ``eclib``
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be saturated, and this is used; however, if the computed bound is greater than a value set by the eclib library (currently 97) then no saturation will be attempted at primes above this. - ``odd_primes_only`` (bool, default False) -- only do saturation at odd primes. (If the points have been found via 2-descent they should alreday be 2-saturated.)
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 225, 12943, 30, 225, 300, 12176, 1896, 67, 16382, 10335, 261, 474, 16, 805, 300, 21, 13, 1493, 22824, 353, 9591, 364, 777, 846, 4485, 731, 358, 1375, 1896, 67, 16382, 8338, 971, 1375, 17, 21, 68, 261, 1886, 13, 1508, 392, 3854, 2489, 353, 8470, 364, 326, 846, 4485, 622, 1492, 326, 720, 1655, 2026, 486, 506, 5942, 28480, 16, 471, 333, 353, 1399, 31, 14025, 16, 309, 326, 8470, 2489, 353, 6802, 2353, 279, 460, 444, 635, 326, 12176, 557, 2941, 10335, 5313, 261, 2972, 715, 16340, 13, 1508, 1158, 22824, 903, 506, 18121, 622, 846, 4485, 5721, 333, 18, 225, 300, 12176, 31755, 67, 683, 4485, 67, 3700, 10335, 261, 6430, 16, 805, 1083, 13, 1493, 1338, 741, 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 225, 12943, 30, 225, 300, 12176, 1896, 67, 16382, 10335, 261, 474, 16, 805, 300, 21, 13, 1493, 22824, 353, 9591, 364, 777, 846, 4485, 731, 358, 1375, 1896, 67, 16382, 8338, 971, 1375, 17, 21, 68, 261, 1886, 13, 1508, 392, 3854, 2489, 353, 8470, 364, 326, 846, 4485, 622, 1492, 326, 720, 1655, 2026, 486, 506, 5942, 28480, 16, 471, 333, 353, 1399, 31, 14025, 16, 309, 326, 8470, 2489, 353, 6802, 2353, 279, 460, 444, 635, 2 ]
self.tk.call(self._w, 'appendhistory', str)
self.tk.call(self._w, 'appendhistory', str)
def append_history(self, str):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 8189, 12, 2890, 16, 609, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 67, 8189, 12, 2890, 16, 609, 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 ]
sys.path.append(load_path) try: import simplejson as Simplejson simplejson = Simplejson except ImportError, e: msg = "%s expects to live within a Chromium checkout" % sys.argv[0] raise Exception, "Error trying to import simplejson from %s (%s)" % \ (load_path, msg) finally: sys.path = old_path return True
def CheckChangeOnCommit(input_api, output_api): run_tests = False for path in input_api.LocalPaths(): if PERF_EXPECTATIONS == input_api.os_path.basename(path): run_tests = True
def OnTestsLoad(): old_path = sys.path script_path = os.path.dirname(sys.argv[0]) load_path = None global simplejson # This test script should be stored in src/tools/perf_expectations/. That # directory will most commonly live in 2 locations: # # - a regular Chromium checkout, in which case src/third_party # is where to look for simplejson # # - a buildbot checkout, in which case .../pylibs is where # to look for simplejson # # Locate and install the correct path based on what we can find. # for path in ('../../../third_party', '../../../../../pylibs'): path = os.path.join(script_path, path) if os.path.exists(path) and os.path.isdir(path): load_path = os.path.abspath(path) break if load_path is None: msg = "%s expects to live within a Chromium checkout" % sys.argv[0] raise Exception, "Error locating simplejson load path (%s)" % msg # Try importing simplejson once. If this succeeds, we found it and will # load it again later properly. Fail if we cannot load it. sys.path.append(load_path) try: import simplejson as Simplejson simplejson = Simplejson except ImportError, e: msg = "%s expects to live within a Chromium checkout" % sys.argv[0] raise Exception, "Error trying to import simplejson from %s (%s)" % \ (load_path, msg) finally: sys.path = old_path return True
fec974ab6785fd2a4a3c3fcfe3552188fb83e24b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/fec974ab6785fd2a4a3c3fcfe3552188fb83e24b/PRESUBMIT.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 14650, 2563, 13332, 1592, 67, 803, 273, 2589, 18, 803, 2728, 67, 803, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 19485, 63, 20, 5717, 1262, 67, 803, 273, 599, 2552, 4143, 1977, 225, 468, 1220, 1842, 2728, 1410, 506, 4041, 316, 1705, 19, 6642, 19, 19825, 67, 12339, 1012, 15865, 225, 12466, 468, 1867, 903, 4486, 2975, 715, 8429, 316, 576, 7838, 30, 468, 468, 282, 300, 279, 6736, 1680, 520, 5077, 13926, 16, 316, 1492, 648, 1705, 19, 451, 6909, 67, 21214, 468, 377, 353, 1625, 358, 2324, 364, 4143, 1977, 468, 468, 282, 300, 279, 1361, 4819, 13926, 16, 316, 1492, 648, 1372, 19, 2074, 21571, 353, 1625, 468, 377, 358, 2324, 364, 4143, 1977, 468, 468, 2851, 340, 471, 3799, 326, 3434, 589, 2511, 603, 4121, 732, 848, 1104, 18, 468, 364, 589, 316, 7707, 16644, 6216, 451, 6909, 67, 21214, 2187, 296, 16644, 16644, 6216, 2074, 21571, 11, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 4263, 67, 803, 16, 589, 13, 309, 1140, 18, 803, 18, 1808, 12, 803, 13, 471, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 1262, 67, 803, 273, 1140, 18, 803, 18, 5113, 803, 12, 803, 13, 898, 225, 309, 1262, 67, 803, 353, 599, 30, 1234, 273, 2213, 87, 10999, 358, 8429, 3470, 279, 1680, 520, 5077, 13926, 6, 738, 2589, 18, 19485, 63, 20, 65, 1002, 1185, 16, 315, 668, 1515, 1776, 4143, 1977, 1262, 589, 6142, 87, 2225, 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, 2755, 14650, 2563, 13332, 1592, 67, 803, 273, 2589, 18, 803, 2728, 67, 803, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 19485, 63, 20, 5717, 1262, 67, 803, 273, 599, 2552, 4143, 1977, 225, 468, 1220, 1842, 2728, 1410, 506, 4041, 316, 1705, 19, 6642, 19, 19825, 67, 12339, 1012, 15865, 225, 12466, 468, 1867, 903, 4486, 2975, 715, 8429, 316, 576, 7838, 30, 468, 468, 282, 300, 279, 6736, 1680, 520, 5077, 13926, 16, 316, 1492, 648, 1705, 19, 451, 6909, 67, 21214, 468, 377, 353, 1625, 358, 2324, 364, 4143, 1977, 468, 468, 282, 300, 279, 1361, 4819, 13926, 16, 316, 1492, 648, 1372, 19, 2074, 21571, 353, 1625, 468, 377, 358, 2324, 364, 2 ]
if shared_storage: parsed = parser.Section else: items = [(key, parser.Section[key]) for key in parser.Section.keys()] parsed = Deb822Dict(items)
parsed = TagFileWrapper(parser) if not shared_storage: parsed = Deb822Dict(parsed)
def iter_paragraphs(cls, sequence, fields=None, use_apt_pkg=True, shared_storage=False): """Generator that yields a Deb822 object for each paragraph in sequence.
7e62dda78541fb310e19ef904981a0c46ea3ac9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12282/7e62dda78541fb310e19ef904981a0c46ea3ac9d/deb822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 22445, 87, 12, 6429, 16, 3102, 16, 1466, 33, 7036, 16, 999, 67, 1657, 67, 10657, 33, 5510, 16, 5116, 67, 5697, 33, 8381, 4672, 3536, 3908, 716, 16932, 279, 1505, 70, 24532, 733, 364, 1517, 10190, 316, 3102, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 22445, 87, 12, 6429, 16, 3102, 16, 1466, 33, 7036, 16, 999, 67, 1657, 67, 10657, 33, 5510, 16, 5116, 67, 5697, 33, 8381, 4672, 3536, 3908, 716, 16932, 279, 1505, 70, 24532, 733, 364, 1517, 10190, 316, 3102, 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 ]
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.exists(wikiFilename) and maxCount < 15: sys.stdout.write("File %s already exists.\n"%\ os.path.split(wikiFilename)[1]) wikiFilename=wikiFilename+".wiki" maxCount=maxCount+1 sys.stdout.write("Available via browser for wiki upload at %s\n"\ %(file2URL.convert(wikiFilename))) # #Create the wikipage object etc # wikiPage=wiki(wikiFilename) # # Create top two trigger params tables # cTable=wikiPage.wikiTable(2,9) cTable.data=[ ["Trigger Type", "Rank", "FAR", "SNR", "IFOS(Coinc)", "Instruments(Active)", "Coincidence Time (s)", "Total Mass (mSol)", "Chirp Mass (mSol)" ], ["%s"%(wikiCoinc.type), "%s"%(wikiCoinc.rank), "%s"%(wikiCoinc.far), "%s"%(wikiCoinc.snr), "%s"%(wikiCoinc.ifos), "%s"%(wikiCoinc.instruments), "%s"%(wikiCoinc.time), "%s"%(wikiCoinc.mass), "%s"%(wikiCoinc.mchirp) ] ] pTable=wikiPage.wikiTable(len(wikiCoinc.sngls_in_coinc())+1,7) pTable.data[0]=[ "IFO", "GPS Time(s)", "SNR", "CHISQR", "Mass 1", "Mass 2", "Chirp Mass" ] for row,cSngl in enumerate(wikiCoinc.sngls_in_coinc()): pTable.data[row+1]=[ "%s"%(cSngl.ifo), "%s"%(cSngl.time), "%s"%(cSngl.snr), "%s"%(cSngl.chisqr), "%s"%(cSngl.mass1), "%s"%(cSngl.mass2), "%s"%(cSngl.mchirp) ] #Write the tables into the Wiki object wikiPage.putText("Coincident Trigger Event Information: %s\n"\ %(stfu_pipe.gpsTimeToReadableDate(wikiCoinc.time))) wikiPage.insertTable(cTable) wikiPage.putText("Corresponding Coincident Single IFO Trigger Information\n") wikiPage.insertTable(pTable) #Generate a table of contents to appear after candidate params table wikiPage.tableOfContents(3) #Begin including each checklist item as section with subsections wikiPage.section("Follow-up Checklist") #Put each checklist item wikiPage.subsection("Checklist Summary") wikiPage.subsubsection("Does this candidate pass this checklist?") wikiPage.subsubsection("Answer") wikiPage.subsubsection("Relevant Information and Comments") wikiPage.insertHR() # #First real checklist item wikiPage.subsection("#0 False Alarm Probability") wikiPage.subsubsection("Question") wikiPage.putText("What is the false alarm rate associated with this candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") farTable=wikiPage.wikiTable(2,1) farTable.setTableStyle("background-color: yellow; text-align center;") farTable.data[0][0]="False Alarm Rate" farTable.data[1][0]="%s"%(wikiCoinc.far) wikiPage.insertTable(farTable) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#1 Data Quality Flags") wikiPage.subsubsection("Question") wikiPage.putText("Can the data quality flags coincident with this candidate be safely disregarded?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPath=os.path.split(wikiFilename)[0] dqFileList=wikiFileFinder.get_findFlags() if len(dqFileList) != 1: sys.stdout.write("Warning: DQ flags data product import problem.\n") print "Found %i files."%len(dqFileList) for mf in dqFileList: print mf for myFile in dqFileList: wikiPage.putText("%s\n"%(file(myFile).read())) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#2 Veto Investigations") wikiPage.subsubsection("Question") wikiPage.putText("Does the candidate survive the veto investigations performed at its time?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") vetoFileList=wikiFileFinder.get_findVetos() if len(vetoFileList) != 1: sys.stdout.write("Warning: Veto flags data product import problem.\n") for myFile in vetoFileList:print myFile for myFile in vetoFileList: wikiPage.putText("%s\n"%(file(myFile).read())) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#3 IFO Status") wikiPage.subsubsection("Question") wikiPage.putText("Are the interferometers operating normally with a reasonable level of sensitivity around the time of the candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") #Add link to Daily Stats if wikiCoinc.time <= endOfS5: statsLink=wikiPage.makeExternalLink("http://blue.ligo-wa.caltech.edu/scirun/S5/DailyStatistics/",\ "S5 Daily Stats Page") else: statsLink="This should be a link to S6 Daily Stats!\n" wikiPage.putText(statsLink) #Link figures of merit #Get link for all members of wikiCoinc wikiPage.putText("Figures of Merit\n") wikiPage.putText("UTC Time of trigger :%s"%(stfu_pipe.gpsTimeToReadableDate(wikiCoinc.time))) if wikiCoinc.time > endOfS5: fomLinks=dict() elems=0 for wikiSngl in wikiCoinc.sngls: if not(wikiSngl.ifo.upper().rstrip().lstrip() == 'V1'): fomLinks[wikiSngl.ifo]=stfu_pipe.getFOMLinks(wikiCoinc.time,wikiSngl.ifo) elems=elems+len(fomLinks[wikiSngl.ifo]) else: for myLabel,myLink,myThumb in stfu_pipe.getFOMLinks(wikiCoinc.time,wikiSngl.ifo): wikiPage.putText("%s\n"%(wikiPage.makeExternalLink(myLink,myLabel))) cols=4 rows=(elems/3)+1 fTable=wikiPage.wikiTable(rows,cols) fTable.data[0]=["IFO,Shift","FOM1","FOM2","FOM3"] currentIndex=0 for myIFOKey in fomLinks.keys(): for label,link,thumb in fomLinks[myIFOKey]: myRow=currentIndex/int(3)+1 myCol=currentIndex%int(3)+1 fTable.data[myRow][0]=label thumbURL=thumb fTable.data[myRow][myCol]="%s"%(wikiPage.linkedRemoteImage(thumb,link)) currentIndex=currentIndex+1 wikiPage.insertTable(fTable) else: wikiPage.putText("Can not automatically fetch S5 FOM links.") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #Additional Checklist Item #First real checklist item wikiPage.subsection("#4 Candidate Appearance") wikiPage.subsubsection("Question") wikiPage.putText("Do the Qscan figures show what we would expect for a gravitational-wave event?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") imageDict=dict() indexDict=dict() thumbDict=dict() for sngl in wikiCoinc.sngls: frametype,channelName=stfu_pipe.figure_out_type(sngl.time,sngl.ifo,'hoft') if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype indexDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_hoft_frame(),\ "*/%s/*/%s/*index.html"%(frametype,sngl.time)) imageDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_hoft_frame(),\ "*%s*_%s_16.00_spectrogram_whitened.png"\ %(sngl.time,channelName)) thumbDict[sngl.ifo]=fnmatch.filter(wikiFileFinder.get_hoft_frame(),\ "*%s*_%s_16.00_spectrogram_whitened?thumb.png"\ %(sngl.time,channelName)) # #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] if len(indexDict[sngl.ifo]) < 1: wikiPage.putText("GW data channel scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >= 1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >= 1 if enoughImage and enoughIndex: wikiPage.insertQscanTable(imageDict,\ thumbDict,\ indexDict) else: sys.stdout.write("Warning: Candidate appearance plot import problem.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#5 Seismic Plots") wikiPage.subsubsection("Question") wikiPage.putText("Is the seismic activity insignificant around the time of the candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") # imageDict,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() filesOmega=wikiFileFinder.get_RDS_R_L1_SEIS() filesAnalyze=wikiFileFinder.get_analyzeQscan_SEIS() for sngl in wikiCoinc.sngls_in_coinc(): indexDict[sngl.ifo],imageDict[sngl.ifo],thumbDict[sngl.ifo],zValueDict[sngl.ifo]=list(),list(),list(),list() indexDictAQ[sngl.ifo],imageDictAQ[sngl.ifo],thumbDictAQ[sngl.ifo],zValueDictAQ[sngl.ifo]=list(),list(),list(),list() frametype,channelName=stfu_pipe.figure_out_type(sngl.time,sngl.ifo,'rds') if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype if sngl.ifo == "V1": chankey = "Em_SE" else: chankey = "SEI" indexDict[sngl.ifo]=fnmatch.filter(filesOmega,\ "*/%s_*/%s/*index.html"%(frametype,sngl.time)) imageDict[sngl.ifo]=fnmatch.filter(filesOmega,\ "*/%s_*/%s/*%s*_512.00_spectrogram_whitened.png"%\ (frametype,sngl.time,chankey)) thumbDict[sngl.ifo]=fnmatch.filter(filesOmega,\ "*/%s_*/%s/*%s*_512.00_spectrogram_whitened?thumb.png"%\ (frametype,sngl.time,chankey)) #Search for corresponding Omega summary.txt file zValueDict[sngl.ifo]=list() for zFile in fnmatch.filter(filesOmega,\ "*/%s_*/%s/*summary.txt"%(frametype,sngl.time)): for chan in wikiFileFinder.__readSummary__(zFile): if chankey in chan[0]: zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Search for analyzeQscan files timeString=str(float(sngl.time)).replace(".","_") indexDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ "*_%s_%s_*.html"%(sngl.ifo,timeString)) imageDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_%s*_z_scat-unspecified-gpstime.png"\ %(sngl.ifo,timeString,chankey)) thumbDictAQ[sngl.ifo]=fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_%s*_z_scat-unspecified-gpstime_thumb.png"\ %(sngl.ifo,timeString,chankey)) #Load of analyzeQscan z file if available zValueDictAQ[sngl.ifo]=list() for zFile in fnmatch.filter(filesAnalyze,\ "*_%s_%s_*.txt"%(sngl.ifo,timeString)): for chan in wikiFileFinder.__readSummary__(zFile): if chankey in chan[0]: zValueDictAQ[sngl.ifo].append(chan) if len(zValueDictAQ[sngl.ifo]) == 0: sys.stdout.write("AnalyzeQscan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] imageDictAQ[sngl.ifo]=[file2URL.convert(x) for x in imageDictAQ[sngl.ifo]] indexDictAQ[sngl.ifo]=[file2URL.convert(x) for x in indexDictAQ[sngl.ifo]] thumbDictAQ[sngl.ifo]=[file2URL.convert(x) for x in thumbDictAQ[sngl.ifo]] if len(indexDict[sngl.ifo]) < 1: wikiPage.putText("Seismic scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >=1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >=1 if enoughImage and enoughIndex: wikiPage.insertAnalyzeQscanTable(imageDict, thumbDict, indexDict, zValueDict, imageDictAQ, thumbDictAQ, indexDictAQ, zValueDictAQ) else: sys.stdout.write("Warning: Seismic plots product import problem.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#6 Other environmental causes") wikiPage.subsubsection("Question") wikiPage.putText("Were the environmental disturbances (other than seismic) insignificant at the time of the candidate?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") imageDict,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() #Select only PEM channels filesOmega=wikiFileFinder.get_RDS_R_L1() filesAnalyze=wikiFileFinder.get_analyzeQscan_RDS() for sngl in wikiCoinc.sngls_in_coinc(): indexDict[sngl.ifo],imageDict[sngl.ifo],thumbDict[sngl.ifo],zValueDict[sngl.ifo]=list(),list(),list(),list() indexDictAQ[sngl.ifo],imageDictAQ[sngl.ifo],thumbDictAQ[sngl.ifo],zValueDictAQ[sngl.ifo]=list(),list(),list(),list() frametype,channelName=stfu_pipe.figure_out_type(sngl.time,sngl.ifo,'rds') if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype if sngl.ifo == "V1": chankeyseis = "Em_SE" chankeyenv = "Em_" else: chankeyseis = "SEI" chankeyenv = "PEM" for myFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*html"%(frametype,sngl.time)): indexDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*_16.00_spectrogram_whitened.png"%\ (frametype,sngl.time)): if chankeyenv in myFile and not chankeyseis in myFile: imageDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*_16.00_spectrogram_whitened?thumb.png"%\ (frametype,sngl.time)): if chankeyenv in myFile and not chankeyseis in myFile: thumbDict[sngl.ifo].append(myFile) #Search for corresponding Omega summary.txt file zValueDict[sngl.ifo]=list() for zFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*summary.txt"%(frametype,sngl.time)): for chan in wikiFileFinder.__readSummary__(zFile): if chankeyenv in chan[0] and not chankeyseis in chan[0]: zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Select associated analyzeQscans timeString=str(float(sngl.time)).replace(".","_") for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_z_scat-unspecified-gpstime.png"%\ (sngl.ifo,timeString)): if chankeyenv in myFile and not chankeyseis in myFile: imageDictAQ[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_z_scat-unspecified-gpstime?thumb.png"%\ (sngl.ifo,timeString)): if chankeyenv in myFile and not chankeyseis in myFile: thumbDictAQ[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*html"%(sngl.ifo,timeString)): indexDictAQ[sngl.ifo].append(myFile) zValueDictAQ[sngl.ifo]=list() for zFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*txt"%(sngl.ifo,timeString)): for chan in wikiFileFinder.__readSummary__(zFile): if chankeyenv in chan[0] and not chankeyseis in chan[0]: zValueDictAQ[sngl.ifo].append(chan) if len(zValueDictAQ[sngl.ifo]) == 0: sys.stdout.write("AnalyzeQscan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] imageDictAQ[sngl.ifo]=[file2URL.convert(x) for x in imageDictAQ[sngl.ifo]] indexDictAQ[sngl.ifo]=[file2URL.convert(x) for x in indexDictAQ[sngl.ifo]] thumbDictAQ[sngl.ifo]=[file2URL.convert(x) for x in thumbDictAQ[sngl.ifo]] if len(imageDict[sngl.ifo]) < 1: wikiPage.putText("PEM scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >=1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >=1 if enoughImage and enoughIndex: wikiPage.insertAnalyzeQscanTable(imageDict, thumbDict, indexDict, zValueDict, imageDictAQ, thumbDictAQ, indexDictAQ, zValueDictAQ) else: sys.stdout.write("Warning: PEM plots import trouble.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#7 Auxiliary degree of freedom") wikiPage.subsubsection("Question") wikiPage.putText("Were the auxiliary channel transients coincident with the candidate insignificant?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") imageDict,indexDict,thumbDict,zValueDict = dict(),dict(),dict(),dict() imageDictAQ,indexDictAQ,thumbDictAQ,zValueDictAQ = dict(),dict(),dict(),dict() #Select only AUX channels filesOmega=wikiFileFinder.get_RDS_R_L1() filesAnalyze=wikiFileFinder.get_analyzeQscan_RDS() for sngl in wikiCoinc.sngls: frametype,channelName=stfu_pipe.figure_out_type(sngl.time,sngl.ifo,'rds') if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype if sngl.ifo == "V1": chankeyseis = "Em_SE" chankeyenv = "Em_" else: chankeyseis = "SEI" chankeyenv = "PEM" indexDict[sngl.ifo],imageDict[sngl.ifo],thumbDict[sngl.ifo],zValueDict[sngl.ifo]=list(),list(),list(),list() indexDictAQ[sngl.ifo],imageDictAQ[sngl.ifo],thumbDictAQ[sngl.ifo],zValueDictAQ[sngl.ifo]=list(),list(),list(),list() for myFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*html"%(frametype,sngl.time)): indexDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*_16.00_spectrogram_whitened.png"%\ (frametype,sngl.time)): if not chankeyenv in myFile or not chankeyseis in myFile: imageDict[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*_16.00_spectrogram_whitened?thumb.png"%\ (frametype,sngl.time)): if not chankeyenv in myFile and not chankeyseis in myFile: thumbDict[sngl.ifo].append(myFile) zValueDict[sngl.ifo]=list() for zFile in fnmatch.filter(filesOmega,\ "*/%s/*/%s/*summary.txt"%(frametype,sngl.time)): for chan in wikiFileFinder.__readSummary__(zFile): if not chankeyenv in chan[0] and not chankeyseis in chan[0]: zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Select associated analyzeQscans timeString=str(float(sngl.time)).replace(".","_") for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_z_scat-unspecified-gpstime.png"%\ (sngl.ifo,timeString)): if not chankeyenv in myFile or not chankeyseis in myFile: imageDictAQ[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*_z_scat-unspecified-gpstime?thumb.png"%\ (sngl.ifo,timeString)): if not chankeyenv in myFile and not chankeyseis in myFile: thumbDictAQ[sngl.ifo].append(myFile) for myFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*html"%(sngl.ifo,timeString)): indexDictAQ[sngl.ifo].append(myFile) zValueDictAQ[sngl.ifo]=list() for zFile in fnmatch.filter(filesAnalyze,\ "*%s-*_%s_*txt"%(sngl.ifo,timeString)): for chan in wikiFileFinder.__readSummary__(zFile): if not chankeyenv in chan[0] and not chankeyseis in chan[0]: zValueDictAQ[sngl.ifo].append(chan) if len(zValueDictAQ[sngl.ifo]) == 0: sys.stdout.write("AnalyzeQscan summary file not or empty for %s. ...continuing...\n"%sngl.ifo) #Convert disk locals to URLs imageDict[sngl.ifo]=[file2URL.convert(x) for x in imageDict[sngl.ifo]] indexDict[sngl.ifo]=[file2URL.convert(x) for x in indexDict[sngl.ifo]] thumbDict[sngl.ifo]=[file2URL.convert(x) for x in thumbDict[sngl.ifo]] imageDictAQ[sngl.ifo]=[file2URL.convert(x) for x in imageDictAQ[sngl.ifo]] indexDictAQ[sngl.ifo]=[file2URL.convert(x) for x in indexDictAQ[sngl.ifo]] thumbDictAQ[sngl.ifo]=[file2URL.convert(x) for x in thumbDictAQ[sngl.ifo]] if len(indexDict[sngl.ifo]) < 1: wikiPage.putText("Other scans for %s not available.\n"%sngl.ifo) enoughImage=[len(imageDict[key])>0 for key in imageDict.keys()].count(True) >=1 enoughIndex=[len(indexDict[key])>0 for key in indexDict.keys()].count(True) >=1 if enoughImage and enoughIndex: wikiPage.insertAnalyzeQscanTable(imageDict, thumbDict, indexDict, zValueDict, imageDictAQ, thumbDictAQ, indexDictAQ, zValueDictAQ) else: sys.stdout.write("Warning: AUX plots import trouble.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#8 Electronic Log Book") wikiPage.subsubsection("Question") wikiPage.putText("Were the instruments behaving normally according to the comments posted by the sci-mons or the operators in the e-log?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiLinkLHOlog=wikiPage.makeExternalLink(stfu_pipe.getiLogURL(myCoinc.time,"H1"), "Hanford eLog") wikiLinkLLOlog=wikiPage.makeExternalLink(stfu_pipe.getiLogURL(myCoinc.time,"L1"), "Livingston eLog") wikiPage.putText("%s\n\n%s\n\n"%(wikiLinkLHOlog,wikiLinkLLOlog)) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#9 Glitch Report") wikiPage.subsubsection("Question") wikiPage.putText("Were the instruments behaving normally according to the weekly glitch report?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") if int(wikiCoinc.time) >= endOfS5: wikiLinkGlitch=wikiPage.makeExternalLink( "https://www.lsc-group.phys.uwm.edu/twiki/bin/view/DetChar/GlitchStudies", "Glitch Reports for S6" ) else: wikiLinkGlitch=wikiPage.makeExternalLink( "http://www.lsc-group.phys.uwm.edu/glitch/investigations/s5index.html#shift", "Glitch Reports for S5" ) wikiPage.putText("%s\n"%(wikiLinkGlitch)) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#10 Snr versus time") wikiPage.subsubsection("Question") wikiPage.putText("Is this trigger significant in a SNR versus time plot of all triggers in its analysis chunk?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#11 Parameters of the candidate") wikiPage.subsubsection("Question") wikiPage.putText("Does the candidate have a high likelihood of being a gravitational-wave according to its parameters?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Effective Distance Ratio Test\n") effDList=wikiFileFinder.get_effDRatio() if len(effDList) != 1: sys.stdout.write("Warning: Effective Distance Test import problem.\n") for myFile in effDList: wikiPage.putText("%s\n"%(file(myFile).read())) wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#12 Snr and Chisq") wikiPage.subsubsection("Question") wikiPage.putText("Are the SNR and CHISQ time series consistent with our expectations for a gravitational wave?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") # #Put plots SNR and Chi sqr # indexList=fnmatch.filter(wikiFileFinder.get_plotsnrchisq(),"*.html") thumbList=fnmatch.filter(wikiFileFinder.get_plotsnrchisq(),"*_snr-*thumb.png") thumbList.extend(fnmatch.filter(wikiFileFinder.get_plotsnrchisq(),"*_chisq-*thumb.png")) thumbList.sort() indexList=[file2URL.convert(x) for x in indexList] thumbList=[file2URL.convert(x) for x in thumbList] #Two thumb types possible "_thumb.png" or ".thumb.png" imageList=[x.replace("_thumb.png",".png").replace(".thumb.png",".png") for x in thumbList] ifoCount=len(wikiCoinc.sngls) rowLabel={"SNR":1,"CHISQ":2} rowCount=len(rowLabel) colCount=ifoCount if len(indexList) >= 1: snrTable=wikiPage.wikiTable(rowCount+1,colCount+1) for i,sngl in enumerate(wikiCoinc.sngls): myIndex="" for indexFile in indexList: if indexFile.__contains__("_pipe_%s_FOLLOWUP_"%sngl.ifo): myIndex=indexFile if myIndex=="": snrTable.data[0][i+1]=" %s "%sngl.ifo else: snrTable.data[0][i+1]=wikiPage.makeExternalLink(myIndex,sngl.ifo) for col,sngl in enumerate(wikiCoinc.sngls): for row,label in enumerate(rowLabel.keys()): snrTable.data[row+1][0]=label for k,image in enumerate(imageList): if (image.__contains__("_%s-"%label.lower()) \ and image.__contains__("pipe_%s_FOLLOWUP"%sngl.ifo)): snrTable.data[row+1][col+1]=" %s "%(wikiPage.linkedRemoteImage(thumbList[k],thumbList[k])) wikiPage.insertTable(snrTable) else: sys.stdout.write("Warning: SNR and CHISQ plots not found.\n") wikiPage.putText("SNR and CHISQ plots not found.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#13 Template bank veto") wikiPage.subsubsection("Question") wikiPage.putText("Is the bank veto value consistent with our expectations for a gravitational wave?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#14 Coherent studies") wikiPage.subsubsection("Question") wikiPage.putText("Are the triggers found in multiple interferometers coherent with each other?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") indexList=fnmatch.filter(wikiFileFinder.get_plotchiatimeseries(),"*.html") if len(indexList) >= 1: myIndex=file2URL.convert(indexList[0]) wikiPage.putText(wikiPage.makeExternalLink(myIndex,\ "%s Coherence Study Results"%(wikiCoinc.ifos))) thumbList=fnmatch.filter(wikiFileFinder.get_plotchiatimeseries(),\ "PLOT_CHIA_%s_snr-squared*thumb.png"%(wikiCoinc.time)) imageList=[x.replace("_thumb.png",".png").replace(".thumb.png",".png") for x in thumbList] rowCount=len(imageList) colCount=1 cohSnrTimeTable=wikiPage.wikiTable(rowCount+1,colCount) cohSnrTimeTable.data[0][0]="%s Coherent SNR Squared Times Series"%(wikiCoinc.ifos) for i,image in enumerate(imageList): cohSnrTimeTable.data[i+1][0]=wikiPage.linkedRemoteImage(image,thumbList[i]) wikiPage.insertTable(cohSnrTimeTable) else: sys.stdout.write("Warning: Coherent plotting jobs not found.\n") wikiPage.putText("Coherent Studies plots not found.\n") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#15 Segmentation Stability") wikiPage.subsubsection("Question") wikiPage.putText("Is the candidate stable against changes in segmentation?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # # #Additional Checklist Item wikiPage.subsection("#16 Calibration Stability") wikiPage.subsubsection("Question") wikiPage.putText("Is the candidate stable against changes in calibration that are consistent with systematic uncertainties?") wikiPage.subsubsection("Answer") wikiPage.putText("Edit Here") wikiPage.subsubsection("Relevant Information") wikiPage.putText("Plots and pipeline data go here!") wikiPage.subsubsection("Investigator Comments") wikiPage.putText("Edit Here") wikiPage.insertHR() # #
3e6e8bbd837c63c0eef55b1609ca590b8fd82088 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/3e6e8bbd837c63c0eef55b1609ca590b8fd82088/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, 501, 10406, 854, 25790, 316, 1867, 18, 3536, 20706, 55, 25, 33, 474, 12, 28, 5877, 22, 1578, 1611, 24, 13, 9050, 812, 8441, 33, 4720, 28941, 12, 13044, 2471, 16, 13044, 27055, 71, 13, 468, 2073, 358, 2621, 309, 9050, 585, 598, 508, 1818, 1704, 943, 1380, 33, 20, 1323, 1140, 18, 803, 18, 1808, 12, 13044, 5359, 13, 471, 943, 1380, 411, 4711, 30, 2589, 18, 10283, 18, 2626, 2932, 812, 738, 87, 1818, 1704, 8403, 82, 28385, 64, 1140, 18, 803, 18, 4939, 12, 13044, 5359, 25146, 21, 5717, 9050, 5359, 33, 13044, 5359, 9078, 18, 13044, 6, 943, 1380, 33, 1896, 1380, 15, 21, 2589, 18, 10283, 18, 2626, 2932, 5268, 3970, 4748, 364, 9050, 3617, 622, 738, 87, 64, 82, 12691, 8975, 768, 22, 1785, 18, 6283, 12, 13044, 5359, 20349, 225, 468, 468, 1684, 326, 341, 1766, 625, 410, 733, 5527, 468, 9050, 1964, 33, 13044, 12, 13044, 5359, 13, 468, 468, 1788, 1760, 2795, 3080, 859, 4606, 468, 276, 1388, 33, 13044, 1964, 18, 13044, 1388, 12, 22, 16, 29, 13, 276, 1388, 18, 892, 22850, 8247, 6518, 1412, 3113, 315, 12925, 3113, 315, 42, 985, 3113, 315, 13653, 54, 3113, 315, 45, 3313, 55, 12, 27055, 71, 2225, 16, 315, 19228, 87, 12, 3896, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, 501, 10406, 854, 25790, 316, 1867, 18, 3536, 20706, 55, 25, 33, 474, 12, 28, 5877, 22, 1578, 1611, 24, 13, 9050, 812, 8441, 33, 4720, 28941, 12, 13044, 2471, 16, 13044, 27055, 71, 13, 468, 2073, 358, 2621, 309, 9050, 585, 598, 508, 1818, 1704, 943, 1380, 33, 20, 1323, 1140, 18, 803, 18, 1808, 12, 13044, 5359, 13, 471, 943, 1380, 411, 4711, 30, 2589, 18, 10283, 18, 2626, 2932, 812, 738, 87, 1818, 1704, 8403, 82, 28385, 64, 1140, 18, 803, 2 ]
yield "<div id='log'>\n"
yield "<div id='log'>"
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail"""
6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 3399, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 3399, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 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 ]
try: if self.pendingCmds == []: cmds = self.collectCmds() else: cmds = self.pendingCmds self.pendingCmds = [] if cmds == []: self.src.set_eos() self.sendEvent(events.eos()) return for cmd in cmds: cmd(self) except: traceback.print_exc() sys.exit(1)
while src.get_property('vobu-start') == -1: try: if self.pendingCmds == []: cmds = self.collectCmds() else: cmds = self.pendingCmds self.pendingCmds = [] if cmds == []: self.sendEvent(events.eos()) return for cmd in cmds: cmd(self) except: traceback.print_exc() sys.exit(1)
def vobuRead(self, src): """Invoked by the source element after reading a complete VOBU."""
ff674cf9cd62c1a0d5c649021cc73e38a2d71a77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/ff674cf9cd62c1a0d5c649021cc73e38a2d71a77/manager.py
[ 1, 8585,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 947, 89, 1994, 12, 2890, 16, 1705, 4672, 3536, 26215, 635, 326, 1084, 930, 1839, 6453, 279, 3912, 776, 51, 3000, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
path = self.__resolveFileID(dir_path)
path = self.__resolveFileID( dir_path )
def export_listDirectory( self, dir_path, mode ): """ Return the dir_path directory listing """ is_file = False path = self.__resolveFileID(dir_path) if not os.path.exists( path ): return S_ERROR( 'Directory %s does not exist' % dir_path ) elif os.path.isfile( path ): fname = os.path.basename( path ) is_file = True else: dirList = os.listdir( path )
9f0650a3e23eb441883664794fa6606e35b7f93c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9f0650a3e23eb441883664794fa6606e35b7f93c/StorageElementHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1098, 2853, 12, 365, 16, 1577, 67, 803, 16, 1965, 262, 30, 3536, 2000, 326, 1577, 67, 803, 1867, 11591, 3536, 353, 67, 768, 273, 1083, 589, 273, 365, 16186, 10828, 812, 734, 12, 1577, 67, 803, 262, 309, 486, 1140, 18, 803, 18, 1808, 12, 589, 262, 30, 327, 348, 67, 3589, 12, 296, 2853, 738, 87, 1552, 486, 1005, 11, 738, 1577, 67, 803, 262, 1327, 1140, 18, 803, 18, 291, 768, 12, 589, 262, 30, 5299, 273, 1140, 18, 803, 18, 13909, 12, 589, 262, 353, 67, 768, 273, 1053, 469, 30, 1577, 682, 273, 1140, 18, 1098, 1214, 12, 589, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1098, 2853, 12, 365, 16, 1577, 67, 803, 16, 1965, 262, 30, 3536, 2000, 326, 1577, 67, 803, 1867, 11591, 3536, 353, 67, 768, 273, 1083, 589, 273, 365, 16186, 10828, 812, 734, 12, 1577, 67, 803, 262, 309, 486, 1140, 18, 803, 18, 1808, 12, 589, 262, 30, 327, 348, 67, 3589, 12, 296, 2853, 738, 87, 1552, 486, 1005, 11, 738, 1577, 67, 803, 262, 1327, 1140, 18, 803, 18, 291, 768, 12, 589, 262, 30, 5299, 273, 1140, 18, 803, 18, 13909, 12, 589, 262, 353, 67, 768, 273, 1053, 469, 30, 1577, 682, 273, 1140, 18, 1098, 1214, 12, 589, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif dict['status'] == 2:
elif urlDict['status'] == 2:
def removeFile(self,path): """Remove physically the file specified by its path """ if type(path) == types.StringType: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.removeFile: Supplied path must be string or list of strings")
0c142939ddc410eebdc2cef5627d4332317e31b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/0c142939ddc410eebdc2cef5627d4332317e31b1/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 2890, 16, 803, 4672, 3536, 3288, 24758, 6478, 326, 585, 1269, 635, 2097, 589, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 1327, 618, 12, 803, 13, 422, 1953, 18, 19366, 30, 6903, 273, 589, 469, 30, 327, 348, 67, 3589, 2932, 55, 8717, 22, 3245, 18, 4479, 812, 30, 3425, 3110, 589, 1297, 506, 533, 578, 666, 434, 2064, 7923, 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, 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 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 1327, 618, 12, 803, 13, 422, 1953, 18, 19366, 30, 6903, 273, 589, 469, 30, 327, 348, 67, 3589, 2932, 55, 8717, 22, 3245, 18, 4479, 812, 30, 3425, 3110, 589, 1297, 506, 533, 578, 666, 434, 2064, 7923, 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 ]
verbose=False, **kwds):
verbose=False, fixed_random_seed=True, **kwds):
def exercise(self, xray_structure=None, space_group_info=None, verbose=False, **kwds): assert [xray_structure, space_group_info].count(None) == 1 if xray_structure is None: self.xs = self.random_structure(space_group_info, set_grads=True) else: self.xs = xray_structure self.do_exercise(verbose)
61930a13b3bf1fa3177d3f0f62bd4c79b8fcb0d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/61930a13b3bf1fa3177d3f0f62bd4c79b8fcb0d0/tst_standard_xray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 12, 2890, 16, 619, 435, 67, 7627, 33, 7036, 16, 3476, 67, 1655, 67, 1376, 33, 7036, 16, 3988, 33, 8381, 16, 5499, 67, 9188, 67, 12407, 33, 5510, 16, 2826, 25577, 4672, 1815, 306, 92, 435, 67, 7627, 16, 3476, 67, 1655, 67, 1376, 8009, 1883, 12, 7036, 13, 422, 404, 309, 619, 435, 67, 7627, 353, 599, 30, 365, 18, 13713, 273, 365, 18, 9188, 67, 7627, 12, 2981, 67, 1655, 67, 1376, 16, 444, 67, 2752, 2377, 33, 5510, 13, 469, 30, 365, 18, 13713, 273, 619, 435, 67, 7627, 365, 18, 2896, 67, 8913, 30708, 12, 11369, 13, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 12, 2890, 16, 619, 435, 67, 7627, 33, 7036, 16, 3476, 67, 1655, 67, 1376, 33, 7036, 16, 3988, 33, 8381, 16, 5499, 67, 9188, 67, 12407, 33, 5510, 16, 2826, 25577, 4672, 1815, 306, 92, 435, 67, 7627, 16, 3476, 67, 1655, 67, 1376, 8009, 1883, 12, 7036, 13, 422, 404, 309, 619, 435, 67, 7627, 353, 599, 30, 365, 18, 13713, 273, 365, 18, 9188, 67, 7627, 12, 2981, 67, 1655, 67, 1376, 16, 444, 67, 2752, 2377, 33, 5510, 13, 469, 30, 365, 18, 13713, 273, 619, 435, 67, 7627, 365, 18, 2896, 67, 8913, 30708, 12, 11369, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for table in ['FC_Files','FC_FileInfo','FC_GUID_To_File']:
for table in ['FC_Files','FC_FileInfo','FC_GUID_to_File']:
def removeFile(self,lfns,credDict): """ Bulk file removal method """ result = checkArgumentFormat(lfns) if not result['OK']: return result arguments = result['Value'] successful = {} failed = {} files = arguments.keys() result = self.findFile(files) fileDict = result['Value'] if not fileDict["Successful"]: return S_OK(fileDict) failed = fileDict['Failed'] lfnDict = {} for lfn,id in fileDict['Successful'].items(): if id: lfnDict[id] = lfn fileIDString = ','.join([str(id) for id in lfnDict.keys()]) for table in ['FC_Files','FC_FileInfo','FC_GUID_To_File']: req = "DELETE FROM %s WHERE FileID in (%s)" % (table,fileIDString) result = self._update(req) if not result['OK']: failed.update(fileDict["Successful"]) break if table == "FC_GUID_To_File": successful = fileDict["Successful"] return S_OK({'Successful':successful,'Failed':failed})
5a06e26755f442e1df253700263a4f66ae3732c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5a06e26755f442e1df253700263a4f66ae3732c9/FileCatalogDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 2890, 16, 20850, 2387, 16, 20610, 5014, 4672, 3536, 18184, 585, 14817, 707, 3536, 563, 273, 10788, 1630, 12, 20850, 2387, 13, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 1775, 273, 563, 3292, 620, 3546, 6873, 273, 2618, 2535, 273, 2618, 225, 1390, 273, 1775, 18, 2452, 1435, 563, 273, 365, 18, 4720, 812, 12, 2354, 13, 585, 5014, 273, 563, 3292, 620, 3546, 309, 486, 585, 5014, 9614, 14277, 11929, 30, 327, 348, 67, 3141, 12, 768, 5014, 13, 225, 2535, 273, 585, 5014, 3292, 2925, 3546, 328, 4293, 5014, 273, 2618, 364, 328, 4293, 16, 350, 316, 585, 5014, 3292, 14277, 29489, 3319, 13332, 309, 612, 30, 328, 4293, 5014, 63, 350, 65, 273, 328, 4293, 585, 734, 780, 273, 3316, 18, 5701, 3816, 701, 12, 350, 13, 364, 612, 316, 328, 4293, 5014, 18, 2452, 1435, 5717, 364, 1014, 316, 10228, 4488, 67, 2697, 17023, 4488, 67, 11995, 17023, 4488, 67, 17525, 67, 869, 67, 812, 3546, 30, 1111, 273, 315, 6460, 4571, 738, 87, 4852, 1387, 734, 316, 6142, 87, 2225, 738, 261, 2121, 16, 768, 734, 780, 13, 563, 273, 365, 6315, 2725, 12, 3658, 13, 309, 486, 563, 3292, 3141, 3546, 30, 2535, 18, 2725, 12, 768, 5014, 9614, 14277, 6, 5717, 898, 309, 1014, 422, 315, 4488, 67, 17525, 67, 774, 67, 812, 6877, 6873, 273, 585, 5014, 9614, 14277, 11929, 225, 327, 348, 67, 3141, 12590, 11, 14277, 4278, 18418, 11189, 2925, 4278, 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, 1206, 812, 12, 2890, 16, 20850, 2387, 16, 20610, 5014, 4672, 3536, 18184, 585, 14817, 707, 3536, 563, 273, 10788, 1630, 12, 20850, 2387, 13, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 1775, 273, 563, 3292, 620, 3546, 6873, 273, 2618, 2535, 273, 2618, 225, 1390, 273, 1775, 18, 2452, 1435, 563, 273, 365, 18, 4720, 812, 12, 2354, 13, 585, 5014, 273, 563, 3292, 620, 3546, 309, 486, 585, 5014, 9614, 14277, 11929, 30, 327, 348, 67, 3141, 12, 768, 5014, 13, 225, 2535, 273, 585, 5014, 3292, 2925, 3546, 328, 4293, 5014, 273, 2618, 364, 328, 4293, 16, 350, 316, 585, 5014, 3292, 14277, 29489, 3319, 13332, 309, 612, 30, 328, 4293, 5014, 63, 2 ]
table[(fen,board.color)] = moves else: log.warn("Unable to get egtb data for position: %s.\nData was: %s" % (board.asFen(), repr(data)))
table[(fen,color)] = moves elif color == board.color and board.opIsChecked(): log.warn("Asked endgametable for a won position: %s" % fen) elif color == board.color: log.warn("Unable to get %s data for position: %s.\nData was: %s" % (reprColor[color], fen, repr(data)))
def probeEndGameTable (board): fen = board.asFen().split()[0] + " w - - 0 1" if (fen,board.color) in table: return table[(fen,board.color)] # k4it has all 6-men tables except 5 vs. 1 whites = bitLength(board.friends[WHITE]) blacks = bitLength(board.friends[BLACK]) if whites >= 5 or blacks >= 5 or whites+blacks >= 7: return [] # Request the page f = urllib.urlopen(URL + fen) data = f.read() # Parse for color, move_data in enumerate(data.split("\nNEXTCOLOR\n")): moves = [] for fcord, tcord, promotion, result in expression.findall(move_data): fcord = int(fcord) tcord = int(tcord) if promotion: flag = PROMOTION_FLAGS[int(promotion)] elif RANK(fcord) != RANK(tcord) and FILE(fcord) != FILE(tcord) and \ board.arBoard[fcord] == PAWN and board.arBoard[tcord] == EMPTY: flag = ENPASSANT else: flag = NORMAL_MOVE move = newMove(fcord, tcord, flag) if result == "Draw": state = DRAW steps = 0 else: s, steps = result.split(" in ") steps = int(steps) if result.startswith("Win"): if board.color == WHITE: state = (WHITEWON, int(steps)) else: state = (BLACKWON, int(steps)) elif result.startswith("Lose"): if board.color == WHITE: state = (BLACKWON, int(steps)) else: state = (WHITEWON, int(steps)) moves.append( (move,state,steps) ) if moves: table[(fen,board.color)] = moves else: log.warn("Unable to get egtb data for position: %s.\nData was: %s" % (board.asFen(), repr(data))) return table[(fen,board.color)]
2938467cb07839fd68786e0e9a310306cfd4652c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/2938467cb07839fd68786e0e9a310306cfd4652c/egtb_k4it.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 3752, 18, 3266, 13, 316, 1014, 30, 327, 1014, 63, 12, 74, 275, 16, 3752, 18, 3266, 25887, 225, 468, 417, 24, 305, 711, 777, 1666, 17, 27617, 4606, 1335, 1381, 6195, 18, 404, 600, 2997, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 16861, 5717, 7721, 87, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 14618, 3649, 5717, 309, 600, 2997, 1545, 1381, 578, 7721, 87, 1545, 1381, 578, 600, 2997, 15, 11223, 87, 1545, 2371, 30, 327, 5378, 225, 468, 1567, 326, 1363, 284, 273, 11527, 18, 295, 18589, 12, 1785, 397, 284, 275, 13, 501, 273, 284, 18, 896, 1435, 225, 468, 2884, 364, 2036, 16, 3635, 67, 892, 316, 4241, 12, 892, 18, 4939, 31458, 82, 25539, 10989, 64, 82, 6, 3719, 30, 13934, 273, 5378, 364, 284, 901, 16, 268, 901, 16, 23024, 16, 563, 316, 2652, 18, 4720, 454, 12, 8501, 67, 892, 4672, 284, 901, 273, 509, 12, 74, 901, 13, 268, 901, 273, 509, 12, 88, 901, 13, 225, 309, 23024, 30, 2982, 273, 453, 3942, 1974, 1146, 67, 17836, 63, 474, 12, 17401, 8240, 25887, 1327, 534, 20201, 12, 74, 901, 13, 480, 534, 20201, 12, 88, 901, 13, 471, 7527, 12, 74, 901, 13, 480, 7527, 12, 88, 901, 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, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 3752, 18, 3266, 13, 316, 1014, 30, 327, 1014, 63, 12, 74, 275, 16, 3752, 18, 3266, 25887, 225, 468, 417, 24, 305, 711, 777, 1666, 17, 27617, 4606, 1335, 1381, 6195, 18, 404, 600, 2997, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 16861, 5717, 7721, 87, 273, 2831, 1782, 12, 3752, 18, 74, 22259, 63, 14618, 3649, 5717, 309, 600, 2997, 1545, 1381, 578, 7721, 87, 1545, 1381, 578, 600, 2997, 15, 11223, 87, 1545, 2371, 30, 327, 5378, 225, 2 ]
hbox.add(button)
hbox.pack_start(button, False, False)
def add_table_content(self, table): entry = gtk.Entry() entry.set_width_chars(12) entry.set_editable(False) self.file = entry button = gtk.Button("Select...") button.connect("clicked", self.select_file_cb) hbox = gtk.HBox() hbox.add(entry) hbox.add(button)
eb03ca1df3dad695b454d009fb3a4d190e2e8e09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8501/eb03ca1df3dad695b454d009fb3a4d190e2e8e09/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2121, 67, 1745, 12, 2890, 16, 1014, 4672, 1241, 273, 22718, 18, 1622, 1435, 1241, 18, 542, 67, 2819, 67, 7549, 12, 2138, 13, 1241, 18, 542, 67, 19653, 12, 8381, 13, 365, 18, 768, 273, 1241, 3568, 273, 22718, 18, 3616, 2932, 3391, 7070, 13, 3568, 18, 3612, 2932, 7475, 329, 3113, 365, 18, 4025, 67, 768, 67, 7358, 13, 366, 2147, 273, 22718, 18, 44, 3514, 1435, 366, 2147, 18, 1289, 12, 4099, 13, 366, 2147, 18, 1289, 12, 5391, 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,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2932, 3391, 7070, 13, 3568, 18, 3612, 2932, 7475, 329, 3113, 365, 18, 4025, 67, 768, 67, 7358, 13, 366, 2147, 273, 22718, 18, 44, 3514, 1435, 366, 2147, 18, 1289, 12, 4099, 13, 366, 2147, 18, 1289, 12, 5391, 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 ]
bookmarks = bookmarked+':'+res
if bookmarked: bookmarks = bookmarked+':'+res else: bookmarks = res
def command_bookmark(self, arg): """ /bookmark [room][/nick] """ args = arg.split() nick = None if not isinstance(self.current_tab(), MucTab): return if len(args) == 0: room = self.current_tab().get_room() roomname = self.current_tab().get_name() if room.joined: nick = room.own_nick else: info = args[0].split('/') if len(info) == 2: nick = info[1] roomname = info[0] if roomname == '': roomname = self.current_tab().get_name() if nick: res = roomname+'/'+nick else: res = roomname bookmarked = config.get('rooms', '') # check if the room is already bookmarked. # if yes, replace it (i.e., update the associated nick) bookmarked = bookmarked.split(':') for room in bookmarked: if room.split('/')[0] == roomname: bookmarked.remove(room) break bookmarked = ':'.join(bookmarked) bookmarks = bookmarked+':'+res config.set_and_save('rooms', bookmarks) self.information(_('Your bookmarks are now: %s') % bookmarks)
2102085f9ee65f1c65729096ac259fa1964798ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/2102085f9ee65f1c65729096ac259fa1964798ea/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 3618, 3355, 12, 2890, 16, 1501, 4672, 3536, 342, 3618, 3355, 306, 13924, 6362, 19, 17091, 65, 3536, 833, 273, 1501, 18, 4939, 1435, 10909, 273, 599, 309, 486, 1549, 12, 2890, 18, 2972, 67, 7032, 9334, 490, 5286, 5661, 4672, 327, 309, 562, 12, 1968, 13, 422, 374, 30, 7725, 273, 365, 18, 2972, 67, 7032, 7675, 588, 67, 13924, 1435, 7725, 529, 273, 365, 18, 2972, 67, 7032, 7675, 588, 67, 529, 1435, 309, 7725, 18, 5701, 329, 30, 10909, 273, 7725, 18, 995, 67, 17091, 469, 30, 1123, 273, 833, 63, 20, 8009, 4939, 2668, 2473, 13, 309, 562, 12, 1376, 13, 422, 576, 30, 10909, 273, 1123, 63, 21, 65, 7725, 529, 273, 1123, 63, 20, 65, 309, 7725, 529, 422, 875, 30, 7725, 529, 273, 365, 18, 2972, 67, 7032, 7675, 588, 67, 529, 1435, 309, 10909, 30, 400, 273, 7725, 529, 6797, 2473, 15, 17091, 469, 30, 400, 273, 7725, 529, 13696, 329, 273, 642, 18, 588, 2668, 13924, 87, 2187, 28707, 468, 866, 309, 326, 7725, 353, 1818, 13696, 329, 18, 468, 309, 12465, 16, 1453, 518, 261, 77, 18, 73, 12990, 1089, 326, 3627, 10909, 13, 13696, 329, 273, 13696, 329, 18, 4939, 2668, 2497, 13, 364, 7725, 316, 13696, 329, 30, 309, 7725, 18, 4939, 2668, 2473, 25146, 20, 65, 422, 7725, 529, 30, 13696, 329, 18, 4479, 12, 13924, 13, 898, 13696, 329, 273, 3921, 18, 5701, 12, 3618, 3355, 329, 13, 309, 13696, 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, 1296, 67, 3618, 3355, 12, 2890, 16, 1501, 4672, 3536, 342, 3618, 3355, 306, 13924, 6362, 19, 17091, 65, 3536, 833, 273, 1501, 18, 4939, 1435, 10909, 273, 599, 309, 486, 1549, 12, 2890, 18, 2972, 67, 7032, 9334, 490, 5286, 5661, 4672, 327, 309, 562, 12, 1968, 13, 422, 374, 30, 7725, 273, 365, 18, 2972, 67, 7032, 7675, 588, 67, 13924, 1435, 7725, 529, 273, 365, 18, 2972, 67, 7032, 7675, 588, 67, 529, 1435, 309, 7725, 18, 5701, 329, 30, 10909, 273, 7725, 18, 995, 67, 17091, 469, 30, 1123, 273, 833, 63, 20, 8009, 4939, 2668, 2473, 13, 309, 562, 12, 1376, 13, 422, 576, 30, 10909, 273, 1123, 63, 21, 65, 7725, 529, 2 ]
self._block_update(clear=1)
self._runstats_update(clear=1)
def _start_helper(self, temp=None, train=None): self._savestate() if self.startfn: if not self.running: self._loadmenu.disableall() if int(self.rig_common.query('testing')): if ask("pype", "testing mode ok?", ("yes", "no")) == 1: return if temp: fname = './%s.tmp' % self.uname if posixpath.exists(fname): posix.unlink(fname) self.record_selectfile(fname) else: if self.record_selectfile(train=train) is None: sys.stderr.write('run aborted\n') return if self.tk: self._startbut.config(text='stop') self._startbut_tmp.config(text='stop') self._trainbut.config(text='stop') self._allowabort = 1
58eb14000e09a21a3d1a6cc1aaa23c4e126e0cb5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/58eb14000e09a21a3d1a6cc1aaa23c4e126e0cb5/pype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 4759, 12, 2890, 16, 1906, 33, 7036, 16, 4691, 33, 7036, 4672, 365, 6315, 87, 842, 395, 340, 1435, 225, 309, 365, 18, 1937, 4293, 30, 309, 486, 365, 18, 8704, 30, 365, 6315, 945, 5414, 18, 8394, 454, 1435, 309, 509, 12, 2890, 18, 86, 360, 67, 6054, 18, 2271, 2668, 3813, 310, 26112, 30, 309, 6827, 2932, 84, 388, 3113, 315, 3813, 310, 1965, 1529, 35, 3113, 7566, 9707, 3113, 315, 2135, 6, 3719, 422, 404, 30, 327, 309, 1906, 30, 5299, 273, 2418, 5258, 87, 18, 5645, 11, 738, 365, 18, 318, 339, 309, 16366, 803, 18, 1808, 12, 12749, 4672, 16366, 18, 318, 1232, 12, 12749, 13, 365, 18, 3366, 67, 4025, 768, 12, 12749, 13, 469, 30, 309, 365, 18, 3366, 67, 4025, 768, 12, 9754, 33, 9754, 13, 353, 599, 30, 2589, 18, 11241, 18, 2626, 2668, 2681, 18166, 64, 82, 6134, 327, 225, 309, 365, 18, 16099, 30, 365, 6315, 1937, 12885, 18, 1425, 12, 955, 2218, 5681, 6134, 365, 6315, 1937, 12885, 67, 5645, 18, 1425, 12, 955, 2218, 5681, 6134, 365, 6315, 9754, 12885, 18, 1425, 12, 955, 2218, 5681, 6134, 365, 6315, 5965, 18623, 273, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 4759, 12, 2890, 16, 1906, 33, 7036, 16, 4691, 33, 7036, 4672, 365, 6315, 87, 842, 395, 340, 1435, 225, 309, 365, 18, 1937, 4293, 30, 309, 486, 365, 18, 8704, 30, 365, 6315, 945, 5414, 18, 8394, 454, 1435, 309, 509, 12, 2890, 18, 86, 360, 67, 6054, 18, 2271, 2668, 3813, 310, 26112, 30, 309, 6827, 2932, 84, 388, 3113, 315, 3813, 310, 1965, 1529, 35, 3113, 7566, 9707, 3113, 315, 2135, 6, 3719, 422, 404, 30, 327, 309, 1906, 30, 5299, 273, 2418, 5258, 87, 18, 5645, 11, 738, 365, 18, 318, 339, 309, 16366, 803, 18, 1808, 12, 12749, 4672, 16366, 18, 318, 1232, 12, 12749, 13, 365, 18, 3366, 67, 2 ]
if buildenv['version'] == 'debug': additional_path = buildenv['root'] + os.sep + 'debug' + os.sep + \ 'lib' additional_path_rel = buildenv['root'] + os.sep + 'release' + \ os.sep + 'lib' additional_path = additional_path + os.pathsep + additional_path_rel else: additional_path = buildenv['root'] + os.sep + 'release' + os.sep + \ 'lib'
ver = buildenv['version'] additional_path=os.path.join(buildenv['root'],ver,'lib')+\ os.pathsep + os.path.join(buildenv['root'],ver,'db','lib')+\ os.pathsep + os.path.join(buildenv['root'],ver,'dbxml','lib')
def setupEnvironment(buildenv): if buildenv['version'] == 'debug': path = buildenv['root'] + os.sep + 'debug' + os.sep + 'bin' + \ os.pathsep + buildenv['path'] os.putenv('BUILDMODE', 'debug') if buildenv['version'] == 'release': path = buildenv['root'] + os.sep + 'release' + os.sep + 'bin' + \ os.pathsep + buildenv['path'] os.putenv('BUILDMODE', 'release') # to run Chandler-related scripts from directories other than # osaf/chandler/Chandler, PYTHONPATH is needed pythonpaths = [] prevPath = os.getenv('PYTHONPATH') if prevPath: pythonpaths.append(prevPath) if buildenv.has_key('pythonpath') and buildenv['pythonpath']: pythonpaths.append(buildenv['pythonpath']) pythonpaths.append(os.path.join(buildenv['root'], "Chandler")) os.putenv('PYTHONPATH', os.pathsep.join(pythonpaths)) os.putenv('CHANDLERDIR', buildenv['root']+os.sep+"Chandler") # log(buildenv, HARDHAT_MESSAGE, 'hardhat', "Setting path to " + path) # os.putenv('path', path) if (sys.platform == 'cygwin' and '.'.join(map(str, sys.version_info[:3])) < '2.3.0'): # Even though we're under cygwin, we're going to be launching # external programs that expect PATH to be in DOS format, so # convert it try: cygpath = os.popen("/bin/cygpath -wp \"" + path + "\"", "r") path = cygpath.readline() path = path[:-1] cygpath.close() except Exception, e: print e print "Unable to call 'cygpath' to determine DOS-equivalent for PATH" print "Either make sure that 'cygpath' is in your PATH or run the Windows version" print "of Python from http://python.org/, rather than the Cygwin Python" raise HardHatError os.putenv('PATH', path) if buildenv['os'] == 'posix': ld_library_path = os.environ.get('LD_LIBRARY_PATH', '') if buildenv['version'] == 'debug': additional_path = buildenv['root'] + os.sep + 'debug' + os.sep + \ 'lib' additional_path_rel = buildenv['root'] + os.sep + 'release' + \ os.sep + 'lib' additional_path = additional_path + os.pathsep + additional_path_rel else: additional_path = buildenv['root'] + os.sep + 'release' + os.sep + \ 'lib' ld_library_path = additional_path + os.pathsep + ld_library_path os.putenv('LD_LIBRARY_PATH', ld_library_path) if buildenv['os'] == 'osx': dyld_library_path = os.environ.get('DYLD_LIBRARY_PATH', '') if buildenv['version'] == 'debug': additional_path = buildenv['root'] + os.sep + 'debug' + os.sep + \ 'lib' additional_path_rel = buildenv['root'] + os.sep + 'release' + \ os.sep + 'lib' additional_path = additional_path + os.pathsep + additional_path_rel else: additional_path = buildenv['root'] + os.sep + 'release' + os.sep + \ 'lib' dyld_library_path = additional_path + os.pathsep + dyld_library_path os.putenv('DYLD_LIBRARY_PATH', dyld_library_path) dyld_framework_path = os.environ.get('DYLD_FRAMEWORK_PATH', '') if buildenv['version'] == 'debug': additional_path = os.path.join( buildenv['root'], 'debug', 'Library', 'Frameworks') else: additional_path = os.path.join( buildenv['root'], 'release', 'Library', 'Frameworks') dyld_framework_path = additional_path + os.pathsep + dyld_framework_path os.putenv('DYLD_FRAMEWORK_PATH', dyld_framework_path)
0b7e8d2d269791eb53c95ed3984a921d080e5c67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/0b7e8d2d269791eb53c95ed3984a921d080e5c67/hardhatlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 5494, 12, 3510, 3074, 4672, 225, 309, 1361, 3074, 3292, 1589, 3546, 422, 296, 4148, 4278, 589, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 296, 4148, 11, 397, 1140, 18, 10814, 397, 296, 4757, 11, 397, 521, 1140, 18, 803, 10814, 397, 1361, 3074, 3292, 803, 3546, 1140, 18, 458, 3074, 2668, 20215, 7038, 2187, 296, 4148, 6134, 225, 309, 1361, 3074, 3292, 1589, 3546, 422, 296, 9340, 4278, 589, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 296, 9340, 11, 397, 1140, 18, 10814, 397, 296, 4757, 11, 397, 521, 1140, 18, 803, 10814, 397, 1361, 3074, 3292, 803, 3546, 1140, 18, 458, 3074, 2668, 20215, 7038, 2187, 296, 9340, 6134, 225, 468, 358, 1086, 1680, 464, 749, 17, 9243, 8873, 628, 6402, 1308, 2353, 468, 1140, 1727, 19, 343, 464, 749, 19, 782, 464, 749, 16, 12191, 20131, 4211, 353, 3577, 5790, 4481, 273, 5378, 2807, 743, 273, 1140, 18, 588, 3074, 2668, 16235, 20131, 4211, 6134, 309, 2807, 743, 30, 5790, 4481, 18, 6923, 12, 10001, 743, 13, 309, 1361, 3074, 18, 5332, 67, 856, 2668, 8103, 803, 6134, 471, 1361, 3074, 3292, 8103, 803, 3546, 30, 5790, 4481, 18, 6923, 12, 3510, 3074, 3292, 8103, 803, 19486, 5790, 4481, 18, 6923, 12, 538, 18, 803, 18, 5701, 12, 3510, 3074, 3292, 3085, 17337, 315, 782, 464, 749, 6, 3719, 225, 1140, 18, 458, 3074, 2668, 16235, 20131, 4211, 2187, 1140, 18, 803, 10814, 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, 3875, 5494, 12, 3510, 3074, 4672, 225, 309, 1361, 3074, 3292, 1589, 3546, 422, 296, 4148, 4278, 589, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 296, 4148, 11, 397, 1140, 18, 10814, 397, 296, 4757, 11, 397, 521, 1140, 18, 803, 10814, 397, 1361, 3074, 3292, 803, 3546, 1140, 18, 458, 3074, 2668, 20215, 7038, 2187, 296, 4148, 6134, 225, 309, 1361, 3074, 3292, 1589, 3546, 422, 296, 9340, 4278, 589, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 296, 9340, 11, 397, 1140, 18, 10814, 397, 296, 4757, 11, 397, 521, 1140, 18, 803, 10814, 397, 1361, 3074, 3292, 803, 3546, 1140, 18, 458, 3074, 2668, 20215, 7038, 2187, 296, 2 ]
if inspect.ismethod(object): object = object.im_func
realname = object.__name__ name = name or realname anchor = clname + '-' + realname note = '' if inspect.ismethod(object): if not clname: note = self.small(self.grey( object.im_self and 'method of ' + self.repr(object.im_self) or ' unbound %s method' % object.im_class.__name__)) object = object.im_func if name == realname: title = '<a name="%s"><strong>%s</strong></a>' % (anchor, realname) else: title = '<strong>%s</strong> = <a name="%s">%s</a>' % ( name, anchor, realname)
def docroutine(self, object, funcs={}, classes={}, methods={}, clname=''): """Produce HTML documentation for a function or method object.""" if inspect.ismethod(object): object = object.im_func if inspect.isbuiltin(object): decl = '<a name="%s"><strong>%s</strong>(...)</a>\n' % ( clname + '-' + object.__name__, object.__name__) else: args, varargs, varkw, defaults = inspect.getargspec(object) argspec = inspect.formatargspec( args, varargs, varkw, defaults, formatvalue=self.formatvalue)
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 22640, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 28793, 2590, 28793, 927, 529, 2218, 11, 4672, 3536, 25884, 3982, 7323, 364, 279, 445, 578, 707, 733, 12123, 2863, 529, 273, 733, 16186, 529, 972, 508, 273, 508, 578, 2863, 529, 6984, 273, 927, 529, 397, 4014, 397, 2863, 529, 4721, 273, 875, 309, 5334, 18, 291, 2039, 12, 1612, 4672, 309, 486, 927, 529, 30, 4721, 273, 365, 18, 12019, 12, 2890, 18, 11556, 93, 12, 733, 18, 381, 67, 2890, 471, 296, 2039, 434, 296, 397, 365, 18, 12715, 12, 1612, 18, 381, 67, 2890, 13, 578, 296, 30177, 738, 87, 707, 11, 738, 733, 18, 381, 67, 1106, 16186, 529, 972, 3719, 733, 273, 733, 18, 381, 67, 644, 225, 309, 508, 422, 2863, 529, 30, 2077, 273, 2368, 69, 508, 11613, 87, 14050, 9110, 9822, 87, 1757, 9110, 4695, 69, 1870, 738, 261, 16215, 16, 2863, 529, 13, 469, 30, 2077, 273, 2368, 9110, 9822, 87, 1757, 9110, 34, 273, 411, 69, 508, 11613, 87, 24038, 87, 1757, 69, 1870, 738, 261, 508, 16, 6984, 16, 2863, 529, 13, 309, 5334, 18, 291, 24553, 12, 1612, 4672, 3496, 273, 2368, 69, 508, 11613, 87, 14050, 9110, 9822, 87, 1757, 9110, 34, 5825, 13, 1757, 69, 5333, 82, 11, 738, 261, 927, 529, 397, 4014, 397, 733, 16186, 529, 972, 16, 733, 16186, 529, 972, 13, 469, 30, 833, 16, 19732, 16, 569, 9987, 16, 3467, 273, 5334, 18, 588, 23172, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 22640, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 28793, 2590, 28793, 927, 529, 2218, 11, 4672, 3536, 25884, 3982, 7323, 364, 279, 445, 578, 707, 733, 12123, 2863, 529, 273, 733, 16186, 529, 972, 508, 273, 508, 578, 2863, 529, 6984, 273, 927, 529, 397, 4014, 397, 2863, 529, 4721, 273, 875, 309, 5334, 18, 291, 2039, 12, 1612, 4672, 309, 486, 927, 529, 30, 4721, 273, 365, 18, 12019, 12, 2890, 18, 11556, 93, 12, 733, 18, 381, 67, 2890, 471, 296, 2039, 434, 296, 397, 365, 18, 12715, 12, 1612, 18, 381, 67, 2890, 13, 578, 296, 30177, 738, 87, 707, 11, 738, 733, 18, 381, 67, 1106, 16186, 529, 972, 3719, 733, 273, 2 ]
if fragment[-1] in string.whitespace:
if fragment[-1] in WHITESPACE:
def handleSpecialCharacters(engine, text, program=None, greeks=greeks): from string import whitespace # add space prefix if space here if text[0:1] in whitespace: program.append(" ") #print "handling", repr(text) # shortcut if 0 and "&" not in text: result = [] for x in text.split(): result.append(x+" ") if result: last = result[-1] if text[-1:] not in whitespace: result[-1] = last.strip() program.extend(result) return program if program is None: program = [] amptext = text.split("&") first = 1 lastfrag = amptext[-1] for fragment in amptext: if not first: # check for special chars semi = string.find(fragment, ";") if semi>0: name = fragment[:semi] if greeks.has_key(name): fragment = fragment[semi+1:] greeksub = greeks[name] (f,b,i) = engine.shiftfont(program, face="symbol") program.append(greeksub) engine.shiftfont(program, face=f) if fragment and fragment[0] in string.whitespace: program.append(" ") # follow the greek with a space else: # add back the & fragment = "&"+fragment else: # add back the & fragment = "&"+fragment # add white separated components of fragment followed by space sfragment = fragment.split() for w in sfragment[:-1]: program.append(w+" ") # does the last one need a space? if sfragment and fragment: # reader 3 used to go nuts if you don't special case the last frag, but it's fixed? if fragment[-1] in string.whitespace: # or fragment==lastfrag: program.append( sfragment[-1]+" " ) else: last = sfragment[-1].strip() #string.strip(sfragment[-1]) if last: #print "last is", repr(last) program.append( last ) first = 0 #print "HANDLED", program return program
a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12193, 11600, 12, 8944, 16, 977, 16, 5402, 33, 7036, 16, 314, 992, 7904, 33, 75, 992, 7904, 4672, 628, 533, 1930, 7983, 468, 527, 3476, 1633, 309, 3476, 2674, 309, 977, 63, 20, 30, 21, 65, 316, 7983, 30, 5402, 18, 6923, 2932, 9369, 468, 1188, 315, 26822, 3113, 8480, 12, 955, 13, 468, 10995, 309, 374, 471, 16347, 486, 316, 977, 30, 563, 273, 5378, 364, 619, 316, 977, 18, 4939, 13332, 563, 18, 6923, 12, 92, 9078, 9369, 309, 563, 30, 1142, 273, 563, 18919, 21, 65, 309, 977, 18919, 21, 26894, 486, 316, 7983, 30, 563, 18919, 21, 65, 273, 1142, 18, 6406, 1435, 5402, 18, 14313, 12, 2088, 13, 327, 5402, 309, 5402, 353, 599, 30, 5402, 273, 5378, 2125, 337, 408, 273, 977, 18, 4939, 2932, 10, 7923, 1122, 273, 404, 1142, 17073, 273, 2125, 337, 408, 18919, 21, 65, 364, 5481, 316, 2125, 337, 408, 30, 309, 486, 1122, 30, 468, 866, 364, 4582, 5230, 23161, 273, 533, 18, 4720, 12, 11956, 16, 11430, 13, 309, 23161, 34, 20, 30, 508, 273, 5481, 10531, 307, 9197, 65, 309, 314, 992, 7904, 18, 5332, 67, 856, 12, 529, 4672, 5481, 273, 5481, 63, 307, 9197, 15, 21, 26894, 314, 992, 79, 1717, 273, 314, 992, 7904, 63, 529, 65, 261, 74, 16, 70, 16, 77, 13, 273, 4073, 18, 4012, 5776, 12, 12890, 16, 7945, 1546, 7175, 7923, 5402, 18, 6923, 12, 75, 992, 79, 1717, 13, 4073, 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, 1640, 12193, 11600, 12, 8944, 16, 977, 16, 5402, 33, 7036, 16, 314, 992, 7904, 33, 75, 992, 7904, 4672, 628, 533, 1930, 7983, 468, 527, 3476, 1633, 309, 3476, 2674, 309, 977, 63, 20, 30, 21, 65, 316, 7983, 30, 5402, 18, 6923, 2932, 9369, 468, 1188, 315, 26822, 3113, 8480, 12, 955, 13, 468, 10995, 309, 374, 471, 16347, 486, 316, 977, 30, 563, 273, 5378, 364, 619, 316, 977, 18, 4939, 13332, 563, 18, 6923, 12, 92, 9078, 9369, 309, 563, 30, 1142, 273, 563, 18919, 21, 65, 309, 977, 18919, 21, 26894, 486, 316, 7983, 30, 563, 18919, 21, 65, 273, 1142, 18, 6406, 1435, 5402, 18, 14313, 12, 2088, 13, 327, 5402, 309, 2 ]
supported (limitation of greenlet), use api.spawn to work around that.
supported (limitation of greenlet), use spawn() to work around that.
def spawn_greenlet(function, *args): """Create a new greenlet that will run `function(*args)'. The current greenlet won't be unscheduled. Keyword arguments aren't supported (limitation of greenlet), use api.spawn to work around that. """ g = api.Greenlet(function) g.parent = api.get_hub().greenlet api.get_hub().schedule_call_global(0, g.switch, *args) return g
7c3ebda3db3ed480a43e50044ac06b222cafbcdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/7c3ebda3db3ed480a43e50044ac06b222cafbcdc/proc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 67, 11571, 1810, 12, 915, 16, 380, 1968, 4672, 3536, 1684, 279, 394, 10004, 1810, 716, 903, 1086, 1375, 915, 30857, 1968, 2506, 18, 1021, 783, 10004, 1810, 8462, 1404, 506, 640, 23307, 18, 18317, 1775, 11526, 1404, 3260, 261, 3595, 367, 434, 10004, 1810, 3631, 999, 12560, 1435, 358, 1440, 6740, 716, 18, 3536, 314, 273, 1536, 18, 21453, 1810, 12, 915, 13, 314, 18, 2938, 273, 1536, 18, 588, 67, 14986, 7675, 11571, 1810, 1536, 18, 588, 67, 14986, 7675, 10676, 67, 1991, 67, 6347, 12, 20, 16, 314, 18, 9610, 16, 380, 1968, 13, 327, 314, 225, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 67, 11571, 1810, 12, 915, 16, 380, 1968, 4672, 3536, 1684, 279, 394, 10004, 1810, 716, 903, 1086, 1375, 915, 30857, 1968, 2506, 18, 1021, 783, 10004, 1810, 8462, 1404, 506, 640, 23307, 18, 18317, 1775, 11526, 1404, 3260, 261, 3595, 367, 434, 10004, 1810, 3631, 999, 12560, 1435, 358, 1440, 6740, 716, 18, 3536, 314, 273, 1536, 18, 21453, 1810, 12, 915, 13, 314, 18, 2938, 273, 1536, 18, 588, 67, 14986, 7675, 11571, 1810, 1536, 18, 588, 67, 14986, 7675, 10676, 67, 1991, 67, 6347, 12, 20, 16, 314, 18, 9610, 16, 380, 1968, 13, 327, 314, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.buffer.append(value)
if len(self.buffer) > self.screen_top + self.screen_height - 1: self.buffer[len(self.buffer) - 1] = value else: self.buffer.append(value)
def append(self, value): self.buffer.append(value) logging.debug('checking new line ' + str(len(self.buffer)) + ' against top ' + str(self.screen_top) + ' + height ' + str(self.screen_height) + ' - 1 = ' + str(self.screen_top + self.screen_height - 1)) if len(self.buffer) > self.screen_top + self.screen_height - 1: self.screen_top += 1 vim.command('normal G')
d61afb98c1bca51dfe8a07f5d35aaf13361afa85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8972/d61afb98c1bca51dfe8a07f5d35aaf13361afa85/conque_screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 460, 4672, 309, 562, 12, 2890, 18, 4106, 13, 405, 365, 18, 9252, 67, 3669, 397, 365, 18, 9252, 67, 4210, 300, 404, 30, 365, 18, 4106, 63, 1897, 12, 2890, 18, 4106, 13, 300, 404, 65, 273, 460, 469, 30, 365, 18, 4106, 18, 6923, 12, 1132, 13, 2907, 18, 4148, 2668, 24609, 394, 980, 296, 397, 609, 12, 1897, 12, 2890, 18, 4106, 3719, 397, 296, 5314, 1760, 296, 397, 609, 12, 2890, 18, 9252, 67, 3669, 13, 397, 296, 397, 2072, 296, 397, 609, 12, 2890, 18, 9252, 67, 4210, 13, 397, 296, 300, 404, 273, 296, 397, 609, 12, 2890, 18, 9252, 67, 3669, 397, 365, 18, 9252, 67, 4210, 300, 404, 3719, 309, 562, 12, 2890, 18, 4106, 13, 405, 365, 18, 9252, 67, 3669, 397, 365, 18, 9252, 67, 4210, 300, 404, 30, 365, 18, 9252, 67, 3669, 1011, 404, 18727, 18, 3076, 2668, 6130, 611, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 460, 4672, 309, 562, 12, 2890, 18, 4106, 13, 405, 365, 18, 9252, 67, 3669, 397, 365, 18, 9252, 67, 4210, 300, 404, 30, 365, 18, 4106, 63, 1897, 12, 2890, 18, 4106, 13, 300, 404, 65, 273, 460, 469, 30, 365, 18, 4106, 18, 6923, 12, 1132, 13, 2907, 18, 4148, 2668, 24609, 394, 980, 296, 397, 609, 12, 1897, 12, 2890, 18, 4106, 3719, 397, 296, 5314, 1760, 296, 397, 609, 12, 2890, 18, 9252, 67, 3669, 13, 397, 296, 397, 2072, 296, 397, 609, 12, 2890, 18, 9252, 67, 4210, 13, 397, 296, 300, 404, 273, 296, 397, 609, 12, 2890, 18, 9252, 67, 3669, 397, 365, 18, 9252, 67, 4210, 2 ]
if c in '/\\':
if c in ['/','\\']:
def splitext(p): root, ext = '', '' for c in p: if c in '/\\': root, ext = root + ext + c, '' elif c == '.' or ext: ext = ext + c else: root = root + c return root, ext
0521a7c2b5a51a9a9121cdb0d36fabf9538d0130 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0521a7c2b5a51a9a9121cdb0d36fabf9538d0130/ntpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11975, 12, 84, 4672, 1365, 16, 1110, 273, 10226, 875, 364, 276, 316, 293, 30, 309, 276, 316, 10228, 19, 17023, 1695, 3546, 30, 1365, 16, 1110, 273, 1365, 397, 1110, 397, 276, 16, 875, 1327, 276, 422, 2611, 578, 1110, 30, 1110, 273, 1110, 397, 276, 469, 30, 1365, 273, 1365, 397, 276, 327, 1365, 16, 1110, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11975, 12, 84, 4672, 1365, 16, 1110, 273, 10226, 875, 364, 276, 316, 293, 30, 309, 276, 316, 10228, 19, 17023, 1695, 3546, 30, 1365, 16, 1110, 273, 1365, 397, 1110, 397, 276, 16, 875, 1327, 276, 422, 2611, 578, 1110, 30, 1110, 273, 1110, 397, 276, 469, 30, 1365, 273, 1365, 397, 276, 327, 1365, 16, 1110, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
f = zipf.open("foo.txt") for i in range(FIXEDTEST_SIZE): self.assertEqual(f.read(0), b'') self.assertEqual(f.read(), b"O, for a Muse of Fire!")
with zipf.open("foo.txt") as f: for i in range(FIXEDTEST_SIZE): self.assertEqual(f.read(0), b'') self.assertEqual(f.read(), b"O, for a Muse of Fire!")
def test_read0(self): """Check that calling read(0) on a ZipExtFile object returns an empty string and doesn't advance file pointer.""" with zipfile.ZipFile(TESTFN, mode="w") as zipf: zipf.writestr("foo.txt", "O, for a Muse of Fire!") # read the data to make sure the file is there f = zipf.open("foo.txt") for i in range(FIXEDTEST_SIZE): self.assertEqual(f.read(0), b'')
8fb9b868bd8415347ffa608eec324055ff9f66d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8fb9b868bd8415347ffa608eec324055ff9f66d7/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 20, 12, 2890, 4672, 3536, 1564, 716, 4440, 855, 12, 20, 13, 603, 279, 8603, 2482, 812, 733, 1135, 392, 1008, 533, 471, 3302, 1404, 8312, 585, 4407, 12123, 598, 18823, 18, 29394, 12, 16961, 19793, 16, 1965, 1546, 91, 7923, 487, 3144, 74, 30, 3144, 74, 18, 13284, 313, 2932, 11351, 18, 5830, 3113, 315, 51, 16, 364, 279, 490, 1202, 434, 10151, 4442, 13, 468, 855, 326, 501, 358, 1221, 3071, 326, 585, 353, 1915, 284, 273, 3144, 74, 18, 3190, 2932, 11351, 18, 5830, 7923, 364, 277, 316, 1048, 12, 30406, 16961, 67, 4574, 4672, 365, 18, 11231, 5812, 12, 74, 18, 896, 12, 20, 3631, 324, 11, 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,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981, 30, 1652, 1842, 67, 896, 20, 12, 2890, 4672, 3536, 1564, 716, 4440, 855, 12, 20, 13, 603, 279, 8603, 2482, 812, 733, 1135, 392, 1008, 533, 471, 3302, 1404, 8312, 585, 4407, 12123, 598, 18823, 18, 29394, 12, 16961, 19793, 16, 1965, 1546, 91, 7923, 487, 3144, 74, 30, 3144, 74, 18, 13284, 313, 2932, 11351, 18, 5830, 3113, 315, 51, 16, 364, 279, 490, 1202, 434, 10151, 4442, 13, 468, 855, 326, 501, 358, 1221, 3071, 326, 585, 353, 1915, 284, 273, 3144, 74, 18, 3190, 2932, 11351, 18, 5830, 7923, 364, 277, 316, 1048, 12, 30406, 16961, 67, 4574, 4672, 365, 18, 11231, 5812, 12, 74, 18, 896, 12, 20, 3631, 324, 11, 6134, 2, -100, -100, -100 ]
app.cli_interpreter.do_mythtv_item_remove(item[u'videoFilename'])
app.cli_interpreter.do_mythtv_item_remove(item[u'videoFilename'])
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, statistics, requirements_are_met global graphic_suffix, graphic_path_suffix, graphic_name_suffix global mythcommflag_recordings, mythcommflag_videos parser = OptionParser(usage=u"%prog usage: mirobridge -huevstdociVHSCWM [parameters]\n") parser.add_option( "-e", "--examples", action="store_true", default=False, dest="examples", help=u"Display examples for executing the jamu script") parser.add_option( "-v", "--version", action="store_true", default=False, dest="version", help=u"Display version and author information") parser.add_option( "-s", "--simulation", action="store_true", default=False, dest="simulation", help=u"Simulation (dry run), no files are copied, symlinks created or MythTV data bases altered. If option (-n) is NOT specified Miro auto downloads WILL take place. See option (-n) help for details.") parser.add_option( "-t", "--testenv", action="store_true", default=False, dest="testenv", help=u"Test that the local environment can run all mirobridge functionality") parser.add_option( "-n", "--no_autodownload", action="store_true", default=False, dest="no_autodownload", help=u"Do not perform Miro Channel updates, video expiry and auto-downloadings. Default is to perform all perform all Channel maintenance features.") parser.add_option( "-o", "--nosubdirs", action="store_true", default=False, dest="nosubdirs", help=u"Organise MythVideo's Miro directory WITHOUT Miro channel subdirectories. The default is to have Channel subdirectories.") parser.add_option( "-c", "--channel", metavar="CHANNEL_ID:CHANNEL_NUM", default="", dest="channel", help=u'Specifies the channel id that is used for Miros unplayed recordings. Enter as "xxxx:yyy". Default is 9999:999. Be warned that once you change the default channel_id "9999" you must always use this option!') #parser.add_option( "-i", "--import", metavar="CONFIGFILE", default="", dest="import", # help=u'Import Miro exported configuration file and or channel changes.') parser.add_option( "-V", "--verbose", action="store_true", default=False, dest="verbose", help=u"Display verbose messages when processing") parser.add_option( "-H", "--hostname", metavar="HOSTNAME", default="", dest="hostname", help=u"MythTV Backend hostname mirobridge is to up date") parser.add_option( "-S", "--sleeptime", metavar="SLEEP_DELAY_SECONDS", default="", dest="sleeptime", help=u"The amount of seconds to wait for an auto download to start.\nThe default is 60 seconds, but this may need to be adjusted for slower Internet connections.") parser.add_option( "-C", "--addchannel", metavar="ICONFILE_PATH", default="OFF", dest="addchannel", help=u'Add a Miro Channel record to MythTV. This gets rid of the "#9999 #9999" on the Watch Recordings screen and replaces it with the usual\nthe channel number and channel name.\nThe default if not overridden by the (-c) option is channel number 999.\nIf a filename and path is supplied it will be set as the channels icon. Make sure your override channel number is NOT one of your current MythTV channel numbers.\nThis option is typically only used once as there can only be one Miro channel record at a time.') parser.add_option( "-N", "--new_watch_copy", action="store_true", default=False, dest="new_watch_copy", help=u'For ALL Miro Channels: Use the "Watch Recording" screen to watch new Miro downloads then once watched copy the videos, icons, screen shot and metadata to MythVideo. Once coping is complete delete the video from Miro.\nThis option overrides any "mirobridge.conf" settings.') parser.add_option( "-W", "--watch_only", action="store_true", default=False, dest="watch_only", help=u'For ALL Miro Channels: Only use "Watch Recording" never move any Miro videos to MythVideo.\nThis option overrides any "mirobridge.conf" settings.') parser.add_option( "-M", "--mythvideo_only", action="store_true", default=False, dest="mythvideo_only", help=u'For ALL Miro Channel videos: Copy newly downloaded Miro videos to MythVideo and removed from Miro. These Miro videos never appear in the MythTV "Watch Recording" screen.\nThis option overrides any "mirobridge.conf" settings.') opts, args = parser.parse_args() if opts.examples: # Display example information sys.stdout.write(examples_txt+'\n') sys.exit(True) if opts.version: # Display program information sys.stdout.write(u"\nTitle: (%s); Version: description(%s); Author: (%s)\n%s\n" % ( __title__, __version__, __author__, __purpose__ )) sys.exit(True) if opts.testenv: test_environment = True else: test_environment = False # Verify that Miro is not currently running if isMiroRunning(): sys.exit(False) # Verify that only None or one of the mutually exclusive (-W), (-M) and (-N) options is being used x = 0 if opts.new_watch_copy: x+=1 if opts.watch_only: x+=1 if opts.mythvideo_only: x+=1 if x > 1: logger.critical(u"The (-W), (-M) and (-N) options are mutually exclusive, so only one can be specified at a time.") sys.exit(False) # Set option related global variables simulation = opts.simulation verbose = opts.verbose if opts.hostname: # Override localhostname if the user specified an hostname localhostname = opts.hostname # Validate settings # Make sure mirobridge is to update a real MythTV backend if not mythdb.getSetting(u'BackendServerIP', hostname = localhostname): logger.critical(u"The MythTV backend (%s) is not a MythTV backend." % localhostname) if test_environment: requirements_are_met = False else: sys.exit(False) ## Video base directory and current version and revision numbers base_video_dir = config.get(prefs.MOVIES_DIRECTORY) miro_version_rev = u"%s r%s" % (config.get(prefs.APP_VERSION), config.get(prefs.APP_REVISION_NUM)) displayMessage(u"Miro Version (%s)" % (miro_version_rev)) displayMessage(u"Base Miro Video Directory (%s)" % (base_video_dir,)) logger.info(u'') # Verify Miro version sufficent and Video file configuration correct. if not os.path.isdir(base_video_dir): logger.critical(u"The Miro Videos directory (%s) does not exist." % str(base_video_dir)) if test_environment: requirements_are_met = False else: sys.exit(False) if config.get(prefs.APP_VERSION) < u"2.0.3": logger.critical(u"The installed version of Miro (%s) is too old. It must be at least v2.0.3 or higher." % config.get(prefs.APP_VERSION)) if test_environment: requirements_are_met = False else: sys.exit(False) # Get storage groups if getStorageGroups() == False: logger.critical(u"Retrieving storage groups from the MythTV data base failed") if test_environment: requirements_are_met = False else: sys.exit(False) elif not u'default' in storagegroups.keys(): logger.critical(u"There must be a 'Default' storage group") if test_environment: requirements_are_met = False else: sys.exit(False) if opts.channel: channel = opts.channel.split(u':') if len(channel) != 2: logger.critical(u"The Channel (%s) must be in the format xxx:yyy with x an y all numeric." % str(opts.channel)) if test_environment: requirements_are_met = False else: sys.exit(False) elif not _can_int(channel[0]) or not _can_int(channel[1]): logger.critical(u"The Channel_id (%s) and Channel_num (%s) must be numeric." % (channel[0], channel[1])) if test_environment: requirements_are_met = False else: sys.exit(False) else: channel_id = int(channel[0]) channel_num = int(channel[1]) if opts.sleeptime: if not _can_int(opts.sleeptime): logger.critical(u"Auto-dewnload sleep time (%s) must be numeric." % str(opts.sleeptime)) if test_environment: requirements_are_met = False else: sys.exit(False) else: download_sleeptime = float(opts.sleeptime) getMythtvDirectories() # Initialize all the Video and graphics directory dictionary if opts.nosubdirs: # Did the user want a flat MythVideo "Miro" directory structure? flat = True # Get the values in the mirobridge.conf configuration file setUseroptions() if opts.watch_only: # ALL Miro videos will only be viewed in the MythTV "Watch Recordings" screen channel_watch_only = [u'all'] if opts.mythvideo_only: # ALL Miro videos will be copied to MythVideo and removed from Miro channel_mythvideo_only = {u'all': vid_graphics_dirs[u'mythvideo']+u'Miro/'} # Once watched ALL Miro videos will be copied to MythVideo and removed from Miro if opts.new_watch_copy: channel_new_watch_copy = {u'all': vid_graphics_dirs[u'mythvideo']+u'Miro/'} # Verify that "Mythvideo Only" and "New-Watch-Copy" channels do not clash if len(channel_mythvideo_only) and len(channel_new_watch_copy): for key in channel_mythvideo_only.keys(): if key in channel_new_watch_copy.keys(): logger.critical(u'The Miro Channel (%s) cannot be used as both a "Mythvideo Only" and "New-Watch-Copy" channel.' % key) if test_environment: requirements_are_met = False else: sys.exit(False) # Verify that ImageMagick is installed ret = useImageMagick(u"convert -version") if ret < 0 or ret > 1: logger.critical(u"ImageMagick must be installed, graphics cannot be resized or converted to the required graphics format (e.g. jpg and or png)") if test_environment: requirements_are_met = False else: sys.exit(False) # Verify that mythcommflag is installed mythcommflagpath = getlocationMythcommflag() if mythcommflagpath: mythcommflag_recordings = mythcommflag_recordings % mythcommflagpath mythcommflag_videos = mythcommflag_videos % mythcommflagpath else: logger.critical(u"mythcommflag must be installed so that Miro video seek tables can be built.") if test_environment: requirements_are_met = False else: sys.exit(False) if opts.testenv: # All tests passed getVideoDetails(u"") # Test that ffmpeg is available if ffmpeg and requirements_are_met: logger.info(u"The environment test passed !\n\n") sys.exit(True) else: logger.critical(u"The environment test FAILED. See previously displayed error messages!") sys.exit(False) if opts.addchannel != u'OFF': # Add a Miro Channel record - Should only be done once createChannelRecord(opts.addchannel, channel_id, channel_num) logger.info(u"The Miro Channel record has been successfully created !\n\n") sys.exit(True) ########################################### # Mainlogic for all Miro and MythTV bridge ########################################### # # Start the Miro Front and Backend - This allows mirobridge to execute actions on the Miro backend # displayMessage(u"Starting Miro Frontend and Backend") startup.initialize(config.get(prefs.THEME_NAME)) app.cli_events = EventHandler() app.cli_events.connect_to_signals() startup.startup() app.cli_events.startup_event.wait() if app.cli_events.startup_failure: logger.critical(u"Starting Miro Frontend and Backend failed: (%s)" % app.cli_events.startup_failure[0]) print_text(app.cli_events.startup_failure[1]) app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) app.cli_interpreter = MiroInterpreter() if opts.verbose: app.cli_interpreter.verbose = True else: app.cli_interpreter.verbose = False app.cli_interpreter.simulation = opts.simulation app.cli_interpreter.videofiles = [] app.cli_interpreter.downloading = False app.cli_interpreter.icon_cache_dir = config.get(prefs.ICON_CACHE_DIRECTORY) app.cli_interpreter.imagemagick = imagemagick app.cli_interpreter.statistics = statistics if config.get(prefs.APP_VERSION) < u"2.5.0": app.renderer = app.cli_interpreter else: app.movie_data_program_info = app.cli_interpreter.movie_data_program_info # # Optionally Update Miro feeds and # download any "autodownloadable" videos which are pending # if not opts.no_autodownload: if opts.verbose: app.cli_interpreter.verbose = False app.cli_interpreter.do_mythtv_getunwatched(u'') before_download = len(app.cli_interpreter.videofiles) if opts.verbose: app.cli_interpreter.verbose = True app.cli_interpreter.do_mythtv_update_autodownload(u'') time.sleep(download_sleeptime) firsttime = True while True: app.cli_interpreter.do_mythtv_check_downloading(u'') if app.cli_interpreter.downloading: time.sleep(30) firsttime = False continue elif firsttime: time.sleep(download_sleeptime) firsttime = False continue else: break if opts.verbose: app.cli_interpreter.verbose = False app.cli_interpreter.do_mythtv_getunwatched(u'') after_download = len(app.cli_interpreter.videofiles) statistics[u'Miros_videos_downloaded'] = after_download - before_download if opts.verbose: app.cli_interpreter.verbose = True # Deal with orphaned oldrecorded records. # These records indicate that the MythTV user deleted the video from the Watched Recordings screen # or from MythVideo # These video items must also be deleted from Miro videostodelete = getOldrecordedOrphans() if len(videostodelete): displayMessage(u"Starting Miro delete of videos deleted in the MythTV Watched Recordings screen.") for video in videostodelete: # Completely remove the video and item information from Miro app.cli_interpreter.do_mythtv_item_remove([video[u'title'], video[u'subtitle']]) # # Collect the set of played Miro video files # app.cli_interpreter.videofiles = getPlayedMiroVideos() # # Updated the played status of items # if app.cli_interpreter.videofiles: displayMessage(u"Starting Miro update of watched MythTV videos") app.cli_interpreter.do_mythtv_updatewatched(u'') # # Get the unwatched videos details from Miro # app.cli_interpreter.do_mythtv_getunwatched(u'') unwatched = app.cli_interpreter.videofiles # # Get the watched videos details from Miro # app.cli_interpreter.do_mythtv_getwatched(u'') watched = app.cli_interpreter.videofiles # # Remove any duplicate Miro videoes from the unwatched or watched list of Miro videos # This means that Miro has duplicates due to a Miro/Channel website issue # These videos should not be added to the MythTV Watch Recordings screen # unwatched_copy = [] for item in unwatched: unwatched_copy.append(item) for item in unwatched_copy: # Check for a duplicate against already watched Miro videos for x in watched: if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: try: unwatched.remove(item) # Completely remove this duplicate video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(item[u'videoFilename']) displayMessage(u"Skipped adding a duplicate Miro video to the MythTV Watch Recordings screen (%s - %s) which is already in MythVideo.\nSometimes a Miro channel has the same video downloaded multiple times.\nThis is a Miro/Channel web site issue and often rectifies itself overtime." % (item[u'channelTitle'], item[u'title'])) except ValueError: pass duplicates = [] for item in unwatched_copy: dup_flag = 0 for x in unwatched: # Check for a duplicate against un-watched Miro videos if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: dup_flag+=1 if dup_flag > 1: for x in duplicates: if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: break else: duplicates.append(item) for duplicate in duplicates: try: unwatched.remove(duplicate) # Completely remove this duplicate video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(duplicate[u'videoFilename']) displayMessage(u"Skipped adding a Miro video to the MythTV Watch Recordings screen (%s - %s) as there are duplicate 'new' video items.\nSometimes a Miro channel has the same video downloaded multiple times.\nThis is a Miro/Channel web site issue and often rectifies itself overtime." % (duplicate[u'channelTitle'], duplicate[u'title'])) except ValueError: pass # # Deal with any Channel videos that are to be copied and removed from Miro # copy_items = [] # Copy unwatched and watched Miro videos (all or only selected Channels) if u'all' in channel_mythvideo_only: for array in [watched, unwatched]: for item in array: copy_items.append(item) elif len(channel_mythvideo_only): for array in [watched, unwatched]: for video in array: if filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_mythvideo_only.keys(): copy_items.append(video) # Copy ONLY watched Miro videos (all or only selected Channels) if u'all' in channel_new_watch_copy: for video in watched: copy_items.append(video) elif len(channel_new_watch_copy): for video in watched: if filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_new_watch_copy.keys(): copy_items.append(video) channels_to_copy = {} for key in channel_mythvideo_only.keys(): channels_to_copy[key] = channel_mythvideo_only[key] for key in channel_new_watch_copy.keys(): channels_to_copy[key] = channel_new_watch_copy[key] for video in copy_items: dir_key = filter(is_not_punct_char, video[u'channelTitle'].lower()) # Create the subdirectories to copy the video into directory_coverart = False if not os.path.isdir(channels_to_copy[dir_key]): if simulation: logger.info(u"Simulation: Creating the MythVideo directory (%s)." % (channels_to_copy[dir_key])) else: os.makedirs(channels_to_copy[dir_key]) directory_coverart = True # If the directory was just created it needs coverart else: if video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) if not os.path.isfile(u"%s%s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'].lower(), ext)): directory_coverart = True # If the directory was just created it needs coverart elif video[u'item_icon']: ext = getExtention(video[u'item_icon']) if not os.path.isfile(u"%s%s - %s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'].lower(), video[u'title'].lower(), ext)): directory_coverart = True # If the directory was just created it needs coverart # Copy the Channel icon located in the posters/coverart directory if directory_coverart and video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) tmp_path = channels_to_copy[dir_key][:-1] foldername = tmp_path[tmp_path.rindex(u'/')+1:] dirpath = u"%s%s" % (channels_to_copy[dir_key], u'folder.jpg') dirpath2 = u"%s%s" % (channels_to_copy[dir_key], u'folder.png') if os.path.isfile(dirpath) or os.path.isfile(dirpath2): # See if a folder cover already exists pass else: if simulation: logger.info(u"Simulation: Copy a Channel Icon (%s) for directory (%s)." % (filepath, dirpath)) else: try: # Miro Channel icon copy for the new subdirectory useImageMagick(u'convert "%s" "%s"' % (video[u'channel_icon'], dirpath)) except: logger.critical(u"Copy a Channel Icon (%s) for directory (%s) failed." % (video[u'channel_icon'], dirpath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) # Copy the Miro video file save_video_filename = video[u'videoFilename'] # This filename is needed later for deleting in Miro ext = getExtention(video[u'videoFilename']) if ext.lower() == u'm4v': ext = u'mpg' filepath = u"%s%s - %s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'], video[u'title'], ext) if simulation: logger.info(u"Simulation: Copying the Miro video (%s) to the MythVideo directory (%s)." % (video[u'videoFilename'], filepath)) else: try: # Miro video copied into a MythVideo directory shutil.copy2(video[u'videoFilename'], filepath) statistics[u'Miros_MythVideos_copied']+=1 if u'mythvideo' in storagegroups.keys(): video[u'videoFilename'] = filepath.replace(storagegroups[u'mythvideo'], u'') else: video[u'videoFilename'] = filepath except: logger.critical(u"Copying the Miro video (%s) to the MythVideo directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'videoFilename'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) # Copy the Channel or item's icon if video[u'channel_icon'] and not video[u'channelTitle'].lower() in channel_icon_override: pass else: if video[u'item_icon']: video[u'channel_icon'] = video[u'item_icon'] if video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) if video[u'channelTitle'].lower() in channel_icon_override: filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'posterdir'], video[u'channelTitle'], video[u'title'], graphic_suffix[u'posterdir'], ext) else: filepath = u"%s%s%s.%s" % (vid_graphics_dirs[u'posterdir'], video[u'channelTitle'], graphic_suffix[u'posterdir'], ext) # There may already be a Channel icon available or it is a symlink which needs to be replaced if not os.path.isfile(filepath) or os.path.islink(filepath): if simulation: logger.info(u"Simulation: Copying the Channel Icon (%s) to the poster directory (%s)." % (video[u'channel_icon'], filepath)) else: try: # Miro Channel icon copied into a MythVideo directory try: # Remove any old symlink file os.remove(filepath) except OSError: pass shutil.copy2(video[u'channel_icon'], filepath) if u'posterdir' in storagegroups.keys(): video[u'channel_icon'] = filepath.replace(storagegroups[u'posterdir'], u'') else: video[u'channel_icon'] = filepath except: logger.critical(u"Copying the Channel Icon (%s) to the poster directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'channel_icon'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) else: if u'posterdir' in storagegroups.keys(): video[u'channel_icon'] = filepath.replace(storagegroups[u'posterdir'], u'') else: video[u'channel_icon'] = filepath # There may already be a Screenshot available or it is a symlink which needs to be replaced if video[u'screenshot']: ext = getExtention(video[u'screenshot']) filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'episodeimagedir'], video[u'channelTitle'], video[u'title'], graphic_suffix[u'episodeimagedir'], ext) else: filepath = u'' if not os.path.isfile(filepath) or os.path.islink(filepath): if video[u'screenshot']: if simulation: logger.info(u"Simulation: Copying the Screenshot (%s) to the Screenshot directory (%s)." % (video[u'screenshot'], filepath)) else: try: # Miro Channel icon copied into a MythVideo directory try: # Remove any old symlink file os.remove(filepath) except OSError: pass shutil.copy2(video[u'screenshot'], filepath) displayMessage(u"Copied Miro screenshot file (%s) to MythVideo (%s)" % (video[u'screenshot'], filepath)) if u'episodeimagedir' in storagegroups.keys(): video[u'screenshot'] = filepath.replace(storagegroups[u'episodeimagedir'], u'') else: video[u'screenshot'] = filepath except: logger.critical(u"Copying the Screenshot (%s) to the Screenshot directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'screenshot'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) elif video[u'screenshot']: if u'episodeimagedir' in storagegroups.keys(): video[u'screenshot'] = filepath.replace(storagegroups[u'episodeimagedir'], u'') else: video[u'screenshot'] = filepath video[u'copied'] = True # Mark this video item as being copied # Completely remove the video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(save_video_filename) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete # # Add and delete MythTV (Watch Recordings) Miro recorded records # Add and remove symlinks for Miro video files # # Check if the user does not want any channels Added to the "Watch Recordings" screen if channel_mythvideo_only.has_key(u'all'): for video in unwatched: watched.append(video) unwatched = [] else: if len(channel_mythvideo_only): unwatched_copy = [] for video in unwatched: if not filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_mythvideo_only.keys(): unwatched_copy.append(video) else: watched.append(video) unwatched = unwatched_copy statistics[u'Total_unwatched'] = len(unwatched) if not len(unwatched): displayMessage(u"There are no Miro unwatched video items to add as MythTV Recorded videos.") if not updateMythRecorded(unwatched): logger.critical(u"Updating MythTV Recording with Miro video files failed." % str(base_video_dir)) sys.exit(False) # # Add and delete MythVideo records for played Miro Videos # Add and delete symbolic links to Miro Videos and subdirectories # Add and delete symbolic links to coverart/Miro icons and Miro screenshots/fanart # if len(channel_watch_only): # If the user does not want any channels moved to MythVideo exit if channel_watch_only[0].lower() == u'all': printStatistics() return True if not len(watched): displayMessage(u"There are no Miro watched items to add to MythVideo") if not updateMythVideo(watched): logger.critical(u"Updating MythVideo with Miro video files failed.") sys.exit(False) printStatistics() return True
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 67, 2107, 2552, 3569, 16, 4224, 67, 87, 11182, 10650, 16, 1904, 67, 7585, 67, 3700, 16, 1904, 67, 4811, 451, 9115, 67, 3700, 16, 1904, 67, 2704, 67, 7585, 67, 3530, 2552, 18339, 67, 31586, 67, 8291, 16, 2502, 4650, 16, 8902, 351, 346, 1200, 16, 7691, 16, 8433, 67, 834, 67, 10578, 2552, 19548, 67, 8477, 16, 19548, 67, 803, 67, 8477, 16, 19548, 67, 529, 67, 8477, 2552, 3399, 451, 5702, 6420, 67, 3366, 899, 16, 3399, 451, 5702, 6420, 67, 6768, 538, 225, 2082, 273, 18862, 12, 9167, 33, 89, 28385, 14654, 4084, 30, 312, 11373, 18337, 300, 76, 344, 90, 5084, 1882, 58, 44, 2312, 25173, 306, 3977, 13944, 82, 7923, 225, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 73, 3113, 5238, 16858, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 16, 1570, 1546, 16858, 3113, 2809, 33, 89, 6, 4236, 10991, 364, 11274, 326, 525, 301, 89, 2728, 7923, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 90, 3113, 5238, 1589, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 16, 1570, 1546, 1589, 3113, 2809, 33, 89, 6, 4236, 1177, 471, 2869, 1779, 7923, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 87, 3113, 5238, 9812, 6234, 3113, 1301, 1546, 2233, 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, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 67, 2107, 2552, 3569, 16, 4224, 67, 87, 11182, 10650, 16, 1904, 67, 7585, 67, 3700, 16, 1904, 67, 4811, 451, 9115, 67, 3700, 16, 1904, 67, 2704, 67, 7585, 67, 3530, 2552, 18339, 67, 31586, 67, 8291, 16, 2502, 4650, 16, 8902, 351, 346, 1200, 16, 7691, 16, 8433, 67, 834, 67, 10578, 2552, 19548, 67, 8477, 16, 19548, 67, 803, 67, 8477, 16, 19548, 67, 529, 67, 8477, 2552, 3399, 451, 5702, 6420, 67, 3366, 899, 16, 3399, 451, 5702, 6420, 67, 6768, 2 ]
revert = [[336, [revert_display_enum]],
revert = [[337, [revert_polytonicgreek]], [336, [revert_display_enum]],
def revert_plainlayout(document): " Convert 'PlainLayout' to 'Plain Layout'" i = 0 while True: i = find_token(document.body, '\\begin_layout PlainLayout', i) if i == -1: return # This will be incorrect for some document classes, since Standard is not always # the default. But (a) it is probably the best we can do and (b) it will actually # work, in fact, since an unknown layout will be converted to default. document.body[i] = document.body[i].replace('\\begin_layout PlainLayout', \ '\\begin_layout Standard') i += 1
e2e78fa20ab0d1a7685d11d13c4082a691c9b205 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/e2e78fa20ab0d1a7685d11d13c4082a691c9b205/lyx_1_6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7446, 6741, 12, 5457, 4672, 315, 4037, 296, 13360, 3744, 11, 358, 296, 13360, 9995, 4970, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718, 10086, 67, 6741, 17367, 3744, 2187, 277, 13, 309, 277, 422, 300, 21, 30, 327, 468, 1220, 903, 506, 11332, 364, 2690, 1668, 3318, 16, 3241, 8263, 353, 486, 3712, 468, 326, 805, 18, 12484, 261, 69, 13, 518, 353, 8656, 326, 3796, 732, 848, 741, 471, 261, 70, 13, 518, 903, 6013, 468, 1440, 16, 316, 5410, 16, 3241, 392, 5917, 3511, 903, 506, 5970, 358, 805, 18, 1668, 18, 3432, 63, 77, 65, 273, 1668, 18, 3432, 63, 77, 8009, 2079, 2668, 1695, 10086, 67, 6741, 17367, 3744, 2187, 521, 3718, 10086, 67, 6741, 8263, 6134, 277, 1011, 404, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7446, 6741, 12, 5457, 4672, 315, 4037, 296, 13360, 3744, 11, 358, 296, 13360, 9995, 4970, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718, 10086, 67, 6741, 17367, 3744, 2187, 277, 13, 309, 277, 422, 300, 21, 30, 327, 468, 1220, 903, 506, 11332, 364, 2690, 1668, 3318, 16, 3241, 8263, 353, 486, 3712, 468, 326, 805, 18, 12484, 261, 69, 13, 518, 353, 8656, 326, 3796, 732, 848, 741, 471, 261, 70, 13, 518, 903, 6013, 468, 1440, 16, 316, 5410, 16, 3241, 392, 5917, 3511, 903, 506, 5970, 358, 805, 18, 1668, 18, 3432, 63, 77, 65, 273, 1668, 18, 3432, 63, 77, 8009, 2079, 2 ]
nm_pid = (updater_out.split())[1]
nm_pid = (nm_out.split())[1]
def nmclient_rawsay(nmip, nmport, *args): fullresponse = nmclient_rawcommunicate(nmip, nmport, *args) try: (response, status) = fullresponse.rsplit('\n',1) except KeyError: raise NMClientException, "Communication error '"+fullresponse+"'" if status == 'Success': return response elif status == 'Error': raise NMClientException, "Node Manager error '"+response+"'" elif status == 'Warning': raise NMClientException, "Node Manager warning '"+response+"'" else: raise NMClientException, "Unknown status '"+fullresponse+"'"
a57461edbf68311778343fa139551d18c414e9af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7277/a57461edbf68311778343fa139551d18c414e9af/testprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 13, 225, 775, 30, 261, 2740, 16, 1267, 13, 273, 1983, 2740, 18, 86, 4939, 2668, 64, 82, 2187, 21, 13, 1335, 4999, 30, 1002, 423, 49, 3781, 16, 315, 25219, 555, 2119, 15, 2854, 2740, 9078, 4970, 225, 309, 1267, 422, 296, 4510, 4278, 327, 766, 1327, 1267, 422, 296, 668, 4278, 1002, 423, 49, 3781, 16, 315, 907, 8558, 555, 2119, 15, 2740, 9078, 4970, 1327, 1267, 422, 296, 6210, 4278, 1002, 423, 49, 3781, 16, 315, 907, 8558, 3436, 2119, 15, 2740, 9078, 4970, 469, 30, 1002, 423, 49, 3781, 16, 315, 4874, 1267, 2119, 15, 2854, 2740, 9078, 4970, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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740, 18, 86, 4939, 2668, 64, 82, 2187, 21, 13, 1335, 4999, 30, 1002, 423, 49, 3781, 16, 315, 25219, 555, 2119, 15, 2854, 2740, 9078, 4970, 225, 309, 1267, 422, 296, 4510, 4278, 327, 766, 1327, 1267, 422, 296, 668, 4278, 1002, 423, 49, 3781, 16, 315, 907, 8558, 555, 2119, 15, 2740, 9078, 4970, 1327, 1267, 422, 296, 6210, 4278, 1002, 423, 49, 3781, 16, 315, 907, 8558, 3436, 2119, 2 ]
if os.environ.has_key('CFLAGS'): extra_args.extend(string.split(os.environ['CFLAGS']))
for undef in ext.undef_macros: macros.append((undef,))
0a8374cd4647d0eab542d96901893cc768341540 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0a8374cd4647d0eab542d96901893cc768341540/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 364, 640, 536, 316, 1110, 18, 318, 536, 67, 5821, 6973, 30, 24302, 18, 6923, 12443, 318, 536, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 318, 536, 16, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 (1, 1)
return (1, 1)
def set_defaults_lam(tmpDir): """ Set defaults for lamboot and Rslaves and number procs based on the size of the data file. This is all heuristic, but works for us with 6 GB RAM per node. The key idea is to prevent swapping. ncpu are the Rslaves spawned by lamd, or the cpu=ncpu in the lamb-host file. max_num_procs is the maximum number of simultaneous adacgh processes running at any time. We return the tuple ncpu, max_num_procs""" datsize1 = 0 datsize2 = 0 if os.path.exists(tmpDir + '/acghData'): datsize1 = int(os.popen('ls ' + tmpDir + '/acghData -sk').read().split()[0]) if os.path.exists(tmpDir + '/acghAndPosition'): datsize2 = int(os.popen('ls ' + tmpDir + '/acghAndPosition -sk').read().split()[0]) datsize = max(datsize2, datsize1) if datsize < 2000: return (2, 3) elif datsize < 6000: return (2, 2) elif datsize < 14000: return (2, 1) else: return (1, 1)
d2b293ea2543b9cd51915938ddf922f1fdd7d895 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6464/d2b293ea2543b9cd51915938ddf922f1fdd7d895/runAndCheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 7606, 67, 28448, 12, 5645, 1621, 4672, 3536, 1000, 3467, 364, 17310, 7137, 471, 534, 2069, 6606, 471, 1300, 27009, 2511, 603, 326, 963, 434, 326, 501, 585, 18, 1220, 353, 777, 25833, 16, 1496, 6330, 364, 584, 598, 1666, 25069, 30327, 1534, 756, 18, 1021, 498, 21463, 353, 358, 5309, 7720, 1382, 18, 290, 11447, 854, 326, 534, 2069, 6606, 12560, 329, 635, 17310, 72, 16, 578, 326, 8326, 33, 82, 11447, 316, 326, 24707, 17, 2564, 585, 18, 943, 67, 2107, 67, 27537, 353, 326, 4207, 1300, 434, 27504, 1261, 1077, 17680, 8488, 3549, 622, 1281, 813, 18, 1660, 327, 326, 3193, 290, 11447, 16, 943, 67, 2107, 67, 27537, 8395, 1150, 1467, 21, 273, 374, 1150, 1467, 22, 273, 374, 309, 1140, 18, 803, 18, 1808, 12, 5645, 1621, 397, 1173, 1077, 17680, 751, 11, 4672, 1150, 1467, 21, 273, 509, 12, 538, 18, 84, 3190, 2668, 3251, 296, 397, 22521, 397, 1173, 1077, 17680, 751, 300, 7771, 16063, 896, 7675, 4939, 1435, 63, 20, 5717, 309, 1140, 18, 803, 18, 1808, 12, 5645, 1621, 397, 1173, 1077, 17680, 1876, 2555, 11, 4672, 1150, 1467, 22, 273, 509, 12, 538, 18, 84, 3190, 2668, 3251, 296, 397, 22521, 397, 1173, 1077, 17680, 1876, 2555, 300, 7771, 16063, 896, 7675, 4939, 1435, 63, 20, 5717, 1150, 1467, 273, 943, 12, 3404, 1467, 22, 16, 1150, 1467, 21, 13, 309, 1150, 1467, 411, 16291, 30, 327, 261, 22, 16, 890, 13, 1327, 1150, 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, 444, 67, 7606, 67, 28448, 12, 5645, 1621, 4672, 3536, 1000, 3467, 364, 17310, 7137, 471, 534, 2069, 6606, 471, 1300, 27009, 2511, 603, 326, 963, 434, 326, 501, 585, 18, 1220, 353, 777, 25833, 16, 1496, 6330, 364, 584, 598, 1666, 25069, 30327, 1534, 756, 18, 1021, 498, 21463, 353, 358, 5309, 7720, 1382, 18, 290, 11447, 854, 326, 534, 2069, 6606, 12560, 329, 635, 17310, 72, 16, 578, 326, 8326, 33, 82, 11447, 316, 326, 24707, 17, 2564, 585, 18, 943, 67, 2107, 67, 27537, 353, 326, 4207, 1300, 434, 27504, 1261, 1077, 17680, 8488, 3549, 622, 1281, 813, 18, 1660, 327, 326, 3193, 290, 11447, 16, 943, 67, 2107, 67, 27537, 8395, 1150, 1467, 21, 2 ]
call([innosetup_exe, winmerge_iss_path])
call([innosetup_exe, 'WinMerge.iss']) os.chdir(cur_path)
def build_innosetup_installer(target_folder): """Builds the InnoSetup installer for the WinMerge.""" innosetup_exe = os.path.join(prog.innosetup_path, 'iscc.exe') cur_path = os.getcwd() winmerge_iss_path = os.path.join(cur_path, 'Installer\\InnoSetup\\WinMerge.iss') #output_switch = '/O"' + target_folder + '"' print 'Build Innosetup installer...' # Should be able to give folder for created file and Q switch to make build quiet #call([innosetup_exe, '/Q', output_switch, winmerge_iss]) call([innosetup_exe, winmerge_iss_path])
e5da116fb46d59d18c1d38792b0d2455b83fedd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5857/e5da116fb46d59d18c1d38792b0d2455b83fedd4/create_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 267, 18050, 278, 416, 67, 20163, 12, 3299, 67, 5609, 4672, 3536, 7746, 326, 657, 2135, 7365, 16050, 364, 326, 21628, 6786, 12123, 225, 316, 18050, 278, 416, 67, 14880, 273, 1140, 18, 803, 18, 5701, 12, 14654, 18, 267, 18050, 278, 416, 67, 803, 16, 296, 291, 952, 18, 14880, 6134, 662, 67, 803, 273, 1140, 18, 588, 11089, 1435, 225, 5657, 2702, 67, 1054, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 1397, 67, 803, 16, 296, 18678, 1695, 382, 2135, 7365, 1695, 18049, 6786, 18, 1054, 6134, 225, 468, 2844, 67, 9610, 273, 1173, 51, 5187, 397, 1018, 67, 5609, 397, 4754, 225, 1172, 296, 3116, 657, 18050, 278, 416, 16050, 7821, 468, 9363, 506, 7752, 358, 8492, 3009, 364, 2522, 585, 471, 2238, 1620, 358, 1221, 1361, 10902, 468, 1991, 3816, 267, 18050, 278, 416, 67, 14880, 16, 1173, 53, 2187, 876, 67, 9610, 16, 5657, 2702, 67, 1054, 5717, 745, 3816, 267, 18050, 278, 416, 67, 14880, 16, 296, 18049, 6786, 18, 1054, 19486, 1140, 18, 343, 1214, 12, 1397, 67, 803, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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18, 803, 18, 5701, 12, 14654, 18, 267, 18050, 278, 416, 67, 803, 16, 296, 291, 952, 18, 14880, 6134, 662, 67, 803, 273, 1140, 18, 588, 11089, 1435, 225, 5657, 2702, 67, 1054, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 1397, 67, 803, 16, 296, 18678, 1695, 382, 2135, 7365, 1695, 18049, 6786, 18, 1054, 6134, 225, 468, 2844, 67, 9610, 273, 1173, 51, 5187, 397, 1018, 67, 5609, 397, 4754, 225, 1172, 296, 3116, 657, 18050, 278, 416, 16050, 7821, 2 ]
elif len(opt['type']) == 2 and opt['type'][0] == 'chooseFrom':
elif type(opt['type']) in (tuple, list) and \ len(opt['type']) == 2 and opt['type'][0] == 'chooseFrom':
def addOption(self, pos=-1, **kwargs): ''' Append an entry to the parameter specification list. Dictionary entries should be specified as keyword arguments such as ``name='option'``. More specifically, you can specify parameters ``name`` (required), ``label``, ``default`` (required), ``description``, ``validator``, ``type``, and ``separator``. This option will have a name specified by ``name`` and an initial default value specified by ``default``.
0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12966, 12, 2890, 16, 949, 29711, 21, 16, 2826, 4333, 4672, 9163, 6181, 392, 1241, 358, 326, 1569, 7490, 666, 18, 16447, 3222, 1410, 506, 1269, 487, 4932, 1775, 4123, 487, 12176, 529, 2218, 3482, 11, 68, 8338, 16053, 21195, 16, 1846, 848, 4800, 1472, 12176, 529, 10335, 261, 4718, 3631, 12176, 1925, 68, 9191, 12176, 1886, 10335, 261, 4718, 3631, 12176, 3384, 68, 9191, 12176, 7357, 68, 9191, 12176, 723, 68, 9191, 471, 12176, 11287, 68, 8338, 1220, 1456, 903, 1240, 279, 508, 1269, 635, 12176, 529, 10335, 471, 392, 2172, 805, 460, 1269, 635, 12176, 1886, 68, 8338, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12966, 12, 2890, 16, 949, 29711, 21, 16, 2826, 4333, 4672, 9163, 6181, 392, 1241, 358, 326, 1569, 7490, 666, 18, 16447, 3222, 1410, 506, 1269, 487, 4932, 1775, 4123, 487, 12176, 529, 2218, 3482, 11, 68, 8338, 16053, 21195, 16, 1846, 848, 4800, 1472, 12176, 529, 10335, 261, 4718, 3631, 12176, 1925, 68, 9191, 12176, 1886, 10335, 261, 4718, 3631, 12176, 3384, 68, 9191, 12176, 7357, 68, 9191, 12176, 723, 68, 9191, 471, 12176, 11287, 68, 8338, 1220, 1456, 903, 1240, 279, 508, 1269, 635, 12176, 529, 10335, 471, 392, 2172, 805, 460, 1269, 635, 12176, 1886, 68, 8338, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
requirements = []
requirements = [] version = "0.6.5" long_version = os.environ.get('BEAH_VER', version) + os.environ.get('BEAH_DEV', strftime(".dev%Y%m%d%H%M"))
def glob_to(prefix, new_prefix, dirs): if prefix and prefix[-1]!='/': prefix += '/' return list([(new_prefix+'/'+dir, glob_(prefix, dir+'/*')) for dir in dirs])
2a1e42d6e4a958facae10ff4b01b12daf5bf0f0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/2a1e42d6e4a958facae10ff4b01b12daf5bf0f0e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4715, 67, 869, 12, 3239, 16, 394, 67, 3239, 16, 7717, 4672, 309, 1633, 471, 1633, 18919, 21, 65, 5, 2218, 2473, 30, 1633, 1011, 2023,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4715, 67, 869, 12, 3239, 16, 394, 67, 3239, 16, 7717, 4672, 309, 1633, 471, 1633, 18919, 21, 65, 5, 2218, 2473, 30, 1633, 1011, 2023, 327, 666, 3816, 12, 2704, 67, 3239, 6797, 2473, 15, 1214, 16, 4715, 67, 12, 3239, 16, 1577, 6797, 19, 4035, 3719, 364, 1577, 316, 7717, 5717, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
security.declareProtected(view_management_screens, 'getCheckedin()')
security.declareProtected(view_management_screens, 'getCheckedin')
def getPoolSize(self): """ """ return self._wrapper._engine.connection_provider._pool.size()
ea56c7724f3fef53caac3a02e9ee68fb11aead62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6817/ea56c7724f3fef53caac3a02e9ee68f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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28575, 1225, 12, 2890, 4672, 3536, 3536, 327, 365, 6315, 8376, 6315, 8944, 18, 4071, 67, 6778, 6315, 6011, 18, 1467, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"Expected: %s\nActual: %s" % (index+1, kw.name, expected, actual))
"Expected: %s\nActual: %s.\n%s" % (index+1, kw.name, expected, actual, kw.messages[index].message))
def _check_log_level(expected, test, kw, index): actual = kw.messages[index].level if actual == expected: return True test.status = 'FAIL' test.message = ("Wrong level for message %d of keyword '%s'.\n\n" "Expected: %s\nActual: %s" % (index+1, kw.name, expected, actual)) return False
2865fa2ccf936c93613f972b5a74872ab9cc2961 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/2865fa2ccf936c93613f972b5a74872ab9cc2961/statuschecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1330, 67, 2815, 12, 3825, 16, 1842, 16, 5323, 16, 770, 4672, 3214, 273, 5323, 18, 6833, 63, 1615, 8009, 2815, 309, 3214, 422, 2665, 30, 327, 1053, 1842, 18, 2327, 273, 296, 12319, 11, 1842, 18, 2150, 273, 7566, 13634, 1801, 364, 883, 738, 72, 434, 4932, 1995, 87, 11, 8403, 82, 64, 82, 6, 315, 6861, 30, 738, 87, 64, 82, 11266, 30, 738, 87, 8403, 82, 9, 87, 6, 738, 261, 1615, 15, 21, 16, 5323, 18, 529, 16, 2665, 16, 3214, 16, 5323, 18, 6833, 63, 1615, 8009, 2150, 3719, 327, 1083, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1893, 67, 1330, 67, 2815, 12, 3825, 16, 1842, 16, 5323, 16, 770, 4672, 3214, 273, 5323, 18, 6833, 63, 1615, 8009, 2815, 309, 3214, 422, 2665, 30, 327, 1053, 1842, 18, 2327, 273, 296, 12319, 11, 1842, 18, 2150, 273, 7566, 13634, 1801, 364, 883, 738, 72, 434, 4932, 1995, 87, 11, 8403, 82, 64, 82, 6, 315, 6861, 30, 738, 87, 64, 82, 11266, 30, 738, 87, 8403, 82, 9, 87, 6, 738, 261, 1615, 15, 21, 16, 5323, 18, 529, 16, 2665, 16, 3214, 16, 5323, 18, 6833, 63, 1615, 8009, 2150, 3719, 327, 1083, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return "Card(game, %s, %s)" % (`self.suit`, `self.value`)
"""Return a string for debug print statements.""" return "Card(%s, %s)" % (`self.suit`, `self.value`)
def __repr__(self):
20ce2dd6aa77ea628b49c0c6b820d66211a9a61d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/20ce2dd6aa77ea628b49c0c6b820d66211a9a61d/solitaire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _point_morphism_class(self):
def _point_morphism_class(self, *args, **kwds):
def _point_morphism_class(self): """ EXAMPLES:: sage: X = Spec(QQ) sage: X._point_morphism_class() Traceback (most recent call last): ... NotImplementedError """ raise NotImplementedError
346c87d10dff49f592ee9e1bc94a030715beedd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/346c87d10dff49f592ee9e1bc94a030715beedd5/scheme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1153, 67, 81, 7657, 6228, 67, 1106, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 1139, 273, 4185, 12, 53, 53, 13, 272, 410, 30, 1139, 6315, 1153, 67, 81, 7657, 6228, 67, 1106, 1435, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, 11206, 3536, 1002, 11206, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1153, 67, 81, 7657, 6228, 67, 1106, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 1139, 273, 4185, 12, 53, 53, 13, 272, 410, 30, 1139, 6315, 1153, 67, 81, 7657, 6228, 67, 1106, 1435, 2677, 823, 261, 10329, 8399, 745, 1142, 4672, 1372, 11206, 3536, 1002, 11206, 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 ]
beta = zeros(ndims, typecode)
beta = numpy.zeros(ndims, typecode)
def train(xs, ys, update_fn=None, typecode=None): """train(xs, ys[, update_fn]) -> LogisticRegression Train a logistic regression classifier on a training set. xs is a list of observations and ys is a list of the class assignments, which should be 0 or 1. xs and ys should contain the same number of elements. update_fn is an optional callback function that takes as parameters that iteration number and log likelihood. """ if len(xs) != len(ys): raise ValueError("xs and ys should be the same length.") classes = set(ys) if classes != set([0, 1]): raise ValueError("Classes should be 0's and 1's") if typecode is None: typecode = 'd' # Dimensionality of the data is the dimensionality of the # observations plus a constant dimension. N, ndims = len(xs), len(xs[0]) + 1 if N==0 or ndims==1: raise ValueError("No observations or observation of 0 dimension.") # Make an X array, with a constant first dimension. X = ones((N, ndims), typecode) X[:, 1:] = xs Xt = transpose(X) y = asarray(ys, typecode) # Initialize the beta parameter to 0. beta = zeros(ndims, typecode) MAX_ITERATIONS = 500 CONVERGE_THRESHOLD = 0.01 stepsize = 1.0 # Now iterate using Newton-Raphson until the log-likelihoods # converge. iter = 0 old_beta = old_llik = None while iter < MAX_ITERATIONS: # Calculate the probabilities. p = e^(beta X) / (1+e^(beta X)) ebetaX = exp(dot(beta, Xt)) p = ebetaX / (1+ebetaX) # Find the log likelihood score and see if I've converged. logp = y*log(p) + (1-y)*log(1-p) llik = sum(logp) if update_fn is not None: update_fn(iter, llik) # Check to see if the likelihood decreased. If it did, then # restore the old beta parameters and half the step size. if llik < old_llik: stepsize = stepsize / 2.0 beta = old_beta # If I've converged, then stop. if old_llik is not None and fabs(llik-old_llik) <= CONVERGE_THRESHOLD: break old_llik, old_beta = llik, beta iter += 1 W = identity(N) * p Xtyp = dot(Xt, y-p) # Calculate the first derivative. XtWX = dot(dot(Xt, W), X) # Calculate the second derivative. #u, s, vt = singular_value_decomposition(XtWX) #print "U", u #print "S", s delta = solve(XtWX, Xtyp) if fabs(stepsize-1.0) > 0.001: delta = delta * stepsize beta = beta + delta # Update beta. else: raise RuntimeError("Didn't converge.") lr = LogisticRegression() lr.beta = map(float, beta) # Convert back to regular array. return lr
d809647947d1c1b04931b9b9e5a02913cee6914f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/d809647947d1c1b04931b9b9e5a02913cee6914f/LogisticRegression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 12, 13713, 16, 16036, 16, 1089, 67, 4293, 33, 7036, 16, 618, 710, 33, 7036, 4672, 3536, 9754, 12, 13713, 16, 16036, 63, 16, 1089, 67, 4293, 5717, 317, 1827, 5846, 1617, 16345, 225, 2197, 267, 279, 613, 5846, 23215, 14622, 603, 279, 8277, 444, 18, 225, 9280, 353, 279, 666, 434, 16477, 471, 16036, 353, 279, 666, 434, 326, 667, 13610, 16, 1492, 1410, 506, 374, 578, 404, 18, 225, 9280, 471, 16036, 1410, 912, 326, 1967, 1300, 434, 2186, 18, 225, 1089, 67, 4293, 353, 392, 3129, 1348, 445, 716, 5530, 487, 1472, 716, 6532, 1300, 471, 613, 18067, 18, 225, 3536, 309, 562, 12, 13713, 13, 480, 562, 12, 1900, 4672, 1002, 2068, 2932, 13713, 471, 16036, 1410, 506, 326, 1967, 769, 1199, 13, 3318, 273, 444, 12, 1900, 13, 309, 3318, 480, 444, 3816, 20, 16, 404, 65, 4672, 1002, 2068, 2932, 4818, 1410, 506, 374, 1807, 471, 404, 1807, 7923, 309, 618, 710, 353, 599, 30, 618, 710, 273, 296, 72, 11, 225, 468, 13037, 7919, 434, 326, 501, 353, 326, 29912, 434, 326, 468, 16477, 8737, 279, 5381, 4968, 18, 423, 16, 30908, 273, 562, 12, 13713, 3631, 562, 12, 13713, 63, 20, 5717, 397, 404, 309, 423, 631, 20, 578, 30908, 631, 21, 30, 1002, 2068, 2932, 2279, 16477, 578, 13853, 434, 374, 4968, 1199, 13, 225, 468, 4344, 392, 1139, 526, 16, 598, 279, 5381, 1122, 4968, 18, 1139, 273, 5945, 12443, 50, 16, 30908, 3631, 618, 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, 4691, 12, 13713, 16, 16036, 16, 1089, 67, 4293, 33, 7036, 16, 618, 710, 33, 7036, 4672, 3536, 9754, 12, 13713, 16, 16036, 63, 16, 1089, 67, 4293, 5717, 317, 1827, 5846, 1617, 16345, 225, 2197, 267, 279, 613, 5846, 23215, 14622, 603, 279, 8277, 444, 18, 225, 9280, 353, 279, 666, 434, 16477, 471, 16036, 353, 279, 666, 434, 326, 667, 13610, 16, 1492, 1410, 506, 374, 578, 404, 18, 225, 9280, 471, 16036, 1410, 912, 326, 1967, 1300, 434, 2186, 18, 225, 1089, 67, 4293, 353, 392, 3129, 1348, 445, 716, 5530, 487, 1472, 716, 6532, 1300, 471, 613, 18067, 18, 225, 3536, 309, 562, 12, 13713, 13, 480, 562, 12, 1900, 4672, 1002, 2068, 2932, 2 ]
userfolder = root.get_object('users')
userfolder = root.get_handler('users')
def permissions(self, context): # Permissions to remove if context.has_form_value('delete'): for username in context.get_form_values('delusers'): self.del_roles(username) return context.come_back(u"Members deleted.")
04c6d0abb5fe26ace47e9ab825ea2ef81c9ab57f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/04c6d0abb5fe26ace47e9ab825ea2ef81c9ab57f/access.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4371, 12, 2890, 16, 819, 4672, 468, 15684, 358, 1206, 309, 819, 18, 5332, 67, 687, 67, 1132, 2668, 3733, 11, 4672, 364, 2718, 316, 819, 18, 588, 67, 687, 67, 2372, 2668, 3771, 5577, 11, 4672, 365, 18, 3771, 67, 7774, 12, 5053, 13, 327, 819, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4371, 12, 2890, 16, 819, 4672, 468, 15684, 358, 1206, 309, 819, 18, 5332, 67, 687, 67, 1132, 2668, 3733, 11, 4672, 364, 2718, 316, 819, 18, 588, 67, 687, 67, 2372, 2668, 3771, 5577, 11, 4672, 365, 18, 3771, 67, 7774, 12, 5053, 13, 327, 819, 18, 5624, 67, 823, 12, 89, 6, 6918, 4282, 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 ]
source.Refresh()
source.RefreshCanvasItems(resort=False)
def OnEnter(self, x, y, dragResult): source = self.GetDraggedFromWidget() if source not in (self, None): # On Linux, OnLeave doesn't reliably happen before OnEnter source.OnLeave()
62b435afe8af2920119a51dbd26e22abbedd9daa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/62b435afe8af2920119a51dbd26e22abbedd9daa/CollectionCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10237, 12, 2890, 16, 619, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10237, 12, 2890, 16, 619, 16, 677, 16, 8823, 1253, 4672, 1084, 273, 365, 18, 967, 11728, 2423, 1265, 4609, 1435, 309, 1084, 486, 316, 261, 2890, 16, 599, 4672, 468, 2755, 13318, 16, 2755, 21300, 3302, 1404, 14719, 6906, 5865, 1865, 2755, 10237, 1084, 18, 1398, 21300, 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 ]
self.s_apply(self.r_reload, args)
return self.s_apply(self.r_reload, args)
def s_reload(self, *args): self.s_apply(self.r_reload, args)
134dfb4160d53248b554c39b556538d7ad7478e2 /local1/tlutelli/iss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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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 67, 17517, 12, 2890, 16, 380, 1968, 4672, 365, 18, 87, 67, 9010, 12, 2890, 18, 86, 67, 17517, 16, 833, 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 ]
if name.startswith("__abc_"):
if name.startswith("_ABCMeta__"):
def _dump_registry(cls, file=None): """Debug helper to print the ABC registry.""" print("Class: %s.%s" % (cls.__module__, cls.__name__), file=file) print("Inv.counter: %s" % ABCMeta.__invalidation_counter, file=file) for name in sorted(cls.__dict__.keys()): if name.startswith("__abc_"): value = getattr(cls, name) print("%s: %r" % (name, value), file=file)
cb88f0a3236e12ead30dd32558b147766f1a033c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/cb88f0a3236e12ead30dd32558b147766f1a033c/abc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 67, 9893, 12, 6429, 16, 585, 33, 7036, 4672, 3536, 2829, 4222, 358, 1172, 326, 29253, 4023, 12123, 1172, 2932, 797, 30, 738, 87, 7866, 87, 6, 738, 261, 6429, 16186, 2978, 972, 16, 2028, 16186, 529, 972, 3631, 585, 33, 768, 13, 1172, 2932, 3605, 18, 7476, 30, 738, 87, 6, 738, 29253, 2781, 16186, 5387, 367, 67, 7476, 16, 585, 33, 768, 13, 364, 508, 316, 3115, 12, 6429, 16186, 1576, 25648, 2452, 1435, 4672, 309, 508, 18, 17514, 1918, 2932, 67, 26904, 2781, 14437, 4672, 460, 273, 3869, 12, 6429, 16, 508, 13, 1172, 27188, 87, 30, 738, 86, 6, 738, 261, 529, 16, 460, 3631, 585, 33, 768, 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, 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7476, 30, 738, 87, 6, 738, 29253, 2781, 16186, 5387, 367, 67, 7476, 16, 585, 33, 768, 13, 364, 508, 316, 3115, 12, 6429, 16186, 1576, 25648, 2452, 1435, 4672, 309, 508, 18, 17514, 1918, 2932, 67, 26904, 2781, 14437, 4672, 460, 273, 3869, 12, 6429, 16, 508, 13, 1172, 27188, 87, 30, 738, 86, 6, 738, 261, 529, 16, 460, 3631, 585, 33, 768, 13, 2, -100, -100, -100 ]
self.fileClean( params ) self.fileBuild( params )
self.fileBuild( params, "rebuild" )
def fileRebuild( self, params ): """Rebuild (clean & build) a .bb file""" self.fileClean( params ) self.fileBuild( params )
b7b4747e707bea6f9dee836e6b04b0f9ff9fedab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/b7b4747e707bea6f9dee836e6b04b0f9ff9fedab/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 426, 3510, 12, 365, 16, 859, 262, 30, 3536, 426, 3510, 261, 6200, 473, 1361, 13, 279, 263, 9897, 585, 8395, 365, 18, 768, 7605, 12, 859, 262, 365, 18, 768, 3116, 12, 859, 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, 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 3536, 426, 3510, 261, 6200, 473, 1361, 13, 279, 263, 9897, 585, 8395, 365, 18, 768, 7605, 12, 859, 262, 365, 18, 768, 3116, 12, 859, 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, -100 ]
self.root_accel = AcceleratorList("^X", "Ctrl-TAB", "Ctrl-X Ctrl-S", "C-x C-c", frame=self)
self.root_accel = AcceleratorList("^X", "Ctrl-TAB", "Ctrl-X Ctrl-S", "C-x C-c")
def setAlternateMenu(self): self.root_accel.unbindEvents(self.ctrl) menuBar = wx.MenuBar() gmap = wx.Menu() self.root_accel = AcceleratorList("^X", "Ctrl-TAB", "Ctrl-X Ctrl-S", "C-x C-c", frame=self) self.menuAddM(menuBar, gmap, "Alternate", "Global key map") self.menuAdd(gmap, "New\tC-N", StatusUpdater) self.menuAdd(gmap, "Open\tC-O", StatusUpdater) self.menuAdd(gmap, "Save\tC-S", StatusUpdater) self.menuAdd(gmap, "Primary Menu\tC-B", PrimaryMenu(self)) self.menuAdd(gmap, "Exit\tC-Q", sys.exit) self.SetMenuBar(menuBar) # Adding the MenuBar to the Frame content. self.menuBar = menuBar self.root_accel.addCancelKeyBinding("ESC", StatusUpdater(self, "Cancel")) self.root_accel.addQuotedCharKeyBinding("M-q") self.root_accel.addDefaultKeyAction(SelfInsertCommand(self)) self.root_accel.setAcceleratorTable() dprint(self.root_accel) self.root_accel.bindEvents(self.ctrl)
06dbd30848e3f3b419df2c1574810e7baa52289b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/06dbd30848e3f3b419df2c1574810e7baa52289b/multikey.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 25265, 4599, 12, 2890, 4672, 365, 18, 3085, 67, 30737, 18, 318, 4376, 3783, 12, 2890, 18, 16277, 13, 225, 3824, 5190, 273, 7075, 18, 4599, 5190, 1435, 314, 1458, 273, 7075, 18, 4599, 1435, 365, 18, 3085, 67, 30737, 273, 15980, 292, 7385, 682, 2932, 66, 60, 3113, 315, 12418, 17, 28899, 3113, 315, 12418, 17, 60, 30715, 17, 55, 3113, 315, 39, 17, 92, 385, 17, 71, 7923, 225, 365, 18, 5414, 986, 49, 12, 5414, 5190, 16, 314, 1458, 16, 315, 25265, 3113, 315, 5160, 498, 852, 7923, 365, 18, 5414, 986, 12, 75, 1458, 16, 315, 1908, 64, 88, 39, 17, 50, 3113, 2685, 15305, 13, 365, 18, 5414, 986, 12, 75, 1458, 16, 315, 3678, 64, 88, 39, 17, 51, 3113, 2685, 15305, 13, 365, 18, 5414, 986, 12, 75, 1458, 16, 315, 4755, 64, 88, 39, 17, 55, 3113, 2685, 15305, 13, 365, 18, 5414, 986, 12, 75, 1458, 16, 315, 6793, 9809, 64, 88, 39, 17, 38, 3113, 15884, 4599, 12, 2890, 3719, 365, 18, 5414, 986, 12, 75, 1458, 16, 315, 6767, 64, 88, 39, 17, 53, 3113, 2589, 18, 8593, 13, 365, 18, 694, 4599, 5190, 12, 5414, 5190, 13, 225, 468, 21240, 326, 9809, 5190, 358, 326, 8058, 913, 18, 365, 18, 5414, 5190, 273, 3824, 5190, 225, 365, 18, 3085, 67, 30737, 18, 1289, 6691, 653, 5250, 2932, 41, 2312, 3113, 2685, 15305, 12, 2890, 16, 315, 6691, 6, 3719, 365, 18, 3085, 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, 444, 25265, 4599, 12, 2890, 4672, 365, 18, 3085, 67, 30737, 18, 318, 4376, 3783, 12, 2890, 18, 16277, 13, 225, 3824, 5190, 273, 7075, 18, 4599, 5190, 1435, 314, 1458, 273, 7075, 18, 4599, 1435, 365, 18, 3085, 67, 30737, 273, 15980, 292, 7385, 682, 2932, 66, 60, 3113, 315, 12418, 17, 28899, 3113, 315, 12418, 17, 60, 30715, 17, 55, 3113, 315, 39, 17, 92, 385, 17, 71, 7923, 225, 365, 18, 5414, 986, 49, 12, 5414, 5190, 16, 314, 1458, 16, 315, 25265, 3113, 315, 5160, 498, 852, 7923, 365, 18, 5414, 986, 12, 75, 1458, 16, 315, 1908, 64, 88, 39, 17, 50, 3113, 2685, 15305, 13, 365, 18, 5414, 986, 12, 75, 1458, 2 ]
good = arg
good.append(arg)
def main(): """Main program; parse options and go.""" try: opts, args = getopt.getopt(sys.argv[1:], 'hdfg:s:p:u:') except getopt.error, msg: usage(2, msg) if not opts: usage(2, "No options given") pck = DEFAULTDB good = spam = unknown = None do_filter = usedb = False for opt, arg in opts: if opt == '-h': usage(0) elif opt == '-g': good = arg elif opt == '-s': spam = arg elif opt == '-p': pck = arg elif opt == "-d": usedb = True elif opt == "-f": do_filter = True elif opt == '-u': unknown = arg if args: usage(2, "Positional arguments not allowed") save = False bayes = createbayes(pck, usedb) if good: print "Training ham:" train(bayes, good, False) save = True if spam: print "Training spam:" train(bayes, spam, True) save = True if save: bayes.update_probabilities() if not usedb and pck: fp = open(pck, 'wb') pickle.dump(bayes, fp, 1) fp.close() if do_filter: filter(bayes, sys.stdin, sys.stdout) if unknown: score(bayes, unknown)
c9870420a64c1bd5a600a2397e137afd48384e63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/c9870420a64c1bd5a600a2397e137afd48384e63/hammie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 31, 1109, 702, 471, 1960, 12123, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 22057, 2137, 30, 87, 30, 84, 30, 89, 2497, 13, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084, 12, 22, 16, 1234, 13, 225, 309, 486, 1500, 30, 4084, 12, 22, 16, 315, 2279, 702, 864, 7923, 225, 293, 363, 273, 3331, 2290, 7494, 273, 24824, 273, 5917, 273, 599, 741, 67, 2188, 273, 1399, 70, 273, 1083, 364, 2153, 16, 1501, 316, 1500, 30, 309, 2153, 422, 2400, 76, 4278, 4084, 12, 20, 13, 1327, 2153, 422, 2400, 75, 4278, 7494, 18, 6923, 12, 3175, 13, 1327, 2153, 422, 2400, 87, 4278, 24824, 273, 1501, 1327, 2153, 422, 2400, 84, 4278, 293, 363, 273, 1501, 1327, 2153, 422, 3701, 72, 6877, 1399, 70, 273, 1053, 1327, 2153, 422, 3701, 74, 6877, 741, 67, 2188, 273, 1053, 1327, 2153, 422, 2400, 89, 4278, 5917, 273, 1501, 309, 833, 30, 4084, 12, 22, 16, 315, 2555, 287, 1775, 486, 2935, 7923, 225, 1923, 273, 1083, 225, 324, 528, 281, 273, 752, 70, 528, 281, 12, 84, 363, 16, 1399, 70, 13, 225, 309, 7494, 30, 1172, 315, 14527, 366, 301, 2773, 4691, 12, 70, 528, 281, 16, 7494, 16, 1083, 13, 1923, 273, 1053, 309, 24824, 30, 1172, 315, 14527, 24824, 2773, 4691, 12, 70, 528, 281, 16, 24824, 16, 1053, 13, 1923, 273, 1053, 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, 3536, 6376, 5402, 31, 1109, 702, 471, 1960, 12123, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 22057, 2137, 30, 87, 30, 84, 30, 89, 2497, 13, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084, 12, 22, 16, 1234, 13, 225, 309, 486, 1500, 30, 4084, 12, 22, 16, 315, 2279, 702, 864, 7923, 225, 293, 363, 273, 3331, 2290, 7494, 273, 24824, 273, 5917, 273, 599, 741, 67, 2188, 273, 1399, 70, 273, 1083, 364, 2153, 16, 1501, 316, 1500, 30, 309, 2153, 422, 2400, 76, 4278, 4084, 12, 20, 13, 1327, 2153, 422, 2400, 75, 4278, 7494, 18, 6923, 12, 3175, 2 ]
if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'darwin'):
if (sys.platform.startswith('linux') or sys.platform.startswith('freebsd') or sys.platform.startswith('netbsd') or sys.platform == 'darwin'):
def testGetServBy(self): eq = self.assertEqual # Find one service that exists, then check all the related interfaces. # I've ordered this by protocols that have both a tcp and udp # protocol, at least for modern Linuxes. if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'darwin'): # avoid the 'echo' service on this platform, as there is an # assumption breaking non-standard port/protocol entry services = ('daytime', 'qotd', 'domain') else: services = ('echo', 'daytime', 'domain') for service in services: try: port = socket.getservbyname(service, 'tcp') break except socket.error: pass else: raise socket.error # Try same call with optional protocol omitted port2 = socket.getservbyname(service) eq(port, port2) # Try udp, but don't barf it it doesn't exist try: udpport = socket.getservbyname(service, 'udp') except socket.error: udpport = None else: eq(udpport, port) # Now make sure the lookup by port returns the same service name eq(socket.getservbyport(port2), service) eq(socket.getservbyport(port, 'tcp'), service) if udpport is not None: eq(socket.getservbyport(udpport, 'udp'), service) # Make sure getservbyport does not accept out of range ports. self.assertRaises(OverflowError, socket.getservbyport, -1) self.assertRaises(OverflowError, socket.getservbyport, 65536)
b603d03f156888671f1fb492e7edd22d1560c21f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/b603d03f156888671f1fb492e7edd22d1560c21f/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 827, 90, 858, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 4163, 1245, 1156, 716, 1704, 16, 1508, 866, 777, 326, 3746, 7349, 18, 468, 467, 8081, 5901, 333, 635, 16534, 716, 1240, 3937, 279, 9658, 471, 16673, 468, 1771, 16, 622, 4520, 364, 681, 8865, 13318, 281, 18, 309, 261, 9499, 18, 9898, 18, 17514, 1918, 2668, 20132, 6134, 578, 2589, 18, 9898, 18, 17514, 1918, 2668, 9156, 2038, 72, 6134, 578, 2589, 18, 9898, 18, 17514, 1918, 2668, 2758, 2038, 72, 6134, 578, 2589, 18, 9898, 422, 296, 28076, 11, 4672, 468, 4543, 326, 296, 12946, 11, 1156, 603, 333, 4072, 16, 487, 1915, 353, 392, 468, 24743, 24412, 1661, 17, 10005, 1756, 19, 8373, 1241, 4028, 273, 7707, 2881, 957, 2187, 296, 85, 352, 72, 2187, 296, 4308, 6134, 469, 30, 4028, 273, 7707, 12946, 2187, 296, 2881, 957, 2187, 296, 4308, 6134, 364, 1156, 316, 4028, 30, 775, 30, 1756, 273, 2987, 18, 588, 23039, 1637, 529, 12, 3278, 16, 296, 14832, 6134, 898, 1335, 2987, 18, 1636, 30, 1342, 469, 30, 1002, 2987, 18, 1636, 468, 6161, 1967, 745, 598, 3129, 1771, 16195, 1756, 22, 273, 2987, 18, 588, 23039, 1637, 529, 12, 3278, 13, 7555, 12, 655, 16, 1756, 22, 13, 468, 6161, 16673, 16, 1496, 2727, 1404, 4653, 74, 518, 518, 3302, 1404, 1005, 775, 30, 16673, 655, 273, 2987, 18, 588, 23039, 1637, 529, 12, 3278, 16, 296, 26029, 6134, 1335, 2987, 18, 1636, 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, 967, 827, 90, 858, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 4163, 1245, 1156, 716, 1704, 16, 1508, 866, 777, 326, 3746, 7349, 18, 468, 467, 8081, 5901, 333, 635, 16534, 716, 1240, 3937, 279, 9658, 471, 16673, 468, 1771, 16, 622, 4520, 364, 681, 8865, 13318, 281, 18, 309, 261, 9499, 18, 9898, 18, 17514, 1918, 2668, 20132, 6134, 578, 2589, 18, 9898, 18, 17514, 1918, 2668, 9156, 2038, 72, 6134, 578, 2589, 18, 9898, 18, 17514, 1918, 2668, 2758, 2038, 72, 6134, 578, 2589, 18, 9898, 422, 296, 28076, 11, 4672, 468, 4543, 326, 296, 12946, 11, 1156, 603, 333, 4072, 16, 487, 1915, 353, 392, 468, 24743, 24412, 1661, 17, 10005, 2 ]
log("TagReader timeout:", self.sound_file.get_filename_for_display())
def work(self): if not self.run_start_time: self.run_start_time = time.time() if self.sound_file.mime_type in tag_blacklist: log("%s: type is %s, tag reading blacklisted" % (self.sound_file.get_filename_for_display(), self.sound_file.mime_type)) return False
3e69b215dc239d79bf32256eda93e76cd783fa53 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2369/3e69b215dc239d79bf32256eda93e76cd783fa53/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 12, 2890, 4672, 309, 486, 365, 18, 2681, 67, 1937, 67, 957, 30, 365, 18, 2681, 67, 1937, 67, 957, 273, 813, 18, 957, 1435, 309, 365, 18, 29671, 67, 768, 18, 11757, 67, 723, 316, 1047, 67, 22491, 30, 613, 27188, 87, 30, 618, 353, 738, 87, 16, 1047, 6453, 25350, 6, 738, 261, 2890, 18, 29671, 67, 768, 18, 588, 67, 3459, 67, 1884, 67, 5417, 9334, 365, 18, 29671, 67, 768, 18, 11757, 67, 723, 3719, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 12, 2890, 4672, 309, 486, 365, 18, 2681, 67, 1937, 67, 957, 30, 365, 18, 2681, 67, 1937, 67, 957, 273, 813, 18, 957, 1435, 309, 365, 18, 29671, 67, 768, 18, 11757, 67, 723, 316, 1047, 67, 22491, 30, 613, 27188, 87, 30, 618, 353, 738, 87, 16, 1047, 6453, 25350, 6, 738, 261, 2890, 18, 29671, 67, 768, 18, 588, 67, 3459, 67, 1884, 67, 5417, 9334, 365, 18, 29671, 67, 768, 18, 11757, 67, 723, 3719, 327, 1083, 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 ]
result[propo.id]='No segments defined'
result[propo.id] = 'No segments defined'
def _quantity_planned_get(self, cr, uid, ids, name, args, context={}): result ={} for propo in self.browse(cr,uid,ids): if not propo.segment_ids: result[propo.id]='No segments defined' continue qty = 0 for segment in propo.segment_ids: if segment.quantity_planned == 0: result[propo.id]='planned Quantity missing in a Segment' continue qty += segment.quantity_planned result[propo.id]=str(qty) return result
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 412, 10041, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 450, 1631, 316, 365, 18, 25731, 12, 3353, 16, 1911, 16, 2232, 4672, 309, 486, 450, 1631, 18, 9273, 67, 2232, 30, 563, 63, 685, 1631, 18, 350, 65, 273, 296, 2279, 5155, 2553, 11, 1324, 26667, 273, 374, 364, 3267, 316, 450, 1631, 18, 9273, 67, 2232, 30, 309, 3267, 18, 16172, 67, 412, 10041, 422, 374, 30, 563, 63, 685, 1631, 18, 350, 65, 2218, 412, 10041, 18189, 3315, 316, 279, 10807, 11, 1324, 26667, 1011, 3267, 18, 16172, 67, 412, 10041, 563, 63, 685, 1631, 18, 350, 65, 33, 701, 12, 85, 4098, 13, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 412, 10041, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 450, 1631, 316, 365, 18, 25731, 12, 3353, 16, 1911, 16, 2232, 4672, 309, 486, 450, 1631, 18, 9273, 67, 2232, 30, 563, 63, 685, 1631, 18, 350, 65, 273, 296, 2279, 5155, 2553, 11, 1324, 26667, 273, 374, 364, 3267, 316, 450, 1631, 18, 9273, 67, 2232, 30, 309, 3267, 18, 16172, 67, 412, 10041, 422, 374, 30, 563, 63, 685, 1631, 18, 350, 65, 2218, 412, 10041, 18189, 3315, 316, 279, 10807, 11, 1324, 26667, 1011, 3267, 18, 16172, 67, 412, 10041, 563, 63, 685, 1631, 18, 350, 65, 2 ]
def db_lookup():
def db_lookup(field, key, publish_year=None):
def db_lookup(): sql = 'select sum(ebook_count) as num from subjects where field=$field and key=$key' if publish_year: if isinstance(publish_year, list): sql += ' and publish_year between $y1 and $y2' (y1, y2) = publish_year else: sql += ' and publish_year=$publish_year' return list(ebook_count_db.query(sql, vars=locals()))[0].num
7ee2813ee865b1ea2e86442585e8582bfea5983e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/7ee2813ee865b1ea2e86442585e8582bfea5983e/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 8664, 12, 1518, 16, 498, 16, 3808, 67, 6874, 33, 7036, 4672, 1847, 273, 296, 4025, 2142, 12, 73, 3618, 67, 1883, 13, 487, 818, 628, 16782, 1625, 652, 13295, 1518, 471, 498, 13295, 856, 11, 309, 3808, 67, 6874, 30, 309, 1549, 12, 6543, 67, 6874, 16, 666, 4672, 1847, 1011, 296, 471, 3808, 67, 6874, 3086, 271, 93, 21, 471, 271, 93, 22, 11, 261, 93, 21, 16, 677, 22, 13, 273, 3808, 67, 6874, 469, 30, 1847, 1011, 296, 471, 3808, 67, 6874, 13295, 6543, 67, 6874, 11, 327, 666, 12, 73, 3618, 67, 1883, 67, 1966, 18, 2271, 12, 4669, 16, 4153, 33, 17977, 1435, 3719, 63, 20, 8009, 2107, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 8664, 12, 1518, 16, 498, 16, 3808, 67, 6874, 33, 7036, 4672, 1847, 273, 296, 4025, 2142, 12, 73, 3618, 67, 1883, 13, 487, 818, 628, 16782, 1625, 652, 13295, 1518, 471, 498, 13295, 856, 11, 309, 3808, 67, 6874, 30, 309, 1549, 12, 6543, 67, 6874, 16, 666, 4672, 1847, 1011, 296, 471, 3808, 67, 6874, 3086, 271, 93, 21, 471, 271, 93, 22, 11, 261, 93, 21, 16, 677, 22, 13, 273, 3808, 67, 6874, 469, 30, 1847, 1011, 296, 471, 3808, 67, 6874, 13295, 6543, 67, 6874, 11, 327, 666, 12, 73, 3618, 67, 1883, 67, 1966, 18, 2271, 12, 4669, 16, 4153, 33, 17977, 1435, 3719, 63, 20, 8009, 2107, 2, -100, -100 ]
table_navigation.attach(gtk.Label(), 1, 2, 1, 2, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) navlabel = gtk.Label() navlabel.set_markup('<b>' + _('Navigation') + '</b>') navlabel.set_alignment(0, 1) table_navigation.attach(navlabel, 1, 2, 2, 3, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 15, 0) mousewheelnav = gtk.CheckButton(label=_("Use mousewheel for imagelist navigation"), use_underline=False) mousewheelnav.set_active(self.mousewheel_nav) gtk.Tooltips().set_tip(mousewheelnav, _("If enabled, mousewheel-down (up) will go to the next (previous) image.")) hbox_listwrap = gtk.HBox() hbox_listwrap.pack_start(gtk.Label(_("Wrap around imagelist:")), False, False, 0) combobox2 = gtk.combo_box_new_text() combobox2.append_text(_("No")) combobox2.append_text(_("Yes")) combobox2.append_text(_("Prompt User")) combobox2.set_active(self.listwrap_mode) hbox_listwrap.pack_start(combobox2, False, False, 5) table_navigation.attach(gtk.Label(), 1, 2, 3, 4, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(hbox_listwrap, 1, 2, 4, 5, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 30, 0) table_navigation.attach(gtk.Label(), 1, 2, 5, 6, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(mousewheelnav, 1, 2, 6, 7, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 30, 0) table_navigation.attach(gtk.Label(), 1, 2, 7, 8, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 8, 9, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 9, 10, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 10, 11, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 11, 12, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 12, 13, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0)
table_navigation.attach(gtk.Label(), 1, 2, 1, 2, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) navlabel = gtk.Label() navlabel.set_markup('<b>' + _('Navigation') + '</b>') navlabel.set_alignment(0, 1) table_navigation.attach(navlabel, 1, 2, 2, 3, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 15, 0) mousewheelnav = gtk.CheckButton(label=_("Use mousewheel for imagelist navigation"), use_underline=False) mousewheelnav.set_active(self.mousewheel_nav) gtk.Tooltips().set_tip(mousewheelnav, _("If enabled, mousewheel-down (up) will go to the next (previous) image.")) hbox_listwrap = gtk.HBox() hbox_listwrap.pack_start(gtk.Label(_("Wrap around imagelist:")), False, False, 0) combobox2 = gtk.combo_box_new_text() combobox2.append_text(_("No")) combobox2.append_text(_("Yes")) combobox2.append_text(_("Prompt User")) combobox2.set_active(self.listwrap_mode) hbox_listwrap.pack_start(combobox2, False, False, 5) table_navigation.attach(gtk.Label(), 1, 2, 3, 4, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(hbox_listwrap, 1, 2, 4, 5, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 30, 0) table_navigation.attach(gtk.Label(), 1, 2, 5, 6, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(mousewheelnav, 1, 2, 6, 7, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 30, 0) table_navigation.attach(gtk.Label(), 1, 2, 7, 8, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 8, 9, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 9, 10, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 10, 11, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 11, 12, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) table_navigation.attach(gtk.Label(), 1, 2, 12, 13, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0)
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs:
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1484, 2556, 12, 2890, 16, 1301, 4672, 365, 18, 1484, 2556, 67, 12730, 273, 22718, 18, 6353, 12, 2649, 33, 67, 2932, 49, 481, 410, 28310, 6, 3631, 982, 33, 2890, 18, 5668, 13, 365, 18, 1484, 2556, 67, 12730, 18, 542, 67, 5332, 67, 11287, 12, 8381, 13, 365, 18, 1484, 2556, 67, 12730, 18, 542, 67, 455, 6934, 12, 8381, 13, 468, 1436, 315, 1358, 6, 15503, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 2405, 67, 1484, 2556, 12, 2890, 16, 1301, 4672, 365, 18, 1484, 2556, 67, 12730, 273, 22718, 18, 6353, 12, 2649, 33, 67, 2932, 49, 481, 410, 28310, 6, 3631, 982, 33, 2890, 18, 5668, 13, 365, 18, 1484, 2556, 67, 12730, 18, 542, 67, 5332, 67, 11287, 12, 8381, 13, 365, 18, 1484, 2556, 67, 12730, 18, 542, 67, 455, 6934, 12, 8381, 13, 468, 1436, 315, 1358, 6, 15503, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
chooser.set_current_name(os.path.split(self.config["filename"])[1])
chooser.set_current_folder(os.path.dirname(self.config["filename"])) chooser.set_current_name(os.path.basename(self.config["filename"]))
def configure(self): """ See MixdownAction.configure """ buttons = (gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_SAVE,gtk.RESPONSE_OK) chooser = gtk.FileChooserDialog(_("Export as"), None, gtk.FILE_CHOOSER_ACTION_SAVE, buttons) chooser.set_current_folder(os.path.expanduser("~")) chooser.set_do_overwrite_confirmation(True) chooser.set_default_response(gtk.RESPONSE_OK) chooser.set_current_name(os.path.split(self.config["filename"])[1])
684d605d4c1afbdc6dbe9420469e3066c364423c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/684d605d4c1afbdc6dbe9420469e3066c364423c/MixdownProfiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 4672, 3536, 2164, 31043, 2378, 1803, 18, 14895, 3536, 9502, 273, 261, 4521, 79, 18, 31487, 3507, 67, 25268, 16, 4521, 79, 18, 14508, 67, 25268, 16, 4521, 79, 18, 31487, 3507, 67, 25242, 16, 4521, 79, 18, 14508, 67, 3141, 13, 5011, 13164, 273, 22718, 18, 812, 17324, 6353, 24899, 2932, 6144, 487, 6, 3631, 599, 16, 22718, 18, 3776, 67, 22213, 51, 2123, 67, 12249, 67, 25242, 16, 9502, 13, 5011, 13164, 18, 542, 67, 2972, 67, 5609, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 6, 3719, 5011, 13164, 18, 542, 67, 2896, 67, 19274, 67, 22275, 12, 5510, 13, 5011, 13164, 18, 542, 67, 1886, 67, 2740, 12, 4521, 79, 18, 14508, 67, 3141, 13, 5011, 13164, 18, 542, 67, 2972, 67, 529, 12, 538, 18, 803, 18, 4939, 12, 2890, 18, 1425, 9614, 3459, 6, 5717, 63, 21, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5068, 12, 2890, 4672, 3536, 2164, 31043, 2378, 1803, 18, 14895, 3536, 9502, 273, 261, 4521, 79, 18, 31487, 3507, 67, 25268, 16, 4521, 79, 18, 14508, 67, 25268, 16, 4521, 79, 18, 31487, 3507, 67, 25242, 16, 4521, 79, 18, 14508, 67, 3141, 13, 5011, 13164, 273, 22718, 18, 812, 17324, 6353, 24899, 2932, 6144, 487, 6, 3631, 599, 16, 22718, 18, 3776, 67, 22213, 51, 2123, 67, 12249, 67, 25242, 16, 9502, 13, 5011, 13164, 18, 542, 67, 2972, 67, 5609, 12, 538, 18, 803, 18, 12320, 1355, 2932, 98, 6, 3719, 5011, 13164, 18, 542, 67, 2896, 67, 19274, 67, 22275, 12, 5510, 13, 5011, 13164, 18, 542, 67, 1886, 67, 2740, 12, 4521, 79, 2 ]
``character_table_values(G)``\*`[v_1, ..., v_n] = [c_1, ..., c_n]`, where `[v_1, ...,v_n]` = ``character_table_values(G)`` `^{-1}[c_1, ...,c_n]`.
``character_table_values(G)``\* [v_1, ..., v_n] = [c_1, ..., c_n], where [v_1, ..., v_n] = ``character_table_values(G)`` ^(-1)[c_1, ..., c_n].
def character_table(self): r""" Returns the matrix of values of the irreducible characters of a permutation group `G` at the conjugacy classes of `G`. The columns represent the the conjugacy classes of `G` and the rows represent the different irreducible characters in the ordering given by GAP. EXAMPLES:: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3)]]) sage: G.order() 12 sage: G.character_table() [ 1 1 1 1] [ 1 1 -zeta3 - 1 zeta3] [ 1 1 zeta3 -zeta3 - 1] [ 3 -1 0 0] sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3)]]) sage: CT = gap(G).CharacterTable() Type ``print gap.eval("Display(%s)"%CT.name())`` to display this nicely. :: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4)]]) sage: G.order() 8 sage: G.character_table() [ 1 1 1 1 1] [ 1 -1 -1 1 1] [ 1 -1 1 -1 1] [ 1 1 -1 -1 1] [ 2 0 0 0 -2] sage: CT = gap(G).CharacterTable() Again, type ``print gap.eval("Display(%s)"%CT.name())`` to display this nicely. :: sage: SymmetricGroup(2).character_table() [ 1 -1] [ 1 1] sage: SymmetricGroup(3).character_table() [ 1 -1 1] [ 2 0 -1] [ 1 1 1] sage: SymmetricGroup(5).character_table() [ 1 -1 1 1 -1 -1 1] [ 4 -2 0 1 1 0 -1] [ 5 -1 1 -1 -1 1 0] [ 6 0 -2 0 0 0 1] [ 5 1 1 -1 1 -1 0] [ 4 2 0 1 -1 0 -1] [ 1 1 1 1 1 1 1] sage: list(AlternatingGroup(6).character_table()) [(1, 1, 1, 1, 1, 1, 1), (5, 1, 2, -1, -1, 0, 0), (5, 1, -1, 2, -1, 0, 0), (8, 0, -1, -1, 0, zeta5^3 + zeta5^2 + 1, -zeta5^3 - zeta5^2), (8, 0, -1, -1, 0, -zeta5^3 - zeta5^2, zeta5^3 + zeta5^2 + 1), (9, 1, 0, 0, 1, -1, -1), (10, -2, 1, 1, 0, 0, 0)] Suppose that you have a class function `f(g)` on `G` and you know the values `v_1, ..., v_n` on the conjugacy class elements in ``conjugacy_classes_representatives(G)`` = `[g_1, \ldots, g_n]`. Since the irreducible characters `\rho_1, \ldots, \rho_n` of `G` form an `E`-basis of the space of all class functions (`E` a "sufficiently large" cyclotomic field), such a class function is a linear combination of these basis elements, `f = c_1\rho_1 + \cdots + c_n\rho_n`. To find the coefficients `c_i`, you simply solve the linear system ``character_table_values(G)``\*`[v_1, ..., v_n] = [c_1, ..., c_n]`, where `[v_1, ...,v_n]` = ``character_table_values(G)`` `^{-1}[c_1, ...,c_n]`. AUTHORS: - David Joyner and William Stein (2006-01-04)
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, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 8338, 1021, 2168, 2406, 326, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 68, 471, 326, 2595, 2406, 326, 3775, 9482, 1118, 5286, 1523, 3949, 316, 326, 9543, 864, 635, 611, 2203, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 25887, 5717, 272, 410, 30, 611, 18, 1019, 1435, 2593, 272, 410, 30, 611, 18, 11560, 67, 2121, 1435, 306, 540, 404, 1850, 404, 1850, 404, 1850, 404, 65, 306, 540, 404, 1850, 404, 300, 94, 1066, 23, 300, 404, 1377, 998, 1066, 23, 65, 306, 540, 404, 1850, 404, 1377, 998, 1066, 23, 300, 94, 1066, 23, 300, 404, 65, 306, 540, 890, 540, 300, 21, 1850, 374, 1850, 374, 65, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 25887, 5717, 272, 410, 30, 21088, 273, 9300, 12, 43, 2934, 7069, 1388, 1435, 225, 1412, 12176, 1188, 9300, 18, 8622, 2932, 4236, 9275, 87, 2225, 9, 1268, 18, 529, 10756, 10335, 358, 2562, 333, 11562, 2357, 18, 225, 493, 225, 272, 410, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 8338, 1021, 2168, 2406, 326, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 68, 471, 326, 2595, 2406, 326, 3775, 9482, 1118, 5286, 1523, 3949, 316, 326, 9543, 864, 635, 611, 2203, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 25887, 5717, 272, 410, 30, 611, 18, 1019, 1435, 2593, 272, 410, 30, 611, 18, 2 ]
exts.append( Extension('nis', ['nismodule.c'], libraries = ['nsl']) )
libs = ['nsl'] else: libs = [] exts.append( Extension('nis', ['nismodule.c'], libraries = libs) )
def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.append('/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.append( '/usr/local/include' )
e98b82c9e287c91a53020cb0b5e25d55f0874f8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e98b82c9e287c91a53020cb0b5e25d55f0874f8c/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12083, 67, 8291, 30, 365, 18, 9576, 18, 12083, 67, 8291, 18, 6923, 2668, 19, 13640, 19, 3729, 19, 2941, 6134, 309, 1173, 13640, 19, 3729, 19, 6702, 11, 486, 316, 365, 18, 9576, 18, 6702, 67, 8291, 30, 365, 18, 9576, 18, 6702, 67, 8291, 18, 6923, 12, 1173, 13640, 19, 3729, 19, 6702, 11, 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 ]
elif len(f) == 1:
elif len(clientdata) == 1:
def FetchMetadata(self, client, image=None, profile=None): if ((image != None) and (profile != None)): # Client asserted profile/image self.clients[client] = (image, profile) f = [x for x in self.element.findall("Client") if x.attrib['name'] == client] if len(f) == 0: # non-existent client SubElement(self.element, "Client", name=client, image=image, profile=profile) self.WriteBack() elif len(f) == 1: # already existing client f[0].attrib['profile'] = profile f[0].attrib['image'] = image self.WriteBack() elif self.clients.has_key(client): (image, profile) = self.clients[client] else: # default profile stuff goes here (image, profile) = (self.defaults['image'], self.defaults['profile']) SubElement(self.element, "Client", name=client, profile=profile, image=image) self.WriteBack() p = self.profiles[profile] # should we uniq here? V bundles = reduce(lambda x, y:x + y, [self.classes.get(x) for x in p.classes]) return Metadata(False, image, p.classes, bundles, p.attributes, client)
8ce27b3c73b1f4b17f1b558f7e5f1d4f57c2559d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/8ce27b3c73b1f4b17f1b558f7e5f1d4f57c2559d/Metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8065, 2277, 12, 2890, 16, 1004, 16, 1316, 33, 7036, 16, 3042, 33, 7036, 4672, 309, 14015, 2730, 480, 599, 13, 471, 261, 5040, 480, 599, 3719, 30, 468, 2445, 1815, 329, 3042, 19, 2730, 365, 18, 16931, 63, 2625, 65, 273, 261, 2730, 16, 3042, 13, 284, 273, 306, 92, 364, 619, 316, 365, 18, 2956, 18, 4720, 454, 2932, 1227, 7923, 309, 619, 18, 14588, 3292, 529, 3546, 422, 1004, 65, 309, 562, 12, 74, 13, 422, 374, 30, 468, 1661, 17, 19041, 1004, 5479, 12, 2890, 18, 2956, 16, 315, 1227, 3113, 508, 33, 2625, 16, 1316, 33, 2730, 16, 3042, 33, 5040, 13, 365, 18, 3067, 2711, 1435, 1327, 562, 12, 2625, 892, 13, 422, 404, 30, 468, 1818, 2062, 1004, 284, 63, 20, 8009, 14588, 3292, 5040, 3546, 273, 3042, 284, 63, 20, 8009, 14588, 3292, 2730, 3546, 273, 1316, 365, 18, 3067, 2711, 1435, 1327, 365, 18, 16931, 18, 5332, 67, 856, 12, 2625, 4672, 261, 2730, 16, 3042, 13, 273, 365, 18, 16931, 63, 2625, 65, 469, 30, 468, 805, 3042, 10769, 13998, 2674, 261, 2730, 16, 3042, 13, 273, 261, 2890, 18, 7606, 3292, 2730, 17337, 365, 18, 7606, 3292, 5040, 19486, 5479, 12, 2890, 18, 2956, 16, 315, 1227, 3113, 508, 33, 2625, 16, 3042, 33, 5040, 16, 1316, 33, 2730, 13, 365, 18, 3067, 2711, 1435, 293, 273, 365, 18, 18314, 63, 5040, 65, 468, 1410, 732, 10748, 2674, 35, 776, 11408, 273, 5459, 12, 14661, 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, 8065, 2277, 12, 2890, 16, 1004, 16, 1316, 33, 7036, 16, 3042, 33, 7036, 4672, 309, 14015, 2730, 480, 599, 13, 471, 261, 5040, 480, 599, 3719, 30, 468, 2445, 1815, 329, 3042, 19, 2730, 365, 18, 16931, 63, 2625, 65, 273, 261, 2730, 16, 3042, 13, 284, 273, 306, 92, 364, 619, 316, 365, 18, 2956, 18, 4720, 454, 2932, 1227, 7923, 309, 619, 18, 14588, 3292, 529, 3546, 422, 1004, 65, 309, 562, 12, 74, 13, 422, 374, 30, 468, 1661, 17, 19041, 1004, 5479, 12, 2890, 18, 2956, 16, 315, 1227, 3113, 508, 33, 2625, 16, 1316, 33, 2730, 16, 3042, 33, 5040, 13, 365, 18, 3067, 2711, 1435, 1327, 562, 12, 2625, 892, 13, 2 ]
RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_0_1_', 'true')
RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_0_1_', 'true', 'jsdocs/')
def BuildO3DJSDocs(js_files, ezt_output_dir, html_output_dir): RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_0_1_', 'true')
57366dfa28d4548bfa0f89fbfa6f61c959f50a28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/57366dfa28d4548bfa0f89fbfa6f61c959f50a28/build_docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 51, 23, 40, 6479, 12656, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 4672, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 16, 296, 2924, 67, 20, 67, 21, 67, 2187, 296, 3767, 2187, 296, 2924, 8532, 2473, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 51, 23, 40, 6479, 12656, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 4672, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 16, 296, 2924, 67, 20, 67, 21, 67, 2187, 296, 3767, 2187, 296, 2924, 8532, 2473, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sites = gConfig.getSections('/Resources/Sites/%s' %grid,[])
sites = gConfig.getSections( '/Resources/Sites/%s' % grid, [] )
def getCESiteMapping(gridName=''): """ Returns a dictionary of all CEs and their associated site, e.g. {'ce101.cern.ch':'LCG.CERN.ch', ...]} Assumes CS structure of: /Resources/Sites/<GRIDNAME>/<SITENAME> """ ceSiteMapping = {} gridTypes = gConfig.getSections('/Resources/Sites/',[]) if not gridTypes['OK']: gLogger.warn('Problem retrieving sections in /Resources/Sites') return gridTypes gridTypes = gridTypes['Value'] if gridName: if not gridName in gridTypes: return S_ERROR('Could not get sections for /Resources/Sites/%s' %gridName) gridTypes = [gridName] gLogger.debug('Grid Types are: %s' %(string.join(gridTypes,', '))) for grid in gridTypes: sites = gConfig.getSections('/Resources/Sites/%s' %grid,[]) if not sites['OK']: #gConfig returns S_ERROR for empty sections until version gLogger.warn('Problem retrieving /Resources/Sites/%s section' %grid) return sites if sites: for candidate in sites['Value']: siteCEs = gConfig.getValue('/Resources/Sites/%s/%s/CE' %(grid,candidate),[]) for ce in siteCEs: if ceSiteMapping.has_key(ce): current = ceSiteMapping[ce] gLogger.warn('CE %s already has a defined site %s but it is also defined for %s' %(ce,current,candidate)) else: ceSiteMapping[ce]=candidate return S_OK(ceSiteMapping)
22589f96877819f2316c9c3a130752773212d632 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/22589f96877819f2316c9c3a130752773212d632/SiteCEMapping.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1441, 4956, 3233, 12, 5222, 461, 2218, 11, 4672, 3536, 2860, 279, 3880, 434, 777, 385, 6705, 471, 3675, 3627, 2834, 16, 425, 18, 75, 18, 13666, 311, 15168, 18, 14770, 18, 343, 11, 2497, 13394, 43, 18, 39, 654, 50, 18, 343, 2187, 1372, 18322, 25374, 6761, 3695, 434, 30, 342, 3805, 19, 17055, 28177, 6997, 734, 1985, 16893, 32, 55, 1285, 21150, 34, 3536, 5898, 4956, 3233, 273, 2618, 3068, 2016, 273, 314, 809, 18, 588, 15965, 2668, 19, 3805, 19, 17055, 19, 2187, 63, 5717, 309, 486, 3068, 2016, 3292, 3141, 3546, 30, 314, 3328, 18, 8935, 2668, 13719, 17146, 7178, 316, 342, 3805, 19, 17055, 6134, 327, 3068, 2016, 225, 3068, 2016, 273, 3068, 2016, 3292, 620, 3546, 309, 3068, 461, 30, 309, 486, 3068, 461, 316, 3068, 2016, 30, 327, 348, 67, 3589, 2668, 4445, 486, 336, 7178, 364, 342, 3805, 19, 17055, 5258, 87, 11, 738, 5222, 461, 13, 3068, 2016, 273, 306, 5222, 461, 65, 225, 314, 3328, 18, 4148, 2668, 6313, 7658, 854, 30, 738, 87, 11, 8975, 1080, 18, 5701, 12, 5222, 2016, 16, 2187, 296, 20349, 364, 3068, 316, 3068, 2016, 30, 9180, 273, 314, 809, 18, 588, 15965, 12, 1173, 3805, 19, 17055, 5258, 87, 11, 738, 3068, 16, 5378, 262, 309, 486, 9180, 3292, 3141, 3546, 30, 468, 75, 809, 1135, 348, 67, 3589, 364, 1008, 7178, 3180, 1177, 314, 3328, 18, 8935, 2668, 13719, 17146, 342, 3805, 19, 17055, 5258, 87, 2442, 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, 1441, 4956, 3233, 12, 5222, 461, 2218, 11, 4672, 3536, 2860, 279, 3880, 434, 777, 385, 6705, 471, 3675, 3627, 2834, 16, 425, 18, 75, 18, 13666, 311, 15168, 18, 14770, 18, 343, 11, 2497, 13394, 43, 18, 39, 654, 50, 18, 343, 2187, 1372, 18322, 25374, 6761, 3695, 434, 30, 342, 3805, 19, 17055, 28177, 6997, 734, 1985, 16893, 32, 55, 1285, 21150, 34, 3536, 5898, 4956, 3233, 273, 2618, 3068, 2016, 273, 314, 809, 18, 588, 15965, 2668, 19, 3805, 19, 17055, 19, 2187, 63, 5717, 309, 486, 3068, 2016, 3292, 3141, 3546, 30, 314, 3328, 18, 8935, 2668, 13719, 17146, 7178, 316, 342, 3805, 19, 17055, 6134, 327, 3068, 2016, 225, 3068, 2016, 273, 2 ]
self.assert_(int(groups[2]) == pid,
self.assertEqual(int(groups[2]), pid,
def test_create_tmp(self, repetitions=10): # Create files in tmp directory hostname = socket.gethostname() if '/' in hostname: hostname = hostname.replace('/', r'\057') if ':' in hostname: hostname = hostname.replace(':', r'\072') pid = os.getpid() pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)" r"Q(?P<Q>\d+)\.(?P<host>[^:/]+)") previous_groups = None for x in range(repetitions): tmp_file = self._box._create_tmp() head, tail = os.path.split(tmp_file.name) self.assertEqual(head, os.path.abspath(os.path.join(self._path, "tmp")), "File in wrong location: '%s'" % head) match = pattern.match(tail) self.assert_(match != None, "Invalid file name: '%s'" % tail) groups = match.groups() if previous_groups != None: self.assert_(int(groups[0] >= previous_groups[0]), "Non-monotonic seconds: '%s' before '%s'" % (previous_groups[0], groups[0])) self.assert_(int(groups[1] >= previous_groups[1]) or groups[0] != groups[1], "Non-monotonic milliseconds: '%s' before '%s'" % (previous_groups[1], groups[1])) self.assert_(int(groups[2]) == pid, "Process ID mismatch: '%s' should be '%s'" % (groups[2], pid)) self.assertEqual(int(groups[3]), int(previous_groups[3]) + 1, "Non-sequential counter: '%s' before '%s'" % (previous_groups[3], groups[3])) self.assert_(groups[4] == hostname, "Host name mismatch: '%s' should be '%s'" % (groups[4], hostname)) previous_groups = groups tmp_file.write(_sample_message) tmp_file.seek(0) self.assertEqual(tmp_file.read(), _sample_message) tmp_file.close() file_count = len(os.listdir(os.path.join(self._path, "tmp"))) self.assert_(file_count == repetitions, "Wrong file count: '%s' should be '%s'" % (file_count, repetitions))
7731c36bc6f787ca91b8429603fe004822f1f2d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7731c36bc6f787ca91b8429603fe004822f1f2d8/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 5645, 12, 2890, 16, 22265, 5029, 33, 2163, 4672, 468, 1788, 1390, 316, 1853, 1867, 5199, 273, 2987, 18, 75, 546, 669, 529, 1435, 309, 2023, 316, 5199, 30, 5199, 273, 5199, 18, 2079, 2668, 19, 2187, 436, 8314, 6260, 27, 6134, 309, 3921, 316, 5199, 30, 5199, 273, 5199, 18, 2079, 2668, 30, 2187, 436, 8314, 8642, 22, 6134, 4231, 273, 1140, 18, 588, 6610, 1435, 1936, 273, 283, 18, 11100, 12, 86, 6, 3680, 52, 32, 957, 5333, 72, 14456, 18, 49, 3680, 52, 32, 49, 5333, 72, 95, 21, 16, 26, 6792, 52, 3680, 52, 32, 52, 5333, 72, 15, 2225, 436, 6, 53, 3680, 52, 32, 53, 5333, 72, 14456, 18, 3680, 52, 32, 2564, 34, 5969, 27824, 3737, 2225, 13, 2416, 67, 4650, 273, 599, 364, 619, 316, 1048, 12, 266, 6951, 5029, 4672, 1853, 67, 768, 273, 365, 6315, 2147, 6315, 2640, 67, 5645, 1435, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 5645, 67, 768, 18, 529, 13, 365, 18, 11231, 5812, 12, 1978, 16, 1140, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 5701, 12, 2890, 6315, 803, 16, 315, 5645, 7923, 3631, 315, 812, 316, 7194, 2117, 30, 1995, 87, 4970, 738, 910, 13, 845, 273, 1936, 18, 1916, 12, 13101, 13, 365, 18, 11231, 67, 12, 1916, 480, 599, 16, 315, 1941, 585, 508, 30, 1995, 87, 4970, 738, 5798, 13, 3252, 273, 845, 18, 4650, 1435, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 5645, 12, 2890, 16, 22265, 5029, 33, 2163, 4672, 468, 1788, 1390, 316, 1853, 1867, 5199, 273, 2987, 18, 75, 546, 669, 529, 1435, 309, 2023, 316, 5199, 30, 5199, 273, 5199, 18, 2079, 2668, 19, 2187, 436, 8314, 6260, 27, 6134, 309, 3921, 316, 5199, 30, 5199, 273, 5199, 18, 2079, 2668, 30, 2187, 436, 8314, 8642, 22, 6134, 4231, 273, 1140, 18, 588, 6610, 1435, 1936, 273, 283, 18, 11100, 12, 86, 6, 3680, 52, 32, 957, 5333, 72, 14456, 18, 49, 3680, 52, 32, 49, 5333, 72, 95, 21, 16, 26, 6792, 52, 3680, 52, 32, 52, 5333, 72, 15, 2225, 436, 6, 53, 3680, 52, 32, 53, 5333, 72, 14456, 2 ]
log.info( "User has selected group %s" % group )
gLogger.info( "User %s has selected group %s" % ( sessionManager.getUsername(), group ) )
def changeGroup( self ): group = request.environ[ 'pylons.routes_dict' ][ 'id' ] log.info( "User has selected group %s" % group ) sessionManager.setSelectedGroup( group ) if 'HTTP_REFERER' in request.environ: return redirect_to( request.environ[ 'HTTP_REFERER' ] ) else: return redirect_to( helpers.url_for( "/" ) )
20b560b9ffd6f2e058fef618affa7c04aef43902 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12767/20b560b9ffd6f2e058fef618affa7c04aef43902/userdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 1114, 12, 365, 262, 30, 1041, 273, 590, 18, 28684, 63, 296, 2074, 80, 7008, 18, 10854, 67, 1576, 11, 308, 63, 296, 350, 11, 308, 314, 3328, 18, 1376, 12, 315, 1299, 738, 87, 711, 3170, 1041, 738, 87, 6, 738, 261, 1339, 1318, 18, 588, 8575, 9334, 1041, 262, 262, 1339, 1318, 18, 542, 7416, 1114, 12, 1041, 262, 309, 296, 3693, 67, 30269, 654, 11, 316, 590, 18, 28684, 30, 327, 3136, 67, 869, 12, 590, 18, 28684, 63, 296, 3693, 67, 30269, 654, 11, 308, 262, 469, 30, 327, 3136, 67, 869, 12,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 1114, 12, 365, 262, 30, 1041, 273, 590, 18, 28684, 63, 296, 2074, 80, 7008, 18, 10854, 67, 1576, 11, 308, 63, 296, 350, 11, 308, 314, 3328, 18, 1376, 12, 315, 1299, 738, 87, 711, 3170, 1041, 738, 87, 6, 738, 261, 1339, 1318, 18, 588, 8575, 9334, 1041, 262, 262, 1339, 1318, 18, 542, 7416, 1114, 12, 1041, 262, 309, 296, 3693, 67, 30269, 654, 11, 316, 590, 18, 28684, 30, 327, 3136, 67, 869, 12, 590, 18, 28684, 63, 296, 3693, 67, 30269, 654, 11, 308, 262, 469, 30, 327, 3136, 67, 869, 12, 9246, 18, 718, 67, 1884, 12, 4016, 262, 262, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif statmatch(np, st) and supported_type(np, st): yield util.pconvert(np), st
if statmatch(np, st) and np in dc: yield 'm', util.pconvert(np), st elif statmatch(np, st): if self.supported_type(np, st): yield 'f', util.pconvert(np), st elif np in dc: yield 'm', util.pconvert(np), st
def findfiles(s): retfiles = [] work = [s] while work: top = work.pop() names = os.listdir(top) names.sort() # nd is the top of the repository dir tree nd = util.normpath(top[len(self.root) + 1:]) if nd == '.': nd = '' for f in names: np = os.path.join(nd, f) if seen(np): continue p = os.path.join(top, f) # don't trip over symlinks st = os.lstat(p) if stat.S_ISDIR(st.st_mode): ds = os.path.join(nd, f +'/') if statmatch(ds, st): work.append(p) elif statmatch(np, st) and supported_type(np, st): yield util.pconvert(np), st
96032505f683e49a6628cd8635161914c169b238 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/96032505f683e49a6628cd8635161914c169b238/dirstate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2354, 12, 87, 4672, 325, 2354, 273, 5378, 1440, 273, 306, 87, 65, 1323, 1440, 30, 1760, 273, 1440, 18, 5120, 1435, 1257, 273, 1140, 18, 1098, 1214, 12, 3669, 13, 1257, 18, 3804, 1435, 468, 5346, 353, 326, 1760, 434, 326, 3352, 1577, 2151, 5346, 273, 1709, 18, 7959, 803, 12, 3669, 63, 1897, 12, 2890, 18, 3085, 13, 397, 404, 30, 5717, 309, 5346, 422, 2611, 30, 5346, 273, 875, 364, 284, 316, 1257, 30, 1130, 273, 1140, 18, 803, 18, 5701, 12, 4880, 16, 284, 13, 309, 5881, 12, 6782, 4672, 1324, 293, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 284, 13, 468, 2727, 1404, 20654, 1879, 23146, 384, 273, 1140, 18, 80, 5642, 12, 84, 13, 309, 610, 18, 55, 67, 5127, 4537, 12, 334, 18, 334, 67, 3188, 4672, 3780, 273, 1140, 18, 803, 18, 5701, 12, 4880, 16, 284, 397, 11, 2473, 13, 309, 610, 1916, 12, 2377, 16, 384, 4672, 1440, 18, 6923, 12, 84, 13, 1327, 610, 1916, 12, 6782, 16, 384, 13, 471, 3260, 67, 723, 12, 6782, 16, 384, 4672, 2824, 1709, 18, 84, 6283, 12, 6782, 3631, 384, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2354, 12, 87, 4672, 325, 2354, 273, 5378, 1440, 273, 306, 87, 65, 1323, 1440, 30, 1760, 273, 1440, 18, 5120, 1435, 1257, 273, 1140, 18, 1098, 1214, 12, 3669, 13, 1257, 18, 3804, 1435, 468, 5346, 353, 326, 1760, 434, 326, 3352, 1577, 2151, 5346, 273, 1709, 18, 7959, 803, 12, 3669, 63, 1897, 12, 2890, 18, 3085, 13, 397, 404, 30, 5717, 309, 5346, 422, 2611, 30, 5346, 273, 875, 364, 284, 316, 1257, 30, 1130, 273, 1140, 18, 803, 18, 5701, 12, 4880, 16, 284, 13, 309, 5881, 12, 6782, 4672, 1324, 293, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 284, 13, 468, 2727, 1404, 20654, 1879, 23146, 384, 273, 1140, 18, 2 ]
elif ask_key: options.extend([ "-oStrictHostKeyChecking=ask", ])
else: if ask_key: options.append("-oStrictHostKeyChecking=ask") elif strict_host_check: options.append("-oStrictHostKeyChecking=yes") else: options.append("-oStrictHostKeyChecking=no")
def _BuildSshOptions(self, batch, ask_key, use_cluster_key, strict_host_check): """Builds a list with needed SSH options.
e66d9f1abf0e6be79dd5677054ba8c3aae9dc799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/e66d9f1abf0e6be79dd5677054ba8c3aae9dc799/ssh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3116, 27364, 1320, 12, 2890, 16, 2581, 16, 6827, 67, 856, 16, 999, 67, 7967, 67, 856, 16, 5490, 67, 2564, 67, 1893, 4672, 3536, 7746, 279, 666, 598, 3577, 9892, 702, 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,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, 598, 3577, 9892, 702, 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 ]
curve.setStyle(Qwt.QwtPlotCurve.Spline) curve.setSplineSize(200)
curve.setStyle(Qwt.QwtPlotCurve.Lines) curve.setCurveAttribute(Qwt.QwtPlotCurve.Fitted) curveFitter = Qwt.QwtSplineCurveFitter() curveFitter.setSplineSize(200) curve.setCurveFitter(curveFitter)
def __init__(self, *args): Qt.QFrame.__init__(self, *args)
d85a8df3501e76ed1335abceb1d616a0e44cd179 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5650/d85a8df3501e76ed1335abceb1d616a0e44cd179/CurveDemo3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 7354, 18, 53, 3219, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 7354, 18, 53, 3219, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 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 ]
from twisted.trial.util import deferredResult
def encodeTokens(obj, debug=0): from twisted.trial.util import deferredResult b = TokenStorageBanana() b.debug = debug d = b.send(obj) deferredResult(d) return b.tokens
e81e73b104949eb8b76f68e6a0459dcecd6c2afd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e81e73b104949eb8b76f68e6a0459dcecd6c2afd/debug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 5157, 12, 2603, 16, 1198, 33, 20, 4672, 324, 273, 3155, 3245, 38, 304, 13848, 1435, 324, 18, 4148, 273, 1198, 302, 273, 324, 18, 4661, 12, 2603, 13, 7045, 1253, 12, 72, 13, 327, 324, 18, 7860, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 5157, 12, 2603, 16, 1198, 33, 20, 4672, 324, 273, 3155, 3245, 38, 304, 13848, 1435, 324, 18, 4148, 273, 1198, 302, 273, 324, 18, 4661, 12, 2603, 13, 7045, 1253, 12, 72, 13, 327, 324, 18, 7860, 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 ]
'SAGE Scripts',
'Sage Scripts',
def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file).
9f49a1c307694e045ec245b9406a55b5387d5935 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9f49a1c307694e045ec245b9406a55b5387d5935/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550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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, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 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 ]
title = url2unicode(title, site = insite)
title = url2unicode(title, site = insite, site2 = site)
def __init__(self, site, title = None, insite = None, tosite = None): """ Constructor. Normally called with two arguments: Parameters: 1) The wikimedia site on which the page resides 2) The title of the page as a unicode string The argument insite can be specified to help decode the name; it is the wikimedia site where this link was found. """ self._site = site if tosite: self._tosite = tosite else: self._tosite = getSite() # Default to home wiki if not insite: insite = site
c5f4e8dd5dbd882a62c2b5357da93298bbc3ecea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/c5f4e8dd5dbd882a62c2b5357da93298bbc3ecea/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 2077, 273, 599, 16, 2763, 1137, 273, 599, 16, 358, 4256, 273, 599, 4672, 3536, 11417, 18, 24773, 1230, 2566, 598, 2795, 1775, 30, 7012, 30, 404, 13, 1021, 341, 1766, 381, 1980, 2834, 603, 1492, 326, 1363, 400, 4369, 576, 13, 1021, 2077, 434, 326, 1363, 487, 279, 5252, 533, 225, 1021, 1237, 2763, 1137, 848, 506, 1269, 358, 2809, 2495, 326, 508, 31, 518, 353, 326, 341, 1766, 381, 1980, 2834, 1625, 333, 1692, 1703, 1392, 18, 3536, 365, 6315, 4256, 273, 2834, 309, 358, 4256, 30, 365, 6315, 14627, 1137, 273, 358, 4256, 469, 30, 365, 6315, 14627, 1137, 273, 11021, 1435, 468, 2989, 358, 6382, 9050, 225, 309, 486, 2763, 1137, 30, 2763, 1137, 273, 2834, 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, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 2077, 273, 599, 16, 2763, 1137, 273, 599, 16, 358, 4256, 273, 599, 4672, 3536, 11417, 18, 24773, 1230, 2566, 598, 2795, 1775, 30, 7012, 30, 404, 13, 1021, 341, 1766, 381, 1980, 2834, 603, 1492, 326, 1363, 400, 4369, 576, 13, 1021, 2077, 434, 326, 1363, 487, 279, 5252, 533, 225, 1021, 1237, 2763, 1137, 848, 506, 1269, 358, 2809, 2495, 326, 508, 31, 518, 353, 326, 341, 1766, 381, 1980, 2834, 1625, 333, 1692, 1703, 1392, 18, 3536, 365, 6315, 4256, 273, 2834, 309, 358, 4256, 30, 365, 6315, 14627, 1137, 273, 358, 4256, 469, 30, 365, 6315, 14627, 1137, 273, 11021, 1435, 468, 2989, 358, 6382, 9050, 2 ]
if c in self.xmpp_connections.itervalues(): if hasattr(c, 'Process'): c.Process(0.01) c.lock.release()
if hasattr(c, 'Process'): c.Process(0.01) c.lock.release()
def _xmpp_loop(self): """[Internal] XMPP infinite loop.""" while True: try: if len(self.xmpp_connections) == 1: sleep(0.5) # avoid bot connection being locked all the time for c in self.xmpp_connections.itervalues(): if hasattr(c, 'lock'): c.lock.acquire() if c in self.xmpp_connections.itervalues(): if hasattr(c, 'Process'): c.Process(0.01) c.lock.release() except RuntimeError: pass except (xml.parsers.expat.ExpatError, xmpp.protocol.XMLNotWellFormed): self.error('=> Debug: received invalid stanza', debug=True) continue except: self.error('[Error] Unkonwn exception on XMPP thread:') traceback.print_exc()
e731e28ac68f7a1254208cca8ecb0d415514c7c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/e731e28ac68f7a1254208cca8ecb0d415514c7c1/bot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 92, 24109, 67, 6498, 12, 2890, 4672, 3536, 63, 3061, 65, 23216, 14853, 2798, 12123, 1323, 1053, 30, 775, 30, 309, 562, 12, 2890, 18, 92, 24109, 67, 13313, 13, 422, 404, 30, 5329, 12, 20, 18, 25, 13, 225, 468, 4543, 2512, 1459, 3832, 8586, 777, 326, 813, 364, 276, 316, 365, 18, 92, 24109, 67, 13313, 18, 2165, 2372, 13332, 309, 3859, 12, 71, 16, 296, 739, 11, 4672, 276, 18, 739, 18, 1077, 1039, 1435, 309, 3859, 12, 71, 16, 296, 2227, 11, 4672, 276, 18, 2227, 12, 20, 18, 1611, 13, 276, 18, 739, 18, 9340, 1435, 1335, 7265, 30, 1342, 1335, 261, 2902, 18, 11104, 18, 2749, 270, 18, 2966, 270, 668, 16, 619, 24109, 18, 8373, 18, 4201, 1248, 59, 1165, 1204, 329, 4672, 365, 18, 1636, 2668, 9207, 4015, 30, 5079, 2057, 21650, 2187, 1198, 33, 5510, 13, 1324, 1335,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 92, 24109, 67, 6498, 12, 2890, 4672, 3536, 63, 3061, 65, 23216, 14853, 2798, 12123, 1323, 1053, 30, 775, 30, 309, 562, 12, 2890, 18, 92, 24109, 67, 13313, 13, 422, 404, 30, 5329, 12, 20, 18, 25, 13, 225, 468, 4543, 2512, 1459, 3832, 8586, 777, 326, 813, 364, 276, 316, 365, 18, 92, 24109, 67, 13313, 18, 2165, 2372, 13332, 309, 3859, 12, 71, 16, 296, 739, 11, 4672, 276, 18, 739, 18, 1077, 1039, 1435, 309, 3859, 12, 71, 16, 296, 2227, 11, 4672, 276, 18, 2227, 12, 20, 18, 1611, 13, 276, 18, 739, 18, 9340, 1435, 1335, 7265, 30, 1342, 1335, 261, 2902, 18, 11104, 18, 2749, 270, 18, 2966, 270, 668, 2 ]
fp = open(fss.as_pathname(), 'w') fss.SetCreatorType('Pyth', 'TEXT') fp.write('"""Suite %s: %s\n' % (name, desc)) fp.write("Level %d, version %d\n\n" % (level, version)) fp.write("Generated from %s\n"%fname) fp.write("AETE/AEUT resource version %d/%d, language %d, script %d\n" % \ (major, minor, language, script)) fp.write('"""\n\n') fp.write('import aetools\n') fp.write('import MacOS\n\n') fp.write("_code = %s\n\n"% `code`)
def compilesuite(suite, major, minor, language, script, fname, basepackage=None): """Generate code for a single suite""" [name, desc, code, level, version, events, classes, comps, enums] = suite modname = identify(name) if len(modname) > 28: modname = modname[:27] fss, ok = macfs.StandardPutFile('Python output file', modname+'.py') if not ok: return None, None pathname = fss.as_pathname() modname = os.path.splitext(os.path.split(pathname)[1])[0] fp = open(fss.as_pathname(), 'w') fss.SetCreatorType('Pyth', 'TEXT') fp.write('"""Suite %s: %s\n' % (name, desc)) fp.write("Level %d, version %d\n\n" % (level, version)) fp.write("Generated from %s\n"%fname) fp.write("AETE/AEUT resource version %d/%d, language %d, script %d\n" % \ (major, minor, language, script)) fp.write('"""\n\n') fp.write('import aetools\n') fp.write('import MacOS\n\n') fp.write("_code = %s\n\n"% `code`) if basepackage and basepackage._code_to_module.has_key(code): # We are an extension of a baseclass (usually an application extending # Standard_Suite or so). Import everything from our base module fp.write('from %s import *\n'%basepackage._code_to_fullname[code]) basemodule = basepackage._code_to_module[code] else: # We are not an extension. basemodule = None compileclassheader(fp, modname, basemodule) enumsneeded = {} if events: for event in events: compileevent(fp, event, enumsneeded) else: fp.write("\tpass\n\n") objc = ObjectCompiler(fp, basemodule) for cls in classes: objc.compileclass(cls) for cls in classes: objc.fillclasspropsandelems(cls) for comp in comps: objc.compilecomparison(comp) for enum in enums: objc.compileenumeration(enum) for enum in enumsneeded.keys(): objc.checkforenum(enum) objc.dumpindex() return code, modname
b18e37723e6f3e7fe6bae03f14e954721df23eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b18e37723e6f3e7fe6bae03f14e954721df23eaf/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1161, 1449, 9519, 12, 30676, 16, 7888, 16, 8439, 16, 2653, 16, 2728, 16, 5299, 16, 1026, 5610, 33, 7036, 4672, 3536, 4625, 981, 364, 279, 2202, 11371, 8395, 306, 529, 16, 3044, 16, 981, 16, 1801, 16, 1177, 16, 2641, 16, 3318, 16, 13979, 16, 17922, 65, 273, 11371, 225, 16037, 273, 9786, 12, 529, 13, 309, 562, 12, 1711, 529, 13, 405, 9131, 30, 16037, 273, 16037, 10531, 5324, 65, 284, 1049, 16, 1529, 273, 5318, 2556, 18, 8336, 6426, 812, 2668, 15774, 876, 585, 2187, 16037, 6797, 18, 2074, 6134, 309, 486, 1529, 30, 327, 599, 16, 599, 9806, 273, 284, 1049, 18, 345, 67, 28336, 1435, 16037, 273, 1140, 18, 803, 18, 4939, 408, 12, 538, 18, 803, 18, 4939, 12, 28336, 25146, 21, 5717, 63, 20, 65, 225, 309, 1026, 5610, 471, 1026, 5610, 6315, 710, 67, 869, 67, 2978, 18, 5332, 67, 856, 12, 710, 4672, 468, 1660, 854, 392, 2710, 434, 279, 1026, 1106, 261, 407, 3452, 392, 2521, 27147, 468, 8263, 67, 13587, 578, 1427, 2934, 6164, 7756, 628, 3134, 1026, 1605, 4253, 18, 2626, 2668, 2080, 738, 87, 1930, 380, 64, 82, 11, 9, 1969, 5610, 6315, 710, 67, 869, 67, 21885, 63, 710, 5717, 1026, 2978, 273, 1026, 5610, 6315, 710, 67, 869, 67, 2978, 63, 710, 65, 469, 30, 468, 1660, 854, 486, 392, 2710, 18, 1026, 2978, 273, 599, 4074, 1106, 3374, 12, 7944, 16, 16037, 16, 1026, 2978, 13, 225, 2792, 8134, 8033, 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, 1161, 1449, 9519, 12, 30676, 16, 7888, 16, 8439, 16, 2653, 16, 2728, 16, 5299, 16, 1026, 5610, 33, 7036, 4672, 3536, 4625, 981, 364, 279, 2202, 11371, 8395, 306, 529, 16, 3044, 16, 981, 16, 1801, 16, 1177, 16, 2641, 16, 3318, 16, 13979, 16, 17922, 65, 273, 11371, 225, 16037, 273, 9786, 12, 529, 13, 309, 562, 12, 1711, 529, 13, 405, 9131, 30, 16037, 273, 16037, 10531, 5324, 65, 284, 1049, 16, 1529, 273, 5318, 2556, 18, 8336, 6426, 812, 2668, 15774, 876, 585, 2187, 16037, 6797, 18, 2074, 6134, 309, 486, 1529, 30, 327, 599, 16, 599, 9806, 273, 284, 1049, 18, 345, 67, 28336, 1435, 16037, 273, 1140, 18, 803, 18, 4939, 408, 2 ]
if dir == '.': dir = '' if dir.startswith('..') or dir[0] == '/':
if dir == '.': dir = '' if dir.startswith('..') or (dir and dir[0] == '/'):
def get_module_filetree(module, dir='.'): path = get_module_path(module) if not path: return False dir = os.path.normpath(dir) if dir == '.': dir = '' if dir.startswith('..') or dir[0] == '/': raise Exception('Cannot access file outside the module') if not os.path.isdir(path): # zipmodule zip = zipfile.ZipFile(path + ".zip") files = ['/'.join(f.split('/')[1:]) for f in zip.namelist()] else: files = tools.osutil.listdir(path, True) tree = {} for f in files: if not f.startswith(dir): continue f = f[len(dir)+int(not dir.endswith('/')):] lst = f.split(os.sep) current = tree while len(lst) != 1: current = current.setdefault(lst.pop(0), {}) current[lst.pop(0)] = None return tree
09d28729528bb27ea9c8c78ad4a3afecc54ecbc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/09d28729528bb27ea9c8c78ad4a3afecc54ecbc1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2978, 67, 7540, 31303, 12, 2978, 16, 1577, 2218, 1093, 4672, 589, 273, 336, 67, 2978, 67, 803, 12, 2978, 13, 309, 486, 589, 30, 327, 1083, 225, 1577, 273, 1140, 18, 803, 18, 7959, 803, 12, 1214, 13, 309, 1577, 422, 2611, 30, 1577, 273, 875, 309, 1577, 18, 17514, 1918, 2668, 838, 6134, 578, 261, 1214, 471, 1577, 63, 20, 65, 422, 2023, 4672, 1002, 1185, 2668, 4515, 2006, 585, 8220, 326, 1605, 6134, 225, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 468, 3144, 2978, 3144, 273, 18823, 18, 29394, 12, 803, 397, 3552, 4450, 7923, 1390, 273, 10228, 2473, 18, 5701, 12, 74, 18, 4939, 2668, 2473, 25146, 21, 30, 5717, 364, 284, 316, 3144, 18, 17808, 5449, 1435, 65, 469, 30, 1390, 273, 8513, 18, 538, 1367, 18, 1098, 1214, 12, 803, 16, 1053, 13, 225, 2151, 273, 2618, 364, 284, 316, 1390, 30, 309, 486, 284, 18, 17514, 1918, 12, 1214, 4672, 1324, 284, 273, 284, 63, 1897, 12, 1214, 27921, 474, 12, 902, 1577, 18, 5839, 1918, 2668, 2473, 3719, 26894, 9441, 273, 284, 18, 4939, 12, 538, 18, 10814, 13, 783, 273, 2151, 1323, 562, 12, 16923, 13, 480, 404, 30, 783, 273, 783, 18, 542, 1886, 12, 16923, 18, 5120, 12, 20, 3631, 2618, 13, 783, 63, 16923, 18, 5120, 12, 20, 25887, 273, 599, 225, 327, 2151, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2978, 67, 7540, 31303, 12, 2978, 16, 1577, 2218, 1093, 4672, 589, 273, 336, 67, 2978, 67, 803, 12, 2978, 13, 309, 486, 589, 30, 327, 1083, 225, 1577, 273, 1140, 18, 803, 18, 7959, 803, 12, 1214, 13, 309, 1577, 422, 2611, 30, 1577, 273, 875, 309, 1577, 18, 17514, 1918, 2668, 838, 6134, 578, 261, 1214, 471, 1577, 63, 20, 65, 422, 2023, 4672, 1002, 1185, 2668, 4515, 2006, 585, 8220, 326, 1605, 6134, 225, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 468, 3144, 2978, 3144, 273, 18823, 18, 29394, 12, 803, 397, 3552, 4450, 7923, 1390, 273, 10228, 2473, 18, 5701, 12, 74, 18, 4939, 2668, 2473, 25146, 21, 2 ]
for ch in s: if _entitymap.has_key(ch): res = res + "&" + _entitymap[ch] + ";" else: res = res + ch
if s is not None: for ch in s: if _entitymap.has_key(ch): res = res + "&" + _entitymap[ch] + ";" else: res = res + ch
def htmlEncode(s): res = "" for ch in s: if _entitymap.has_key(ch): res = res + "&" + _entitymap[ch] + ";" else: res = res + ch return res
d3843e17612f84bb1410479bfebe54ab881ff694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/d3843e17612f84bb1410479bfebe54ab881ff694/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 5509, 12, 87, 4672, 400, 273, 1408, 309, 272, 353, 486, 599, 30, 364, 462, 316, 272, 30, 309, 389, 1096, 1458, 18, 5332, 67, 856, 12, 343, 4672, 400, 273, 400, 397, 16347, 397, 389, 1096, 1458, 63, 343, 65, 397, 11430, 469, 30, 400, 273, 400, 397, 462, 327, 400, 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,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, 1458, 63, 343, 65, 397, 11430, 469, 30, 400, 273, 400, 397, 462, 327, 400, 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 ]
self.body.append('\\addtocounter{enumi}{%d}\n' \
self.out.append('\\addtocounter{enumi}{%d}\n' \
def visit_enumerated_list (self, node): #LaTeXTranslator has a very complicated #visit_enumerated_list that throws out much of what latex #does to handle them for us. I am going back to relying #on latex. if ('contents' in getattr (self, 'topic_classes', [])): if self.use_latex_toc: raise nodes.SkipNode self.body.append( '\\begin{list}{}{}\n' ) else: begin_str = '\\begin{enumerate}' if self.overlay_bullets: begin_str += '[<+-| alert@+>]' begin_str += '\n' self.body.append(begin_str) if node.has_key('start'): self.body.append('\\addtocounter{enumi}{%d}\n' \ % (node['start']-1))
37db8ffa549b63ebad9bbc3310aeafe2a276f03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/37db8ffa549b63ebad9bbc3310aeafe2a276f03b/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 7924, 19007, 67, 1098, 261, 2890, 16, 756, 4672, 468, 30745, 21575, 60, 12233, 711, 279, 8572, 31312, 468, 11658, 67, 7924, 19007, 67, 1098, 716, 1216, 596, 9816, 434, 4121, 25079, 468, 20657, 358, 1640, 2182, 364, 584, 18, 225, 467, 2125, 8554, 1473, 358, 283, 6291, 468, 265, 25079, 18, 309, 7707, 3980, 11, 316, 3869, 261, 2890, 16, 296, 10476, 67, 4701, 2187, 5378, 3719, 30, 309, 365, 18, 1202, 67, 26264, 67, 1391, 30, 1002, 2199, 18, 6368, 907, 365, 18, 3432, 18, 6923, 12, 3718, 10086, 95, 1098, 97, 2916, 25902, 82, 11, 262, 469, 30, 2376, 67, 701, 273, 3718, 10086, 95, 7924, 12600, 1713, 309, 365, 18, 17312, 67, 70, 420, 2413, 30, 2376, 67, 701, 1011, 5271, 32, 18549, 96, 6881, 36, 15, 34, 3864, 2376, 67, 701, 1011, 2337, 82, 11, 365, 18, 3432, 18, 6923, 12, 10086, 67, 701, 13, 309, 756, 18, 5332, 67, 856, 2668, 1937, 11, 4672, 365, 18, 659, 18, 6923, 2668, 1695, 1289, 1391, 2096, 95, 7924, 77, 8637, 9, 72, 6280, 82, 11, 521, 738, 261, 2159, 3292, 1937, 3546, 17, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 7924, 19007, 67, 1098, 261, 2890, 16, 756, 4672, 468, 30745, 21575, 60, 12233, 711, 279, 8572, 31312, 468, 11658, 67, 7924, 19007, 67, 1098, 716, 1216, 596, 9816, 434, 4121, 25079, 468, 20657, 358, 1640, 2182, 364, 584, 18, 225, 467, 2125, 8554, 1473, 358, 283, 6291, 468, 265, 25079, 18, 309, 7707, 3980, 11, 316, 3869, 261, 2890, 16, 296, 10476, 67, 4701, 2187, 5378, 3719, 30, 309, 365, 18, 1202, 67, 26264, 67, 1391, 30, 1002, 2199, 18, 6368, 907, 365, 18, 3432, 18, 6923, 12, 3718, 10086, 95, 1098, 97, 2916, 25902, 82, 11, 262, 469, 30, 2376, 67, 701, 273, 3718, 10086, 95, 7924, 12600, 1713, 309, 365, 18, 17312, 67, 2 ]
sys.stdout.write ("\nLoad Module At Fix Address Map file saved to %s\n" %(MapFilePath))
if self.LoadFixAddress != 0: sys.stdout.write ("\nLoad Module At Fix Address Map file saved to %s\n" %(MapFilePath))
def _SaveMapFile (self, MapBuffer, Wa): # # Map file path is got. # MapFilePath = os.path.join(Wa.BuildDir, Wa.Name + '.map') # # Save address map into MAP file. # SaveFileOnChange(MapFilePath, MapBuffer.getvalue(), False) MapBuffer.close() sys.stdout.write ("\nLoad Module At Fix Address Map file saved to %s\n" %(MapFilePath)) sys.stdout.flush()
9ff69f35c75043c955fc92ca465db39f6bf1ead5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/9ff69f35c75043c955fc92ca465db39f6bf1ead5/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4755, 863, 812, 261, 2890, 16, 1635, 1892, 16, 678, 69, 4672, 468, 468, 1635, 585, 589, 353, 2363, 18, 468, 1635, 5598, 273, 1140, 18, 803, 18, 5701, 12, 59, 69, 18, 3116, 1621, 16, 678, 69, 18, 461, 397, 2418, 1458, 6134, 468, 468, 7074, 1758, 852, 1368, 12815, 585, 18, 468, 7074, 812, 1398, 3043, 12, 863, 5598, 16, 1635, 1892, 18, 588, 1132, 9334, 1083, 13, 1635, 1892, 18, 4412, 1435, 309, 365, 18, 2563, 8585, 1887, 480, 374, 30, 2589, 18, 10283, 18, 2626, 7566, 64, 82, 2563, 5924, 2380, 12139, 5267, 1635, 585, 5198, 358, 738, 87, 64, 82, 6, 8975, 863, 5598, 3719, 2589, 18, 10283, 18, 11330, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4755, 863, 812, 261, 2890, 16, 1635, 1892, 16, 678, 69, 4672, 468, 468, 1635, 585, 589, 353, 2363, 18, 468, 1635, 5598, 273, 1140, 18, 803, 18, 5701, 12, 59, 69, 18, 3116, 1621, 16, 678, 69, 18, 461, 397, 2418, 1458, 6134, 468, 468, 7074, 1758, 852, 1368, 12815, 585, 18, 468, 7074, 812, 1398, 3043, 12, 863, 5598, 16, 1635, 1892, 18, 588, 1132, 9334, 1083, 13, 1635, 1892, 18, 4412, 1435, 309, 365, 18, 2563, 8585, 1887, 480, 374, 30, 2589, 18, 10283, 18, 2626, 7566, 64, 82, 2563, 5924, 2380, 12139, 5267, 1635, 585, 5198, 358, 738, 87, 64, 82, 6, 8975, 863, 5598, 3719, 2589, 18, 10283, 18, 11330, 1435, 2, -100 ]
domain = orange.Domain(self.data.domain.attributes + [self.data.domain.classVar]) for m in metas: domain.addmeta(orange.newmetaid(), m) predictions = orange.ExampleTable(domain, self.data) predictions.name = self.data.name self.send("Predictions", predictions) def selection(self): def cmpclasses(clist): """returns True if all elements in clist are the same""" clist = filter(lambda x: not x.isSpecial(), clist) ref = clist[0] for c in clist[1:]: if c<>ref: return 0 return 1 if not self.sendSelection: return if not self.data or not self.classifiers: self.send("Selected Examples", None) classification = self.outvar.varType == orange.VarTypes.Discrete if classification: s = [cmpclasses(cls) for cls in self.classifications] if self.sendDataType == 1: s = [not x for x in s] data_selection = self.data.select(s)
def predictions(self): if self.freezeAttChange: return if not self.data or not self.classifiers: self.send("Predictions", None)
63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13067, 12, 2890, 4672, 309, 365, 18, 29631, 3075, 3043, 30, 327, 309, 486, 365, 18, 892, 578, 486, 365, 18, 1106, 3383, 30, 365, 18, 4661, 2932, 20766, 87, 3113, 599, 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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0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13067, 12, 2890, 4672, 309, 365, 18, 29631, 3075, 3043, 30, 327, 309, 486, 365, 18, 892, 578, 486, 365, 18, 1106, 3383, 30, 365, 18, 4661, 2932, 20766, 87, 3113, 599, 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 ]
if auth.provider.domain != 'db': raise Exception("Invalid domainm for object service") if method not in self._auth_commands['db']:
if auth.provider.domain not in self._auth_commands: raise Exception("Invalid domain for object service") if method not in self._auth_commands[auth.provider.domain]:
def new_dispatch(self, method, auth, params, auth_domain=None): # Double check, that we have the correct authentication: if not auth: raise Exception("Not auth domain for object service") if auth.provider.domain != 'db': raise Exception("Invalid domainm for object service") if method not in self._auth_commands['db']: raise Exception("Method not found: %s" % method)
d4129a2f8ce3f5552f0539e68a7e8f41c03af215 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/d4129a2f8ce3f5552f0539e68a7e8f41c03af215/web_services.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 10739, 12, 2890, 16, 707, 16, 1357, 16, 859, 16, 1357, 67, 4308, 33, 7036, 4672, 468, 3698, 866, 16, 716, 732, 1240, 326, 3434, 5107, 30, 309, 486, 1357, 30, 1002, 1185, 2932, 1248, 1357, 2461, 364, 733, 1156, 7923, 309, 1357, 18, 6778, 18, 4308, 486, 316, 365, 6315, 1944, 67, 7847, 30, 1002, 1185, 2932, 1941, 2461, 364, 733, 1156, 7923, 225, 309, 707, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 10739, 12, 2890, 16, 707, 16, 1357, 16, 859, 16, 1357, 67, 4308, 33, 7036, 4672, 468, 3698, 866, 16, 716, 732, 1240, 326, 3434, 5107, 30, 309, 486, 1357, 30, 1002, 1185, 2932, 1248, 1357, 2461, 364, 733, 1156, 7923, 309, 1357, 18, 6778, 18, 4308, 486, 316, 365, 6315, 1944, 67, 7847, 30, 1002, 1185, 2932, 1941, 2461, 364, 733, 1156, 7923, 225, 309, 707, 486, 316, 365, 6315, 1944, 67, 7847, 63, 1944, 18, 6778, 18, 4308, 14542, 1002, 1185, 2932, 1305, 486, 1392, 30, 738, 87, 6, 738, 707, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def export_installDatabase(self,rootpwd,dbname): """ Install a DIRAC database named dbname """ diracpwd = gConfig.getValue('/Systems/Databases/Password','') if not diracpwd: return S_ERROR('Database password is not defined') currentEnv = os.environ currentEnv['MYSQL_ROOT_PWD'] = rootpwd currentEnv['MYSQL_DIRAC_PWD'] = diracpwd if not currentEnv.has_key('HOST'): currentEnv['HOST'] = socket.getfqdn() result = shellCall(0,DIRACROOT+'/DIRAC/Core/scripts/install_db.sh %s' % dbname,env=currentEnv) if not result['OK']: return result extensions = gConfig.getValue('/DIRAC/Extensions',[]) for extension in [ x+'DIRAC' for x in extensions]+['DIRAC']: systemList = os.listdir(rootPath+'/%s' % extension) for system in systemList: if os.path.exists(rootPath+'/%s/%s/DB/%s.sql' % (extension,system,dbname) ): return S_OK( (extension,system) ) return S_ERROR('Database %s not found' % dbname) types_addLocalDatabaseOptions = [ StringTypes, StringTypes ] def export_addLocalDatabaseOptions(self,system,dbname,user=None,password=None):
def export_installDatabase( self, dbName ): """ Install a DIRAC database named dbName """ return InstallTools.installDatabase( dbName ) types_addDatabaseOptionsToCS = [ StringTypes, StringTypes ] def export_addDatabaseOptionsToCS( self, system, database, overwrite = False ): """ Add the section with the database options to the CS """ return InstallTools.addDatabaseOptionsToCS( gConfig, system, database, overwrite ) types_addDefaultOptionsToCS = [StringTypes, StringTypes, StringTypes] def export_addDefaultOptionsToCS( self, componentType, system, component, overwrite = False ):
def export_installDatabase(self,rootpwd,dbname): """ Install a DIRAC database named dbname """ diracpwd = gConfig.getValue('/Systems/Databases/Password','') if not diracpwd: return S_ERROR('Database password is not defined') currentEnv = os.environ currentEnv['MYSQL_ROOT_PWD'] = rootpwd currentEnv['MYSQL_DIRAC_PWD'] = diracpwd if not currentEnv.has_key('HOST'): currentEnv['HOST'] = socket.getfqdn()
12be5ded5b2add0661f20d7fa8bd6def28fb091b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/12be5ded5b2add0661f20d7fa8bd6def28fb091b/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5425, 4254, 12, 2890, 16, 3085, 27487, 16, 20979, 4672, 3536, 10284, 279, 18544, 2226, 2063, 4141, 18448, 3536, 4314, 354, 4057, 3623, 273, 314, 809, 18, 24805, 2668, 19, 31072, 19, 31635, 19, 3913, 17023, 6134, 309, 486, 4314, 354, 4057, 3623, 30, 327, 348, 67, 3589, 2668, 4254, 2201, 353, 486, 2553, 6134, 783, 3491, 273, 1140, 18, 28684, 783, 3491, 3292, 22114, 3997, 67, 9185, 67, 31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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5425, 4254, 12, 2890, 16, 3085, 27487, 16, 20979, 4672, 3536, 10284, 279, 18544, 2226, 2063, 4141, 18448, 3536, 4314, 354, 4057, 3623, 273, 314, 809, 18, 24805, 2668, 19, 31072, 19, 31635, 19, 3913, 17023, 6134, 309, 486, 4314, 354, 4057, 3623, 30, 327, 348, 67, 3589, 2668, 4254, 2201, 353, 486, 2553, 6134, 783, 3491, 273, 1140, 18, 28684, 783, 3491, 3292, 22114, 3997, 67, 9185, 67, 31243, 3546, 273, 1365, 27487, 783, 3491, 3292, 22114, 3997, 67, 4537, 2226, 67, 31243, 3546, 273, 4314, 354, 4057, 3623, 309, 486, 783, 3491, 18, 5332, 67, 856, 2668, 8908, 11, 4672, 783, 3491, 3292, 8908, 3546, 273, 2987, 18, 588, 19206, 5176, 1435, 2, -100, -100 ]
stdout.replace('\r\n', '\n')
stdout = stdout.replace('\r\n', '\n')
def resolve(self, variables, setting): cline = self._arguments[0].resolve(variables, setting)
b66e40a7cc617c10995bc1d57161877ed32f82ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7005/b66e40a7cc617c10995bc1d57161877ed32f82ee/functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 3152, 16, 3637, 4672, 927, 558, 273, 365, 6315, 7099, 63, 20, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 3152, 16, 3637, 4672, 927, 558, 273, 365, 6315, 7099, 63, 20, 8009, 10828, 12, 7528, 16, 3637, 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 ]
class RulesetController(object): """Listens for messages used to store and query rulesets""" def __init__(self, hub, storage): self.storage = storage self.hub = hub self.addClients() def addClients(self): """Add our clients to the Message.Hub. This uses an extra level of indirection so that rebuild() can replace references to our callbacks correctly. """ self.hub.addClient(lambda msg: self.storeRuleset(msg), Message.Filter('<find path="/message/body/ruleset"/>')) self.hub.addClient(lambda msg: self.queryRulesets(msg), Message.Filter('<find path="/message/body/queryRulesets"/>')) self.hub.addClient(lambda msg: self.queryUriList(msg), Message.Filter('<find path="/message/body/queryUriList"/>')) def storeRuleset(self, message): """Handle messages instructing us to add, modify, or remove rulesets. The message body contains one or more <ruleset> elements with 'uri' attributes. An empty ruleset for a particular URI is equivalent to removing that URI's ruleset. """ for child in message.xml.body.elements(): if child.name == 'ruleset': self.storage.store(child) self.storage.save() def queryRulesets(self, message): """Handles messages containing a <queryRulesets> tag in its body. If queryRulesets includes a 'uri' attribute, the ruleset for that URI is returned in a 1-item list, or an empty list if that URI has no ruleset. Without the 'uri' attribute, returns a list of strings representing all rulesets. """ tag = message.xml.body.queryRulesets uri = tag.getAttribute('uri') results = [] for delivery in self.storage.rulesetMap.itervalues(): if uri is None or delivery.ruleset.uri == uri: results.append(str(delivery.ruleset)) return results def queryUriList(self, message): """Handles messages containing a <queryUriList> tag in its body. Returns a list of URIs with rulesets attached. """ return self.storage.rulesetMap.keys()
def flatten(self): """Return a flat list of all Ruleset objects so we can store 'em""" return [delivery.ruleset for delivery in self.rulesetMap.itervalues()]
f0ed2b2783639365fa45d590280a741f40e144f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/f0ed2b2783639365fa45d590280a741f40e144f0/Ruleset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 4672, 3536, 990, 279, 3569, 666, 434, 777, 15718, 278, 2184, 1427, 732, 848, 1707, 296, 351, 8395, 327, 306, 15703, 18, 7482, 278, 364, 7912, 316, 365, 18, 7482, 278, 863, 18, 2165, 2372, 1435, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 4672, 3536, 990, 279, 3569, 666, 434, 777, 15718, 278, 2184, 1427, 732, 848, 1707, 296, 351, 8395, 327, 306, 15703, 18, 7482, 278, 364, 7912, 316, 365, 18, 7482, 278, 863, 18, 2165, 2372, 1435, 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, -100, -100, -100 ]
q.append('SELECT 2 as type, summary AS title, ' ' description AS message, reporter AS author, keywords,' ' id AS data, time,0 AS ver' ' FROM ticket WHERE %s OR %s OR %s OR %s OR %s' % (self.query_to_sql(query, 'summary'),
q.append('SELECT DISTINCT 2 as type, a.summary AS title, ' ' a.description AS message, a.reporter AS author, a.keywords as keywords,' ' a.id AS data, a.time as time, 0 AS ver' ' FROM ticket a LEFT JOIN ticket_change b ON a.id = b.ticket' ' WHERE (b.field=\'comment\' AND %s ) OR' ' %s OR %s OR %s OR %s OR %s' % (self.query_to_sql(query, 'b.newvalue'), self.query_to_sql(query, 'summary'),
def perform_query (self, query, changeset, tickets, wiki, page=0): keywords = query.split(' ')
a30e9db32eaba65a3abf27a070778bceb20c21a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/a30e9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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2271, 261, 2890, 16, 843, 16, 22463, 16, 24475, 16, 9050, 16, 1363, 33, 20, 4672, 7093, 273, 843, 18, 4939, 2668, 8624, 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 ]
self.canvas.set_size_request(self.bg.get_width(), self.bg.get_height())
def __init__(self, deferred, netclient, fps): self.fps = fps self.deferred = deferred self.netclient = netclient
b678ac7eff46d2af5d07c3c0b6b3064a0f4ca389 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/b678ac7eff46d2af5d07c3c0b6b3064a0f4ca389/frontend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7045, 16, 2901, 2625, 16, 26067, 4672, 365, 18, 74, 1121, 273, 26067, 365, 18, 26622, 273, 7045, 365, 18, 2758, 2625, 273, 2901, 2625, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7045, 16, 2901, 2625, 16, 26067, 4672, 365, 18, 74, 1121, 273, 26067, 365, 18, 26622, 273, 7045, 365, 18, 2758, 2625, 273, 2901, 2625, 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 ]
b = a / math.sqrt(1.0 - sim.pol_ellipse_e**2)
b = a * math.sqrt(1.0 - sim.pol_ellipse_e**2)
def hrss_in_instrument(sim, instrument): """ Given an injection and an instrument, compute and return the h_rss of the injection as should be observed in the instrument. That is, project the waveform onto the instrument, and return the root integrated strain squared. """ # semimajor and semiminor axes of polarization ellipse a = 1.0 / math.sqrt(2.0 - sim.pol_ellipse_e**2) b = a / math.sqrt(1.0 - sim.pol_ellipse_e**2) # hrss in plus and cross polarizations hplusrss = sim.hrss * (a * math.cos(sim.pol_ellipse_angle) - b * math.sin(sim.pol_ellipse_angle)) hcrossrss = sim.hrss * (b * math.cos(sim.pol_ellipse_angle) + a * math.sin(sim.pol_ellipse_angle)) # antenna response factors fplus, fcross = inject.XLALComputeDetAMResponse( inject.cached_detector[inject.prefix_to_name[instrument]].response, sim.ra, sim.dec, sim.psi, date.XLALGreenwichMeanSiderealTime(time_at_instrument(sim, instrument)) ) # hrss in detector return math.sqrt((fplus * hplusrss)**2 + (fcross * hcrossrss)**2)
eb2a4e0e06bac7f07ca7059a215b8b2e994ea43d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/eb2a4e0e06bac7f07ca7059a215b8b2e994ea43d/SimBurstUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15407, 1049, 67, 267, 67, 22818, 12, 9812, 16, 10353, 4672, 3536, 16803, 392, 10380, 471, 392, 10353, 16, 3671, 471, 327, 326, 366, 67, 25151, 434, 326, 10380, 487, 1410, 506, 12117, 316, 326, 10353, 18, 225, 12466, 353, 16, 1984, 326, 31511, 10170, 326, 10353, 16, 471, 327, 326, 1365, 31121, 16853, 21778, 18, 3536, 468, 6111, 381, 6284, 471, 6111, 381, 267, 280, 6515, 434, 24244, 1588, 26838, 225, 279, 273, 404, 18, 20, 342, 4233, 18, 24492, 12, 22, 18, 20, 300, 3142, 18, 3915, 67, 292, 10472, 67, 73, 636, 22, 13, 324, 273, 279, 380, 4233, 18, 24492, 12, 21, 18, 20, 300, 3142, 18, 3915, 67, 292, 10472, 67, 73, 636, 22, 13, 225, 468, 15407, 1049, 316, 8737, 471, 6828, 24244, 7089, 225, 366, 10103, 25151, 225, 273, 3142, 18, 7256, 1049, 380, 261, 69, 380, 4233, 18, 14445, 12, 9812, 18, 3915, 67, 292, 10472, 67, 4341, 13, 300, 324, 380, 4233, 18, 21861, 12, 9812, 18, 3915, 67, 292, 10472, 67, 4341, 3719, 11684, 3984, 25151, 273, 3142, 18, 7256, 1049, 380, 261, 70, 380, 4233, 18, 14445, 12, 9812, 18, 3915, 67, 292, 10472, 67, 4341, 13, 397, 279, 380, 4233, 18, 21861, 12, 9812, 18, 3915, 67, 292, 10472, 67, 4341, 3719, 225, 468, 392, 2253, 6582, 766, 14490, 225, 284, 10103, 16, 8036, 3984, 273, 4590, 18, 23668, 1013, 7018, 4986, 2192, 1064, 12, 4590, 18, 7097, 67, 8238, 1229, 63, 22170, 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, 15407, 1049, 67, 267, 67, 22818, 12, 9812, 16, 10353, 4672, 3536, 16803, 392, 10380, 471, 392, 10353, 16, 3671, 471, 327, 326, 366, 67, 25151, 434, 326, 10380, 487, 1410, 506, 12117, 316, 326, 10353, 18, 225, 12466, 353, 16, 1984, 326, 31511, 10170, 326, 10353, 16, 471, 327, 326, 1365, 31121, 16853, 21778, 18, 3536, 468, 6111, 381, 6284, 471, 6111, 381, 267, 280, 6515, 434, 24244, 1588, 26838, 225, 279, 273, 404, 18, 20, 342, 4233, 18, 24492, 12, 22, 18, 20, 300, 3142, 18, 3915, 67, 292, 10472, 67, 73, 636, 22, 13, 324, 273, 279, 380, 4233, 18, 24492, 12, 21, 18, 20, 300, 3142, 18, 3915, 67, 292, 10472, 67, 73, 636, 2 ]
sel.connect_object('changed', copool.add, self.__songs_selected, sel)
sel.connect_object('changed', copool.add, self.__songs_selected, dt)
def __init__(self, library, player): super(FileSystem, self).__init__() self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.set_shadow_type(gtk.SHADOW_IN)
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, 2738, 972, 12, 2890, 16, 5313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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5313, 16, 7291, 4672, 2240, 12, 11785, 16, 365, 2934, 972, 2738, 972, 1435, 365, 18, 542, 67, 5086, 12, 4521, 79, 18, 26366, 67, 37, 1693, 1872, 11781, 16, 22718, 18, 26366, 67, 37, 1693, 1872, 11781, 13, 365, 18, 542, 67, 19119, 67, 723, 12, 4521, 79, 18, 2664, 1880, 7306, 67, 706, 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 ]