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 flimage_delete_all_markers(pImage): """ flimage_delete_all_markers(pImage) """ _flimage_delete_all_markers(pImage)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise AttributeError(_('Unknown attribute % in % ') % (name,self._id))
logger = netsvc.Logger() logger.notifyChannel("browse_record", netsvc.LOG_ERROR,"Ffields: %s, datas: %s"%(str(fffields),str(datas))) logger.notifyChannel("browse_record", netsvc.LOG_ERROR,"Data: %s, Table: %s"%(str(self._data[self._id]),str(self._table))) raise AttributeError(_('Unknown attribute %s in %s ') % (str(name),self._table_name))
def __getitem__(self, name): if name == 'id': return self._id if not name in self._data[self._id]: # build the list of fields we will fetch
5d17809f5269c1891e570095686b8c768b9188fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/5d17809f5269c1891e570095686b8c768b9188fc/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 486, 508, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434, 1466, 732, 903, 2158, 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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0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 486, 508, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434, 1466, 732, 903, 2158, 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 ]
'reply_to':fields.char('Reply-To', size=250,
'reply_to':fields.char('Reply-To', size=250,
def _default_model(self, cursor, user, context=None): """ Returns the default value for model field @param cursor: Database Cursor @param user: ID of current user @param context: OpenERP Context """ return self.pool.get('email.template').read( cursor, user, context['template_id'], ['object_name'], context)['object_name']
c73e17329c92d262f57a45e57664e059f5ce62c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c73e17329c92d262f57a45e57664e059f5ce62c3/email_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 67, 2284, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 3536, 2860, 326, 805, 460, 364, 938, 652, 632, 891, 3347, 30, 5130, 13949, 632, 891, 729, 30, 1599, 434, 783, 729, 632, 891, 819, 30, 3502, 654, 52, 1772, 3536, 327, 365, 18, 6011, 18, 588, 2668, 3652, 18, 3202, 16063, 896, 12, 3347, 16, 729, 16, 819, 3292, 3202, 67, 350, 17337, 10228, 1612, 67, 529, 17337, 819, 13, 3292, 1612, 67, 529, 3546, 225, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 67, 2284, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 3536, 2860, 326, 805, 460, 364, 938, 652, 632, 891, 3347, 30, 5130, 13949, 632, 891, 729, 30, 1599, 434, 783, 729, 632, 891, 819, 30, 3502, 654, 52, 1772, 3536, 327, 365, 18, 6011, 18, 588, 2668, 3652, 18, 3202, 16063, 896, 12, 3347, 16, 729, 16, 819, 3292, 3202, 67, 350, 17337, 10228, 1612, 67, 529, 17337, 819, 13, 3292, 1612, 67, 529, 3546, 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 ]
"", "", "dvn",
self._last_fileselector_dir, "", "dvn",
def _fileOpenCallback(self, event): filename = wx.FileSelector( "Choose DeVIDE network to load", "", "", "dvn", "DeVIDE networks (*.dvn)|*.dvn|All files (*.*)|*.*", wx.OPEN) if filename: self.clearAllGlyphsFromCanvas() self._loadAndRealiseNetwork(filename) # make sure that the newly realised network is nicely in # view self.canvas.reset_view() self.set_current_filename(filename)
1f20840b07ede703da0177ec1a21cff6547f16b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/1f20840b07ede703da0177ec1a21cff6547f16b4/graph_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 768, 3678, 2428, 12, 2890, 16, 871, 4672, 1544, 273, 7075, 18, 812, 4320, 12, 315, 24529, 1505, 58, 10385, 2483, 358, 1262, 3113, 365, 6315, 2722, 67, 2354, 292, 1229, 67, 1214, 16, 23453, 315, 15679, 82, 3113, 315, 758, 58, 10385, 13884, 261, 11146, 15679, 82, 14047, 11146, 15679, 82, 96, 1595, 1390, 261, 14, 4509, 14047, 14, 4509, 3113, 7075, 18, 11437, 13, 225, 309, 1544, 30, 365, 18, 8507, 1595, 25399, 1265, 12971, 1435, 365, 6315, 945, 1876, 6955, 784, 3906, 12, 3459, 13, 468, 1221, 3071, 716, 326, 10894, 2863, 5918, 2483, 353, 11562, 2357, 316, 468, 1476, 365, 18, 15424, 18, 6208, 67, 1945, 1435, 365, 18, 542, 67, 2972, 67, 3459, 12, 3459, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 768, 3678, 2428, 12, 2890, 16, 871, 4672, 1544, 273, 7075, 18, 812, 4320, 12, 315, 24529, 1505, 58, 10385, 2483, 358, 1262, 3113, 365, 6315, 2722, 67, 2354, 292, 1229, 67, 1214, 16, 23453, 315, 15679, 82, 3113, 315, 758, 58, 10385, 13884, 261, 11146, 15679, 82, 14047, 11146, 15679, 82, 96, 1595, 1390, 261, 14, 4509, 14047, 14, 4509, 3113, 7075, 18, 11437, 13, 225, 309, 1544, 30, 365, 18, 8507, 1595, 25399, 1265, 12971, 1435, 365, 6315, 945, 1876, 6955, 784, 3906, 12, 3459, 13, 468, 1221, 3071, 716, 326, 10894, 2863, 5918, 2483, 353, 11562, 2357, 316, 468, 1476, 365, 18, 15424, 18, 6208, 67, 1945, 1435, 365, 18, 542, 67, 2972, 67, 2 ]
discard_index, k_offset):
discard_index, k_offset, cost):
def _find_diagonal(minimum, maximum, k, best, diagoff, vector, vdiff_func, check_x_range, check_y_range, discard_index, k_offset): for d in xrange(maximum, minimum - 1, -2): dd = d - k x = vector[diagoff + d] y = x - d v = vdiff_func(x) * 2 + dd
b916ddeca30cdfdaf0e81e61e8f674df1d86691a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/b916ddeca30cdfdaf0e81e61e8f674df1d86691a/myersdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 30130, 12, 15903, 16, 4207, 16, 417, 16, 3796, 16, 6643, 3674, 16, 3806, 16, 331, 5413, 67, 644, 16, 866, 67, 92, 67, 3676, 16, 866, 67, 93, 67, 3676, 16, 10388, 67, 1615, 16, 417, 67, 3348, 16, 6991, 4672, 364, 302, 316, 12314, 12, 15724, 16, 5224, 300, 404, 16, 300, 22, 4672, 6957, 273, 302, 300, 417, 619, 273, 3806, 63, 12264, 3674, 397, 302, 65, 677, 273, 619, 300, 302, 331, 273, 331, 5413, 67, 644, 12, 92, 13, 380, 576, 397, 6957, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 30130, 12, 15903, 16, 4207, 16, 417, 16, 3796, 16, 6643, 3674, 16, 3806, 16, 331, 5413, 67, 644, 16, 866, 67, 92, 67, 3676, 16, 866, 67, 93, 67, 3676, 16, 10388, 67, 1615, 16, 417, 67, 3348, 16, 6991, 4672, 364, 302, 316, 12314, 12, 15724, 16, 5224, 300, 404, 16, 300, 22, 4672, 6957, 273, 302, 300, 417, 619, 273, 3806, 63, 12264, 3674, 397, 302, 65, 677, 273, 619, 300, 302, 331, 273, 331, 5413, 67, 644, 12, 92, 13, 380, 576, 397, 6957, 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 ]
"\s*\d+: (B|W) (%s)\s+(Y|N) \[([a-z ]{3})\s+(\d+)\s+(\d+)\]\s+(\d+)-(\d+)\s+(W|B)(\d+)\s+(\?\?\?|[A-Z]\d+)\s+(%s)\s+(%s)\s+(\d+),\s+(\d+):(\d+)\s+([A-Z\?]+)\s+(\d{4})" %
"\s*\d+: (B|W) (%s)\s+(Y|N) \[([a-z ]{3})\s+(\d+)\s+(\d+)\]\s+(\d+)-(\d+)\s+(W|B)(\d+)\s+(---|\?\?\?|[A-Z]\d+)\s+(%s)\s+(%s)\s+(\d+),\s+(\d+):(\d+)\s+([A-Z\?]+)\s+(\d{4})" %
def __init__ (self, connection): GObject.__init__(self) self.connection = connection self.connection.expect_line (self.__onStoredResponseNO, "%s has no adjourned games\." % self.connection.username) self.connection.expect_fromto (self.__onSmovesResponse, "Move\s+(%s)\s+(%s)" % (names,names), "{(.*[gG]ame adjourned.*)} \*") self.connection.expect_fromplus(self.__onStoredResponseYES, "\s*C Opponent\s+On Type\s+Str\s+M\s+ECO\s+Date", "\s*\d+: (B|W) (%s)\s+(Y|N) \[([a-z ]{3})\s+(\d+)\s+(\d+)\]\s+(\d+)-(\d+)\s+(W|B)(\d+)\s+(\?\?\?|[A-Z]\d+)\s+(%s)\s+(%s)\s+(\d+),\s+(\d+):(\d+)\s+([A-Z\?]+)\s+(\d{4})" % (names, "|".join(weekdays), "|".join(months))) self.adjournments = [] #TODO: Connect to {Game 67 (MAd vs. Sandstrom) Game adjourned by mutual agreement} * #TODO: Connect to adjourned game as adjudicated #TODO: Connect to player has resigned ajourned game
c055f7dc6c6e350342cd81929a5ef1a16ad6899d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/c055f7dc6c6e350342cd81929a5ef1a16ad6899d/AdjournManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1459, 4672, 611, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 4071, 273, 1459, 225, 365, 18, 4071, 18, 12339, 67, 1369, 261, 2890, 16186, 265, 18005, 1064, 3417, 16, 2213, 87, 711, 1158, 8307, 6561, 329, 28422, 64, 1199, 738, 365, 18, 4071, 18, 5053, 13, 225, 365, 18, 4071, 18, 12339, 67, 2080, 869, 261, 2890, 16186, 265, 9552, 10829, 1064, 16, 315, 7607, 64, 87, 15, 9275, 87, 5153, 87, 15, 9275, 87, 2225, 738, 261, 1973, 16, 1973, 3631, 4144, 7444, 63, 75, 43, 65, 339, 8307, 6561, 329, 4509, 16869, 521, 7388, 13, 225, 365, 18, 4071, 18, 12339, 67, 2080, 10103, 12, 2890, 16186, 265, 18005, 1064, 29081, 16, 1548, 87, 14, 39, 6066, 1029, 64, 87, 15, 1398, 1412, 64, 87, 15, 1585, 64, 87, 15, 49, 64, 87, 15, 41, 3865, 64, 87, 15, 1626, 3113, 1548, 87, 12174, 72, 15, 30, 261, 38, 96, 59, 13, 6142, 87, 5153, 87, 15, 12, 61, 96, 50, 13, 521, 63, 3816, 69, 17, 94, 308, 95, 23, 31919, 87, 26113, 72, 14456, 87, 26113, 72, 14456, 13944, 87, 26113, 72, 6975, 17, 4713, 72, 14456, 87, 15, 12, 59, 96, 38, 13, 4713, 72, 14456, 87, 15, 12, 6062, 8960, 10936, 10936, 35, 24162, 37, 17, 62, 13944, 72, 14456, 87, 15, 9275, 87, 5153, 87, 15, 9275, 87, 5153, 87, 26113, 72, 15, 3631, 64, 87, 26113, 72, 15, 4672, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1459, 4672, 611, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 4071, 273, 1459, 225, 365, 18, 4071, 18, 12339, 67, 1369, 261, 2890, 16186, 265, 18005, 1064, 3417, 16, 2213, 87, 711, 1158, 8307, 6561, 329, 28422, 64, 1199, 738, 365, 18, 4071, 18, 5053, 13, 225, 365, 18, 4071, 18, 12339, 67, 2080, 869, 261, 2890, 16186, 265, 9552, 10829, 1064, 16, 315, 7607, 64, 87, 15, 9275, 87, 5153, 87, 15, 9275, 87, 2225, 738, 261, 1973, 16, 1973, 3631, 4144, 7444, 63, 75, 43, 65, 339, 8307, 6561, 329, 4509, 16869, 521, 7388, 13, 225, 365, 18, 4071, 18, 12339, 67, 2080, 10103, 12, 2890, 16186, 2 ]
self.worker.flush = True self.worker.process()
if not self.worker.xmds == None: self.worker.flush = True self.worker.process()
def flush(self): self.worker.flush = True self.worker.process()
fac10bc93468af9ed5b258f8456ca26343f99677 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5464/fac10bc93468af9ed5b258f8456ca26343f99677/XiboClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 365, 18, 10124, 18, 11330, 273, 1053, 365, 18, 10124, 18, 2567, 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 ]
[ 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 365, 18, 10124, 18, 11330, 273, 1053, 365, 18, 10124, 18, 2567, 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 ]
doc.AddItem(Link('%s/%s' % (mlist.GetRelativeScriptURL('admin'), category),
doc.AddItem(Link('%s/%s' % (mlist.GetScriptURL('admin'), category),
def FormatOptionHelp(doc, varref, mlist): item = None reflist = string.split(varref, '/') if len(reflist) == 2: category, varname = reflist options = GetConfigOptions(mlist, category) for i in options: if i and i[0] == varname: item = i break if not item: bad = ("Option %s/%s not found. %s" % (category, varname, os.environ['PATH_INFO'])) AddErrorMessage(doc, bad) return got = GetItemCharacteristics(item) try: varname, kind, params, dependancies, descr, elaboration = got if elaboration is None: elaboration = '' except ValueError, msg: varname, kind, params, dependancies, descr = got elaboration = descr header = Table(width="100%") legend = ('%s Mailing list Configuration Help<br><em>%s</em> Option' % (mlist.real_name, varname)) header.AddRow([Center(Header(3, legend))]) header.AddCellInfo(max(header.GetCurrentRowIndex(), 0), 0, colspan=2, bgcolor="#99ccff") doc.SetTitle("Mailman %s List Option Help" % varname) doc.AddItem(header) doc.AddItem("<b>%s</b> (%s): %s<p>" % (varname, category, descr)) doc.AddItem("%s<p>" % elaboration) form = Form("%s/%s" % (mlist.GetRelativeScriptURL('admin'), category)) valtab = Table(cellspacing=3, cellpadding=4) AddOptionsTableItem(valtab, item, category, mlist, detailsp=0) form.AddItem(valtab) # XXX I don't think we want to be able to set options from two places, # since they'll go out of sync. #form.AddItem(Center(FormatPasswordStuff())) doc.AddItem(Center(form)) doc.AddItem("(<em><strong>Don't change the option here.</strong> " 'Use the ') doc.AddItem(Link('%s/%s' % (mlist.GetRelativeScriptURL('admin'), category), category + ' options page')) doc.AddItem(' instead.</em>)')
d772bed94c30a1a03262a0ff02987a6c5643a380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d772bed94c30a1a03262a0ff02987a6c5643a380/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 1895, 6696, 12, 2434, 16, 569, 1734, 16, 312, 1098, 4672, 761, 273, 599, 1278, 1098, 273, 533, 18, 4939, 12, 1401, 1734, 16, 2023, 13, 309, 562, 12, 1734, 1098, 13, 422, 576, 30, 3150, 16, 15434, 273, 1278, 1098, 702, 273, 26666, 1320, 12, 781, 376, 16, 3150, 13, 364, 277, 316, 702, 30, 309, 277, 471, 277, 63, 20, 65, 422, 15434, 30, 761, 273, 277, 898, 309, 486, 761, 30, 5570, 273, 7566, 1895, 738, 87, 5258, 87, 486, 1392, 18, 738, 87, 6, 738, 261, 4743, 16, 15434, 16, 1140, 18, 28684, 3292, 4211, 67, 5923, 3546, 3719, 1436, 14935, 12, 2434, 16, 5570, 13, 327, 2363, 273, 968, 1180, 7069, 4287, 12, 1726, 13, 775, 30, 15434, 16, 3846, 16, 859, 16, 2447, 304, 13689, 16, 18426, 16, 415, 378, 22226, 273, 2363, 309, 415, 378, 22226, 353, 599, 30, 415, 378, 22226, 273, 875, 1335, 2068, 16, 1234, 30, 15434, 16, 3846, 16, 859, 16, 2447, 304, 13689, 16, 18426, 273, 2363, 415, 378, 22226, 273, 18426, 1446, 273, 3555, 12, 2819, 1546, 6625, 9, 7923, 7241, 273, 7707, 9, 87, 11542, 310, 666, 4659, 11288, 32, 2848, 4438, 351, 9822, 87, 1757, 351, 34, 2698, 11, 738, 261, 781, 376, 18, 7688, 67, 529, 16, 15434, 3719, 1446, 18, 986, 1999, 3816, 8449, 12, 1864, 12, 23, 16, 7241, 3719, 5717, 1446, 18, 986, 4020, 966, 12, 1896, 12, 3374, 18, 967, 3935, 21769, 9334, 374, 3631, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 1895, 6696, 12, 2434, 16, 569, 1734, 16, 312, 1098, 4672, 761, 273, 599, 1278, 1098, 273, 533, 18, 4939, 12, 1401, 1734, 16, 2023, 13, 309, 562, 12, 1734, 1098, 13, 422, 576, 30, 3150, 16, 15434, 273, 1278, 1098, 702, 273, 26666, 1320, 12, 781, 376, 16, 3150, 13, 364, 277, 316, 702, 30, 309, 277, 471, 277, 63, 20, 65, 422, 15434, 30, 761, 273, 277, 898, 309, 486, 761, 30, 5570, 273, 7566, 1895, 738, 87, 5258, 87, 486, 1392, 18, 738, 87, 6, 738, 261, 4743, 16, 15434, 16, 1140, 18, 28684, 3292, 4211, 67, 5923, 3546, 3719, 1436, 14935, 12, 2434, 16, 5570, 13, 327, 2363, 273, 968, 1180, 7069, 4287, 2 ]
FL_Coord, STRING],
FL_Coord, STRING],
def fl_create_bitmap(type, x, y, w, h, label): """ fl_create_bitmap(type, x, y, w, h, label) -> object """ retval = _fl_create_bitmap(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 317, 733, 3536, 225, 5221, 273, 389, 2242, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 317, 733, 3536, 225, 5221, 273, 389, 2242, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
f.write(fmt % (self.stationlist[i], 'P', date, delta,
f.write(fmt % (self.dicts[i]['Station'], 'P', date, delta,
def do3dLoc(self): self.xmlEventID = '%i' % time.time() subprocess.call(self.threeDlocPreCall, shell = True) f = open(self.threeDlocInfile, 'w') network = "BW" fmt = "%04s %s %s %5.3f -999.0 0.000 -999. 0.000 T__DR_ %9.6f %9.6f %8.6f\n" self.coords = [] for i in range(len(self.streams)): #lon, lat, ele = getCoord(network, self.stationlist[i]) lon = self.dicts[i]['StaLon'] lat = self.dicts[i]['StaLat'] ele = self.dicts[i]['StaEle'] self.coords.append([lon, lat]) if self.dicts[i].has_key('P'): t = self.streams[i][0].stats.starttime t += self.dicts[i]['P'] / self.streams[i][0].stats.sampling_rate date = t.strftime("%Y %m %d %H %M %S") date += ".%03d" % (t.microsecond / 1e3 + 0.5) delta = self.dicts[i]['PErr2'] - self.dicts[i]['PErr1'] delta /= self.streams[i][0].stats.sampling_rate f.write(fmt % (self.stationlist[i], 'P', date, delta, lon, lat, ele / 1e3)) if self.dicts[i].has_key('S'): t = self.streams[i][0].stats.starttime t += self.dicts[i]['S'] / self.streams[i][0].stats.sampling_rate date = t.strftime("%Y %m %d %H %M %S") date += ".%03d" % (t.microsecond / 1e3 + 0.5) delta = self.dicts[i]['SErr2'] - self.dicts[i]['SErr1'] delta /= self.streams[i][0].stats.sampling_rate f.write(fmt % (self.stationlist[i], 'S', date, delta, lon, lat, ele / 1e3)) f.close() print 'Phases for 3Dloc:' self.catFile(self.threeDlocInfile) subprocess.call(self.threeDlocCall, shell = True) print '--> 3dloc finished' self.catFile(self.threeDlocOutfile)
50570db0175b1852c554a55b2bd91b8f3d8fb93f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/50570db0175b1852c554a55b2bd91b8f3d8fb93f/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 23, 72, 1333, 12, 2890, 4672, 365, 18, 2902, 1133, 734, 273, 1995, 77, 11, 738, 813, 18, 957, 1435, 6652, 18, 1991, 12, 2890, 18, 451, 992, 40, 1829, 1386, 1477, 16, 5972, 273, 1053, 13, 284, 273, 1696, 12, 2890, 18, 451, 992, 40, 1829, 382, 768, 16, 296, 91, 6134, 2483, 273, 315, 38, 59, 6, 1325, 273, 2213, 3028, 87, 225, 738, 87, 3639, 738, 87, 738, 25, 18, 23, 74, 300, 11984, 18, 20, 374, 18, 3784, 300, 11984, 18, 374, 18, 3784, 399, 972, 6331, 67, 738, 29, 18, 26, 74, 738, 29, 18, 26, 74, 738, 28, 18, 26, 74, 64, 82, 6, 365, 18, 9076, 273, 5378, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 16320, 3719, 30, 468, 9379, 16, 2516, 16, 5043, 273, 19850, 517, 12, 5185, 16, 365, 18, 17894, 1098, 63, 77, 5717, 4281, 273, 365, 18, 16287, 63, 77, 23962, 510, 69, 15927, 3546, 2516, 273, 365, 18, 16287, 63, 77, 23962, 510, 69, 6607, 3546, 5043, 273, 365, 18, 16287, 63, 77, 23962, 510, 69, 17274, 3546, 365, 18, 9076, 18, 6923, 3816, 9379, 16, 2516, 5717, 309, 365, 18, 16287, 63, 77, 8009, 5332, 67, 856, 2668, 52, 11, 4672, 268, 273, 365, 18, 16320, 63, 77, 6362, 20, 8009, 5296, 18, 1937, 957, 268, 1011, 365, 18, 16287, 63, 77, 23962, 52, 3546, 342, 365, 18, 16320, 63, 77, 6362, 20, 8009, 5296, 18, 23002, 67, 5141, 1509, 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, 741, 23, 72, 1333, 12, 2890, 4672, 365, 18, 2902, 1133, 734, 273, 1995, 77, 11, 738, 813, 18, 957, 1435, 6652, 18, 1991, 12, 2890, 18, 451, 992, 40, 1829, 1386, 1477, 16, 5972, 273, 1053, 13, 284, 273, 1696, 12, 2890, 18, 451, 992, 40, 1829, 382, 768, 16, 296, 91, 6134, 2483, 273, 315, 38, 59, 6, 1325, 273, 2213, 3028, 87, 225, 738, 87, 3639, 738, 87, 738, 25, 18, 23, 74, 300, 11984, 18, 20, 374, 18, 3784, 300, 11984, 18, 374, 18, 3784, 399, 972, 6331, 67, 738, 29, 18, 26, 74, 738, 29, 18, 26, 74, 738, 28, 18, 26, 74, 64, 82, 6, 365, 18, 9076, 273, 5378, 364, 277, 2 ]
def JSDocTypeString(type_defn): """Gets the representation of a type in JSDoc notation. Args: type_defn: a Definition for the type. Returns: a string that is the JSDoc notation of type_defn. """ type_defn = type_defn.GetFinalType() type_stack = type_defn.GetParentScopeStack() name = type_defn.name return '!' + '.'.join([s.name for s in type_stack[1:]] + [name])
def CppGetStatic(scope, type_defn, field): """Gets the representation of an expression getting a static field. Args: scope: a Definition for the scope in which the expression will be written. type_defn: a Definition, representing the type of the object containing the field being retrieved. field: a string, the name of the field to be retrieved. Returns: a string, which is the expression for getting the field. """ return '%s::%s()' % (cpp_utils.GetScopedName(scope, type_defn), cpp_utils.GetGetterName(field))
3d476cf047d6a463d5706f70bfdf5e3787f863ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/3d476cf047d6a463d5706f70bfdf5e3787f863ee/o3d_binding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 385, 11858, 967, 5788, 12, 4887, 16, 618, 67, 536, 82, 16, 652, 4672, 3536, 3002, 326, 4335, 434, 392, 2652, 8742, 279, 760, 652, 18, 225, 6634, 30, 2146, 30, 279, 10849, 364, 326, 2146, 316, 1492, 326, 2652, 903, 506, 5941, 18, 618, 67, 536, 82, 30, 279, 10849, 16, 5123, 326, 618, 434, 326, 733, 4191, 326, 652, 3832, 10295, 18, 652, 30, 279, 533, 16, 326, 508, 434, 326, 652, 358, 506, 10295, 18, 225, 2860, 30, 279, 533, 16, 1492, 353, 326, 2652, 364, 8742, 326, 652, 18, 3536, 327, 1995, 87, 2866, 9, 87, 11866, 738, 261, 4057, 84, 67, 5471, 18, 967, 25470, 461, 12, 4887, 16, 618, 67, 536, 82, 3631, 3283, 84, 67, 5471, 18, 967, 8461, 461, 12, 1518, 3719, 282, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 385, 11858, 967, 5788, 12, 4887, 16, 618, 67, 536, 82, 16, 652, 4672, 3536, 3002, 326, 4335, 434, 392, 2652, 8742, 279, 760, 652, 18, 225, 6634, 30, 2146, 30, 279, 10849, 364, 326, 2146, 316, 1492, 326, 2652, 903, 506, 5941, 18, 618, 67, 536, 82, 30, 279, 10849, 16, 5123, 326, 618, 434, 326, 733, 4191, 326, 652, 3832, 10295, 18, 652, 30, 279, 533, 16, 326, 508, 434, 326, 652, 358, 506, 10295, 18, 225, 2860, 30, 279, 533, 16, 1492, 353, 326, 2652, 364, 8742, 326, 652, 18, 3536, 327, 1995, 87, 2866, 9, 87, 11866, 738, 261, 4057, 84, 67, 5471, 18, 967, 25470, 461, 12, 4887, 16, 618, 67, 536, 82, 2 ]
ValueError: The given string does not only contain 0 and 1 """
ValueError: Input must be a binary string. """
def decode(self, string): r""" Returns a decoded version of the given string corresponding to the current encoding table.
1b9c6cbddf459d54e7643b46fc74830b6a3ea80c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b9c6cbddf459d54e7643b46fc74830b6a3ea80c/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 533, 4672, 436, 8395, 2860, 279, 6383, 1177, 434, 326, 864, 533, 4656, 358, 326, 783, 2688, 1014, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 533, 4672, 436, 8395, 2860, 279, 6383, 1177, 434, 326, 864, 533, 4656, 358, 326, 783, 2688, 1014, 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 ]
stripefoot = '";'
stripefoot = '"\n'
def flatten(self, stripeset, depth=0, context="show"): """Converts a stripe or stripeset into a string"""
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def forget_items(self, item_list): for item in item_list: del self.positions[item.id]
def forget_items(self, id_list): for id in id_list: del self.positions[id]
def forget_items(self, item_list): for item in item_list: del self.positions[item.id]
8b3233d5e351708d470edc8ec98cd6860ccfa3c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/8b3233d5e351708d470edc8ec98cd6860ccfa3c9/playlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 67, 3319, 12, 2890, 16, 761, 67, 1098, 4672, 364, 761, 316, 761, 67, 1098, 30, 1464, 365, 18, 12388, 63, 1726, 18, 350, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 13776, 67, 3319, 12, 2890, 16, 761, 67, 1098, 4672, 364, 761, 316, 761, 67, 1098, 30, 1464, 365, 18, 12388, 63, 1726, 18, 350, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not url.startswith('http') and self.ssl:
if url.startswith('http:') and self.ssl: url = atom.url.parse_url('https:' + url[5:]) elif not url.startswith('http') and self.ssl:
def request(self, operation, url, data=None, headers=None, url_params=None): if isinstance(url, (str, unicode)): if not url.startswith('http') and self.ssl: url = atom.url.parse_url('https://%s%s' % (self.server, url)) elif not url.startswith('http'): url = atom.url.parse_url('http://%s%s' % (self.server, url)) else: url = atom.url.parse_url(url)
ea2f7e8127b31a28e10b760816bd093d8a946c1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/ea2f7e8127b31a28e10b760816bd093d8a946c1e/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 1674, 16, 880, 16, 501, 33, 7036, 16, 1607, 33, 7036, 16, 880, 67, 2010, 33, 7036, 4672, 309, 1549, 12, 718, 16, 261, 701, 16, 5252, 3719, 30, 309, 880, 18, 17514, 1918, 2668, 2505, 2497, 13, 471, 365, 18, 8157, 30, 225, 880, 273, 3179, 18, 718, 18, 2670, 67, 718, 2668, 4528, 2497, 397, 880, 63, 25, 30, 5717, 1327, 486, 880, 18, 17514, 1918, 2668, 2505, 6134, 471, 365, 18, 8157, 30, 880, 273, 3179, 18, 718, 18, 2670, 67, 718, 2668, 4528, 23155, 87, 9, 87, 11, 738, 261, 2890, 18, 3567, 16, 880, 3719, 1327, 486, 880, 18, 17514, 1918, 2668, 2505, 11, 4672, 880, 273, 3179, 18, 718, 18, 2670, 67, 718, 2668, 2505, 23155, 87, 9, 87, 11, 738, 261, 2890, 18, 3567, 16, 880, 3719, 469, 30, 880, 273, 3179, 18, 718, 18, 2670, 67, 718, 12, 718, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 1674, 16, 880, 16, 501, 33, 7036, 16, 1607, 33, 7036, 16, 880, 67, 2010, 33, 7036, 4672, 309, 1549, 12, 718, 16, 261, 701, 16, 5252, 3719, 30, 309, 880, 18, 17514, 1918, 2668, 2505, 2497, 13, 471, 365, 18, 8157, 30, 225, 880, 273, 3179, 18, 718, 18, 2670, 67, 718, 2668, 4528, 2497, 397, 880, 63, 25, 30, 5717, 1327, 486, 880, 18, 17514, 1918, 2668, 2505, 6134, 471, 365, 18, 8157, 30, 880, 273, 3179, 18, 718, 18, 2670, 67, 718, 2668, 4528, 23155, 87, 9, 87, 11, 738, 261, 2890, 18, 3567, 16, 880, 3719, 1327, 486, 880, 18, 17514, 1918, 2668, 2505, 11, 4672, 880, 273, 3179, 18, 2 ]
warn = 'No Systems compatible with distro %s' % distro_install_name
warn = 'No Systems compatible with distro %s' % distro.install_name
def reserve_link(x,distro): if x.is_free(): return make_link("/reserveworkflow/reserve?system_id=%s&distro_id=%s" % (Utility.get_correct_system_column(x).id,distro), 'Reserve Now') else: return make_link("/reserveworkflow/reserve?system_id=%s&distro_id=%s" % (Utility.get_correct_system_column(x).id,distro), 'Queue Reservation')
5c77e791bdcee2227c2fc9b01719b478d23fa9eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/5c77e791bdcee2227c2fc9b01719b478d23fa9eb/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20501, 67, 1232, 12, 92, 16, 4413, 303, 4672, 309, 619, 18, 291, 67, 9156, 13332, 327, 1221, 67, 1232, 2932, 19, 455, 264, 90, 359, 778, 2426, 19, 455, 6527, 35, 4299, 67, 350, 5095, 87, 10, 4413, 303, 67, 350, 5095, 87, 6, 738, 261, 6497, 18, 588, 67, 6746, 67, 4299, 67, 2827, 12, 92, 2934, 350, 16, 4413, 303, 3631, 296, 607, 6527, 4494, 6134, 469, 30, 327, 1221, 67, 1232, 2932, 19, 455, 264, 90, 359, 778, 2426, 19, 455, 6527, 35, 4299, 67, 350, 5095, 87, 10, 4413, 303, 67, 350, 5095, 87, 6, 738, 261, 6497, 18, 588, 67, 6746, 67, 4299, 67, 2827, 12, 92, 2934, 350, 16, 4413, 303, 3631, 296, 3183, 30647, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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527, 35, 4299, 67, 350, 5095, 87, 10, 4413, 303, 67, 350, 5095, 87, 6, 738, 261, 6497, 18, 588, 67, 6746, 67, 4299, 67, 2827, 12, 92, 2934, 350, 16, 4413, 303, 3631, 296, 607, 6527, 4494, 6134, 469, 30, 327, 1221, 67, 1232, 2932, 19, 455, 264, 90, 359, 778, 2426, 19, 455, 6527, 35, 4299, 67, 350, 5095, 87, 10, 4413, 303, 67, 350, 5095, 87, 6, 738, 261, 6497, 18, 588, 67, 6746, 67, 4299, 67, 2827, 12, 92, 2934, 350, 16, 4413, 303, 2 ]
return sorted(p_list, key=lambda obj: isinstance(obj, str) and \ force_to_unicode(getattr(obj, p_attr, '')) or \ getattr(obj, p_attr, None), reverse=bool(p_desc))
def sort_key(obj): attr = getattr(obj, p_attr, None) if isinstance(attr, basestring): return force_to_unicode(attr) else: return attr return sorted(p_list, key=sort_key, reverse=bool(p_desc))
def utSortObjsListByAttr(self, p_list, p_attr, p_desc=1): """Sort a list of objects by an attribute values""" return sorted(p_list, key=lambda obj: isinstance(obj, str) and \ force_to_unicode(getattr(obj, p_attr, '')) or \ getattr(obj, p_attr, None), reverse=bool(p_desc))
ea85247a98528b7c1a1b53b5d815da61fe4e306e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/ea85247a98528b7c1a1b53b5d815da61fe4e306e/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5218, 4416, 2675, 21576, 858, 3843, 12, 2890, 16, 293, 67, 1098, 16, 293, 67, 1747, 16, 293, 67, 5569, 33, 21, 4672, 3536, 4416, 279, 666, 434, 2184, 635, 392, 1566, 924, 8395, 327, 3115, 12, 84, 67, 1098, 16, 498, 33, 14661, 1081, 30, 1549, 12, 2603, 16, 609, 13, 471, 521, 2944, 67, 869, 67, 9124, 12, 588, 1747, 12, 2603, 16, 293, 67, 1747, 16, 875, 3719, 578, 521, 3869, 12, 2603, 16, 293, 67, 1747, 16, 599, 3631, 4219, 33, 6430, 12, 84, 67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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, 5218, 4416, 2675, 21576, 858, 3843, 12, 2890, 16, 293, 67, 1098, 16, 293, 67, 1747, 16, 293, 67, 5569, 33, 21, 4672, 3536, 4416, 279, 666, 434, 2184, 635, 392, 1566, 924, 8395, 327, 3115, 12, 84, 67, 1098, 16, 498, 33, 14661, 1081, 30, 1549, 12, 2603, 16, 609, 13, 471, 521, 2944, 67, 869, 67, 9124, 12, 588, 1747, 12, 2603, 16, 293, 67, 1747, 16, 875, 3719, 578, 521, 3869, 12, 2603, 16, 293, 67, 1747, 16, 599, 3631, 4219, 33, 6430, 12, 84, 67, 5569, 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 ]
self.assertRaises(ValueError, time.strftime, '',
self.assertRaises(ValueError, func,
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple (0 is valid for *all* values).
e5bdf5740529b4ba238a2559495df94fbf74c768 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e5bdf5740529b4ba238a2559495df94fbf74c768/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 261, 20, 353, 923, 364, 380, 454, 14, 924, 2934, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 261, 20, 353, 923, 364, 380, 454, 14, 924, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 btnActivate_clicked(self,widget): self.writeSettings() def btnClose_clicked(self,widget):
def event_settings_changed(self,widget, data = None): if self.gone_live: self.writeSettings() pass def btnClose_clicked(self,widget, data = None):
def btnActivate_clicked(self,widget): self.writeSettings()
3397f9f1c50ccb125dcd8c579936e104f847d2d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/61/3397f9f1c50ccb125dcd8c579936e104f847d2d3/proximity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10638,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10638, 21370, 67, 7475, 329, 12, 2890, 16, 6587, 4672, 365, 18, 2626, 2628, 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 ]
keepalive = peer.hold_time / 3.0
keepalive = self._HoldTime(peer.address) / 3.0
def msg_send_timeout(): message = protocol.Message('HEARTBEAT') message.args.id_ = self.node.id_ self.SendToPeer(peer, message)
03c07bb2808d7efccee059a822635f1fd287f271 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/03c07bb2808d7efccee059a822635f1fd287f271/nodeconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1234, 67, 4661, 67, 4538, 13332, 883, 273, 1771, 18, 1079, 2668, 3900, 4928, 5948, 789, 6134, 883, 18, 1968, 18, 350, 67, 273, 365, 18, 2159, 18, 350, 67, 365, 18, 3826, 774, 6813, 12, 12210, 16, 883, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1234, 67, 4661, 67, 4538, 13332, 883, 273, 1771, 18, 1079, 2668, 3900, 4928, 5948, 789, 6134, 883, 18, 1968, 18, 350, 67, 273, 365, 18, 2159, 18, 350, 67, 365, 18, 3826, 774, 6813, 12, 12210, 16, 883, 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 ]
[{'width': 420.0-380.0, 'line_width': 1.0, 'height': 380.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'tool': 'LINE', 'points': (360.0, 80.0, 400.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': 707406591L}, {'radius_x': 100, 'line_width': 1.0, 'radius_y': 170, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'center_y': 100.0+170, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+100}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 100, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x831891A0L, 'center_y': 180.0+100, 'tool': 'FILL_CIRCLE', 'center_x': 260.0+50}]
[{'width': 420.0-380.0, 'line_width': 1.0, 'height': 380.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'tool': 'LINE', 'points': (360.0, 80.0, 400.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': C_STROKE}, {'radius_x': 100, 'line_width': 1.0, 'radius_y': 170, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'center_y': 100.0+170, 'tool': 'FILL_CIRCLE', 'center_x': 180.0+100}, {'radius_x': 50, 'line_width': 1.0, 'radius_y': 100, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_MAGENTA|C_FILL, 'center_y': 180.0+100, 'tool': 'FILL_CIRCLE', 'center_x': 260.0+50}]
def init_item_list(self):
afe6d4cfa4a483507d506d63168d467aba7acf11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11306/afe6d4cfa4a483507d506d63168d467aba7acf11/redraw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1726, 67, 1098, 12, 2890, 4672, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1726, 67, 1098, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
S -- a finite iterable defining the S-box with integer or finite field elements big_endian -- controls whether bits shall be ordered in big endian order (default: True)
- ``S`` - a finite iterable defining the S-box with integer or finite field elements - ``big_endian`` - controls whether bits shall be ordered in big endian order (default: ``True``)
def __init__(self, *args, **kwargs): """ Construct a substitution box (S-box) for a given lookup table $S$.
16527da1ddc0ac750f609cd58858c5b45d932696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/16527da1ddc0ac750f609cd58858c5b45d932696/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 225, 2826, 4333, 4672, 3536, 14291, 279, 12785, 3919, 261, 55, 17, 2147, 13, 364, 279, 864, 3689, 1014, 271, 55, 8, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 225, 2826, 4333, 4672, 3536, 14291, 279, 12785, 3919, 261, 55, 17, 2147, 13, 364, 279, 864, 3689, 1014, 271, 55, 8, 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 ]
album = "%s (disc %s)" % (album, discnumber)
album = "%s (disc %d)" % (album, discnumber)
def cluster(files, threshold): artistDict = ClusterDict() albumDict = ClusterDict() tracks = [] for file in files: album = file.metadata["album"] discnumber = file.metadata["discnumber"] if discnumber and "disc" not in album and "CD" not in album: album = "%s (disc %s)" % (album, discnumber) tracks.append((artistDict.add(file.metadata["artist"]), albumDict.add(album)))
ff677ce91ee4664ce346f3205b37e7c2a1d61e50 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12415/ff677ce91ee4664ce346f3205b37e7c2a1d61e50/cluster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2855, 12, 2354, 16, 5573, 4672, 15469, 5014, 273, 5584, 5014, 1435, 14844, 5014, 273, 5584, 5014, 1435, 13933, 273, 5378, 364, 585, 316, 1390, 30, 14844, 273, 585, 18, 4165, 9614, 25090, 11929, 19169, 2696, 273, 585, 18, 4165, 9614, 2251, 71, 2696, 11929, 309, 19169, 2696, 471, 315, 2251, 71, 6, 486, 316, 14844, 471, 315, 10160, 6, 486, 316, 14844, 30, 14844, 273, 2213, 87, 261, 2251, 71, 738, 72, 2225, 738, 261, 25090, 16, 19169, 2696, 13, 13933, 18, 6923, 12443, 25737, 5014, 18, 1289, 12, 768, 18, 4165, 9614, 25737, 11929, 3631, 14844, 5014, 18, 1289, 12, 25090, 20349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 18, 4165, 9614, 2251, 71, 2696, 11929, 309, 19169, 2696, 471, 315, 2251, 71, 6, 486, 316, 14844, 471, 315, 10160, 6, 486, 316, 14844, 30, 14844, 273, 2213, 87, 261, 2251, 71, 738, 72, 2225, 738, 261, 25090, 16, 19169, 2696, 13, 13933, 18, 6923, 12443, 25737, 5014, 18, 1289, 12, 768, 18, 4165, 9614, 25737, 11929, 3631, 14844, 5014, 18, 1289, 12, 25090, 20349, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "---------- beign standard out ----------"
print "---------- begin standard out ----------"
def run(self): while True: job = self.input_queue.get() # # Worker threads continue running until explicitly told to stop with # a special job. # if job.is_break: return # # If the global interrupt handler sets the thread_exit variable, # we stop doing real work and just report back a "break" in the # normal command processing has happened. # if thread_exit == True: job.set_is_break(True) self.output_queue.put(job) continue
c06bd63e79fb8cd8489563b398b72217d4c96ddf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7746/c06bd63e79fb8cd8489563b398b72217d4c96ddf/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 1053, 30, 1719, 273, 365, 18, 2630, 67, 4000, 18, 588, 1435, 468, 468, 11016, 7403, 1324, 3549, 3180, 8122, 268, 1673, 358, 2132, 598, 468, 279, 4582, 1719, 18, 468, 309, 1719, 18, 291, 67, 8820, 30, 327, 468, 468, 971, 326, 2552, 13123, 1838, 1678, 326, 2650, 67, 8593, 2190, 16, 468, 732, 2132, 9957, 2863, 1440, 471, 2537, 2605, 1473, 279, 315, 8820, 6, 316, 326, 468, 2212, 1296, 4929, 711, 17497, 18, 468, 309, 2650, 67, 8593, 422, 1053, 30, 1719, 18, 542, 67, 291, 67, 8820, 12, 5510, 13, 365, 18, 2844, 67, 4000, 18, 458, 12, 4688, 13, 1324, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 1053, 30, 1719, 273, 365, 18, 2630, 67, 4000, 18, 588, 1435, 468, 468, 11016, 7403, 1324, 3549, 3180, 8122, 268, 1673, 358, 2132, 598, 468, 279, 4582, 1719, 18, 468, 309, 1719, 18, 291, 67, 8820, 30, 327, 468, 468, 971, 326, 2552, 13123, 1838, 1678, 326, 2650, 67, 8593, 2190, 16, 468, 732, 2132, 9957, 2863, 1440, 471, 2537, 2605, 1473, 279, 315, 8820, 6, 316, 326, 468, 2212, 1296, 4929, 711, 17497, 18, 468, 309, 2650, 67, 8593, 422, 1053, 30, 1719, 18, 542, 67, 291, 67, 8820, 12, 5510, 13, 365, 18, 2844, 67, 4000, 18, 458, 12, 4688, 13, 1324, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
if prog.start <= now and prog.stop >= now and recording:
if recording:
def removeScheduledRecording(self, prog=None): if not prog: return (FALSE, 'no prog')
f79c81409fa066f1fd35ff211636eb7c2c76f741 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f79c81409fa066f1fd35ff211636eb7c2c76f741/recordserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 10660, 21037, 12, 2890, 16, 11243, 33, 7036, 4672, 309, 486, 11243, 30, 327, 261, 21053, 16, 296, 2135, 11243, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 10660, 21037, 12, 2890, 16, 11243, 33, 7036, 4672, 309, 486, 11243, 30, 327, 261, 21053, 16, 296, 2135, 11243, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for i in xrange(self.order()):
while len(edges) < self.order()-1:
def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False.
a89281b5d7607ed5e3c6211ab311725fad246357 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a89281b5d7607ed5e3c6211ab311725fad246357/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 18, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 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 ]
def email_send(self, cr, uid, obj, emails, body, emailfrom=tools.config.get('email_from', False), context={}):
def email_send(self, cr, uid, obj, emails, body, emailfrom=None, context=None):
def email_send(self, cr, uid, obj, emails, body, emailfrom=tools.config.get('email_from', False), context={}): """ send email @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param email: pass the emails @param emailfrom: Pass name the email From else False @param context: A standard dictionary for contextual values """ body = self.format_mail(obj, body) if not emailfrom: if hasattr(obj, 'user_id') and obj.user_id and obj.user_id.address_id and\ obj.user_id.address_id.email: emailfrom = obj.user_id.address_id.email
c2b346743214ee3e9cac1aefeb2b874c6d090634 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c2b346743214ee3e9cac1aefeb2b874c6d090634/base_action_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 4661, 12, 2890, 16, 4422, 16, 4555, 16, 1081, 16, 14255, 16, 1417, 16, 2699, 2080, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 1366, 2699, 632, 891, 365, 30, 1021, 733, 4407, 632, 891, 4422, 30, 326, 783, 1027, 16, 628, 326, 2063, 3347, 16, 632, 891, 4555, 30, 326, 783, 729, 163, 227, 252, 87, 1599, 364, 4373, 4271, 16, 632, 891, 2699, 30, 1342, 326, 14255, 632, 891, 2699, 2080, 30, 10311, 508, 326, 2699, 6338, 469, 1083, 632, 891, 819, 30, 432, 4529, 3880, 364, 22724, 924, 3536, 1417, 273, 365, 18, 2139, 67, 4408, 12, 2603, 16, 1417, 13, 309, 486, 2699, 2080, 30, 309, 3859, 12, 2603, 16, 296, 1355, 67, 350, 6134, 225, 471, 1081, 18, 1355, 67, 350, 471, 1081, 18, 1355, 67, 350, 18, 2867, 67, 350, 471, 64, 1081, 18, 1355, 67, 350, 18, 2867, 67, 350, 18, 3652, 30, 2699, 2080, 273, 1081, 18, 1355, 67, 350, 18, 2867, 67, 350, 18, 3652, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 4661, 12, 2890, 16, 4422, 16, 4555, 16, 1081, 16, 14255, 16, 1417, 16, 2699, 2080, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 1366, 2699, 632, 891, 365, 30, 1021, 733, 4407, 632, 891, 4422, 30, 326, 783, 1027, 16, 628, 326, 2063, 3347, 16, 632, 891, 4555, 30, 326, 783, 729, 163, 227, 252, 87, 1599, 364, 4373, 4271, 16, 632, 891, 2699, 30, 1342, 326, 14255, 632, 891, 2699, 2080, 30, 10311, 508, 326, 2699, 6338, 469, 1083, 632, 891, 819, 30, 432, 4529, 3880, 364, 22724, 924, 3536, 1417, 273, 365, 18, 2139, 67, 4408, 12, 2603, 16, 1417, 13, 309, 486, 2699, 2080, 30, 309, 3859, 12, 2603, 16, 296, 1355, 2 ]
user and user.username not in ( u"anonymous", None ) and P( u"You're currently subscribed to Luminotes %s." % user_plan[ u"name" ].capitalize(), ( user.rate_plan > 0 ) and unsubscribe_button or None, ) or None,
def __init__( self, user, notebooks, first_notebook, login_url, logout_url, rate_plan, groups, rate_plans, unsubscribe_button ): MEGABYTE = 1024 * 1024 rate_plans = list( rate_plans )[ 0:1 ] # only the free rate plan is shown user_plan = rate_plans[ user.rate_plan ]
e8d787f163a5353ab7ec80f3249c027887d4c2c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6754/e8d787f163a5353ab7ec80f3249c027887d4c2c4/Upgrade_page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 729, 16, 4721, 12567, 16, 1122, 67, 24422, 16, 3925, 67, 718, 16, 12735, 67, 718, 16, 4993, 67, 7088, 16, 3252, 16, 4993, 67, 412, 634, 16, 15954, 67, 5391, 262, 30, 7733, 43, 2090, 61, 1448, 273, 6250, 380, 6250, 4993, 67, 412, 634, 273, 666, 12, 4993, 67, 412, 634, 262, 63, 374, 30, 21, 308, 468, 1338, 326, 4843, 4993, 4995, 353, 12188, 729, 67, 7088, 273, 4993, 67, 412, 634, 63, 729, 18, 5141, 67, 7088, 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, 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8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 729, 16, 4721, 12567, 16, 1122, 67, 24422, 16, 3925, 67, 718, 16, 12735, 67, 718, 16, 4993, 67, 7088, 16, 3252, 16, 4993, 67, 412, 634, 16, 15954, 67, 5391, 262, 30, 7733, 43, 2090, 61, 1448, 273, 6250, 380, 6250, 4993, 67, 412, 634, 273, 666, 12, 4993, 67, 412, 634, 262, 63, 374, 30, 21, 308, 468, 1338, 326, 4843, 4993, 4995, 353, 12188, 729, 67, 7088, 273, 4993, 67, 412, 634, 63, 729, 18, 5141, 67, 7088, 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 ]
>>> rec = RecordData(GDSII.STRNAME, 'struct')
>>> rec = RecordData(GDSII.STRNAME, b'struct')
def check_tag(self, tag): """ Checks if current record has the same tag as the given one. Raises :exc:`MissingRecord` exception otherwise. For example::
9fc341a2edeef093b49ae3765d31894d9ac2c59d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6985/9fc341a2edeef093b49ae3765d31894d9ac2c59d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2692, 12, 2890, 16, 1047, 4672, 3536, 13074, 309, 783, 1409, 711, 326, 1967, 1047, 487, 326, 864, 1245, 18, 20497, 294, 10075, 28288, 4841, 2115, 68, 1520, 3541, 18, 2457, 3454, 2866, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2692, 12, 2890, 16, 1047, 4672, 3536, 13074, 309, 783, 1409, 711, 326, 1967, 1047, 487, 326, 864, 1245, 18, 20497, 294, 10075, 28288, 4841, 2115, 68, 1520, 3541, 18, 2457, 3454, 2866, 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 ]
viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>"
viewRaytraceSceneActionText = \ "<u><b>POV-Ray</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as "\ "a plug-in from <b>Preferences > Plug-ins</b> "\ "for this feature to work." \ "</p>"
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their own widgets, usually in a method called add_whats_this_text(), not in this file. """ # # File Toolbar # # Open File fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)<br> "\ "<p><img source=\"ui/actions/File/Open.png\"><br> "\ "Opens a new file."\ "</p>" win.fileOpenAction.setWhatsThis( fileOpenText ) # Import File fileImportText = "<u><b>Import File</b></u><br>"\ "Inserts a file of any chemical file format supported by "\ "<b>Openbabel</b> into the current Part" win.fileImportAction.setWhatsThis(fileImportText) #Export File fileExportText = "<u><b>Export File</b></u><br>"\ "Save the current Part in any chemical file format supported by "\ "<b>Openbabel</b>. Note that exclusive features of NanoEngineer-1 "\ "are not saved to the exported file" win.fileExportAction.setWhatsThis(fileExportText) # Save File fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)<br> "\ "<p><img source=\"ui/actions//Save.png\"><br> "\ "Saves the current file."\ "</p>" win.fileSaveAction.setWhatsThis( fileSaveText ) # # Edit Toolbar # # Make Checkpoint ### editMakeCheckpointText = \ "<u><b>Make Checkpoint</b></u>"\ "<p>"\ "<img source=\"ui/actions/Edit/Make_CheckPoint.png\"><br> "\ "Make Undo checkpoint."\ "</p>" win.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=\"ui/actions/Edit/Make_CheckPoint.png\">"\ "</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>" win.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>" win.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) # Undo editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ "<p><img source=\"ui/actions/Undo.png\"><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 win.editUndoAction.setWhatsThis( editUndoText ) win.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link # Redo from PlatformDependent import is_macintosh if 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<br> "\ "<p><img source=\"ui/actions/Edit/Redo.png\"> <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 win.editRedoAction.setWhatsThis( editRedoText ) win.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link # Cut editCutText = "<u><b>Cut</b></u> (Ctrl + X)<br> "\ "<p><img source=\"ui/actions/Edit/Cut.png\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" win.editCutAction.setWhatsThis( editCutText ) # Copy editCopyText = "<u><b>Copy</b></u> (Ctrl + C)<br> "\ "<p><img source=\"ui/actions/Edit/Copy.png\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" win.editCopyAction.setWhatsThis( editCopyText ) # Paste editPasteText = "<u><b>Paste</b></u> (Ctrl + V)<br> "\ "<p><img source=\"ui/actions/Edit/Paste_On.png\"><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>" win.editPasteAction.setWhatsThis( editPasteText ) # Delete editDeleteText = "<u><b>Delete</b></u> (DEL)<br> "\ "<p><img source=\"ui/actions/Delete.png\"><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 win.editDeleteAction.setWhatsThis( editDeleteText ) #Preferences Dialog editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\ "such as changing atom, bond display properties,"\ "lighting, background color, window position and"\ "size, plugins etc. </p>" win.editPrefsAction.setWhatsThis( editPrefsText ) # # View Toolbar # # Home View setViewHomeActionText = \ "<u><b>Home</b></u> (Home)<br>"\ "<p>"\ "<img source=\"ui/actions/View/Modify/Home.png\"><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>" win.setViewHomeAction.setWhatsThis( setViewHomeActionText ) # Fit to Window setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom_To_Fit.png\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" win.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) # Recenter setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Recenter.png\"><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>" win.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) # Zoom Tool setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom.png\"><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>" win.zoomToolAction.setWhatsThis( setzoomToolActionText ) # Pan Tool setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Pan.png\"><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>" win.panToolAction.setWhatsThis( setpanToolActionText ) # Rotate Tool setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Rotate.png\"><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>" win.rotateToolAction.setWhatsThis( setrotateToolActionText ) # Orthographic Projection setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" win.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>" win.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) # Normal To viewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Normal_To.png/\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" win.viewNormalToAction.setWhatsThis( viewNormalToActionText ) # Parallel To viewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Parallel_To.png\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" win.viewParallelToAction.setWhatsThis( viewParallelToActionText ) # Save Named View saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Save_Named_View.png\"><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>" win.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) # Front View viewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"ui/actions/View/Front.png\"><br> "\ "Orients the view to the Front View."\ "</p>" win.viewFrontAction.setWhatsThis( viewFrontActionText ) # Back View viewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"ui/actions/View/Back.png\"><br> "\ "Orients the view to the Back View."\ "</p>" win.viewBackAction.setWhatsThis( viewBackActionText ) # Top View viewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"ui/actions/View/Top.png\"><br> "\ "Orients the view to the Top View."\ "</p>" win.viewTopAction.setWhatsThis( viewTopActionText ) # Bottom View viewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"ui/actions/View/Bottom.png\"><br> "\ "Orients the view to the Bottom View."\ "</p>" win.viewBottomAction.setWhatsThis( viewBottomActionText ) # Left View viewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"ui/actions/View/Left.png\"><br> "\ "Orients the view to the Left View."\ "</p>" win.viewLeftAction.setWhatsThis( viewLeftActionText ) # Right View viewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"ui/actions/View/Right.png\"><br> "\ "Orients the view to the Right View."\ "</p>" win.viewRightAction.setWhatsThis( viewRightActionText ) #Isometric View viewIsometricActionText = "<u><b>IsometricView</b></u><br>"\ "<p><img source=\"ui/actions/View/Isometric.png\"><br> "\ "Orients the view to the Isometric View."\ "</p>" win.viewIsometricAction.setWhatsThis( viewIsometricActionText ) # Rotate View 180 viewRotate180ActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_180.png.png\"><br> "\ "Rotates the view 180 degrees."\ "</p>" win.viewRotate180Action.setWhatsThis( viewRotate180ActionText ) # Rotate View +90 viewRotatePlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_+90.png\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotatePlus90Action.setWhatsThis( viewRotatePlus90ActionText ) # Rotate View -90 viewRotateMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotateMinus90Action.setWhatsThis( viewRotateMinus90ActionText ) # QuteMol viewQuteMolActionText = \ "<u><b>QuteMol</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/QuteMol.png\"><br> "\ "Starts QuteMol and loads a PDB file of the current model."\ "</p>" \ "QuteMol must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewQuteMolAction.setWhatsThis( viewQuteMolActionText ) # POV-Ray (was Raytrace Scene) viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText ) # # Grids Toolbar # # Surface 100 orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface100.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" win.orient100Action.setWhatsThis(orient100ActionText ) # Surface 110 orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface110.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" win.orient110Action.setWhatsThis(orient110ActionText ) # Surface 111 orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface111.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" win.orient111Action.setWhatsThis(orient111ActionText ) # # Insert toolbar # # Graphene insertGrapheneActionText = \ "<u><b>Build Graphene</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Graphene.png\"><br> "\ "Inserts a 2D sheet of graphene in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertGrapheneAction.setWhatsThis(insertGrapheneActionText ) # Build Nanotube insertNanotubeActionText = \ "<u><b>Build Nanotube</b></u>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Nanotube.png\"> <br>"\ "Inserts a carbon or boron nitride nanotube in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertNanotubeAction.setWhatsThis(insertNanotubeActionText ) # Build DNA buildDnaActionText = \ "<u><b>Build DNA</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/DNA.png\"><br> "\ "Inserts DNA in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.buildDnaAction.setWhatsThis(buildDnaActionText ) # POV-Ray Scene insertPovraySceneActionText = "<u><b>Insert POV-Ray Scene</b></u><br>"\ "<p><img source=\"ui/actions/POV-Ray_Scene.png\"><br> "\ "Inserts a POV-Ray Scene file based on the current model and viewpoint. "\ "</p>" win.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText ) # Comment insertCommentActionText = "<u><b>Insert Comment</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Comment.png\"><br> "\ "Inserts a comment in the current part. "\ "</p>" win.insertCommentAction.setWhatsThis(insertCommentActionText ) # # Display toolbar # # Display Default dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Default.png\"><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>Modes</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>" win.dispDefaultAction.setWhatsThis(dispDefaultActionText ) # Display Invisible dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Invisible.png\"><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>" win.dispInvisAction.setWhatsThis(dispInvisActionText ) # Display Lines dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Lines.png\"><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>" win.dispLinesAction.setWhatsThis(dispLinesActionText ) # Display Tubes dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Tubes.png\"><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>" win.dispTubesAction.setWhatsThis(dispTubesActionText ) # Display Ball and Stick dispBallActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Ball_and_Stick.png\"><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>" win.dispBallAction.setWhatsThis(dispBallActionText ) # Display CPK # [bruce extended and slightly corrected text, 060307] dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><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>" win.dispCPKAction.setWhatsThis(dispCPKActionText ) # Display Cylinder dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Cylinder</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispCylinderAction.setWhatsThis(dispCylinderActionText ) # Display Surface dispSurfaceActionText = "<u><b>Display Surface</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Surface.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Surface</b> mode. Chunks are rendered as a smooth surface."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Surface</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispSurfaceAction.setWhatsThis(dispSurfaceActionText ) #Reset Chunk Color dispResetChunkColorText = "<u><b>Reset Chunk Color</b></u><br>"\ "Resets the user defined chunk color and renders the atoms " \ "(in the chunk) with their own element colors" win.dispResetChunkColorAction.setWhatsThis(dispResetChunkColorText ) #Reset Atoms Display dispResetAtomsDisplayText = "<u><b>Reset Atoms Display</b></u><br>"\ "Renders the selected atoms (or the atoms in the"\ "selected chunks) with the same display style as "\ "that of their parent chunk" win.dispResetAtomsDisplayAction.setWhatsThis(dispResetAtomsDisplayText) #Show Invisible Atoms dispShowInvisAtomsText = "<u><b>Show Invisible Atoms</b></u><br>"\ "Renders the selected atoms (or the atoms in the selected "\ "chunks) with the same display style as their parent chunk. "\ "However, if the parent chunk is set as invisible, this feature " \ "will not work. " win.dispShowInvisAtomsAction.setWhatsThis(dispShowInvisAtomsText) #Element Color Settings Dialog dispElementColorSettingsText = "<u><b>Element Color Settings Dialog</b></u><br>"\ "Element colors can be manually changed " \ "using this dialog. Also, the user can load"\ "or save the element colors" win.dispElementColorSettingsAction.setWhatsThis(dispElementColorSettingsText) # # Select toolbar # # Select All selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_All.png\"><br> "\ "When in <b>Build</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" win.selectAllAction.setWhatsThis(selectAllActionText ) # Select None selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_None.png\"><br> "\ "Unselects everything currently selected.</p>" win.selectNoneAction.setWhatsThis(selectNoneActionText ) # InvertSelection selectInvertActionText = "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Invert.png\"><br> "\ "Inverts the current selection.</p>" win.selectInvertAction.setWhatsThis(selectInvertActionText ) # Select Connected selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Connected.png\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>You can also select all connected atoms by double clicking on an atom or bond "\ "while in <b>Build</b> mode.</p>" win.selectConnectedAction.setWhatsThis(selectConnectedActionText ) # Select Doubly selectDoublyActionText = "<u><b>Select Doubly</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Doubly.png\"><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>" win.selectDoublyAction.setWhatsThis(selectDoublyActionText ) # Expand Selection selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Expand.png\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" win.selectExpandAction.setWhatsThis(selectExpandActionText ) # Contract Selection selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Contract.png\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" win.selectContractAction.setWhatsThis(selectContractActionText ) # # Modify Toolbar # # Adjust Selection modifyAdjustSelActionText = "<u><b>Adjust Selection</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_Selection.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the selection</i>) to make the geometry more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText ) # Adjust All modifyAdjustAllActionText = "<u><b>Adjust All</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_All.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the entire part</i>) to make the geometry of the part more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText ) # Hydrogenate modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> <br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Hydrogenate.png\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" win.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) # Dehydrogenate modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Dehydrogenate.png\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" win.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) # Passivate modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)<br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Passivate.png\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" win.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) # Stretch modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" win.modifyStretchAction.setWhatsThis(modifyStretchActionText ) # Delete Bonds modifyDeleteBondsActionText = "<u><b>Cut Bonds</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Delete_Bonds.png\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" win.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) # Separate/New Chunk modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Separate.png\"><br> "\ "Creates a new chunk(s) from the currently selected atoms. "\ "If the selected atoms belong to different chunks, multiple new "\ "chunks are created.</p>" win.modifySeparateAction.setWhatsThis(modifySeparateActionText ) # New Chunk makeChunkFromSelectedAtomsActionText = "<u><b>New Chunk</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/New_Chunk.png\"><br> "\ "Creates a new chunk from the currently selected atoms. "\ "All atoms end up in a single chunk.</p>" win.makeChunkFromSelectedAtomsAction.setWhatsThis(makeChunkFromSelectedAtomsActionText ) # Merge Chunks modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Merge.png\"><br> "\ "Merges two or more chunks into a single chunk.</p>" win.modifyMergeAction.setWhatsThis(modifyMergeActionText ) # Invert Chunks modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>" win.modifyInvertAction.setWhatsThis(modifyInvertActionText ) # Mirror Selected Chunks #Note that the the feature name is intentionally kept "Mirror" instead of "Mirror Chunks" because # in future we will support mirrroing atoms as well. -- ninad060814 modifyMirrorActionText = "<u><b>Mirror</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Mirror.png\"><br> "\ "Mirrors the selected <b> chunks </b> about a reference Grid Plane.<br>"\ "<font color=\"#808080\">Note: In this version, it doesn't mirror jigs or individual atoms.</font> </p>" win.modifyMirrorAction.setWhatsThis(modifyMirrorActionText ) # Align to Common Axis modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><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>" win. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) #Center on Common Axis modifyCenterCommonAxisActionText= "<u><b>Center On Common Axis</b></u><br>"\ "<p><b> Moves</b> all selected chunks to the center of the <b> first </b> selected chunk "\ "and also <b>aligns</b> them to the axis of the first one ."\ "You must select two or more chunks before using this feature. </p>" win.modifyCenterCommonAxisAction.setWhatsThis(modifyCenterCommonAxisActionText) # # Tools Toolbar # # Select Chunks toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/63.png\"><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>" win. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) # Move Chunks toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/64.png\"><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>" win. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) # Build Atoms toolsDepositAtomActionText = \ "<u><b>Build Atoms</b></u><!-- [[Feature:Build Atoms]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Atoms.png\"><br> "\ "<b>Build Atoms</b> allows you to build structures one atom at a time or by depositing objects "\ "that are on the paste clipboard. You can also insert structures from the "\ "NanoEngineer-1 Parts Library.</p>"\ "<p>It is also possible to change bond types between atoms using the <b>Bond Tool</b> or by "\ "simply dragging and dropping one bondpoint onto another."\ "</p>" win. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) # Build Crystal (was Cookie Cutter Mode) toolsCookieCutActionText = "<u><b>Build Crystal</b></u><!-- [[Feature:Build Crystal]] --><br>"\ "<p><><img source=\"ui/actions/Tools/Build Structures/Cookie_Cutter.png\"><br> "\ "<b>Build Crystal</b> provides tools for cutting out multi-layered shapes from "\ "slabs of diamond or lonsdaleite lattice.</p>" win. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) # Tools > Extrude toolsExtrudeActionText = "<u><b>Extrude</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\"ui/actions/Insert/Features/Extrude.png\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" win. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) # Fuse Chunks Mode toolsFuseChunksActionText = "<u><b>Fuse Chunks Mode</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Fuse.png\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two fusing options are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints "\ "of two or more chunks. Bondpoints are highlighted and lines are drawn (and undrawn) as chunks "\ "are dragged to indicate bonding relationships between bondpoints. Bondpoints with "\ "multiple bonding relationships are highlighted in magenta to indicate that they cannot "\ "make bonds.<br><br>"\ "<b>Fuse Atoms</b> fuses pairs of overlapping atoms between chunks. The set of overlapping "\ "atoms in the selected chunk(s) are highlighted in green while the set of atoms that will be deleted "\ "in non-selected chunks are highlighted in dark red. It is possible that deleted atoms will not fuse "\ "properly, leaving bondpoints on the selected chunk(s) atoms. This is a bug. To help "\ "minimize this problem, try to get the bonds of overlapping atoms oriented similarly.<br>"\ "</p>" win.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) # # Simulator Toolbar # # Minimize Energy simMinimizeEnergyActionText = "<u><b>Minimize Energy</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Minimize_Energy.png\"><br> "\ "The potential energy of a chemical structure is a function of the relative positions of its atoms. " \ "To obtain this energy with complete accuracy involves a lot of computer time spent on quantum " \ "mechanical calculations, which cannot be practically done on a desktop computer. "\ "To get an approximate potential energy without all that, we represent the energy as a series of " \ "terms involving geometric properties of the structure: lengths of chemical bonds, angles between " \ "pairs and triples of chemical bonds, etc. </p>" \ "<p>" \ "As is generally the case with physical systems, the gradient of the potential energy represents " \ "the forces acting on various particles. The atoms want to move in the direction that most reduces " \ "the potential energy. Energy minimization is a process of adjusting the atom positions to try to find " \ "a global minimum of the potential energy. Each atom contributes three variables (its x, y, and z " \ "coordinates) so the search space is multi-dimensional. The global minimum is the configuration " \ "that the atoms will settle into if lowered to zero Kelvin. </p>" win. simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText ) # Run Dynamics (was NanoDynamics-1). Mark 060807. simSetupActionText = "<u><b>Run Dynamics</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Run_Dynamics.png\"><br> "\ "This is the interface to the NanoEngineer-1 molecular dynamics simulator. "\ "Enter the parameters of the simulation and click <b>Run Simulation</b>."\ "The simulator creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model.</p>" win. simSetupAction.setWhatsThis( simSetupActionText ) # Play Movie (was Movie Player) Mark 060807. simMoviePlayerActionText = "<u><b>Play Movie</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Play_Movie.png\"><br> "\ "Plays the most recent trajectory (movie) file created by the NanoEngineer-1 molecular dynamics simulator."\ "To create a movie file, select <b>Run Dynamics</b>.</p>" win. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) # Make Graphs (was Plot Tool) Mark 060807. simPlotToolActionText = "<u><b>Make Graphs</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Make_Graphs.png\"><br> "\ "Make a graph of 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>"\ "<b>Measure Distance:</b> distance(angstroms)<br>"\ "<b>Measure Angle:</b> angle (degrees)<br>"\ "<b>Measure Dihedral:</b> dihedral(degrees)<br>"\ "</p>" win. simPlotToolAction.setWhatsThis( simPlotToolActionText ) # # Dashboard Buttons # # Done toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Done.png\"><br> "\ "Completes the current operation and enters the default mode."\ "</p>" win. toolsDoneAction.setWhatsThis( toolsDoneActionText ) # Cancel toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Cancel.png\"><br> "\ "Cancels the current operation and enters the default mode."\ "</p>" win. toolsCancelAction.setWhatsThis( toolsCancelActionText ) # Back up toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "Undoes the previous operation."\ "</p>" win. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) # Start Over toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" win.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) # Add Layers ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/addlayer.png\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" win.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) # # Jigs # # Anchor jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Anchor.png\"><br> "\ "Attaches an <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>Build</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>" win.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) # Rotary Motor jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Rotary_Motor.png\"><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>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsMotorAction.setWhatsThis(jigsMotorActionText ) # Linear Motor jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Linear_Motor.png\"><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>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) # Thermostat jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Thermostat.png\"><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>Build</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>" win.jigsStatAction.setWhatsThis(jigsStatActionText ) # Thermometer jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Thermometer.png\"><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>Build</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>" win.jigsThermoAction.setWhatsThis(jigsThermoActionText ) # ESP Image jigsESPImageActionText = "<u><b>ESP Image</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/ESP_Image.png\"><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>Build</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>" win.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) # Atom Set jigsAtomSetActionText = "<u><b>Atom Set</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Atom_Set.png\"><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>Build</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>" win.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) # Measure Distance jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Distance.png\"><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>Build</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>" win.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) # Measure Angle jigsAngleActionText = "<u><b>Measure Angle Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Angle.png\"><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>Build</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>" win.jigsAngleAction.setWhatsThis(jigsAngleActionText ) # Measure Dihedral jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Dihedral.png\"><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>Build</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>" win.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) # GAMESS Jig jigsGamessActionText = "<u><b>GAMESS Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Gamess.png\"><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>Build</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>" win.jigsGamessAction.setWhatsThis(jigsGamessActionText ) # Grid Plane Jig jigsGridPlaneActionText = "<u><b>Grid Plane</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Reference Geometry/Grid_Plane.png\"><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>Build</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>" win.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) # # Help Toolbar # # What's This helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"ui/actions/Help/WhatsThis.png\"><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>" win.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) win.helpMouseControlsAction.setWhatsThis('Displays help for mouse controls') win.helpKeyboardShortcutsAction.setWhatsThis('Displays help for keyboard shortcuts')
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 3536, 225, 468, 468, 1387, 13288, 3215, 468, 225, 468, 3502, 1387, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 32, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 4881, 19, 4905, 19, 812, 19, 3678, 18, 6446, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 5657, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 468, 6164, 1387, 225, 585, 5010, 1528, 273, 3532, 89, 4438, 70, 34, 5010, 1387, 1757, 70, 4695, 89, 4438, 2848, 2984, 64, 315, 14214, 279, 585, 434, 1281, 19028, 1706, 585, 740, 3260, 635, 1548, 3532, 70, 34, 3678, 70, 873, 1757, 70, 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, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 2 ]
sys.stdout = sys.__stdout__
sys.stdout = orig
def do_add(db, paths, one_book_per_directory, recurse, add_duplicates): sys.stdout = NULL try: files, dirs = [], [] for path in paths: path = os.path.abspath(path) if os.path.isdir(path): dirs.append(path) else: files.append(path) formats, metadata = [], [] for book in files: format = os.path.splitext(book)[1] format = format[1:] if format else None if not format: continue stream = open(book, 'rb') mi = get_metadata(stream, stream_type=format, use_libprs_metadata=True) if not mi.title: mi.title = os.path.splitext(os.path.basename(book))[0] if not mi.authors: mi.authors = ['Unknown'] formats.append(format) metadata.append(mi) file_duplicates = db.add_books(files, formats, metadata, add_duplicates=add_duplicates) if not file_duplicates: file_duplicates = [] dir_dups = [] for dir in dirs: if recurse: dir_dups.extend(db.recursive_import(dir, single_book_per_directory=one_book_per_directory)) else: func = db.import_book_directory if one_book_per_directory else db.import_book_directory_multiple dups = func(dir) if not dups: dups = [] dir_dups.extend(dups) sys.stdout = sys.__stdout__ if add_duplicates: for mi, formats in dir_dups: db.import_book(mi, formats) else: print _('The following books were not added as they already exist in the database (see --duplicates option):') for mi, formats in dir_dups: title = mi.title if isinstance(title, unicode): title = title.encode(preferred_encoding) print '\t', title + ':' for path in formats: print '\t\t ', path if file_duplicates: for path, mi in zip(file_duplicates[0], file_duplicates[2]): title = mi.title if isinstance(title, unicode): title = title.encode(preferred_encoding) print '\t', title+':' print '\t\t ', path if send_message is not None: send_message('refreshdb:', 'calibre GUI') finally: sys.stdout = sys.__stdout__
aab8744748b031f43fe9148ccb2cdc2e9db72d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/aab8744748b031f43fe9148ccb2cdc2e9db72d82/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1289, 12, 1966, 16, 2953, 16, 1245, 67, 3618, 67, 457, 67, 5149, 16, 11502, 16, 527, 67, 22449, 4672, 2589, 18, 10283, 273, 3206, 775, 30, 1390, 16, 7717, 273, 5378, 16, 5378, 364, 589, 316, 2953, 30, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 803, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 7717, 18, 6923, 12, 803, 13, 469, 30, 1390, 18, 6923, 12, 803, 13, 225, 6449, 16, 1982, 273, 5378, 16, 5378, 364, 6978, 316, 1390, 30, 740, 273, 1140, 18, 803, 18, 4939, 408, 12, 3618, 25146, 21, 65, 740, 273, 740, 63, 21, 26894, 309, 740, 469, 599, 309, 486, 740, 30, 1324, 1407, 273, 1696, 12, 3618, 16, 296, 6731, 6134, 12837, 273, 336, 67, 4165, 12, 3256, 16, 1407, 67, 723, 33, 2139, 16, 999, 67, 2941, 683, 87, 67, 4165, 33, 5510, 13, 309, 486, 12837, 18, 2649, 30, 12837, 18, 2649, 273, 1140, 18, 803, 18, 4939, 408, 12, 538, 18, 803, 18, 13909, 12, 3618, 3719, 63, 20, 65, 309, 486, 12837, 18, 19368, 30, 12837, 18, 19368, 273, 10228, 4874, 3546, 225, 6449, 18, 6923, 12, 2139, 13, 1982, 18, 6923, 12, 9197, 13, 225, 585, 67, 22449, 273, 1319, 18, 1289, 67, 12567, 12, 2354, 16, 6449, 16, 1982, 16, 527, 67, 22449, 33, 1289, 67, 22449, 13, 309, 486, 585, 67, 22449, 30, 585, 67, 22449, 273, 5378, 282, 1577, 67, 72, 18294, 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, 741, 67, 1289, 12, 1966, 16, 2953, 16, 1245, 67, 3618, 67, 457, 67, 5149, 16, 11502, 16, 527, 67, 22449, 4672, 2589, 18, 10283, 273, 3206, 775, 30, 1390, 16, 7717, 273, 5378, 16, 5378, 364, 589, 316, 2953, 30, 589, 273, 1140, 18, 803, 18, 5113, 803, 12, 803, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 7717, 18, 6923, 12, 803, 13, 469, 30, 1390, 18, 6923, 12, 803, 13, 225, 6449, 16, 1982, 273, 5378, 16, 5378, 364, 6978, 316, 1390, 30, 740, 273, 1140, 18, 803, 18, 4939, 408, 12, 3618, 25146, 21, 65, 740, 273, 740, 63, 21, 26894, 309, 740, 469, 599, 309, 486, 740, 30, 1324, 1407, 2 ]
return self.indexrecords[release][indexFile]['SHA1'] if not self.load(): return (None, None)
d.callback(self.indexrecords[release][indexFile]['SHA1']) return d deferLoad = self.load() deferLoad.addCallback(self._findHash, path, d) return d def _findHash(self, loadResult, path, d): if not loadResult: d.callback((None, None)) return loadResult
def findHash(self, path): for release in self.indexrecords: if path.startswith(release[:-7]): for indexFile in self.indexrecords[release]: if release[:-7] + indexFile == path: return self.indexrecords[release][indexFile]['SHA1'] if not self.load(): return (None, None) package = path.split('/')[-1].split('_')[0] try: for version in self.cache[package].VersionList: size = version.Size for verFile in version.FileList: if self.records.Lookup(verFile): if self.records.FileName == path: return (self.records.SHA1Hash, size) except KeyError: pass self.srcrecords.Restart() if self.srcrecords.Lookup(package): for f in self.srcrecords.Files: if path == f[2]: return (f[0], f[1]) return (None, None)
0ad382b9a8273617c2ee9891c77a2e3fb9d0f2bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/665/0ad382b9a8273617c2ee9891c77a2e3fb9d0f2bd/AptPackages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2310, 12, 2890, 16, 589, 4672, 364, 3992, 316, 365, 18, 1615, 7094, 30, 309, 589, 18, 17514, 1918, 12, 9340, 10531, 17, 27, 65, 4672, 364, 770, 812, 316, 365, 18, 1615, 7094, 63, 9340, 14542, 309, 3992, 10531, 17, 27, 65, 397, 770, 812, 422, 589, 30, 302, 18, 3394, 12, 2890, 18, 1615, 7094, 63, 9340, 6362, 1615, 812, 23962, 8325, 21, 19486, 327, 302, 225, 2220, 2563, 273, 365, 18, 945, 1435, 2220, 2563, 18, 1289, 2428, 12, 2890, 6315, 4720, 2310, 16, 589, 16, 302, 13, 225, 327, 302, 225, 1652, 389, 4720, 2310, 12, 2890, 16, 1262, 1253, 16, 589, 16, 302, 4672, 309, 486, 1262, 1253, 30, 302, 18, 3394, 12443, 7036, 16, 599, 3719, 327, 1262, 1253, 225, 2181, 273, 589, 18, 4939, 2668, 2473, 13, 18919, 21, 8009, 4939, 2668, 4623, 25146, 20, 65, 225, 775, 30, 364, 1177, 316, 365, 18, 2493, 63, 5610, 8009, 1444, 682, 30, 963, 273, 1177, 18, 1225, 364, 1924, 812, 316, 1177, 18, 26098, 30, 309, 365, 18, 7094, 18, 6609, 12, 502, 812, 4672, 309, 365, 18, 7094, 18, 4771, 422, 589, 30, 327, 261, 2890, 18, 7094, 18, 8325, 21, 2310, 16, 963, 13, 1335, 4999, 30, 1342, 225, 365, 18, 4816, 7094, 18, 15057, 1435, 309, 365, 18, 4816, 7094, 18, 6609, 12, 5610, 4672, 364, 284, 316, 365, 18, 4816, 7094, 18, 2697, 30, 309, 589, 422, 284, 63, 22, 14542, 327, 261, 74, 63, 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, 1104, 2310, 12, 2890, 16, 589, 4672, 364, 3992, 316, 365, 18, 1615, 7094, 30, 309, 589, 18, 17514, 1918, 12, 9340, 10531, 17, 27, 65, 4672, 364, 770, 812, 316, 365, 18, 1615, 7094, 63, 9340, 14542, 309, 3992, 10531, 17, 27, 65, 397, 770, 812, 422, 589, 30, 302, 18, 3394, 12, 2890, 18, 1615, 7094, 63, 9340, 6362, 1615, 812, 23962, 8325, 21, 19486, 327, 302, 225, 2220, 2563, 273, 365, 18, 945, 1435, 2220, 2563, 18, 1289, 2428, 12, 2890, 6315, 4720, 2310, 16, 589, 16, 302, 13, 225, 327, 302, 225, 1652, 389, 4720, 2310, 12, 2890, 16, 1262, 1253, 16, 589, 16, 302, 4672, 309, 486, 1262, 1253, 30, 302, 18, 3394, 2 ]
"""returns a list with all sprites at that position.
"""return a list with all sprites at that position
def get_sprites_at(self, pos): """returns a list with all sprites at that position. LayeredUpdates.get_sprites_at(pos): return colliding_sprites
d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1752, 24047, 67, 270, 12, 2890, 16, 949, 4672, 3536, 2463, 279, 666, 598, 777, 1694, 24047, 622, 716, 1754, 225, 12112, 329, 5121, 18, 588, 67, 1752, 24047, 67, 270, 12, 917, 4672, 327, 4508, 10415, 67, 1752, 24047, 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, 336, 67, 1752, 24047, 67, 270, 12, 2890, 16, 949, 4672, 3536, 2463, 279, 666, 598, 777, 1694, 24047, 622, 716, 1754, 225, 12112, 329, 5121, 18, 588, 67, 1752, 24047, 67, 270, 12, 917, 4672, 327, 4508, 10415, 67, 1752, 24047, 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 ]
nodes = xpath.Evaluate("//TABLE[starts-with(@background, 'http://posters.imdb.com/posters/')]", doc.documentElement) for i in nodes: poster_urls.append(i.getAttributeNS(EMPTY_NAMESPACE, 'background')) nodes = xpath.Evaluate("//A[contains(@href, 'impawards.com')]", doc.documentElement) if len(nodes): try: base = nodes[0].getAttributeNS(EMPTY_NAMESPACE, 'href') req = urllib2.Request(base) res = urllib2.urlopen(req) content = res.read() res.close() reader = HtmlLib.Reader() doc = reader.fromString(content) nodes = xpath.Evaluate( "//IMG[starts-with(@SRC, 'posters/')]", doc.documentElement) for i in nodes: (scheme, netloc, path, query, frag) = \ urlparse.urlsplit(base) np = path.split('/')[:-1] np = "/".join(np) poster_urls.insert(0, urlparse.urljoin(base, "%s/%s" % (np, i.getAttributeNS(EMPTY_NAMESPACE, 'SRC')))) except:
ofdoc = get_ofdb_doc(uid, "poster") try: (url, id) = extract_imdb_url(ofdoc) (rc, content) = ofdb_url_get(urlparse.urljoin("http://www.imdb.com", "title/tt%s/posters" % (id))) reader = HtmlLib.Reader() doc = reader.fromString(content) nodes = xpath.Evaluate("//TABLE[starts-with(@background, 'http://posters.imdb.com/posters/')]", doc.documentElement) for i in nodes: poster_urls.append(i.getAttributeNS(EMPTY_NAMESPACE, 'background')) nodes = xpath.Evaluate("//A[contains(@href, 'impawards.com')]", doc.documentElement) if len(nodes): try: base = nodes[0].getAttributeNS(EMPTY_NAMESPACE, 'href') (rc, content) = ofdb_url_get(base) reader = HtmlLib.Reader() doc = reader.fromString(content) nodes = xpath.Evaluate( "//IMG[starts-with(@SRC, 'posters/')]", doc.documentElement) for i in nodes: (scheme, netloc, path, query, frag) = \ urlparse.urlsplit(base) np = path.split('/')[:-1] np = "/".join(np) poster_urls.insert(0, urlparse.urljoin(base, "%s/%s" % (np, i.getAttributeNS(EMPTY_NAMESPACE, 'SRC')))) except: print_exception(traceback.format_exc()) except NoIMDBURL: if VERBOSE:
def search_poster(uid): try: doc = get_ofdb_doc(uid, "poster") (url, id) = get_imdb_url(doc) req = urllib2.Request(urlparse.urljoin("http://www.imdb.com", "title/tt%s/posters" % (id))) debug_out("Looking at %s for posters" % (req.get_full_url())) res = urllib2.urlopen(req) content = res.read() res.close() reader = HtmlLib.Reader() doc = reader.fromString(content) poster_urls = [] nodes = xpath.Evaluate("//TABLE[starts-with(@background, 'http://posters.imdb.com/posters/')]", doc.documentElement) for i in nodes: poster_urls.append(i.getAttributeNS(EMPTY_NAMESPACE, 'background')) nodes = xpath.Evaluate("//A[contains(@href, 'impawards.com')]", doc.documentElement) if len(nodes): try: base = nodes[0].getAttributeNS(EMPTY_NAMESPACE, 'href') req = urllib2.Request(base) res = urllib2.urlopen(req) content = res.read() res.close() reader = HtmlLib.Reader() doc = reader.fromString(content) nodes = xpath.Evaluate( "//IMG[starts-with(@SRC, 'posters/')]", doc.documentElement) for i in nodes: (scheme, netloc, path, query, frag) = \ urlparse.urlsplit(base) np = path.split('/')[:-1] np = "/".join(np) poster_urls.insert(0, urlparse.urljoin(base, "%s/%s" % (np, i.getAttributeNS(EMPTY_NAMESPACE, 'SRC')))) except: print_exception(traceback.format_exc()) for p in poster_urls: print(p) except: print_exception(traceback.format_exc())
2ffdaee9138ec9cb46201405bbe8379f1e308d49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/2ffdaee9138ec9cb46201405bbe8379f1e308d49/ofdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 2767, 264, 12, 1911, 4672, 775, 30, 997, 273, 336, 67, 792, 1966, 67, 2434, 12, 1911, 16, 315, 2767, 264, 7923, 225, 261, 718, 16, 612, 13, 273, 336, 67, 381, 1966, 67, 718, 12, 2434, 13, 225, 1111, 273, 11527, 22, 18, 691, 12, 718, 2670, 18, 718, 5701, 2932, 2505, 2207, 5591, 18, 381, 1966, 18, 832, 3113, 315, 2649, 19, 748, 9, 87, 19, 2767, 414, 6, 738, 261, 350, 20349, 225, 1198, 67, 659, 2932, 9794, 310, 622, 738, 87, 364, 1603, 414, 6, 738, 261, 3658, 18, 588, 67, 2854, 67, 718, 1435, 3719, 400, 273, 11527, 22, 18, 295, 18589, 12, 3658, 13, 913, 273, 400, 18, 896, 1435, 400, 18, 4412, 1435, 225, 2949, 273, 5430, 5664, 18, 2514, 1435, 997, 273, 2949, 18, 2080, 780, 12, 1745, 13, 225, 1603, 264, 67, 10518, 273, 5378, 434, 2434, 273, 336, 67, 792, 1966, 67, 2434, 12, 1911, 16, 315, 2767, 264, 7923, 225, 775, 30, 261, 718, 16, 612, 13, 273, 2608, 67, 381, 1966, 67, 718, 12, 792, 2434, 13, 225, 261, 1310, 16, 913, 13, 273, 434, 1966, 67, 718, 67, 588, 12, 718, 2670, 18, 718, 5701, 2932, 2505, 2207, 5591, 18, 381, 1966, 18, 832, 3113, 315, 2649, 19, 748, 9, 87, 19, 2767, 414, 6, 738, 261, 350, 20349, 225, 2949, 273, 5430, 5664, 18, 2514, 1435, 997, 273, 2949, 18, 2080, 780, 12, 1745, 13, 225, 2199, 273, 6748, 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, 1623, 67, 2767, 264, 12, 1911, 4672, 775, 30, 997, 273, 336, 67, 792, 1966, 67, 2434, 12, 1911, 16, 315, 2767, 264, 7923, 225, 261, 718, 16, 612, 13, 273, 336, 67, 381, 1966, 67, 718, 12, 2434, 13, 225, 1111, 273, 11527, 22, 18, 691, 12, 718, 2670, 18, 718, 5701, 2932, 2505, 2207, 5591, 18, 381, 1966, 18, 832, 3113, 315, 2649, 19, 748, 9, 87, 19, 2767, 414, 6, 738, 261, 350, 20349, 225, 1198, 67, 659, 2932, 9794, 310, 622, 738, 87, 364, 1603, 414, 6, 738, 261, 3658, 18, 588, 67, 2854, 67, 718, 1435, 3719, 400, 273, 11527, 22, 18, 295, 18589, 12, 3658, 13, 913, 273, 400, 18, 896, 1435, 2 ]
self.installed_hosts[host] = (at, tmp_dir)
self.installed_hosts[host.hostname] = (host, at, tmp_dir)
def _install(self): """ Install autotest on any current job hosts. """ in_use_hosts = set(host.hostname for host in self.job.hosts if not (host.get_autodir() and host.get_autodir().startswith(PROFILER_TMPDIR))) logging.debug('Hosts currently in use: %s', in_use_hosts)
ff19f5f24bcb393ece8b98216938f887984eba8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/ff19f5f24bcb393ece8b98216938f887984eba8a/profiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 12, 2890, 4672, 3536, 10284, 2059, 352, 395, 603, 1281, 783, 1719, 7206, 18, 3536, 316, 67, 1202, 67, 11588, 273, 444, 12, 2564, 18, 10358, 364, 1479, 316, 365, 18, 4688, 18, 11588, 309, 486, 261, 2564, 18, 588, 67, 5854, 369, 481, 1435, 471, 1479, 18, 588, 67, 5854, 369, 481, 7675, 17514, 1918, 12, 3373, 10474, 654, 67, 28259, 4537, 20349, 2907, 18, 4148, 2668, 12172, 4551, 316, 999, 30, 738, 87, 2187, 316, 67, 1202, 67, 11588, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 12, 2890, 4672, 3536, 10284, 2059, 352, 395, 603, 1281, 783, 1719, 7206, 18, 3536, 316, 67, 1202, 67, 11588, 273, 444, 12, 2564, 18, 10358, 364, 1479, 316, 365, 18, 4688, 18, 11588, 309, 486, 261, 2564, 18, 588, 67, 5854, 369, 481, 1435, 471, 1479, 18, 588, 67, 5854, 369, 481, 7675, 17514, 1918, 12, 3373, 10474, 654, 67, 28259, 4537, 20349, 2907, 18, 4148, 2668, 12172, 4551, 316, 999, 30, 738, 87, 2187, 316, 67, 1202, 67, 11588, 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 ]
for x in range(10):
for x in values:
def fact(n): result = 1 for i in range(1, int(n)+1): result *= i return result
f3e3a9c2793baf25a930f63a0dc090b6f3f5d54d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f3e3a9c2793baf25a930f63a0dc090b6f3f5d54d/test_math.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5410, 12, 82, 4672, 563, 273, 404, 364, 277, 316, 1048, 12, 21, 16, 509, 12, 82, 27921, 21, 4672, 563, 6413, 277, 327, 563, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5410, 12, 82, 4672, 563, 273, 404, 364, 277, 316, 1048, 12, 21, 16, 509, 12, 82, 27921, 21, 4672, 563, 6413, 277, 327, 563, 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 ]
def __init__(self, control, widget, attribute, f = None): self.control = control self.widget = widget self.attribute = attribute self.f = f widget.callbackDeposit.append(self) def __call__(self, value): if value==None: return if isinstance(value, QString): value = str(value) try: pos = self.control.cursorPosition() if self.f: setattr(self.widget, self.attribute, self.f(value)) else: setattr(self.widget, self.attribute, value) self.control.setCursorPosition(pos) except: print "invalid value ", value, type(value)
def __init__(self, control, widget, attribute, f = None): self.control = control self.widget = widget self.attribute = attribute self.f = f widget.callbackDeposit.append(self) def __call__(self, value): if value==None: return if isinstance(value, QString): value = str(value) try: pos = self.control.cursorPosition() if self.f: setattr(self.widget, self.attribute, self.f(value)) else: setattr(self.widget, self.attribute, value) self.control.setCursorPosition(pos) except: print "invalid value ", value, type(value)
def __init__(self, control, widget, attribute, f = None): self.control = control self.widget = widget self.attribute = attribute self.f = f widget.callbackDeposit.append(self)
ec58355f0e4e6cbc25734f2c717e88966d659bd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/ec58355f0e4e6cbc25734f2c717e88966d659bd7/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 16, 3604, 16, 1566, 16, 284, 273, 599, 4672, 365, 18, 7098, 273, 3325, 365, 18, 6587, 273, 3604, 365, 18, 4589, 273, 1566, 365, 18, 74, 273, 284, 3604, 18, 3394, 758, 1724, 18, 6923, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 16, 3604, 16, 1566, 16, 284, 273, 599, 4672, 365, 18, 7098, 273, 3325, 365, 18, 6587, 273, 3604, 365, 18, 4589, 273, 1566, 365, 18, 74, 273, 284, 3604, 18, 3394, 758, 1724, 18, 6923, 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 ]
raise Exception("consumer canceled")
raise Exception("consumer canceled: "+info.message)
def verify(self): """Handle incoming redirect from OpenID Provider""" log_debug = self.log_debug if log_debug: log.debug('Handling processing of response from server') openid_session = session['openid_session'] if not openid_session: raise Exception("openid session missing") # Setup the consumer and parse the information coming back oidconsumer = consumer.Consumer(openid_session, self.openid_store) return_to = url(controller='account', action="verify", qualified=True)
17d68b219e4eb80c875311897c7228e145731ce6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12761/17d68b219e4eb80c875311897c7228e145731ce6/openidconsumer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 4672, 3536, 3259, 6935, 3136, 628, 25781, 7561, 8395, 613, 67, 4148, 273, 365, 18, 1330, 67, 4148, 309, 613, 67, 4148, 30, 613, 18, 4148, 2668, 14701, 4929, 434, 766, 628, 1438, 6134, 225, 21629, 67, 3184, 273, 1339, 3292, 20619, 67, 3184, 3546, 309, 486, 21629, 67, 3184, 30, 1002, 1185, 2932, 20619, 1339, 3315, 7923, 225, 468, 10939, 326, 4765, 471, 1109, 326, 1779, 19283, 1473, 7764, 13230, 273, 4765, 18, 5869, 12, 20619, 67, 3184, 16, 365, 18, 20619, 67, 2233, 13, 327, 67, 869, 273, 880, 12, 5723, 2218, 4631, 2187, 1301, 1546, 8705, 3113, 9348, 33, 5510, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 4672, 3536, 3259, 6935, 3136, 628, 25781, 7561, 8395, 613, 67, 4148, 273, 365, 18, 1330, 67, 4148, 309, 613, 67, 4148, 30, 613, 18, 4148, 2668, 14701, 4929, 434, 766, 628, 1438, 6134, 225, 21629, 67, 3184, 273, 1339, 3292, 20619, 67, 3184, 3546, 309, 486, 21629, 67, 3184, 30, 1002, 1185, 2932, 20619, 1339, 3315, 7923, 225, 468, 10939, 326, 4765, 471, 1109, 326, 1779, 19283, 1473, 7764, 13230, 273, 4765, 18, 5869, 12, 20619, 67, 3184, 16, 365, 18, 20619, 67, 2233, 13, 327, 67, 869, 273, 880, 12, 5723, 2218, 4631, 2187, 1301, 1546, 8705, 3113, 9348, 33, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
up_vector[k] = x
up_vector[self.upoff + k] = x
def _findSMS(self, a_lower, a_upper, b_lower, b_upper, find_minimal): """ Finds the Shortest Middle Snake. """ down_vector = self.fdiag # The vector for the (0, 0) to (x, y) search up_vector = self.bdiag # The vector for the (u, v) to (N, M) search
97543e17e72ffa73040dbf9d8592f08aa6cf12c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/97543e17e72ffa73040dbf9d8592f08aa6cf12c3/myersdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 29533, 12, 2890, 16, 279, 67, 8167, 16, 279, 67, 5797, 16, 324, 67, 8167, 16, 324, 67, 5797, 16, 1104, 67, 1154, 2840, 4672, 3536, 4163, 87, 326, 7925, 395, 490, 3132, 18961, 911, 18, 3536, 2588, 67, 7737, 273, 365, 18, 74, 12264, 468, 1021, 3806, 364, 326, 261, 20, 16, 374, 13, 358, 261, 92, 16, 677, 13, 1623, 731, 67, 7737, 282, 273, 365, 18, 70, 12264, 468, 1021, 3806, 364, 326, 261, 89, 16, 331, 13, 358, 261, 50, 16, 490, 13, 1623, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 29533, 12, 2890, 16, 279, 67, 8167, 16, 279, 67, 5797, 16, 324, 67, 8167, 16, 324, 67, 5797, 16, 1104, 67, 1154, 2840, 4672, 3536, 4163, 87, 326, 7925, 395, 490, 3132, 18961, 911, 18, 3536, 2588, 67, 7737, 273, 365, 18, 74, 12264, 468, 1021, 3806, 364, 326, 261, 20, 16, 374, 13, 358, 261, 92, 16, 677, 13, 1623, 731, 67, 7737, 282, 273, 365, 18, 70, 12264, 468, 1021, 3806, 364, 326, 261, 89, 16, 331, 13, 358, 261, 50, 16, 490, 13, 1623, 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 ]
except StopIteration, UnicodeDecodeError:
except (StopIteration, UnicodeDecodeError):
def __init__(self, context, message): # -> none """Extract the bits of interest from an RFC2822 message string. context should be a wiki page. This perhaps should do the isJunk test up front to avoid unnecessary resource usage. """ DEBUG('mailin.py processing incoming message:\n%s' % message) self.context = context self.original = message self.msg = email.message_from_string(self.original) self.date = self.msg['Date'] # convert the possibly RFC2047-encoded subject to unicode. # Only the first encoded part is used if there is more than one. # misencoded subjects are ignored. (s,enc) = decode_header(self.msg.get('Subject',''))[0] try: self.subject = tounicode(s,enc or 'ascii') except UnicodeDecodeError: self.subject = '' self.realSubject = re.sub(r'.*?\[.*?\] ?(.*)',r'\1',self.subject) self.messageid = self.msg.get('Message-id','') self.inreplyto = self.msg.get('In-reply-to','') self.From = self.msg.get('From') self.FromRealName = parseaddr(self.From)[0] self.FromEmail = parseaddr(self.From)[1] self.FromUserName = (self.FromRealName or re.sub(r'@.*$',r'',self.FromEmail)) self.sender = self.msg.get('Sender') self.senderEmail = (self.sender and parseaddr(self.sender)[1]) or None tos = self.msg.get_all('to', []) ccs = self.msg.get_all('cc', []) resent_tos = self.msg.get_all('resent-to', []) resent_ccs = self.msg.get_all('resent-cc', []) self.recipients = getaddresses(tos + ccs + resent_tos + resent_ccs) # mailing list support # XXX x-beenthere is mailman-specific - need to support ezmlm & others here #self.xbeenthere = (self.msg.get('X-BeenThere') or # re.search(r'[^\s<]+@[^\s>]+',self.msg.get('Delivered-To')).group()) # ..Type Error - configured ezmlm to provide beenthere instead (?) self.xbeenthere = self.msg.get('X-BeenThere') # the mailin body will be the message's first text/plain part # (or a null string if there is none or it's misencoded) try: firstplaintextpart = typed_subpart_iterator(self.msg, 'text', 'plain').next() # as I understand it: # first decoding, from the content-transfer-encoding, eg quoted-printabe payload = firstplaintextpart.get_payload(decode=1) # second decoding, from utf8 or whatever to unicode charset = self.msg.get_content_charset('ascii') payloadutf8 = payload.decode(charset).encode('utf-8') except StopIteration, UnicodeDecodeError: payloadutf8 = '' self.body = cleanupBody(payloadutf8)
7f9107a0da5d9522673793cc967a721a8e97dbe4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5225/7f9107a0da5d9522673793cc967a721a8e97dbe4/Mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 883, 4672, 468, 317, 6555, 3536, 4976, 326, 4125, 434, 16513, 628, 392, 8372, 6030, 3787, 883, 533, 18, 819, 1410, 506, 279, 9050, 1363, 18, 1220, 26282, 1410, 741, 326, 353, 46, 1683, 1842, 731, 6641, 358, 4543, 19908, 1058, 4084, 18, 3536, 6369, 2668, 4408, 267, 18, 2074, 4929, 6935, 883, 5581, 82, 9, 87, 11, 738, 883, 13, 365, 18, 2472, 1377, 273, 819, 365, 18, 8830, 377, 273, 883, 365, 18, 3576, 1850, 273, 2699, 18, 2150, 67, 2080, 67, 1080, 12, 2890, 18, 8830, 13, 365, 18, 712, 540, 273, 365, 18, 3576, 3292, 1626, 3546, 468, 1765, 326, 10016, 8372, 21573, 27, 17, 10787, 3221, 358, 5252, 18, 468, 5098, 326, 1122, 3749, 1087, 353, 1399, 309, 1915, 353, 1898, 2353, 1245, 18, 468, 7524, 10787, 16782, 854, 5455, 18, 261, 87, 16, 1331, 13, 6647, 273, 2495, 67, 3374, 12, 2890, 18, 3576, 18, 588, 2668, 6638, 2187, 6309, 3719, 63, 20, 65, 775, 30, 365, 18, 7857, 225, 273, 358, 9124, 12, 87, 16, 1331, 578, 296, 9184, 6134, 1335, 26311, 30, 365, 18, 7857, 225, 273, 875, 365, 18, 7688, 6638, 225, 273, 283, 18, 1717, 12, 86, 11, 4509, 10936, 63, 4509, 10936, 65, 692, 14361, 2187, 86, 8314, 21, 2187, 2890, 18, 7857, 13, 365, 18, 2150, 350, 565, 273, 365, 18, 3576, 18, 588, 2668, 1079, 17, 350, 17023, 6134, 365, 18, 267, 10629, 869, 565, 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, 2738, 972, 12, 2890, 16, 819, 16, 883, 4672, 468, 317, 6555, 3536, 4976, 326, 4125, 434, 16513, 628, 392, 8372, 6030, 3787, 883, 533, 18, 819, 1410, 506, 279, 9050, 1363, 18, 1220, 26282, 1410, 741, 326, 353, 46, 1683, 1842, 731, 6641, 358, 4543, 19908, 1058, 4084, 18, 3536, 6369, 2668, 4408, 267, 18, 2074, 4929, 6935, 883, 5581, 82, 9, 87, 11, 738, 883, 13, 365, 18, 2472, 1377, 273, 819, 365, 18, 8830, 377, 273, 883, 365, 18, 3576, 1850, 273, 2699, 18, 2150, 67, 2080, 67, 1080, 12, 2890, 18, 8830, 13, 365, 18, 712, 540, 273, 365, 18, 3576, 3292, 1626, 3546, 468, 1765, 326, 10016, 8372, 21573, 27, 17, 10787, 2 ]
if os.environ.has_key('OSG_APP'):
if os.environ.has_key( 'OSG_APP' ):
def executeAndGetOutput( cmd ): try: import subprocess p = subprocess.Popen( "%s" % cmd, shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE, close_fds = True ) outData = p.stdout.read().strip() returnCode = p.wait() except ImportError: import popen2 p3 = popen2.Popen3( "%s" % cmd ) outData = p3.fromchild.read().strip() returnCode = p3.wait() return ( returnCode, outData )
47c293fe28587532dcc46ce4b1dc8ab0111a614b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/47c293fe28587532dcc46ce4b1dc8ab0111a614b/dirac-pilot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 14042, 1447, 12, 1797, 262, 30, 775, 30, 1930, 6652, 293, 273, 6652, 18, 52, 3190, 12, 2213, 87, 6, 738, 1797, 16, 5972, 273, 1053, 16, 3909, 273, 6652, 18, 27602, 16, 4514, 273, 6652, 18, 27602, 16, 1746, 67, 74, 2377, 273, 1053, 262, 596, 751, 273, 293, 18, 10283, 18, 896, 7675, 6406, 1435, 24558, 273, 293, 18, 7048, 1435, 1335, 11308, 30, 1930, 30925, 22, 293, 23, 273, 30925, 22, 18, 52, 3190, 23, 12, 2213, 87, 6, 738, 1797, 262, 596, 751, 273, 293, 23, 18, 2080, 3624, 18, 896, 7675, 6406, 1435, 24558, 273, 293, 23, 18, 7048, 1435, 327, 261, 24558, 16, 596, 751, 262, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 14042, 1447, 12, 1797, 262, 30, 775, 30, 1930, 6652, 293, 273, 6652, 18, 52, 3190, 12, 2213, 87, 6, 738, 1797, 16, 5972, 273, 1053, 16, 3909, 273, 6652, 18, 27602, 16, 4514, 273, 6652, 18, 27602, 16, 1746, 67, 74, 2377, 273, 1053, 262, 596, 751, 273, 293, 18, 10283, 18, 896, 7675, 6406, 1435, 24558, 273, 293, 18, 7048, 1435, 1335, 11308, 30, 1930, 30925, 22, 293, 23, 273, 30925, 22, 18, 52, 3190, 23, 12, 2213, 87, 6, 738, 1797, 262, 596, 751, 273, 293, 23, 18, 2080, 3624, 18, 896, 7675, 6406, 1435, 24558, 273, 293, 23, 18, 7048, 1435, 327, 261, 24558, 16, 596, 751, 262, 225, 2, -100, -100, -100, -100 ]
params = [x['name'] + '=\u0022'+x['default']+'\u0022' for x in format_attributes['params']] builtin_params = [x['name'] + '=\u0022'+x['default']+'\u0022' for x in format_attributes['builtin_params']]
params = [x['name'] + '=\u0022'+str(x['default'])+'\u0022' for x in format_attributes['params']] builtin_params = [x['name'] + '=\u0022'+str(x['default'])+'\u0022' for x in format_attributes['builtin_params']]
def tmpl_admin_format_template_show_short_doc(self, ln, format_elements): """ Prints the format element documentation in a condensed way to display inside format template editor.
3a21af5c478829dd68a80adb90e466bbc886533f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/3a21af5c478829dd68a80adb90e466bbc886533f/bibformat_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3666, 67, 2139, 67, 3202, 67, 4500, 67, 6620, 67, 2434, 12, 2890, 16, 7211, 16, 740, 67, 6274, 4672, 3536, 3038, 87, 326, 740, 930, 7323, 316, 279, 6941, 28003, 4031, 358, 2562, 4832, 740, 1542, 4858, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10720, 67, 3666, 67, 2139, 67, 3202, 67, 4500, 67, 6620, 67, 2434, 12, 2890, 16, 7211, 16, 740, 67, 6274, 4672, 3536, 3038, 87, 326, 740, 930, 7323, 316, 279, 6941, 28003, 4031, 358, 2562, 4832, 740, 1542, 4858, 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 ]
def __init__(self, source_name, ErrMsg, StdMsg, DefaultMsg, color="default", logfile="/dev/null", verbose=""):
def __init__(self, source_name, ErrMsg, StdMsg, DefaultMsg, color="default", logfile="/dev/null", verbose="true"):
def __init__(self, source_name, ErrMsg, StdMsg, DefaultMsg, color="default", logfile="/dev/null", verbose=""): self.sourcename = source_name self.ErrMsg = ErrMsg self.StdMsg = StdMsg self.DefaultMsg = DefaultMsg self.color = color self.logfile = logfile self.colorcode = self.define_colorcode(self.color) self.verbose = verbose try: ofile = file(self.logfile,'a') if not self.ErrMsg and not self.StdMsg: if self.sourcename == "": if self.verbose: print self.colorcode+self.DefaultMsg ofile.write(self.DefaultMsg+"\n") os.system("tput sgr0") #set terminalcolor to default else: if self.verbose: print self.colorcode+"MESSAGE from "+self.sourcename+": "+self.DefaultMsg ofile.write("MESSAGE from "+self.sourcename+": "+self.DefaultMsg+"\n") os.system("tput sgr0") #set terminalcolor to default
b39ff3267cd008682a12a2d6c15ffe254ed2bb33 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2647/b39ff3267cd008682a12a2d6c15ffe254ed2bb33/abyle_output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1084, 67, 529, 16, 1926, 3332, 16, 6276, 3332, 16, 2989, 3332, 16, 2036, 1546, 1886, 3113, 15204, 1546, 19, 5206, 19, 2011, 3113, 3988, 1546, 3767, 6, 4672, 365, 18, 87, 20989, 1069, 273, 1084, 67, 529, 365, 18, 2524, 3332, 273, 1926, 3332, 365, 18, 10436, 3332, 273, 6276, 3332, 365, 18, 1868, 3332, 273, 2989, 3332, 365, 18, 3266, 273, 2036, 365, 18, 28806, 273, 15204, 365, 18, 3266, 710, 273, 365, 18, 11255, 67, 3266, 710, 12, 2890, 18, 3266, 13, 365, 18, 11369, 273, 3988, 775, 30, 434, 398, 273, 585, 12, 2890, 18, 28806, 11189, 69, 6134, 309, 486, 365, 18, 2524, 3332, 471, 486, 365, 18, 10436, 3332, 30, 309, 365, 18, 87, 20989, 1069, 422, 1408, 30, 309, 365, 18, 11369, 30, 1172, 365, 18, 3266, 710, 15, 2890, 18, 1868, 3332, 434, 398, 18, 2626, 12, 2890, 18, 1868, 3332, 9078, 64, 82, 7923, 1140, 18, 4299, 2932, 88, 458, 272, 3197, 20, 7923, 468, 542, 8651, 3266, 358, 805, 469, 30, 309, 365, 18, 11369, 30, 1172, 365, 18, 3266, 710, 9078, 8723, 628, 13773, 2890, 18, 87, 20989, 1069, 15, 6877, 13773, 2890, 18, 1868, 3332, 434, 398, 18, 2626, 2932, 8723, 628, 13773, 2890, 18, 87, 20989, 1069, 15, 6877, 13773, 2890, 18, 1868, 3332, 9078, 64, 82, 7923, 1140, 18, 4299, 2932, 88, 458, 272, 3197, 20, 7923, 468, 542, 8651, 3266, 358, 805, 2, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1084, 67, 529, 16, 1926, 3332, 16, 6276, 3332, 16, 2989, 3332, 16, 2036, 1546, 1886, 3113, 15204, 1546, 19, 5206, 19, 2011, 3113, 3988, 1546, 3767, 6, 4672, 365, 18, 87, 20989, 1069, 273, 1084, 67, 529, 365, 18, 2524, 3332, 273, 1926, 3332, 365, 18, 10436, 3332, 273, 6276, 3332, 365, 18, 1868, 3332, 273, 2989, 3332, 365, 18, 3266, 273, 2036, 365, 18, 28806, 273, 15204, 365, 18, 3266, 710, 273, 365, 18, 11255, 67, 3266, 710, 12, 2890, 18, 3266, 13, 365, 18, 11369, 273, 3988, 775, 30, 434, 398, 273, 585, 12, 2890, 18, 28806, 11189, 69, 6134, 309, 486, 365, 18, 2524, 3332, 471, 486, 365, 2 ]
Wraps GAP's DirectProduct, Embedding, and Projection. Sage calls GAP's DirectProduct, which chooses an efficient
Wraps GAP's ``DirectProduct``, ``Embedding``, and ``Projection``. Sage calls GAP's ``DirectProduct``, which chooses an efficient
def direct_product(self,other,maps=True): """ Wraps GAP's DirectProduct, Embedding, and Projection. Sage calls GAP's DirectProduct, which chooses an efficient representation for the direct product. The direct product of permutation groups will be a permutation group again. For a direct product D, the GAP operation Embedding(D,i) returns the homomorphism embedding the i-th factor into D. The GAP operation Projection(D,i) gives the projection of D onto the i-th factor. INPUT: - ``self, other`` - permutation groups This method returns a 5-tuple - a permutation groups and 4 morphisms. OUTPUT: - ``D`` - a direct product of the inputs, returned as a permutation group as well - ``iota1`` - an embedding of self into D - ``iota2`` - an embedding of other into D - ``pr1`` - the projection of D onto self (giving a splitting 1 - other - D - self - 1) - ``pr2`` - the projection of D onto other (giving a splitting 1 - self - D - other - 1) EXAMPLES:: sage: G = CyclicPermutationGroup(4) sage: D = G.direct_product(G,False) sage: D Permutation Group with generators [(1,2,3,4), (5,6,7,8)] sage: D,iota1,iota2,pr1,pr2 = G.direct_product(G) sage: D; iota1; iota2; pr1; pr2 Permutation Group with generators [(1,2,3,4), (5,6,7,8)] Homomorphism : Cyclic group of order 4 as a permutation group --> Permutation Group with generators [(1,2,3,4), (5,6,7,8)] Homomorphism : Cyclic group of order 4 as a permutation group --> Permutation Group with generators [(1,2,3,4), (5,6,7,8)] Homomorphism : Permutation Group with generators [(1,2,3,4), (5,6,7,8)] --> Cyclic group of order 4 as a permutation group Homomorphism : Permutation Group with generators [(1,2,3,4), (5,6,7,8)] --> Cyclic group of order 4 as a permutation group :: sage: g=D([(1,3),(2,4)]); g (1,3)(2,4) sage: d=D([(1,4,3,2),(5,7),(6,8)]); d (1,4,3,2)(5,7)(6,8) sage: iota1(g); iota2(g); pr1(d); pr2(d) (1,3)(2,4) (5,7)(6,8) (1,4,3,2) (1,3)(2,4) """ from sage.groups.perm_gps.permgroup_morphism import PermutationGroupMorphism_from_gap G1 = self._gap_init_() G2 = other._gap_init_() cmd1 = "G:=DirectProduct("+G1+","+G2+")" cmd2 = "iota1:=Embedding(G,1)" cmd3 = "iota2:=Embedding(G,2)" cmd4 = "pr1:=Projection(G,1)" cmd5 = "pr2:=Projection(G,2)" if not(maps): return PermutationGroup(gap_group=gap.eval(cmd1)) else: D = PermutationGroup_generic(gap_group=gap.eval(cmd1)) iota1 = PermutationGroupMorphism_from_gap(self,D, cmd2, "iota1") iota2 = PermutationGroupMorphism_from_gap(other,D, cmd3, "iota2") pr1 = PermutationGroupMorphism_from_gap(D,self, cmd4, "pr1") pr2 = PermutationGroupMorphism_from_gap(D,other, cmd5, "pr2") return D,iota1,iota2,pr1,pr2
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, 2657, 67, 5896, 12, 2890, 16, 3011, 16, 10711, 33, 5510, 4672, 3536, 678, 7506, 611, 2203, 1807, 12176, 5368, 4133, 68, 9191, 12176, 9538, 7459, 68, 9191, 471, 12176, 14789, 68, 8338, 225, 348, 410, 4097, 611, 2203, 1807, 12176, 5368, 4133, 68, 9191, 1492, 24784, 281, 392, 14382, 4335, 364, 326, 2657, 3017, 18, 1021, 2657, 3017, 434, 17440, 3252, 903, 506, 279, 17440, 1041, 3382, 18, 2457, 279, 2657, 3017, 463, 16, 326, 611, 2203, 1674, 14564, 7459, 12, 40, 16, 77, 13, 1135, 326, 13995, 362, 7657, 6228, 15853, 326, 277, 17, 451, 5578, 1368, 463, 18, 1021, 611, 2203, 1674, 21288, 12, 40, 16, 77, 13, 14758, 326, 8106, 434, 463, 10170, 326, 277, 17, 451, 5578, 18, 225, 12943, 30, 282, 300, 225, 12176, 2890, 16, 1308, 10335, 300, 17440, 3252, 225, 1220, 707, 1135, 279, 1381, 17, 8052, 300, 279, 17440, 3252, 471, 1059, 14354, 23749, 18, 282, 11550, 30, 282, 300, 225, 12176, 40, 10335, 300, 279, 2657, 3017, 434, 326, 4540, 16, 2106, 487, 279, 17440, 1041, 487, 5492, 225, 300, 225, 12176, 77, 25441, 21, 10335, 300, 392, 15853, 434, 365, 1368, 463, 225, 300, 225, 12176, 77, 25441, 22, 10335, 300, 392, 15853, 434, 1308, 1368, 463, 225, 300, 225, 12176, 683, 21, 10335, 300, 326, 8106, 434, 463, 10170, 365, 261, 75, 9288, 279, 20347, 404, 300, 1308, 300, 463, 300, 365, 300, 404, 13, 225, 300, 225, 12176, 683, 22, 10335, 300, 326, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2657, 67, 5896, 12, 2890, 16, 3011, 16, 10711, 33, 5510, 4672, 3536, 678, 7506, 611, 2203, 1807, 12176, 5368, 4133, 68, 9191, 12176, 9538, 7459, 68, 9191, 471, 12176, 14789, 68, 8338, 225, 348, 410, 4097, 611, 2203, 1807, 12176, 5368, 4133, 68, 9191, 1492, 24784, 281, 392, 14382, 4335, 364, 326, 2657, 3017, 18, 1021, 2657, 3017, 434, 17440, 3252, 903, 506, 279, 17440, 1041, 3382, 18, 2457, 279, 2657, 3017, 463, 16, 326, 611, 2203, 1674, 14564, 7459, 12, 40, 16, 77, 13, 1135, 326, 13995, 362, 7657, 6228, 15853, 326, 277, 17, 451, 5578, 1368, 463, 18, 1021, 611, 2203, 1674, 21288, 12, 40, 16, 77, 13, 14758, 326, 8106, 434, 463, 10170, 326, 2 ]
parameters = urllib.urlencode(self.parameter_children(self.child_results)) + q
parameters = urllib.urlencode(self.parameter_children(child_results)) + q
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2088, 12, 2890, 16, 1111, 16, 293, 67, 22734, 67, 2088, 33, 7036, 16, 1151, 67, 4717, 33, 8526, 4672, 3536, 6020, 9585, 358, 4614, 3167, 628, 326, 3699, 471, 327, 392, 22566, 4335, 434, 518, 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, 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, 389, 2088, 12, 2890, 16, 1111, 16, 293, 67, 22734, 67, 2088, 33, 7036, 16, 1151, 67, 4717, 33, 8526, 4672, 3536, 6020, 9585, 358, 4614, 3167, 628, 326, 3699, 471, 327, 392, 22566, 4335, 434, 518, 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 ]
cursor.execute("DELETE FROM session_attribute WHERE sid=%s", (self.sid,))
cursor.execute(""" DELETE FROM session_attribute WHERE sid=%s """, (self.sid,))
def delete_session_cookie(db): cursor = db.cursor() if self._new: self.last_visit = now self._new = False # The session might already exist even if _new is True since # it could have been created by a concurrent request (#3563). try: cursor.execute("INSERT INTO session " " (sid,last_visit,authenticated)" " VALUES (%s,%s,%s)", (self.sid, self.last_visit, authenticated)) except Exception: self.env.log.warning('Session %s already exists', self.sid) db.rollback() return if self._old != self: attrs = [(self.sid, authenticated, k, v) for k, v in self.items()] cursor.execute("DELETE FROM session_attribute WHERE sid=%s", (self.sid,)) self._old = dict(self.items()) if attrs: cursor.executemany("INSERT INTO session_attribute " " (sid,authenticated,name,value) " " VALUES (%s,%s,%s,%s)", attrs) elif not authenticated: # No need to keep around empty unauthenticated sessions cursor.execute("DELETE FROM session " "WHERE sid=%s AND authenticated=0", (self.sid,)) return # Update the session last visit time if it is over an hour old, # so that session doesn't get purged if now - self.last_visit > UPDATE_INTERVAL: self.last_visit = now self.env.log.info("Refreshing session %s", self.sid) cursor.execute('UPDATE session SET last_visit=%s ' 'WHERE sid=%s AND authenticated=%s', (self.last_visit, self.sid, authenticated)) # Purge expired sessions. We do this only when the session was # changed as to minimize the purging. mintime = now - PURGE_AGE self.env.log.debug('Purging old, expired, sessions.') cursor.execute("DELETE FROM session_attribute " "WHERE authenticated=0 AND sid " "IN (SELECT sid FROM session WHERE " "authenticated=0 AND last_visit < %s)", (mintime,)) cursor.execute("DELETE FROM session WHERE " "authenticated=0 AND last_visit < %s", (mintime,))
c9cd2abe472fbff336262b87b60cf1276cdfdeca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/c9cd2abe472fbff336262b87b60cf1276cdfdeca/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 3184, 67, 8417, 12, 1966, 4672, 3347, 273, 1319, 18, 9216, 1435, 309, 365, 6315, 2704, 30, 365, 18, 2722, 67, 11658, 273, 2037, 365, 6315, 2704, 273, 1083, 468, 1021, 1339, 4825, 1818, 1005, 5456, 309, 389, 2704, 353, 1053, 3241, 468, 518, 3377, 1240, 2118, 2522, 635, 279, 10020, 590, 23885, 23, 4313, 23, 2934, 775, 30, 3347, 18, 8837, 2932, 11356, 12421, 1339, 315, 315, 261, 7453, 16, 2722, 67, 11658, 16, 14454, 2225, 315, 13477, 6142, 87, 15529, 87, 15529, 87, 2225, 16, 261, 2890, 18, 7453, 16, 365, 18, 2722, 67, 11658, 16, 9370, 3719, 1335, 1185, 30, 365, 18, 3074, 18, 1330, 18, 8551, 2668, 2157, 738, 87, 1818, 1704, 2187, 365, 18, 7453, 13, 1319, 18, 20050, 1435, 327, 309, 365, 6315, 1673, 480, 365, 30, 3422, 273, 306, 12, 2890, 18, 7453, 16, 9370, 16, 417, 16, 331, 13, 364, 417, 16, 331, 316, 365, 18, 3319, 1435, 65, 3347, 18, 8837, 2932, 3660, 8568, 4571, 1339, 67, 4589, 4852, 7348, 5095, 87, 1408, 3113, 261, 2890, 18, 7453, 16, 3719, 365, 6315, 1673, 273, 2065, 12, 2890, 18, 3319, 10756, 309, 3422, 30, 3347, 18, 4177, 322, 351, 2273, 2932, 11356, 12421, 1339, 67, 4589, 315, 315, 261, 7453, 16, 14454, 16, 529, 16, 1132, 13, 315, 315, 13477, 6142, 87, 15529, 87, 15529, 87, 15529, 87, 2225, 16, 3422, 13, 1327, 486, 9370, 30, 468, 2631, 1608, 358, 3455, 6740, 1008, 640, 14454, 8856, 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, 1430, 67, 3184, 67, 8417, 12, 1966, 4672, 3347, 273, 1319, 18, 9216, 1435, 309, 365, 6315, 2704, 30, 365, 18, 2722, 67, 11658, 273, 2037, 365, 6315, 2704, 273, 1083, 468, 1021, 1339, 4825, 1818, 1005, 5456, 309, 389, 2704, 353, 1053, 3241, 468, 518, 3377, 1240, 2118, 2522, 635, 279, 10020, 590, 23885, 23, 4313, 23, 2934, 775, 30, 3347, 18, 8837, 2932, 11356, 12421, 1339, 315, 315, 261, 7453, 16, 2722, 67, 11658, 16, 14454, 2225, 315, 13477, 6142, 87, 15529, 87, 15529, 87, 2225, 16, 261, 2890, 18, 7453, 16, 365, 18, 2722, 67, 11658, 16, 9370, 3719, 1335, 1185, 30, 365, 18, 3074, 18, 1330, 18, 8551, 2668, 2157, 738, 87, 1818, 1704, 2 ]
self.modifyEdgeBondAction.setIconSet(QIconSet(self.image70))
self.modifyEdgeBondAction.setIconSet(QIconSet(self.image66))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 2327, 5190, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 2327, 5190, 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 ]
if len(str(int(locale.atof(new_value)))) > digits[0]:
locale.atof(new_value) decimal_point = locale.localeconv()['decimal_point'] new_int = new_value new_decimal = '' if decimal_point in new_value: new_int, new_decimal = new_value.rsplit(decimal_point, 1) if len(new_int) > digits[0] \ or len(new_decimal) > digits[1]:
def sig_insert_text(self, entry, new_text, new_text_length, position): value = entry.get_text() position = entry.get_position() new_value = value[:position] + new_text + value[position:] try: if new_value == '-': return
d8f659740fb3e5e4be215ae95ebd292d7d19fe40 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/d8f659740fb3e5e4be215ae95ebd292d7d19fe40/float.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 67, 6387, 67, 955, 12, 2890, 16, 1241, 16, 394, 67, 955, 16, 394, 67, 955, 67, 2469, 16, 1754, 4672, 460, 273, 1241, 18, 588, 67, 955, 1435, 1754, 273, 1241, 18, 588, 67, 3276, 1435, 394, 67, 1132, 273, 460, 10531, 3276, 65, 397, 394, 67, 955, 397, 460, 63, 3276, 26894, 775, 30, 309, 394, 67, 1132, 422, 4014, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30, 1652, 3553, 67, 6387, 67, 955, 12, 2890, 16, 1241, 16, 394, 67, 955, 16, 394, 67, 955, 67, 2469, 16, 1754, 4672, 460, 273, 1241, 18, 588, 67, 955, 1435, 1754, 273, 1241, 18, 588, 67, 3276, 1435, 394, 67, 1132, 273, 460, 10531, 3276, 65, 397, 394, 67, 955, 397, 460, 63, 3276, 26894, 775, 30, 309, 394, 67, 1132, 422, 4014, 30, 327, 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 ]
class dm_campaign_statistics(osv.osv): _name = "dm.campaign.statistics" _columns = { 'kind' : fields.char('Kind', size=16), 'qty' : fields.integer('Quantity'), 'rate' : fields.float('Rate', digits=(16,2)), 'camp_id' : fields.many2one('dm.campaign', 'Campaign') } dm_campaign_statistics()
def copy(self, cr, uid, id, default=None, context={}): cmp_id = super(dm_campaign, self).copy(cr, uid, id, default) data = self.browse(cr, uid, cmp_id, context) default='Copy of %s' % data.name super(dm_campaign, self).write(cr, uid, cmp_id, {'name':default, 'date_start':0}) return cmp_id
69c8954d987167cad030faf89e21c8ebbb6cb792 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/69c8954d987167cad030faf89e21c8ebbb6cb792/campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 9411, 67, 350, 273, 2240, 12, 10956, 67, 14608, 16, 365, 2934, 3530, 12, 3353, 16, 4555, 16, 612, 16, 805, 13, 501, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 9411, 67, 350, 16, 819, 13, 805, 2218, 2951, 434, 738, 87, 11, 738, 501, 18, 529, 2240, 12, 10956, 67, 14608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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 9411, 67, 350, 273, 2240, 12, 10956, 67, 14608, 16, 365, 2934, 3530, 12, 3353, 16, 4555, 16, 612, 16, 805, 13, 501, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 9411, 67, 350, 16, 819, 13, 805, 2218, 2951, 434, 738, 87, 11, 738, 501, 18, 529, 2240, 12, 10956, 67, 14608, 16, 365, 2934, 2626, 12, 3353, 16, 4555, 16, 9411, 67, 350, 16, 13666, 529, 4278, 1886, 16, 296, 712, 67, 1937, 4278, 20, 6792, 327, 9411, 67, 350, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
easy_run.call("rm -rf %s "%output)
def check_adp_rand(cmd, xrsp_init, output, selection, selection_str, tolerance=1.e-3): easy_run.call(cmd) xrsp = xray_structure_plus(file_name = output) assert approx_equal(xrsp.occ, xrsp_init.occ,tolerance) assert approx_equal(xrsp.sites_cart, xrsp_init.sites_cart,tolerance) assert approx_equal(xrsp.use_u_iso, xrsp_init.use_u_iso,tolerance) assert approx_equal(xrsp.use_u_aniso,xrsp_init.use_u_aniso,tolerance) assert approx_equal(xrsp.u_iso_not_used, xrsp_init.u_iso_not_used,tolerance) assert approx_equal(xrsp.u_cart_not_used,xrsp_init.u_cart_not_used,tolerance) if(selection_str is None): assert not_approx_equal(xrsp.u_iso_used, xrsp_init.u_iso_used,tolerance) assert not_approx_equal(xrsp.u_cart_used, xrsp_init.u_cart_used,tolerance) else: arg1 = xrsp.u_iso_used.select(selection.select(xrsp.use_u_iso)) arg2 = xrsp_init.u_iso_used.select(selection.select(xrsp_init.use_u_iso)) if(arg1.size() > 0): assert not_approx_equal(arg1, arg2,tolerance) arg1 =xrsp.u_cart_used.select(selection.select(xrsp.use_u_aniso)) arg2 =xrsp_init.u_cart_used.select(selection.select(xrsp_init.use_u_aniso)) if(arg1.size() > 0): assert not_approx_equal(arg1, arg2,tolerance) easy_run.call("rm -rf %s "%output)
d3b962327f9bfcab4633f0d80f058ec29ecde30b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/d3b962327f9bfcab4633f0d80f058ec29ecde30b/tst_pdbtools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 361, 84, 67, 7884, 12, 4172, 16, 20912, 1752, 67, 2738, 16, 876, 16, 4421, 16, 4421, 67, 701, 16, 10673, 33, 21, 18, 73, 17, 23, 4672, 12779, 67, 2681, 18, 1991, 12, 4172, 13, 20912, 1752, 273, 619, 435, 67, 7627, 67, 10103, 12, 768, 67, 529, 273, 876, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 25049, 16, 3639, 20912, 1752, 67, 2738, 18, 25049, 16, 25456, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 12180, 67, 11848, 16, 20912, 1752, 67, 2738, 18, 12180, 67, 11848, 16, 25456, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 1202, 67, 89, 67, 9699, 16, 225, 20912, 1752, 67, 2738, 18, 1202, 67, 89, 67, 9699, 16, 25456, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 1202, 67, 89, 67, 304, 9699, 16, 92, 86, 1752, 67, 2738, 18, 1202, 67, 89, 67, 304, 9699, 16, 25456, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 89, 67, 9699, 67, 902, 67, 3668, 16, 225, 20912, 1752, 67, 2738, 18, 89, 67, 9699, 67, 902, 67, 3668, 16, 25456, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 89, 67, 11848, 67, 902, 67, 3668, 16, 92, 86, 1752, 67, 2738, 18, 89, 67, 11848, 67, 902, 67, 3668, 16, 25456, 13, 309, 12, 10705, 67, 701, 353, 599, 4672, 1815, 486, 67, 26742, 67, 9729, 12, 92, 86, 1752, 18, 89, 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, 866, 67, 361, 84, 67, 7884, 12, 4172, 16, 20912, 1752, 67, 2738, 16, 876, 16, 4421, 16, 4421, 67, 701, 16, 10673, 33, 21, 18, 73, 17, 23, 4672, 12779, 67, 2681, 18, 1991, 12, 4172, 13, 20912, 1752, 273, 619, 435, 67, 7627, 67, 10103, 12, 768, 67, 529, 273, 876, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 25049, 16, 3639, 20912, 1752, 67, 2738, 18, 25049, 16, 25456, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 12180, 67, 11848, 16, 20912, 1752, 67, 2738, 18, 12180, 67, 11848, 16, 25456, 13, 1815, 10818, 67, 9729, 12, 92, 86, 1752, 18, 1202, 67, 89, 67, 9699, 16, 225, 20912, 1752, 67, 2 ]
hgr.link(link_hypernode, link_hyperedge)
hgr.link(link_hypernode, link_hyperedge)
def read_hypergraph(string): """ Read a hypergraph from a string in dot format. Nodes and edges specified in the input will be added to the current hypergraph. @type string: string @param string: Input string in dot format specifying a graph. @rtype: hypergraph @return: Hypergraph """ hgr = hypergraph() dotG = pydot.graph_from_dot_data(string) # Read the hypernode nodes... # Note 1: We need to assume that all of the nodes are listed since we need to know if they # are a hyperedge or a normal node # Note 2: We should read in all of the nodes before putting in the links for each_node in dotG.get_nodes(): if 'node' == each_node.get('hyper_node_type'): hgr.add_node(each_node.get_name()) elif 'hyperedge' == each_node.get('hyper_node_type'): hgr.add_hyperedge(each_node.get_name()) else: print ("Error: improper hyper_node_type - %s" % str(each_node.get('hyper_node_type'))) # Now read in the links to connect the hyperedges for each_link in dotG.get_edges(): if hgr.has_node(each_link.get_source()): link_hypernode = each_link.get_source() link_hyperedge = each_link.get_destination() elif hgr.has_node(each_link.get_destination()): link_hypernode = each_link.get_destination() link_hyperedge = each_link.get_source() hgr.link(link_hypernode, link_hyperedge) return hgr
e6eb116cccbd282c6e3fa3cf4bff6bc426fa4caf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4687/e6eb116cccbd282c6e3fa3cf4bff6bc426fa4caf/dot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 17203, 4660, 12, 1080, 4672, 3536, 2720, 279, 9512, 4660, 628, 279, 533, 316, 3928, 740, 18, 14037, 471, 5231, 1269, 316, 326, 810, 903, 506, 3096, 358, 326, 783, 9512, 4660, 18, 225, 632, 723, 225, 533, 30, 533, 632, 891, 533, 30, 2741, 533, 316, 3928, 740, 13664, 279, 2667, 18, 225, 632, 86, 723, 30, 225, 9512, 4660, 632, 2463, 30, 18274, 4660, 3536, 366, 3197, 273, 9512, 4660, 1435, 3928, 43, 273, 2395, 9811, 18, 4660, 67, 2080, 67, 9811, 67, 892, 12, 1080, 13, 225, 468, 2720, 326, 9512, 2159, 2199, 2777, 468, 3609, 404, 30, 1660, 1608, 358, 6750, 716, 777, 434, 326, 2199, 854, 12889, 3241, 732, 1608, 358, 5055, 309, 2898, 468, 6647, 854, 279, 9512, 7126, 578, 279, 2212, 756, 468, 3609, 576, 30, 1660, 1410, 855, 316, 777, 434, 326, 2199, 1865, 29379, 316, 326, 4716, 364, 1517, 67, 2159, 316, 3928, 43, 18, 588, 67, 4690, 13332, 309, 296, 2159, 11, 422, 1517, 67, 2159, 18, 588, 2668, 17203, 67, 2159, 67, 723, 11, 4672, 366, 3197, 18, 1289, 67, 2159, 12, 13798, 67, 2159, 18, 588, 67, 529, 10756, 1327, 296, 17203, 7126, 11, 422, 1517, 67, 2159, 18, 588, 2668, 17203, 67, 2159, 67, 723, 11, 4672, 366, 3197, 18, 1289, 67, 17203, 7126, 12, 13798, 67, 2159, 18, 588, 67, 529, 10756, 469, 30, 1172, 7566, 668, 30, 13069, 457, 9512, 67, 2159, 67, 723, 300, 738, 87, 6, 738, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 17203, 4660, 12, 1080, 4672, 3536, 2720, 279, 9512, 4660, 628, 279, 533, 316, 3928, 740, 18, 14037, 471, 5231, 1269, 316, 326, 810, 903, 506, 3096, 358, 326, 783, 9512, 4660, 18, 225, 632, 723, 225, 533, 30, 533, 632, 891, 533, 30, 2741, 533, 316, 3928, 740, 13664, 279, 2667, 18, 225, 632, 86, 723, 30, 225, 9512, 4660, 632, 2463, 30, 18274, 4660, 3536, 366, 3197, 273, 9512, 4660, 1435, 3928, 43, 273, 2395, 9811, 18, 4660, 67, 2080, 67, 9811, 67, 892, 12, 1080, 13, 225, 468, 2720, 326, 9512, 2159, 2199, 2777, 468, 3609, 404, 30, 1660, 1608, 358, 6750, 716, 777, 434, 326, 2199, 854, 12889, 3241, 732, 1608, 358, 2 ]
first2 = True for clause in c[0]: if not first2: query += ' AND ' first2 = False query += clause
first = True for c in g: if not first: query += ' OR ' first = False query += '(' first2 = True for clause in c[0]: if not first2: query += ' AND ' first2 = False query += clause query += ')' val += c[1]
def domain_get(self, cr, uid, model_name): # root user above constraint if uid == 1: return '', []
1d274fe2c4562218be0678c0c5cd73d249e42aa1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/1d274fe2c4562218be0678c0c5cd73d249e42aa1/ir_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2461, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 938, 67, 529, 4672, 468, 1365, 729, 5721, 4954, 309, 4555, 422, 404, 30, 327, 10226, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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529, 4672, 468, 1365, 729, 5721, 4954, 309, 4555, 422, 404, 30, 327, 10226, 5378, 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 ]
del fd
os.close(fd)
def __clipboard_get_func_cb(self, clipboard, selection_data, info, data): file_name = urlparse.urlparse(self._url).path extension = None if '.' in file_name: extension = file_name.split('.')[1] fd, self._temp_file = tempfile.mkstemp(suffix='.' + extension) del fd
854eb02dda6c9569053daf38dc22f98c06759ae7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6905/854eb02dda6c9569053daf38dc22f98c06759ae7/palettes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14161, 3752, 67, 588, 67, 644, 67, 7358, 12, 2890, 16, 20304, 16, 4421, 67, 892, 16, 1123, 16, 501, 4672, 585, 67, 529, 273, 15185, 18, 718, 2670, 12, 2890, 6315, 718, 2934, 803, 2710, 273, 599, 309, 2611, 316, 585, 67, 529, 30, 2710, 273, 585, 67, 529, 18, 4939, 2668, 1093, 25146, 21, 65, 5194, 16, 365, 6315, 5814, 67, 768, 273, 13275, 18, 24816, 19781, 84, 12, 8477, 2218, 1093, 397, 2710, 13, 1464, 5194, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 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, 14161, 3752, 67, 588, 67, 644, 67, 7358, 12, 2890, 16, 20304, 16, 4421, 67, 892, 16, 1123, 16, 501, 4672, 585, 67, 529, 273, 15185, 18, 718, 2670, 12, 2890, 6315, 718, 2934, 803, 2710, 273, 599, 309, 2611, 316, 585, 67, 529, 30, 2710, 273, 585, 67, 529, 18, 4939, 2668, 1093, 25146, 21, 65, 5194, 16, 365, 6315, 5814, 67, 768, 273, 13275, 18, 24816, 19781, 84, 12, 8477, 2218, 1093, 397, 2710, 13, 1464, 5194, 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 ]
def __init__(self, rel, search_fields, attrs=None):
def __init__(self, rel, search_fields, to_string_function, attrs=None):
def __init__(self, rel, search_fields, attrs=None): self.rel = rel self.search_fields = search_fields super(ForeignKeySearchInput, self).__init__(attrs)
232004ad594938cbe340dce72b421873aa7f21e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/232004ad594938cbe340dce72b421873aa7f21e5/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1279, 16, 1623, 67, 2821, 16, 358, 67, 1080, 67, 915, 16, 3422, 33, 7036, 4672, 365, 18, 2878, 273, 1279, 365, 18, 3072, 67, 2821, 273, 1623, 67, 2821, 2240, 12, 15420, 2979, 1210, 16, 365, 2934, 972, 2738, 972, 12, 7039, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1279, 16, 1623, 67, 2821, 16, 358, 67, 1080, 67, 915, 16, 3422, 33, 7036, 4672, 365, 18, 2878, 273, 1279, 365, 18, 3072, 67, 2821, 273, 1623, 67, 2821, 2240, 12, 15420, 2979, 1210, 16, 365, 2934, 972, 2738, 972, 12, 7039, 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 ]
penColor = edgeOverlay.color if type(penColor) == qt.QColor: penColor = qtColor2figColor(penColor)
if not attr.has_key("penColor"): penColor = edgeOverlay.color if type(penColor) == qt.QColor: penColor = qtColor2figColor(penColor) attr["penColor"] = penColor
def addEdgeOverlay(self, edgeOverlay, **attr): """Adds and returns fig.Polygon for all edges (or -parts, see addClippedPoly) of the given overlay, using the overlays' color."""
396c619383f8adeb626fc4ef11c56fd7ad43727b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/396c619383f8adeb626fc4ef11c56fd7ad43727b/figexport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6098, 11627, 12, 2890, 16, 3591, 11627, 16, 2826, 1747, 4672, 3536, 3655, 471, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6098, 11627, 12, 2890, 16, 3591, 11627, 16, 2826, 1747, 4672, 3536, 3655, 471, 1135, 4291, 18, 11787, 364, 777, 5231, 261, 280, 300, 6019, 16, 2621, 527, 15339, 1845, 12487, 13, 434, 326, 864, 9218, 16, 1450, 326, 9218, 87, 11, 2036, 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 ]
for shot in self.shots: shot.update(dt) if self.reloadtimer > 0: self.reloadtimer -= dt
def update(self, dt): '''update the tank's position, status, velocities''' if self.status == constants.TANKDEAD: self.dead_timer -= dt if self.dead_timer <= 0: self.team.respawn(self,not self.spawned) self.spawned = True return
09d423d8b35998677a916425c1c94ee6be961d30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/09d423d8b35998677a916425c1c94ee6be961d30/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3681, 4672, 9163, 2725, 326, 268, 2304, 1807, 1754, 16, 1267, 16, 331, 9640, 1961, 26418, 309, 365, 18, 2327, 422, 6810, 18, 56, 20201, 1639, 1880, 30, 365, 18, 22097, 67, 12542, 3947, 3681, 309, 365, 18, 22097, 67, 12542, 1648, 374, 30, 365, 18, 10035, 18, 12243, 9533, 12, 2890, 16, 902, 365, 18, 1752, 9533, 329, 13, 365, 18, 1752, 9533, 329, 273, 1053, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3681, 4672, 9163, 2725, 326, 268, 2304, 1807, 1754, 16, 1267, 16, 331, 9640, 1961, 26418, 309, 365, 18, 2327, 422, 6810, 18, 56, 20201, 1639, 1880, 30, 365, 18, 22097, 67, 12542, 3947, 3681, 309, 365, 18, 22097, 67, 12542, 1648, 374, 30, 365, 18, 10035, 18, 12243, 9533, 12, 2890, 16, 902, 365, 18, 1752, 9533, 329, 13, 365, 18, 1752, 9533, 329, 273, 1053, 327, 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 ]
cmd = cmd + ' -S"' + dotdots + 'built/include/parser-inc"' cmd = cmd + ' -I"' + dotdots + 'built/python/include"'
cmd = cmd + ' -S"' + dotdots + PREFIX+'/include/parser-inc"' cmd = cmd + ' -I"' + dotdots + PREFIX+'/python/include"'
def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0): if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)): sys.exit("syntax error in Interrogate directive"); ipath = ["built/tmp"] + ipath + ["built/include"] outd = "built/etc/"+outd outc = "built/tmp/"+outc paths = xpaths(src+"/",files,"") dep = CxxCalcDependenciesAll(paths, ipath) dotdots = "" for i in range(0,src.count("/")+1): dotdots = dotdots + "../" ALLIN.append(outd) building = 0; for x in opts: if (x[:9]=="BUILDING_"): building = x[9:] if (older(outc, dep) or older(outd, dep)): if (COMPILER=="MSVC7"): cmd = dotdots + "built/bin/interrogate.exe" cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -longlong __int64 -D_X86_ -DWIN32_VC -D_WIN32' cmd = cmd + ' -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall' if (OPTIMIZE==1): cmd = cmd + ' ' if (OPTIMIZE==2): cmd = cmd + ' ' if (OPTIMIZE==3): cmd = cmd + ' -DFORCE_INLINING' if (OPTIMIZE==4): cmd = cmd + ' -DFORCE_INLINING' cmd = cmd + ' -S"' + dotdots + 'built/include/parser-inc"' cmd = cmd + ' -I"' + dotdots + 'built/python/include"' if (COMPILER=="LINUXA"): cmd = dotdots + "built/bin/interrogate" cmd = cmd + ' -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__i386__ -D__const=const' if (OPTIMIZE==1): cmd = cmd + ' ' if (OPTIMIZE==2): cmd = cmd + ' ' if (OPTIMIZE==3): cmd = cmd + ' ' if (OPTIMIZE==4): cmd = cmd + ' ' cmd = cmd + ' -S"' + dotdots + 'built/include/parser-inc" -S"/usr/include"' cmd = cmd + ' -I"' + dotdots + 'built/python/include"' cmd = cmd + " -oc "+dotdots+outc+" -od "+dotdots+outd cmd = cmd + ' -fnames -string -refcount -assert -python' for x in ipath: cmd = cmd + ' -I"' + dotdots + x + '"' if (building): cmd = cmd + " -DBUILDING_"+building if (opts.count("WITHINPANDA")): cmd = cmd + " -DWITHIN_PANDA" for pkg in PACKAGES: if (PkgSelected(opts,pkg)): cmd = cmd + ' -I"' + dotdots + STDTHIRDPARTY + pkg.lower() + "/include" + '"' cmd = cmd + ' -module "' + module + '" -library "' + library + '"' if ((COMPILER=="MSVC7") and opts.count("DXSDK")): cmd = cmd + ' -I"' + DirectXSDK + '/include"' if ((COMPILER=="MSVC7") and opts.count("MAYA5")): cmd = cmd + ' -I"' + Maya5SDK + 'include"' if ((COMPILER=="MSVC7") and opts.count("MAYA6")): cmd = cmd + ' -I"' + Maya6SDK + 'include"' for x in files: cmd = cmd + ' ' + x oscdcmd(src, cmd) updatefiledate(outd) updatefiledate(outc)
4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309, 14015, 625, 421, 631, 20, 14047, 12, 4952, 631, 20, 14047, 12, 659, 72, 631, 20, 14047, 12, 659, 71, 631, 20, 14047, 12, 4816, 631, 20, 14047, 12, 2978, 631, 20, 14047, 12, 12083, 631, 20, 14047, 12, 2354, 631, 20, 3719, 30, 2589, 18, 8593, 2932, 14308, 555, 316, 5294, 15283, 8655, 8863, 277, 803, 273, 8247, 12406, 19, 5645, 11929, 397, 277, 803, 397, 8247, 12406, 19, 6702, 11929, 596, 72, 273, 315, 12406, 19, 14175, 4898, 15, 659, 72, 596, 71, 273, 315, 12406, 19, 5645, 4898, 15, 659, 71, 2953, 273, 619, 4481, 12, 4816, 9078, 19, 3113, 2354, 16, 3660, 13, 5993, 273, 385, 5279, 25779, 8053, 1595, 12, 4481, 16, 277, 803, 13, 3928, 72, 6968, 273, 1408, 364, 277, 316, 1048, 12, 20, 16, 4816, 18, 1883, 2932, 4898, 27921, 21, 4672, 3928, 72, 6968, 273, 3928, 72, 6968, 397, 315, 838, 4898, 8061, 706, 18, 6923, 12, 659, 72, 13, 10504, 273, 374, 31, 364, 619, 316, 1500, 30, 309, 261, 92, 10531, 29, 65, 31713, 20215, 1360, 9548, 4672, 10504, 273, 619, 63, 29, 26894, 309, 261, 1498, 12, 659, 71, 16, 5993, 13, 578, 12156, 12, 659, 72, 16, 5993, 3719, 30, 309, 261, 31075, 14668, 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, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309, 14015, 625, 421, 631, 20, 14047, 12, 4952, 631, 20, 14047, 12, 659, 72, 631, 20, 14047, 12, 659, 71, 631, 20, 14047, 12, 4816, 631, 20, 14047, 12, 2978, 631, 20, 14047, 12, 12083, 631, 20, 14047, 12, 2354, 631, 20, 3719, 30, 2589, 18, 8593, 2932, 14308, 555, 316, 5294, 15283, 8655, 8863, 277, 803, 273, 8247, 12406, 19, 5645, 11929, 397, 277, 803, 397, 8247, 12406, 19, 6702, 11929, 596, 72, 273, 315, 12406, 19, 14175, 2 ]
- prepend _ if the result is a python keyword
- append _ if the result is a python keyword
def identify(str): """Turn any string into an identifier: - replace space by _ - replace other illegal chars by _xx_ (hex code) - prepend _ if the result is a python keyword """ if not str: return "empty_ae_name_" rv = '' ok = string.ascii_letters + '_' ok2 = ok + string.digits for c in str: if c in ok: rv = rv + c elif c == ' ': rv = rv + '_' else: rv = rv + '_%02.2x_'%ord(c) ok = ok2 if keyword.iskeyword(rv): rv = rv + '_' return rv
20cdaa7b9e4a47e6362ef069a5be4c6505c37d08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/20cdaa7b9e4a47e6362ef069a5be4c6505c37d08/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 12, 701, 4672, 3536, 15858, 1281, 533, 1368, 392, 2756, 30, 300, 1453, 3476, 635, 389, 300, 1453, 1308, 16720, 5230, 635, 389, 5279, 67, 261, 7118, 981, 13, 300, 714, 389, 309, 326, 563, 353, 279, 5790, 4932, 3536, 309, 486, 609, 30, 327, 315, 5531, 67, 8906, 67, 529, 9548, 5633, 273, 875, 1529, 273, 533, 18, 9184, 67, 26054, 397, 4427, 1529, 22, 273, 1529, 397, 533, 18, 16649, 364, 276, 316, 609, 30, 309, 276, 316, 1529, 30, 5633, 273, 5633, 397, 276, 1327, 276, 422, 296, 4290, 5633, 273, 5633, 397, 4427, 469, 30, 5633, 273, 5633, 397, 2070, 9, 3103, 18, 22, 92, 4623, 9, 517, 12, 71, 13, 1529, 273, 1529, 22, 309, 4932, 18, 291, 11041, 12, 4962, 4672, 5633, 273, 5633, 397, 4427, 327, 5633, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 12, 701, 4672, 3536, 15858, 1281, 533, 1368, 392, 2756, 30, 300, 1453, 3476, 635, 389, 300, 1453, 1308, 16720, 5230, 635, 389, 5279, 67, 261, 7118, 981, 13, 300, 714, 389, 309, 326, 563, 353, 279, 5790, 4932, 3536, 309, 486, 609, 30, 327, 315, 5531, 67, 8906, 67, 529, 9548, 5633, 273, 875, 1529, 273, 533, 18, 9184, 67, 26054, 397, 4427, 1529, 22, 273, 1529, 397, 533, 18, 16649, 364, 276, 316, 609, 30, 309, 276, 316, 1529, 30, 5633, 273, 5633, 397, 276, 1327, 276, 422, 296, 4290, 5633, 273, 5633, 397, 4427, 469, 30, 5633, 273, 5633, 397, 2070, 9, 3103, 18, 22, 92, 4623, 9, 517, 12, 71, 13, 1529, 273, 2 ]
if params['avatar']:
if 'avatar' in params and params['avatar']:
def update(self, params, volunteer): if params['home_neighborhood']: if params['home_neighborhood'] == 'None': volunteer.home_neighborhood = None; else: volunteer.home_neighborhood = Neighborhood.get_by_id(int(params['home_neighborhood'])) if params['work_neighborhood']: if params['work_neighborhood'] == 'None': volunteer.work_neighborhood = None; else: volunteer.work_neighborhood = Neighborhood.get_by_id(int(params['work_neighborhood'])) if params['avatar']: volunteer.avatar = params['avatar'] volunteer.quote = "" + params['quote'] volunteer.name = params['name'] if volunteer.twitter != params['twitter']: volunteer.twitter = params['twitter'] Twitter.toot("Welcome to Flash Volunteer!", volunteer.twitter) for interestcategory in InterestCategory.all(): paramname = 'interestcategory[' + str(interestcategory.key().id()) + ']' vic = VolunteerInterestCategory.gql("WHERE volunteer = :volunteer AND interestcategory = :interestcategory" , volunteer = volunteer, interestcategory = interestcategory).get() if params[paramname] == ['1','1'] and not vic: vic = VolunteerInterestCategory(volunteer = volunteer, interestcategory = interestcategory) vic.put() elif params[paramname] == '1' and vic: vic.delete() volunteer.put()
fb33ca1b2e1da0630555b6db66419e3dac2fa9f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5139/fb33ca1b2e1da0630555b6db66419e3dac2fa9f9/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 859, 16, 6626, 318, 736, 264, 4672, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 30, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 422, 296, 7036, 4278, 6626, 318, 736, 264, 18, 8712, 67, 18168, 19619, 273, 599, 31, 469, 30, 6626, 318, 736, 264, 18, 8712, 67, 18168, 19619, 273, 30663, 280, 19619, 18, 588, 67, 1637, 67, 350, 12, 474, 12, 2010, 3292, 8712, 67, 18168, 19619, 3546, 3719, 225, 309, 859, 3292, 1252, 67, 18168, 19619, 3546, 30, 309, 859, 3292, 1252, 67, 18168, 19619, 3546, 422, 296, 7036, 4278, 6626, 318, 736, 264, 18, 1252, 67, 18168, 19619, 273, 599, 31, 469, 30, 6626, 318, 736, 264, 18, 1252, 67, 18168, 19619, 273, 30663, 280, 19619, 18, 588, 67, 1637, 67, 350, 12, 474, 12, 2010, 3292, 1252, 67, 18168, 19619, 3546, 3719, 225, 309, 296, 19660, 11, 316, 859, 471, 859, 3292, 19660, 3546, 30, 6626, 318, 736, 264, 18, 19660, 273, 859, 3292, 19660, 3546, 225, 6626, 318, 736, 264, 18, 6889, 273, 1408, 397, 859, 3292, 6889, 3546, 6626, 318, 736, 264, 18, 529, 225, 273, 859, 3292, 529, 3546, 282, 309, 6626, 318, 736, 264, 18, 19406, 480, 859, 3292, 19406, 3546, 30, 6626, 318, 736, 264, 18, 19406, 273, 859, 3292, 19406, 3546, 19551, 18, 869, 352, 2932, 59, 16312, 358, 15014, 26861, 318, 736, 264, 5, 3113, 6626, 318, 736, 264, 18, 19406, 13, 225, 364, 16513, 4743, 316, 5294, 395, 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, 12, 2890, 16, 859, 16, 6626, 318, 736, 264, 4672, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 30, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 422, 296, 7036, 4278, 6626, 318, 736, 264, 18, 8712, 67, 18168, 19619, 273, 599, 31, 469, 30, 6626, 318, 736, 264, 18, 8712, 67, 18168, 19619, 273, 30663, 280, 19619, 18, 588, 67, 1637, 67, 350, 12, 474, 12, 2010, 3292, 8712, 67, 18168, 19619, 3546, 3719, 225, 309, 859, 3292, 1252, 67, 18168, 19619, 3546, 30, 309, 859, 3292, 1252, 67, 18168, 19619, 3546, 422, 296, 7036, 4278, 6626, 318, 736, 264, 18, 1252, 67, 18168, 19619, 273, 599, 31, 469, 30, 6626, 318, 736, 264, 18, 1252, 2 ]
sys.exit(1)
raise UnsupportedException
def make_essential_devs(self, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 403, 2001, 67, 5206, 87, 12, 2890, 16, 1316, 67, 803, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 403, 2001, 67, 5206, 87, 12, 2890, 16, 1316, 67, 803, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.class_group:
if self.identifier: icon_name = self.identifier.lower() elif self.class_group:
def find_icon_pixbuf(self, size): # Returns the icon pixbuf for the program. Uses the following metods:
dcfb9af5533d0897251e6cd781e65ac4dc13c932 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/dcfb9af5533d0897251e6cd781e65ac4dc13c932/dockbarx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3950, 67, 14861, 4385, 12, 2890, 16, 963, 4672, 468, 2860, 326, 4126, 11871, 4385, 364, 326, 5402, 18, 14854, 326, 3751, 5100, 369, 87, 30, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3950, 67, 14861, 4385, 12, 2890, 16, 963, 4672, 468, 2860, 326, 4126, 11871, 4385, 364, 326, 5402, 18, 14854, 326, 3751, 5100, 369, 87, 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 ]
self.setup_color(defs.BAR, defs.GLASS_HISTEP_1, self.wTree.get_widget("highlightcolor2"))
self.setup_color(defs.BAR, defs.GLASS_HISTEP_2, self.wTree.get_widget("highlightcolor2"))
def __init__(self, wTree): self.wTree = wTree
c0ca09cfb91a9a39f968ee8f209aaccf92b1e38e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8416/c0ca09cfb91a9a39f968ee8f209aaccf92b1e38e/awnPreferences.py
[ 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 341, 2471, 4672, 365, 18, 91, 2471, 273, 341, 2471, 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 ]
users[change['user']].append(change['title']) pages[change['title']] += 1
users.setdefault(change['user'], []).append(change['title']) pages[change['title']] = pages.setdefault(change['title'], 0) + 1
def print_recent_changes(self, days=7, show=10): now = datetime.utcnow() then = now - timedelta(days=days) print "From %s to %s" % (then, now) changes = self.get_recent_changes(now=now, then=then) num_changes = len(changes) print "%d wiki changes in the past week" % num_changes if num_changes == 500: print "Warning: Number of changes reaches the API return limit." print "You will not get the complete list of changes unless " print "you run this script using a 'bot' account."
ba6df619ca5568706fa7715f5cf7b072d14d8a48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9952/ba6df619ca5568706fa7715f5cf7b072d14d8a48/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 20872, 67, 6329, 12, 2890, 16, 4681, 33, 27, 16, 2405, 33, 2163, 4672, 2037, 273, 3314, 18, 17892, 3338, 1435, 1508, 273, 2037, 300, 10661, 12, 9810, 33, 9810, 13, 1172, 315, 1265, 738, 87, 358, 738, 87, 6, 738, 261, 15991, 16, 2037, 13, 3478, 273, 365, 18, 588, 67, 20872, 67, 6329, 12, 3338, 33, 3338, 16, 1508, 33, 15991, 13, 818, 67, 6329, 273, 562, 12, 6329, 13, 1172, 2213, 72, 9050, 3478, 316, 326, 8854, 4860, 6, 738, 818, 67, 6329, 309, 818, 67, 6329, 422, 6604, 30, 1172, 315, 6210, 30, 3588, 434, 3478, 30093, 326, 1491, 327, 1800, 1199, 1172, 315, 6225, 903, 486, 336, 326, 3912, 666, 434, 3478, 3308, 315, 1172, 315, 19940, 1086, 333, 2728, 1450, 279, 296, 4819, 11, 2236, 1199, 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, 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2037, 13, 3478, 273, 365, 18, 588, 67, 20872, 67, 6329, 12, 3338, 33, 3338, 16, 1508, 33, 15991, 13, 818, 67, 6329, 273, 562, 12, 6329, 13, 1172, 2213, 72, 9050, 3478, 316, 326, 8854, 4860, 6, 738, 818, 67, 6329, 309, 818, 67, 6329, 422, 6604, 30, 1172, 315, 6210, 30, 3588, 434, 3478, 30093, 326, 1491, 327, 1800, 1199, 1172, 315, 6225, 903, 486, 336, 326, 3912, 666, 434, 2 ]
self.get_installer_filename()))
self.get_installer_filename(fullname)))
def run (self): if (sys.platform != "win32" and (self.distribution.has_ext_modules() or self.distribution.has_c_libraries())): raise DistutilsPlatformError \ ("distribution contains extensions and/or C libraries; " "must be compiled on a Windows 32 platform")
ff0d1f9f6ad8cd41b33d68ee48c7b97269062ee2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ff0d1f9f6ad8cd41b33d68ee48c7b97269062ee2/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 471, 261, 2890, 18, 16279, 18, 5332, 67, 408, 67, 6400, 1435, 578, 365, 18, 16279, 18, 5332, 67, 71, 67, 31417, 1435, 3719, 30, 1002, 19893, 5471, 8201, 668, 521, 7566, 16279, 1914, 4418, 471, 19, 280, 385, 14732, 31, 315, 315, 11926, 506, 7743, 603, 279, 8202, 3847, 4072, 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,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, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 471, 261, 2890, 18, 16279, 18, 5332, 67, 408, 67, 6400, 1435, 578, 365, 18, 16279, 18, 5332, 67, 71, 67, 31417, 1435, 3719, 30, 1002, 19893, 5471, 8201, 668, 521, 7566, 16279, 1914, 4418, 471, 19, 280, 385, 14732, 31, 315, 315, 11926, 506, 7743, 603, 279, 8202, 3847, 4072, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise IOError(_('Unknown backend %s') % uri.scheme)
raise IOError(_(u'Unknown backend %s') % uri.scheme)
def phonebook_open(uri): if isinstance(uri, basestring): uri = URI(basestring) # guess backend, if uri was not absolute (= no scheme was given) uri.absolutize() if uri.scheme is None: raise IOError(_('Couldn\'t find a backend for %s') % uri) try: backend = backendmanager.manager()[uri.scheme] except KeyError: raise IOError(_('Unknown backend %s') % uri.scheme) return backend.__phonebook_class__(uri)
7caf7af8620f36787fcc5d3a1634ba919cd8202c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/7caf7af8620f36787fcc5d3a1634ba919cd8202c/phonebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7353, 3618, 67, 3190, 12, 1650, 4672, 309, 1549, 12, 1650, 16, 10699, 4672, 2003, 273, 3699, 12, 18602, 371, 13, 468, 7274, 4221, 16, 309, 2003, 1703, 486, 4967, 261, 33, 1158, 4355, 1703, 864, 13, 2003, 18, 5113, 355, 322, 554, 1435, 309, 2003, 18, 9068, 353, 599, 30, 1002, 8340, 24899, 2668, 16342, 3730, 88, 1104, 279, 4221, 364, 738,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7353, 3618, 67, 3190, 12, 1650, 4672, 309, 1549, 12, 1650, 16, 10699, 4672, 2003, 273, 3699, 12, 18602, 371, 13, 468, 7274, 4221, 16, 309, 2003, 1703, 486, 4967, 261, 33, 1158, 4355, 1703, 864, 13, 2003, 18, 5113, 355, 322, 554, 1435, 309, 2003, 18, 9068, 353, 599, 30, 1002, 8340, 24899, 2668, 16342, 3730, 88, 1104, 279, 4221, 364, 738, 87, 6134, 738, 2003, 13, 775, 30, 4221, 273, 4221, 4181, 18, 4181, 1435, 63, 1650, 18, 9068, 65, 1335, 4999, 30, 1002, 8340, 24899, 12, 89, 11, 4874, 4221, 738, 87, 6134, 738, 2003, 18, 9068, 13, 327, 4221, 16186, 10540, 3618, 67, 1106, 972, 12, 1650, 13, 282, 2, -100, -100, -100, -100, -100 ]
check_u(type)
check_u(typ)
def setup_new(self, typ): """Construct a TabOrder. typ should be either ``channel`` or ``playlist``. """ check_u(type) self.type = typ self.tab_ids = [] self._setup_views() to_sort = self.id_to_tab.values() to_sort.sort(key=lambda x: x.get_title().lower()) for tab in to_sort: self.tab_ids.append(tab.id)
4ff9561aef7d2c3ecfcbfdee5a13e7db3db6eb70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/4ff9561aef7d2c3ecfcbfdee5a13e7db3db6eb70/tabs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2704, 12, 2890, 16, 3815, 4672, 3536, 7249, 279, 9483, 2448, 18, 225, 3815, 1410, 506, 3344, 12176, 4327, 10335, 578, 12176, 1601, 1098, 68, 8338, 3536, 866, 67, 89, 12, 12846, 13, 365, 18, 723, 273, 3815, 365, 18, 7032, 67, 2232, 273, 5378, 365, 6315, 8401, 67, 7061, 1435, 358, 67, 3804, 273, 365, 18, 350, 67, 869, 67, 7032, 18, 2372, 1435, 358, 67, 3804, 18, 3804, 12, 856, 33, 14661, 619, 30, 619, 18, 588, 67, 2649, 7675, 8167, 10756, 364, 3246, 316, 358, 67, 3804, 30, 365, 18, 7032, 67, 2232, 18, 6923, 12, 7032, 18, 350, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2704, 12, 2890, 16, 3815, 4672, 3536, 7249, 279, 9483, 2448, 18, 225, 3815, 1410, 506, 3344, 12176, 4327, 10335, 578, 12176, 1601, 1098, 68, 8338, 3536, 866, 67, 89, 12, 12846, 13, 365, 18, 723, 273, 3815, 365, 18, 7032, 67, 2232, 273, 5378, 365, 6315, 8401, 67, 7061, 1435, 358, 67, 3804, 273, 365, 18, 350, 67, 869, 67, 7032, 18, 2372, 1435, 358, 67, 3804, 18, 3804, 12, 856, 33, 14661, 619, 30, 619, 18, 588, 67, 2649, 7675, 8167, 10756, 364, 3246, 316, 358, 67, 3804, 30, 365, 18, 7032, 67, 2232, 18, 6923, 12, 7032, 18, 350, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
filename="/lsst/daues/ipac/add_ons/afwdata-ImSim/processed/imsim_85751839_R23_S11_C00_E000.fits" bbox = afwImage.BBox(afwImage.PointI(32,32), 512, 512) exposure = afwImage.ExposureF(filename, 0,bbox)
filename = os.path.join(eups.productDir("afwdata"), "ImSim", "postISR", "v85751839-fr", "s0", "R23", "S11", "C00.fits") bbox = afwImage.BBox(afwImage.PointI(0,0), 512, 512) exposure = afwImage.ExposureF(filename, 0, bbox)
def setUp(self): # filename = os.path.join(eups.productDir("afwdata"), "CFHT", "D4", "cal-53535-i-797722_1")
93a6d16a0e24fd320e54abd9714906b01459305b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6538/93a6d16a0e24fd320e54abd9714906b01459305b/crSplitStagesImSimTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 225, 1544, 273, 1140, 18, 803, 18, 5701, 12, 73, 18294, 18, 5896, 1621, 2932, 1727, 91, 892, 6, 3631, 315, 8955, 5062, 3113, 315, 40, 24, 3113, 315, 771, 17, 25, 4763, 4763, 17, 77, 17, 7235, 4700, 3787, 67, 21, 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, 0, 0, 0, 0, 0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18, 5896, 1621, 2932, 1727, 91, 892, 6, 3631, 315, 8955, 5062, 3113, 315, 40, 24, 3113, 315, 771, 17, 25, 4763, 4763, 17, 77, 17, 7235, 4700, 3787, 67, 21, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 'Received event "%s": %s' % (event_name, kwargs)
if event_name == "log": print "%(timestamp)s (%(level)d) %(sender)14s: %(msg)s" % kwargs else: print 'Received event "%s": %s' % (event_name, kwargs)
def _handle_event(self, event_name, **kwargs): print 'Received event "%s": %s' % (event_name, kwargs)
437ad0f5dc8e5b823c84dc0f15641647ef715f15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/437ad0f5dc8e5b823c84dc0f15641647ef715f15/engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2575, 12, 2890, 16, 871, 67, 529, 16, 2826, 4333, 4672, 1172, 296, 8872, 871, 2213, 87, 6877, 738, 87, 11, 738, 261, 2575, 67, 529, 16, 1205, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2575, 12, 2890, 16, 871, 67, 529, 16, 2826, 4333, 4672, 1172, 296, 8872, 871, 2213, 87, 6877, 738, 87, 11, 738, 261, 2575, 67, 529, 16, 1205, 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 ]
show(self.tokens)
def run(self): show(self.tokens) def finish(): print "FINISH", counts assert len(counts)==len(styles) from mwlib.parser import styleanalyzer states = styleanalyzer.compute_path(counts)
112a769acb27a6eab638352c64685baec986c67f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/112a769acb27a6eab638352c64685baec986c67f/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1652, 4076, 13332, 1172, 315, 23259, 3113, 6880, 1815, 562, 12, 8008, 13, 631, 1897, 12, 10218, 13, 225, 628, 14721, 2941, 18, 4288, 1930, 2154, 13647, 5493, 273, 2154, 13647, 18, 9200, 67, 803, 12, 8008, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1652, 4076, 13332, 1172, 315, 23259, 3113, 6880, 1815, 562, 12, 8008, 13, 631, 1897, 12, 10218, 13, 225, 628, 14721, 2941, 18, 4288, 1930, 2154, 13647, 5493, 273, 2154, 13647, 18, 9200, 67, 803, 12, 8008, 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 ]
gump.addText(50, yoffset + 3, self.submenus[actions + j].title, 0x480)
gump.addText(50, yoffset + 3, self.submenus[actions + j].title, enabbledhue)
def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return
0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 7291, 16, 833, 273, 5378, 4672, 309, 365, 18, 6528, 6738, 471, 486, 365, 18, 1893, 6738, 12, 14872, 16, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 22643, 30, 327, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 7291, 16, 833, 273, 5378, 4672, 309, 365, 18, 6528, 6738, 471, 486, 365, 18, 1893, 6738, 12, 14872, 16, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 22643, 30, 327, 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 ]
Context.__init__(self)
Context.__init__(self, prog = prog)
def __init__(self): """ Also sets the "_client" field for this instance to None. Each cli maintains a single active client. The "session" plugin is responsible for the loading of the client object. """ cmd.Cmd.__init__(self) Context.__init__(self) self.prompt = 'omero> ' self.interrupt_loop = False self.rv = 0 #: Return value to be returned self._stack = [] #: List of commands being processed self._client = None #: Single client for all activities self._plugin_paths = [OMEROCLI / "plugins"] #: Paths to be loaded; initially official plugins self._pluginsLoaded = CLI.PluginsLoaded()
36ca7331bf833f7348cf5f3b503618c5585e7c72 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/36ca7331bf833f7348cf5f3b503618c5585e7c72/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 8080, 1678, 326, 4192, 2625, 6, 652, 364, 333, 791, 358, 599, 18, 8315, 4942, 11566, 4167, 279, 2202, 2695, 1004, 18, 1021, 315, 3184, 6, 1909, 353, 14549, 364, 326, 7153, 434, 326, 1004, 733, 18, 3536, 1797, 18, 5931, 16186, 2738, 972, 12, 2890, 13, 1772, 16186, 2738, 972, 12, 2890, 16, 11243, 273, 11243, 13, 365, 18, 13325, 273, 296, 362, 2439, 34, 296, 365, 18, 31847, 67, 6498, 273, 1083, 365, 18, 4962, 273, 374, 7682, 23734, 2000, 460, 358, 506, 2106, 365, 6315, 3772, 273, 5378, 10792, 23734, 987, 434, 4364, 3832, 5204, 365, 6315, 2625, 273, 599, 1171, 23734, 10326, 1004, 364, 777, 17259, 365, 6315, 4094, 67, 4481, 273, 306, 1872, 13309, 7697, 342, 315, 8057, 11929, 23734, 16643, 358, 506, 4203, 31, 22458, 3397, 22354, 4799, 365, 6315, 8057, 8835, 273, 8276, 18, 9461, 8835, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 8080, 1678, 326, 4192, 2625, 6, 652, 364, 333, 791, 358, 599, 18, 8315, 4942, 11566, 4167, 279, 2202, 2695, 1004, 18, 1021, 315, 3184, 6, 1909, 353, 14549, 364, 326, 7153, 434, 326, 1004, 733, 18, 3536, 1797, 18, 5931, 16186, 2738, 972, 12, 2890, 13, 1772, 16186, 2738, 972, 12, 2890, 16, 11243, 273, 11243, 13, 365, 18, 13325, 273, 296, 362, 2439, 34, 296, 365, 18, 31847, 67, 6498, 273, 1083, 365, 18, 4962, 273, 374, 7682, 23734, 2000, 460, 358, 506, 2106, 365, 6315, 3772, 273, 5378, 10792, 23734, 987, 434, 4364, 3832, 5204, 365, 6315, 2625, 273, 599, 1171, 23734, 10326, 1004, 364, 777, 17259, 365, 2 ]
"before %s but was." % (last, m))
"before %s but was." % (last, migration))
def forwards_problems(pending, done, verbosity): """ Takes the list of linearised pending migrations, and the set of done ones, and returns the list of problems, if any. """ result = [] for last, migration in problems(reversed(pending), done): missing = [m for m in last.forwards_plan()[:-1] if m not in done] if verbosity: m = ", ".join(str(m) for m in missing) print (" ! Migration %s should not have been applied " "before %s but was." % (last, m)) result.append((last, missing)) return result
13fed4742881622fd1b775d2a00b739cdccf6abc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/13fed4742881622fd1b775d2a00b739cdccf6abc/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24578, 67, 29812, 12, 9561, 16, 2731, 16, 11561, 4672, 3536, 23004, 326, 666, 434, 9103, 5918, 4634, 9814, 16, 471, 326, 444, 434, 2731, 5945, 16, 471, 1135, 326, 666, 434, 9688, 16, 309, 1281, 18, 3536, 563, 273, 5378, 364, 1142, 16, 6333, 316, 9688, 12, 266, 7548, 12, 9561, 3631, 2731, 4672, 3315, 273, 306, 81, 364, 312, 316, 1142, 18, 1884, 6397, 67, 7088, 1435, 10531, 17, 21, 65, 309, 312, 486, 316, 2731, 65, 309, 11561, 30, 312, 273, 3104, 3552, 5701, 12, 701, 12, 81, 13, 364, 312, 316, 3315, 13, 1172, 7566, 401, 15309, 738, 87, 1410, 486, 1240, 2118, 6754, 315, 315, 5771, 738, 87, 1496, 1703, 1199, 738, 261, 2722, 16, 6333, 3719, 563, 18, 6923, 12443, 2722, 16, 3315, 3719, 327, 563, 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, 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 11561, 4672, 3536, 23004, 326, 666, 434, 9103, 5918, 4634, 9814, 16, 471, 326, 444, 434, 2731, 5945, 16, 471, 1135, 326, 666, 434, 9688, 16, 309, 1281, 18, 3536, 563, 273, 5378, 364, 1142, 16, 6333, 316, 9688, 12, 266, 7548, 12, 9561, 3631, 2731, 4672, 3315, 273, 306, 81, 364, 312, 316, 1142, 18, 1884, 6397, 67, 7088, 1435, 10531, 17, 21, 65, 309, 312, 486, 316, 2731, 65, 309, 11561, 30, 312, 273, 3104, 3552, 5701, 12, 701, 12, 81, 13, 364, 312, 316, 3315, 13, 1172, 7566, 401, 15309, 738, 87, 1410, 486, 1240, 2118, 6754, 315, 315, 5771, 738, 87, 1496, 1703, 1199, 738, 261, 2 ]
return s, None, None
return s, None, None, None
def _split(s): # Return a triple: prefix, name, suffix # - prefix is text that can be used literally in the result (may be '') # - name is a referenced name, or None # - suffix is trailling text that may contain additional references # (may be '' or None) if "$" in s: i = s.find("$") c = s[i+1:i+2] if c == "": raise ZConfig.SubstitutionSyntaxError( "illegal lone '$' at end of source") if c == "$": return s[:i+1], None, s[i+2:] prefix = s[:i] if c == "{": m = _name_match(s, i + 2) if not m: raise ZConfig.SubstitutionSyntaxError( "'${' not followed by name") name = m.group(0) i = m.end() + 1 if not s.startswith("}", i - 1): raise ZConfig.SubstitutionSyntaxError( "'${%s' not followed by '}'" % name) else: m = _name_match(s, i+1) if not m: raise ZConfig.SubstitutionSyntaxError( "'$' not followed by '$' or name") name = m.group(0) i = m.end() return prefix, name.lower(), name, s[i:] else: return s, None, None
15bf6994530c17c23f1bf769b237622bf9d50492 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9785/15bf6994530c17c23f1bf769b237622bf9d50492/substitution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 12, 87, 4672, 468, 2000, 279, 14543, 30, 225, 1633, 16, 508, 16, 3758, 468, 300, 1633, 353, 977, 716, 848, 506, 1399, 328, 2165, 1230, 316, 326, 563, 261, 24877, 506, 28707, 468, 300, 508, 353, 279, 8042, 508, 16, 578, 599, 468, 300, 3758, 353, 1284, 5789, 977, 716, 2026, 912, 3312, 5351, 468, 282, 261, 24877, 506, 875, 578, 599, 13, 309, 24568, 316, 272, 30, 277, 273, 272, 18, 4720, 2932, 8, 7923, 276, 273, 272, 63, 77, 15, 21, 30, 77, 15, 22, 65, 309, 276, 422, 1408, 30, 1002, 2285, 809, 18, 23798, 22510, 12, 315, 31751, 328, 476, 11874, 622, 679, 434, 1084, 7923, 309, 276, 422, 4662, 6877, 327, 272, 10531, 77, 15, 21, 6487, 599, 16, 272, 63, 77, 15, 22, 26894, 1633, 273, 272, 10531, 77, 65, 309, 276, 422, 4144, 6877, 312, 273, 389, 529, 67, 1916, 12, 87, 16, 277, 397, 576, 13, 309, 486, 312, 30, 1002, 2285, 809, 18, 23798, 22510, 12, 2491, 18498, 11, 486, 10860, 635, 508, 7923, 508, 273, 312, 18, 1655, 12, 20, 13, 277, 273, 312, 18, 409, 1435, 397, 404, 309, 486, 272, 18, 17514, 1918, 2932, 1532, 16, 277, 300, 404, 4672, 1002, 2285, 809, 18, 23798, 22510, 12, 2491, 18498, 9, 87, 11, 486, 10860, 635, 9571, 6, 738, 508, 13, 469, 30, 312, 273, 389, 529, 67, 1916, 12, 87, 16, 277, 15, 21, 13, 309, 486, 312, 30, 1002, 2285, 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, 4939, 12, 87, 4672, 468, 2000, 279, 14543, 30, 225, 1633, 16, 508, 16, 3758, 468, 300, 1633, 353, 977, 716, 848, 506, 1399, 328, 2165, 1230, 316, 326, 563, 261, 24877, 506, 28707, 468, 300, 508, 353, 279, 8042, 508, 16, 578, 599, 468, 300, 3758, 353, 1284, 5789, 977, 716, 2026, 912, 3312, 5351, 468, 282, 261, 24877, 506, 875, 578, 599, 13, 309, 24568, 316, 272, 30, 277, 273, 272, 18, 4720, 2932, 8, 7923, 276, 273, 272, 63, 77, 15, 21, 30, 77, 15, 22, 65, 309, 276, 422, 1408, 30, 1002, 2285, 809, 18, 23798, 22510, 12, 315, 31751, 328, 476, 11874, 622, 679, 434, 1084, 7923, 309, 276, 422, 4662, 6877, 2 ]
return _readmodule(module, path) def _readmodule(module, path, inpackage=None): '''Do the hard work for readmodule[_ex].'''
def readmodule_ex(module, path=[]): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module. If INPACKAGE is true, it must be the dotted name of the package in which we are searching for a submodule, and then PATH must be the package search path; otherwise, we are searching for a top-level module, and PATH is combined with sys.path. ''' return _readmodule(module, path)
7d4cac5de777aad61727f6a068b3c392bb76f3e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/7d4cac5de777aad61727f6a068b3c392bb76f3e3/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 33, 8526, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 18, 225, 971, 2120, 19077, 353, 638, 16, 518, 1297, 506, 326, 20965, 508, 434, 326, 2181, 316, 1492, 732, 854, 15300, 364, 279, 27314, 16, 471, 1508, 7767, 1297, 506, 326, 2181, 1623, 589, 31, 3541, 16, 732, 854, 15300, 364, 279, 1760, 17, 2815, 1605, 16, 471, 7767, 353, 8224, 598, 2589, 18, 803, 18, 9163, 327, 389, 896, 2978, 12, 2978, 16, 589, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 33, 8526, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 18, 225, 971, 2120, 19077, 353, 638, 16, 518, 1297, 506, 326, 20965, 508, 434, 326, 2181, 316, 1492, 732, 854, 15300, 364, 279, 27314, 16, 471, 1508, 7767, 1297, 506, 326, 2181, 1623, 589, 31, 3541, 16, 732, 854, 15300, 364, 279, 1760, 17, 2815, 1605, 16, 471, 7767, 353, 8224, 598, 2589, 18, 803, 18, 9163, 327, 389, 896, 2978, 12, 2978, 16, 2 ]
raise SMTPDataError('data transmission error: %s' % code)
raise SMTPDataError(code, resp)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2492, 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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 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2492, 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 ]
cur_line.append(chunks.pop(0))
cur_line.append(reversed_chunks.pop())
def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int)
813c5d3fb234531a2f4549fcc4952768bddda0f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/813c5d3fb234531a2f4549fcc4952768bddda0f8/textwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 5748, 67, 1095, 12, 2890, 16, 6055, 16, 662, 67, 1369, 16, 662, 67, 1897, 16, 1835, 4672, 3536, 67, 4110, 67, 5748, 67, 1095, 12, 14691, 294, 306, 1080, 6487, 662, 67, 1369, 294, 306, 1080, 6487, 662, 67, 1897, 294, 509, 16, 1835, 294, 509, 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,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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 5748, 67, 1095, 12, 2890, 16, 6055, 16, 662, 67, 1369, 16, 662, 67, 1897, 16, 1835, 4672, 3536, 67, 4110, 67, 5748, 67, 1095, 12, 14691, 294, 306, 1080, 6487, 662, 67, 1369, 294, 306, 1080, 6487, 662, 67, 1897, 294, 509, 16, 1835, 294, 509, 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 ]
def paramikoConnect(hostname, username, password, timeout): """Connects to 'hostname' and returns a Paramiko transport object to use in further communications"""
def paramikoConnect(host, username, password, timeout): """Connects to 'host' and returns a Paramiko transport object to use in further communications"""
def paramikoConnect(hostname, username, password, timeout): """Connects to 'hostname' and returns a Paramiko transport object to use in further communications""" # Uncomment this line to turn on Paramiko debugging (good for troubleshooting why some servers report connection failures) #paramiko.util.log_to_file('paramiko.log') ssh = paramiko.SSHClient() try: ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(hostname, port=22, username=username, password=password, timeout=timeout) except Exception, detail: # Connecting failed (for whatever reason) ssh = str(detail) return ssh
6f69307ce1383825280bcd450de5b2253a841bcf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/6f69307ce1383825280bcd450de5b2253a841bcf/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 27113, 5215, 12, 2564, 16, 2718, 16, 2201, 16, 2021, 4672, 3536, 21500, 358, 296, 2564, 11, 471, 1135, 279, 3014, 27113, 4736, 733, 358, 999, 316, 9271, 18279, 87, 8395, 468, 1351, 3469, 333, 980, 358, 7005, 603, 3014, 27113, 10450, 261, 19747, 364, 23432, 440, 4607, 1632, 310, 11598, 2690, 7084, 2605, 1459, 11720, 13, 468, 891, 27113, 18, 1367, 18, 1330, 67, 869, 67, 768, 2668, 891, 27113, 18, 1330, 6134, 7056, 273, 579, 27113, 18, 12559, 1227, 1435, 775, 30, 7056, 18, 542, 67, 7337, 67, 2564, 67, 856, 67, 5086, 12, 891, 27113, 18, 4965, 986, 2582, 10756, 7056, 18, 3612, 12, 10358, 16, 1756, 33, 3787, 16, 2718, 33, 5053, 16, 2201, 33, 3664, 16, 2021, 33, 4538, 13, 1335, 1185, 16, 7664, 30, 468, 8289, 310, 2535, 261, 1884, 15098, 3971, 13, 7056, 273, 609, 12, 8992, 13, 327, 7056, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 27113, 5215, 12, 2564, 16, 2718, 16, 2201, 16, 2021, 4672, 3536, 21500, 358, 296, 2564, 11, 471, 1135, 279, 3014, 27113, 4736, 733, 358, 999, 316, 9271, 18279, 87, 8395, 468, 1351, 3469, 333, 980, 358, 7005, 603, 3014, 27113, 10450, 261, 19747, 364, 23432, 440, 4607, 1632, 310, 11598, 2690, 7084, 2605, 1459, 11720, 13, 468, 891, 27113, 18, 1367, 18, 1330, 67, 869, 67, 768, 2668, 891, 27113, 18, 1330, 6134, 7056, 273, 579, 27113, 18, 12559, 1227, 1435, 775, 30, 7056, 18, 542, 67, 7337, 67, 2564, 67, 856, 67, 5086, 12, 891, 27113, 18, 4965, 986, 2582, 10756, 7056, 18, 3612, 12, 10358, 16, 1756, 33, 3787, 16, 2718, 33, 5053, 16, 2 ]
if p not in binaries: binaries.append(p)
def doop_source(self, pkg):
8bd331e0372890c5e7a61dfbb4f1be9ff009ad52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/8bd331e0372890c5e7a61dfbb4f1be9ff009ad52/britney.py
[ 1, 8585, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cmap = get_cmap(options['cmap'])
if options.has_key('cmap'): cmap = get_cmap(options['cmap']) elif fill or contours is None: cmap = get_cmap('gray') else: if isinstance(contours, (int, Integer)): cmap = get_cmap([(i,i,i) for i in xsrange(0,1,1/contours)]) else: l = Integer(len(contours)) cmap = get_cmap([(i,i,i) for i in xsrange(0,1,1/l)])
def _render_on_subplot(self, subplot): """ TESTS:
f9c563d3af4fbbd6cb54efabeb25dc77482062db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f9c563d3af4fbbd6cb54efabeb25dc77482062db/contour_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 3536, 22130, 55, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 3536, 22130, 55, 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 ]
bad = (_("%s admin authentication failed.") % mlist.real_name)
bad = _("%(realname)s admin authentication failed.")
def main(): doc = htmlformat.HeadlessDocument() parts = Utils.GetPathPieces() if not parts: error_page(_('Invalid options to CGI script')) return listname = string.lower(parts[0]) try: mlist = MailList.MailList(listname, lock=0) except Errors.MMListError, e: error_page(_('No such list <em>%s</em>') % listname) syslog('error', 'roster: no such list "%s": %s' % (listname, e)) return form = cgi.FieldStorage() # messages in form should go in selected language (if any...) if form.has_key('language'): os.environ['LANG'] = lang = form['language'].value else: os.environ['LANG'] = lang = mlist.preferred_language bad = "" # These nested conditionals constituted a cascading authentication # check, yielding a # jcrey: # Already in roster page, an user may desire to see roster page # in a different language in a list with privacy access try: FromURL = os.environ['HTTP_REFERER'] except KeyError: FromURL = '' if not mlist.private_roster or \ mlist.GetScriptURL('roster', absolute=1) == FromURL: # No privacy. bad = "" else: auth_req = (_("%s subscriber list requires authentication.") % mlist.real_name) if not form.has_key("roster-pw"): bad = auth_req else: pw = form['roster-pw'].value # Just the admin password is sufficient - check it early. if not mlist.ValidAdminPassword(pw): if not form.has_key('roster-email'): # No admin password and no user id, nogo. bad = auth_req else: id = form['roster-email'].value if mlist.private_roster == 1: # Private list - members visible. try: mlist.ConfirmUserPassword(id, pw) except (Errors.MMBadUserError, Errors.MMBadPasswordError, Errors.MMNotAMemberError): bad = (_("%s subscriber authentication failed.") % mlist.real_name) else: # Anonymous list - admin-only visible # - and we already tried admin password, above. bad = (_("%s admin authentication failed.") % mlist.real_name) if bad: doc = error_page_doc(bad) doc.AddItem(mlist.GetMailmanFooter()) print doc.Format() sys.exit(0) replacements = mlist.GetAllReplacements(lang) replacements['<mm-displang-box>'] = mlist.FormatButton( 'displang-button', text = _('See this page in')) replacements['<mm-lang-form-start>'] = mlist.FormatFormStart('roster') doc.AddItem(mlist.ParseTags('roster.html', replacements, lang)) print doc.Format()
29a3cd601994f90d3f470ab38e8b391cda590e41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/29a3cd601994f90d3f470ab38e8b391cda590e41/roster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 997, 273, 1729, 2139, 18, 1414, 2656, 2519, 1435, 225, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 309, 486, 2140, 30, 555, 67, 2433, 24899, 2668, 1941, 702, 358, 385, 13797, 2728, 26112, 327, 225, 666, 529, 273, 533, 18, 8167, 12, 6019, 63, 20, 5717, 775, 30, 312, 1098, 273, 11542, 682, 18, 6759, 682, 12, 1098, 529, 16, 2176, 33, 20, 13, 1335, 9372, 18, 8206, 682, 668, 16, 425, 30, 555, 67, 2433, 24899, 2668, 2279, 4123, 666, 411, 351, 9822, 87, 1757, 351, 1870, 13, 738, 666, 529, 13, 16718, 2668, 1636, 2187, 296, 303, 8190, 30, 1158, 4123, 666, 2213, 87, 6877, 738, 87, 11, 738, 261, 1098, 529, 16, 425, 3719, 327, 225, 646, 273, 276, 10052, 18, 974, 3245, 1435, 225, 468, 2743, 316, 646, 1410, 1960, 316, 3170, 2653, 261, 430, 1281, 21846, 309, 646, 18, 5332, 67, 856, 2668, 4923, 11, 4672, 1140, 18, 28684, 3292, 10571, 3546, 273, 3303, 273, 646, 3292, 4923, 29489, 1132, 469, 30, 1140, 18, 28684, 3292, 10571, 3546, 273, 3303, 273, 312, 1098, 18, 23616, 67, 4923, 225, 5570, 273, 1408, 468, 8646, 4764, 2269, 1031, 29152, 4817, 279, 29502, 14968, 5107, 468, 866, 16, 31009, 279, 468, 525, 1793, 93, 30, 468, 17009, 316, 721, 8190, 1363, 16, 392, 729, 2026, 2832, 577, 358, 2621, 721, 8190, 1363, 468, 316, 279, 3775, 2653, 316, 279, 666, 598, 19013, 2006, 225, 775, 30, 6338, 1785, 273, 1140, 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, 997, 273, 1729, 2139, 18, 1414, 2656, 2519, 1435, 225, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 309, 486, 2140, 30, 555, 67, 2433, 24899, 2668, 1941, 702, 358, 385, 13797, 2728, 26112, 327, 225, 666, 529, 273, 533, 18, 8167, 12, 6019, 63, 20, 5717, 775, 30, 312, 1098, 273, 11542, 682, 18, 6759, 682, 12, 1098, 529, 16, 2176, 33, 20, 13, 1335, 9372, 18, 8206, 682, 668, 16, 425, 30, 555, 67, 2433, 24899, 2668, 2279, 4123, 666, 411, 351, 9822, 87, 1757, 351, 1870, 13, 738, 666, 529, 13, 16718, 2668, 1636, 2187, 296, 303, 8190, 30, 1158, 4123, 666, 2213, 87, 6877, 738, 87, 11, 738, 261, 1098, 529, 2 ]
To prevent this, _check_missing will abort if there are missing files. The force option will let the user skip the check if he knows it is safe.
To prevent this, this function will abort if there are uncommitted changes. """
def _check_missing(ui, repo, missing, force=False): """Abort if there is the chance of having problems with name-mangling fs In a name mangling filesystem (e.g. a case insensitive one) dirstate.walk() can yield filenames different from the ones stored in the dirstate. This already confuses the status and add commands, but with purge this may cause data loss. To prevent this, _check_missing will abort if there are missing files. The force option will let the user skip the check if he knows it is safe. Even with the force option this function will check if any of the missing files is still available in the working dir: if so there may be some problem with the underlying filesystem, so it aborts unconditionally.""" found = [f for f in missing if util.lexists(repo.wjoin(f))] if found: if not ui.quiet: ui.warn(_("The following tracked files weren't listed by the " "filesystem, but could still be found:\n")) for f in found: ui.warn("%s\n" % f) if util.checkfolding(repo.path): ui.warn(_("This is probably due to a case-insensitive " "filesystem\n")) raise util.Abort(_("purging on name mangling filesystems is not " "yet fully supported")) if missing and not force: raise util.Abort(_("there are missing files in the working dir and " "purge still has problems with them due to name " "mangling filesystems. " "Use --force if you know what you are doing"))
bb6187763e086d349115546960664f7f65e54e0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/bb6187763e086d349115546960664f7f65e54e0a/purge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 7337, 12, 4881, 16, 3538, 16, 3315, 16, 2944, 33, 8381, 4672, 3536, 13572, 309, 1915, 353, 326, 17920, 434, 7999, 9688, 598, 508, 17, 81, 539, 2456, 2662, 225, 657, 279, 508, 29674, 2456, 6496, 261, 73, 18, 75, 18, 279, 648, 17904, 1245, 13, 302, 920, 340, 18, 11348, 1435, 848, 2824, 9066, 3775, 628, 326, 5945, 4041, 316, 326, 302, 920, 340, 18, 1220, 1818, 2195, 6117, 326, 1267, 471, 527, 4364, 16, 1496, 598, 11668, 333, 2026, 4620, 501, 8324, 18, 225, 2974, 5309, 333, 16, 333, 445, 903, 6263, 309, 1915, 854, 12704, 7948, 3478, 18, 3536, 225, 25067, 598, 326, 2944, 1456, 333, 445, 903, 866, 309, 1281, 434, 326, 3315, 1390, 353, 4859, 2319, 316, 326, 5960, 1577, 30, 309, 1427, 1915, 2026, 506, 2690, 6199, 598, 326, 6808, 6496, 16, 1427, 518, 6263, 87, 6301, 1434, 22913, 12123, 225, 1392, 273, 306, 74, 364, 284, 316, 3315, 309, 1709, 18, 4149, 1486, 12, 7422, 18, 91, 5701, 12, 74, 3719, 65, 225, 309, 1392, 30, 309, 486, 5915, 18, 20380, 30, 5915, 18, 8935, 24899, 2932, 1986, 3751, 15200, 1390, 22646, 275, 1404, 12889, 635, 326, 315, 315, 17846, 16, 1496, 3377, 4859, 506, 1392, 5581, 82, 6, 3719, 364, 284, 316, 1392, 30, 5915, 18, 8935, 27188, 87, 64, 82, 6, 738, 284, 13, 309, 1709, 18, 1893, 16007, 310, 12, 7422, 18, 803, 4672, 5915, 18, 8935, 24899, 2932, 2503, 353, 8656, 6541, 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, 1893, 67, 7337, 12, 4881, 16, 3538, 16, 3315, 16, 2944, 33, 8381, 4672, 3536, 13572, 309, 1915, 353, 326, 17920, 434, 7999, 9688, 598, 508, 17, 81, 539, 2456, 2662, 225, 657, 279, 508, 29674, 2456, 6496, 261, 73, 18, 75, 18, 279, 648, 17904, 1245, 13, 302, 920, 340, 18, 11348, 1435, 848, 2824, 9066, 3775, 628, 326, 5945, 4041, 316, 326, 302, 920, 340, 18, 1220, 1818, 2195, 6117, 326, 1267, 471, 527, 4364, 16, 1496, 598, 11668, 333, 2026, 4620, 501, 8324, 18, 225, 2974, 5309, 333, 16, 333, 445, 903, 6263, 309, 1915, 854, 12704, 7948, 3478, 18, 3536, 225, 25067, 598, 326, 2944, 1456, 333, 445, 903, 866, 309, 1281, 434, 2 ]
builder.FOR__setCondition(node, (tokenizer.peek() == SEMICOLON) ? null : Expression(tokenizer, compilerContext))
if tokenizer.peek() == SEMICOLON: builder.FOR__setCondition(node, None) else: builder.FOR__setCondition(node, Expression(tokenizer, compilerContext))
def Statement(tokenizer, compilerContext): """Parses a Statement.""" tokenType = tokenizer.get(True) builder = compilerContext.builder # Cases for statements ending in a right curly return early, avoiding the # common semicolon insertion magic after this switch. if tokenType == FUNCTION: # DECLARED_FORM extends funDecls of compilerContext, STATEMENT_FORM doesn'tokenizer. if len(compilerContext.stmtStack) > 1: kind = STATEMENT_FORM else: kind = DECLARED_FORM return FunctionDefinition(tokenizer, compilerContext, True, kind) elif tokenType == LEFT_CURLY: node = Statements(tokenizer, compilerContext) tokenizer.mustMatch(RIGHT_CURLY) return node elif tokenType == IF: node = builder.IF__build(tokenizer) builder.IF__setCondition(node, ParenExpression(tokenizer, compilerContext)) compilerContext.stmtStack.push(node) builder.IF__setThenPart(node, Statement(tokenizer, compilerContext)) if tokenizer.match(ELSE): builder.IF__setElsePart(node, Statement(tokenizer, compilerContext)) compilerContext.stmtStack.pop() builder.IF__finish(node) return node elif tokenType == SWITCH: # This allows CASEs after a DEFAULT, which is in the standard. node = builder.SWITCH__build(tokenizer) builder.SWITCH__setDiscriminant(node, ParenExpression(tokenizer, compilerContext)) compilerContext.stmtStack.push(node) tokenizer.mustMatch(LEFT_CURLY) tokenType = tokenizer.get() while tokenType != RIGHT_CURLY: if tokenType == DEFAULT: if node.defaultIndex >= 0: raise SyntaxError("More than one switch default", tokenizer) childNode = builder.DEFAULT__build(tokenizer) builder.SWITCH__setDefaultIndex(node, len(node.cases)) tokenizer.mustMatch(COLON) builder.DEFAULT__initializeStatements(childNode, tokenizer) while True: tokenType=tokenizer.peek(True) if tokenType == CASE or tokenType == DEFAULT or tokenType == RIGHT_CURLY: break builder.DEFAULT__addStatement(childNode, Statement(tokenizer, compilerContext)) builder.DEFAULT__finish(childNode) break elif tokenType == CASE: childNode = builder.CASE__build(tokenizer) builder.CASE__setLabel(childNode, Expression(tokenizer, compilerContext, COLON)) tokenizer.mustMatch(COLON) builder.CASE__initializeStatements(childNode, tokenizer) while True: tokenType=tokenizer.peek(True) if tokenType == CASE or tokenType == DEFAULT or tokenType == RIGHT_CURLY: break builder.CASE__addStatement(childNode, Statement(tokenizer, compilerContext)) builder.CASE__finish(childNode) break else: raise SyntaxError("Invalid switch case", tokenizer) builder.SWITCH__addCase(node, childNode) tokenType = tokenizer.get() compilerContext.stmtStack.pop() builder.SWITCH__finish(node) return node elif tokenType == FOR: node = builder.FOR__build(tokenizer) if tokenizer.match(IDENTIFIER) and tokenizer.token.value == "each": builder.FOR__rebuildForEach(node) tokenizer.mustMatch(LEFT_PAREN) tokenType = tokenizer.peek() if tokenType != SEMICOLON: compilerContext.inForLoopInit = True if tokenType == VAR or tokenType == CONST: tokenizer.get() childNode = Variables(tokenizer, compilerContext) elif tokenType == LET: tokenizer.get() if tokenizer.peek() == LEFT_PAREN: childNode = LetBlock(tokenizer, compilerContext, False) else: # Let in for head, we need to add an implicit block # around the rest of the for. forBlock = builder.BLOCK__build(tokenizer, compilerContext.blockId) compilerContext.blockId += 1 compilerContext.stmtStack.push(forBlock) childNode = Variables(tokenizer, compilerContext, forBlock) else: childNode = Expression(tokenizer, compilerContext) compilerContext.inForLoopInit = False if childNode and tokenizer.match(IN): builder.FOR__rebuildForIn(node) builder.FOR__setObject(node, Expression(tokenizer, compilerContext), forBlock) if childNode.type == VAR or childNode.type == LET: if len(childNode) != 1: raise SyntaxError("Invalid for..in left-hand side", tokenizer) builder.FOR__setIterator(node, childNode[0], childNode, forBlock) else: builder.FOR__setIterator(node, childNode, null, forBlock) else: builder.FOR__setSetup(node, childNode) tokenizer.mustMatch(SEMICOLON) if node.isEach: raise SyntaxError("Invalid for each..in loop") builder.FOR__setCondition(node, (tokenizer.peek() == SEMICOLON) ? null : Expression(tokenizer, compilerContext)) tokenizer.mustMatch(SEMICOLON) builder.FOR__setUpdate(node, (tokenizer.peek() == RIGHT_PAREN) ? null : Expression(tokenizer, compilerContext)) tokenizer.mustMatch(RIGHT_PAREN) builder.FOR__setBody(node, nest(tokenizer, compilerContext, node, Statement)) if forBlock: builder.BLOCK__finish(forBlock) compilerContext.stmtStack.pop() builder.FOR__finish(node) return node elif tokenType == WHILE: node = builder.WHILE__build(tokenizer) builder.WHILE__setCondition(node, ParenExpression(tokenizer, compilerContext)) builder.WHILE__setBody(node, nest(tokenizer, compilerContext, node, Statement)) builder.WHILE__finish(node) return node elif tokenType == DO: node = builder.DO__build(tokenizer) builder.DO__setBody(node, nest(tokenizer, compilerContext, node, Statement, WHILE)) builder.DO__setCondition(node, ParenExpression(tokenizer, compilerContext)) builder.DO__finish(node) if not compilerContext.ecmaStrictMode: # <script language="JavaScript"> (without version hints) may need # automatic semicolon insertion without a newline after do-while. # See http://bugzilla.mozilla.org/show_bug.cgi?id=238945. tokenizer.match(SEMICOLON) return node # NO RETURN elif tokenType == BREAK or tokenType == CONTINUE: if tokenType == BREAK: node = builder.BREAK__build(tokenizer) else: node = builder.CONTINUE__build(tokenizer) if tokenizer.peekOnSameLine() == IDENTIFIER: tokenizer.get() if tokenType == BREAK: builder.BREAK__setLabel(node, tokenizer.token.value) else: builder.CONTINUE__setLabel(node, tokenizer.token.value) ss = compilerContext.stmtStack i = len(ss) label = node.label if label: while True: i -= 1 if i < 0: raise SyntaxError("Label not found", tokenizer) if ss[i].label == label: break # # Both break and continue to label need to be handled specially # within a labeled loop, so that they target that loop. If not in # a loop, then break targets its labeled statement. Labels can be # nested so we skip all labels immediately enclosing the nearest # non-label statement. # while i < len(ss) - 1 and ss[i+1].type == LABEL: i += 1 if i < len(ss) - 1 and ss[i+1].isLoop: i += 1 elif tokenType == CONTINUE: raise SyntaxError("Invalid continue", tokenizer) else: while True: i -= 1 if i < 0: raise SyntaxError("Invalid " + ((tokenType == BREAK) ? "break" : "continue")) if ss[i].isLoop or (tokenType == BREAK and ss[i].type == SWITCH): break if tokenType == BREAK: builder.BREAK__setTarget(node, ss[i]) builder.BREAK__finish(node) else: builder.CONTINUE__setTarget(node, ss[i]) builder.CONTINUE__finish(node) # NO RETURN elif tokenType == TRY: node = builder.TRY__build(tokenizer) builder.TRY__setTryBlock(node, Block(tokenizer, compilerContext)) while tokenizer.match(CATCH): childNode = builder.CATCH__build(tokenizer) tokenizer.mustMatch(LEFT_PAREN) nextTokenType = tokenizer.get() if nextTokenType == LEFT_BRACKET or nextTokenType == LEFT_CURLY: # Destructured catch identifiers. tokenizer.unget() builder.CATCH__setVarName(childNode, DestructuringExpression(tokenizer, compilerContext, True)) elif nextTokenType == IDENTIFIER: builder.CATCH__setVarName(childNode, tokenizer.token.value) else: raise SyntaxError("Missing identifier in catch", tokenizer) if tokenizer.match(IF): if compilerContext.ecma3OnlyMode: raise SyntaxError("Illegal catch guard", tokenizer) if len(node.catchClauses) and not node.catchClauses.top().guard: raise SyntaxError("Guarded catch after unguarded", tokenizer) builder.CATCH__setGuard(childNode, Expression(tokenizer, compilerContext)) else: builder.CATCH__setGuard(childNode, null) tokenizer.mustMatch(RIGHT_PAREN) builder.CATCH__setBlock(childNode, Block(tokenizer, compilerContext)) builder.CATCH__finish(childNode) builder.TRY__addCatch(node, childNode) builder.TRY__finishCatches(node) if tokenizer.match(FINALLY): builder.TRY__setFinallyBlock(node, Block(tokenizer, compilerContext)) if not len(node.catchClauses) and not node.finallyBlock: raise SyntaxError("Invalid try statement", tokenizer) builder.TRY__finish(node) return node elif tokenType == CATCH or tokenType == FINALLY: raise SyntaxError(tokens[tokenType] + " without preceding try") elif tokenType == THROW: node = builder.THROW__build(tokenizer) builder.THROW__setException(node, Expression(tokenizer, compilerContext)) builder.THROW__finish(node) # NO RETURN elif tokenType == RETURN: node = returnOrYield(tokenizer, compilerContext) # NO RETURN elif tokenType == WITH: node = builder.WITH__build(tokenizer) builder.WITH__setObject(node, ParenExpression(tokenizer, compilerContext)) builder.WITH__setBody(node, nest(tokenizer, compilerContext, node, Statement)) builder.WITH__finish(node) return node elif tokenType == VAR or tokenType == CONST: node = Variables(tokenizer, compilerContext) # NO RETURN elif tokenType == LET: if tokenizer.peek() == LEFT_PAREN: node = LetBlock(tokenizer, compilerContext, True) else node = Variables(tokenizer, compilerContext) # NO RETURN elif tokenType == DEBUGGER: node = builder.DEBUGGER__build(tokenizer) # NO RETURN elif tokenType == NEWLINE or tokenType == SEMICOLON: node = builder.SEMICOLON__build(tokenizer) builder.SEMICOLON__setExpression(node, null) builder.SEMICOLON__finish(tokenizer) return node else: if tokenType == IDENTIFIER: tokenType = tokenizer.peek() # Labeled statement. if tokenType == COLON: label = tokenizer.token.value ss = compilerContext.stmtStack i = len(ss)-1 while i >= 0: if ss[i].label == label: raise SyntaxError("Duplicate label") i -= 1 tokenizer.get() node = builder.LABEL__build(tokenizer) builder.LABEL__setLabel(node, label) builder.LABEL__setStatement(node, nest(tokenizer, compilerContext, node, Statement)) builder.LABEL__finish(node) return node # Expression statement. # We unget the current token to parse the expression as a whole. node = builder.SEMICOLON__build(tokenizer) tokenizer.unget() builder.SEMICOLON__setExpression(node, Expression(tokenizer, compilerContext)) node.end = node.expression.end builder.SEMICOLON__finish(node) # NO RETURN MagicalSemicolon(tokenizer) return node
670da102d472903ae06b498219cfe183a84ebd84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/670da102d472903ae06b498219cfe183a84ebd84/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8056, 12, 2316, 1824, 16, 5274, 1042, 4672, 3536, 6656, 279, 8056, 12123, 225, 22302, 273, 10123, 18, 588, 12, 5510, 13, 2089, 273, 5274, 1042, 18, 9574, 225, 468, 385, 3304, 364, 6317, 11463, 316, 279, 2145, 29270, 327, 11646, 16, 4543, 310, 326, 468, 2975, 23682, 12626, 8146, 1839, 333, 1620, 18, 225, 309, 22302, 422, 13690, 30, 468, 2030, 15961, 5879, 67, 4983, 3231, 9831, 1799, 3251, 434, 5274, 1042, 16, 7442, 3212, 67, 4983, 3302, 1404, 969, 1824, 18, 309, 562, 12, 9576, 1042, 18, 10589, 2624, 13, 405, 404, 30, 3846, 273, 7442, 3212, 67, 4983, 469, 30, 3846, 273, 2030, 15961, 5879, 67, 4983, 225, 327, 4284, 1852, 12, 2316, 1824, 16, 5274, 1042, 16, 1053, 16, 3846, 13, 282, 1327, 22302, 422, 9686, 67, 26314, 30, 756, 273, 28554, 12, 2316, 1824, 16, 5274, 1042, 13, 10123, 18, 11926, 2060, 12, 11847, 67, 26314, 13, 225, 327, 756, 282, 1327, 22302, 422, 11083, 30, 756, 273, 2089, 18, 5501, 972, 3510, 12, 2316, 1824, 13, 2089, 18, 5501, 972, 542, 3418, 12, 2159, 16, 453, 7892, 2300, 12, 2316, 1824, 16, 5274, 1042, 3719, 5274, 1042, 18, 10589, 2624, 18, 6206, 12, 2159, 13, 2089, 18, 5501, 972, 542, 20112, 1988, 12, 2159, 16, 8056, 12, 2316, 1824, 16, 5274, 1042, 3719, 225, 309, 10123, 18, 1916, 12, 2247, 1090, 4672, 2089, 18, 5501, 972, 542, 12427, 1988, 12, 2159, 16, 8056, 12, 2316, 1824, 16, 5274, 1042, 3719, 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, 8056, 12, 2316, 1824, 16, 5274, 1042, 4672, 3536, 6656, 279, 8056, 12123, 225, 22302, 273, 10123, 18, 588, 12, 5510, 13, 2089, 273, 5274, 1042, 18, 9574, 225, 468, 385, 3304, 364, 6317, 11463, 316, 279, 2145, 29270, 327, 11646, 16, 4543, 310, 326, 468, 2975, 23682, 12626, 8146, 1839, 333, 1620, 18, 225, 309, 22302, 422, 13690, 30, 468, 2030, 15961, 5879, 67, 4983, 3231, 9831, 1799, 3251, 434, 5274, 1042, 16, 7442, 3212, 67, 4983, 3302, 1404, 969, 1824, 18, 309, 562, 12, 9576, 1042, 18, 10589, 2624, 13, 405, 404, 30, 3846, 273, 7442, 3212, 67, 4983, 469, 30, 3846, 273, 2030, 15961, 5879, 67, 4983, 225, 327, 4284, 1852, 12, 2316, 1824, 16, 2 ]
if not user.login.startswith(start_filter):
if eval(self.config_dict['uppercase_only']): login = user.login.decode('utf8').upper().encode('utf8') else: login = user.login if not login.startswith(start_filter):
def display_user_list(self, users, start_filter):
a20481d48ce29f35da563176baa45e8aee99e748 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/a20481d48ce29f35da563176baa45e8aee99e748/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 1355, 67, 1098, 12, 2890, 16, 3677, 16, 787, 67, 2188, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 1355, 67, 1098, 12, 2890, 16, 3677, 16, 787, 67, 2188, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def wrapperCall( self, *args ):
def wrapperCall( *args ):
def wrapperCall( self, *args ): """Wrapper with all save returnValues""" pyArgs = args cArgs = [] for (index,converter) in enumerate( cConverters ): # move enumerate out... if not callable(converter): cArgs.append( converter ) else: try: cArgs.append( converter( pyArgs, index, self ) ) except Exception, err: if hasattr( err, 'args' ): err.args += ( """Failure in cConverter %r"""%(converter), pyArgs, index, self, ) raise cArguments = tuple(calculate_cArguments( cArgs )) try: result = self.wrappedOperation( *cArguments ) except ctypes.ArgumentError, err: err.args = err.args + (cArguments,) raise err except error.GLError, err: err.cArgs = cArgs err.pyArgs = pyArgs raise err # handle storage of persistent argument values... storeValues( result, self, pyArgs, cArgs, ) return result
37819bfb0a23b29e5197cbb47fad0e486a1708d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1545/37819bfb0a23b29e5197cbb47fad0e486a1708d3/wrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 1477, 12, 380, 1968, 262, 30, 3536, 3611, 598, 777, 1923, 327, 1972, 8395, 2395, 2615, 273, 833, 276, 2615, 273, 5378, 364, 261, 1615, 16, 15747, 13, 316, 4241, 12, 276, 24615, 262, 30, 468, 3635, 4241, 596, 2777, 309, 486, 4140, 12, 15747, 4672, 276, 2615, 18, 6923, 12, 6027, 262, 469, 30, 775, 30, 276, 2615, 18, 6923, 12, 6027, 12, 2395, 2615, 16, 770, 16, 365, 262, 262, 1335, 1185, 16, 393, 30, 309, 3859, 12, 393, 16, 296, 1968, 11, 262, 30, 393, 18, 1968, 1011, 261, 3536, 5247, 316, 276, 5072, 738, 86, 8395, 17105, 15747, 3631, 2395, 2615, 16, 770, 16, 365, 16, 262, 1002, 276, 4628, 273, 3193, 12, 11162, 67, 71, 4628, 12, 276, 2615, 8623, 775, 30, 563, 273, 365, 18, 18704, 2988, 12, 380, 71, 4628, 262, 1335, 6983, 18, 1379, 668, 16, 393, 30, 393, 18, 1968, 273, 393, 18, 1968, 397, 261, 71, 4628, 16, 13, 1002, 393, 1335, 555, 18, 11261, 668, 16, 393, 30, 393, 18, 71, 2615, 273, 276, 2615, 393, 18, 2074, 2615, 273, 2395, 2615, 1002, 393, 468, 1640, 2502, 434, 9195, 1237, 924, 2777, 1707, 1972, 12, 563, 16, 365, 16, 2395, 2615, 16, 276, 2615, 16, 262, 327, 563, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 1477, 12, 380, 1968, 262, 30, 3536, 3611, 598, 777, 1923, 327, 1972, 8395, 2395, 2615, 273, 833, 276, 2615, 273, 5378, 364, 261, 1615, 16, 15747, 13, 316, 4241, 12, 276, 24615, 262, 30, 468, 3635, 4241, 596, 2777, 309, 486, 4140, 12, 15747, 4672, 276, 2615, 18, 6923, 12, 6027, 262, 469, 30, 775, 30, 276, 2615, 18, 6923, 12, 6027, 12, 2395, 2615, 16, 770, 16, 365, 262, 262, 1335, 1185, 16, 393, 30, 309, 3859, 12, 393, 16, 296, 1968, 11, 262, 30, 393, 18, 1968, 1011, 261, 3536, 5247, 316, 276, 5072, 738, 86, 8395, 17105, 15747, 3631, 2395, 2615, 16, 770, 16, 365, 16, 262, 1002, 276, 4628, 273, 3193, 12, 2 ]
for path in paths: print path
def __init__(self,*args): paths = [] import glob for arg in args: paths += glob.glob(arg)
2bea244723902afdd7c8d9b8c1a90b1f4d64ed4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/2bea244723902afdd7c8d9b8c1a90b1f4d64ed4b/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 2953, 273, 5378, 1930, 4715, 364, 1501, 316, 833, 30, 2953, 1011, 4715, 18, 10581, 12, 3175, 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,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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: R.<x> = QQ['x']
sage: R.<x> = QQ['x']
def local_coordinates_at_infinity(self, prec = 20, name = 't'): """ For the genus g hyperelliptic curve y^2 = f(x), returns (x(t), y(t)) such that (y(t))^2 = f(x(t)), where t = x^g/y is the local parameter at infinity
ef7503ddc882a8693dd4b8a170c060074f3ef89b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/ef7503ddc882a8693dd4b8a170c060074f3ef89b/hyperelliptic_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 16941, 67, 270, 67, 267, 7850, 12, 2890, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 326, 3157, 407, 314, 9512, 292, 549, 21507, 8882, 677, 66, 22, 273, 284, 12, 92, 3631, 1135, 261, 92, 12, 88, 3631, 677, 12, 88, 3719, 4123, 716, 261, 93, 12, 88, 3719, 66, 22, 273, 284, 12, 92, 12, 88, 13, 3631, 1625, 268, 273, 619, 66, 75, 19, 93, 353, 326, 1191, 1569, 622, 27272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 16941, 67, 270, 67, 267, 7850, 12, 2890, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 326, 3157, 407, 314, 9512, 292, 549, 21507, 8882, 677, 66, 22, 273, 284, 12, 92, 3631, 1135, 261, 92, 12, 88, 3631, 677, 12, 88, 3719, 4123, 716, 261, 93, 12, 88, 3719, 66, 22, 273, 284, 12, 92, 12, 88, 13, 3631, 1625, 268, 273, 619, 66, 75, 19, 93, 353, 326, 1191, 1569, 622, 27272, 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 ]
reply.getQuerynode().addChild("feature", {"var":"http://jabber.org/protocol/si"}) reply.getQuerynode().addChild("feature", {"var":"http://jabber.org/protocol/si/profile/spade-p2p-messaging"})
reply.getTag("query").addChild("feature", {"var":"http://jabber.org/protocol/si"}) reply.getTag("query").addChild("feature", {"var":"http://jabber.org/protocol/si/profile/spade-p2p-messaging"})
def _jabber_messageCB(self, conn, mess, raiseFlag=True): """ message callback read the message envelope and post the message to the agent """
3fd3d787c8af9fa40be6b7e2507de52eb463020d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10121/3fd3d787c8af9fa40be6b7e2507de52eb463020d/Agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 78, 378, 744, 67, 2150, 8876, 12, 2890, 16, 1487, 16, 12755, 16, 1002, 4678, 33, 5510, 4672, 3536, 883, 1348, 855, 326, 883, 9045, 471, 1603, 326, 883, 358, 326, 4040, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 78, 378, 744, 67, 2150, 8876, 12, 2890, 16, 1487, 16, 12755, 16, 1002, 4678, 33, 5510, 4672, 3536, 883, 1348, 855, 326, 883, 9045, 471, 1603, 326, 883, 358, 326, 4040, 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, -100, -100, -100, -100, -100 ]
cursor, user, vals.from_location, context=context)
cursor, user, vals['from_location'], context=context)
def create(self, cursor, user, vals, context=None): location_obj = self.pool.get('stock.location')
0836283c2507878c6f7b0fcdca72e62df6bf58b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/0836283c2507878c6f7b0fcdca72e62df6bf58b7/move.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.initReady = False
def __init__(self, cols, subPanelHeight, orientation='horizontal', viewmode = 'list', parent = None, name="standardGrid"): ## self.initReady = False self.data = None self.detailPanel = None self.orientation = orientation self.subPanelClass = None self.items = 0 #number of items that are currently visible self.currentRows = 0 self.sizeMode = 'auto' self.columnHeader = None self.topMargin = 5 self.lastSize = None self.panels = [] self.viewmode = viewmode self.guiUtility = GUIUtility.getInstance()
f1eb2fec9d42f97f3483769dff090dc9f264a0fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/f1eb2fec9d42f97f3483769dff090dc9f264a0fd/standardGrid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5347, 16, 720, 5537, 2686, 16, 9820, 2218, 18396, 2187, 1476, 3188, 273, 296, 1098, 2187, 982, 273, 599, 16, 508, 1546, 10005, 6313, 6, 4672, 7541, 365, 18, 892, 273, 599, 365, 18, 8992, 5537, 273, 599, 365, 18, 19235, 273, 9820, 365, 18, 1717, 5537, 797, 273, 599, 365, 18, 3319, 273, 374, 468, 2696, 434, 1516, 716, 854, 4551, 6021, 365, 18, 2972, 4300, 273, 374, 365, 18, 1467, 2309, 273, 296, 6079, 11, 365, 18, 2827, 1864, 273, 599, 365, 18, 3669, 9524, 273, 1381, 365, 18, 2722, 1225, 273, 599, 365, 18, 7355, 10558, 273, 5378, 365, 18, 1945, 3188, 273, 1476, 3188, 365, 18, 20292, 6497, 273, 10978, 6497, 18, 588, 1442, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5347, 16, 720, 5537, 2686, 16, 9820, 2218, 18396, 2187, 1476, 3188, 273, 296, 1098, 2187, 982, 273, 599, 16, 508, 1546, 10005, 6313, 6, 4672, 7541, 365, 18, 892, 273, 599, 365, 18, 8992, 5537, 273, 599, 365, 18, 19235, 273, 9820, 365, 18, 1717, 5537, 797, 273, 599, 365, 18, 3319, 273, 374, 468, 2696, 434, 1516, 716, 854, 4551, 6021, 365, 18, 2972, 4300, 273, 374, 365, 18, 1467, 2309, 273, 296, 6079, 11, 365, 18, 2827, 1864, 273, 599, 365, 18, 3669, 9524, 273, 1381, 365, 18, 2722, 1225, 273, 599, 365, 18, 7355, 10558, 273, 5378, 365, 18, 1945, 3188, 273, 1476, 3188, 365, 18, 20292, 6497, 2 ]
else: self.quit_pending = True
def ftp_QUIT(self, line): """Quit the current session.""" # From RFC-959: # This command terminates a USER and if file transfer is not # in progress, the server closes the control connection. # If file transfer is in progress, the connection will remain # open for result response and the server will then close it. if self.authenticated: msg_quit = self.authorizer.get_msg_quit(self.username) else: msg_quit = "Goodbye." if len(msg_quit) <= 75: self.respond("221 %s" %msg_quit) else: self.push("221-%s\r\n" %msg_quit) self.respond("221 ")
b72be3883869c0d6338fc8636991ea45b11add17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7236/b72be3883869c0d6338fc8636991ea45b11add17/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 3500, 1285, 12, 2890, 16, 980, 4672, 3536, 25365, 326, 783, 1339, 12123, 468, 6338, 8372, 17, 29, 6162, 30, 468, 1220, 1296, 30559, 279, 7443, 471, 309, 585, 7412, 353, 486, 468, 316, 4007, 16, 326, 1438, 13445, 326, 3325, 1459, 18, 468, 971, 585, 7412, 353, 316, 4007, 16, 326, 1459, 903, 7232, 468, 1696, 364, 563, 766, 471, 326, 1438, 903, 1508, 1746, 518, 18, 309, 365, 18, 14454, 30, 1234, 67, 27176, 273, 365, 18, 4161, 1824, 18, 588, 67, 3576, 67, 27176, 12, 2890, 18, 5053, 13, 469, 30, 1234, 67, 27176, 273, 315, 18195, 1637, 73, 1199, 309, 562, 12, 3576, 67, 27176, 13, 1648, 18821, 30, 365, 18, 17863, 2932, 3787, 21, 738, 87, 6, 738, 3576, 67, 27176, 13, 469, 30, 365, 18, 6206, 2932, 3787, 21, 6456, 87, 64, 86, 64, 82, 6, 738, 3576, 67, 27176, 13, 365, 18, 17863, 2932, 3787, 21, 9369, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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8372, 17, 29, 6162, 30, 468, 1220, 1296, 30559, 279, 7443, 471, 309, 585, 7412, 353, 486, 468, 316, 4007, 16, 326, 1438, 13445, 326, 3325, 1459, 18, 468, 971, 585, 7412, 353, 316, 4007, 16, 326, 1459, 903, 7232, 468, 1696, 364, 563, 766, 471, 326, 1438, 903, 1508, 1746, 518, 18, 309, 365, 18, 14454, 30, 1234, 67, 27176, 273, 365, 18, 4161, 1824, 18, 588, 67, 3576, 67, 27176, 12, 2890, 18, 5053, 13, 469, 30, 1234, 67, 27176, 273, 315, 18195, 1637, 73, 1199, 309, 562, 12, 3576, 67, 27176, 13, 1648, 18821, 30, 365, 18, 17863, 2 ]
tree = treelib.parseNewick("((a1,b1),(c1,d1));")
def test_birthDeathPriorFull(self): """test birth death prior with implied speciation nodes""" l = 2 u = .5 maxdoom = 10
690c25985c6575933cde9011a69349769e38013c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12857/690c25985c6575933cde9011a69349769e38013c/birthdeath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22531, 758, 421, 25355, 5080, 12, 2890, 4672, 3536, 3813, 17057, 443, 421, 6432, 598, 23547, 857, 7072, 2199, 8395, 225, 328, 273, 576, 582, 273, 263, 25, 943, 2896, 362, 273, 1728, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22531, 758, 421, 25355, 5080, 12, 2890, 4672, 3536, 3813, 17057, 443, 421, 6432, 598, 23547, 857, 7072, 2199, 8395, 225, 328, 273, 576, 582, 273, 263, 25, 943, 2896, 362, 273, 1728, 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 ]
wc.config = wc.Configuration(confdir=confdir) wc.config.init_filter_modules()
wc.configuration.config = wc.configuration.Configuration(confdir=confdir) wc.configuration.config.init_filter_modules() wc.proxy.dns_lookups.init_resolver()
def _main (): """USAGE: test/run.sh test/filterfile.py <config dir> <.html file>""" if len(sys.argv)!=3: print _main.__doc__ sys.exit(1) confdir = sys.argv[1] fname = sys.argv[2] if fname=="-": f = sys.stdin else: f = file(fname) logfile = os.path.join(confdir, "logging.conf") wc.initlog(logfile, wc.Name, filelogs=False) wc.config = wc.Configuration(confdir=confdir) wc.config.init_filter_modules() headers = wc.proxy.Headers.WcMessage() headers['Content-Type'] = "text/html" attrs = wc.filter.get_filterattrs(fname, [wc.filter.FILTER_RESPONSE_MODIFY], headers=headers, serverheaders=headers) filtered = "" data = f.read(2048) while data: print >>sys.stderr, "Test: data", len(data) try: filtered += wc.filter.applyfilter(wc.filter.FILTER_RESPONSE_MODIFY, data, 'filter', attrs) except wc.filter.FilterException, msg: print >>sys.stderr, "Test: exception:", msg pass data = f.read(2048) print >>sys.stderr, "Test: finishing" i = 1 while True: print >>sys.stderr, "Test: finish", i try: filtered += wc.filter.applyfilter(wc.filter.FILTER_RESPONSE_MODIFY, "", 'finish', attrs) break except wc.filter.FilterException, msg: print >>sys.stderr, "Test: finish: exception:", msg wc.proxy.proxy_poll(timeout=max(0, wc.proxy.run_timers())) i += 1 if i==200: # background downloading if javascript is too slow print >>sys.stderr, "Test: oooooops" break print "Filtered:", filtered
34490e8500d1c9e54d629f5a2141f228d212be2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/34490e8500d1c9e54d629f5a2141f228d212be2a/filterfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 1832, 30, 3536, 29550, 30, 1842, 19, 2681, 18, 674, 1842, 19, 2188, 768, 18, 2074, 411, 1425, 1577, 34, 411, 18, 2620, 585, 2984, 3660, 309, 562, 12, 9499, 18, 19485, 13, 5, 33, 23, 30, 1172, 389, 5254, 16186, 2434, 972, 2589, 18, 8593, 12, 21, 13, 2195, 1214, 273, 2589, 18, 19485, 63, 21, 65, 5299, 273, 2589, 18, 19485, 63, 22, 65, 309, 5299, 31713, 17, 6877, 284, 273, 2589, 18, 21772, 469, 30, 284, 273, 585, 12, 12749, 13, 15204, 273, 1140, 18, 803, 18, 5701, 12, 3923, 1214, 16, 315, 11167, 18, 3923, 7923, 14310, 18, 2738, 1330, 12, 28806, 16, 14310, 18, 461, 16, 661, 292, 14072, 33, 8381, 13, 14310, 18, 7025, 18, 1425, 273, 14310, 18, 7025, 18, 1750, 12, 3923, 1214, 33, 3923, 1214, 13, 14310, 18, 7025, 18, 1425, 18, 2738, 67, 2188, 67, 6400, 1435, 14310, 18, 5656, 18, 14926, 67, 8664, 87, 18, 2738, 67, 14122, 1435, 1607, 273, 14310, 18, 5656, 18, 3121, 18, 59, 71, 1079, 1435, 1607, 3292, 1350, 17, 559, 3546, 273, 315, 955, 19, 2620, 6, 3422, 273, 14310, 18, 2188, 18, 588, 67, 2188, 7039, 12, 12749, 16, 306, 27594, 18, 2188, 18, 11126, 67, 14508, 67, 6720, 12096, 6487, 1607, 33, 2485, 16, 1438, 2485, 33, 2485, 13, 5105, 273, 1408, 501, 273, 284, 18, 896, 12, 21573, 28, 13, 1323, 501, 30, 1172, 1671, 9499, 18, 11241, 16, 315, 4709, 30, 501, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 1832, 30, 3536, 29550, 30, 1842, 19, 2681, 18, 674, 1842, 19, 2188, 768, 18, 2074, 411, 1425, 1577, 34, 411, 18, 2620, 585, 2984, 3660, 309, 562, 12, 9499, 18, 19485, 13, 5, 33, 23, 30, 1172, 389, 5254, 16186, 2434, 972, 2589, 18, 8593, 12, 21, 13, 2195, 1214, 273, 2589, 18, 19485, 63, 21, 65, 5299, 273, 2589, 18, 19485, 63, 22, 65, 309, 5299, 31713, 17, 6877, 284, 273, 2589, 18, 21772, 469, 30, 284, 273, 585, 12, 12749, 13, 15204, 273, 1140, 18, 803, 18, 5701, 12, 3923, 1214, 16, 315, 11167, 18, 3923, 7923, 14310, 18, 2738, 1330, 12, 28806, 16, 14310, 18, 461, 16, 661, 292, 14072, 33, 8381, 2 ]
from Cookie import SimpleCookie c = SimpleCookie() c['MOIN_ID'] = self.user.id c['MOIN_ID']['max-age'] = maxage if self.cfg.cookie_domain: c['MOIN_ID']['domain'] = self.cfg.cookie_domain if self.cfg.cookie_path: c['MOIN_ID']['path'] = self.cfg.cookie_path else: c['MOIN_ID']['path'] = self.getScriptname() c['MOIN_ID']['expires'] = self.httpDate(when=expires, rfc='850') self.setHttpHeader(c.output())
cookie = self.makeCookie(self.user.id, maxage, expires) self.setHttpHeader(cookie)
def setCookie(self): """ Set cookie for the current user cfg.cookie_lifetime and the user 'remember_me' setting set the lifetime of the cookie. lifetime in int hours, see table: value cookie lifetime ---------------------------------------------------------------- = 0 forever, ignoring user 'remember_me' setting > 0 n hours, or forever if user checked 'remember_me' < 0 -n hours, ignoring user 'remember_me' setting """ # Calculate cookie maxage and expires lifetime = int(self.cfg.cookie_lifetime) * 3600 forever = 10*365*24*3600 # 10 years now = time.time() if not lifetime: maxage = forever elif lifetime > 0: if self.user.remember_me: maxage = forever else: maxage = lifetime elif lifetime < 0: maxage = (-lifetime) expires = now + maxage # Set the cookie from Cookie import SimpleCookie c = SimpleCookie() c['MOIN_ID'] = self.user.id c['MOIN_ID']['max-age'] = maxage if self.cfg.cookie_domain: c['MOIN_ID']['domain'] = self.cfg.cookie_domain if self.cfg.cookie_path: c['MOIN_ID']['path'] = self.cfg.cookie_path else: c['MOIN_ID']['path'] = self.getScriptname() # Set expires for older clients c['MOIN_ID']['expires'] = self.httpDate(when=expires, rfc='850') self.setHttpHeader(c.output())
63802b2d2ac05d2344f28c1d53a2b0063863fa12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/63802b2d2ac05d2344f28c1d53a2b0063863fa12/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26793, 12, 2890, 4672, 3536, 1000, 3878, 364, 326, 783, 729, 225, 2776, 18, 8417, 67, 17155, 471, 326, 729, 296, 28155, 67, 3501, 11, 3637, 444, 326, 12486, 434, 326, 3878, 18, 12486, 316, 509, 7507, 16, 2621, 1014, 30, 225, 460, 282, 3878, 12486, 13420, 18753, 273, 374, 565, 21238, 16, 14398, 729, 296, 28155, 67, 3501, 11, 3637, 405, 374, 565, 290, 7507, 16, 578, 21238, 309, 729, 5950, 296, 28155, 67, 3501, 11, 411, 374, 565, 300, 82, 7507, 16, 14398, 729, 296, 28155, 67, 3501, 11, 3637, 3536, 468, 9029, 3878, 943, 410, 471, 7368, 12486, 273, 509, 12, 2890, 18, 7066, 18, 8417, 67, 17155, 13, 380, 12396, 21238, 273, 1728, 14, 5718, 25, 14, 3247, 14, 5718, 713, 468, 1728, 11387, 2037, 273, 813, 18, 957, 1435, 309, 486, 12486, 30, 943, 410, 273, 21238, 1327, 12486, 405, 374, 30, 309, 365, 18, 1355, 18, 28155, 67, 3501, 30, 943, 410, 273, 21238, 469, 30, 943, 410, 273, 12486, 1327, 12486, 411, 374, 30, 943, 410, 273, 24927, 17155, 13, 7368, 273, 2037, 397, 943, 410, 225, 468, 1000, 326, 3878, 628, 10201, 1930, 4477, 6151, 276, 273, 4477, 6151, 1435, 276, 3292, 5980, 706, 67, 734, 3546, 273, 365, 18, 1355, 18, 350, 276, 3292, 5980, 706, 67, 734, 21712, 1896, 17, 410, 3546, 273, 943, 410, 309, 365, 18, 7066, 18, 8417, 67, 4308, 30, 276, 3292, 5980, 706, 67, 734, 21712, 4308, 3546, 273, 365, 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, 26793, 12, 2890, 4672, 3536, 1000, 3878, 364, 326, 783, 729, 225, 2776, 18, 8417, 67, 17155, 471, 326, 729, 296, 28155, 67, 3501, 11, 3637, 444, 326, 12486, 434, 326, 3878, 18, 12486, 316, 509, 7507, 16, 2621, 1014, 30, 225, 460, 282, 3878, 12486, 13420, 18753, 273, 374, 565, 21238, 16, 14398, 729, 296, 28155, 67, 3501, 11, 3637, 405, 374, 565, 290, 7507, 16, 578, 21238, 309, 729, 5950, 296, 28155, 67, 3501, 11, 411, 374, 565, 300, 82, 7507, 16, 14398, 729, 296, 28155, 67, 3501, 11, 3637, 3536, 468, 9029, 3878, 943, 410, 471, 7368, 12486, 273, 509, 12, 2890, 18, 7066, 18, 8417, 67, 17155, 13, 380, 12396, 21238, 273, 1728, 14, 2 ]
return NumericSynthSetting("inflection",_("&Inflection"),minStep)
return NumericSynthSetting("inflection",_("&Inflection"),minStep=minStep)
def InflectionSetting(cls,minStep=1): """Factory function for creating inflection setting.""" return NumericSynthSetting("inflection",_("&Inflection"),minStep)
d7501d83cabc291a70992da6a9e3459373ad3530 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/d7501d83cabc291a70992da6a9e3459373ad3530/synthDriverHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13648, 942, 5568, 12, 6429, 16, 1154, 4160, 33, 21, 4672, 3536, 1733, 445, 364, 4979, 8286, 942, 3637, 12123, 327, 16980, 10503, 451, 5568, 2932, 10625, 942, 3113, 67, 2932, 10, 13149, 942, 6, 3631, 1154, 4160, 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, 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 5568, 12, 6429, 16, 1154, 4160, 33, 21, 4672, 3536, 1733, 445, 364, 4979, 8286, 942, 3637, 12123, 327, 16980, 10503, 451, 5568, 2932, 10625, 942, 3113, 67, 2932, 10, 13149, 942, 6, 3631, 1154, 4160, 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 ]
tl = int(techID / 1000),
tl = tech.level,
def showTechs(self): # techs items = [] select = None showMilitary = self.win.vMilitary.checked showBio = self.win.vBioProduction.checked showEn = self.win.vEnProduction.checked showCP = self.win.vCPProduction.checked showRP = self.win.vRPProduction.checked showMorale = self.win.vMorale.checked
2f942f88cd232edd6772f78047475ff3d5b1dd57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10927/2f942f88cd232edd6772f78047475ff3d5b1dd57/StructTaskDlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 56, 8987, 87, 12, 2890, 4672, 468, 13878, 87, 1516, 273, 5378, 2027, 273, 599, 2405, 49, 330, 305, 814, 273, 365, 18, 8082, 18, 90, 49, 330, 305, 814, 18, 4532, 2405, 38, 1594, 273, 365, 18, 8082, 18, 90, 38, 1594, 31590, 18, 4532, 2405, 664, 273, 365, 18, 8082, 18, 90, 664, 31590, 18, 4532, 2405, 4258, 273, 365, 18, 8082, 18, 90, 4258, 31590, 18, 4532, 2405, 54, 52, 273, 365, 18, 8082, 18, 90, 54, 52, 31590, 18, 4532, 2405, 49, 280, 5349, 273, 365, 18, 8082, 18, 90, 49, 280, 5349, 18, 4532, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 56, 8987, 87, 12, 2890, 4672, 468, 13878, 87, 1516, 273, 5378, 2027, 273, 599, 2405, 49, 330, 305, 814, 273, 365, 18, 8082, 18, 90, 49, 330, 305, 814, 18, 4532, 2405, 38, 1594, 273, 365, 18, 8082, 18, 90, 38, 1594, 31590, 18, 4532, 2405, 664, 273, 365, 18, 8082, 18, 90, 664, 31590, 18, 4532, 2405, 4258, 273, 365, 18, 8082, 18, 90, 4258, 31590, 18, 4532, 2405, 54, 52, 273, 365, 18, 8082, 18, 90, 54, 52, 31590, 18, 4532, 2405, 49, 280, 5349, 273, 365, 18, 8082, 18, 90, 49, 280, 5349, 18, 4532, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
res = RecapDecompose(m)
res = RecapDecompose(m,onlyUseReactions=[1])
def testAmideRxn(self): m = Chem.MolFromSmiles('C1CC1C(=O)NC1OC1') res = RecapDecompose(m) self.failUnless(res) self.failUnless(len(res.GetLeaves())==2) ks = res.GetLeaves().keys() self.failUnless('[*]C(=O)C1CC1' in ks) self.failUnless('[*]NC1CO1' in ks) m = Chem.MolFromSmiles('C1CC1C(=O)N(C)C1OC1') res = RecapDecompose(m) self.failUnless(res) self.failUnless(len(res.GetLeaves())==2) ks = res.GetLeaves().keys() self.failUnless('[*]C(=O)C1CC1' in ks) self.failUnless('[*]N(C)C1CO1' in ks)
e793cf1d5a1abc952de6d7bd7feb70328e8a57c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9195/e793cf1d5a1abc952de6d7bd7feb70328e8a57c4/Recap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9864, 831, 54, 22695, 12, 2890, 4672, 312, 273, 26542, 18, 49, 355, 1265, 9552, 1449, 2668, 39, 21, 6743, 21, 39, 12, 33, 51, 13, 10346, 21, 10809, 21, 6134, 400, 273, 868, 5909, 17731, 4150, 12, 81, 16, 3700, 3727, 426, 4905, 22850, 21, 5717, 365, 18, 6870, 984, 2656, 12, 455, 13, 365, 18, 6870, 984, 2656, 12, 1897, 12, 455, 18, 967, 1682, 6606, 10756, 631, 22, 13, 11654, 273, 400, 18, 967, 1682, 6606, 7675, 2452, 1435, 365, 18, 6870, 984, 2656, 2668, 63, 14, 65, 39, 12, 33, 51, 13, 39, 21, 6743, 21, 11, 316, 11654, 13, 365, 18, 6870, 984, 2656, 2668, 63, 14, 65, 10346, 21, 3865, 21, 11, 316, 11654, 13, 225, 312, 273, 26542, 18, 49, 355, 1265, 9552, 1449, 2668, 39, 21, 6743, 21, 39, 12, 33, 51, 13, 50, 12, 39, 13, 39, 21, 10809, 21, 6134, 400, 273, 868, 5909, 17731, 4150, 12, 81, 16, 3700, 3727, 426, 4905, 22850, 21, 5717, 365, 18, 6870, 984, 2656, 12, 455, 13, 365, 18, 6870, 984, 2656, 12, 1897, 12, 455, 18, 967, 1682, 6606, 10756, 631, 22, 13, 11654, 273, 400, 18, 967, 1682, 6606, 7675, 2452, 1435, 365, 18, 6870, 984, 2656, 2668, 63, 14, 65, 39, 12, 33, 51, 13, 39, 21, 6743, 21, 11, 316, 11654, 13, 365, 18, 6870, 984, 2656, 2668, 63, 14, 65, 50, 12, 39, 13, 39, 21, 3865, 21, 11, 316, 11654, 13, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9864, 831, 54, 22695, 12, 2890, 4672, 312, 273, 26542, 18, 49, 355, 1265, 9552, 1449, 2668, 39, 21, 6743, 21, 39, 12, 33, 51, 13, 10346, 21, 10809, 21, 6134, 400, 273, 868, 5909, 17731, 4150, 12, 81, 16, 3700, 3727, 426, 4905, 22850, 21, 5717, 365, 18, 6870, 984, 2656, 12, 455, 13, 365, 18, 6870, 984, 2656, 12, 1897, 12, 455, 18, 967, 1682, 6606, 10756, 631, 22, 13, 11654, 273, 400, 18, 967, 1682, 6606, 7675, 2452, 1435, 365, 18, 6870, 984, 2656, 2668, 63, 14, 65, 39, 12, 33, 51, 13, 39, 21, 6743, 21, 11, 316, 11654, 13, 365, 18, 6870, 984, 2656, 2668, 63, 14, 65, 10346, 21, 3865, 21, 2 ]
self.clientServerService2 = util.wait(self.addClientService( self.toAddress, 'aaaa', self.serverService)) util.wait(self.clientServerService2.listenQ2Q(self.toAddress, {'pony': ponyFactory}, 'ponies are weird')) ponged = defer.Deferred() util.wait(self.clientServerService.listenQ2Q(self.toAddress, {'pony': ponyFactory}, 'ponies rule')) expectedList = ['ponies rule', 'ponies are weird', 'test-description'] def chooser(servers): self.failUnlessEqual(len(servers), 3) for server in servers: expectedList.remove(server['description']) if server['description'] == 'ponies rule': self.assertEquals( self.clientServerService.certificateStorage.getPrivateCertificate(str(self.toAddress)), server['certificate']) yield server util.wait(self.clientClientService.connectQ2Q( self.fromAddress, self.toAddress, 'pony', OneTrickPonyClientFactory(ponged), chooser=chooser)) self.failUnlessEqual(expectedList, [])
def testChooserGetsThreeChoices(self): ponyFactory = OneTrickPonyServerFactory() self.testListening()
37f03e58474c9d3756dd1192a546f215552de242 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/37f03e58474c9d3756dd1192a546f215552de242/test_q2q.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 17324, 3002, 28019, 17442, 12, 2890, 4672, 293, 6598, 1733, 273, 6942, 1070, 1200, 52, 6598, 2081, 1733, 1435, 365, 18, 3813, 31594, 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, 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 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, 17324, 3002, 28019, 17442, 12, 2890, 4672, 293, 6598, 1733, 273, 6942, 1070, 1200, 52, 6598, 2081, 1733, 1435, 365, 18, 3813, 31594, 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 ]
os.system("kwriteconfig --group Development --key CopyWidgetTextCommand \"/bin/sh `kde4-config --path data --locate lokalize/find-gui-text.sh` \\\"%1\\\" \\\"%2\\\"\"")
os.system("kwriteconfig --group Development --key CopyWidgetTextCommand \"/bin/sh `kde4-config --path data --locate lokalize/scripts/find-gui-text.sh` \\\"%1\\\" \\\"%2\\\"\"")
def i18n(text, args = []): if T is not None: return utf8_decoder(T.i18n(text, args))[0] # No translation module, return the untranslated string for a in range(len(args)): text = text.replace( ("%" + "%d" % ( a + 1 )), str(args[a]) ) return text
5e32cdcea6cb19a4cfece5cd3db81f79a942fa05 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1688/5e32cdcea6cb19a4cfece5cd3db81f79a942fa05/widget-text-capture.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 2643, 82, 12, 955, 16, 833, 273, 5378, 4672, 309, 399, 353, 486, 599, 30, 327, 7718, 28, 67, 21070, 12, 56, 18, 77, 2643, 82, 12, 955, 16, 833, 3719, 63, 20, 65, 468, 2631, 4794, 1605, 16, 327, 326, 640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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, 277, 2643, 82, 12, 955, 16, 833, 273, 5378, 4672, 309, 399, 353, 486, 599, 30, 327, 7718, 28, 67, 21070, 12, 56, 18, 77, 2643, 82, 12, 955, 16, 833, 3719, 63, 20, 65, 468, 2631, 4794, 1605, 16, 327, 326, 640, 22899, 533, 364, 279, 316, 1048, 12, 1897, 12, 1968, 3719, 30, 977, 273, 977, 18, 2079, 12, 7566, 16407, 397, 2213, 72, 6, 738, 261, 279, 397, 404, 262, 3631, 609, 12, 1968, 63, 69, 5717, 262, 327, 977, 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 ]
res = os.popen("file --brief --mime-type '%s'" % filename).read().strip()
res = os.popen(file_cmd % filename).read().strip()
def get_file_mimetype(filename): res = os.popen("file --brief --mime-type '%s'" % filename).read().strip() assert res, "Cannot get mime type using `file' command" return res
cafabd266125e8911285a529d6bbf0f454a18552 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/cafabd266125e8911285a529d6bbf0f454a18552/sip_im_send_file.py
[ 1, 8585, 326, 22398, 316, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 22571, 12, 3459, 4672, 400, 273, 1140, 18, 84, 3190, 12, 768, 67, 4172, 738, 1544, 2934, 896, 7675, 6406, 1435, 1815, 400, 16, 315, 4515, 336, 4892, 618, 1450, 1375, 768, 11, 1296, 6, 327, 400, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.editable:
if self.editable or force_root_egg_info:
def run_egg_info(self): assert self.source_dir if self.name: logger.notify('Running setup.py egg_info for package %s' % self.name) else: logger.notify('Running setup.py egg_info for package from %s' % self.url) logger.indent += 2 try: script = self._run_setup_py script = script.replace('__SETUP_PY__', repr(self.setup_py)) script = script.replace('__PKG_NAME__', repr(self.name)) # We can't put the .egg-info files at the root, because then the source code will be mistaken # for an installed egg, causing problems if self.editable: egg_base_option = [] else: egg_info_dir = os.path.join(self.source_dir, 'pip-egg-info') if not os.path.exists(egg_info_dir): os.makedirs(egg_info_dir) egg_base_option = ['--egg-base', 'pip-egg-info'] call_subprocess( [sys.executable, '-c', script, 'egg_info'] + egg_base_option, cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False, command_level=Logger.VERBOSE_DEBUG, command_desc='python setup.py egg_info') finally: logger.indent -= 2 if not self.req: self.req = pkg_resources.Requirement.parse(self.pkg_info()['Name'])
c051e9faf4f36daecedea6639c4185a848366fa6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12982/c051e9faf4f36daecedea6639c4185a848366fa6/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 23171, 67, 1376, 12, 2890, 4672, 1815, 365, 18, 3168, 67, 1214, 309, 365, 18, 529, 30, 1194, 18, 12336, 2668, 7051, 3875, 18, 2074, 25144, 67, 1376, 364, 2181, 738, 87, 11, 738, 365, 18, 529, 13, 469, 30, 1194, 18, 12336, 2668, 7051, 3875, 18, 2074, 25144, 67, 1376, 364, 2181, 628, 738, 87, 11, 738, 365, 18, 718, 13, 1194, 18, 9355, 1011, 576, 775, 30, 2728, 273, 365, 6315, 2681, 67, 8401, 67, 2074, 2728, 273, 2728, 18, 2079, 2668, 972, 4043, 3079, 67, 16235, 972, 2187, 8480, 12, 2890, 18, 8401, 67, 2074, 3719, 2728, 273, 2728, 18, 2079, 2668, 972, 8784, 43, 67, 1985, 972, 2187, 8480, 12, 2890, 18, 529, 3719, 468, 1660, 848, 1404, 1378, 326, 263, 23171, 17, 1376, 1390, 622, 326, 1365, 16, 2724, 1508, 326, 1084, 981, 903, 506, 27228, 7940, 468, 364, 392, 5876, 25144, 16, 25416, 9688, 309, 365, 18, 19653, 578, 2944, 67, 3085, 67, 23171, 67, 1376, 30, 25144, 67, 1969, 67, 3482, 273, 5378, 469, 30, 25144, 67, 1376, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3168, 67, 1214, 16, 296, 16104, 17, 23171, 17, 1376, 6134, 309, 486, 1140, 18, 803, 18, 1808, 12, 23171, 67, 1376, 67, 1214, 4672, 1140, 18, 81, 9477, 10539, 12, 23171, 67, 1376, 67, 1214, 13, 25144, 67, 1969, 67, 3482, 273, 10228, 413, 23171, 17, 1969, 2187, 296, 16104, 17, 23171, 17, 1376, 3546, 745, 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, 1086, 67, 23171, 67, 1376, 12, 2890, 4672, 1815, 365, 18, 3168, 67, 1214, 309, 365, 18, 529, 30, 1194, 18, 12336, 2668, 7051, 3875, 18, 2074, 25144, 67, 1376, 364, 2181, 738, 87, 11, 738, 365, 18, 529, 13, 469, 30, 1194, 18, 12336, 2668, 7051, 3875, 18, 2074, 25144, 67, 1376, 364, 2181, 628, 738, 87, 11, 738, 365, 18, 718, 13, 1194, 18, 9355, 1011, 576, 775, 30, 2728, 273, 365, 6315, 2681, 67, 8401, 67, 2074, 2728, 273, 2728, 18, 2079, 2668, 972, 4043, 3079, 67, 16235, 972, 2187, 8480, 12, 2890, 18, 8401, 67, 2074, 3719, 2728, 273, 2728, 18, 2079, 2668, 972, 8784, 43, 67, 1985, 972, 2187, 8480, 12, 2890, 18, 2 ]