rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
def initialize(self): BaseLBFGS.initialize(self) self.Ho = 0.05
def initialize(self): BaseLBFGS.initialize(self) self.Ho = 0.05
d866d133aade9dcb75573e76a600c1a9657a4c19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/d866d133aade9dcb75573e76a600c1a9657a4c19/lbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Method for describing self in LaTeX. Encapsulates ``self.gens()`` in angle brackets to denote that self in generated by these elements. Called by the
Method for describing ``self`` in LaTeX. Encapsulates ``self.gens()`` in angle brackets to denote that ``self`` is generated by these elements. Called by the
def _latex_(self): r""" Method for describing self in LaTeX. Encapsulates ``self.gens()`` in angle brackets to denote that self in generated by these elements. Called by the ``latex()`` function. EXAMPLES: We explicitly construct the alternating group on four elements. :: sage: A4 = PermutationGroup([[(1,2,3)],[(2,3,4)]]); A4 Permutation Group with generators [(2,3,4), (1,2,3)] sage: latex(A4) \langle (2,3,4), (1,2,3) \rangle sage: A4._latex_() '\\langle (2,3,4), (1,2,3) \\rangle' """ return '\\langle ' + \ ', '.join([x._latex_() for x in self.gens()]) + ' \\rangle'
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, 389, 26264, 67, 12, 2890, 4672, 436, 8395, 2985, 364, 16868, 12176, 2890, 10335, 316, 21072, 21575, 60, 18, 1374, 22984, 17099, 12176, 2890, 18, 23730, 1435, 10335, 316, 5291, 15597, 358, 5545, 1168, 716, 12176, 2890, 10335, 353, 4374, 635, 4259, 2186, 18, 11782, 635, 326, 12176, 26264, 1435, 10335, 445, 18, 225, 5675, 8900, 11386, 30, 1660, 8122, 4872, 326, 6416, 1776, 1041, 603, 12792, 2186, 18, 225, 493, 225, 272, 410, 30, 432, 24, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 16, 23, 13, 6487, 63, 12, 22, 16, 23, 16, 24, 13, 13563, 1769, 432, 24, 13813, 9245, 3756, 598, 13327, 306, 12, 22, 16, 23, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 25887, 272, 410, 30, 25079, 12, 37, 24, 13, 521, 80, 4341, 261, 22, 16, 23, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 13, 521, 86, 4341, 272, 410, 30, 432, 24, 6315, 26264, 67, 1435, 3718, 80, 4341, 261, 22, 16, 23, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 13, 1736, 86, 4341, 11, 3536, 327, 3718, 80, 4341, 296, 397, 521, 2265, 2418, 5701, 3816, 92, 6315, 26264, 67, 1435, 364, 619, 316, 365, 18, 23730, 1435, 5717, 397, 296, 1736, 86, 4341, 11, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 436, 8395, 2985, 364, 16868, 12176, 2890, 10335, 316, 21072, 21575, 60, 18, 1374, 22984, 17099, 12176, 2890, 18, 23730, 1435, 10335, 316, 5291, 15597, 358, 5545, 1168, 716, 12176, 2890, 10335, 353, 4374, 635, 4259, 2186, 18, 11782, 635, 326, 12176, 26264, 1435, 10335, 445, 18, 225, 5675, 8900, 11386, 30, 1660, 8122, 4872, 326, 6416, 1776, 1041, 603, 12792, 2186, 18, 225, 493, 225, 272, 410, 30, 432, 24, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 16, 23, 13, 6487, 63, 12, 22, 16, 23, 16, 24, 13, 13563, 1769, 432, 24, 13813, 9245, 3756, 598, 13327, 306, 12, 22, 16, 23, 16, 24, 3631, 261, 21, 2 ]
readables, writeables, _ = select.select(readfds, writefds, [], timeout)
readables, writeables, _ = select.select(readfds, writefds, [], timeout)
def loop(self): self.loop_ready.set() self.emit('thread-will-start') self.emit('thread-started', threading.currentThread()) self.emit('thread-did-start')
188dd78cafac2eb64514bf34f3463877d0d9d7c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/188dd78cafac2eb64514bf34f3463877d0d9d7c5/eventloop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2798, 12, 2890, 4672, 365, 18, 6498, 67, 1672, 18, 542, 1435, 365, 18, 18356, 2668, 5930, 17, 20194, 17, 1937, 6134, 365, 18, 18356, 2668, 5930, 17, 14561, 2187, 17254, 18, 2972, 3830, 10756, 365, 18, 18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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2798, 12, 2890, 4672, 365, 18, 6498, 67, 1672, 18, 542, 1435, 365, 18, 18356, 2668, 5930, 17, 20194, 17, 1937, 6134, 365, 18, 18356, 2668, 5930, 17, 14561, 2187, 17254, 18, 2972, 3830, 10756, 365, 18, 18356, 2668, 5930, 17, 14044, 17, 1937, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not _isstring(payload):
if not isinstance(payload, basestring):
def _handle_text(self, msg): payload = msg.get_payload() if payload is None: return cset = msg.get_charset() if cset is not None: payload = cset.body_encode(payload) if not _isstring(payload): raise TypeError, 'string payload expected: %s' % type(payload) if self._mangle_from_: payload = fcre.sub('>From ', payload) self._fp.write(payload)
bebf357b442a43365c8883f99b9f699444d75bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bebf357b442a43365c8883f99b9f699444d75bc7/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 955, 12, 2890, 16, 1234, 4672, 2385, 273, 1234, 18, 588, 67, 7648, 1435, 309, 2385, 353, 599, 30, 327, 276, 542, 273, 1234, 18, 588, 67, 9999, 1435, 309, 276, 542, 353, 486, 599, 30, 2385, 273, 276, 542, 18, 3432, 67, 3015, 12, 7648, 13, 309, 486, 1549, 12, 7648, 16, 10699, 4672, 1002, 3580, 16, 296, 1080, 2385, 2665, 30, 738, 87, 11, 738, 618, 12, 7648, 13, 309, 365, 6315, 81, 4341, 67, 2080, 67, 30, 2385, 273, 284, 1793, 18, 1717, 2668, 34, 1265, 2265, 2385, 13, 365, 6315, 7944, 18, 2626, 12, 7648, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 955, 12, 2890, 16, 1234, 4672, 2385, 273, 1234, 18, 588, 67, 7648, 1435, 309, 2385, 353, 599, 30, 327, 276, 542, 273, 1234, 18, 588, 67, 9999, 1435, 309, 276, 542, 353, 486, 599, 30, 2385, 273, 276, 542, 18, 3432, 67, 3015, 12, 7648, 13, 309, 486, 1549, 12, 7648, 16, 10699, 4672, 1002, 3580, 16, 296, 1080, 2385, 2665, 30, 738, 87, 11, 738, 618, 12, 7648, 13, 309, 365, 6315, 81, 4341, 67, 2080, 67, 30, 2385, 273, 284, 1793, 18, 1717, 2668, 34, 1265, 2265, 2385, 13, 365, 6315, 7944, 18, 2626, 12, 7648, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
last_mtime = path.getmtime(self.content_file)
last_mtime = os.path.getmtime(self.content_file)
def launch(self): """Launch external editor""" save_interval = float(self.options.get('save_interval')) use_locks = int(self.options.get('use_locks', 0)) launch_success = 0 last_mtime = path.getmtime(self.content_file) command = self.getEditorCommand() if command.find('%1') > -1: command = command.replace('%1', self.content_file) else: command = '%s %s' % (command, self.content_file) editor = EditorProcess(command) if use_locks: self.lock() while 1: editor.wait(save_interval or 2) mtime = path.getmtime(self.content_file) if (save_interval or not editor.isAlive()) and mtime != last_mtime: # File was modified launch_success = 1 # handle very short editing sessions self.saved = self.putChanges() last_mtime = mtime
6d4ecbc86879f2fecef558188076078002d226f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/6d4ecbc86879f2fecef558188076078002d226f3/zopeedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 12, 2890, 4672, 3536, 9569, 3903, 4858, 8395, 1923, 67, 6624, 273, 1431, 12, 2890, 18, 2116, 18, 588, 2668, 5688, 67, 6624, 26112, 999, 67, 23581, 273, 509, 12, 2890, 18, 2116, 18, 588, 2668, 1202, 67, 23581, 2187, 374, 3719, 8037, 67, 4768, 273, 374, 1142, 67, 10838, 273, 1140, 18, 803, 18, 588, 10838, 12, 2890, 18, 1745, 67, 768, 13, 1296, 273, 365, 18, 588, 6946, 2189, 1435, 309, 1296, 18, 4720, 29909, 21, 6134, 405, 300, 21, 30, 1296, 273, 1296, 18, 2079, 29909, 21, 2187, 365, 18, 1745, 67, 768, 13, 469, 30, 1296, 273, 1995, 87, 738, 87, 11, 738, 261, 3076, 16, 365, 18, 1745, 67, 768, 13, 4858, 273, 18451, 2227, 12, 3076, 13, 225, 309, 999, 67, 23581, 30, 365, 18, 739, 1435, 225, 1323, 404, 30, 4858, 18, 7048, 12, 5688, 67, 6624, 578, 576, 13, 13158, 273, 589, 18, 588, 10838, 12, 2890, 18, 1745, 67, 768, 13, 225, 309, 261, 5688, 67, 6624, 578, 486, 4858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0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 12, 2890, 4672, 3536, 9569, 3903, 4858, 8395, 1923, 67, 6624, 273, 1431, 12, 2890, 18, 2116, 18, 588, 2668, 5688, 67, 6624, 26112, 999, 67, 23581, 273, 509, 12, 2890, 18, 2116, 18, 588, 2668, 1202, 67, 23581, 2187, 374, 3719, 8037, 67, 4768, 273, 374, 1142, 67, 10838, 273, 1140, 18, 803, 18, 588, 10838, 12, 2890, 18, 1745, 67, 768, 13, 1296, 273, 365, 18, 588, 6946, 2189, 1435, 309, 1296, 18, 4720, 29909, 21, 6134, 405, 300, 21, 30, 1296, 273, 1296, 18, 2079, 29909, 21, 2187, 365, 18, 1745, 67, 768, 13, 469, 30, 1296, 273, 1995, 87, 738, 87, 11, 738, 261, 3076, 16, 365, 18, 1745, 67, 768, 13, 4858, 2 ]
Dispatch.acquire_append_text(self, "feature_description", "description") Dispatch.acquire_text(self, tag = "feature_name", attribute = "name") self.acquire(Handle_location(self.add_location, self.settings), prefix = "feature")
self.acquire(Handle_feature_location(self.add_location, self.settings))
def __init__(self, callback): Dispatch.Callback.__init__(self, callback) self.settings = {}
7795919201eb3f63ba6ae6a328d1c7499aba60a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/7795919201eb3f63ba6ae6a328d1c7499aba60a2/StdHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1348, 4672, 11552, 18, 2428, 16186, 2738, 972, 12, 2890, 16, 1348, 13, 365, 18, 4272, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1348, 4672, 11552, 18, 2428, 16186, 2738, 972, 12, 2890, 16, 1348, 13, 365, 18, 4272, 273, 2618, 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 ]
""" Response class to handle all output related tasks in one place. This class is basically a wrapper arround a StringIO instance.
"""Response class to handle all output related tasks in one place. This class is basically a wrapper arround a ``StringIO`` instance.
def __repr__(self): """ Returns a representation of this request which is "Request".
2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 2860, 279, 4335, 434, 333, 590, 1492, 353, 315, 691, 9654, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 2860, 279, 4335, 434, 333, 590, 1492, 353, 315, 691, 9654, 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 ]
if dleft == 1:
elif dleft == 1:
def on_get_value(self, rowref, column): node = self.tree.get_node_for_rowref(rowref) if not node: return None else: task = node.get_obj() if column == COL_TID: return task.get_id() elif column == COL_OBJ: return task elif column == COL_TITLE: return saxutils.escape(task.get_title()) elif column == COL_SDATE: return str(task.get_start_date()) elif column == COL_DDATE: return str(task.get_due_date()) elif column == COL_DUE: dleft = task.get_days_left() if not dleft: return str(task.get_due_date()) if dleft == 1: return _("Tomorrow") if dleft == 0: return _("Today") if dleft == -1: return _("Yesterday") if dleft < -1: return _("%s days ago") % str(abs(dleft)) if dleft > 1 and dleft <= 15: return _("In %s days") % str(dleft) else: return str(task.get_due_date())
53eda69a273ff961302db254e02309f04cc11291 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/53eda69a273ff961302db254e02309f04cc11291/tasktree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 588, 67, 1132, 12, 2890, 16, 1027, 1734, 16, 1057, 4672, 756, 273, 365, 18, 3413, 18, 588, 67, 2159, 67, 1884, 67, 492, 1734, 12, 492, 1734, 13, 309, 486, 756, 30, 327, 599, 469, 30, 1562, 273, 756, 18, 588, 67, 2603, 1435, 309, 282, 1057, 422, 5597, 67, 56, 734, 30, 327, 1562, 18, 588, 67, 350, 1435, 1327, 1057, 422, 5597, 67, 24547, 30, 327, 1562, 1327, 1057, 422, 5597, 67, 14123, 30, 327, 20319, 5471, 18, 6939, 12, 4146, 18, 588, 67, 2649, 10756, 1327, 1057, 422, 5597, 67, 55, 4594, 30, 327, 609, 12, 4146, 18, 588, 67, 1937, 67, 712, 10756, 1327, 1057, 422, 5597, 67, 40, 4594, 30, 327, 609, 12, 4146, 18, 588, 67, 24334, 67, 712, 10756, 1327, 1057, 422, 5597, 67, 40, 1821, 30, 302, 4482, 273, 1562, 18, 588, 67, 9810, 67, 4482, 1435, 309, 486, 302, 4482, 30, 327, 609, 12, 4146, 18, 588, 67, 24334, 67, 712, 10756, 1327, 302, 4482, 422, 404, 30, 327, 389, 2932, 56, 362, 15318, 7923, 309, 302, 4482, 422, 374, 30, 327, 389, 2932, 56, 20136, 7923, 309, 302, 4482, 422, 300, 21, 30, 327, 389, 2932, 61, 26309, 7923, 309, 302, 4482, 411, 300, 21, 30, 327, 389, 27188, 87, 4681, 20325, 7923, 738, 609, 12, 5113, 12, 72, 4482, 3719, 309, 302, 4482, 405, 404, 471, 302, 4482, 1648, 4711, 30, 327, 389, 2932, 382, 738, 87, 4681, 7923, 738, 609, 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, 603, 67, 588, 67, 1132, 12, 2890, 16, 1027, 1734, 16, 1057, 4672, 756, 273, 365, 18, 3413, 18, 588, 67, 2159, 67, 1884, 67, 492, 1734, 12, 492, 1734, 13, 309, 486, 756, 30, 327, 599, 469, 30, 1562, 273, 756, 18, 588, 67, 2603, 1435, 309, 282, 1057, 422, 5597, 67, 56, 734, 30, 327, 1562, 18, 588, 67, 350, 1435, 1327, 1057, 422, 5597, 67, 24547, 30, 327, 1562, 1327, 1057, 422, 5597, 67, 14123, 30, 327, 20319, 5471, 18, 6939, 12, 4146, 18, 588, 67, 2649, 10756, 1327, 1057, 422, 5597, 67, 55, 4594, 30, 327, 609, 12, 4146, 18, 588, 67, 1937, 67, 712, 10756, 1327, 1057, 422, 5597, 67, 40, 4594, 30, 2 ]
See Also "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html 'url_unquote_plus' function.
def url_unquote(s): """ Like url_unquote, but also replace '+' characters with spaces. See Also "Python 'urllib' module":http://www.python.org/doc/current/lib/module-urllib.html 'url_unquote_plus' function. """
8a7dac44e5b13112e47e784d5f1511a9a4a63404 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8a7dac44e5b13112e47e784d5f1511a9a4a63404/standard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 67, 318, 6889, 12, 87, 4672, 3536, 23078, 880, 67, 318, 6889, 16, 1496, 2546, 1453, 10058, 3949, 598, 7292, 18, 225, 3536, 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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1453, 10058, 3949, 598, 7292, 18, 225, 3536, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
nl = data.find('\n') if nl >= 0: nl += 1 self._rbuf = data[nl:] return data[:nl] buffers = [] if data: buffers.append(data) self._rbuf = ""
buf = self._rbuf buf.seek(0, 2) self._rbuf = StringIO()
def readline(self, size=-1): data = self._rbuf if size < 0: # Read until \n or EOF, whichever comes first if self._rbufsize <= 1: # Speed up unbuffered case assert data == "" buffers = [] recv = self._sock.recv while data != "\n": data = recv(1) if not data: break buffers.append(data) return "".join(buffers) nl = data.find('\n') if nl >= 0: nl += 1 self._rbuf = data[nl:] return data[:nl] buffers = [] if data: buffers.append(data) self._rbuf = "" while True: data = self._sock.recv(self._rbufsize) if not data: break buffers.append(data) nl = data.find('\n') if nl >= 0: nl += 1 self._rbuf = data[nl:] buffers[-1] = data[:nl] break return "".join(buffers) else: # Read until size bytes or \n or EOF seen, whichever comes first nl = data.find('\n', 0, size) if nl >= 0: nl += 1 self._rbuf = data[nl:] return data[:nl] buf_len = len(data) if buf_len >= size: self._rbuf = data[size:] return data[:size] buffers = [] if data: buffers.append(data) self._rbuf = "" while True: data = self._sock.recv(self._rbufsize) if not data: break buffers.append(data) left = size - buf_len nl = data.find('\n', 0, left) if nl >= 0: nl += 1 self._rbuf = data[nl:] buffers[-1] = data[:nl] break n = len(data) if n >= left: self._rbuf = data[left:] buffers[-1] = data[:left] break buf_len += n return "".join(buffers)
5203dbadc432c6f2260803a4064375469d5ec7b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/5203dbadc432c6f2260803a4064375469d5ec7b6/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 501, 273, 365, 6315, 86, 4385, 309, 963, 411, 374, 30, 468, 2720, 3180, 521, 82, 578, 6431, 16, 600, 335, 580, 502, 14535, 1122, 309, 365, 6315, 86, 4385, 1467, 1648, 404, 30, 468, 348, 5868, 731, 640, 26385, 648, 1815, 501, 422, 1408, 9664, 273, 5378, 10665, 273, 365, 6315, 15031, 18, 18334, 1323, 501, 480, 1548, 82, 6877, 501, 273, 10665, 12, 21, 13, 309, 486, 501, 30, 898, 9664, 18, 6923, 12, 892, 13, 327, 1408, 18, 5701, 12, 28101, 13, 225, 1681, 273, 365, 6315, 86, 4385, 1681, 18, 16508, 12, 20, 16, 576, 13, 365, 6315, 86, 4385, 273, 15777, 1435, 1323, 1053, 30, 501, 273, 365, 6315, 15031, 18, 18334, 12, 2890, 6315, 86, 4385, 1467, 13, 309, 486, 501, 30, 898, 9664, 18, 6923, 12, 892, 13, 7741, 273, 501, 18, 4720, 2668, 64, 82, 6134, 309, 7741, 1545, 374, 30, 7741, 1011, 404, 365, 6315, 86, 4385, 273, 501, 63, 14039, 26894, 9664, 18919, 21, 65, 273, 501, 10531, 14039, 65, 898, 327, 1408, 18, 5701, 12, 28101, 13, 469, 30, 468, 2720, 3180, 963, 1731, 578, 521, 82, 578, 6431, 5881, 16, 600, 335, 580, 502, 14535, 1122, 7741, 273, 501, 18, 4720, 2668, 64, 82, 2187, 374, 16, 963, 13, 309, 7741, 1545, 374, 30, 7741, 1011, 404, 365, 6315, 86, 4385, 273, 501, 63, 14039, 26894, 327, 501, 10531, 14039, 65, 1681, 67, 1897, 273, 562, 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, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 501, 273, 365, 6315, 86, 4385, 309, 963, 411, 374, 30, 468, 2720, 3180, 521, 82, 578, 6431, 16, 600, 335, 580, 502, 14535, 1122, 309, 365, 6315, 86, 4385, 1467, 1648, 404, 30, 468, 348, 5868, 731, 640, 26385, 648, 1815, 501, 422, 1408, 9664, 273, 5378, 10665, 273, 365, 6315, 15031, 18, 18334, 1323, 501, 480, 1548, 82, 6877, 501, 273, 10665, 12, 21, 13, 309, 486, 501, 30, 898, 9664, 18, 6923, 12, 892, 13, 327, 1408, 18, 5701, 12, 28101, 13, 225, 1681, 273, 365, 6315, 86, 4385, 1681, 18, 16508, 12, 20, 16, 576, 13, 365, 6315, 86, 4385, 273, 15777, 1435, 1323, 1053, 30, 2 ]
for i in range(Nlta):
for i in xrange(Nlta):
def classicStaLta(a, Nsta, Nlta): """ Computes the standard STA/LTA from a given imput array a. The length of the STA is given by Nsta in samples, respectively is the length of the LTA given by Nlta in samples. @type a: Numpy ndarray @param a: Seismic Trace @type Nsta: Int @param Nsta: Length of short time average window in samples @type Nlta: Int @param Nlta: Length of long time average window in samples @rtype: Numpy ndarray @return: Charactristic function of classic STA/LTA """ m = len(a) # # compute the short time average (STA) sta = np.zeros(len(a), dtype='float64') pad_sta = np.zeros(Nsta) for i in range(Nsta): # window size to smooth over sta = sta + np.concatenate((pad_sta, a[i:m - Nsta + i] ** 2)) sta = sta / Nsta # # compute the long time average (LTA) lta = np.zeros(len(a), dtype='float64') pad_lta = np.ones(Nlta) # avoid for 0 division 0/1=0 for i in range(Nlta): # window size to smooth over lta = lta + np.concatenate((pad_lta, a[i:m - Nlta + i] ** 2)) lta = lta / Nlta # # pad zeros of length Nlta to avoid overfit and # return STA/LTA ratio sta[0:Nlta] = 0 return sta / lta
ea4c7ece41544c44ddf36d8239db27ef9e2868d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/ea4c7ece41544c44ddf36d8239db27ef9e2868d1/trigger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28937, 510, 69, 48, 2351, 12, 69, 16, 423, 334, 69, 16, 423, 80, 2351, 4672, 3536, 14169, 281, 326, 4529, 2347, 37, 19, 48, 9833, 628, 279, 864, 709, 458, 526, 279, 18, 1021, 769, 434, 326, 2347, 37, 353, 864, 635, 423, 334, 69, 316, 5216, 16, 19629, 353, 326, 769, 434, 326, 511, 9833, 864, 635, 423, 80, 2351, 316, 5216, 18, 225, 632, 723, 279, 30, 6805, 2074, 8304, 632, 891, 279, 30, 3265, 6228, 335, 2677, 632, 723, 423, 334, 69, 30, 3094, 632, 891, 423, 334, 69, 30, 11311, 434, 3025, 813, 8164, 2742, 316, 5216, 632, 723, 423, 80, 2351, 30, 3094, 632, 891, 423, 80, 2351, 30, 11311, 434, 1525, 813, 8164, 2742, 316, 5216, 632, 86, 723, 30, 6805, 2074, 8304, 632, 2463, 30, 3703, 621, 86, 5846, 445, 434, 28937, 2347, 37, 19, 48, 9833, 3536, 312, 273, 562, 12, 69, 13, 468, 468, 3671, 326, 3025, 813, 8164, 261, 882, 37, 13, 384, 69, 273, 1130, 18, 22008, 12, 1897, 12, 69, 3631, 3182, 2218, 5659, 1105, 6134, 4627, 67, 334, 69, 273, 1130, 18, 22008, 12, 50, 334, 69, 13, 364, 277, 316, 1048, 12, 50, 334, 69, 4672, 468, 2742, 963, 358, 11957, 1879, 384, 69, 273, 384, 69, 397, 1130, 18, 16426, 275, 340, 12443, 6982, 67, 334, 69, 16, 279, 63, 77, 30, 81, 300, 423, 334, 69, 397, 277, 65, 2826, 576, 3719, 384, 69, 273, 384, 69, 342, 423, 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, 28937, 510, 69, 48, 2351, 12, 69, 16, 423, 334, 69, 16, 423, 80, 2351, 4672, 3536, 14169, 281, 326, 4529, 2347, 37, 19, 48, 9833, 628, 279, 864, 709, 458, 526, 279, 18, 1021, 769, 434, 326, 2347, 37, 353, 864, 635, 423, 334, 69, 316, 5216, 16, 19629, 353, 326, 769, 434, 326, 511, 9833, 864, 635, 423, 80, 2351, 316, 5216, 18, 225, 632, 723, 279, 30, 6805, 2074, 8304, 632, 891, 279, 30, 3265, 6228, 335, 2677, 632, 723, 423, 334, 69, 30, 3094, 632, 891, 423, 334, 69, 30, 11311, 434, 3025, 813, 8164, 2742, 316, 5216, 632, 723, 423, 80, 2351, 30, 3094, 632, 891, 423, 80, 2351, 30, 11311, 434, 1525, 2 ]
new_interpreter = a if not new_interpreter or new_interpreter[0] != '/' or not args:
new_interpreter = a.encode() if not new_interpreter or not new_interpreter.startswith(b'/') or \ not args:
def main(): global new_interpreter usage = ('usage: %s -i /interpreter file-or-directory ...\n' % sys.argv[0]) try: opts, args = getopt.getopt(sys.argv[1:], 'i:') except getopt.error as msg: err(msg + '\n') err(usage) sys.exit(2) for o, a in opts: if o == '-i': new_interpreter = a if not new_interpreter or new_interpreter[0] != '/' or not args: err('-i option or file-or-directory missing\n') err(usage) sys.exit(2) bad = 0 for arg in args: if os.path.isdir(arg): if recursedown(arg): bad = 1 elif os.path.islink(arg): err(arg + ': will not process symbolic links\n') bad = 1 else: if fix(arg): bad = 1 sys.exit(bad)
5a72a1084c0beb70ce1f8e78b399781f4488d616 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/5a72a1084c0beb70ce1f8e78b399781f4488d616/pathfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 394, 67, 2761, 11599, 4084, 273, 7707, 9167, 30, 738, 87, 300, 77, 342, 2761, 11599, 585, 17, 280, 17, 5149, 1372, 64, 82, 11, 738, 2589, 18, 19485, 63, 20, 5717, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 77, 2497, 13, 1335, 336, 3838, 18, 1636, 487, 1234, 30, 393, 12, 3576, 397, 2337, 82, 6134, 393, 12, 9167, 13, 2589, 18, 8593, 12, 22, 13, 364, 320, 16, 279, 316, 1500, 30, 309, 320, 422, 2400, 77, 4278, 394, 67, 2761, 11599, 273, 279, 18, 3015, 1435, 309, 486, 394, 67, 2761, 11599, 578, 486, 394, 67, 2761, 11599, 18, 17514, 1918, 12, 70, 11, 2473, 13, 578, 521, 486, 833, 30, 393, 2668, 17, 77, 1456, 578, 585, 17, 280, 17, 5149, 3315, 64, 82, 6134, 393, 12, 9167, 13, 2589, 18, 8593, 12, 22, 13, 5570, 273, 374, 364, 1501, 316, 833, 30, 309, 1140, 18, 803, 18, 291, 1214, 12, 3175, 4672, 309, 8112, 730, 995, 12, 3175, 4672, 5570, 273, 404, 1327, 1140, 18, 803, 18, 291, 1232, 12, 3175, 4672, 393, 12, 3175, 397, 4290, 903, 486, 1207, 16754, 4716, 64, 82, 6134, 5570, 273, 404, 469, 30, 309, 2917, 12, 3175, 4672, 5570, 273, 404, 2589, 18, 8593, 12, 8759, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 394, 67, 2761, 11599, 4084, 273, 7707, 9167, 30, 738, 87, 300, 77, 342, 2761, 11599, 585, 17, 280, 17, 5149, 1372, 64, 82, 11, 738, 2589, 18, 19485, 63, 20, 5717, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 77, 2497, 13, 1335, 336, 3838, 18, 1636, 487, 1234, 30, 393, 12, 3576, 397, 2337, 82, 6134, 393, 12, 9167, 13, 2589, 18, 8593, 12, 22, 13, 364, 320, 16, 279, 316, 1500, 30, 309, 320, 422, 2400, 77, 4278, 394, 67, 2761, 11599, 273, 279, 18, 3015, 1435, 309, 486, 394, 67, 2761, 11599, 578, 486, 394, 67, 2761, 11599, 18, 2 ]
other_syms.append(sym)
if not sym.startswith('$') and sym != "'": other_syms.append(sym) if len(my_syms) != 0 or len(other_syms) != 0: assembler.error("incorrect number of symbols, expected %d, got %d" % (check_nsyms, nsyms), source=False)
def main(): parser = OptionParser("usage: %prog [options] src_file [src_file...]") parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, help="Verbose output.") parser.add_option("-l", "--log", dest="logLevel", default=0, help="Print detailed log information.") parser.add_option("-t", "--test", action="store_true", dest="test", default=False, help="Run assembler test code.") (options, args) = parser.parse_args() if len(args) < 1: parser.error("At least one source file must be supplied!") sys.exit(1) sources = [] for arg in args: sources.append(arg) if not os.path.isfile(arg): parser.error("File \"%s\" does not exist" % arg) sys.exit(1) listfile = open(args[0].split('.')[0] + ".lst", 'w') symtabfile = open(args[0].split('.')[0] + ".symtab", 'w') binfile = open(args[0] + ".bin", 'wb') logfile = open(args[0].split('.')[0] + ".log", 'w') context = Context(Architecture.AGC4_B2, listfile, binfile, options.verbose, int(options.logLevel), logfile) assembler = Assembler(context) context.assembler = assembler assembler.info("Simple AGC Assembler, v0.1", source=False) assembler.info("", source=False) for arg in args: assembler.assemble(arg) assembler.info("Resolving symbols...", source=False) assembler.resolve() assembler.info("Writing listing...", source=False) print >>listfile print >>listfile, "Listing" print >>listfile, "-------" for record in assembler.context.records: print >>listfile, record assembler.info("Writing symbol table...", source=False) print >>symtabfile print >>symtabfile, "Symbol Table" print >>symtabfile, "------------" assembler.context.symtab.printTable(symtabfile) assembler.info("%d errors, %d warnings" % (context.errors, context.warnings), source=False) if options.test: # FIXME: Temporary hack # Check generated symbols against the symtab generated by yaYUL. assembler.info("Checking symbol table against yaYUL version...", source=False) from artemis072_symbols import ARTEMIS_SYMBOLS from memory import MemoryType, MemoryMap nsyms = assembler.context.symtab.getNumSymbols() check_nsyms = len(ARTEMIS_SYMBOLS.keys()) assembler.info("Number of symbols: yaYUL=%d pyagc=%d" % (check_nsyms, nsyms), source=False) if nsyms != check_nsyms: assembler.error("incorrect number of symbols, expected %d, got %d" % (check_nsyms, nsyms), source=False) my_syms = [] other_syms = [] common_syms = [] for sym in assembler.context.symtab.keys(): if sym in ARTEMIS_SYMBOLS.keys(): common_syms.append(sym) else: my_syms.append(sym) for sym in ARTEMIS_SYMBOLS.keys(): if sym not in assembler.context.symtab.keys(): other_syms.append(sym) if len(my_syms) > 0: assembler.error("symbols defined that should not be defined: %s" % my_syms, source=False) if len(other_syms) > 0: assembler.error("symbols not defined that should be defined: %s" % other_syms, source=False) errcount = 0 bad_syms = {} for sym in common_syms: entry = assembler.context.symtab.lookup(sym) if entry == None: assembler.error("symbol %-8s not defined" % entry, source=False) pa = entry.value aval = ARTEMIS_SYMBOLS[sym] if ',' in aval: bank = aval.split(',')[0] type = MemoryType.FIXED if bank.startswith('E'): bank = bank[1:] type = MemoryType.ERASABLE bank = int(bank, 8) offset = int(aval.split(',')[1], 8) check_pa = context.memmap.segmentedToPseudo(type, bank, offset, absolute=True) else: check_pa = int(aval, 8) if pa != check_pa: errcount += 1 bad_syms[pa] = (sym, check_pa) if errcount > 0: bad_addrs = bad_syms.keys() bad_addrs.sort() for pa in bad_addrs: sym = bad_syms[pa][0] check_pa = bad_syms[pa][1] assembler.error("symbol %-8s defined as %06o %s, expected %06o %s" % (sym, pa, context.memmap.pseudoToSegmentedString(pa), check_pa, context.memmap.pseudoToSegmentedString(check_pa)), source=False) assembler.error("%d/%d symbols incorrectly defined" % (errcount, len(common_syms)), source=False) # FIXME: End of temporary hack assembler.info("Done.", source=False) print "Done."
359261faaeb7b979df331a39679b40a41f4350ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/359261faaeb7b979df331a39679b40a41f4350ec/agcasm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2082, 273, 18862, 2932, 9167, 30, 738, 14654, 306, 2116, 65, 1705, 67, 768, 306, 4816, 67, 768, 2777, 4279, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 90, 3113, 5238, 11369, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 11369, 3113, 805, 33, 8381, 16, 2809, 1546, 14489, 876, 1199, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 80, 3113, 5238, 1330, 3113, 1570, 1546, 1330, 2355, 3113, 805, 33, 20, 16, 2809, 1546, 5108, 6864, 613, 1779, 1199, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 88, 3113, 5238, 3813, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 3813, 3113, 805, 33, 8381, 16, 2809, 1546, 1997, 20489, 749, 1842, 981, 1199, 13, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 225, 309, 562, 12, 1968, 13, 411, 404, 30, 2082, 18, 1636, 2932, 861, 4520, 1245, 1084, 585, 1297, 506, 4580, 4442, 13, 2589, 18, 8593, 12, 21, 13, 225, 5550, 273, 5378, 364, 1501, 316, 833, 30, 5550, 18, 6923, 12, 3175, 13, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 3175, 4672, 2082, 18, 1636, 2932, 812, 22049, 87, 2412, 1552, 486, 1005, 6, 738, 1501, 13, 2589, 18, 8593, 12, 21, 13, 225, 666, 768, 273, 1696, 12, 1968, 63, 20, 8009, 4939, 2668, 1093, 25146, 20, 65, 397, 3552, 16923, 3113, 296, 91, 6134, 1393, 1010, 378, 768, 273, 1696, 12, 1968, 63, 20, 8009, 4939, 2668, 1093, 25146, 20, 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, 2082, 273, 18862, 2932, 9167, 30, 738, 14654, 306, 2116, 65, 1705, 67, 768, 306, 4816, 67, 768, 2777, 4279, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 90, 3113, 5238, 11369, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 11369, 3113, 805, 33, 8381, 16, 2809, 1546, 14489, 876, 1199, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 80, 3113, 5238, 1330, 3113, 1570, 1546, 1330, 2355, 3113, 805, 33, 20, 16, 2809, 1546, 5108, 6864, 613, 1779, 1199, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 88, 3113, 5238, 3813, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 3813, 3113, 805, 33, 8381, 16, 2809, 1546, 1997, 20489, 749, 1842, 981, 1199, 2 ]
Request: CONVERT_PDF PATH=/home/foo/bar.odt Response: OK 0 /tmp/asdqwe.pdf Request: CONVERT_HTML PATH=/home/foo/bar.docx Response: OK 0 /tmp/sdfwqer Request: TEST Response: ERR -1 Could not reach OpenOffice.org server on port 2002 Please make sure to start oooctl.
Request:: CONVERT_PDF PATH=/home/foo/bar.odt Response:: OK 0 /tmp/asdqwe.pdf Request:: CONVERT_HTML PATH=/home/foo/bar.docx Response:: OK 0 /tmp/sdfwqer Request:: TEST Response:: ERR -1 Could not reach OpenOffice.org server on port 2002 Please make sure to start oooctl.
def handle(self): """The protocol:
8df67efee8dba94929542ef2721280019d775406 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9481/8df67efee8dba94929542ef2721280019d775406/pyunoserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 1986, 1771, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 1986, 1771, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.prop.window, _("Unable to rename file"),
self.prop, _("Unable to rename file"),
def rename(model, path, iter): song = model[path][0] oldname = model[path][1] newname = model[path][2] try: newname = newname.encode(util.fscoding(), "replace") library.rename(song, newname) songref_update_view(song) except: qltk.ErrorMessage( self.prop.window, _("Unable to rename file"), _("Renaming <b>%s</b> to <b>%s</b> failed. " "Possibly the target file already exists, " "or you do not have permission to make the " "new file or remove the old one.") %( util.escape(oldname), util.escape(newname))).run() return True return win.step()
44deb3636adb3eb180d1cc44ce811a1cb782bb80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/44deb3636adb3eb180d1cc44ce811a1cb782bb80/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 12, 2284, 16, 589, 16, 1400, 4672, 17180, 273, 938, 63, 803, 6362, 20, 65, 1592, 529, 273, 938, 63, 803, 6362, 21, 65, 26722, 273, 938, 63, 803, 6362, 22, 65, 775, 30, 26722, 273, 26722, 18, 3015, 12, 1367, 18, 74, 1017, 4751, 9334, 315, 2079, 7923, 5313, 18, 18539, 12, 816, 75, 16, 26722, 13, 17180, 1734, 67, 2725, 67, 1945, 12, 816, 75, 13, 1335, 30, 1043, 5618, 79, 18, 14935, 12, 365, 18, 5986, 16, 389, 2932, 3370, 358, 6472, 585, 6, 3631, 389, 2932, 16290, 7772, 411, 70, 9822, 87, 1757, 70, 34, 358, 411, 70, 9822, 87, 1757, 70, 34, 2535, 18, 315, 315, 1616, 8781, 326, 1018, 585, 1818, 1704, 16, 315, 315, 280, 1846, 741, 486, 1240, 4132, 358, 1221, 326, 315, 315, 2704, 585, 578, 1206, 326, 1592, 1245, 1199, 13, 8975, 1709, 18, 6939, 12, 1673, 529, 3631, 1709, 18, 6939, 12, 2704, 529, 3719, 2934, 2681, 1435, 327, 1053, 327, 5657, 18, 4119, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 12, 2284, 16, 589, 16, 1400, 4672, 17180, 273, 938, 63, 803, 6362, 20, 65, 1592, 529, 273, 938, 63, 803, 6362, 21, 65, 26722, 273, 938, 63, 803, 6362, 22, 65, 775, 30, 26722, 273, 26722, 18, 3015, 12, 1367, 18, 74, 1017, 4751, 9334, 315, 2079, 7923, 5313, 18, 18539, 12, 816, 75, 16, 26722, 13, 17180, 1734, 67, 2725, 67, 1945, 12, 816, 75, 13, 1335, 30, 1043, 5618, 79, 18, 14935, 12, 365, 18, 5986, 16, 389, 2932, 3370, 358, 6472, 585, 6, 3631, 389, 2932, 16290, 7772, 411, 70, 9822, 87, 1757, 70, 34, 358, 411, 70, 9822, 87, 1757, 70, 34, 2535, 18, 315, 315, 1616, 8781, 326, 1018, 585, 1818, 2 ]
GROUP BY account_analytic_line.account_id""",(ids2,))
GROUP BY account_analytic_line.account_id""",(parent_ids,))
def _ca_theorical_calc(self, cr, uid, ids, name, arg, context={}): res = {} res2 = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) # Warning # This computation doesn't take care of pricelist ! # Just consider list_price if ids2: cr.execute("""select account_analytic_line.account_id as account_id, \ COALESCE(sum((account_analytic_line.unit_amount * pt.list_price) \ - (account_analytic_line.unit_amount * pt.list_price \ * hr.factor)),0.0) as somme from account_analytic_line \ left join account_analytic_journal \ on (account_analytic_line.journal_id = account_analytic_journal.id) \ join product_product pp \ on (account_analytic_line.product_id = pp.id) \ join product_template pt \ on (pp.product_tmpl_id = pt.id) \ join account_analytic_account a \ on (a.id=account_analytic_line.account_id) \ join hr_timesheet_invoice_factor hr \ on (hr.id=a.to_invoice) \ where account_analytic_line.account_id =ANY(%s) \ and a.to_invoice IS NOT NULL \ and account_analytic_journal.type in ('purchase','general') GROUP BY account_analytic_line.account_id""",(ids2,)) for account_id, sum in cr.fetchall(): res2[account_id] = round(sum,2) for obj_id in ids: res.setdefault(obj_id, 0.0) res2.setdefault(obj_id, 0.0) for child_id in self.search(cr, uid, [('parent_id', 'child_of', [obj_id])]): if child_id != obj_id: res[obj_id] += res.get(child_id, 0.0) res[obj_id] += res2.get(child_id, 0.0) # sum both result on account_id for id in ids: res[id] = round(res.get(id, 0.0),2) + round(res2.get(id, 0.0),2) return res
3c18c11c83e2549431192a3a0c1f46403db9d628 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8241/3c18c11c83e2549431192a3a0c1f46403db9d628/account_analytic_analysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5353, 67, 5787, 10129, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 400, 22, 273, 2618, 3258, 22, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2938, 67, 350, 2187, 296, 3624, 67, 792, 2187, 3258, 13, 5717, 468, 9728, 468, 1220, 16039, 3302, 1404, 4862, 7671, 434, 846, 335, 5449, 401, 468, 12526, 5260, 666, 67, 8694, 309, 3258, 22, 30, 4422, 18, 8837, 2932, 3660, 4025, 2236, 67, 304, 7834, 335, 67, 1369, 18, 4631, 67, 350, 487, 2236, 67, 350, 16, 521, 7910, 37, 11386, 1441, 12, 1364, 12443, 4631, 67, 304, 7834, 335, 67, 1369, 18, 4873, 67, 8949, 380, 5818, 18, 1098, 67, 8694, 13, 521, 300, 261, 4631, 67, 304, 7834, 335, 67, 1369, 18, 4873, 67, 8949, 380, 5818, 18, 1098, 67, 8694, 521, 380, 15407, 18, 6812, 13, 3631, 20, 18, 20, 13, 487, 4737, 3501, 628, 2236, 67, 304, 7834, 335, 67, 1369, 521, 2002, 1233, 2236, 67, 304, 7834, 335, 67, 22644, 521, 603, 261, 4631, 67, 304, 7834, 335, 67, 1369, 18, 22644, 67, 350, 273, 2236, 67, 304, 7834, 335, 67, 22644, 18, 350, 13, 521, 1233, 3017, 67, 5896, 8228, 521, 603, 261, 4631, 67, 304, 7834, 335, 67, 1369, 18, 5896, 67, 350, 273, 8228, 18, 350, 13, 521, 1233, 3017, 67, 3202, 5818, 521, 603, 261, 11858, 18, 5896, 67, 24717, 67, 350, 273, 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, 5353, 67, 5787, 10129, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 400, 22, 273, 2618, 3258, 22, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 2938, 67, 350, 2187, 296, 3624, 67, 792, 2187, 3258, 13, 5717, 468, 9728, 468, 1220, 16039, 3302, 1404, 4862, 7671, 434, 846, 335, 5449, 401, 468, 12526, 5260, 666, 67, 8694, 309, 3258, 22, 30, 4422, 18, 8837, 2932, 3660, 4025, 2236, 67, 304, 7834, 335, 67, 1369, 18, 4631, 67, 350, 487, 2236, 67, 350, 16, 521, 7910, 37, 11386, 1441, 12, 1364, 12443, 4631, 67, 304, 7834, 335, 67, 1369, 18, 4873, 2 ]
overwrite_articles = True
overwrite_articles = True elif arg.startswith('-help'): wikipedia.output(__doc__, 'utf-8')
def main(): mysite = wikipedia.getSite() sa = [] output_directory = "" save_images = False overwrite_images = False overwrite_articles = False for arg in sys.argv[1:]: if arg.startswith("-lang:"): lang = arg[6:] elif arg.startswith("-file:"): f=open(arg[6:], 'r') R=re.compile(r'.*\[\[([^\]]*)\]\].*') m = False for line in f.readlines(): m=R.match(line) if m: sa.append(string.replace(m.group(1), " ", "_")) else: print "ERROR: Did not understand %s line:\n%s" % ( arg[6:], repr(line)) f.close() elif arg.startswith("-o:"): output_directory = arg[3:] elif arg.startswith("-images"): save_images = True elif arg.startswith("-overwrite:"): if arg[11] == "I": overwrite_images = True elif arg[11] == "A": overwrite_articles = True elif arg[11] == "B": overwrite_images = True overwrite_articles = True else: sa.append(arg.replace(" ", "_")) headers = {"Content-type": "application/x-www-form-urlencoded", "User-agent": "RobHooftWikiRobot/1.0"} print "opening connection to", mysite.hostname(), conn = httplib.HTTPConnection(mysite.hostname()) print " done" R = re.compile('.*/wiki/(.*)') data = "" for article in sa: filename = article.replace("/", "_") if os.path.isfile(output_directory + filename + ".txt") and overwrite_articles == False: print "skipping " + article continue data = "" ua = article while len(data) < 2: url = '/wiki/'+ ua conn.request("GET", url, "", headers) response = conn.getresponse() data = response.read() if len(data) < 2: print ua + " failed. reading", result = R.match(response.getheader("Location", )) ua = result.group(1) print ua data = extractArticle(data) f = open (output_directory + filename + ".txt", 'w') f.write (data['article'] + '\n' + data['footer']) f.close() print "saved " + article if save_images: images = extractImages(data['article']) for i in images: if overwrite_images == False and os.path.isfile(output_directory + i['image']): print "skipping existing " + i['image'] continue print 'downloading ' + i['image'], uo = wikipedia.MyURLopener() file = uo.open( "http://upload.wikimedia.org/wikipedia/" +mysite.lang + '/' + i['path'] + i['image']) content = file.read() if (len(content) < 500): uo.close() print "downloading from commons", uo = wikipedia.MyURLopener() file = uo.open( "http://commons.wikimedia.org/upload/" + i['path'] + i['image']) #print "http://commons.wikimedia.org/upload/", i['path'] , i['image'], file content = file.read() f = open(output_directory + i['image'], "wb") f.write(content) f.close() print "\t\t", (len(content)/1024), "KB done" conn.close()
da59c88d5c69b46f8c8167ce14ea49c5600f1003 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/da59c88d5c69b46f8c8167ce14ea49c5600f1003/saveHTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 7864, 273, 5378, 876, 67, 5149, 273, 1408, 1923, 67, 7369, 273, 1083, 6156, 67, 7369, 273, 1083, 6156, 67, 16462, 273, 1083, 225, 364, 1501, 316, 2589, 18, 19485, 63, 21, 30, 14542, 309, 1501, 18, 17514, 1918, 2932, 17, 4936, 2773, 4672, 3303, 273, 1501, 63, 26, 26894, 1327, 1501, 18, 17514, 1918, 2932, 17, 768, 2773, 4672, 284, 33, 3190, 12, 3175, 63, 26, 30, 6487, 296, 86, 6134, 534, 33, 266, 18, 11100, 12, 86, 11, 4509, 64, 7438, 63, 19042, 65, 5772, 5153, 13944, 8009, 4035, 13, 312, 273, 1083, 364, 980, 316, 284, 18, 896, 3548, 13332, 312, 33, 54, 18, 1916, 12, 1369, 13, 309, 312, 30, 7864, 18, 6923, 12, 1080, 18, 2079, 12, 81, 18, 1655, 12, 21, 3631, 315, 3104, 8802, 3719, 469, 30, 1172, 315, 3589, 30, 21148, 486, 22413, 738, 87, 980, 5581, 82, 9, 87, 6, 738, 261, 1501, 63, 26, 30, 6487, 8480, 12, 1369, 3719, 284, 18, 4412, 1435, 1327, 1501, 18, 17514, 1918, 2932, 17, 83, 2773, 4672, 876, 67, 5149, 273, 1501, 63, 23, 26894, 1327, 1501, 18, 17514, 1918, 2932, 17, 7369, 6, 4672, 1923, 67, 7369, 273, 1053, 1327, 1501, 18, 17514, 1918, 2932, 17, 19274, 2773, 4672, 309, 1501, 63, 2499, 65, 422, 315, 45, 6877, 6156, 67, 7369, 273, 1053, 1327, 1501, 63, 2499, 65, 422, 315, 37, 6877, 6156, 67, 16462, 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, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 7864, 273, 5378, 876, 67, 5149, 273, 1408, 1923, 67, 7369, 273, 1083, 6156, 67, 7369, 273, 1083, 6156, 67, 16462, 273, 1083, 225, 364, 1501, 316, 2589, 18, 19485, 63, 21, 30, 14542, 309, 1501, 18, 17514, 1918, 2932, 17, 4936, 2773, 4672, 3303, 273, 1501, 63, 26, 26894, 1327, 1501, 18, 17514, 1918, 2932, 17, 768, 2773, 4672, 284, 33, 3190, 12, 3175, 63, 26, 30, 6487, 296, 86, 6134, 534, 33, 266, 18, 11100, 12, 86, 11, 4509, 64, 7438, 63, 19042, 65, 5772, 5153, 13944, 8009, 4035, 13, 312, 273, 1083, 364, 980, 316, 284, 18, 896, 3548, 13332, 312, 33, 54, 18, 2 ]
RETURN trigger AS
RETURNS trigger AS
def ddl_prog(db): safe_query(db, "CREATE LANGUAGE 'plpgsql'") cursor = db.cursor() cursor.execute(""" CREATE OR REPLACE FUNCTION share_update() RETURNS trigger AS $$BEGIN IF NEW.tree_id IS NULL THEN RAISE EXCEPTION 'tree_id cannot be NULL (share_id=%)', NEW.share_id; END IF; IF NEW.state != OLD.state THEN NEW.last_state_change = 'now'; END IF; RETURN NEW; END;$$ LANGUAGE 'plpgsql' VOLATILE COST 100; CREATE TRIGGER share_update_trigger BEFORE UPDATE ON shares FOR EACH ROW EXECUTE PROCEDURE share_update(); CREATE OR REPLACE FUNCTION share_insert() RETURN trigger AS $$BEGIN INSERT INTO trees (share_id) VALUES (NEW.share_id) RETURNING tree_id INTO STRICT NEW.tree_id; UPDATE shares SET tree_id=NEW.tree_id WHERE share_id=NEW.share_id; RETURN NEW; END;$$ LANGUAGE 'plpgsql' VOLATILE COST 100; CREATE TRIGGER share_insert_trigger AFTER INSERT ON shares FOR EACH ROW EXECUTE PROCEDURE share_insert(); """)
76118157ac67b53e83bb18c194150cf85a11aa4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4762/76118157ac67b53e83bb18c194150cf85a11aa4e/dbinit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24183, 67, 14654, 12, 1966, 4672, 4183, 67, 2271, 12, 1966, 16, 315, 9344, 24748, 296, 412, 84, 30175, 4970, 13, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2932, 3660, 13278, 4869, 23679, 13690, 7433, 67, 2725, 1435, 10366, 1099, 3156, 3080, 5355, 5366, 16061, 11083, 12887, 18, 3413, 67, 350, 4437, 3206, 27124, 534, 18194, 1090, 23136, 296, 3413, 67, 350, 2780, 506, 3206, 261, 14419, 67, 350, 5095, 13, 2187, 12887, 18, 14419, 67, 350, 31, 7273, 11083, 31, 11083, 12887, 18, 2019, 480, 30432, 18, 2019, 27124, 12887, 18, 2722, 67, 2019, 67, 3427, 273, 296, 3338, 13506, 7273, 11083, 31, 14780, 12887, 31, 7273, 31, 16547, 24748, 296, 412, 84, 30175, 11, 776, 1741, 27405, 385, 4005, 2130, 31, 13278, 22800, 27399, 7433, 67, 2725, 67, 10668, 21203, 11028, 6229, 24123, 12108, 512, 18133, 29589, 24508, 9099, 4629, 23552, 4830, 7433, 67, 2725, 5621, 13278, 4869, 23679, 13690, 7433, 67, 6387, 1435, 10366, 1099, 3156, 3080, 5355, 5366, 16061, 14834, 12421, 11491, 261, 14419, 67, 350, 13, 13477, 261, 12917, 18, 14419, 67, 350, 13, 14780, 1360, 2151, 67, 350, 12421, 2347, 2259, 1268, 12887, 18, 3413, 67, 350, 31, 11028, 24123, 7855, 2151, 67, 350, 33, 12917, 18, 3413, 67, 350, 4852, 7433, 67, 350, 33, 12917, 18, 14419, 67, 350, 31, 14780, 12887, 31, 7273, 31, 16547, 24748, 296, 412, 84, 30175, 11, 776, 1741, 27405, 385, 4005, 2130, 31, 13278, 22800, 27399, 7433, 67, 6387, 67, 10668, 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, 24183, 67, 14654, 12, 1966, 4672, 4183, 67, 2271, 12, 1966, 16, 315, 9344, 24748, 296, 412, 84, 30175, 4970, 13, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2932, 3660, 13278, 4869, 23679, 13690, 7433, 67, 2725, 1435, 10366, 1099, 3156, 3080, 5355, 5366, 16061, 11083, 12887, 18, 3413, 67, 350, 4437, 3206, 27124, 534, 18194, 1090, 23136, 296, 3413, 67, 350, 2780, 506, 3206, 261, 14419, 67, 350, 5095, 13, 2187, 12887, 18, 14419, 67, 350, 31, 7273, 11083, 31, 11083, 12887, 18, 2019, 480, 30432, 18, 2019, 27124, 12887, 18, 2722, 67, 2019, 67, 3427, 273, 296, 3338, 13506, 7273, 11083, 31, 14780, 12887, 31, 7273, 31, 16547, 24748, 296, 412, 84, 30175, 11, 2 ]
result = self.__getSoftwareComponents() if not result['OK']: return result softDict = result['Value'] result = self.export_getSetupComponents() if not result['OK']: return result setupDict = result['Value'] result = self.export_getInstalledComponents() if not result['OK']: return result installedDict = result['Value'] result = self.__getRunitComponentStatus([]) if not result['OK']: return result runitDict = result['Value'] resultDict = {'Services':{},'Agents':{}} for compType in ['Services','Agents']: if softDict.has_key('Services'): for system in softDict[compType]: resultDict[compType][system] = {} for component in softDict[compType][system]: resultDict[compType][system][component] = {} resultDict[compType][system][component]['Setup'] = False resultDict[compType][system][component]['Installed'] = False resultDict[compType][system][component]['RunitStatus'] = 'Unknown' resultDict[compType][system][component]['Timeup'] = 0 resultDict[compType][system][component]['PID'] = 0 try: if component in setupDict[compType][system]: resultDict[compType][system][component]['Setup'] = True except Exception,x: pass try: if component in installedDict[compType][system]: resultDict[compType][system][component]['Installed'] = True except Exception,x: pass try: compDir = system+'_'+component if runitDict.has_key(compDir): resultDict[compType][system][component]['RunitStatus'] = runitDict[compDir]['RunitStatus'] resultDict[compType][system][component]['Timeup'] = runitDict[compDir]['Timeup'] resultDict[compType][system][component]['PID'] = runitDict[compDir]['PID'] except Exception,x: pass return S_OK(resultDict) def __getRunitComponentStatus(self,componentList):
return InstallTools.getOverallStatus( gConfig.getValue( '/DIRAC/Extensions', [] ) ) types_getStartupComponentStatus = [ ListType ] def export_getStartupComponentStatus( self, componentTupleList ):
def export_getOverallStatus(self): """ Get the complete status information for the components in the given list """ result = self.__getSoftwareComponents() if not result['OK']: return result softDict = result['Value'] result = self.export_getSetupComponents() if not result['OK']: return result setupDict = result['Value'] result = self.export_getInstalledComponents() if not result['OK']: return result installedDict = result['Value'] result = self.__getRunitComponentStatus([]) if not result['OK']: return result runitDict = result['Value'] # Collect the info now resultDict = {'Services':{},'Agents':{}} for compType in ['Services','Agents']: if softDict.has_key('Services'): for system in softDict[compType]: resultDict[compType][system] = {} for component in softDict[compType][system]: resultDict[compType][system][component] = {} resultDict[compType][system][component]['Setup'] = False resultDict[compType][system][component]['Installed'] = False resultDict[compType][system][component]['RunitStatus'] = 'Unknown' resultDict[compType][system][component]['Timeup'] = 0 resultDict[compType][system][component]['PID'] = 0 try: if component in setupDict[compType][system]: resultDict[compType][system][component]['Setup'] = True except Exception,x: #print str(x) pass try: if component in installedDict[compType][system]: resultDict[compType][system][component]['Installed'] = True except Exception,x: #print str(x) pass try: compDir = system+'_'+component if runitDict.has_key(compDir): resultDict[compType][system][component]['RunitStatus'] = runitDict[compDir]['RunitStatus'] resultDict[compType][system][component]['Timeup'] = runitDict[compDir]['Timeup'] resultDict[compType][system][component]['PID'] = runitDict[compDir]['PID'] except Exception,x: #print str(x) pass return S_OK(resultDict)
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, 588, 4851, 454, 1482, 12, 2890, 4672, 3536, 225, 968, 326, 3912, 1267, 1779, 364, 326, 4085, 316, 326, 864, 666, 3536, 563, 273, 365, 16186, 588, 21742, 7171, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 8971, 5014, 273, 563, 3292, 620, 3546, 225, 563, 273, 365, 18, 6530, 67, 588, 7365, 7171, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 3875, 5014, 273, 563, 3292, 620, 3546, 225, 563, 273, 365, 18, 6530, 67, 588, 16747, 7171, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 5876, 5014, 273, 563, 3292, 620, 3546, 225, 563, 273, 365, 16186, 588, 1997, 305, 1841, 1482, 3816, 5717, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 1086, 305, 5014, 273, 563, 3292, 620, 3546, 468, 9302, 326, 1123, 2037, 563, 5014, 273, 13666, 5676, 4278, 2916, 11189, 23400, 4278, 2916, 97, 364, 1161, 559, 316, 10228, 5676, 17023, 23400, 3546, 30, 309, 8971, 5014, 18, 5332, 67, 856, 2668, 5676, 11, 4672, 364, 2619, 316, 8971, 5014, 63, 2919, 559, 14542, 563, 5014, 63, 2919, 559, 6362, 4299, 65, 273, 2618, 364, 1794, 316, 8971, 5014, 63, 2919, 559, 6362, 4299, 14542, 563, 5014, 63, 2919, 559, 6362, 4299, 6362, 4652, 65, 273, 2618, 563, 5014, 63, 2919, 559, 6362, 4299, 6362, 4652, 23962, 7365, 3546, 273, 1083, 563, 5014, 63, 2919, 559, 6362, 4299, 6362, 4652, 23962, 16747, 3546, 273, 1083, 563, 5014, 63, 2919, 559, 6362, 4299, 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, 3359, 67, 588, 4851, 454, 1482, 12, 2890, 4672, 3536, 225, 968, 326, 3912, 1267, 1779, 364, 326, 4085, 316, 326, 864, 666, 3536, 563, 273, 365, 16186, 588, 21742, 7171, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 8971, 5014, 273, 563, 3292, 620, 3546, 225, 563, 273, 365, 18, 6530, 67, 588, 7365, 7171, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 3875, 5014, 273, 563, 3292, 620, 3546, 225, 563, 273, 365, 18, 6530, 67, 588, 16747, 7171, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 5876, 5014, 273, 563, 3292, 620, 3546, 225, 563, 273, 365, 16186, 588, 1997, 305, 1841, 1482, 3816, 5717, 309, 486, 563, 3292, 2 ]
if i in (('Depends', 'Provides', 'Suggests', 'Recomends')):
if i in (('Depends', 'Provides', 'Suggests', 'Recommends')):
def process_package(in_entry, vars): e = entry() for i in in_entry.iterkeys(): if i in (('Depends', 'Provides', 'Suggests', 'Recomends')): process_depends(i, e, in_entry, vars) elif i == 'Description': process_description(e, in_entry, vars) elif i[:2] == 'X-': pass else: e[i] = substitute(in_entry[i], vars) return e
48840e512832ebf4e8b3b50895945ac4ecdb713b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5794/48840e512832ebf4e8b3b50895945ac4ecdb713b/gencontrol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 5610, 12, 267, 67, 4099, 16, 4153, 4672, 425, 273, 1241, 1435, 364, 277, 316, 316, 67, 4099, 18, 2165, 2452, 13332, 309, 277, 316, 261, 2668, 4584, 87, 2187, 296, 17727, 2187, 296, 55, 8679, 87, 2187, 296, 17786, 5839, 26112, 30, 1207, 67, 27360, 12, 77, 16, 425, 16, 316, 67, 4099, 16, 4153, 13, 1327, 277, 422, 296, 3291, 4278, 1207, 67, 3384, 12, 73, 16, 316, 67, 4099, 16, 4153, 13, 1327, 277, 10531, 22, 65, 422, 296, 60, 17, 4278, 1342, 469, 30, 425, 63, 77, 65, 273, 14811, 12, 267, 67, 4099, 63, 77, 6487, 4153, 13, 327, 425, 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, 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 67, 5610, 12, 267, 67, 4099, 16, 4153, 4672, 425, 273, 1241, 1435, 364, 277, 316, 316, 67, 4099, 18, 2165, 2452, 13332, 309, 277, 316, 261, 2668, 4584, 87, 2187, 296, 17727, 2187, 296, 55, 8679, 87, 2187, 296, 17786, 5839, 26112, 30, 1207, 67, 27360, 12, 77, 16, 425, 16, 316, 67, 4099, 16, 4153, 13, 1327, 277, 422, 296, 3291, 4278, 1207, 67, 3384, 12, 73, 16, 316, 67, 4099, 16, 4153, 13, 1327, 277, 10531, 22, 65, 422, 296, 60, 17, 4278, 1342, 469, 30, 425, 63, 77, 65, 273, 14811, 12, 267, 67, 4099, 63, 77, 6487, 4153, 13, 327, 425, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def test_read_and_write_file(self): fs = FileSystem() text_path = None binary_path = None
def write_text_file(self, path, contents): """Write the contents to the file at the given location.
def test_read_and_write_file(self): fs = FileSystem() text_path = None binary_path = None
efac38e57f6fdb2acd345989c6315375837143d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/efac38e57f6fdb2acd345989c6315375837143d5/filesystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 67, 464, 67, 2626, 67, 768, 12, 2890, 4672, 2662, 273, 10931, 1435, 977, 67, 803, 273, 599, 3112, 67, 803, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 67, 464, 67, 2626, 67, 768, 12, 2890, 4672, 2662, 273, 10931, 1435, 977, 67, 803, 273, 599, 3112, 67, 803, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
aParameterList.append( '0' ) self.VariableReferenceList.append( aParameterList ) newName.append( aParameterList[0] + '.Value' ) aASTNode.setName( newName[0] ) return aASTNode def convertKineticLaw( self, aFormula ): aASTRootNode = parseFormula( aFormula )
aCompartmentList.append( 'Variable:' + self.Model.getPath( aName ) + ':SIZE' ) aCompartmentList.append( '0' ) self.VariableReferenceList.append( aCompartmentList ) newName.append( aCompartmentList[0] + '.Value' ) anASTNode.setName( newName[0] ) return anASTNode return anASTNode def convertKineticLawFormula( self, aFormula ): aASTRootNode = libsbml.parseFormula( aFormula )
def __convertVariableName( self, aASTNode ):
5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6283, 21519, 12, 365, 16, 279, 9053, 907, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6283, 21519, 12, 365, 16, 279, 9053, 907, 262, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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._mode = mode if bufsize <= 0: if bufsize == 0: bufsize = 1 else: bufsize = 8192 self._rbufsize = bufsize
self._mode = mode if bufsize < 0: bufsize = self.default_bufsize if bufsize == 0: self._rbufsize = 1 elif bufsize == 1: self._rbufsize = self.default_bufsize else: self._rbufsize = bufsize
def __init__(self, sock, mode='rb', bufsize=-1): self._sock = sock self._mode = mode if bufsize <= 0: if bufsize == 0: bufsize = 1 # Unbuffered mode else: bufsize = 8192 self._rbufsize = bufsize self._wbufsize = bufsize self._rbuf = [ ] self._wbuf = [ ]
443fec3dd9c1a2c60b538af0504d4926e633b9b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/443fec3dd9c1a2c60b538af0504d4926e633b9b4/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 1965, 2218, 6731, 2187, 1681, 1467, 29711, 21, 4672, 365, 6315, 15031, 273, 7313, 365, 6315, 3188, 273, 1965, 309, 1681, 1467, 1648, 374, 30, 309, 1681, 1467, 422, 374, 30, 1681, 1467, 273, 404, 468, 1351, 26385, 1965, 469, 30, 1681, 1467, 273, 26730, 365, 6315, 86, 4385, 1467, 273, 1681, 1467, 365, 6315, 91, 4385, 1467, 273, 1681, 1467, 365, 6315, 86, 4385, 273, 306, 308, 365, 6315, 91, 4385, 273, 306, 308, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 1965, 2218, 6731, 2187, 1681, 1467, 29711, 21, 4672, 365, 6315, 15031, 273, 7313, 365, 6315, 3188, 273, 1965, 309, 1681, 1467, 1648, 374, 30, 309, 1681, 1467, 422, 374, 30, 1681, 1467, 273, 404, 468, 1351, 26385, 1965, 469, 30, 1681, 1467, 273, 26730, 365, 6315, 86, 4385, 1467, 273, 1681, 1467, 365, 6315, 91, 4385, 1467, 273, 1681, 1467, 365, 6315, 86, 4385, 273, 306, 308, 365, 6315, 91, 4385, 273, 306, 308, 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 ]
self.gridlayout9.addWidget(self.animation_speed_slider,1,1,1,3) spacerItem9 = QtGui.QSpacerItem(27,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.gridlayout9.addItem(spacerItem9,1,4,1,1)
self.gridlayout7.addWidget(self.animation_speed_slider,1,1,1,3) spacerItem10 = QtGui.QSpacerItem(27,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.gridlayout7.addItem(spacerItem10,1,4,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 12, 20, 16, 20, 16, 4848, 29, 16, 1105, 22, 2934, 1467, 1435, 2934, 17336, 774, 12, 1299, 1386, 2556, 6353, 18, 15903, 1225, 7002, 1435, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 12, 20, 16, 20, 16, 4848, 29, 16, 1105, 22, 2934, 1467, 1435, 2934, 17336, 774, 12, 1299, 1386, 2556, 6353, 18, 15903, 1225, 7002, 1435, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""
"""
def getTotalScoreForStudent(student): """Compute the total score for a student.
d0d1e12979105f87b235bea82e0c02705801168a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/d0d1e12979105f87b235bea82e0c02705801168a/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12831, 7295, 1290, 19943, 319, 12, 26240, 4672, 3536, 7018, 326, 2078, 4462, 364, 279, 18110, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12831, 7295, 1290, 19943, 319, 12, 26240, 4672, 3536, 7018, 326, 2078, 4462, 364, 279, 18110, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if imm > 2^8 or imm < 0:
if imm > 2**8 or imm < 0:
def parse_trap(instruc = "", word_buf = ""): if instruc == "" or word_buf == "": print "ERROR: someone accidentally the code in parse_trap" return "-1" instruc = sanitize(instruc) imm = instruc[1] imm = int(imm) if imm > 2^8 or imm < 0: print "ERROR: Immediate value " + str(imm) +" is out of range." print "IMM in TRAP UIMM must be greater than 0 and less than 2^8" return "-1" word_buf += "0000" word_buf += int2bin(imm, 8) return word_buf
e0f7f04f2f4f997485454a53ab24cb6926b906bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/e0f7f04f2f4f997485454a53ab24cb6926b906bd/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 27170, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230, 326, 981, 316, 1109, 67, 27170, 6, 327, 3701, 21, 6, 225, 16170, 5286, 273, 8881, 12, 267, 701, 5286, 13, 225, 709, 81, 273, 16170, 5286, 63, 21, 65, 709, 81, 273, 509, 12, 381, 81, 13, 309, 709, 81, 405, 576, 636, 28, 578, 709, 81, 411, 374, 30, 1172, 315, 3589, 30, 2221, 6785, 460, 315, 397, 609, 12, 381, 81, 13, 397, 6, 353, 596, 434, 1048, 1199, 1172, 315, 3445, 49, 316, 4235, 2203, 587, 3445, 49, 1297, 506, 6802, 2353, 374, 471, 5242, 2353, 576, 66, 28, 6, 327, 3701, 21, 6, 225, 2076, 67, 4385, 1011, 315, 2787, 6, 2076, 67, 4385, 1011, 509, 22, 4757, 12, 381, 81, 16, 1725, 13, 225, 327, 2076, 67, 4385, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 27170, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230, 326, 981, 316, 1109, 67, 27170, 6, 327, 3701, 21, 6, 225, 16170, 5286, 273, 8881, 12, 267, 701, 5286, 13, 225, 709, 81, 273, 16170, 5286, 63, 21, 65, 709, 81, 273, 509, 12, 381, 81, 13, 309, 709, 81, 405, 576, 636, 28, 578, 709, 81, 411, 374, 30, 1172, 315, 3589, 30, 2221, 6785, 460, 315, 397, 609, 12, 381, 81, 13, 397, 6, 353, 596, 434, 1048, 1199, 1172, 315, 3445, 49, 316, 4235, 2203, 587, 3445, 49, 1297, 506, 2 ]
def testErrnoOnClose(self): f = self.f os.close(f.fileno()) self.f = None try: f.close() except IOError as e: self.assertEqual(e.errno, errno.EBADF) else: self.fail("Should have raised IOError")
def ClosedFD(func): @wraps(func) def wrapper(self): f = self.f os.close(f.fileno()) try: func(self, f) finally: try: self.f.close() except IOError: pass return wrapper def ClosedFDRaises(func): @wraps(func) def wrapper(self): f = self.f os.close(f.fileno()) try: func(self, f) except IOError as e: self.assertEqual(e.errno, errno.EBADF) else: self.fail("Should have raised IOError") finally: try: self.f.close() except IOError: pass return wrapper @ClosedFDRaises def testErrnoOnClose(self, f): f.close() @ClosedFDRaises def testErrnoOnClosedWrite(self, f): f.write('a') @ClosedFDRaises def testErrnoOnClosedSeek(self, f): f.seek(0) @ClosedFDRaises def testErrnoOnClosedTell(self, f): f.tell() @ClosedFDRaises def testErrnoOnClosedTruncate(self, f): f.truncate(0) @ClosedFD def testErrnoOnClosedSeekable(self, f): f.seekable() @ClosedFD def testErrnoOnClosedReadable(self, f): f.readable() @ClosedFD def testErrnoOnClosedWritable(self, f): f.writable() @ClosedFD def testErrnoOnClosedFileno(self, f): f.fileno() @ClosedFD def testErrnoOnClosedIsatty(self, f): self.assertEqual(f.isatty(), False) def ReopenForRead(self): try: self.f.close() except IOError: pass self.f = _FileIO(TESTFN, 'r') os.close(self.f.fileno()) return self.f @ClosedFDRaises def testErrnoOnClosedRead(self, f): f = self.ReopenForRead() f.read(1) @ClosedFDRaises def testErrnoOnClosedReadall(self, f): f = self.ReopenForRead() f.readall() @ClosedFDRaises def testErrnoOnClosedReadinto(self, f): f = self.ReopenForRead() a = array('b', b'x'*10) f.readinto(a)
def testErrnoOnClose(self): # Test that the IOError's `errno` attribute is correctly set when # close() fails. Here we first close the file descriptor ourselves so # that close() fails with EBADF ('Bad file descriptor'). f = self.f os.close(f.fileno()) self.f = None try: f.close() except IOError as e: self.assertEqual(e.errno, errno.EBADF) else: self.fail("Should have raised IOError")
b3e58e1912db99a277de305ee178cb84c1d0b052 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/b3e58e1912db99a277de305ee178cb84c1d0b052/test_fileio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2524, 2135, 1398, 4605, 12, 2890, 4672, 468, 7766, 716, 326, 8340, 1807, 1375, 19088, 68, 1566, 353, 8783, 444, 1347, 468, 1746, 1435, 6684, 18, 13743, 732, 1122, 1746, 326, 585, 4950, 19801, 1427, 468, 716, 1746, 1435, 6684, 598, 512, 16234, 42, 7707, 6434, 585, 4950, 16063, 284, 273, 365, 18, 74, 1140, 18, 4412, 12, 74, 18, 7540, 5764, 10756, 365, 18, 74, 273, 599, 775, 30, 284, 18, 4412, 1435, 1335, 8340, 487, 425, 30, 365, 18, 11231, 5812, 12, 73, 18, 19088, 16, 8402, 18, 41, 16234, 42, 13, 469, 30, 365, 18, 6870, 2932, 14309, 1240, 11531, 8340, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2524, 2135, 1398, 4605, 12, 2890, 4672, 468, 7766, 716, 326, 8340, 1807, 1375, 19088, 68, 1566, 353, 8783, 444, 1347, 468, 1746, 1435, 6684, 18, 13743, 732, 1122, 1746, 326, 585, 4950, 19801, 1427, 468, 716, 1746, 1435, 6684, 598, 512, 16234, 42, 7707, 6434, 585, 4950, 16063, 284, 273, 365, 18, 74, 1140, 18, 4412, 12, 74, 18, 7540, 5764, 10756, 365, 18, 74, 273, 599, 775, 30, 284, 18, 4412, 1435, 1335, 8340, 487, 425, 30, 365, 18, 11231, 5812, 12, 73, 18, 19088, 16, 8402, 18, 41, 16234, 42, 13, 469, 30, 365, 18, 6870, 2932, 14309, 1240, 11531, 8340, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
q_list.append(q_param)
q_list.append(q_param.strip().replace(':', '\:'))
def run_solr_query(param = {}, rows=100, page=1, sort=None, spellcheck_count=None): if spellcheck_count == None: spellcheck_count = default_spellcheck_count q_list = [] if 'q' in param: q_param = param['q'].strip() else: q_param = None offset = rows * (page - 1) use_dismax = False if q_param: if q_param == '*:*': q_list.append(q_param) elif re_field.search(q_param): q_list.extend('%s:(%s)' % i for i in parse_query_fields(q_param)) else: isbn = read_isbn(q_param) if isbn: q_list.append('isbn:(%s)' % isbn) else: q_list.append(q_param) use_dismax = True else: if 'author' in param: v = param['author'].strip() m = re_author_key.search(v) if m: # FIXME: 'OL123A OR OL234A' q_list.append('author_key:(' + m.group(1) + ')') else: q_list.append('(author_name:(' + v + ') OR author_alternative_name:(' + v + '))') check_params = ['title', 'publisher', 'isbn', 'oclc', 'lccn', 'contribtor', 'subject', 'place', 'person', 'time'] q_list += ['%s:(%s)' % (k, param[k]) for k in check_params if k in param] if use_dismax: q = web.urlquote(' '.join(q_list)) solr_select = solr_select_url + "?version=2.2&defType=dismax&q.op=AND&q=%s&qf=text+title^5+author_name^5&bf=sqrt(edition_count)^10&start=%d&rows=%d&fl=key,author_name,author_key,title,subtitle,edition_count,ia,has_fulltext,first_publish_year,cover_edition_key&qt=standard&wt=standard" % (q, offset, rows) else: q = web.urlquote(' '.join(q_list + ['_val_:"sqrt(edition_count)"^10'])) solr_select = solr_select_url + "?version=2.2&q.op=AND&q=%s&start=%d&rows=%d&fl=key,author_name,author_key,title,subtitle,edition_count,ia,has_fulltext,first_publish_year,cover_edition_key&qt=standard&wt=standard" % (q, offset, rows) solr_select += '&spellcheck=true&spellcheck.count=%d' % spellcheck_count solr_select += "&facet=true&" + '&'.join("facet.field=" + f for f in facet_fields) k = 'has_fulltext' if k in param: v = param[k].lower() if v not in ('true', 'false'): del param[k] param[k] == v solr_select += '&fq=%s:%s' % (k, v) for k in facet_list_fields: if k == 'author_facet': k = 'author_key' if k not in param: continue v = param[k] solr_select += ''.join('&fq=%s:"%s"' % (k, url_quote(l)) for l in v if l) if sort: solr_select += "&sort=" + url_quote(sort) reply = urllib.urlopen(solr_select).read() return (reply, solr_select, q_list)
59e19b0fb9aa480b42f7117aac718d66ec4307e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/59e19b0fb9aa480b42f7117aac718d66ec4307e7/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 22495, 67, 2271, 12, 891, 273, 10615, 2595, 33, 6625, 16, 1363, 33, 21, 16, 1524, 33, 7036, 16, 22377, 1893, 67, 1883, 33, 7036, 4672, 309, 22377, 1893, 67, 1883, 422, 599, 30, 22377, 1893, 67, 1883, 273, 805, 67, 1752, 1165, 1893, 67, 1883, 1043, 67, 1098, 273, 5378, 309, 296, 85, 11, 316, 579, 30, 1043, 67, 891, 273, 579, 3292, 85, 29489, 6406, 1435, 469, 30, 1043, 67, 891, 273, 599, 1384, 273, 2595, 380, 261, 2433, 300, 404, 13, 999, 67, 2251, 1896, 273, 1083, 309, 1043, 67, 891, 30, 309, 1043, 67, 891, 422, 14609, 30, 4035, 30, 1043, 67, 1098, 18, 6923, 12, 85, 67, 891, 18, 6406, 7675, 2079, 2668, 30, 2187, 2337, 2497, 3719, 1327, 283, 67, 1518, 18, 3072, 12, 85, 67, 891, 4672, 1043, 67, 1098, 18, 14313, 29909, 87, 30, 9275, 87, 2506, 738, 277, 364, 277, 316, 1109, 67, 2271, 67, 2821, 12, 85, 67, 891, 3719, 469, 30, 24205, 273, 855, 67, 291, 13392, 12, 85, 67, 891, 13, 309, 24205, 30, 1043, 67, 1098, 18, 6923, 2668, 291, 13392, 30, 9275, 87, 2506, 738, 24205, 13, 469, 30, 1043, 67, 1098, 18, 6923, 12, 85, 67, 891, 18, 6406, 7675, 2079, 2668, 30, 2187, 2337, 2497, 3719, 999, 67, 2251, 1896, 273, 1053, 469, 30, 309, 296, 4161, 11, 316, 579, 30, 331, 273, 579, 3292, 4161, 29489, 6406, 1435, 312, 273, 283, 67, 4161, 67, 856, 18, 3072, 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, 1086, 67, 22495, 67, 2271, 12, 891, 273, 10615, 2595, 33, 6625, 16, 1363, 33, 21, 16, 1524, 33, 7036, 16, 22377, 1893, 67, 1883, 33, 7036, 4672, 309, 22377, 1893, 67, 1883, 422, 599, 30, 22377, 1893, 67, 1883, 273, 805, 67, 1752, 1165, 1893, 67, 1883, 1043, 67, 1098, 273, 5378, 309, 296, 85, 11, 316, 579, 30, 1043, 67, 891, 273, 579, 3292, 85, 29489, 6406, 1435, 469, 30, 1043, 67, 891, 273, 599, 1384, 273, 2595, 380, 261, 2433, 300, 404, 13, 999, 67, 2251, 1896, 273, 1083, 309, 1043, 67, 891, 30, 309, 1043, 67, 891, 422, 14609, 30, 4035, 30, 1043, 67, 1098, 18, 6923, 12, 85, 67, 891, 18, 6406, 7675, 2 ]
number = int(match[2:])
number = int(match[1:])
def _tickethref_formatter(self, match, fullmatch): number = int(match[2:]) return '<a href="%s">#%d</a>' % (href.ticket(number), number)
56291aa5b54197417d5969320974ec53f3d8f998 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/56291aa5b54197417d5969320974ec53f3d8f998/Wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6470, 546, 1734, 67, 12354, 12, 2890, 16, 845, 16, 1983, 1916, 4672, 1300, 273, 509, 12, 1916, 63, 21, 30, 5717, 327, 2368, 69, 3897, 11613, 87, 6441, 7, 9, 72, 1757, 69, 1870, 738, 261, 7547, 18, 16282, 12, 2696, 3631, 1300, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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5717, 327, 2368, 69, 3897, 11613, 87, 6441, 7, 9, 72, 1757, 69, 1870, 738, 261, 7547, 18, 16282, 12, 2696, 3631, 1300, 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 ]
return int(id)
return int(obj)
def getID(obj): try: return obj.id except AttributeError: return int(id)
18fef3124b3623d2494473246d98f5af95b2d62a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/18fef3124b3623d2494473246d98f5af95b2d62a/joins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14744, 12, 2603, 4672, 775, 30, 327, 1081, 18, 350, 1335, 6394, 30, 327, 509, 12, 2603, 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, 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1081, 18, 350, 1335, 6394, 30, 327, 509, 12, 2603, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
subgroups in a permutation group G. The ordering is that given by
subgroups in a permutation group `G`. The ordering is that given by
def conjugacy_classes_subgroups(self): """ Returns a complete list of representatives of conjugacy classes of subgroups in a permutation group G. The ordering is that given by GAP. EXAMPLES:: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4)]]) sage: cl = G.conjugacy_classes_subgroups() sage: cl [Permutation Group with generators [()], Permutation Group with generators [(1,2)(3,4)], Permutation Group with generators [(1,3)(2,4)], Permutation Group with generators [(2,4)], Permutation Group with generators [(1,4)(2,3), (1,2)(3,4)], Permutation Group with generators [(1,3)(2,4), (2,4)], Permutation Group with generators [(1,3)(2,4), (1,2,3,4)], Permutation Group with generators [(1,3)(2,4), (1,2)(3,4), (1,2,3,4)]] :: sage: G = SymmetricGroup(3) sage: G.conjugacy_classes_subgroups() [Permutation Group with generators [()], Permutation Group with generators [(2,3)], Permutation Group with generators [(1,2,3)], Permutation Group with generators [(1,3,2), (1,2)]] AUTHORS:
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10550, 637, 3505, 67, 4701, 67, 1717, 4650, 12, 2890, 4672, 3536, 2860, 279, 3912, 666, 434, 2406, 8785, 434, 10550, 637, 3505, 3318, 434, 720, 4650, 316, 279, 17440, 1041, 1375, 43, 8338, 1021, 9543, 353, 716, 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, 16, 24, 25887, 5717, 272, 410, 30, 927, 273, 611, 18, 591, 78, 637, 3505, 67, 4701, 67, 1717, 4650, 1435, 272, 410, 30, 927, 306, 9123, 9245, 3756, 598, 13327, 306, 1435, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 21, 16, 22, 21433, 23, 16, 24, 13, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 21, 16, 23, 21433, 22, 16, 24, 13, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 22, 16, 24, 13, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 21, 16, 24, 21433, 22, 16, 23, 3631, 261, 21, 16, 22, 21433, 23, 16, 24, 13, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 21, 16, 23, 21433, 22, 16, 24, 3631, 261, 22, 16, 24, 13, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 21, 16, 23, 21433, 22, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 16, 24, 13, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 21, 16, 23, 21433, 22, 16, 24, 3631, 261, 21, 16, 22, 21433, 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, 10550, 637, 3505, 67, 4701, 67, 1717, 4650, 12, 2890, 4672, 3536, 2860, 279, 3912, 666, 434, 2406, 8785, 434, 10550, 637, 3505, 3318, 434, 720, 4650, 316, 279, 17440, 1041, 1375, 43, 8338, 1021, 9543, 353, 716, 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, 16, 24, 25887, 5717, 272, 410, 30, 927, 273, 611, 18, 591, 78, 637, 3505, 67, 4701, 67, 1717, 4650, 1435, 272, 410, 30, 927, 306, 9123, 9245, 3756, 598, 13327, 306, 1435, 6487, 13813, 9245, 3756, 598, 13327, 306, 12, 2 ]
st.append("%X"%(int(str(M[x,y].int_repr()))))
st.append("%X"%(int(str(M[x, y].int_repr()))))
def hex_str_vector(self, M): """ Return a one dimensional AES like representation of the matrix M.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 67, 701, 67, 7737, 12, 2890, 16, 490, 4672, 3536, 2000, 279, 1245, 17469, 15986, 3007, 4335, 434, 326, 3148, 490, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3827, 67, 701, 67, 7737, 12, 2890, 16, 490, 4672, 3536, 2000, 279, 1245, 17469, 15986, 3007, 4335, 434, 326, 3148, 490, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sys.path.append('generatedCode')
sys.path.append(subdirPath)
def getModule(self, section, serviceName, subdirPath, schemaOnly=False, explicitPath=None): sys.path.append('generatedCode') try: # fix service = __import__(serviceName + '_services') except ImportError: service = self.generateCode(section, serviceName, subdirPath, schemaOnly, explicitPath) return service
4f86ae8fc8443cfb477b119044370888fcf79304 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4f86ae8fc8443cfb477b119044370888fcf79304/clientGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11251, 12, 2890, 16, 2442, 16, 6773, 16, 16921, 743, 16, 1963, 3386, 33, 8381, 16, 5515, 743, 33, 7036, 4672, 2589, 18, 803, 18, 6923, 12, 1717, 1214, 743, 13, 775, 30, 468, 2917, 1156, 273, 1001, 5666, 972, 12, 15423, 397, 2070, 8387, 6134, 1335, 11308, 30, 1156, 273, 365, 18, 7163, 1085, 12, 3464, 16, 6773, 16, 16921, 743, 16, 1963, 3386, 16, 5515, 743, 13, 327, 1156, 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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15423, 397, 2070, 8387, 6134, 1335, 11308, 30, 1156, 273, 365, 18, 7163, 1085, 12, 3464, 16, 6773, 16, 16921, 743, 16, 1963, 3386, 16, 5515, 743, 13, 327, 1156, 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 ]
cur.Location = TabList[piece] self.itemattrlist[TabList[piece]] = cur self.currentTabLabel = TabList[piece] if TabList[piece] in JewelTabList:
cur.Location = piece self.itemattrlist[piece] = cur self.currentTabLabel = piece if piece in JewelTabList:
def moveTo(self, action): cur = self.itemattrlist[self.currentTabLabel] if cur.ActiveState != 'player': return piece = action.data().toInt()[0] part = self.itemattrlist[TabList[piece]] if cur == part: return if cur.next is None: item = Item(realm=self.realm,loc=self.currentTabLabel, state=cur.ActiveState) if cur.ActiveState == 'drop': item.ItemName = "Drop Item" + str(self.itemnumbering) else: item.ItemName = "Crafted Item" + str(self.itemnumbering) self.itemnumbering += 1 self.itemattrlist[self.currentTabLabel] = item else: self.itemattrlist[self.currentTabLabel] = cur.next cur.next = part cur.Location = TabList[piece] self.itemattrlist[TabList[piece]] = cur self.currentTabLabel = TabList[piece] if TabList[piece] in JewelTabList: row = 1 col = JewelTabList.index(TabList[piece]) else: row = 0 col = PieceTabList.index(TabList[piece]) self.changePieceTab(QVariant((row << 8) | col))
4871e7b90ac3ae938def5bc89e9ea84b3a33c81a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/4871e7b90ac3ae938def5bc89e9ea84b3a33c81a/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13863, 12, 2890, 16, 1301, 4672, 662, 273, 365, 18, 1726, 1747, 1098, 63, 2890, 18, 2972, 5661, 2224, 65, 309, 662, 18, 3896, 1119, 480, 296, 14872, 4278, 327, 11151, 273, 1301, 18, 892, 7675, 869, 1702, 1435, 63, 20, 65, 1087, 273, 365, 18, 1726, 1747, 1098, 63, 5661, 682, 63, 30100, 13563, 309, 662, 422, 1087, 30, 327, 309, 662, 18, 4285, 353, 599, 30, 761, 273, 4342, 12, 24056, 33, 2890, 18, 24056, 16, 1829, 33, 2890, 18, 2972, 5661, 2224, 16, 919, 33, 1397, 18, 3896, 1119, 13, 309, 662, 18, 3896, 1119, 422, 296, 7285, 4278, 761, 18, 1180, 461, 273, 315, 7544, 4342, 6, 397, 609, 12, 2890, 18, 1726, 2696, 310, 13, 469, 30, 761, 18, 1180, 461, 273, 315, 39, 5015, 329, 4342, 6, 397, 609, 12, 2890, 18, 1726, 2696, 310, 13, 365, 18, 1726, 2696, 310, 1011, 404, 365, 18, 1726, 1747, 1098, 63, 2890, 18, 2972, 5661, 2224, 65, 273, 761, 469, 30, 365, 18, 1726, 1747, 1098, 63, 2890, 18, 2972, 5661, 2224, 65, 273, 662, 18, 4285, 662, 18, 4285, 273, 1087, 662, 18, 2735, 273, 11151, 365, 18, 1726, 1747, 1098, 63, 30100, 65, 273, 662, 365, 18, 2972, 5661, 2224, 273, 11151, 309, 11151, 316, 804, 359, 292, 5661, 682, 30, 1027, 273, 404, 645, 273, 804, 359, 292, 5661, 682, 18, 1615, 12, 5661, 682, 63, 30100, 5717, 469, 30, 1027, 273, 374, 645, 273, 453, 8414, 5661, 682, 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, 13863, 12, 2890, 16, 1301, 4672, 662, 273, 365, 18, 1726, 1747, 1098, 63, 2890, 18, 2972, 5661, 2224, 65, 309, 662, 18, 3896, 1119, 480, 296, 14872, 4278, 327, 11151, 273, 1301, 18, 892, 7675, 869, 1702, 1435, 63, 20, 65, 1087, 273, 365, 18, 1726, 1747, 1098, 63, 5661, 682, 63, 30100, 13563, 309, 662, 422, 1087, 30, 327, 309, 662, 18, 4285, 353, 599, 30, 761, 273, 4342, 12, 24056, 33, 2890, 18, 24056, 16, 1829, 33, 2890, 18, 2972, 5661, 2224, 16, 919, 33, 1397, 18, 3896, 1119, 13, 309, 662, 18, 3896, 1119, 422, 296, 7285, 4278, 761, 18, 1180, 461, 273, 315, 7544, 4342, 6, 397, 609, 12, 2890, 18, 1726, 2696, 2 ]
n_lines += 1
def write_results_file(self, path, lines, lnotab, lines_hit): """Return a coverage results file in path."""
eae3b77ba7e028343b1ce13411320c4f2ac4dd6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4717, 67, 768, 12, 2890, 16, 589, 16, 2362, 16, 328, 902, 378, 16, 2362, 67, 15989, 4672, 3536, 990, 279, 11196, 1686, 585, 316, 589, 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 ]
def introspect_other(val, val_doc):
def introspect_other(val, val_doc, module_name=None):
def introspect_other(val, val_doc): """Specialize val_doc to a C{GenericValueDoc} and return it.""" val_doc.specialize_to(GenericValueDoc) return val_doc
d9e67897aaaf2b8d18fca084b80edea62a58df3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/d9e67897aaaf2b8d18fca084b80edea62a58df3f/docintrospecter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30165, 67, 3011, 12, 1125, 16, 1244, 67, 2434, 16, 1605, 67, 529, 33, 7036, 4672, 3536, 1990, 1710, 1244, 67, 2434, 358, 279, 385, 95, 7014, 620, 1759, 97, 471, 327, 518, 12123, 1244, 67, 2434, 18, 2793, 1710, 67, 869, 12, 7014, 620, 1759, 13, 327, 1244, 67, 2434, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30165, 67, 3011, 12, 1125, 16, 1244, 67, 2434, 16, 1605, 67, 529, 33, 7036, 4672, 3536, 1990, 1710, 1244, 67, 2434, 358, 279, 385, 95, 7014, 620, 1759, 97, 471, 327, 518, 12123, 1244, 67, 2434, 18, 2793, 1710, 67, 869, 12, 7014, 620, 1759, 13, 327, 1244, 67, 2434, 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 ]
action = Request.args.get('action')
action = request.args.get('action')
def __call__(self, environ, start_response): request = Request(environ) action = Request.args.get('action') from MoinMoin import xmlrpc
e415f42eed472e520213ae82e698076397cc9483 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/e415f42eed472e520213ae82e698076397cc9483/apps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 590, 273, 1567, 12, 28684, 13, 1301, 273, 590, 18, 1968, 18, 588, 2668, 1128, 6134, 225, 628, 490, 885, 49, 885, 1930, 31811, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 590, 273, 1567, 12, 28684, 13, 1301, 273, 590, 18, 1968, 18, 588, 2668, 1128, 6134, 225, 628, 490, 885, 49, 885, 1930, 31811, 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 ]
def handle_invalid_name(self):
def handle_invalid_name(self, name):
def handle_invalid_name(self): msg = _("Category name '%s' not valid. Must be non-empty.") _display_error_message(msg % name, self) _set_focus_and_select(self.txt_name)
3be93aa11295d1e8fa928ed6b4e6b02c7cfde8bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5252/3be93aa11295d1e8fa928ed6b4e6b02c7cfde8bf/categoryeditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 5387, 67, 529, 12, 2890, 16, 508, 4672, 1234, 273, 389, 2932, 4457, 508, 1995, 87, 11, 486, 923, 18, 6753, 506, 1661, 17, 5531, 1199, 13, 389, 5417, 67, 1636, 67, 2150, 12, 3576, 738, 508, 16, 365, 13, 389, 542, 67, 13923, 67, 464, 67, 4025, 12, 2890, 18, 5830, 67, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 486, 923, 18, 6753, 506, 1661, 17, 5531, 1199, 13, 389, 5417, 67, 1636, 67, 2150, 12, 3576, 738, 508, 16, 365, 13, 389, 542, 67, 13923, 67, 464, 67, 4025, 12, 2890, 18, 5830, 67, 529, 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 ]
accel = self.client.get_string(gconf_path) if gconf_path in [x[0] for x in GHOTKEYS]: globalhotkeys.unbind(accel) keynum, mask = gtk.accelerator_parse(accel) if keynum: self.guake.accel_group.disconnect_key(keynum, mask)
def on_key_cleared(self, renderer, path, model): giter = model.get_iter(path) gconf_path = model.get_value(giter, 0) accel = self.client.get_string(gconf_path) model.set_value(giter, 2, KeyEntry(0, 0))
de00492a8254b0d7a402011a0823338d7843934d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11147/de00492a8254b0d7a402011a0823338d7843934d/prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 856, 67, 2131, 2258, 12, 2890, 16, 5690, 16, 589, 16, 938, 4672, 314, 2165, 273, 938, 18, 588, 67, 2165, 12, 803, 13, 314, 3923, 67, 803, 273, 938, 18, 588, 67, 1132, 12, 75, 2165, 16, 374, 13, 15153, 273, 365, 18, 2625, 18, 588, 67, 1080, 12, 75, 3923, 67, 803, 13, 938, 18, 542, 67, 1132, 12, 75, 2165, 16, 576, 16, 1929, 1622, 12, 20, 16, 374, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 856, 67, 2131, 2258, 12, 2890, 16, 5690, 16, 589, 16, 938, 4672, 314, 2165, 273, 938, 18, 588, 67, 2165, 12, 803, 13, 314, 3923, 67, 803, 273, 938, 18, 588, 67, 1132, 12, 75, 2165, 16, 374, 13, 15153, 273, 365, 18, 2625, 18, 588, 67, 1080, 12, 75, 3923, 67, 803, 13, 938, 18, 542, 67, 1132, 12, 75, 2165, 16, 576, 16, 1929, 1622, 12, 20, 16, 374, 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 ]
return self._createPassiveDTP() return self._createActiveDTP()
d = self._createPassiveDTP() else: d = self._createActiveDTP() d = self.dtpFactory.deferred d.addCallback(debugDeferred, 'dtpFactory deferred') d.addCallback(self._unblock) d.addErrback(self._ebDtpInstance)
def _createDTP(self): if self.debug: log.msg('_createDTP') if self.dtpTxfrMode != ACTV: return self._createPassiveDTP() return self._createActiveDTP()
cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0/jdftp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 9081, 52, 12, 2890, 4672, 309, 365, 18, 4148, 30, 613, 18, 3576, 2668, 67, 2640, 9081, 52, 6134, 309, 365, 18, 72, 6834, 4188, 4840, 2309, 480, 14684, 58, 30, 327, 365, 6315, 2640, 6433, 688, 9081, 52, 1435, 327, 365, 6315, 2640,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 9081, 52, 12, 2890, 4672, 309, 365, 18, 4148, 30, 613, 18, 3576, 2668, 67, 2640, 9081, 52, 6134, 309, 365, 18, 72, 6834, 4188, 4840, 2309, 480, 14684, 58, 30, 327, 365, 6315, 2640, 6433, 688, 9081, 52, 1435, 327, 365, 6315, 2640, 3896, 9081, 52, 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 ]
The path can be given as an exact path or as a pattern where '*' - matches everything '?' - matches any single character '[chars]' - matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b' or 'c') '[!chars]' - matches any character not inside square brackets
The path can be given as an exact path or as a pattern where: | * | matches everything | | ? | matches any single character | | [chars] | matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b' or 'c') | | [!chars] | matches any character not inside square brackets | Pattern matching is implemented with the Python 'fnmatch' module. For more information, see http://docs.python.org/lib/module-fnmatch.html
def file_should_exist(self, path, msg=None): """Fails unless the given path points to an existing file. The path can be given as an exact path or as a pattern where '*' - matches everything '?' - matches any single character '[chars]' - matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b' or 'c') '[!chars]' - matches any character not inside square brackets The default error message can be overridden with the `msg` argument. """ matches = [ p for p in glob.glob(path) if os.path.isfile(p) ] if len(matches) == 0: self._fail(msg, "Path '%s' does not match any file" % path) self._info("File '%s' exists" % path)
a2152145a7e713b7a988a154a7b296b361d56338 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/a2152145a7e713b7a988a154a7b296b361d56338/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 13139, 67, 7398, 12, 2890, 16, 589, 16, 1234, 33, 7036, 4672, 3536, 30800, 3308, 326, 864, 589, 3143, 358, 392, 2062, 585, 18, 225, 1021, 589, 848, 506, 864, 487, 392, 5565, 589, 578, 487, 279, 1936, 1625, 30, 571, 380, 3639, 571, 1885, 7756, 571, 571, 692, 3639, 571, 1885, 1281, 2202, 3351, 571, 571, 306, 7549, 65, 225, 571, 1885, 1281, 3351, 4832, 8576, 15597, 261, 73, 18, 75, 18, 5271, 18947, 3864, 1885, 3344, 296, 69, 2187, 296, 70, 11, 578, 296, 71, 6134, 571, 571, 306, 5, 7549, 65, 571, 1885, 1281, 3351, 486, 4832, 8576, 15597, 571, 225, 6830, 3607, 353, 8249, 598, 326, 6600, 296, 4293, 1916, 11, 1605, 18, 2457, 1898, 1779, 16, 2621, 1062, 2207, 8532, 18, 8103, 18, 3341, 19, 2941, 19, 2978, 17, 4293, 1916, 18, 2620, 225, 1021, 805, 555, 883, 848, 506, 11000, 598, 326, 1375, 3576, 68, 1237, 18, 3536, 1885, 273, 306, 293, 364, 293, 316, 4715, 18, 10581, 12, 803, 13, 309, 1140, 18, 803, 18, 291, 768, 12, 84, 13, 308, 309, 562, 12, 8436, 13, 422, 374, 30, 365, 6315, 6870, 12, 3576, 16, 315, 743, 1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3308, 326, 864, 589, 3143, 358, 392, 2062, 585, 18, 225, 1021, 589, 848, 506, 864, 487, 392, 5565, 589, 578, 487, 279, 1936, 1625, 30, 571, 380, 3639, 571, 1885, 7756, 571, 571, 692, 3639, 571, 1885, 1281, 2202, 3351, 571, 571, 306, 7549, 65, 225, 571, 1885, 1281, 3351, 4832, 8576, 15597, 261, 73, 18, 75, 18, 5271, 18947, 3864, 1885, 3344, 296, 69, 2187, 296, 70, 11, 578, 296, 71, 6134, 571, 571, 306, 5, 7549, 65, 571, 1885, 1281, 3351, 486, 4832, 8576, 15597, 571, 225, 6830, 3607, 353, 8249, 598, 326, 6600, 296, 4293, 1916, 11, 1605, 2 ]
tooltip.add(1060410, str(durabilitybonus))
if durabilitybonus > 0: tooltip.add(1060410, '+' + str(durabilitybonus)) else: tooltip.add(1060410, str(durabilitybonus))
def onShowTooltip(viewer, object, tooltip): armor = properties.itemcheck(object, ITEM_ARMOR) weapon = properties.itemcheck(object, ITEM_WEAPON) shield = properties.itemcheck(object, ITEM_SHIELD) if (armor or weapon or shield) and object.amount == 1: # Reinsert the name if we need an ore prefix prefix1 = None if object.hastag('resname'): resname = str(object.gettag('resname')) if armor and properties.armorinfo.ARMOR_RESNAME_BONI.has_key(resname): resinfo = properties.armorinfo.ARMOR_RESNAME_BONI[resname] if resinfo.has_key(MATERIALPREFIX): prefix1 = resinfo[MATERIALPREFIX] if weapon and properties.weaponinfo.WEAPON_RESNAME_BONI.has_key(resname): resinfo = properties.weaponinfo.WEAPON_RESNAME_BONI[resname] if resinfo.has_key(MATERIALPREFIX): prefix1 = resinfo[MATERIALPREFIX] prefix2 = None if object.hastag('resname2'): resname2 = str(object.gettag('resname2')) if armor and properties.armorinfo.ARMOR_RESNAME_BONI.has_key(resname2): resinfo = properties.armorinfo.ARMOR_RESNAME_BONI[resname2] if resinfo.has_key(MATERIALPREFIX): prefix2 = resinfo[MATERIALPREFIX] if weapon and properties.weaponinfo.WEAPON_RESNAME_BONI.has_key(resname2): resinfo = properties.weaponinfo.WEAPON_RESNAME_BONI[resname2] if resinfo.has_key(MATERIALPREFIX): prefix2 = resinfo[MATERIALPREFIX] if len(object.name) == 0: itemname = '#' + str(1020000 + object.id) else: itemname = object.name if prefix1 and prefix2: tooltip.reset() tooltip.add(1053099, "%s %s\t%s" % (prefix1, prefix2, itemname)) elif prefix1 and not prefix2: tooltip.reset() tooltip.add(1053099, "%s\t%s" % (prefix1, itemname)) elif not prefix1 and prefix2: tooltip.reset() tooltip.add(1053099, "%s\t%s" % (prefix2, itemname)) # Exceptional item? if object.hastag('exceptional'): tooltip.add(1060636, '') # 1050043: Crafted by ~param~ serial = int(object.gettag('exceptional')) crafter = wolfpack.findchar(serial) if crafter: tooltip.add(1050043, crafter.name) # Only Armors and Weapons have durability if weapon or armor or shield: tooltip.add(1060639, "%u\t%u" % (object.health, object.maxhealth)) durabilitybonus = properties.fromitem(object, DURABILITYBONUS) if durabilitybonus: tooltip.add(1060410, str(durabilitybonus)) # Weapon specific properties if weapon: # One or twohanded weapon if object.twohanded: tooltip.add(1061171, '') else: tooltip.add(1061824, '') # Used weaponskill skill = weaponskill(viewer, object) if skill == SWORDSMANSHIP: tooltip.add(1061172, '') elif skill == MACEFIGHTING: tooltip.add(1061173, '') elif skill == FENCING: tooltip.add(1061174, '') elif skill == ARCHERY: tooltip.add(1061175, '') # Special weapon range if object.hastag('range'): weaponrange = int(object.gettag('range')) if weaponrange > 1: tooltip.add(1061169, str(weaponrange)) # Max-Mindamage mindamage = properties.fromitem(object, MINDAMAGE) maxdamage = properties.fromitem(object, MAXDAMAGE) tooltip.add(1061168, "%u\t%u" % (mindamage, maxdamage)) # Speed speed = properties.fromitem(object, SPEED) tooltip.add(1061167, str(speed)) # Physical Damage Distribution fire = properties.fromitem(object, DAMAGE_FIRE) cold = properties.fromitem(object, DAMAGE_COLD) poison = properties.fromitem(object, DAMAGE_POISON) energy = properties.fromitem(object, DAMAGE_ENERGY) physical = 100 - (fire + cold + poison + energy) if physical: tooltip.add(1060403, str(physical)) if fire: tooltip.add(1060405, str(fire)) if cold: tooltip.add(1060404, str(cold)) if poison: tooltip.add(1060406, str(poison)) if energy: tooltip.add(1060407, str(energy)) fire = properties.fromitem(object, RESISTANCE_FIRE) cold = properties.fromitem(object, RESISTANCE_COLD) poison = properties.fromitem(object, RESISTANCE_POISON) energy = properties.fromitem(object, RESISTANCE_ENERGY) physical = properties.fromitem(object, RESISTANCE_PHYSICAL) if physical: tooltip.add(1060448, str(physical)) if fire: tooltip.add(1060447, str(fire)) if cold: tooltip.add(1060445, str(cold)) if poison: tooltip.add(1060449, str(poison)) if energy: tooltip.add(1060446, str(energy)) modifiers(object, tooltip) lower = properties.fromitem(object, LOWERREQS) if lower: tooltip.add(1060435, str(lower)) lower /= 100.0 req_str = properties.fromitem(object, REQSTR) if lower: req_str = int(ceil(req_str) * (1.0 - lower)) if req_str: tooltip.add(1061170, str(req_str))
c08abcaa167b486e7294bd91261316879b5a30ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/c08abcaa167b486e7294bd91261316879b5a30ec/equipment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 5706, 22444, 12, 25256, 16, 733, 16, 11915, 4672, 23563, 280, 273, 1790, 18, 1726, 1893, 12, 1612, 16, 25504, 67, 26120, 916, 13, 732, 28629, 273, 1790, 18, 1726, 1893, 12, 1612, 16, 25504, 67, 6950, 2203, 673, 13, 699, 491, 273, 1790, 18, 1726, 1893, 12, 1612, 16, 25504, 67, 2664, 45, 5192, 13, 225, 309, 261, 4610, 280, 578, 732, 28629, 578, 699, 491, 13, 471, 733, 18, 8949, 422, 404, 30, 468, 868, 6387, 326, 508, 309, 732, 1608, 392, 320, 266, 1633, 1633, 21, 273, 599, 309, 733, 18, 76, 689, 346, 2668, 455, 529, 11, 4672, 400, 529, 273, 609, 12, 1612, 18, 588, 2692, 2668, 455, 529, 26112, 309, 23563, 280, 471, 1790, 18, 4610, 280, 1376, 18, 26120, 916, 67, 7031, 1985, 67, 38, 673, 45, 18, 5332, 67, 856, 12, 455, 529, 4672, 400, 1376, 273, 1790, 18, 4610, 280, 1376, 18, 26120, 916, 67, 7031, 1985, 67, 38, 673, 45, 63, 455, 529, 65, 309, 400, 1376, 18, 5332, 67, 856, 12, 49, 13641, 6365, 6307, 4672, 1633, 21, 273, 400, 1376, 63, 49, 13641, 6365, 6307, 65, 309, 732, 28629, 471, 1790, 18, 1814, 28629, 1376, 18, 6950, 2203, 673, 67, 7031, 1985, 67, 38, 673, 45, 18, 5332, 67, 856, 12, 455, 529, 4672, 400, 1376, 273, 1790, 18, 1814, 28629, 1376, 18, 6950, 2203, 673, 67, 7031, 1985, 67, 38, 673, 45, 63, 455, 529, 65, 309, 400, 1376, 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, 603, 5706, 22444, 12, 25256, 16, 733, 16, 11915, 4672, 23563, 280, 273, 1790, 18, 1726, 1893, 12, 1612, 16, 25504, 67, 26120, 916, 13, 732, 28629, 273, 1790, 18, 1726, 1893, 12, 1612, 16, 25504, 67, 6950, 2203, 673, 13, 699, 491, 273, 1790, 18, 1726, 1893, 12, 1612, 16, 25504, 67, 2664, 45, 5192, 13, 225, 309, 261, 4610, 280, 578, 732, 28629, 578, 699, 491, 13, 471, 733, 18, 8949, 422, 404, 30, 468, 868, 6387, 326, 508, 309, 732, 1608, 392, 320, 266, 1633, 1633, 21, 273, 599, 309, 733, 18, 76, 689, 346, 2668, 455, 529, 11, 4672, 400, 529, 273, 609, 12, 1612, 18, 588, 2692, 2668, 455, 529, 26112, 309, 23563, 2 ]
selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\
selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "fileopen", self.fileOpenAction.iconSet().pixmap() ) self.fileOpenAction.setWhatsThis( fileOpenText ) #### Save File #### fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)</b></p><br> "\ "<p><img source=\"filesave\"><br> "\ "Saves the current file."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "filesave", self.fileSaveAction.iconSet().pixmap() ) self.fileSaveAction.setWhatsThis( fileSaveText ) ############################################## # Edit Toolbar ############################################## #### Make Checkpoint ### editMakeCheckpointText = "<u><b>Make Checkpoint</b></u>"\ "<p><img source=\"editMakeCheckpoint\"><br> "\ "Make Undo checkpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editMakeCheckpoint", self.editMakeCheckpointAction.iconSet().pixmap() ) self.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) #### Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = "<u><b>Automatic Checkpointing</b></u>"\ "<p>Enables/Disables <b>Automatic Checkpointing</b>. When enabled, the program "\ "maintains the Undo stack automatically. When disabled, the user is required to "\ "manually create Undo checkpoints using the <b>Make Checkpoint</b> button: </p>"\ "<p><img source=\"editMakeCheckpoint\"></p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. By disabling "\ "Automatic Checkpointing, the program will run faster.</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints manually when "\ "Automatic Checkpointing is disabled.</i></b>"\ "</p>" self.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) #### Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" self.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) #### Undo #### editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)</b></p><br> "\ "<p><img source=\"editUndo\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning QMimeSourceFactory.defaultFactory().setPixmap( "editUndo", self.editUndoAction.iconSet().pixmap() ) self.editUndoAction.setWhatsThis( editUndoText ) self.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link #### Redo #### import platform if platform.is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s</b></p><br> "\ "<p><img source=\"editRedo\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning QMimeSourceFactory.defaultFactory().setPixmap( "editRedo", self.editRedoAction.iconSet().pixmap() ) self.editRedoAction.setWhatsThis( editRedoText ) self.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link #### Cut #### editCutText = "<u><b>Cut</b></u> (Ctrl + X)</b></p><br> "\ "<p><img source=\"editCut\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCut", self.editCutAction.iconSet().pixmap() ) self.editCutAction.setWhatsThis( editCutText ) #### Copy #### editCopyText = "<u><b>Copy</b></u> (Ctrl + C)</b></p><br> "\ "<p><img source=\"editCopy\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editCopy", self.editCopyAction.iconSet().pixmap() ) self.editCopyAction.setWhatsThis( editCopyText ) #### Paste #### editPasteText = "<u><b>Paste</b></u> (Ctrl + V)</b></p><br> "\ "<p><img source=\"editPaste\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "editPaste", self.editPasteAction.iconSet().pixmap() ) self.editPasteAction.setWhatsThis( editPasteText ) #### Delete #### editDeleteText = "<u><b>Delete</b></u> (DEL)</b></p><br> "\ "<p><img source=\"editDelete\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release QMimeSourceFactory.defaultFactory().setPixmap( "editDelete", self.editDeleteAction.iconSet().pixmap() ) self.editDeleteAction.setWhatsThis( editDeleteText ) ############################################## # View Toolbar ############################################## #### Home View #### setViewHomeActionText = "<u><b>Home</b></u> (Home)<br>"\ "<p><img source=\"setViewHome\"><br> "\ "When you create a new model, it appears in a default view orientation (FRONT view). When you open an existing model, it appears in the orientation it was last saved. You can change the default orientation by selecting <b>Set Home View to Current View</b> from the <b>View</b> menu.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewHome", self.setViewHomeAction.iconSet().pixmap() ) self.setViewHomeAction.setWhatsThis( setViewHomeActionText ) #### Fit to Window #### setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"setViewFitToWindow\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFitToWindow", self.setViewFitToWindowAction.iconSet().pixmap() ) self.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) #### Recenter #### setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"setViewRecenter\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRecenter", self.setViewRecenterAction.iconSet().pixmap() ) self.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) #### Zoom Tool #### setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"setzoomTool\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setzoomTool", self.zoomToolAction.iconSet().pixmap() ) self.zoomToolAction.setWhatsThis( setzoomToolActionText ) #### Pan Tool #### setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"setpanTool\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setpanTool", self.panToolAction.iconSet().pixmap() ) self.panToolAction.setWhatsThis( setpanToolActionText ) #### Rotate Tool #### setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"setrotateTool\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setrotateTool", self.rotateToolAction.iconSet().pixmap() ) self.rotateToolAction.setWhatsThis( setrotateToolActionText ) #### Orthographic Projection #### setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOrtho", self.setViewOrthoAction.iconSet().pixmap() ) self.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) #### Perspective Projection #### setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPerspec", self.setViewPerspecAction.iconSet().pixmap() ) self.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) #### Normal To #### setViewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"setViewNormalTo\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewNormalTo", self.setViewNormalToAction.iconSet().pixmap() ) self.setViewNormalToAction.setWhatsThis( setViewNormalToActionText ) #### Parallel To #### setViewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"setViewParallelTo\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewParallelTo", self.setViewParallelToAction.iconSet().pixmap() ) self.setViewParallelToAction.setWhatsThis( setViewParallelToActionText ) #### Save Named View #### saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"saveNamedView\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "saveNamedView", self.saveNamedViewAction.iconSet().pixmap() ) self.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) #### Front View #### setViewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"setViewFront\"><br> "\ "Orients the view to the Front View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewFront", self.setViewFrontAction.iconSet().pixmap() ) self.setViewFrontAction.setWhatsThis( setViewFrontActionText ) #### Back View #### setViewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"setViewBack\"><br> "\ "Orients the view to the Back View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBack", self.setViewBackAction.iconSet().pixmap() ) self.setViewBackAction.setWhatsThis( setViewBackActionText ) #### Top View #### setViewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"setViewTop\"><br> "\ "Orients the view to the Top View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewTop", self.setViewTopAction.iconSet().pixmap() ) self.setViewTopAction.setWhatsThis( setViewTopActionText ) #### Bottom View #### setViewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"setViewBottom\"><br> "\ "Orients the view to the Bottom View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewBottom", self.setViewBottomAction.iconSet().pixmap() ) self.setViewBottomAction.setWhatsThis( setViewBottomActionText ) #### Left View #### setViewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"setViewLeft\"><br> "\ "Orients the view to the Left View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewLeft", self.setViewLeftAction.iconSet().pixmap() ) self.setViewLeftAction.setWhatsThis( setViewLeftActionText ) #### Right View #### setViewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"setViewRight\"><br> "\ "Orients the view to the Right View."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewRight", self.setViewRightAction.iconSet().pixmap() ) self.setViewRightAction.setWhatsThis( setViewRightActionText ) #### Rotate View 180 #### setViewOppositeActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"setViewOpposite\"><br> "\ "Rotates the view 180 degrees."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewOpposite", self.setViewOppositeAction.iconSet().pixmap() ) self.setViewOppositeAction.setWhatsThis( setViewOppositeActionText ) #### Rotate View +90 #### setViewPlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"setViewPlus90\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewPlus90", self.setViewPlus90Action.iconSet().pixmap() ) self.setViewPlus90Action.setWhatsThis( setViewPlus90ActionText ) #### Rotate View -90 #### setViewMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"setViewMinus90\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "setViewMinus90", self.setViewMinus90Action.iconSet().pixmap() ) self.setViewMinus90Action.setWhatsThis( setViewMinus90ActionText ) ############################################## # Grids Toolbar ############################################## #### Surface 100 #### orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"orient100Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient100Action", self.orient100Action.iconSet().pixmap() ) self.orient100Action.setWhatsThis(orient100ActionText ) #### Surface 110 #### orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"orient110Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient110Action", self.orient110Action.iconSet().pixmap() ) self.orient110Action.setWhatsThis(orient110ActionText ) #### Surface 111 #### orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"orient111Action\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "orient111Action", self.orient111Action.iconSet().pixmap() ) self.orient111Action.setWhatsThis(orient111ActionText ) ############################################## # Molecular Display toolbar ############################################## #### Display Default #### dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"dispDefaultAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>General</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDefaultAction", self.dispDefaultAction.iconSet().pixmap() ) self.dispDefaultAction.setWhatsThis(dispDefaultActionText ) #### Display Invisible #### dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"dispInvisAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispInvisAction", self.dispInvisAction.iconSet().pixmap() ) self.dispInvisAction.setWhatsThis(dispInvisActionText ) #### Display Lines #### dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"dispLinesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispLinesAction", self.dispLinesAction.iconSet().pixmap() ) self.dispLinesAction.setWhatsThis(dispLinesActionText ) #### Display Tubes #### dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"dispTubesAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTubesAction", self.dispTubesAction.iconSet().pixmap() ) self.dispTubesAction.setWhatsThis(dispTubesActionText ) #### Display Ball and Stick (was CPK) #### dispCPKActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"dispCPKAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCPKAction", self.dispCPKAction.iconSet().pixmap() ) self.dispCPKAction.setWhatsThis(dispCPKActionText ) #### Display CPK (was VdW) #### [bruce extended and slightly corrected text, 060307] dispVdWActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"dispVdWAction\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispVdWAction", self.dispVdWAction.iconSet().pixmap() ) self.dispVdWAction.setWhatsThis(dispVdWActionText ) ############################################## # Select toolbar ############################################## #### Select All #### selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)</b></p><br>"\ "<p><img source=\"selectAllAction\"><br> "\ "During <b>Select Atoms</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectAllAction", self.selectAllAction.iconSet().pixmap() ) self.selectAllAction.setWhatsThis(selectAllActionText ) #### Select None #### selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"selectNoneAction\"><br> "\ "Unselects everything currently selected.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectNoneAction", self.selectNoneAction.iconSet().pixmap() ) self.selectNoneAction.setWhatsThis(selectNoneActionText ) #### Invert Selection #### selectInvertActionText = "<u><b>Invert Selection</b></u> <br> (Ctrl + Shift + I)</b></p><br>"\ "<p><img source=\"selectInvertAction\"><br> "\ "Inverts the current selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectInvertAction", self.selectInvertAction.iconSet().pixmap() ) self.selectInvertAction.setWhatsThis(selectInvertActionText ) #### Select Connected #### selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)</b></p><br>"\ "<p><img source=\"selectConnectedAction\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectConnectedAction", self.selectConnectedAction.iconSet().pixmap() ) self.selectConnectedAction.setWhatsThis(selectConnectedActionText ) #### Select Doubly #### selectDoublyActionText = "<u><b>Select Doubly</b></u></b></p><br>"\ "<p><img source=\"selectDoublyAction\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection.</p>"\ "<p>To use this feature, you must first be in "\ "<b>Select Atoms</b> mode and select at least one atom.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectDoublyAction", self.selectDoublyAction.iconSet().pixmap() ) self.selectDoublyAction.setWhatsThis(selectDoublyActionText ) #### Expand Selection #### selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)</b></p><br>"\ "<p><img source=\"selectExpandAction\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectExpandAction", self.selectExpandAction.iconSet().pixmap() ) self.selectExpandAction.setWhatsThis(selectExpandActionText ) #### Contract Selection #### selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)</b></p><br>"\ "<p><img source=\"selectContractAction\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "selectContractAction", self.selectContractAction.iconSet().pixmap() ) self.selectContractAction.setWhatsThis(selectContractActionText ) ############################################## # Modify Toolbar ############################################## #### Minimize Selection #### modifyMinimizeSelActionText = "<u><b>Minimize Selection</b></u> (Ctrl + M)</b></p><br>"\ "<p><img source=\"modifyMinimizeSelAction\"><br> "\ "Arranges the atoms (<i>of the current selection</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeSelAction", self.modifyMinimizeSelAction.iconSet().pixmap() ) self.modifyMinimizeSelAction.setWhatsThis(modifyMinimizeSelActionText ) #### Minimize All #### modifyMinimizeAllActionText = "<u><b>Minimize All</b></u></p><br>"\ "<p><img source=\"modifyMinimizeAllAction\"><br> "\ "Arranges the atoms (<i>of the entire part</i>) to their chemically stable point of "\ "equilibrium in reference to the other atoms in the structure."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMinimizeAllAction", self.modifyMinimizeAllAction.iconSet().pixmap() ) self.modifyMinimizeAllAction.setWhatsThis(modifyMinimizeAllActionText ) #### Hydrogenate #### modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> </b></p><br>"\ "<p><img source=\"modifyHydrogenateAction\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyHydrogenateAction", self.modifyHydrogenateAction.iconSet().pixmap() ) self.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) #### Dehydrogenate #### modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"modifyDehydrogenateAction\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDehydrogenateAction", self.modifyDehydrogenateAction.iconSet().pixmap() ) self.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) #### Passivate #### modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)</b></p><br>"\ "<p><img source=\"modifyPassivateAction\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyPassivateAction", self.modifyPassivateAction.iconSet().pixmap() ) self.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) #### Stretch #### modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"modifyStretchAction\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyStretchAction", self.modifyStretchAction.iconSet().pixmap() ) self.modifyStretchAction.setWhatsThis(modifyStretchActionText ) #### Delete Bonds #### modifyDeleteBondsActionText = "<u><b>Delete Bonds</b></u><br>"\ "<p><img source=\"modifyDeleteBondsAction\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyDeleteBondsAction", self.modifyDeleteBondsAction.iconSet().pixmap() ) self.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) #### Separate #### modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"modifySeparateAction\"><br> "\ "Creates a new chunk from the currently selected atoms.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifySeparateAction", self.modifySeparateAction.iconSet().pixmap() ) self.modifySeparateAction.setWhatsThis(modifySeparateActionText ) #### Merge Chunks #### modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"modifyMergeAction\"><br> "\ "Merges two or more chunks into a single chunk.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyMergeAction", self.modifyMergeAction.iconSet().pixmap() ) self.modifyMergeAction.setWhatsThis(modifyMergeActionText ) #### Invert Chunks #### modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"modifyInvertAction\"><br> "\ "Inverts the atoms of the selected chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyInvertAction", self.modifyInvertAction.iconSet().pixmap() ) self.modifyInvertAction.setWhatsThis(modifyInvertActionText ) #### Align to Common Axis #### modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"modifyAlignCommonAxis\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "modifyAlignCommonAxis", self. modifyAlignCommonAxisAction.iconSet().pixmap() ) self. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) ############################################## # Tools Toolbar ############################################## #### Select Chunks #### toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\" toolsSelectMoleculesAction\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectMoleculesAction", self. toolsSelectMoleculesAction.iconSet().pixmap() ) self. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) #### Select Atoms #### toolsSelectAtomsActionText = "<u><b>Select Atoms</b></u><!-- [[Feature:Select Atoms Mode]] --><br>"\ "<p><img source=\" toolsSelectAtomsAction\"><br> "\ "<b>Select Atoms</b> allows you to select/unselect atoms with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects an atom(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes atom(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds atom(s) to selection."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsSelectAtomsAction", self. toolsSelectAtomsAction.iconSet().pixmap() ) self. toolsSelectAtomsAction.setWhatsThis( toolsSelectAtomsActionText ) #### Move Chunks #### toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\" toolsMoveMoleculeAction\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsMoveMoleculeAction", self. toolsMoveMoleculeAction.iconSet().pixmap() ) self. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) #### Build Atoms Tool #### toolsDepositAtomActionText = "<u><b>Build Tool</b></u><!-- [[Feature:Build Mode]] --><br>"\ "<p><img source=\" toolsDepositAtomAction\"><br> "\ "<b>Build Mode</b> allows you to build structures by depositing objects "\ "from the Molecular Modeling Kit, including atoms, clipboard objects and parts "\ "from the nanoENGINEER-1 Library.</p>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDepositAtomAction", self. toolsDepositAtomAction.iconSet().pixmap() ) self. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) #### Cookie Cutter #### toolsCookieCutActionText = "<u><b>Cookie Cutter Tool</b></u><!-- [[Feature:Cookie Cutter Mode]] --><br>"\ "<p><><img source=\" toolsCookieCutAction\"><br> "\ "Activates <b>Cookie Cutter</b> mode, allowing you to cut out 3-D shapes from a "\ "slab of diamond or lonsdaleite lattice.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCookieCutAction", self. toolsCookieCutAction.iconSet().pixmap() ) self. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) #### Extrude Tool #### toolsExtrudeActionText = "<u><b>Extrude Tool</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\" toolsExtrudeAction\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsExtrudeAction", self. toolsExtrudeAction.iconSet().pixmap() ) self. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) #### Fuse Chunks Tool #### toolsFuseChunksActionText = "<u><b>Fuse Chunks Tool</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\" toolsFuseChunksAction\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two types of fusing are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints) "\ "of two or more chunks. Bonds are drawn (and undrawn) as chunks "\ "are moved together (and apart).<br><br>"\ "<b>Fuse Atoms</b> fuses overlapping atoms between chunks. Overlapping "\ "pairs of atoms are highlighted in green and blue to indicate which atoms "\ "will be fused.<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseChunksAction", self. toolsFuseChunksAction.iconSet().pixmap() ) self.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) #### Fuse Atoms Tool #### toolsFuseAtomsActionText = "<u><b>Fuse Atoms Tool</b></u><!-- [[Feature:Fuse Atoms Mode]] (nim?) --><br>"\ "<p><img source=\" toolsFuseAtomsAction\"><br> "\ "<b>Fuse Atoms</b> fuses the overlapping atoms between two or more chunks.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsFuseAtomsAction", self. toolsFuseAtomsAction.iconSet().pixmap() ) self.toolsFuseAtomsAction.setWhatsThis( toolsFuseAtomsActionText ) #### Movie Player #### simMoviePlayerActionText = "<u><b>Movie Player</b></u><br>"\ "<p><img source=\" simMoviePlayerAction\"><br> "\ "Plays the most recent trajectory (movie) file created by the <b>Simulator</b>.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simMoviePlayerAction", self. simMoviePlayerAction.iconSet().pixmap() ) self. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) #### Simulator #### simSetupActionText = "<u><b>Simulator</b></u><br>"\ "<p><img source=\" simSetupAction\"><br> "\ "Creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model. The user determines the number of frames in the movie, the time step, "\ "and the temperature for the simulation.</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simSetupAction", self. simSetupAction.iconSet().pixmap() ) self. simSetupAction.setWhatsThis( simSetupActionText ) #### Plot Tool #### simPlotToolActionText = "<u><b>Plot Tool</b></u><br>"\ "<p><img source=\" simPlotToolAction\"><br> "\ "Plots a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file, and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " simPlotToolAction", self. simPlotToolAction.iconSet().pixmap() ) self. simPlotToolAction.setWhatsThis( simPlotToolActionText ) ############################################## # Dashboard Buttons ############################################## #### Done #### toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\" toolsDoneAction\"><br> "\ "Completes the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsDoneAction", self. toolsDoneAction.iconSet().pixmap() ) self. toolsDoneAction.setWhatsThis( toolsDoneActionText ) #### Cancel #### toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\" toolsCancelAction\"><br> "\ "Cancels the current operation and enters Select Chunks mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsCancelAction", self.toolsCancelAction.iconSet().pixmap() ) self. toolsCancelAction.setWhatsThis( toolsCancelActionText ) #### Back up #### toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "<p><img source=\" toolsBackUpAction\"><br> "\ "Undoes the previous operation."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( " toolsBackUpAction", self.toolsBackUpAction.iconSet().pixmap() ) self. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) #### Start Over #### toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "<p><img source=\"toolsStartOverAction\"><br> "\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "toolsStartOverAction", self.toolsStartOverAction.iconSet().pixmap() ) self.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) #### Add Layers #### ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ccAddLayerAction\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "ccAddLayerAction", self.ccAddLayerAction.iconSet().pixmap() ) self.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) ############################################## # Jigs ############################################## #### Anchor #### jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"jigsAnchorAction\"><br> "\ "Attaches a <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Select Atoms</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAnchorAction", self.jigsAnchorAction.iconSet().pixmap() ) self.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) #### Rotary Motor #### jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"jigsMotorAction\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsMotorAction", self.jigsMotorAction.iconSet().pixmap() ) self.jigsMotorAction.setWhatsThis(jigsMotorActionText ) #### Linear Motor #### jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"jigsLinearMotorAction\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Select Atoms</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsLinearMotorAction", self.jigsLinearMotorAction.iconSet().pixmap() ) self.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) #### Thermostat #### jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"jigsStatAction\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsStatAction", self.jigsStatAction.iconSet().pixmap() ) self.jigsStatAction.setWhatsThis(jigsStatActionText ) #### Thermometer #### jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"jigsThermoAction\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Select Atoms</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsThermoAction", self.jigsThermoAction.iconSet().pixmap() ) self.jigsThermoAction.setWhatsThis(jigsThermoActionText ) #### ESP Image #### jigsESPImageActionText = "<u><b>ESP Image</b></u></b></p><br>"\ "<p><img source=\"jigsESPImageAction\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsESPImageAction", self.jigsESPImageAction.iconSet().pixmap() ) self.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) #### Atom Set #### jigsAtomSetActionText = "<u><b>Atom Set</b></u></b></p><br>"\ "<p><img source=\"jigsAtomSetAction\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Select Atoms</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAtomSetAction", self.jigsAtomSetAction.iconSet().pixmap() ) self.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) #### Measure Distance #### jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDistanceAction\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Select Atoms</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDistanceAction", self.jigsDistanceAction.iconSet().pixmap() ) self.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) #### Measure Angle #### jigsAngleActionText = "<u><b>Measure Angle Jig</b></u></b></p><br>"\ "<p><img source=\"jigsAngleAction\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Select Atoms</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsAngleAction", self.jigsAngleAction.iconSet().pixmap() ) self.jigsAngleAction.setWhatsThis(jigsAngleActionText ) #### Measure Dihedral #### jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u></b></p><br>"\ "<p><img source=\"jigsDihedralAction\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Select Atoms</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsDihedralAction", self.jigsDihedralAction.iconSet().pixmap() ) self.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) #### GAMESS Jig #### jigsGamessActionText = "<u><b>GAMESS Jig</b></u></b></p><br>"\ "<p><img source=\"jigsGamessAction\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Select Atoms</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGamessAction", self.jigsGamessAction.iconSet().pixmap() ) self.jigsGamessAction.setWhatsThis(jigsGamessActionText ) #### Grid Plane Jig #### jigsGridPlaneActionText = "<u><b>Grid Plane</b></u></b></p><br>"\ "<p><img source=\"jigsGridPlaneAction\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Select Atoms</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "jigsGridPlaneAction", self.jigsGridPlaneAction.iconSet().pixmap() ) self.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) ############################################## # Display ############################################## #### Display Object Color #### dispObjectColorActionText = "<u><b>Object Color</b></u><br>"\ "<p><img source=\"dispObjectColorAction\"><br> "\ "Allows you to change the color of the selected object(s).</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispObjectColorAction", self.dispObjectColorAction.iconSet().pixmap() ) self.dispObjectColorAction.setWhatsThis(dispObjectColorActionText ) #### Display Background Color #### dispBGColorActionText = "<u><b>Background Color</b></u><br>"\ "<p><img source=\"dispBGColorAction\"><br> "\ "Allows you to change the background color of the main window.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispBGColorAction", self.dispBGColorAction.iconSet().pixmap() ) self.dispBGColorAction.setWhatsThis(dispBGColorActionText ) ############################################## # Help Toolbar ############################################## #### What's This #### helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"helpWhatsThis\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "helpWhatsThis", self.helpWhatsThisAction.iconSet().pixmap() ) self.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) ############################################## # Datum Display Toolbar ############################################## #### Display Trihedron #### dispTrihedronText = "<u><b>Display Trihedron</b></u><br>"\ "<p><img source=\"dispTrihedron\"><br> "\ "Toggles the trihedron on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispTrihedron", self.dispTrihedronAction.iconSet().pixmap() ) self.dispTrihedronAction.setWhatsThis(dispTrihedronText ) #### Display Csys #### dispCsysText = "<u><b>Display Csys Axis</b></u><br>"\ "<p><img source=\"dispCsys\"><br> "\ "Toggles the coordinate system axis on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispCsys", self.dispCsysAction.iconSet().pixmap() ) self.dispCsysAction.setWhatsThis(dispCsysText ) #### Display Datum Lines #### dispDatumLinesText = "<u><b>Display Datum Lines</b></u><br>"\ "<p><img source=\"dispDatumLines\"><br> "\ "Toggles Datum Lines on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumLines", self.dispDatumLinesAction.iconSet().pixmap() ) self.dispDatumLinesAction.setWhatsThis(dispDatumLinesText ) #### Display Datum Planes #### dispDatumPlanesText = "<u><b>Display Datum Planes</b></u><br>"\ "<p><img source=\"dispDatumPlanes\"><br> "\ "Toggles Datum Planes on and off.</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispDatumPlanes", self.dispDatumPlanesAction.iconSet().pixmap() ) self.dispDatumPlanesAction.setWhatsThis(dispDatumPlanesText ) #### Display Grid #### dispGridText = "<u><b>Display 3-D Grid</b></u><br>"\ "<p><img source=\"dispGrid\"><br> "\ "Toggles the 3-D grid on and off."\ "</p>" QMimeSourceFactory.defaultFactory().setPixmap( "dispGrid", self.dispGridAction.iconSet().pixmap() ) self.dispGridAction.setWhatsThis(dispGridText )
778480334357616b82303c863b630decc9748d34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/778480334357616b82303c863b630decc9748d34/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 225, 11849, 7, 7074, 1387, 11849, 7, 225, 585, 4755, 1528, 273, 3532, 89, 4438, 70, 34, 4755, 1387, 1757, 70, 4695, 89, 34, 377, 261, 12418, 397, 348, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 2354, 836, 2412, 4438, 2848, 34, 1548, 315, 13370, 326, 783, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 2354, 836, 3113, 365, 18, 768, 4755, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 4755, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 4755, 1528, 262, 225, 19709, 26487, 7, 468, 15328, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 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, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 1757, 70, 4695, 84, 4438, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 768, 3190, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 2238, 13320, 1830, 1733, 18, 1886, 1733, 7675, 542, 21816, 1458, 12, 315, 768, 3190, 3113, 365, 18, 768, 3678, 1803, 18, 3950, 694, 7675, 14861, 1458, 1435, 262, 225, 365, 18, 768, 3678, 1803, 18, 542, 2888, 2 ]
def startTagTable(self, name, attributes): self.parser.parseError() assert False
def startTagImplyTbody(self, name, attributes): self.startTagRowGroup("tbody") # XXX assert False
23c4036fec561dd7b04cf5b1db35a67cd0c99833 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/23c4036fec561dd7b04cf5b1db35a67cd0c99833/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1170, 1283, 56, 3432, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 1937, 1805, 1999, 1114, 2932, 20779, 7923, 468, 11329, 1815, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1170, 1283, 56, 3432, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 1937, 1805, 1999, 1114, 2932, 20779, 7923, 468, 11329, 1815, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 '_scan(%r)' % node
def _scan(node, buffer, parent_bbox, page_height = None): print '_scan(%r)' % node def look_down(buffer, parent_bbox): for child in node.iterchildren(): _scan(child, buffer, parent_bbox, page_height) if node.tail and node.tail.strip(): buffer.append(node.tail) if node.text and node.text.strip(): buffer.append(node.text) if not isinstance(node.tag, basestring): return hocr_classes = (node.get('class') or '').split() djvu_class = None for hocr_class in hocr_classes: djvu_class = hocr_class_to_djvu(hocr_class) if djvu_class: break if djvu_class: title = node.get('title') or '' m = BBOX_RE.search(title) if m is None: bbox = BBox() else: bbox = BBox(*(int(m.group(id)) for id in ('x0', 'y0', 'x1', 'y1'))) parent_bbox.update(bbox) if djvu_class: if djvu_class is const.TEXT_ZONE_PAGE: if not bbox: m = IMAGE_RE.search(title) if m is None: raise Exception("Cannot determine page's bbox") page_width, page_height = get_image_size(m.group('file_name')) bbox = BBox(0, 0, page_width - 1, page_height - 1) parent_bbox.update(bbox) else: if (bbox.x0, bbox.y0) != (0, 0): raise Exception("Page's bbox should start with (0, 0)") page_width, page_height = bbox.x1, bbox.y1 result = [sexpr.Symbol(djvu_class)] result += [None] * 4 look_down(result, bbox) if not bbox and not len(node): return if page_height is None: raise Exception('Unable to determine page height') result[1] = bbox.x0 result[2] = page_height - 1 - bbox.y1 result[3] = bbox.x1 result[4] = page_height - 1 - bbox.y0 if len(result) == 5: result.append('') buffer.append(result) else: look_down(buffer, parent_bbox)
0959659885b362b9e225eafa3a4fed31de09ec61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3685/0959659885b362b9e225eafa3a4fed31de09ec61/hocr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9871, 12, 2159, 16, 1613, 16, 982, 67, 20737, 16, 1363, 67, 4210, 273, 599, 4672, 1652, 2324, 67, 2378, 12, 4106, 16, 982, 67, 20737, 4672, 364, 1151, 316, 756, 18, 2165, 5906, 13332, 389, 9871, 12, 3624, 16, 1613, 16, 982, 67, 20737, 16, 1363, 67, 4210, 13, 309, 756, 18, 13101, 471, 756, 18, 13101, 18, 6406, 13332, 1613, 18, 6923, 12, 2159, 18, 13101, 13, 309, 756, 18, 955, 471, 756, 18, 955, 18, 6406, 13332, 1613, 18, 6923, 12, 2159, 18, 955, 13, 309, 486, 1549, 12, 2159, 18, 2692, 16, 10699, 4672, 327, 366, 504, 86, 67, 4701, 273, 261, 2159, 18, 588, 2668, 1106, 6134, 578, 875, 2934, 4939, 1435, 19754, 90, 89, 67, 1106, 273, 599, 364, 366, 504, 86, 67, 1106, 316, 366, 504, 86, 67, 4701, 30, 19754, 90, 89, 67, 1106, 273, 366, 504, 86, 67, 1106, 67, 869, 67, 31646, 90, 89, 12, 76, 504, 86, 67, 1106, 13, 309, 19754, 90, 89, 67, 1106, 30, 898, 309, 19754, 90, 89, 67, 1106, 30, 2077, 273, 756, 18, 588, 2668, 2649, 6134, 578, 875, 312, 273, 605, 16876, 67, 862, 18, 3072, 12, 2649, 13, 309, 312, 353, 599, 30, 8472, 273, 605, 3514, 1435, 469, 30, 8472, 273, 605, 3514, 12, 21556, 474, 12, 81, 18, 1655, 12, 350, 3719, 364, 612, 316, 7707, 92, 20, 2187, 296, 93, 20, 2187, 296, 92, 21, 2187, 296, 93, 21, 11, 20349, 982, 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, 389, 9871, 12, 2159, 16, 1613, 16, 982, 67, 20737, 16, 1363, 67, 4210, 273, 599, 4672, 1652, 2324, 67, 2378, 12, 4106, 16, 982, 67, 20737, 4672, 364, 1151, 316, 756, 18, 2165, 5906, 13332, 389, 9871, 12, 3624, 16, 1613, 16, 982, 67, 20737, 16, 1363, 67, 4210, 13, 309, 756, 18, 13101, 471, 756, 18, 13101, 18, 6406, 13332, 1613, 18, 6923, 12, 2159, 18, 13101, 13, 309, 756, 18, 955, 471, 756, 18, 955, 18, 6406, 13332, 1613, 18, 6923, 12, 2159, 18, 955, 13, 309, 486, 1549, 12, 2159, 18, 2692, 16, 10699, 4672, 327, 366, 504, 86, 67, 4701, 273, 261, 2159, 18, 588, 2668, 1106, 6134, 578, 875, 2934, 4939, 1435, 2 ]
line = line[1:] while 1: res = reg.search(line)
pos = 1 while 1: res = reg.search(line, pos)
def mime_encode(line, header): '''Code a single line as quoted-printable. If header is set, quote some extra characters.''' if header: reg = mime_header_char else: reg = mime_char newline = '' if len(line) >= 5 and line[:5] == 'From ': # quote 'From ' at the start of a line for stupid mailers newline = string.upper('=%02x' % ord('F')) line = line[1:] while 1: res = reg.search(line) if res is None: break newline = newline + line[:res.start(0)] + \ string.upper('=%02x' % ord(line[res.group(0)])) line = line[res.end(0):] line = newline + line newline = '' while len(line) >= 75: i = 73 while line[i] == '=' or line[i-1] == '=': i = i - 1 i = i + 1 newline = newline + line[:i] + '=\n' line = line[i:] return newline + line
2da64378fc8910a8cade10d25f8774ca051556f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2da64378fc8910a8cade10d25f8774ca051556f9/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4892, 67, 3015, 12, 1369, 16, 1446, 4672, 9163, 1085, 279, 2202, 980, 487, 9298, 17, 1188, 429, 18, 971, 1446, 353, 444, 16, 3862, 2690, 2870, 3949, 1093, 6309, 309, 1446, 30, 960, 273, 4892, 67, 3374, 67, 3001, 469, 30, 960, 273, 4892, 67, 3001, 9472, 273, 875, 309, 562, 12, 1369, 13, 1545, 1381, 471, 980, 10531, 25, 65, 422, 296, 1265, 4290, 468, 3862, 296, 1265, 296, 622, 326, 787, 434, 279, 980, 364, 384, 416, 350, 4791, 414, 9472, 273, 533, 18, 5797, 2668, 5095, 3103, 92, 11, 738, 4642, 2668, 42, 26112, 949, 273, 404, 1323, 404, 30, 400, 273, 960, 18, 3072, 12, 1369, 16, 949, 13, 309, 400, 353, 599, 30, 898, 9472, 273, 9472, 397, 980, 10531, 455, 18, 1937, 12, 20, 25887, 397, 521, 533, 18, 5797, 2668, 5095, 3103, 92, 11, 738, 4642, 12, 1369, 63, 455, 18, 1655, 12, 20, 13, 22643, 980, 273, 980, 63, 455, 18, 409, 12, 20, 4672, 65, 980, 273, 9472, 397, 980, 225, 9472, 273, 875, 1323, 562, 12, 1369, 13, 1545, 18821, 30, 277, 273, 26103, 1323, 980, 63, 77, 65, 422, 5214, 578, 980, 63, 77, 17, 21, 65, 422, 5214, 30, 277, 273, 277, 300, 404, 277, 273, 277, 397, 404, 9472, 273, 9472, 397, 980, 10531, 77, 65, 397, 15196, 64, 82, 11, 980, 273, 980, 63, 77, 26894, 327, 9472, 397, 980, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4892, 67, 3015, 12, 1369, 16, 1446, 4672, 9163, 1085, 279, 2202, 980, 487, 9298, 17, 1188, 429, 18, 971, 1446, 353, 444, 16, 3862, 2690, 2870, 3949, 1093, 6309, 309, 1446, 30, 960, 273, 4892, 67, 3374, 67, 3001, 469, 30, 960, 273, 4892, 67, 3001, 9472, 273, 875, 309, 562, 12, 1369, 13, 1545, 1381, 471, 980, 10531, 25, 65, 422, 296, 1265, 4290, 468, 3862, 296, 1265, 296, 622, 326, 787, 434, 279, 980, 364, 384, 416, 350, 4791, 414, 9472, 273, 533, 18, 5797, 2668, 5095, 3103, 92, 11, 738, 4642, 2668, 42, 26112, 949, 273, 404, 1323, 404, 30, 400, 273, 960, 18, 3072, 12, 1369, 16, 949, 13, 309, 400, 353, 599, 2 ]
except psutil.AccessDenied: pass
def test_pid_0(self): # Process(0) is supposed to work on all platforms even if with # some differences p = psutil.Process(0) if sys.platform.lower().startswith("win32"): self.assertEqual(p.name, 'System Idle Process') elif sys.platform.lower().startswith("linux"): self.assertEqual(p.name, 'sched') elif sys.platform.lower().startswith("freebsd"): self.assertEqual(p.name, 'swapper') elif sys.platform.lower().startswith("darwin"): self.assertEqual(p.name, 'kernel_task')
d9bc69addf477f2d44ede61a138919088f8bbb7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7296/d9bc69addf477f2d44ede61a138919088f8bbb7e/test_psutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6610, 67, 20, 12, 2890, 4672, 468, 4389, 12, 20, 13, 353, 18405, 358, 1440, 603, 777, 17422, 5456, 309, 598, 468, 2690, 16440, 293, 273, 27024, 18, 2227, 12, 20, 13, 309, 2589, 18, 9898, 18, 8167, 7675, 17514, 1918, 2932, 8082, 1578, 6, 4672, 365, 18, 11231, 5812, 12, 84, 18, 529, 16, 296, 3163, 28156, 4389, 6134, 1327, 2589, 18, 9898, 18, 8167, 7675, 17514, 1918, 2932, 20132, 6, 4672, 365, 18, 11231, 5812, 12, 84, 18, 529, 16, 296, 87, 2049, 6134, 1327, 2589, 18, 9898, 18, 8167, 7675, 17514, 1918, 2932, 9156, 2038, 72, 6, 4672, 365, 18, 11231, 5812, 12, 84, 18, 529, 16, 296, 22270, 457, 6134, 1327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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6610, 67, 20, 12, 2890, 4672, 468, 4389, 12, 20, 13, 353, 18405, 358, 1440, 603, 777, 17422, 5456, 309, 598, 468, 2690, 16440, 293, 273, 27024, 18, 2227, 12, 20, 13, 309, 2589, 18, 9898, 18, 8167, 7675, 17514, 1918, 2932, 8082, 1578, 6, 4672, 365, 18, 11231, 5812, 12, 84, 18, 529, 16, 296, 3163, 28156, 4389, 6134, 1327, 2589, 18, 9898, 18, 8167, 7675, 17514, 1918, 2932, 20132, 6, 4672, 365, 18, 11231, 5812, 12, 84, 18, 529, 16, 296, 87, 2049, 6134, 1327, 2589, 18, 9898, 18, 8167, 7675, 17514, 1918, 2932, 9156, 2038, 72, 6, 4672, 365, 18, 11231, 5812, 12, 84, 18, 529, 16, 296, 22270, 457, 6134, 1327, 2589, 2 ]
self._radiusy = (1.0 - self.perspective/100.0)*radiusy
self._radiusy = radiusy = (1.0 - self.perspective/100.0)*radiusy
def draw(self): slices = self.slices _3d_angle = self.angle_3d _3dva = self._3dva = _360(_3d_angle+90) a0 = _2rad(_3dva) self._xdepth_3d = cos(a0)*self.depth_3d self._ydepth_3d = sin(a0)*self.depth_3d self._cx = self.x+self.width/2.0 self._cy = self.y+(self.height - self._ydepth_3d)/2.0 radiusx = radiusy = self._cx-self.x if self.xradius: radiusx = self.xradius if self.yradius: radiusy = self.yradius self._radiusx = radiusx self._radiusy = (1.0 - self.perspective/100.0)*radiusy data = self.normalizeData() sum = self._sum
23360196205a3256a8e64a0a96d29d84bdbe5493 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/23360196205a3256a8e64a0a96d29d84bdbe5493/piecharts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 12390, 273, 365, 18, 21562, 389, 23, 72, 67, 4341, 273, 365, 18, 4341, 67, 23, 72, 389, 23, 72, 15304, 273, 365, 6315, 23, 72, 15304, 273, 389, 29751, 24899, 23, 72, 67, 4341, 15, 9349, 13, 279, 20, 273, 389, 22, 6012, 24899, 23, 72, 15304, 13, 365, 6315, 92, 5979, 67, 23, 72, 273, 4987, 12, 69, 20, 17653, 2890, 18, 5979, 67, 23, 72, 365, 6315, 93, 5979, 67, 23, 72, 273, 5367, 12, 69, 20, 17653, 2890, 18, 5979, 67, 23, 72, 365, 6315, 71, 92, 273, 365, 18, 92, 15, 2890, 18, 2819, 19, 22, 18, 20, 365, 6315, 2431, 273, 365, 18, 93, 15, 12, 2890, 18, 4210, 300, 365, 6315, 93, 5979, 67, 23, 72, 13176, 22, 18, 20, 5725, 92, 273, 5725, 93, 273, 365, 6315, 71, 92, 17, 2890, 18, 92, 309, 365, 18, 92, 11282, 30, 5725, 92, 273, 365, 18, 92, 11282, 309, 365, 18, 93, 11282, 30, 5725, 93, 273, 365, 18, 93, 11282, 365, 6315, 11282, 92, 273, 5725, 92, 365, 6315, 11282, 93, 273, 5725, 93, 273, 261, 21, 18, 20, 300, 365, 18, 10422, 16772, 19, 6625, 18, 20, 17653, 11282, 93, 501, 273, 365, 18, 12237, 751, 1435, 2142, 273, 365, 6315, 1364, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 12390, 273, 365, 18, 21562, 389, 23, 72, 67, 4341, 273, 365, 18, 4341, 67, 23, 72, 389, 23, 72, 15304, 273, 365, 6315, 23, 72, 15304, 273, 389, 29751, 24899, 23, 72, 67, 4341, 15, 9349, 13, 279, 20, 273, 389, 22, 6012, 24899, 23, 72, 15304, 13, 365, 6315, 92, 5979, 67, 23, 72, 273, 4987, 12, 69, 20, 17653, 2890, 18, 5979, 67, 23, 72, 365, 6315, 93, 5979, 67, 23, 72, 273, 5367, 12, 69, 20, 17653, 2890, 18, 5979, 67, 23, 72, 365, 6315, 71, 92, 273, 365, 18, 92, 15, 2890, 18, 2819, 19, 22, 18, 20, 365, 6315, 2431, 273, 365, 18, 93, 15, 12, 2890, 18, 2 ]
self.log.show_errors()
if self.failed_module is None: self.log.show_errors() else: self.failed_module.show_errors()
def show_errors (self): self.log.show_errors()
87a9df4b38beecf23f999206a399ef643259af21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/87a9df4b38beecf23f999206a399ef643259af21/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 4324, 261, 2890, 4672, 365, 18, 1330, 18, 4500, 67, 4324, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4324, 261, 2890, 4672, 365, 18, 1330, 18, 4500, 67, 4324, 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, -100, -100, -100, -100, -100, -100, -100, -100 ]
(r'\s+|\w+', Text),
(r'(\s*)(%s)(.*\n)' % '|'.join(DPATCH_KEYWORDS), bygroups(Text, Keyword, Text)), (r'\+', Generic.Inserted, "insert"), (r'-', Generic.Deleted, "delete"), (r'.*\n', Text),
def analyse_text(text): if text[:7] == 'Index: ': return True if text[:5] == 'diff ': return True if text[:4] == '--- ': return 0.9
4fa4c6af0050b4ff88f6b45c0cc66e52ce6d2024 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/4fa4c6af0050b4ff88f6b45c0cc66e52ce6d2024/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31087, 67, 955, 12, 955, 4672, 309, 977, 10531, 27, 65, 422, 296, 1016, 30, 4290, 327, 1053, 309, 977, 10531, 25, 65, 422, 296, 5413, 4290, 327, 1053, 309, 977, 10531, 24, 65, 422, 3534, 17, 4290, 327, 374, 18, 29, 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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 24, 65, 422, 3534, 17, 4290, 327, 374, 18, 29, 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 ]
'fo:border-left': '0.002cm solid
'fo:border-left': '0.035cm solid
def visit_option_list(self, node): #self.document.reporter.debug_flag = 1 #self.document.reporter.attach_observer(self.show_message) table_name = 'rststyle-tableoption' # # Generate automatic styles if not self.optiontablestyles_generated: self.optiontablestyles_generated = True el = etree.SubElement(self.automatic_styles, 'style:style', attrib={ 'style:name': table_name, 'style:family': 'table'}) el1 = etree.SubElement(el, 'style:table-properties', attrib={ 'style:width': '17.59cm', 'table:align': 'left', 'style:shadow': 'none'}) el = etree.SubElement(self.automatic_styles, 'style:style', attrib={ 'style:name': '%s.A' % table_name, 'style:family': 'table-column'}) el1 = etree.SubElement(el, 'style:table-column-properties', attrib={ 'style:column-width': '4.999cm'}) el = etree.SubElement(self.automatic_styles, 'style:style', attrib={ 'style:name': '%s.B' % table_name, 'style:family': 'table-column'}) el1 = etree.SubElement(el, 'style:table-column-properties', attrib={ 'style:column-width': '12.587cm'}) el = etree.SubElement(self.automatic_styles, 'style:style', attrib={ 'style:name': '%s.A1' % table_name, 'style:family': 'table-cell'}) el1 = etree.SubElement(el, 'style:table-cell-properties', attrib={ 'fo:background-color': 'transparent', 'fo:padding': '0.097cm', 'fo:border-left': '0.002cm solid #000000', 'fo:border-right': 'none', 'fo:border-top': '0.002cm solid #000000', 'fo:border-bottom': '0.002cm solid #000000'}) el2 = etree.SubElement(el1, 'style:background-image') el = etree.SubElement(self.automatic_styles, 'style:style', attrib={ 'style:name': '%s.B1' % table_name, 'style:family': 'table-cell'}) el1 = etree.SubElement(el, 'style:table-cell-properties', attrib={ 'fo:padding': '0.097cm', 'fo:border': '0.002cm solid #000000'}) el = etree.SubElement(self.automatic_styles, 'style:style', attrib={ 'style:name': '%s.A2' % table_name, 'style:family': 'table-cell'}) el1 = etree.SubElement(el, 'style:table-cell-properties', attrib={ 'fo:padding': '0.097cm', 'fo:border-left': '0.002cm solid #000000', 'fo:border-right': 'none', 'fo:border-top': 'none', 'fo:border-bottom': '0.002cm solid #000000'}) el = etree.SubElement(self.automatic_styles, 'style:style', attrib={ 'style:name': '%s.B2' % table_name, 'style:family': 'table-cell'}) el1 = etree.SubElement(el, 'style:table-cell-properties', attrib={ 'fo:padding': '0.097cm', 'fo:border-left': '0.002cm solid #000000', 'fo:border-right': '0.002cm solid #000000', 'fo:border-top': 'none', 'fo:border-bottom': '0.002cm solid #000000'}) # # Generate table data el = self.append_child('table:table', attrib={ 'table:name': table_name, 'table:style-name': table_name, }) el1 = etree.SubElement(el, 'table:table-column', attrib={ 'table:style-name': '%s.A' % table_name}) el1 = etree.SubElement(el, 'table:table-column', attrib={ 'table:style-name': '%s.B' % table_name}) el1 = etree.SubElement(el, 'table:table-header-rows') el2 = etree.SubElement(el1, 'table:table-row') el3 = etree.SubElement(el2, 'table:table-cell', attrib={ 'table:style-name': '%s.A1' % table_name, 'office:value-type': 'string'}) el4 = etree.SubElement(el3, 'text:p', attrib={ 'text:style-name': 'Table_20_Heading'}) el4.text= 'Option' el3 = etree.SubElement(el2, 'table:table-cell', attrib={ 'table:style-name': '%s.B1' % table_name, 'office:value-type': 'string'}) el4 = etree.SubElement(el3, 'text:p', attrib={ 'text:style-name': 'Table_20_Heading'}) el4.text= 'Description' self.set_current_element(el)
eef06f5f50d263af719c6f6d103fb10c6a89c1fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/eef06f5f50d263af719c6f6d103fb10c6a89c1fb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 3482, 67, 1098, 12, 2890, 16, 756, 4672, 468, 2890, 18, 5457, 18, 266, 7988, 18, 4148, 67, 6420, 273, 404, 468, 2890, 18, 5457, 18, 266, 7988, 18, 7331, 67, 30971, 12, 2890, 18, 4500, 67, 2150, 13, 1014, 67, 529, 273, 296, 16114, 4060, 17, 2121, 3482, 11, 468, 468, 6654, 5859, 5687, 309, 486, 365, 18, 3482, 7032, 80, 395, 3872, 67, 11168, 30, 365, 18, 3482, 7032, 80, 395, 3872, 67, 11168, 273, 1053, 415, 273, 12031, 18, 1676, 1046, 12, 2890, 18, 5854, 4941, 67, 10218, 16, 296, 4060, 30, 4060, 2187, 5885, 5899, 296, 4060, 30, 529, 4278, 1014, 67, 529, 16, 296, 4060, 30, 9309, 4278, 296, 2121, 11, 6792, 415, 21, 273, 12031, 18, 1676, 1046, 12, 292, 16, 296, 4060, 30, 2121, 17, 4738, 2187, 5885, 5899, 296, 4060, 30, 2819, 4278, 296, 4033, 18, 6162, 7670, 2187, 296, 2121, 30, 7989, 4278, 296, 4482, 2187, 296, 4060, 30, 19119, 4278, 296, 6102, 11, 6792, 415, 273, 12031, 18, 1676, 1046, 12, 2890, 18, 5854, 4941, 67, 10218, 16, 296, 4060, 30, 4060, 2187, 5885, 5899, 296, 4060, 30, 529, 4278, 1995, 87, 18, 37, 11, 738, 1014, 67, 529, 16, 296, 4060, 30, 9309, 4278, 296, 2121, 17, 2827, 11, 6792, 415, 21, 273, 12031, 18, 1676, 1046, 12, 292, 16, 296, 4060, 30, 2121, 17, 2827, 17, 4738, 2187, 5885, 5899, 296, 4060, 30, 2827, 17, 2819, 4278, 296, 24, 18, 11984, 7670, 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, 3757, 67, 3482, 67, 1098, 12, 2890, 16, 756, 4672, 468, 2890, 18, 5457, 18, 266, 7988, 18, 4148, 67, 6420, 273, 404, 468, 2890, 18, 5457, 18, 266, 7988, 18, 7331, 67, 30971, 12, 2890, 18, 4500, 67, 2150, 13, 1014, 67, 529, 273, 296, 16114, 4060, 17, 2121, 3482, 11, 468, 468, 6654, 5859, 5687, 309, 486, 365, 18, 3482, 7032, 80, 395, 3872, 67, 11168, 30, 365, 18, 3482, 7032, 80, 395, 3872, 67, 11168, 273, 1053, 415, 273, 12031, 18, 1676, 1046, 12, 2890, 18, 5854, 4941, 67, 10218, 16, 296, 4060, 30, 4060, 2187, 5885, 5899, 296, 4060, 30, 529, 4278, 1014, 67, 529, 16, 296, 4060, 30, 9309, 4278, 296, 2121, 11, 2 ]
this = apply(_quickfix.new_NoDates, args)
this = _quickfix.new_NoDates(*args)
def __init__(self, *args): this = apply(_quickfix.new_NoDates, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 2279, 15578, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 2279, 15578, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 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 ]
return ValuesView(self)
return [self[key] for key in self]
def values(self): return ValuesView(self)
3cb32c7f8cfe99bcfd3ef64776c34ee70e1049c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/3cb32c7f8cfe99bcfd3ef64776c34ee70e1049c8/_abcoll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 924, 12, 2890, 4672, 327, 6876, 1767, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 924, 12, 2890, 4672, 327, 6876, 1767, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
rml2 = rml_parser._parse(rml_dom, objs, data, header=self.header)
rml2 = rml_parser._parse(rml_dom, objs, data, header=want_header)
def create(self, cr, uid, ids, data, context=None): logo = None if not context: context={} context = context.copy()
6624124758ebd759cd9b4edda57eebdd213305a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/6624124758ebd759cd9b4edda57eebdd213305a8/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036, 4672, 19128, 273, 599, 309, 486, 819, 30, 819, 12938, 819, 273, 819, 18, 3530, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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12938, 819, 273, 819, 18, 3530, 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 ]
self.assertEquals(transcoder.pipeline_description, 'uiuiuiui')
self.assertEquals(transcoder.pipeline_description, 'uiui%suiui')
def test_is_loading_one_process_from_config(self): my_config = {'name': 'megaprocess', 'pipeline': 'uiuiuiui', 'type': 'process', 'target': 'yay'} coherence = self.CoherenceStump(transcoder=my_config) self.manager = TranscoderManager(coherence) self._check_for_transcoders(known_transcoders) transcoder = self.manager.select('megaprocess', 'http://another/uri') self.assertTrue(isinstance(transcoder, ExternalProcessPipeline))
57524504b476672a4f25a706269d224fefb63a33 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/57524504b476672a4f25a706269d224fefb63a33/test_transcoder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 291, 67, 15174, 67, 476, 67, 2567, 67, 2080, 67, 1425, 12, 2890, 4672, 3399, 67, 1425, 273, 13666, 529, 4278, 296, 81, 1332, 438, 16127, 2187, 296, 14511, 4278, 296, 4881, 4881, 4881, 4881, 2187, 296, 723, 4278, 296, 2567, 2187, 296, 3299, 4278, 296, 93, 528, 11, 97, 1825, 1614, 802, 273, 365, 18, 4249, 1614, 802, 510, 2801, 12, 2338, 3396, 33, 4811, 67, 1425, 13, 365, 18, 4181, 273, 2604, 3396, 1318, 12, 2894, 1614, 802, 13, 365, 6315, 1893, 67, 1884, 67, 2338, 1559, 414, 12, 2994, 67, 2338, 1559, 414, 13, 906, 3396, 273, 365, 18, 4181,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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, 1842, 67, 291, 67, 15174, 67, 476, 67, 2567, 67, 2080, 67, 1425, 12, 2890, 4672, 3399, 67, 1425, 273, 13666, 529, 4278, 296, 81, 1332, 438, 16127, 2187, 296, 14511, 4278, 296, 4881, 4881, 4881, 4881, 2187, 296, 723, 4278, 296, 2567, 2187, 296, 3299, 4278, 296, 93, 528, 11, 97, 1825, 1614, 802, 273, 365, 18, 4249, 1614, 802, 510, 2801, 12, 2338, 3396, 33, 4811, 67, 1425, 13, 365, 18, 4181, 273, 2604, 3396, 1318, 12, 2894, 1614, 802, 13, 365, 6315, 1893, 67, 1884, 67, 2338, 1559, 414, 12, 2994, 67, 2338, 1559, 414, 13, 906, 3396, 273, 365, 18, 4181, 18, 4025, 2668, 81, 1332, 438, 16127, 2187, 296, 2505, 2207, 304, 3011, 2 ]
cur[i] = ex[m].native()
cur[i] = float(ex[m].native())
def updateTables(self): if self.textData: if textCorpusModul: data = (self.attrRow == 'document' and [self.data] or [CategoryDocument(self.data).dataCD])[0] else: data = self.data metas = data.domain.getmetas() lenMetas = len(metas) caList = [] for ex in data: cur = [0] * lenMetas for i, m in zip(range(lenMetas), metas.keys()): try: cur[i] = ex[m].native() except: cur[i] = 0 caList.append(cur) if not self.CAloaded: self.CA = orngCA.CA(caList) try: self.tipsR = [ex['name'].native() for ex in data] self.rowCategories = [(ex['name'].native(), ex['category'].native()) for ex in data] self.catColors = {} col = 0 colors = [0, 2, 3, 5, 6, 12] for ex in data: if ex['category'].native() not in self.catColors.keys(): self.catColors[ex['category'].native()] = colors[col] col = (col + 1) % len(colors) except: self.tipsR = [ex.name for ex in data] self.rowCategories = [(ex.name, ex[-1].native()) for ex in data] self.catColors = {} col = 0 colors = [0, 2, 3, 5, 6, 12] for ex in data: if ex['category'].native() not in self.catColors.keys(): self.catColors[ex['category'].native()] = colors[col] col = (col + 1) % len(colors) self.tipsC = [a.name for a in data.domain.getmetas().values()] else: ca = orange.ContingencyAttrAttr(self.attrRow, self.attrCol, self.data) caList = [[col for col in row] for row in ca] if not self.CAloaded: self.CA = orngCA.CA(caList) self.tipsR = [s for s, v in ca.outerDistribution.items()] self.tipsC = [s for s, v in ca.innerDistribution.items()] self.rowCategories = [(ex[1].native(), "Row points") for ex in self.data] self.rowCategories = list(dict(self.rowCategories).items()) self.catColors = {"Row points": 0} del ca self.rowSlider.setMinValue(1) self.rowSlider.setMaxValue(len(self.tipsR)) self.percRow = len(self.tipsR) > 100 and 0.5 * len(self.tipsR) or len(self.tipsR) self.colSlider.setMinValue(1) self.colSlider.setMaxValue(len(self.tipsC)) self.percCol = len(self.tipsC) > 100 and 0.5 * len(self.tipsC) or len(self.tipsC) self.initAxesValues() self.tabsMain.showPage(self.graph) self.calcRadius() del caList
f33367f62681dbd2cca39410cef0890fc96b143b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/f33367f62681dbd2cca39410cef0890fc96b143b/OWCorrAnalysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 6905, 12, 2890, 4672, 309, 365, 18, 955, 751, 30, 309, 977, 6217, 9861, 1739, 332, 30, 501, 273, 261, 2890, 18, 1747, 1999, 422, 296, 5457, 11, 471, 306, 2890, 18, 892, 65, 578, 306, 4457, 2519, 12, 2890, 18, 892, 2934, 892, 10160, 5717, 63, 20, 65, 469, 30, 501, 273, 365, 18, 892, 21232, 273, 501, 18, 4308, 18, 588, 10578, 345, 1435, 562, 30853, 273, 562, 12, 10578, 345, 13, 3474, 682, 273, 5378, 364, 431, 316, 501, 30, 662, 273, 306, 20, 65, 380, 562, 30853, 364, 277, 16, 312, 316, 3144, 12, 3676, 12, 1897, 30853, 3631, 21232, 18, 2452, 1435, 4672, 775, 30, 662, 63, 77, 65, 273, 1431, 12, 338, 63, 81, 8009, 13635, 10756, 1335, 30, 662, 63, 77, 65, 273, 374, 3474, 682, 18, 6923, 12, 1397, 13, 309, 486, 365, 18, 3587, 4230, 30, 365, 18, 3587, 273, 578, 3368, 3587, 18, 3587, 12, 5353, 682, 13, 775, 30, 365, 18, 88, 7146, 54, 273, 306, 338, 3292, 529, 29489, 13635, 1435, 364, 431, 316, 501, 65, 365, 18, 492, 10487, 273, 306, 12, 338, 3292, 529, 29489, 13635, 9334, 431, 3292, 4743, 29489, 13635, 10756, 364, 431, 316, 501, 65, 365, 18, 2574, 12570, 273, 2618, 645, 273, 374, 5740, 273, 306, 20, 16, 576, 16, 890, 16, 1381, 16, 1666, 16, 2593, 65, 364, 431, 316, 501, 30, 309, 431, 3292, 4743, 29489, 13635, 1435, 486, 316, 365, 18, 2574, 12570, 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, 1089, 6905, 12, 2890, 4672, 309, 365, 18, 955, 751, 30, 309, 977, 6217, 9861, 1739, 332, 30, 501, 273, 261, 2890, 18, 1747, 1999, 422, 296, 5457, 11, 471, 306, 2890, 18, 892, 65, 578, 306, 4457, 2519, 12, 2890, 18, 892, 2934, 892, 10160, 5717, 63, 20, 65, 469, 30, 501, 273, 365, 18, 892, 21232, 273, 501, 18, 4308, 18, 588, 10578, 345, 1435, 562, 30853, 273, 562, 12, 10578, 345, 13, 3474, 682, 273, 5378, 364, 431, 316, 501, 30, 662, 273, 306, 20, 65, 380, 562, 30853, 364, 277, 16, 312, 316, 3144, 12, 3676, 12, 1897, 30853, 3631, 21232, 18, 2452, 1435, 4672, 775, 30, 662, 63, 77, 65, 273, 1431, 12, 2 ]
ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context)
if not name: ids = self.search(cr, user, args, limit=limit, context=context) else: ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context)
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80): if not args: args=[] if not context: context={} if context.get('contact_display', 'contact')=='partner': ids = self.search(cr, user, [('partner_id',operator,name)], limit=limit, context=context) else: ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context) if not ids: ids = self.search(cr, user, [('city',operator,name)] + args, limit=limit, context=context) if name: ids += self.search(cr, user, [('name',operator,name)] + args, limit=limit, context=context) ids += self.search(cr, user, [('partner_id',operator,name)] + args, limit=limit, context=context) return self.name_get(cr, user, ids, context=context)
ac8f45250589152596e7f6e249a4d12fedc84fcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/ac8f45250589152596e7f6e249a4d12fedc84fcb/partner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 16, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 3672, 4672, 309, 486, 833, 30, 833, 33, 8526, 309, 486, 819, 30, 819, 12938, 309, 819, 18, 588, 2668, 8994, 67, 5417, 2187, 296, 8994, 6134, 18920, 31993, 4278, 3258, 273, 365, 18, 3072, 12, 3353, 16, 729, 16, 306, 2668, 31993, 67, 350, 2187, 9497, 16, 529, 13, 6487, 1800, 33, 3595, 16, 819, 33, 2472, 13, 469, 30, 309, 486, 508, 30, 3258, 273, 365, 18, 3072, 12, 3353, 16, 729, 16, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 469, 30, 3258, 273, 365, 18, 3072, 12, 3353, 16, 729, 16, 306, 2668, 4450, 17023, 33, 2187, 529, 25887, 397, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 309, 486, 3258, 30, 3258, 273, 365, 18, 3072, 12, 3353, 16, 729, 16, 306, 2668, 14240, 2187, 9497, 16, 529, 25887, 397, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 309, 508, 30, 3258, 1011, 365, 18, 3072, 12, 3353, 16, 729, 16, 306, 2668, 529, 2187, 9497, 16, 529, 25887, 397, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 3258, 1011, 365, 18, 3072, 12, 3353, 16, 729, 16, 306, 2668, 31993, 67, 350, 2187, 9497, 16, 529, 25887, 397, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 327, 365, 18, 529, 67, 588, 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, 508, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 16, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 3672, 4672, 309, 486, 833, 30, 833, 33, 8526, 309, 486, 819, 30, 819, 12938, 309, 819, 18, 588, 2668, 8994, 67, 5417, 2187, 296, 8994, 6134, 18920, 31993, 4278, 3258, 273, 365, 18, 3072, 12, 3353, 16, 729, 16, 306, 2668, 31993, 67, 350, 2187, 9497, 16, 529, 13, 6487, 1800, 33, 3595, 16, 819, 33, 2472, 13, 469, 30, 309, 486, 508, 30, 3258, 273, 365, 18, 3072, 12, 3353, 16, 729, 16, 833, 16, 1800, 33, 3595, 16, 819, 33, 2472, 13, 469, 30, 3258, 273, 365, 18, 2 ]
def __init__(self, tag, title="", secnum="1", pagenum="1", level=2):
def __init__(self, tag, title="", secnum="1", pagenum="1", level=2, open_by_default=False):
def __init__(self, tag, title="", secnum="1", pagenum="1", level=2): markup.page.__init__(self, mode="strict_html") self.pagenum = pagenum self.secnum = secnum self._title = title self.sections = {} self.section_ids = [] self.level = level self.tag = tag self.id = tag + self.secnum self.tables = 0 self.add('<div class="contenu"><h%d id="toggle_%s" onclick="javascript:toggle2(\'div_%s\', \'toggle_%s\');"> %s.%s %s </h%d>' % (level, self.id, secnum, self.id, pagenum, secnum, title, level) ) self.div(id="div_"+secnum , style='display:none;')
0a9ef6e90647a2f6188dcd1101d39b03cb8c8ec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/0a9ef6e90647a2f6188dcd1101d39b03cb8c8ec9/cbcwebpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1047, 16, 2077, 1546, 3113, 1428, 2107, 1546, 21, 3113, 4262, 7924, 1546, 21, 3113, 1801, 33, 22, 16, 1696, 67, 1637, 67, 1886, 33, 8381, 4672, 9813, 18, 2433, 16186, 2738, 972, 12, 2890, 16, 1965, 1546, 13948, 67, 2620, 7923, 365, 18, 9095, 7924, 273, 4262, 7924, 365, 18, 3321, 2107, 273, 1428, 2107, 365, 6315, 2649, 273, 2077, 365, 18, 11657, 273, 2618, 365, 18, 3464, 67, 2232, 273, 5378, 365, 18, 2815, 273, 1801, 365, 18, 2692, 273, 1047, 365, 18, 350, 273, 1047, 397, 365, 18, 3321, 2107, 365, 18, 9373, 273, 374, 365, 18, 1289, 2668, 32, 2892, 667, 1546, 1213, 2104, 14050, 76, 9, 72, 612, 1546, 14401, 10185, 87, 6, 22324, 1546, 11242, 30, 14401, 22, 21923, 2892, 10185, 87, 22369, 7164, 14401, 10185, 87, 3730, 1769, 6441, 738, 87, 7866, 87, 738, 87, 7765, 76, 9, 72, 1870, 738, 261, 2815, 16, 365, 18, 350, 16, 1428, 2107, 16, 365, 18, 350, 16, 4262, 7924, 16, 1428, 2107, 16, 2077, 16, 1801, 13, 262, 365, 18, 2892, 12, 350, 1546, 2892, 9548, 15, 3321, 2107, 269, 2154, 2218, 5417, 30, 6102, 4359, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1047, 16, 2077, 1546, 3113, 1428, 2107, 1546, 21, 3113, 4262, 7924, 1546, 21, 3113, 1801, 33, 22, 16, 1696, 67, 1637, 67, 1886, 33, 8381, 4672, 9813, 18, 2433, 16186, 2738, 972, 12, 2890, 16, 1965, 1546, 13948, 67, 2620, 7923, 365, 18, 9095, 7924, 273, 4262, 7924, 365, 18, 3321, 2107, 273, 1428, 2107, 365, 6315, 2649, 273, 2077, 365, 18, 11657, 273, 2618, 365, 18, 3464, 67, 2232, 273, 5378, 365, 18, 2815, 273, 1801, 365, 18, 2692, 273, 1047, 365, 18, 350, 273, 1047, 397, 365, 18, 3321, 2107, 365, 18, 9373, 273, 374, 365, 18, 1289, 2668, 32, 2892, 667, 1546, 1213, 2104, 14050, 76, 9, 72, 2 ]
for product_id in data['form']['products'][0][2]: value = sale_line_obj.product_id_change(cr, uid, [], pricelist, product_id, qty=1, partner_id=partner_id, fiscal_position=fpos)['value'] value['product_id'] = product_id value['order_id'] = new_id value['tax_id'] = [(6,0,value['tax_id'])] sale_line_obj.create(cr, uid, value)
if data['form']['products']: for product_id in data['form']['products'][0][2]: value = { 'price_unit': 0.0, 'product_id': product_id, 'order_id': new_id, } value.update( sale_line_obj.product_id_change(cr, uid, [], pricelist,product_id, qty=1, partner_id=partner_id, fiscal_position=fpos)['value'] ) value['tax_id'] = [(6,0,value['tax_id'])] sale_line_obj.create(cr, uid, value)
def _makeOrder(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) mod_obj = pool.get('ir.model.data') result = mod_obj._get_id(cr, uid, 'sale', 'view_sales_order_filter') id = mod_obj.read(cr, uid, result, ['res_id']) case_obj = pool.get('crm.opportunity') sale_obj = pool.get('sale.order') partner_obj = pool.get('res.partner') sale_line_obj = pool.get('sale.order.line')
466e06e60c426d01b2518766bf2cc94ec66ea26f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/466e06e60c426d01b2518766bf2cc94ec66ea26f/makesale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 2448, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 681, 67, 2603, 273, 2845, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 563, 273, 681, 67, 2603, 6315, 588, 67, 350, 12, 3353, 16, 4555, 16, 296, 87, 5349, 2187, 296, 1945, 67, 87, 5408, 67, 1019, 67, 2188, 6134, 612, 273, 681, 67, 2603, 18, 896, 12, 3353, 16, 4555, 16, 563, 16, 10228, 455, 67, 350, 19486, 648, 67, 2603, 273, 2845, 18, 588, 2668, 3353, 81, 18, 556, 655, 13352, 6134, 272, 5349, 67, 2603, 273, 2845, 18, 588, 2668, 87, 5349, 18, 1019, 6134, 19170, 67, 2603, 273, 2845, 18, 588, 2668, 455, 18, 31993, 6134, 272, 5349, 67, 1369, 67, 2603, 273, 2845, 18, 588, 2668, 87, 5349, 18, 1019, 18, 1369, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 3353, 16, 4555, 16, 296, 87, 5349, 2187, 296, 1945, 67, 87, 5408, 67, 1019, 67, 2188, 6134, 612, 273, 681, 67, 2603, 18, 896, 12, 3353, 16, 4555, 16, 563, 16, 10228, 455, 67, 350, 19486, 648, 67, 2603, 273, 2845, 18, 588, 2668, 3353, 81, 18, 556, 655, 13352, 6134, 272, 5349, 67, 2603, 273, 2845, 18, 588, 2668, 87, 5349, 18, 1019, 6134, 19170, 2 ]
log.err("Read-only property %s: %s" % (property.sname(),))
log.err("Read-only property %s" % (property.sname(),))
def writeProperty(self, property): """ See L{IDAVResource.writeProperty}. """ try: self.getProperties()[property.qname()] = property except ValueError: log.err("Read-only property %s: %s" % (property.sname(),)) raise HTTPError(responsecode.CONFLICT)
f8bd9d31a352ca1ed7b7d0ca4e56449094872913 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f8bd9d31a352ca1ed7b7d0ca4e56449094872913/resource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1396, 12, 2890, 16, 1272, 4672, 3536, 2164, 511, 95, 734, 5856, 1420, 18, 2626, 1396, 5496, 3536, 775, 30, 365, 18, 588, 2297, 1435, 63, 4468, 18, 85, 529, 1435, 65, 273, 1272, 1335, 2068, 30, 613, 18, 370, 2932, 1994, 17, 3700, 1272, 738, 87, 6, 738, 261, 4468, 18, 87, 529, 9334, 3719, 1002, 14415, 12, 2740, 710, 18, 14497, 29280, 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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0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1396, 12, 2890, 16, 1272, 4672, 3536, 2164, 511, 95, 734, 5856, 1420, 18, 2626, 1396, 5496, 3536, 775, 30, 365, 18, 588, 2297, 1435, 63, 4468, 18, 85, 529, 1435, 65, 273, 1272, 1335, 2068, 30, 613, 18, 370, 2932, 1994, 17, 3700, 1272, 738, 87, 6, 738, 261, 4468, 18, 87, 529, 9334, 3719, 1002, 14415, 12, 2740, 710, 18, 14497, 29280, 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 ]
self.draw_openclose_lines = debug_pref("MT: openclose lines", self._openclose_lines_choice,
self.draw_openclose_lines = debug_pref("Model Tree: openclose lines", self._openclose_lines_choice,
def _setup_openclose_style(self): "[private] As an optimization, choose the openclose icons (etc) just once before drawing." style = debug_pref("MT: openclose icon style", self._icon_style_choice, non_debug = True, prefs_key = "A9/MT openclose icon style") if style == 'mac': self.collapsed_mtnode_icon = self.mac_collapsed self.expanded_mtnode_icon = self.mac_expanded else: self.collapsed_mtnode_icon = self.win_collapsed self.expanded_mtnode_icon = self.win_expanded
803f5c9bed45783a867e020fe3dc0133f196ec32 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/803f5c9bed45783a867e020fe3dc0133f196ec32/modelTreeGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 556, 1331, 2061, 67, 4060, 12, 2890, 4672, 5158, 1152, 65, 2970, 392, 14850, 16, 9876, 326, 1061, 1331, 2061, 17455, 261, 14175, 13, 2537, 3647, 1865, 16327, 1199, 225, 2154, 273, 1198, 67, 25724, 2932, 6152, 30, 1061, 1331, 2061, 4126, 2154, 3113, 365, 6315, 3950, 67, 4060, 67, 11569, 16, 1661, 67, 4148, 273, 1053, 16, 15503, 67, 856, 273, 315, 37, 29, 19, 6152, 1061, 1331, 2061, 4126, 2154, 7923, 309, 2154, 422, 296, 5821, 4278, 365, 18, 1293, 13886, 67, 1010, 2159, 67, 3950, 273, 365, 18, 5821, 67, 1293, 13886, 365, 18, 17336, 67, 1010, 2159, 67, 3950, 273, 365, 18, 5821, 67, 17336, 469, 30, 365, 18, 1293, 13886, 67, 1010, 2159, 67, 3950, 273, 365, 18, 8082, 67, 1293, 13886, 365, 18, 17336, 67, 1010, 2159, 67, 3950, 273, 365, 18, 8082, 67, 17336, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 556, 1331, 2061, 67, 4060, 12, 2890, 4672, 5158, 1152, 65, 2970, 392, 14850, 16, 9876, 326, 1061, 1331, 2061, 17455, 261, 14175, 13, 2537, 3647, 1865, 16327, 1199, 225, 2154, 273, 1198, 67, 25724, 2932, 6152, 30, 1061, 1331, 2061, 4126, 2154, 3113, 365, 6315, 3950, 67, 4060, 67, 11569, 16, 1661, 67, 4148, 273, 1053, 16, 15503, 67, 856, 273, 315, 37, 29, 19, 6152, 1061, 1331, 2061, 4126, 2154, 7923, 309, 2154, 422, 296, 5821, 4278, 365, 18, 1293, 13886, 67, 1010, 2159, 67, 3950, 273, 365, 18, 5821, 67, 1293, 13886, 365, 18, 17336, 67, 1010, 2159, 67, 3950, 273, 365, 18, 5821, 67, 17336, 469, 30, 365, 18, 1293, 13886, 2 ]
self.getRouter(oldIc).destroySession()
if oldSf: oldSf = omero.api.ServiceFactoryPrx.uncheckedCast(oldSf.ice_oneway()) oldSf.destroy()
def closeSession(self): """ Closes the Router connection created by createSession(). Due to a bug in Ice, only one connection is allowed per communicator, so we also destroy the communicator. """
8370c24d06f3fd845a90773dc637748ed3817b09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/8370c24d06f3fd845a90773dc637748ed3817b09/clients.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27578, 12, 2890, 4672, 3536, 22442, 2420, 326, 9703, 1459, 2522, 635, 752, 2157, 7675, 463, 344, 358, 279, 7934, 316, 467, 311, 16, 1338, 1245, 1459, 353, 2935, 1534, 8391, 8844, 16, 1427, 732, 2546, 5546, 326, 8391, 8844, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27578, 12, 2890, 4672, 3536, 22442, 2420, 326, 9703, 1459, 2522, 635, 752, 2157, 7675, 463, 344, 358, 279, 7934, 316, 467, 311, 16, 1338, 1245, 1459, 353, 2935, 1534, 8391, 8844, 16, 1427, 732, 2546, 5546, 326, 8391, 8844, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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._workerThreads = []
def __init__(self, bind_addr, wsgi_app, numthreads=10, server_name=None, max=-1, request_queue_size=5, timeout=10, shutdown_timeout=5): self.requests = Queue.Queue(max) if callable(wsgi_app): # We've been handed a single wsgi_app, in CP-2.1 style. # Assume it's mounted at "". self.wsgi_app = wsgi_app else: # We've been handed a list of (path_prefix, wsgi_app) tuples, # so that the server can call different wsgi_apps, and also # correctly set SCRIPT_NAME. self.wsgi_app = WSGIPathInfoDispatcher(wsgi_app) self.bind_addr = bind_addr self.numthreads = numthreads or 1 if not server_name: server_name = socket.gethostname() self.server_name = server_name self.request_queue_size = request_queue_size self._workerThreads = [] self.timeout = timeout self.shutdown_timeout = shutdown_timeout
2d230d71855f0afe3a9190e286cfb7edb5fabb4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/82/2d230d71855f0afe3a9190e286cfb7edb5fabb4a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1993, 67, 4793, 16, 341, 17537, 67, 2910, 16, 818, 12495, 33, 2163, 16, 1438, 67, 529, 33, 7036, 16, 943, 29711, 21, 16, 590, 67, 4000, 67, 1467, 33, 25, 16, 2021, 33, 2163, 16, 5731, 67, 4538, 33, 25, 4672, 365, 18, 11420, 273, 7530, 18, 3183, 12, 1896, 13, 225, 309, 4140, 12, 28539, 67, 2910, 4672, 468, 1660, 8081, 2118, 27309, 279, 2202, 341, 17537, 67, 2910, 16, 316, 5181, 17, 22, 18, 21, 2154, 18, 468, 15983, 518, 1807, 20919, 622, 1408, 18, 365, 18, 28539, 67, 2910, 273, 341, 17537, 67, 2910, 469, 30, 468, 1660, 8081, 2118, 27309, 279, 666, 434, 261, 803, 67, 3239, 16, 341, 17537, 67, 2910, 13, 10384, 16, 468, 1427, 716, 326, 1438, 848, 745, 3775, 341, 17537, 67, 11411, 16, 471, 2546, 468, 8783, 444, 22812, 67, 1985, 18, 365, 18, 28539, 67, 2910, 273, 7649, 13797, 743, 966, 6681, 12, 28539, 67, 2910, 13, 225, 365, 18, 4376, 67, 4793, 273, 1993, 67, 4793, 365, 18, 2107, 12495, 273, 818, 12495, 578, 404, 309, 486, 1438, 67, 529, 30, 1438, 67, 529, 273, 2987, 18, 75, 546, 669, 529, 1435, 365, 18, 3567, 67, 529, 273, 1438, 67, 529, 365, 18, 2293, 67, 4000, 67, 1467, 273, 590, 67, 4000, 67, 1467, 225, 365, 18, 4538, 273, 2021, 365, 18, 15132, 67, 4538, 273, 5731, 67, 4538, 225, 2, 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, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1993, 67, 4793, 16, 341, 17537, 67, 2910, 16, 818, 12495, 33, 2163, 16, 1438, 67, 529, 33, 7036, 16, 943, 29711, 21, 16, 590, 67, 4000, 67, 1467, 33, 25, 16, 2021, 33, 2163, 16, 5731, 67, 4538, 33, 25, 4672, 365, 18, 11420, 273, 7530, 18, 3183, 12, 1896, 13, 225, 309, 4140, 12, 28539, 67, 2910, 4672, 468, 1660, 8081, 2118, 27309, 279, 2202, 341, 17537, 67, 2910, 16, 316, 5181, 17, 22, 18, 21, 2154, 18, 468, 15983, 518, 1807, 20919, 622, 1408, 18, 365, 18, 28539, 67, 2910, 273, 341, 17537, 67, 2910, 469, 30, 468, 1660, 8081, 2118, 27309, 279, 666, 434, 261, 803, 67, 3239, 2 ]
def warning(msg, *args): "Log a warning" m = "warning: " + msg logger.warning(m, *args)
def warning(*args): "Log a warning" logger.warning(*args)
def warning(msg, *args): "Log a warning" m = "warning: " + msg logger.warning(m, *args)
4313555fb8857b99f7f3acf7f4aecec3c355fd11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4313555fb8857b99f7f3acf7f4aecec3c355fd11/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3436, 30857, 1968, 4672, 315, 1343, 279, 3436, 6, 1194, 18, 8551, 30857, 1968, 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, 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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, 3436, 30857, 1968, 4672, 315, 1343, 279, 3436, 6, 1194, 18, 8551, 30857, 1968, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
],
]
def __init__(self): sql_up = [
1788f8f226d095d17c13658bb193fd9fadb1b46b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/1788f8f226d095d17c13658bb193fd9fadb1b46b/050_flatpage_about_page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1847, 67, 416, 273, 306, 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,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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, 1001, 2738, 972, 12, 2890, 4672, 1847, 67, 416, 273, 306, 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 ]
configure_pegasus_mail(pmail_ini_dir)
def configure_pocomail(): import win32api import win32con key = "Software\\Poco Systems Inc" pop_proxy = pop_proxy_port smtp_proxy = smtp_proxy_port reg = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, key) subkey_name = "%s\\%s" % (key, win32api.RegEnumKey(reg, 0)) reg = win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER, subkey_name) pocomail_path = win32api.RegQueryValueEx(reg, "Path")[0] pocomail_accounts_file = os.path.join(pocomail_path, "accounts.ini") if os.path.exists(pocomail_accounts_file): f = open(pocomail_accounts_file, "r") accountName = "" pocomail_accounts = { } # Builds the dictionary with all the existing accounts. for line in f.readlines(): line = line.rstrip('\n\r') if line == '': continue if line[0] == '[' and line[-1] == ']': accountName = line[1:-1] pocomail_accounts[accountName] = { } else: separator = line.find('=') optionName = line[:separator] optionValue = line[separator + 1:] if optionName == "POPServer": pop3 = optionValue.split(':') if len(pop3) == 1: pop3.append(110) server = "%s:%s" % tuple(pop3) proxy = pop_proxy pop_proxy = move_to_next_free_port(pop_proxy) if not server in options["pop3proxy", "remote_servers"]: options["pop3proxy", "remote_servers"] += (server,) options["pop3proxy", "listen_ports"] += (proxy,) else: serverIndex = 0 for remoteServer in options["pop3proxy", "remote_servers"]: if remoteServer == server: break serverIndex += 1 proxy = options["pop3proxy", "listen_ports"][serverIndex] optionValue = "%s:%s" % ('localhost', proxy) pocomail_accounts[accountName][optionName] = optionValue f.close() f = open(pocomail_accounts_file, "w") for accountName in pocomail_accounts.keys(): f.write('[' + accountName + ']\n') for optionName, optionValue in pocomail_accounts[accountName].items(): f.write("%s=%s\n" % (optionName, optionValue)) f.write('\n') f.close() options.update_file(optionsPathname) # Add a filter to pocomail pocomail_filters_file = os.path.join(pocomail_path, "filters.ini") if os.path.exists(pocomail_filters_file): f = open(pocomail_filters_file, "r") pocomail_filters = { } filterName = "" for line in f.readlines(): line = line.rstrip('\n\r') if line == '': continue if line[0] == '[' and line[-1] == ']': filterName = line[1:-1] pocomail_filters[filterName] = [] elif line[0] != '{': pocomail_filters[filterName].append(line) f.close() spamBayesFilter = 'spam,X-Spambayes-Classification,move,' \ '"Junk Mail",0,0,,,0,,,move,In,0,0,,0,,,' \ 'move,In,0,0,,0,,,move,In,0,0,,0,,,move,' \ 'In,0,0,,0,,,move,In,0,0,1,0' if pocomail_filters.has_key("Incoming") and \ spamBayesFilter not in pocomail_filters["Incoming"]: pocomail_filters["Incoming"].append(spamBayesFilter) f = open(pocomail_filters_file, "w") f.write('{ Filter list generated by PocoMail 3.01 (1661)' \ '- Licensed Version}\n') for filterName in pocomail_filters.keys(): f.write('\n[' + filterName + ']\n') for filter in pocomail_filters[filterName]: f.write(filter + '\n') f.close()
3d5d9a7825018bb1a6aa54d79d0bb20495581599 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/3d5d9a7825018bb1a6aa54d79d0bb20495581599/autoconfigure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 67, 84, 9970, 671, 13332, 1930, 5657, 1578, 2425, 1930, 5657, 1578, 591, 225, 498, 273, 315, 21742, 1695, 52, 29571, 30558, 15090, 6, 225, 1843, 67, 5656, 225, 273, 1843, 67, 5656, 67, 655, 17660, 67, 5656, 273, 17660, 67, 5656, 67, 655, 225, 960, 6647, 273, 5657, 1578, 2425, 18, 1617, 3678, 653, 424, 12, 8082, 1578, 591, 18, 44, 3297, 67, 15487, 67, 4714, 16, 498, 13, 21949, 67, 529, 282, 273, 2213, 87, 1695, 9, 87, 6, 738, 261, 856, 16, 5657, 1578, 2425, 18, 1617, 3572, 653, 12, 1574, 16, 374, 3719, 960, 6647, 273, 5657, 1578, 2425, 18, 1617, 3678, 653, 424, 12, 8082, 1578, 591, 18, 44, 3297, 67, 15487, 67, 4714, 16, 21949, 67, 529, 13, 293, 9970, 671, 67, 803, 273, 5657, 1578, 2425, 18, 1617, 1138, 620, 424, 12, 1574, 16, 315, 743, 7923, 63, 20, 65, 225, 293, 9970, 671, 67, 13739, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 84, 9970, 671, 67, 803, 16, 315, 13739, 18, 8767, 7923, 225, 309, 1140, 18, 803, 18, 1808, 12, 84, 9970, 671, 67, 13739, 67, 768, 4672, 284, 273, 1696, 12, 84, 9970, 671, 67, 13739, 67, 768, 16, 315, 86, 7923, 225, 15862, 4202, 273, 1408, 293, 9970, 671, 67, 13739, 273, 288, 289, 225, 468, 3998, 87, 326, 3880, 598, 777, 326, 2062, 9484, 18, 364, 980, 316, 284, 18, 896, 3548, 13332, 980, 273, 980, 18, 86, 6406, 2668, 64, 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, 5068, 67, 84, 9970, 671, 13332, 1930, 5657, 1578, 2425, 1930, 5657, 1578, 591, 225, 498, 273, 315, 21742, 1695, 52, 29571, 30558, 15090, 6, 225, 1843, 67, 5656, 225, 273, 1843, 67, 5656, 67, 655, 17660, 67, 5656, 273, 17660, 67, 5656, 67, 655, 225, 960, 6647, 273, 5657, 1578, 2425, 18, 1617, 3678, 653, 424, 12, 8082, 1578, 591, 18, 44, 3297, 67, 15487, 67, 4714, 16, 498, 13, 21949, 67, 529, 282, 273, 2213, 87, 1695, 9, 87, 6, 738, 261, 856, 16, 5657, 1578, 2425, 18, 1617, 3572, 653, 12, 1574, 16, 374, 3719, 960, 6647, 273, 5657, 1578, 2425, 18, 1617, 3678, 653, 424, 12, 8082, 1578, 591, 18, 44, 3297, 67, 15487, 2 ]
details -- A string with more information about the error.
debug -- A string with more debug information about the error.
def OnProjectGstError(self, project, error, details): """ Callback for when the project sends a gstreamer error message from the pipeline. Parameters: project -- The project instance that send the signal. error -- The type of error that occurred as a string. details -- A string with more information about the error. """ if not error: error = _("A Gstreamer error has occurred") #outrostring = _("Please report this error to the Jokosher developers at:\nhttps://bugs.launchpad.net/jokosher\nYou can also get help from:\nhttp://www.jokosher.org/forums/") self.gstreamerErrorMessages.append((error, details)) # invalidate the second error pane since the number it displays has changed if self.moreErrorsMessageArea: self.vbox.remove(self.moreErrorsMessageArea) self.moreErrorsMessageArea = None self.ReloadErrorMessages()
adb75921b66a6695c73cc7edcf6394a736a7ff1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10033/adb75921b66a6695c73cc7edcf6394a736a7ff1e/RecordingView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4109, 43, 334, 668, 12, 2890, 16, 1984, 16, 555, 16, 3189, 4672, 3536, 8444, 364, 1347, 326, 1984, 9573, 279, 314, 3256, 264, 555, 883, 628, 326, 5873, 18, 225, 7012, 30, 1984, 1493, 1021, 1984, 791, 716, 1366, 326, 4277, 18, 555, 1493, 1021, 618, 434, 555, 716, 7841, 487, 279, 533, 18, 1198, 1493, 432, 533, 598, 1898, 1198, 1779, 2973, 326, 555, 18, 3536, 309, 486, 555, 30, 555, 273, 389, 2932, 37, 611, 3256, 264, 555, 711, 7841, 7923, 468, 659, 303, 1080, 273, 389, 2932, 8496, 2605, 333, 555, 358, 326, 804, 601, 538, 1614, 21701, 622, 5581, 82, 4528, 2207, 19381, 18, 20738, 6982, 18, 2758, 19, 78, 601, 538, 1614, 64, 82, 6225, 848, 2546, 336, 2809, 628, 5581, 82, 2505, 2207, 5591, 18, 78, 601, 538, 1614, 18, 3341, 19, 11725, 87, 4898, 13, 225, 365, 18, 75, 3256, 264, 668, 5058, 18, 6923, 12443, 1636, 16, 3189, 3719, 468, 11587, 326, 2205, 555, 13618, 3241, 326, 1300, 518, 22461, 711, 3550, 309, 365, 18, 10161, 4229, 1079, 5484, 30, 365, 18, 90, 2147, 18, 4479, 12, 2890, 18, 10161, 4229, 1079, 5484, 13, 365, 18, 10161, 4229, 1079, 5484, 273, 599, 365, 18, 13013, 668, 5058, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4109, 43, 334, 668, 12, 2890, 16, 1984, 16, 555, 16, 3189, 4672, 3536, 8444, 364, 1347, 326, 1984, 9573, 279, 314, 3256, 264, 555, 883, 628, 326, 5873, 18, 225, 7012, 30, 1984, 1493, 1021, 1984, 791, 716, 1366, 326, 4277, 18, 555, 1493, 1021, 618, 434, 555, 716, 7841, 487, 279, 533, 18, 1198, 1493, 432, 533, 598, 1898, 1198, 1779, 2973, 326, 555, 18, 3536, 309, 486, 555, 30, 555, 273, 389, 2932, 37, 611, 3256, 264, 555, 711, 7841, 7923, 468, 659, 303, 1080, 273, 389, 2932, 8496, 2605, 333, 555, 358, 326, 804, 601, 538, 1614, 21701, 622, 5581, 82, 4528, 2207, 19381, 18, 20738, 6982, 18, 2758, 19, 78, 601, 538, 2 ]
try: port = int(host[i+1:]) except ValueError, msg: raise socket.error, str(msg)
port = int(host[i+1:])
def _set_hostport(self, host, port): if port is None: i = host.find(':') if i >= 0: try: port = int(host[i+1:]) except ValueError, msg: raise socket.error, str(msg) host = host[:i] else: port = self.default_port self.host = host self.port = port
3e30d2fdd3df38be4bf01285d6c00ea8b72df4db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3e30d2fdd3df38be4bf01285d6c00ea8b72df4db/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2564, 655, 12, 2890, 16, 1479, 16, 1756, 4672, 309, 1756, 353, 599, 30, 277, 273, 1479, 18, 4720, 2668, 2497, 13, 309, 277, 1545, 374, 30, 1756, 273, 509, 12, 2564, 63, 77, 15, 21, 30, 5717, 1479, 273, 1479, 10531, 77, 65, 469, 30, 1756, 273, 365, 18, 1886,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2564, 655, 12, 2890, 16, 1479, 16, 1756, 4672, 309, 1756, 353, 599, 30, 277, 273, 1479, 18, 4720, 2668, 2497, 13, 309, 277, 1545, 374, 30, 1756, 273, 509, 12, 2564, 63, 77, 15, 21, 30, 5717, 1479, 273, 1479, 10531, 77, 65, 469, 30, 1756, 273, 365, 18, 1886, 67, 655, 365, 18, 2564, 273, 1479, 365, 18, 655, 273, 1756, 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 ]
if field.renderer._value: indict[field.renderer.name] = field.renderer._value else: indict[field.renderer.name] = u''
if field.renderer._value: indict[field.renderer.name] = field.renderer._value else: indict[field.renderer.name] = u'' if field.renderer.name.endswith('-packages'): indict[field.renderer.name] = [pkg.name for pkg in group.packages] if group else []
def get_group_dict(group=None): indict = {} if group: fs = group_fs.bind(group) else: fs = group_fs exclude = ('-id', '-roles') for field in fs._fields.values(): if not filter(lambda x: field.renderer.name.endswith(x), exclude): if field.renderer._value: indict[field.renderer.name] = field.renderer._value else: indict[field.renderer.name] = u'' return indict
f456e62ee2efed305b0631624006fa4dfc454c25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/265/f456e62ee2efed305b0631624006fa4dfc454c25/group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1655, 67, 1576, 12, 1655, 33, 7036, 4672, 1547, 933, 273, 2618, 309, 1041, 30, 2662, 273, 1041, 67, 2556, 18, 4376, 12, 1655, 13, 469, 30, 2662, 273, 1041, 67, 2556, 225, 4433, 273, 7707, 17, 350, 2187, 2400, 7774, 6134, 225, 364, 652, 316, 2662, 6315, 2821, 18, 2372, 13332, 309, 486, 1034, 12, 14661, 619, 30, 652, 18, 14374, 18, 529, 18, 5839, 1918, 12, 92, 3631, 4433, 4672, 309, 652, 18, 14374, 6315, 1132, 30, 1547, 933, 63, 1518, 18, 14374, 18, 529, 65, 273, 652, 18, 14374, 6315, 1132, 469, 30, 1547, 933, 63, 1518, 18, 14374, 18, 529, 65, 273, 582, 6309, 282, 309, 652, 18, 14374, 18, 529, 18, 5839, 1918, 2668, 17, 10308, 11, 4672, 1547, 933, 63, 1518, 18, 14374, 18, 529, 65, 273, 306, 10657, 18, 529, 364, 3475, 316, 1041, 18, 10308, 65, 309, 1041, 469, 5378, 225, 327, 1547, 933, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1655, 67, 1576, 12, 1655, 33, 7036, 4672, 1547, 933, 273, 2618, 309, 1041, 30, 2662, 273, 1041, 67, 2556, 18, 4376, 12, 1655, 13, 469, 30, 2662, 273, 1041, 67, 2556, 225, 4433, 273, 7707, 17, 350, 2187, 2400, 7774, 6134, 225, 364, 652, 316, 2662, 6315, 2821, 18, 2372, 13332, 309, 486, 1034, 12, 14661, 619, 30, 652, 18, 14374, 18, 529, 18, 5839, 1918, 12, 92, 3631, 4433, 4672, 309, 652, 18, 14374, 6315, 1132, 30, 1547, 933, 63, 1518, 18, 14374, 18, 529, 65, 273, 652, 18, 14374, 6315, 1132, 469, 30, 1547, 933, 63, 1518, 18, 14374, 18, 529, 65, 273, 582, 6309, 282, 309, 652, 18, 14374, 18, 529, 18, 2 ]
docid_set = get_docids_from_query(recid_set, options.docid, options.docid2, options.show_deleted == True)
docid_set = get_docids_from_query(recid_set, options.docname, options.docid, options.docid2, options.show_deleted is True or options.action == 'undelete')
def main(): parser = prepare_option_parser() (options, args) = parser.parse_args() if options.all: recid_set = get_all_recids() else: recid_set = get_recids_from_query(options.pattern, options.collection, options.recid, options.recid2, options.docid, options.docid2) docid_set = get_docids_from_query(recid_set, options.docid, options.docid2, options.show_deleted == True) try: if options.action == 'get-history': cli_get_history(docid_set) elif options.action == 'get-info': cli_get_info(recid_set, options.show_deleted == True) elif options.action == 'get-docnames': cli_get_docnames(docid_set) elif options.action == 'get-disk-usage': cli_get_disk_usage(docid_set) elif options.action == 'check-md5': cli_check_md5(docid_set) elif options.action == 'update-md5': cli_update_md5(docid_set) elif options.action == 'fix-all': cli_fix_all(recid_set) elif options.action == 'fix-marc': cli_fix_marc(recid_set) elif options.action == 'delete': cli_delete(options.recid, options.docname) elif options.action == 'fix-duplicate-docnames': cli_fix_duplicate_docnames(recid_set) elif options.action == 'fix-format': cli_fix_format(recid_set) elif options.action == 'check-duplicate-docnames': cli_check_duplicate_docnames(recid_set) elif options.action == 'check-format': cli_check_format(recid_set) elif options.action == 'undelete': if cli_assert_recid(options) and cli_assert_docname(options): cli_undelete(options.recid, options.docname, options.restriction or "") elif options.append_path: if cli_assert_recid(options): res = cli_append(options.recid, options.docid, options.docname, options.doctype, options.append_path, options.format, options.icon, options.description, options.comment, options.restriction) if not res: sys.exit(1) elif options.revise_path: if cli_assert_recid(options): res = cli_revise(options.recid, options.docid, options.docname, options.newdocname, options.doctype, options.revise_path, options.format, options.icon, options.description, options.comment, options.restriction) if not res: sys.exit(1) elif options.revise_hide_path: if cli_assert_recid(options): res = cli_revise(options.recid, options.docid, options.docname, options.newdocname, options.doctype, options.revise_path, options.format, options.icon, options.description, options.comment, options.restriction, True) if not res: sys.exit(1) elif options.into_docname: if options.recid and options.docname: cli_merge_into(options.recid, options.docname, options.into_docname) else: print >> sys.stderr, "You have to specify both the recid and a docname for using --merge-into" else: print >> sys.stderr, "Action %s is not valid" % options.action sys.exit(1) except InvenioWebSubmitFileError, e: print >> sys.stderr, e sys.exit(1)
ccc0ff19181f56da96bb4dfd7216fe5bbda91724 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/ccc0ff19181f56da96bb4dfd7216fe5bbda91724/bibdocfilecli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2082, 273, 2911, 67, 3482, 67, 4288, 1435, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 309, 702, 18, 454, 30, 1950, 350, 67, 542, 273, 336, 67, 454, 67, 3927, 2232, 1435, 469, 30, 1950, 350, 67, 542, 273, 336, 67, 3927, 2232, 67, 2080, 67, 2271, 12, 2116, 18, 4951, 16, 702, 18, 5548, 16, 702, 18, 3927, 350, 16, 702, 18, 3927, 350, 22, 16, 702, 18, 2434, 350, 16, 702, 18, 2434, 350, 22, 13, 997, 350, 67, 542, 273, 336, 67, 2434, 2232, 67, 2080, 67, 2271, 12, 3927, 350, 67, 542, 16, 702, 18, 2434, 529, 16, 702, 18, 2434, 350, 16, 702, 18, 2434, 350, 22, 16, 702, 18, 4500, 67, 8600, 353, 1053, 578, 702, 18, 1128, 422, 296, 1074, 929, 6134, 775, 30, 309, 702, 18, 1128, 422, 296, 588, 17, 8189, 4278, 4942, 67, 588, 67, 8189, 12, 2434, 350, 67, 542, 13, 1327, 702, 18, 1128, 422, 296, 588, 17, 1376, 4278, 4942, 67, 588, 67, 1376, 12, 3927, 350, 67, 542, 16, 702, 18, 4500, 67, 8600, 422, 1053, 13, 1327, 702, 18, 1128, 422, 296, 588, 17, 2434, 1973, 4278, 4942, 67, 588, 67, 2434, 1973, 12, 2434, 350, 67, 542, 13, 1327, 702, 18, 1128, 422, 296, 588, 17, 10863, 17, 9167, 4278, 4942, 67, 588, 67, 10863, 67, 9167, 12, 2434, 350, 67, 542, 13, 1327, 702, 18, 1128, 422, 296, 1893, 17, 1264, 25, 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, 2082, 273, 2911, 67, 3482, 67, 4288, 1435, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 309, 702, 18, 454, 30, 1950, 350, 67, 542, 273, 336, 67, 454, 67, 3927, 2232, 1435, 469, 30, 1950, 350, 67, 542, 273, 336, 67, 3927, 2232, 67, 2080, 67, 2271, 12, 2116, 18, 4951, 16, 702, 18, 5548, 16, 702, 18, 3927, 350, 16, 702, 18, 3927, 350, 22, 16, 702, 18, 2434, 350, 16, 702, 18, 2434, 350, 22, 13, 997, 350, 67, 542, 273, 336, 67, 2434, 2232, 67, 2080, 67, 2271, 12, 3927, 350, 67, 542, 16, 702, 18, 2434, 529, 16, 702, 18, 2434, 350, 16, 702, 18, 2434, 350, 2 ]
raise "\nERROR: Invalid Tree Item. "
raise Exception("\nERROR: Invalid Tree Item. ")
def Collapse(self, item): """ Collapse an item, sending a EVT_TREE_ITEM_COLLAPSING and EVT_TREE_ITEM_COLLAPSED events. """
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1558, 14820, 12, 2890, 16, 761, 4672, 3536, 1558, 14820, 392, 761, 16, 5431, 279, 27917, 67, 26557, 67, 12674, 67, 4935, 48, 2203, 23708, 471, 27917, 67, 26557, 67, 12674, 67, 4935, 48, 2203, 18204, 2641, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1558, 14820, 12, 2890, 16, 761, 4672, 3536, 1558, 14820, 392, 761, 16, 5431, 279, 27917, 67, 26557, 67, 12674, 67, 4935, 48, 2203, 23708, 471, 27917, 67, 26557, 67, 12674, 67, 4935, 48, 2203, 18204, 2641, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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._console.info("Resolving dependencies...")
self._console.info("Resolving dependencies")
def computeClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyDeps=False, script=None): self._console.info("Resolving dependencies...") self._console.indent() classList = self._depLoader.getClassList(includeWithDeps, excludeWithDeps, includeNoDeps, excludeNoDeps, variants, verifyDeps, script) self._console.outdent()
bd5db9a4b186dd2984102a538218f4ccc09f3ed6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/bd5db9a4b186dd2984102a538218f4ccc09f3ed6/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 30546, 12, 6702, 1190, 14430, 16, 4433, 1190, 14430, 16, 2341, 2279, 14430, 16, 4433, 2279, 14430, 16, 12935, 16, 3929, 14430, 33, 8381, 16, 2728, 33, 7036, 4672, 365, 6315, 8698, 18, 1376, 2932, 2903, 6282, 5030, 7923, 365, 6315, 8698, 18, 9355, 1435, 16035, 273, 365, 6315, 15037, 2886, 18, 588, 30546, 12, 6702, 1190, 14430, 16, 4433, 1190, 14430, 16, 2341, 2279, 14430, 16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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 30546, 12, 6702, 1190, 14430, 16, 4433, 1190, 14430, 16, 2341, 2279, 14430, 16, 4433, 2279, 14430, 16, 12935, 16, 3929, 14430, 33, 8381, 16, 2728, 33, 7036, 4672, 365, 6315, 8698, 18, 1376, 2932, 2903, 6282, 5030, 7923, 365, 6315, 8698, 18, 9355, 1435, 16035, 273, 365, 6315, 15037, 2886, 18, 588, 30546, 12, 6702, 1190, 14430, 16, 4433, 1190, 14430, 16, 2341, 2279, 14430, 16, 4433, 2279, 14430, 16, 12935, 16, 3929, 14430, 16, 2728, 13, 365, 6315, 8698, 18, 659, 72, 319, 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 ]
fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK)
fcntl.fcntl(self.fd, FCNTL.F_SETFL, os.O_NONBLOCK)
def nonblocking(self): """internal - not portable!""" if self.fd is None: raise portNotOpenError fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK)
198b7e7d02a7dfe19b2467946c3b667d0ea1aeee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2937/198b7e7d02a7dfe19b2467946c3b667d0ea1aeee/serialposix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 18926, 12, 2890, 4672, 3536, 7236, 300, 486, 1756, 429, 5, 8395, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 30894, 18, 7142, 16681, 12, 2890, 18, 8313, 16, 478, 39, 1784, 48, 18, 42, 67, 4043, 19054, 16, 478, 39, 1784, 48, 18, 51, 67, 3993, 11403, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 18926, 12, 2890, 4672, 3536, 7236, 300, 486, 1756, 429, 5, 8395, 309, 365, 18, 8313, 353, 599, 30, 1002, 1756, 1248, 3678, 668, 30894, 18, 7142, 16681, 12, 2890, 18, 8313, 16, 478, 39, 1784, 48, 18, 42, 67, 4043, 19054, 16, 478, 39, 1784, 48, 18, 51, 67, 3993, 11403, 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 ]
list = config(filename, debug=True).get_list()
logging_manager.configure_logging(KvmLoggingConfig(), verbose=debug) list = config(filename, debug=debug).get_list()
def __modify_list_subvariants(self, list, name, dep_list, add_to_shortname): """ Make some modifications to list, as part of parsing a 'subvariants' block.
0ae821998f2c2f979b34b606091ddc8d892b33a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/0ae821998f2c2f979b34b606091ddc8d892b33a9/kvm_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 17042, 67, 1098, 67, 1717, 15886, 12, 2890, 16, 666, 16, 508, 16, 5993, 67, 1098, 16, 527, 67, 869, 67, 28650, 4672, 3536, 4344, 2690, 17953, 358, 666, 16, 487, 1087, 434, 5811, 279, 296, 1717, 15886, 11, 1203, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 17042, 67, 1098, 67, 1717, 15886, 12, 2890, 16, 666, 16, 508, 16, 5993, 67, 1098, 16, 527, 67, 869, 67, 28650, 4672, 3536, 4344, 2690, 17953, 358, 666, 16, 487, 1087, 434, 5811, 279, 296, 1717, 15886, 11, 1203, 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 ]
cmdclass = {
cmdclass = {
def run(self): # create startup script start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n" % (opj(self.install_libbase, "openerp-server"), sys.executable) # write script f = open('openerp-server', 'w') f.write(start_script) f.close() install.run(self)
ff2608cc2bab4a2e3aca8af750882283eb6f7e4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/ff2608cc2bab4a2e3aca8af750882283eb6f7e4d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 752, 11850, 2728, 787, 67, 4263, 273, 6619, 5, 19, 4757, 19, 674, 64, 82, 4315, 738, 87, 64, 82, 4177, 738, 87, 263, 19, 25098, 84, 17, 3567, 18, 2074, 271, 36, 64, 82, 6, 738, 261, 556, 78, 12, 2890, 18, 5425, 67, 2941, 1969, 16, 315, 25098, 84, 17, 3567, 6, 3631, 2589, 18, 17751, 13, 468, 1045, 2728, 284, 273, 1696, 2668, 25098, 84, 17, 3567, 2187, 296, 91, 6134, 284, 18, 2626, 12, 1937, 67, 4263, 13, 284, 18, 4412, 1435, 3799, 18, 2681, 12, 2890, 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, 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567, 18, 2074, 271, 36, 64, 82, 6, 738, 261, 556, 78, 12, 2890, 18, 5425, 67, 2941, 1969, 16, 315, 25098, 84, 17, 3567, 6, 3631, 2589, 18, 17751, 13, 468, 1045, 2728, 284, 273, 1696, 2668, 25098, 84, 17, 3567, 2187, 296, 91, 6134, 284, 18, 2626, 12, 1937, 67, 4263, 13, 284, 18, 4412, 1435, 3799, 18, 2681, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def get_splits(split_config, names): splits = split_config.splits for name in set(names): yield splits[name] def split(splits, verbose): for split in splits:
def split(split_config, names, verbose): for split in (split_config.splits[name] for name in names):
def get_splits(split_config, names): splits = split_config.splits for name in set(names): yield splits[name]
4c55c5f52ba719702accacef387f23bbb4048734 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14265/4c55c5f52ba719702accacef387f23bbb4048734/git-sap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 21902, 12, 4939, 67, 1425, 16, 1257, 4672, 11019, 273, 1416, 67, 1425, 18, 21902, 364, 508, 316, 444, 12, 1973, 4672, 2824, 11019, 63, 529, 65, 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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0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 21902, 12, 4939, 67, 1425, 16, 1257, 4672, 11019, 273, 1416, 67, 1425, 18, 21902, 364, 508, 316, 444, 12, 1973, 4672, 2824, 11019, 63, 529, 65, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def validate(self, value, instance, errors={}, **kwargs):
def validate(self, value, instance, errors=None, **kwargs):
def validate(self, value, instance, errors={}, **kwargs): """ Validate passed-in value using all field validators. Return None if all validations pass; otherwise, return failed result returned by validator """ name = self.getName() if errors and errors.has_key(name): return True
4783b5b4c58776802d846f70518c6480cf67411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/4783b5b4c58776802d846f70518c6480cf67411e/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 460, 16, 791, 16, 1334, 33, 7036, 16, 2826, 4333, 4672, 3536, 3554, 2275, 17, 267, 460, 1450, 777, 652, 11632, 18, 2000, 599, 309, 777, 20808, 1342, 31, 3541, 16, 327, 2535, 563, 2106, 635, 4213, 3536, 508, 273, 365, 18, 17994, 1435, 309, 1334, 471, 1334, 18, 5332, 67, 856, 12, 529, 4672, 327, 1053, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 460, 16, 791, 16, 1334, 33, 7036, 16, 2826, 4333, 4672, 3536, 3554, 2275, 17, 267, 460, 1450, 777, 652, 11632, 18, 2000, 599, 309, 777, 20808, 1342, 31, 3541, 16, 327, 2535, 563, 2106, 635, 4213, 3536, 508, 273, 365, 18, 17994, 1435, 309, 1334, 471, 1334, 18, 5332, 67, 856, 12, 529, 4672, 327, 1053, 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 ]
print "select() timeout"
print "select() timeout (will wait for " + str(int(endtime - time.time())) + "more secs)"
def wait_msg_from(self, timeout): endtime = time.time() + timeout msg = "" src_addr = None while time.time() < endtime: readset = select([self.sock], [], [], timeout) if len(readset[0]) < 1 or not self.sock in readset[0]: if len(readset[0]) < 1: print "select() timeout" elif not self.sock in readset[0]: print "select() alien socket" else: print "select other error" continue try: msg, src_addr = self.sock.recvfrom(4096) except: print "recv() exception: ", sys.exc_info()[0] continue
77e60569cf706c498e48e124e240268f3d79508d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1375/77e60569cf706c498e48e124e240268f3d79508d/inc_sip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 3576, 67, 2080, 12, 2890, 16, 2021, 4672, 31361, 273, 813, 18, 957, 1435, 397, 2021, 1234, 273, 1408, 1705, 67, 4793, 273, 599, 1323, 813, 18, 957, 1435, 411, 31361, 30, 855, 542, 273, 2027, 3816, 2890, 18, 15031, 6487, 5378, 16, 5378, 16, 2021, 13, 309, 562, 12, 896, 542, 63, 20, 5717, 411, 404, 578, 486, 365, 18, 15031, 316, 855, 542, 63, 20, 14542, 309, 562, 12, 896, 542, 63, 20, 5717, 411, 404, 30, 1172, 315, 4025, 1435, 2021, 261, 20194, 2529, 364, 315, 397, 609, 12, 474, 12, 409, 957, 300, 813, 18, 957, 1435, 3719, 397, 315, 10161, 18043, 2225, 1327, 486, 365, 18, 15031, 316, 855, 542, 63, 20, 14542, 1172, 315, 4025, 1435, 15033, 275, 2987, 6, 469, 30, 1172, 315, 4025, 1308, 555, 6, 1324, 775, 30, 1234, 16, 1705, 67, 4793, 273, 365, 18, 15031, 18, 18334, 2080, 12, 24, 5908, 26, 13, 1335, 30, 1172, 315, 18334, 1435, 1520, 30, 3104, 2589, 18, 10075, 67, 1376, 1435, 63, 20, 65, 1324, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 3576, 67, 2080, 12, 2890, 16, 2021, 4672, 31361, 273, 813, 18, 957, 1435, 397, 2021, 1234, 273, 1408, 1705, 67, 4793, 273, 599, 1323, 813, 18, 957, 1435, 411, 31361, 30, 855, 542, 273, 2027, 3816, 2890, 18, 15031, 6487, 5378, 16, 5378, 16, 2021, 13, 309, 562, 12, 896, 542, 63, 20, 5717, 411, 404, 578, 486, 365, 18, 15031, 316, 855, 542, 63, 20, 14542, 309, 562, 12, 896, 542, 63, 20, 5717, 411, 404, 30, 1172, 315, 4025, 1435, 2021, 261, 20194, 2529, 364, 315, 397, 609, 12, 474, 12, 409, 957, 300, 813, 18, 957, 1435, 3719, 397, 315, 10161, 18043, 2225, 1327, 486, 365, 18, 15031, 316, 855, 542, 63, 2 ]
match_list = filter(lambda s: re.search(string, s), open(filename).read().splitlines())
match_list = [(lineno, line) for lineno, line in enumerate(open(filename).read().splitlines(True)) if re.search(string, line)]
sage: 'divisors' in _search_src_or_doc('src', '^ *def prime', interact=False)
8e857122a4650f1c8910e1f54d1a94cf998efa3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/8e857122a4650f1c8910e1f54d1a94cf998efa3b/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 296, 2892, 291, 1383, 11, 316, 389, 3072, 67, 4816, 67, 280, 67, 2434, 2668, 4816, 2187, 10731, 380, 536, 17014, 2187, 16592, 33, 8381, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 296, 2892, 291, 1383, 11, 316, 389, 3072, 67, 4816, 67, 280, 67, 2434, 2668, 4816, 2187, 10731, 380, 536, 17014, 2187, 16592, 33, 8381, 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 ]
next = self.groupTreeCtrl.GetNextSibling(item) if next.IsOk(): stack.append(next)
next, cookie = self.groupTreeCtrl.GetNextChild(item, cookie)
def _refresh(self): # Get the tree from the server try: group_tree = self.client.getGroupTree() except SchoolToolError, e: self.SetStatusText(str(e)) group_tree = [] else: self.SetStatusText(self.client.status)
7a970a1ab85c914789914ae7bec4734ebf27787f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/7a970a1ab85c914789914ae7bec4734ebf27787f/wxclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9144, 12, 2890, 4672, 468, 968, 326, 2151, 628, 326, 1438, 775, 30, 1041, 67, 3413, 273, 365, 18, 2625, 18, 588, 1114, 2471, 1435, 1335, 348, 343, 1371, 6364, 668, 16, 425, 30, 365, 18, 20547, 1528, 12, 701, 12, 73, 3719, 1041, 67, 3413, 273, 5378, 469, 30, 365, 18, 20547, 1528, 12, 2890, 18, 2625, 18, 2327, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 5378, 469, 30, 365, 18, 20547, 1528, 12, 2890, 18, 2625, 18, 2327, 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 ]
(labfilename,attributeName,filter,childScope,labelAttribute) = sys.argv[1:6]
(labFileList,segmentationAttribute,filter,childScope,labelAttribute) = sys.argv[1:6]
def Lab2Plot(labfile, output, attributeName, filter, childScope, labelAttribute): print >> output, '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>' print >> output, '<DescriptorsPool>' print >> output, '\t<ScopePool name="Song" size="1">' tokens = list() labelFilter = re.compile(filter) for line in labfile: segment = line.split(" ",3) if len(segment)!=3: print >> sys.stderr, "Found a line with %s tokens, 3 expected"%len(segment) continue segment[2]=segment[2].rstrip().lstrip() if not labelFilter.match(segment[2]): continue tokens.append(segment) sampleRate=44100 print >> output, '\t\t<AttributePool name="%s" size="%s">'%(attributeName, len(tokens)) , for segment in tokens : print >> output, float(segment[0])*sampleRate, float(segment[1])*sampleRate, print >> output, '</AttributePool>' print >> output, '\t</ScopePool>' if childScope!=None: print >> output, '\t<ScopePool name="%s" size="%s">' % (childScope, len(tokens)) print >> output, '\t\t<AttributePool name="%s">' % (labelAttribute) for segment in tokens : print >> output, '\t\t\t<Enumerated>%s</Enumerated>' % ( segment[2] ) print >> output, '\t\t</AttributePool>' print >> output, '\t</ScopePool>' print >> output, '</DescriptorsPool>' return dict.fromkeys([ segment[2] for segment in tokens ]).keys() # unique labels
f646eda301256e171621c2f85311c090f7b0abda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1456/f646eda301256e171621c2f85311c090f7b0abda/Lab2Pools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 511, 378, 22, 11532, 12, 7411, 768, 16, 876, 16, 9734, 16, 1034, 16, 1151, 3876, 16, 1433, 1499, 4672, 1172, 1671, 876, 16, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 17676, 1546, 2135, 6, 29574, 1172, 1671, 876, 16, 2368, 12705, 2864, 1870, 1172, 1671, 876, 16, 2337, 88, 32, 3876, 2864, 508, 1546, 55, 932, 6, 963, 1546, 21, 7918, 2430, 273, 666, 1435, 1433, 1586, 273, 283, 18, 11100, 12, 2188, 13, 364, 980, 316, 11814, 768, 30, 3267, 273, 980, 18, 4939, 2932, 3104, 23, 13, 309, 562, 12, 9273, 13, 5, 33, 23, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 2043, 279, 980, 598, 738, 87, 2430, 16, 890, 2665, 28385, 1897, 12, 9273, 13, 1324, 3267, 63, 22, 65, 33, 9273, 63, 22, 8009, 86, 6406, 7675, 80, 6406, 1435, 309, 486, 1433, 1586, 18, 1916, 12, 9273, 63, 22, 65, 4672, 1324, 2430, 18, 6923, 12, 9273, 13, 225, 27505, 33, 6334, 6625, 225, 1172, 1671, 876, 16, 2337, 88, 64, 88, 32, 1499, 2864, 508, 11613, 87, 6, 963, 11613, 87, 7918, 17105, 4589, 461, 16, 562, 12, 7860, 3719, 269, 364, 3267, 316, 2430, 294, 1172, 1671, 876, 16, 1431, 12, 9273, 63, 20, 5717, 14, 6358, 4727, 16, 1431, 12, 9273, 63, 21, 5717, 14, 6358, 4727, 16, 1172, 1671, 876, 16, 4357, 1499, 2864, 1870, 1172, 1671, 876, 16, 2337, 88, 1757, 3876, 2864, 1870, 225, 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, 511, 378, 22, 11532, 12, 7411, 768, 16, 876, 16, 9734, 16, 1034, 16, 1151, 3876, 16, 1433, 1499, 4672, 1172, 1671, 876, 16, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 17676, 1546, 2135, 6, 29574, 1172, 1671, 876, 16, 2368, 12705, 2864, 1870, 1172, 1671, 876, 16, 2337, 88, 32, 3876, 2864, 508, 1546, 55, 932, 6, 963, 1546, 21, 7918, 2430, 273, 666, 1435, 1433, 1586, 273, 283, 18, 11100, 12, 2188, 13, 364, 980, 316, 11814, 768, 30, 3267, 273, 980, 18, 4939, 2932, 3104, 23, 13, 309, 562, 12, 9273, 13, 5, 33, 23, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 2043, 279, 980, 598, 738, 2 ]
def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0)):
def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0), labelImageSize = None):
def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0)): nodes, edges = pixelMapData(geomap, offset, scale) return Map(nodes, edges, geomap.cellImage.size() * scale)
8a4b243de44be7b611228d95d7601eef8d0040d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/8a4b243de44be7b611228d95d7601eef8d0040d7/pixelmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4957, 863, 22, 1717, 9037, 863, 12, 10049, 438, 16, 3159, 273, 404, 18, 20, 16, 1384, 273, 5589, 22, 12, 20, 16, 374, 3631, 1433, 28576, 273, 599, 4672, 2199, 16, 5231, 273, 4957, 863, 751, 12, 10049, 438, 16, 1384, 16, 3159, 13, 327, 1635, 12, 4690, 16, 5231, 16, 7364, 438, 18, 3855, 2040, 18, 1467, 1435, 380, 3159, 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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, 12, 4690, 16, 5231, 16, 7364, 438, 18, 3855, 2040, 18, 1467, 1435, 380, 3159, 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 ]
Will quote the value if needed or if quote is true.
This will quote the value if needed or if quote is true.
def _formatparam(param, value=None, quote=1): """Convenience function to format and return a key=value pair. Will quote the value if needed or if quote is true. """ if value is not None and len(value) > 0: # BAW: Please check this. I think that if quote is set it should # force quoting even if not necessary. if quote or tspecials.search(value): return '%s="%s"' % (param, Utils.quote(value)) else: return '%s=%s' % (param, value) else: return param
2b38db29aa43883c826e63f6d3cea879a2714ae9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2b38db29aa43883c826e63f6d3cea879a2714ae9/Message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 891, 12, 891, 16, 460, 33, 7036, 16, 3862, 33, 21, 4672, 3536, 14700, 445, 358, 740, 471, 327, 279, 498, 33, 1132, 3082, 18, 225, 1220, 903, 3862, 326, 460, 309, 3577, 578, 309, 3862, 353, 638, 18, 3536, 309, 460, 353, 486, 599, 471, 562, 12, 1132, 13, 405, 374, 30, 468, 605, 12999, 30, 7801, 866, 333, 18, 225, 467, 15507, 716, 309, 3862, 353, 444, 518, 1410, 468, 2944, 29911, 5456, 309, 486, 4573, 18, 309, 3862, 578, 268, 9371, 87, 18, 3072, 12, 1132, 4672, 327, 1995, 87, 11613, 87, 5187, 738, 261, 891, 16, 6091, 18, 6889, 12, 1132, 3719, 469, 30, 327, 1995, 87, 5095, 87, 11, 738, 261, 891, 16, 460, 13, 469, 30, 327, 579, 565, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 891, 12, 891, 16, 460, 33, 7036, 16, 3862, 33, 21, 4672, 3536, 14700, 445, 358, 740, 471, 327, 279, 498, 33, 1132, 3082, 18, 225, 1220, 903, 3862, 326, 460, 309, 3577, 578, 309, 3862, 353, 638, 18, 3536, 309, 460, 353, 486, 599, 471, 562, 12, 1132, 13, 405, 374, 30, 468, 605, 12999, 30, 7801, 866, 333, 18, 225, 467, 15507, 716, 309, 3862, 353, 444, 518, 1410, 468, 2944, 29911, 5456, 309, 486, 4573, 18, 309, 3862, 578, 268, 9371, 87, 18, 3072, 12, 1132, 4672, 327, 1995, 87, 11613, 87, 5187, 738, 261, 891, 16, 6091, 18, 6889, 12, 1132, 3719, 469, 30, 327, 1995, 87, 5095, 87, 11, 738, 261, 2 ]
files.append((openerp_site_packages, [('bin/import_xml.rng')]))
def data_files(): '''Build list of data files to be installed''' files = [] if os.name == 'nt': os.chdir('bin') for (dp,dn,names) in os.walk('addons'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) os.chdir('..') for (dp,dn,names) in os.walk('doc'): files.append((dp, map(lambda x: opj(dp, x), names))) files.append(('.', [(opj('bin', 'import_xml.rng'))])) else: man_directory = opj('share', 'man') files.append((opj(man_directory, 'man1'), ['man/openerp-server.1'])) files.append((opj(man_directory, 'man5'), ['man/openerp_serverrc.5'])) doc_directory = opj('share', 'doc', 'openerp-server-%s' % version) files.append((doc_directory, [f for f in glob.glob('doc/*') if os.path.isfile(f)])) files.append((opj(doc_directory, 'migrate', '3.3.0-3.4.0'), [f for f in glob.glob('doc/migrate/3.3.0-3.4.0/*') if os.path.isfile(f)])) files.append((opj(doc_directory, 'migrate', '3.4.0-4.0.0'), [f for f in glob.glob('doc/migrate/3.4.0-4.0.0/*') if os.path.isfile(f)])) openerp_site_packages = opj('lib', 'python%s' % py_short_version, 'site-packages', 'openerp-server') files.append((openerp_site_packages, [('bin/import_xml.rng')])) for addon in find_addons(): add_path = addon.replace('.', os.path.sep).replace('openerp-server', 'bin', 1) addon_path = opj('lib', 'python%s' % py_short_version, 'site-packages', add_path.replace('bin', 'openerp-server', 1)) pathfiles = [] for root, dirs, innerfiles in os.walk(add_path): innerfiles = filter(lambda file: os.path.splitext(file)[1] not in ('.pyc', '.py', '.pyd', '.pyo'), innerfiles) if innerfiles: pathfiles.extend(((opj(addon_path, root.replace('bin/addons/', '')), map(lambda file: opj(root, file), innerfiles)),)) files.extend(pathfiles) return files
8edaf0733269574a1d5bd4ddd818dfce43bdcd4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/8edaf0733269574a1d5bd4ddd818dfce43bdcd4e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 2354, 13332, 9163, 3116, 666, 434, 501, 1390, 358, 506, 5876, 26418, 1390, 273, 5378, 309, 1140, 18, 529, 422, 296, 496, 4278, 1140, 18, 343, 1214, 2668, 4757, 6134, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 1289, 7008, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 2668, 4757, 2187, 9986, 16, 619, 3631, 1257, 20349, 1140, 18, 343, 1214, 2668, 838, 6134, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 2434, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 12, 9295, 16, 619, 3631, 1257, 20349, 1390, 18, 6923, 12, 2668, 1093, 16, 306, 12, 556, 78, 2668, 4757, 2187, 296, 5666, 67, 2902, 18, 86, 3368, 26112, 22643, 469, 30, 3161, 67, 5149, 273, 1061, 78, 2668, 14419, 2187, 296, 4728, 6134, 1390, 18, 6923, 12443, 556, 78, 12, 4728, 67, 5149, 16, 296, 4728, 21, 19899, 10228, 4728, 19, 25098, 84, 17, 3567, 18, 21, 3546, 3719, 1390, 18, 6923, 12443, 556, 78, 12, 4728, 67, 5149, 16, 296, 4728, 25, 19899, 10228, 4728, 19, 25098, 84, 67, 550, 1107, 71, 18, 25, 3546, 3719, 225, 997, 67, 5149, 273, 1061, 78, 2668, 14419, 2187, 296, 2434, 2187, 296, 25098, 84, 17, 3567, 6456, 87, 11, 738, 1177, 13, 1390, 18, 6923, 12443, 2434, 67, 5149, 16, 306, 74, 364, 284, 316, 4715, 18, 10581, 2668, 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, 501, 67, 2354, 13332, 9163, 3116, 666, 434, 501, 1390, 358, 506, 5876, 26418, 1390, 273, 5378, 309, 1140, 18, 529, 422, 296, 496, 4278, 1140, 18, 343, 1214, 2668, 4757, 6134, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 1289, 7008, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 2668, 4757, 2187, 9986, 16, 619, 3631, 1257, 20349, 1140, 18, 343, 1214, 2668, 838, 6134, 364, 261, 9295, 16, 5176, 16, 1973, 13, 316, 1140, 18, 11348, 2668, 2434, 11, 4672, 1390, 18, 6923, 12443, 9295, 16, 852, 12, 14661, 619, 30, 1061, 78, 12, 9295, 16, 619, 3631, 1257, 20349, 1390, 18, 6923, 12, 2 ]
if trans1d and tempobj.ndim == 1: newobj = newobj.T
if trans1d != -1 and tempobj.ndim < ndmin: k2 = ndmin-tempobj.ndim if (trans1d < 0): trans1d += k2 + 1 defaxes = range(ndmin) k1 = trans1d axes = defaxes[:k1] + defaxes[k2:] + \ defaxes[k1:k2] newobj = newobj.transpose(axes)
def __getitem__(self,key): trans1d = False ndmin = 1 if isinstance(key, str): frame = sys._getframe().f_back mymat = matrix.bmat(key,frame.f_globals,frame.f_locals) return mymat if type(key) is not tuple: key = (key,) objs = [] scalars = [] final_dtypedescr = None for k in range(len(key)): scalar = False if type(key[k]) is slice: step = key[k].step start = key[k].start stop = key[k].stop if start is None: start = 0 if step is None: step = 1 if isinstance(step, complex): size = int(abs(step)) newobj = function_base.linspace(start, stop, num=size) else: newobj = _nx.arange(start, stop, step) if ndmin > 1: newobj = array(newobj,copy=False,ndmin=ndmin) if trans1d: newobj = newobj.T elif isinstance(key[k],str): if k != 0: raise ValueError, "special directives must be the"\ "first entry." key0 = key[0] if key0 in 'rc': self.matrix = True self.col = (key0 == 'c') continue if ',' in key0: vec = key0.split(',') try: self.axis, ndmin = \ [int(x) for x in vec[:2]] if len(vec) == 3 and vec[2] == 't': trans1d = True continue except: raise ValueError, "unknown special directive" try: self.axis = int(key[k]) continue except (ValueError, TypeError): raise ValueError, "unknown special directive" elif type(key[k]) in ScalarType: newobj = array(key[k],ndmin=ndmin) scalars.append(k) scalar = True else: newobj = key[k] if ndmin > 1: tempobj = array(newobj, copy=False, subok=True) newobj = array(newobj, copy=False, subok=True, ndmin=ndmin) if trans1d and tempobj.ndim == 1: newobj = newobj.T del tempobj objs.append(newobj) if isinstance(newobj, _nx.ndarray) and not scalar: if final_dtypedescr is None: final_dtypedescr = newobj.dtype elif newobj.dtype > final_dtypedescr: final_dtypedescr = newobj.dtype if final_dtypedescr is not None: for k in scalars: objs[k] = objs[k].astype(final_dtypedescr) res = _nx.concatenate(tuple(objs),axis=self.axis) return self._retval(res)
41f45049e37b8ef040e32a3a54c4a3090d497a8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/41f45049e37b8ef040e32a3a54c4a3090d497a8c/index_tricks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 856, 4672, 906, 21, 72, 273, 1083, 5346, 1154, 273, 404, 309, 1549, 12, 856, 16, 609, 4672, 2623, 273, 2589, 6315, 588, 3789, 7675, 74, 67, 823, 312, 2942, 270, 273, 3148, 18, 70, 7373, 12, 856, 16, 3789, 18, 74, 67, 16227, 16, 3789, 18, 74, 67, 17977, 13, 327, 312, 2942, 270, 309, 618, 12, 856, 13, 353, 486, 3193, 30, 498, 273, 261, 856, 16, 13, 12721, 273, 5378, 23743, 273, 5378, 727, 67, 7510, 6140, 742, 86, 273, 599, 364, 417, 316, 1048, 12, 1897, 12, 856, 3719, 30, 4981, 273, 1083, 309, 618, 12, 856, 63, 79, 5717, 353, 2788, 30, 2235, 273, 498, 63, 79, 8009, 4119, 787, 273, 498, 63, 79, 8009, 1937, 2132, 273, 498, 63, 79, 8009, 5681, 309, 787, 353, 599, 30, 787, 273, 374, 309, 2235, 353, 599, 30, 2235, 273, 404, 309, 1549, 12, 4119, 16, 7233, 4672, 963, 273, 509, 12, 5113, 12, 4119, 3719, 394, 2603, 273, 445, 67, 1969, 18, 80, 15738, 12, 1937, 16, 2132, 16, 818, 33, 1467, 13, 469, 30, 394, 2603, 273, 389, 16769, 18, 297, 726, 12, 1937, 16, 2132, 16, 2235, 13, 309, 5346, 1154, 405, 404, 30, 394, 2603, 273, 526, 12, 2704, 2603, 16, 3530, 33, 8381, 16, 4880, 1154, 33, 4880, 1154, 13, 309, 906, 21, 72, 30, 394, 2603, 273, 394, 2603, 18, 56, 1327, 1549, 12, 856, 63, 79, 6487, 701, 4672, 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, 1001, 31571, 972, 12, 2890, 16, 856, 4672, 906, 21, 72, 273, 1083, 5346, 1154, 273, 404, 309, 1549, 12, 856, 16, 609, 4672, 2623, 273, 2589, 6315, 588, 3789, 7675, 74, 67, 823, 312, 2942, 270, 273, 3148, 18, 70, 7373, 12, 856, 16, 3789, 18, 74, 67, 16227, 16, 3789, 18, 74, 67, 17977, 13, 327, 312, 2942, 270, 309, 618, 12, 856, 13, 353, 486, 3193, 30, 498, 273, 261, 856, 16, 13, 12721, 273, 5378, 23743, 273, 5378, 727, 67, 7510, 6140, 742, 86, 273, 599, 364, 417, 316, 1048, 12, 1897, 12, 856, 3719, 30, 4981, 273, 1083, 309, 618, 12, 856, 63, 79, 5717, 353, 2788, 30, 2235, 273, 498, 63, 79, 2 ]
zslider = self.zslider.GetValue() - 1 if zslider < 1: zslider = 1 self.zslider.SetValue(zslider) self.onChangeZSlice(None)
newZSliderValue = self.zslider.GetValue() - 1 if newZSliderValue >= self.zslider.GetMin(): self.zslider.SetValue(newZSliderValue) self.onChangeZSlice(None)
def onSliceUp(self, evt): """ Created: 15.11.2006, KP Description: Move one slice up """ zslider = self.zslider.GetValue() - 1 if zslider < 1: zslider = 1 self.zslider.SetValue(zslider) self.onChangeZSlice(None)
228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 5959, 1211, 12, 2890, 16, 6324, 4672, 3536, 12953, 30, 4711, 18, 2499, 18, 6976, 26, 16, 1475, 52, 6507, 30, 9933,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 5959, 1211, 12, 2890, 16, 6324, 4672, 3536, 12953, 30, 4711, 18, 2499, 18, 6976, 26, 16, 1475, 52, 6507, 30, 9933, 1245, 2788, 731, 3536, 998, 28372, 273, 365, 18, 94, 28372, 18, 967, 620, 1435, 300, 404, 309, 998, 28372, 411, 404, 30, 998, 28372, 273, 404, 365, 18, 94, 28372, 18, 694, 620, 12, 94, 28372, 13, 365, 18, 265, 3043, 62, 5959, 12, 7036, 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 ]
""" Basic Attributes """
print "Change in cash (real-time): %s" % ( Stock.realtime['change']['cash'])
def __init__(self, symbol): """ Download stock's attributes and attribute them to this object. * Basic attributes:
2bc56260e439cbf4ac58fccaf7d6d4f92d32f2b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2318/2bc56260e439cbf4ac58fcca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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, 1001, 2738, 972, 12, 2890, 16, 3273, 4672, 3536, 13059, 12480, 1807, 1677, 471, 1566, 2182, 358, 333, 733, 18, 225, 380, 7651, 1677, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not self.is_simplified(): return self.simplify()._real_rqdf_(field) rops = [op._real_rqdf_(field) for op in self._operands] return self._operator(*rops)
""" EXAMPLES: sage: RQDF(sqrt(2)) 1.414213562373095048801688724209698078569671875376948073176679738 TESTS: sage: RQDF(x*sin(0)) 0.000000000000000000000000000000000000000000000000000000000000000 """ return self._convert(field)
def _real_rqdf_(self, field): if not self.is_simplified(): return self.simplify()._real_rqdf_(field) rops = [op._real_rqdf_(field) for op in self._operands] return self._operator(*rops)
f809a315d67f32e87efd389d0b7a5c66f8754260 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f809a315d67f32e87efd389d0b7a5c66f8754260/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7688, 67, 86, 85, 2180, 67, 12, 2890, 16, 652, 4672, 309, 486, 365, 18, 291, 67, 9812, 412, 939, 13332, 327, 365, 18, 9812, 412, 1164, 1435, 6315, 7688, 67, 86, 85, 2180, 67, 12, 1518, 13, 721, 1121, 273, 306, 556, 6315, 7688, 67, 86, 85, 2180, 67, 12, 1518, 13, 364, 1061, 316, 365, 6315, 4063, 5708, 65, 327, 365, 6315, 9497, 30857, 16703, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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688, 67, 86, 85, 2180, 67, 12, 1518, 13, 364, 1061, 316, 365, 6315, 4063, 5708, 65, 327, 365, 6315, 9497, 30857, 16703, 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 ]
self.runApiData(packageClasses)
def run(self): config = self._job job = self._job require = config.get("require", {}) use = config.get("use", {})
ad9a23580a7c86efa4cd2c7f24603bdf831fa0bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/ad9a23580a7c86efa4cd2c7f24603bdf831fa0bc/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 642, 273, 365, 6315, 4688, 1719, 565, 273, 365, 6315, 4688, 2583, 273, 642, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 2618, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 2618, 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 ]
return None
def result_processor(self, dialect, coltype): if self.asdecimal: if getattr(self, 'scale', None) is not None and dialect.supports_native_decimal: return None else: return processors.to_decimal_processor_factory(decimal.Decimal) else: #XXX: if the DBAPI returns a float (this is likely, given the # processor when asdecimal is True), this should be a None # processor instead. return processors.to_float return None
6dbcb67e54c4c9ec62987a9d318e088d3d58e47b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/6dbcb67e54c4c9ec62987a9d318e088d3d58e47b/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 67, 8700, 12, 2890, 16, 10864, 16, 645, 723, 4672, 309, 365, 18, 345, 12586, 30, 309, 3869, 12, 2890, 16, 296, 5864, 2187, 599, 13, 353, 486, 599, 471, 10864, 18, 28064, 67, 13635, 67, 12586, 30, 469, 30, 327, 13399, 18, 869, 67, 12586, 67, 8700, 67, 6848, 12, 12586, 18, 5749, 13, 469, 30, 468, 15639, 30, 309, 326, 2383, 2557, 1135, 279, 1431, 261, 2211, 353, 10374, 16, 864, 326, 468, 6659, 1347, 487, 12586, 353, 1053, 3631, 333, 1410, 506, 279, 599, 468, 6659, 3560, 18, 327, 13399, 18, 869, 67, 5659, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 563, 67, 8700, 12, 2890, 16, 10864, 16, 645, 723, 4672, 309, 365, 18, 345, 12586, 30, 309, 3869, 12, 2890, 16, 296, 5864, 2187, 599, 13, 353, 486, 599, 471, 10864, 18, 28064, 67, 13635, 67, 12586, 30, 469, 30, 327, 13399, 18, 869, 67, 12586, 67, 8700, 67, 6848, 12, 12586, 18, 5749, 13, 469, 30, 468, 15639, 30, 309, 326, 2383, 2557, 1135, 279, 1431, 261, 2211, 353, 10374, 16, 864, 326, 468, 6659, 1347, 487, 12586, 353, 1053, 3631, 333, 1410, 506, 279, 599, 468, 6659, 3560, 18, 327, 13399, 18, 869, 67, 5659, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
PangoAttrColor = struct__PangoAttrColor
PangoAttrColor = struct__PangoAttrColor
def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname)
92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2941, 12, 529, 4672, 2561, 529, 273, 6983, 18, 1367, 18, 4720, 67, 12083, 12, 529, 13, 309, 486, 2561, 529, 30, 1002, 10002, 2932, 4445, 486, 1104, 5313, 1995, 87, 4970, 738, 508, 13, 469, 30, 327, 21508, 4503, 12, 2941, 529, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2941, 12, 529, 4672, 2561, 529, 273, 6983, 18, 1367, 18, 4720, 67, 12083, 12, 529, 13, 309, 486, 2561, 529, 30, 1002, 10002, 2932, 4445, 486, 1104, 5313, 1995, 87, 4970, 738, 508, 13, 469, 30, 327, 21508, 4503, 12, 2941, 529, 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 ]
_FIELDS_STATIC = utils.FieldSet( "name", "pinst_cnt", "sinst_cnt",
_FIELDS_STATIC = utils.FieldSet(*[ "pinst_cnt", "sinst_cnt",
def Exec(self, feedback_fn): """Removes the node from the cluster.
19bed813438c89914ead80e5f3a8e57fcb5bd5f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/19bed813438c89914ead80e5f3a8e57fcb5bd5f2/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 6220, 326, 756, 628, 326, 2855, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 6220, 326, 756, 628, 326, 2855, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
with open("hotfile_dump_2.html", "w") as f: f.write(self.htmlwithlink)
def get_download_page(self): herewego = re.search(r"<form style=.*(\n<.*>\s*)*?\n<tr>", self.html).group(0) all_the_tuples = re.findall(r"<input\stype=hidden\sname=(\S*)\svalue=(\S*)>", herewego) self.htmlwithlink = self.req.load(self.url, None, all_the_tuples) with open("hotfile_dump_2.html", "w") as f: f.write(self.htmlwithlink)
a3eed7e3d5e412e7370e09838e9c05e3af971fb3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/a3eed7e3d5e412e7370e09838e9c05e3af971fb3/HotfileCom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7813, 67, 2433, 12, 2890, 4672, 22336, 359, 1332, 83, 273, 283, 18, 3072, 12, 86, 6, 32, 687, 2154, 33, 4509, 4713, 82, 32, 4509, 5333, 87, 12437, 14, 10936, 82, 32, 313, 2984, 16, 365, 18, 2620, 2934, 1655, 12, 20, 13, 777, 67, 5787, 67, 17705, 273, 283, 18, 4720, 454, 12, 86, 6, 32, 2630, 64, 27273, 33, 6345, 64, 87, 529, 33, 4713, 55, 14, 5153, 87, 1132, 33, 4713, 55, 12437, 2984, 16, 22336, 359, 1332, 83, 13, 225, 365, 18, 2620, 1918, 1232, 273, 365, 18, 3658, 18, 945, 12, 2890, 18, 718, 16, 599, 16, 777, 67, 5787, 67, 17705, 13, 598, 1696, 2932, 15224, 768, 67, 8481, 67, 22, 18, 2620, 3113, 315, 91, 7923, 487, 284, 30, 284, 18, 2626, 12, 2890, 18, 2620, 1918, 1232, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7813, 67, 2433, 12, 2890, 4672, 22336, 359, 1332, 83, 273, 283, 18, 3072, 12, 86, 6, 32, 687, 2154, 33, 4509, 4713, 82, 32, 4509, 5333, 87, 12437, 14, 10936, 82, 32, 313, 2984, 16, 365, 18, 2620, 2934, 1655, 12, 20, 13, 777, 67, 5787, 67, 17705, 273, 283, 18, 4720, 454, 12, 86, 6, 32, 2630, 64, 27273, 33, 6345, 64, 87, 529, 33, 4713, 55, 14, 5153, 87, 1132, 33, 4713, 55, 12437, 2984, 16, 22336, 359, 1332, 83, 13, 225, 365, 18, 2620, 1918, 1232, 273, 365, 18, 3658, 18, 945, 12, 2890, 18, 718, 16, 599, 16, 777, 67, 5787, 67, 17705, 13, 598, 1696, 2932, 15224, 768, 67, 8481, 2 ]
if self.manager.disable >= WARNING: return
def warning(self, msg, *args, **kwargs): """ Log 'msg % args' with severity 'WARNING'.
daa6f254c6cf5acad6fb56bc9f360ec26407b409 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/daa6f254c6cf5acad6fb56bc9f360ec26407b409/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3436, 12, 2890, 16, 1234, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1827, 296, 3576, 738, 833, 11, 598, 11426, 296, 9511, 10332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3436, 12, 2890, 16, 1234, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1827, 296, 3576, 738, 833, 11, 598, 11426, 296, 9511, 10332, 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 ]
return aq_parent(instance).absolute_url()
purl = getToolByName(instance, 'portal_url') return purl.getRelativeUrl(aq_parent(instance))
def getDestination(self, instance): if not self.destination: return aq_parent(instance).absolute_url() else: portal_url = instance.portal_url() value = getattr(aq_base(instance), self.destination, self.destination) if callable(value): value = value()
edcee76c305a6e3bb549d871d4202210deb6ce68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/edcee76c305a6e3bb549d871d4202210deb6ce68/Widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17611, 12, 2890, 16, 791, 4672, 309, 486, 365, 18, 10590, 30, 293, 718, 273, 336, 6364, 5911, 12, 1336, 16, 296, 24386, 67, 718, 6134, 327, 293, 718, 18, 588, 8574, 1489, 12, 69, 85, 67, 2938, 12, 1336, 3719, 469, 30, 11899, 67, 718, 273, 791, 18, 24386, 67, 718, 1435, 460, 273, 3869, 12, 69, 85, 67, 1969, 12, 1336, 3631, 365, 18, 10590, 16, 365, 18, 10590, 13, 309, 4140, 12, 1132, 4672, 460, 273, 460, 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,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718, 6134, 327, 293, 718, 18, 588, 8574, 1489, 12, 69, 85, 67, 2938, 12, 1336, 3719, 469, 30, 11899, 67, 718, 273, 791, 18, 24386, 67, 718, 1435, 460, 273, 3869, 12, 69, 85, 67, 1969, 12, 1336, 3631, 365, 18, 10590, 16, 365, 18, 10590, 13, 309, 4140, 12, 1132, 4672, 460, 273, 460, 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 ]
if not time: time = timeago("1 day")
if not from_time: from_time = timeago("1 hour") to_time = timeago("60 seconds")
def find_recent_broken_things(time = None, delete = False): """ Occasionally (usually during app-server crashes), Things will be partially written out to the database. Things missing data attributes break the contract for these things, which often breaks various pages. This function hunts for and destroys them as appropriate (*must* be run by hand, not automatically, because deletion can ensue) """ from r2.models import Link,Comment if not time: time = timeago("1 day") for (cls,attrs) in ((Link,('author_id','sr_id')), (Comment,('author_id','sr_id','body','link_id'))): find_broken_things(cls,attrs, time, delete=delete)
648fe4ca9c1f4528de327d3725685c593fdc5276 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6723/648fe4ca9c1f4528de327d3725685c593fdc5276/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 20872, 67, 70, 19906, 67, 451, 899, 12, 957, 273, 599, 16, 1430, 273, 1083, 4672, 3536, 531, 952, 345, 285, 1230, 261, 407, 3452, 4982, 595, 17, 3567, 4422, 7690, 3631, 935, 899, 903, 506, 19976, 5941, 596, 358, 326, 2063, 18, 935, 899, 3315, 501, 1677, 898, 326, 6835, 364, 4259, 9198, 16, 1492, 16337, 16217, 11191, 4689, 18, 1220, 445, 366, 318, 3428, 364, 471, 1570, 28599, 2182, 487, 5505, 261, 14, 11926, 14, 506, 1086, 635, 948, 16, 486, 6635, 16, 2724, 10899, 848, 19670, 344, 13, 3536, 628, 436, 22, 18, 7665, 1930, 4048, 16, 4469, 225, 309, 486, 628, 67, 957, 30, 628, 67, 957, 273, 813, 28768, 2932, 21, 6126, 7923, 225, 358, 67, 957, 273, 813, 28768, 2932, 4848, 3974, 7923, 225, 364, 261, 6429, 16, 7039, 13, 316, 14015, 2098, 16, 2668, 4161, 67, 350, 17023, 11254, 67, 350, 6134, 3631, 261, 4469, 16, 2668, 4161, 67, 350, 17023, 11254, 67, 350, 17023, 3432, 17023, 1232, 67, 350, 26112, 4672, 1104, 67, 70, 19906, 67, 451, 899, 12, 6429, 16, 7039, 16, 813, 16, 1430, 33, 3733, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 20872, 67, 70, 19906, 67, 451, 899, 12, 957, 273, 599, 16, 1430, 273, 1083, 4672, 3536, 531, 952, 345, 285, 1230, 261, 407, 3452, 4982, 595, 17, 3567, 4422, 7690, 3631, 935, 899, 903, 506, 19976, 5941, 596, 358, 326, 2063, 18, 935, 899, 3315, 501, 1677, 898, 326, 6835, 364, 4259, 9198, 16, 1492, 16337, 16217, 11191, 4689, 18, 1220, 445, 366, 318, 3428, 364, 471, 1570, 28599, 2182, 487, 5505, 261, 14, 11926, 14, 506, 1086, 635, 948, 16, 486, 6635, 16, 2724, 10899, 848, 19670, 344, 13, 3536, 628, 436, 22, 18, 7665, 1930, 4048, 16, 4469, 225, 309, 486, 628, 67, 957, 30, 628, 67, 957, 273, 813, 28768, 2932, 21, 2 ]
taskMgr.remove(self.taskName("scroll"))
taskName = self.taskName("scroll") taskMgr.remove(taskName)
def __buttonUp(self, event): assert self.notify.debugStateCall(self) taskMgr.remove(self.taskName("scroll"))
65e016c551594bdcdb1226b6862c1919e169e55c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/65e016c551594bdcdb1226b6862c1919e169e55c/DirectScrolledList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5391, 1211, 12, 2890, 16, 871, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 20172, 273, 365, 18, 4146, 461, 2932, 12033, 7923, 225, 1562, 9455, 18, 4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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5391, 1211, 12, 2890, 16, 871, 4672, 1815, 365, 18, 12336, 18, 4148, 1119, 1477, 12, 2890, 13, 20172, 273, 365, 18, 4146, 461, 2932, 12033, 7923, 225, 1562, 9455, 18, 4479, 12, 4146, 461, 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 ]
oscmd(PREFIX+"/bin/genpycode -s")
oscmd(PREFIX+"/bin/genpycode")
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
e61086a30fa01bdbf945ce3d875c7884160342f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/e61086a30fa01bdbf945ce3d875c7884160342f4/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 296, 2124, 12904, 11, 4672, 2195, 273, 2195, 397, 6619, 318, 536, 315, 397, 498, 397, 1548, 82, 6, 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 ]
if data == ":": data_dict['uname'] = None
if data == ":" or data == 'None': data_dict['uname'] = None
def Record2RORP(record_string): """Given record_string, return RORPath For speed reasons, write the RORPath data dictionary directly instead of calling rorpath functions. Profiling has shown this to be a time critical function. """ data_dict = {} for field, data in line_parsing_regexp.findall(record_string): if field == "File": index = quoted_filename_to_index(data) elif field == "Type": if data == "None": data_dict['type'] = None else: data_dict['type'] = data elif field == "Size": data_dict['size'] = long(data) elif field == "ResourceFork": if data == "None": data_dict['resourcefork'] = "" else: data_dict['resourcefork'] = binascii.unhexlify(data) elif field == "CarbonFile": if data == "None": data_dict['carbonfile'] = None else: data_dict['carbonfile'] = string2carbonfile(data) elif field == "NumHardLinks": data_dict['nlink'] = int(data) elif field == "Inode": data_dict['inode'] = long(data) elif field == "DeviceLoc": data_dict['devloc'] = long(data) elif field == "SymData": data_dict['linkname'] = unquote_path(data) elif field == "DeviceNum": devchar, major_str, minor_str = data.split(" ") data_dict['devnums'] = (devchar, int(major_str), int(minor_str)) elif field == "ModTime": data_dict['mtime'] = long(data) elif field == "Uid": data_dict['uid'] = int(data) elif field == "Gid": data_dict['gid'] = int(data) elif field == "Uname": if data == ":": data_dict['uname'] = None else: data_dict['uname'] = data elif field == "Gname": if data == ':': data_dict['gname'] = None else: data_dict['gname'] = data elif field == "Permissions": data_dict['perms'] = int(data) else: raise ParsingError("Unknown field in line '%s %s'" % (field, data)) return rpath.RORPath(index, data_dict)
17c5eb9f41d611f71a5b165fed165ab4f6d75b79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8033/17c5eb9f41d611f71a5b165fed165ab4f6d75b79/metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5059, 22, 2784, 52, 12, 3366, 67, 1080, 4672, 3536, 6083, 1409, 67, 1080, 16, 327, 534, 916, 743, 225, 2457, 8632, 14000, 16, 1045, 326, 534, 916, 743, 501, 3880, 5122, 3560, 434, 4440, 436, 280, 803, 4186, 18, 225, 1186, 74, 4973, 711, 12188, 333, 358, 506, 279, 813, 11239, 445, 18, 225, 3536, 501, 67, 1576, 273, 2618, 364, 652, 16, 501, 316, 980, 67, 24979, 67, 17745, 18, 4720, 454, 12, 3366, 67, 1080, 4672, 309, 652, 422, 315, 812, 6877, 770, 273, 9298, 67, 3459, 67, 869, 67, 1615, 12, 892, 13, 1327, 652, 422, 315, 559, 6877, 309, 501, 422, 315, 7036, 6877, 501, 67, 1576, 3292, 723, 3546, 273, 599, 469, 30, 501, 67, 1576, 3292, 723, 3546, 273, 501, 1327, 652, 422, 315, 1225, 6877, 501, 67, 1576, 3292, 1467, 3546, 273, 1525, 12, 892, 13, 1327, 652, 422, 315, 1420, 22662, 6877, 309, 501, 422, 315, 7036, 6877, 501, 67, 1576, 3292, 3146, 23335, 3546, 273, 1408, 469, 30, 501, 67, 1576, 3292, 3146, 23335, 3546, 273, 28222, 18, 318, 7118, 22451, 12, 892, 13, 1327, 652, 422, 315, 39, 11801, 812, 6877, 309, 501, 422, 315, 7036, 6877, 501, 67, 1576, 3292, 71, 11801, 768, 3546, 273, 599, 469, 30, 501, 67, 1576, 3292, 71, 11801, 768, 3546, 273, 533, 22, 71, 11801, 768, 12, 892, 13, 1327, 652, 422, 315, 2578, 29601, 7100, 6877, 501, 67, 1576, 3292, 82, 1232, 3546, 273, 509, 12, 892, 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, 5059, 22, 2784, 52, 12, 3366, 67, 1080, 4672, 3536, 6083, 1409, 67, 1080, 16, 327, 534, 916, 743, 225, 2457, 8632, 14000, 16, 1045, 326, 534, 916, 743, 501, 3880, 5122, 3560, 434, 4440, 436, 280, 803, 4186, 18, 225, 1186, 74, 4973, 711, 12188, 333, 358, 506, 279, 813, 11239, 445, 18, 225, 3536, 501, 67, 1576, 273, 2618, 364, 652, 16, 501, 316, 980, 67, 24979, 67, 17745, 18, 4720, 454, 12, 3366, 67, 1080, 4672, 309, 652, 422, 315, 812, 6877, 770, 273, 9298, 67, 3459, 67, 869, 67, 1615, 12, 892, 13, 1327, 652, 422, 315, 559, 6877, 309, 501, 422, 315, 7036, 6877, 501, 67, 1576, 3292, 723, 3546, 273, 599, 469, 2 ]
def loopbriefing():
def loopbriefing(self):
def loopbriefing(): print "loop briefing" Briefing.terminate();
cfb9cb5b14b803a16659142aecc190a3dbc50997 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/cfb9cb5b14b803a16659142aecc190a3dbc50997/bounty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2798, 25888, 310, 12, 2890, 4672, 1172, 315, 6498, 324, 17802, 310, 6, 605, 17802, 310, 18, 30017, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2798, 25888, 310, 12, 2890, 4672, 1172, 315, 6498, 324, 17802, 310, 6, 605, 17802, 310, 18, 30017, 5621, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]