rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
self.simple_container(None, 'EmpLine')
def invalid(op): stream.seek(op) self.simple_container(None, 'EmpLine')
8944c7e9847e26536b446800c71fdaf23cf64e81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/8944c7e9847e26536b446800c71fdaf23cf64e81/objects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2057, 12, 556, 4672, 1407, 18, 16508, 12, 556, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2057, 12, 556, 4672, 1407, 18, 16508, 12, 556, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
raise 'Cannot reverse move'
tmpBoard = self.board[:] tmpBoard[move[0]][move[1]] = True tmpBoard[move[2]][move[3]] = True tmpBoard[move[4]][move[5]] = False return PegSolitaire(tmpBoard)
def reverse_move(self, move):
3a3991804fa82cdaedfc119c394eac8ebdbdf688 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11237/3a3991804fa82cdaedfc119c394eac8ebdbdf688/PegSolitaire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4219, 67, 8501, 12, 2890, 16, 3635, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4219, 67, 8501, 12, 2890, 16, 3635, 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,...
do = wxTextDataObject()
do = wx.TextDataObject()
def _Cut(self): """ Used to override the default Cut() method in base controls, instead copying the selection to the clipboard and then blanking the selection, leaving only the mask in the selected area behind. Note: _Cut (read "undercut" ;-) must be called from a Cut() override in the derived control because the mixin...
89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15812, 12, 2890, 4672, 3536, 10286, 358, 3849, 326, 805, 385, 322, 1435, 707, 316, 1026, 11022, 16, 3560, 8933, 326, 4421, 358, 326, 20304, 471, 1508, 7052, 310, 326, 4421, 16, 1508...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15812, 12, 2890, 4672, 3536, 10286, 358, 3849, 326, 805, 385, 322, 1435, 707, 316, 1026, 11022, 16, 3560, 8933, 326, 4421, 358, 326, 20304, 471, 1508, 7052, 310, 326, 4421, 16, 1508...
sage: K = NumberField(x^3 - 2, 'a'); K
sage: K = NumberField(x^3 - 2); K
def is_CyclotomicField(x): return isinstance(x, NumberField_cyclotomic)
1a91164597b615417bf9ec89ec8b4b71e2a494e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/1a91164597b615417bf9ec89ec8b4b71e2a494e2/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 17992, 830, 352, 24721, 974, 12, 92, 4672, 327, 1549, 12, 92, 16, 3588, 974, 67, 2431, 830, 352, 24721, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 17992, 830, 352, 24721, 974, 12, 92, 4672, 327, 1549, 12, 92, 16, 3588, 974, 67, 2431, 830, 352, 24721, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def mktemp():
def mktemp(suffix=""):
def mktemp(): global counter dir = gettempdir() pre = gettempprefix() while 1: counter = counter + 1 file = os.path.join(dir, pre + `counter`) if not os.path.exists(file): return file
b7b38fcf5048e93650594119096c017c700a7e7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b7b38fcf5048e93650594119096c017c700a7e7d/tempfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 5814, 12, 8477, 1546, 6, 4672, 2552, 3895, 1577, 273, 336, 5814, 1214, 1435, 675, 273, 336, 5814, 3239, 1435, 1323, 404, 30, 3895, 273, 3895, 397, 404, 585, 273, 1140, 18, 803, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5028, 5814, 12, 8477, 1546, 6, 4672, 2552, 3895, 1577, 273, 336, 5814, 1214, 1435, 675, 273, 336, 5814, 3239, 1435, 1323, 404, 30, 3895, 273, 3895, 397, 404, 585, 273, 1140, 18, 803, 1...
else: x = '0'
def rect(self, attrs): #print 'rect', attrs.map if self.in_defs: id = attrs.get('id', '') if id: self.named_objects[id] = ('object', 'rect', attrs) return if attrs.has_key('x'): x = attrs['x'] else: x = '0' if attrs.has_key('y'): y = attrs['y'] else: y = '0' x, y = self.point(x, y) wx, wy = self.point(attrs['width'], "...
20f97a1a1862b824365b83f00419d19bd29be2c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/20f97a1a1862b824365b83f00419d19bd29be2c5/svgloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4917, 12, 2890, 16, 3422, 4672, 468, 1188, 296, 2607, 2187, 3422, 18, 1458, 309, 365, 18, 267, 67, 12537, 30, 612, 273, 3422, 18, 588, 2668, 350, 2187, 28707, 309, 612, 30, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4917, 12, 2890, 16, 3422, 4672, 468, 1188, 296, 2607, 2187, 3422, 18, 1458, 309, 365, 18, 267, 67, 12537, 30, 612, 273, 3422, 18, 588, 2668, 350, 2187, 28707, 309, 612, 30, 365, 18, ...
sys.exit(False)
sys.exit(1)
def __getattr__(self, attr): """Delegate everything but write to the stream""" return getattr(self.out, attr)
0f178cb606ce1cfb96840e30bd489d420b041e6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/0f178cb606ce1cfb96840e30bd489d420b041e6d/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, -100, -100, -100, -100, -100, -100, -...
for idx in range(len(internal_lines), 1, -1):
for idx in range(len(internal_lines)-1, 1, -1):
def xuniqueCombinations(items, n): if n==0: yield [] else: for i in xrange(len(items)): for cc in xuniqueCombinations(items[i+1:],n-1): yield [items[i]]+cc
1a932c0de0b33799b58cd827d227d097a2c4d9fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4941/1a932c0de0b33799b58cd827d227d097a2c4d9fe/subgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 6270, 24107, 1012, 12, 3319, 16, 290, 4672, 309, 290, 631, 20, 30, 2824, 5378, 469, 30, 364, 277, 316, 12314, 12, 1897, 12, 3319, 3719, 30, 364, 4946, 316, 619, 6270, 24107, 1012,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 619, 6270, 24107, 1012, 12, 3319, 16, 290, 4672, 309, 290, 631, 20, 30, 2824, 5378, 469, 30, 364, 277, 316, 12314, 12, 1897, 12, 3319, 3719, 30, 364, 4946, 316, 619, 6270, 24107, 1012,...
sqlTimeCond.append( "`%s%s`.`%s` <= '%s'" % ( tableType, typeName,
sqlTimeCond.append( "`%s`.`%s` <= '%s'" % ( tableName,
def __queryType( self, typeName, startTime, endTime, condDict, valueFields, groupFields, tableType ): cmd = "SELECT" sqlValues = [] sqlLinkList = [] #Calculate fields to retrieve for vTu in valueFields: if vTu[0] in self.dbCatalog[ typeName ][ 'keys' ]: sqlValues.append( "`key%s`.`value`" % ( vTu[0] ) ) List.appendUniq...
7663d95782c4987a99eb5394bb9f465c2ab982d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/7663d95782c4987a99eb5394bb9f465c2ab982d5/AccountingDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2271, 559, 12, 365, 16, 8173, 16, 8657, 16, 13859, 16, 6941, 5014, 16, 460, 2314, 16, 1041, 2314, 16, 1014, 559, 262, 30, 1797, 273, 315, 4803, 6, 1847, 1972, 273, 5378, 1847, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2271, 559, 12, 365, 16, 8173, 16, 8657, 16, 13859, 16, 6941, 5014, 16, 460, 2314, 16, 1041, 2314, 16, 1014, 559, 262, 30, 1797, 273, 315, 4803, 6, 1847, 1972, 273, 5378, 1847, ...
config = site_root.GlobalConfiguration self.profileSchemaName = profileSchemaName = \ config.getProperty('profileInterface', 'IGSCoreProfile') self.profileSchema = profileSchema = \ getattr(profileSchemas, profileSchemaName) self.profileFields = form.Fields(self.profileSchema, render_context=False)
def __init__(self, context, request): BrowserView.__init__(self, context, request)
e432a68695f31d926889bd990ec42e9015a7b7d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6252/e432a68695f31d926889bd990ec42e9015a7b7d0/create_users_from_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 590, 4672, 15408, 1767, 16186, 2738, 972, 12, 2890, 16, 819, 16, 590, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 819, 16, 590, 4672, 15408, 1767, 16186, 2738, 972, 12, 2890, 16, 819, 16, 590, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return "%s%s" % (locstr, self.message)
return "%s%s" % (locstr, self.msg)
def __str__(self): locstr = '' if self.loc is not None: locstr = "%s:" % (self.loc,)
e44aa0e173ec65cc66c5e0e6c624363116923036 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7005/e44aa0e173ec65cc66c5e0e6c624363116923036/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 1515, 701, 273, 875, 309, 365, 18, 1829, 353, 486, 599, 30, 1515, 701, 273, 2213, 87, 2773, 738, 261, 2890, 18, 1829, 16, 13, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 1515, 701, 273, 875, 309, 365, 18, 1829, 353, 486, 599, 30, 1515, 701, 273, 2213, 87, 2773, 738, 261, 2890, 18, 1829, 16, 13, 2, -100, -100, -100, -10...
For each pair of points<pp[0], pp[1]>, if both points are inside the curve and are existed carbons, delete the bond, and mark the 'should be' removed atoms. Otherwise, delete half bond or change full to half bond accoringly.
Internal function: when the value-- carbon atom is removed from an half bond, delete the half bond.
def _logic0Bond(self, carbons, bonds, markedAtoms, hedrons, ppInside, pp): # TODO: fix indent levels. """ For each pair of points<pp[0], pp[1]>, if both points are inside the curve and are existed carbons, delete the bond, and mark the 'should be' removed atoms. Otherwise, delete half bond or change full to half bond a...
be7153ce421a674e97de640e3063c3bb1bccf4a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/be7153ce421a674e97de640e3063c3bb1bccf4a9/shape.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 28339, 20, 9807, 12, 2890, 16, 5926, 70, 7008, 16, 15692, 16, 9350, 14280, 16, 366, 329, 1949, 87, 16, 8228, 18619, 16, 8228, 4672, 468, 2660, 30, 2917, 3504, 7575, 18, 3536, 3186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28339, 20, 9807, 12, 2890, 16, 5926, 70, 7008, 16, 15692, 16, 9350, 14280, 16, 366, 329, 1949, 87, 16, 8228, 18619, 16, 8228, 4672, 468, 2660, 30, 2917, 3504, 7575, 18, 3536, 3186...
offset = d.skipwhitespace(offset)
def parsestream(fd, filename, makefile): """ Parse a stream of makefile into a makefile data structure. @param fd A file-like object containing the makefile data. """ currule = None condstack = [] fdlines = iterlines(fd) while True: d = Data(fdlines, filename) if not d.readline(): break if len(d.data) > 0 and d.da...
ce54f2df51e37a84eae544a7b106edc467a307d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7005/ce54f2df51e37a84eae544a7b106edc467a307d5/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 7781, 793, 12, 8313, 16, 1544, 16, 1221, 768, 4672, 3536, 2884, 279, 1407, 434, 1221, 768, 1368, 279, 1221, 768, 501, 3695, 18, 225, 632, 891, 5194, 432, 585, 17, 5625, 733, 4191,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 779, 7781, 793, 12, 8313, 16, 1544, 16, 1221, 768, 4672, 3536, 2884, 279, 1407, 434, 1221, 768, 1368, 279, 1221, 768, 501, 3695, 18, 225, 632, 891, 5194, 432, 585, 17, 5625, 733, 4191,...
self.last_record = conversation.start_time
self.last_record = None
def __init__(self, conversation): self.conversation = conversation try: self.archive = cjc_globals.application.plugins.get_service(Archive) except KeyError: self.archive = None if conversation.peer: ui.TextBuffer.__init__(self, {"peer": conversation.peer}, "message.descr-per-user","message buffer", conversation) else: ...
2ed38e70a33bd2df44c8386053a4e6083705130d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12768/2ed38e70a33bd2df44c8386053a4e6083705130d/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10039, 4672, 365, 18, 25131, 273, 10039, 775, 30, 365, 18, 10686, 273, 18896, 71, 67, 16227, 18, 3685, 18, 8057, 18, 588, 67, 3278, 12, 7465, 13, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10039, 4672, 365, 18, 25131, 273, 10039, 775, 30, 365, 18, 10686, 273, 18896, 71, 67, 16227, 18, 3685, 18, 8057, 18, 588, 67, 3278, 12, 7465, 13, 1335, ...
def docmodule(self, object):
def docmodule(self, object, name=None):
def docmodule(self, object): """Produce text documentation for a given module object.""" result = ''
a8b37d1a3238fb85be760a30db03672525e8f591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a8b37d1a3238fb85be760a30db03672525e8f591/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 1605, 733, 12123, 563, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 864, 1605, 733, 12123, 563, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
groupName, groupConf.scheduler, groupConf.isEnabled)
groupName, groupConf.scheduler, groupConf.isEnabled())
def configuredProxyManagerFactory(configuration): """ A factory for generating a ProxyManager, complete with pre-created services, groups, and data from a configuration file. Most of the work here is mapping configuration to models. The collection of models is what is passed to the proxyManagerFactory. """ services = [...
f0f173c8796db8eddc8034f682ea125e4aa6e76e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10696/f0f173c8796db8eddc8034f682ea125e4aa6e76e/director.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4351, 3886, 20012, 12, 7025, 4672, 3536, 432, 3272, 364, 12516, 279, 7659, 1318, 16, 3912, 598, 675, 17, 4824, 4028, 16, 3252, 16, 471, 501, 628, 279, 1664, 585, 18, 22099, 434, 326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4351, 3886, 20012, 12, 7025, 4672, 3536, 432, 3272, 364, 12516, 279, 7659, 1318, 16, 3912, 598, 675, 17, 4824, 4028, 16, 3252, 16, 471, 501, 628, 279, 1664, 585, 18, 22099, 434, 326, 1...
killr (pid, signal.SIGKILL)
killr (pid) pid = 0
def func (): global gLog result = True
9a13fc78c38b554162109d47862641b7215d28f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11382/9a13fc78c38b554162109d47862641b7215d28f8/worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 1832, 30, 2552, 314, 1343, 563, 273, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 1832, 30, 2552, 314, 1343, 563, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if (not options.title or options.title == _('Unknown')'):
if (not options.title or options.title == _('Unknown')):
def process_file(path, options, logger=None): if logger is None: level = logging.DEBUG if options.verbose else logging.INFO logger = logging.getLogger('fb22lrf') setup_cli_handlers(logger, level) fb2 = os.path.abspath(os.path.expanduser(path)) f = open(fb2, 'rb') mi = get_metadata(f, 'fb2') f.close() htmlfile = generat...
7bee70938bf270d642233fc9e9a1b1d41b61266c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/7bee70938bf270d642233fc9e9a1b1d41b61266c/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 768, 12, 803, 16, 702, 16, 1194, 33, 7036, 4672, 309, 1194, 353, 599, 30, 1801, 273, 2907, 18, 9394, 309, 702, 18, 11369, 469, 2907, 18, 5923, 1194, 273, 2907, 18, 588, 332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 768, 12, 803, 16, 702, 16, 1194, 33, 7036, 4672, 309, 1194, 353, 599, 30, 1801, 273, 2907, 18, 9394, 309, 702, 18, 11369, 469, 2907, 18, 5923, 1194, 273, 2907, 18, 588, 332...
if os.path.exists(path): os.remove(path) try: util.rename(tmpPath, path) except OSError, err: if err.errno != errno.EXDEV: raise else: util.copyfile(tmpPath, path) util.removeIfExists(tmpPath)
assert(os.path.dirname(path) == os.path.dirname(tmpPath)) os.rename(tmpPath, path)
def addFileFromTemp(self, hash, tmpPath): """ Method to insert data into a datastore from a temporary file. The file is renamed to be in the datastore. """ path = self.hashToPath(hash) self.makeDir(path) if os.path.exists(path): os.remove(path) try: util.rename(tmpPath, path) except OSError, err: if err.errno != errno....
7ff5d37ffeb93c0eaac92bd4f3d6cdae14d58aa5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/7ff5d37ffeb93c0eaac92bd4f3d6cdae14d58aa5/repocache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18671, 1265, 7185, 12, 2890, 16, 1651, 16, 1853, 743, 4672, 3536, 2985, 358, 2243, 501, 1368, 279, 9290, 628, 279, 6269, 585, 18, 1021, 585, 353, 17657, 358, 506, 316, 326, 9290, 18, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18671, 1265, 7185, 12, 2890, 16, 1651, 16, 1853, 743, 4672, 3536, 2985, 358, 2243, 501, 1368, 279, 9290, 628, 279, 6269, 585, 18, 1021, 585, 353, 17657, 358, 506, 316, 326, 9290, 18, 3...
if not default.get('name',False): default['name'] = self.pool.get('ir.sequence').get(cr, uid, 'stock.picking')
picking_obj = self.browse(cr, uid, [id], context)[0] if ('name' not in default) or (picking_obj.get('name')=='/'): seq_obj_name = 'stock.picking.' + picking_obj.type default['name'] = self.pool.get('ir.sequence').get(cr, uid, seq_obj_name)
def copy(self, cr, uid, id, default=None, context={}): if default is None: default = {} default = default.copy() if not default.get('name',False): default['name'] = self.pool.get('ir.sequence').get(cr, uid, 'stock.picking') return super(stock_picking, self).copy(cr, uid, id, default, context)
eb13ea9ea3f0eb52dca20eea4796376f89df321f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/eb13ea9ea3f0eb52dca20eea4796376f89df321f/stock.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, 309, 805, 353, 599, 30, 805, 273, 2618, 805, 273, 805, 18, 3530, 1435, 6002, 310, 67, 2603, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 309, 805, 353, 599, 30, 805, 273, 2618, 805, 273, 805, 18, 3530, 1435, 6002, 310, 67, 2603, 273,...
tableName = self.__getTableName( tableType, typeName )
tableName = _getTableName( tableType, typeName )
def __queryType( self, typeName, startTime, endTime, selectFields, condDict, groupFields, orderFields, tableType, connObj = False ): """ Execute a query over a main table """ tableName = self.__getTableName( tableType, typeName ) cmd = "SELECT" sqlLinkList = [] #Check if groupFields and orderFields are in ( "%s", ( fie...
5644734dd5f9b2176cf1b7afc4f6ab55941c88f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5644734dd5f9b2176cf1b7afc4f6ab55941c88f0/AccountingDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2271, 559, 12, 365, 16, 8173, 16, 8657, 16, 13859, 16, 2027, 2314, 16, 6941, 5014, 16, 1041, 2314, 16, 1353, 2314, 16, 1014, 559, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 7903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2271, 559, 12, 365, 16, 8173, 16, 8657, 16, 13859, 16, 2027, 2314, 16, 6941, 5014, 16, 1041, 2314, 16, 1353, 2314, 16, 1014, 559, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 7903, ...
try:
if self._resultSet:
def getResultSet(self): """ Return a reference collection of the query results """ if self.__resultsAreStale(): try: self._resultSet.clear() except: self._resultSet = [] self.stale = False for i in self._logical_plan.execute(): self._resultSet.append(i) return self._resultSet else: return self._resultSet
9ea037c33fa68c31b33d12bc63c32c46165a68ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9ea037c33fa68c31b33d12bc63c32c46165a68ae/Query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8601, 694, 12, 2890, 4672, 3536, 2000, 279, 2114, 1849, 434, 326, 843, 1686, 3536, 309, 365, 16186, 4717, 4704, 19155, 13332, 309, 365, 6315, 2088, 694, 30, 365, 6315, 2088, 694, 18, 850...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8601, 694, 12, 2890, 4672, 3536, 2000, 279, 2114, 1849, 434, 326, 843, 1686, 3536, 309, 365, 16186, 4717, 4704, 19155, 13332, 309, 365, 6315, 2088, 694, 30, 365, 6315, 2088, 694, 18, 850...
def __init__(self, nu, type = "J", alg = "pari", prec = 53):
def __init__(self, nu, typ = "J", algorithm = "pari", prec = 53):
def __init__(self, nu, type = "J", alg = "pari", prec = 53): self._order = nu self._system = alg self._type = type self._prec = prec
0090c116d1d0d5f9f5ec1cc4c8800a058defd9bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0090c116d1d0d5f9f5ec1cc4c8800a058defd9bb/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9244, 16, 3815, 273, 315, 46, 3113, 4886, 273, 315, 1065, 77, 3113, 13382, 273, 15935, 4672, 365, 6315, 1019, 273, 9244, 365, 6315, 4299, 273, 11989, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9244, 16, 3815, 273, 315, 46, 3113, 4886, 273, 315, 1065, 77, 3113, 13382, 273, 15935, 4672, 365, 6315, 1019, 273, 9244, 365, 6315, 4299, 273, 11989, 365, ...
def remove_args(self, kernel, args): self.run_boottool('--update-kernel=%s --remove-args=%s' % \
def remove_args(self, kernel, args): self.run_boottool('--update-kernel=%s --remove-args=%s' % \
def remove_args(self, kernel, args): self.run_boottool('--update-kernel=%s --remove-args=%s' % \
777c2c1dbed9a9df8ea6c03b2074c57b2ed7ebf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/777c2c1dbed9a9df8ea6c03b2074c57b2ed7ebf7/boottool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 1968, 12, 2890, 16, 5536, 16, 833, 4672, 365, 18, 2681, 67, 7137, 6738, 2668, 413, 2725, 17, 8111, 5095, 87, 1493, 4479, 17, 1968, 5095, 87, 11, 738, 521, 2, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 1968, 12, 2890, 16, 5536, 16, 833, 4672, 365, 18, 2681, 67, 7137, 6738, 2668, 413, 2725, 17, 8111, 5095, 87, 1493, 4479, 17, 1968, 5095, 87, 11, 738, 521, 2, -100, -100, -1...
get(zipped_pg_dump_filepath, local_backup_dir)
local_zip_filepath = os.path.join(local_backup_dir, pg_dump_filename) + '.gz' get(zipped_pg_dump_filepath, local_zip_filepath)
def backup(): 'Backup database' _setup() if hasattr(env, 'backup_dir'): backup_dir = env.backup_dir else: backup_dir = os.path.join(env.base_dir, 'backup') _mkdir(backup_dir) pg_dump_filepath = _get_unique_filepath(backup_dir, exists, 'pg_dump') with cd(env.instance_path): assert exists(env.config_ini_filename), "Can'...
55abd9b64c5c555746279192db91e5dc370f81a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/55abd9b64c5c555746279192db91e5dc370f81a4/fabfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 13332, 296, 6248, 2063, 11, 389, 8401, 1435, 309, 3859, 12, 3074, 16, 296, 9572, 67, 1214, 11, 4672, 5114, 67, 1214, 273, 1550, 18, 9572, 67, 1214, 469, 30, 5114, 67, 1214, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5114, 13332, 296, 6248, 2063, 11, 389, 8401, 1435, 309, 3859, 12, 3074, 16, 296, 9572, 67, 1214, 11, 4672, 5114, 67, 1214, 273, 1550, 18, 9572, 67, 1214, 469, 30, 5114, 67, 1214, 273, ...
self.assertEqual(b.rpartition(b'w'), (b'', b'', b'mississippi'))
self.assertEqual(b.partition(b'w'), (b'mississippi', b'', b''))
def test_partition(self): b = self.type2test(b'mississippi') self.assertEqual(b.partition(b'ss'), (b'mi', b'ss', b'issippi')) self.assertEqual(b.rpartition(b'w'), (b'', b'', b'mississippi'))
63adf4295abae2bef35cf0e60123913746080fa0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/63adf4295abae2bef35cf0e60123913746080fa0/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10534, 12, 2890, 4672, 324, 273, 365, 18, 723, 22, 3813, 12, 70, 17784, 1054, 1054, 625, 7259, 6134, 365, 18, 11231, 5812, 12, 70, 18, 10534, 12, 70, 1807, 87, 19899, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10534, 12, 2890, 4672, 324, 273, 365, 18, 723, 22, 3813, 12, 70, 17784, 1054, 1054, 625, 7259, 6134, 365, 18, 11231, 5812, 12, 70, 18, 10534, 12, 70, 1807, 87, 19899, 261, ...
def exportLiteral(self, outfile, level, name_='DNAPolymorphicStateSet'):
def exportLiteral(self, outfile, level, name_='RestrictionStates'):
def exportLiteral(self, outfile, level, name_='DNAPolymorphicStateSet'): level += 1 self.exportLiteralAttributes(outfile, level, name_) if self.hasContent_(): self.exportLiteralChildren(outfile, level, name_)
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 6177, 12, 2890, 16, 8756, 16, 1801, 16, 508, 67, 2218, 11670, 7629, 11, 4672, 1801, 1011, 404, 365, 18, 6530, 6177, 2498, 12, 26050, 16, 1801, 16, 508, 67, 13, 309, 365, 18, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 6177, 12, 2890, 16, 8756, 16, 1801, 16, 508, 67, 2218, 11670, 7629, 11, 4672, 1801, 1011, 404, 365, 18, 6530, 6177, 2498, 12, 26050, 16, 1801, 16, 508, 67, 13, 309, 365, 18, 53...
return p.stdout.read()
return stdout
def getCommandOutput(cmd, warnOnStderr = True, warnOnReturnCode = True): """Wait for a command and return its output. Check for common errors and raise an exception if one of these occurs. """ p = subprocess.Popen(cmd, shell=True, close_fds = True, stdout=subprocess.PIPE, stderr = subprocess.PIPE) p.wait() stderr = p...
307a55c79d2940054a13c60aeb8f2da634e249fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/307a55c79d2940054a13c60aeb8f2da634e249fc/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12856, 1447, 12, 4172, 16, 1894, 1398, 31781, 273, 1053, 16, 1894, 1398, 990, 1085, 273, 1053, 4672, 3536, 5480, 364, 279, 1296, 471, 327, 2097, 876, 18, 225, 2073, 364, 2975, 1334, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12856, 1447, 12, 4172, 16, 1894, 1398, 31781, 273, 1053, 16, 1894, 1398, 990, 1085, 273, 1053, 4672, 3536, 5480, 364, 279, 1296, 471, 327, 2097, 876, 18, 225, 2073, 364, 2975, 1334, 471,...
encmap = {0: latin1, 1: latin2, 2: latin3, 3: latin4, 6: cyrillic, 7: greek, 0x14: armenian} try: encmap[sym >> 8]() except KeyError: pass
def armenian(): if (sym >= keysymdef.XK_Armenian_AYB and sym <= keysymdef.XK_Armenian_fe): lower = sym | 1 upper = sym & ~1
bc4ae06b8efb95b183c486ea3184ca98e761227d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/bc4ae06b8efb95b183c486ea3184ca98e761227d/keysyms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23563, 275, 2779, 13332, 309, 261, 8117, 1545, 1311, 2942, 536, 18, 60, 47, 67, 25583, 275, 2779, 67, 5255, 38, 471, 5382, 1648, 1311, 2942, 536, 18, 60, 47, 67, 25583, 275, 2779, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23563, 275, 2779, 13332, 309, 261, 8117, 1545, 1311, 2942, 536, 18, 60, 47, 67, 25583, 275, 2779, 67, 5255, 38, 471, 5382, 1648, 1311, 2942, 536, 18, 60, 47, 67, 25583, 275, 2779, 67, ...
elif n == 11:
elif number == 11:
def number_mayan(self, n): x = 42.5 x1, x2, xc, x3, x4 = x + 5, x + 15, x + 20, x + 25, x + 35 y = 60 y1s, y5s, y10s, y20s = y, y - 10, y - 20, y - 40 if n == 5: svg_string = self._svg_bar(x, y1s) elif n == 7: svg_string = self._svg_bar(x, y1s) svg_string += self._svg_circle(x2, y5s, 3) svg_string += self._svg_circle(x...
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 24877, 304, 12, 2890, 16, 290, 4672, 619, 273, 14856, 18, 25, 619, 21, 16, 619, 22, 16, 15192, 16, 619, 23, 16, 619, 24, 273, 619, 397, 1381, 16, 619, 397, 4711, 16, 619,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1300, 67, 24877, 304, 12, 2890, 16, 290, 4672, 619, 273, 14856, 18, 25, 619, 21, 16, 619, 22, 16, 15192, 16, 619, 23, 16, 619, 24, 273, 619, 397, 1381, 16, 619, 397, 4711, 16, 619,...
return language in langs
return language in [x[0] for x in langs]
def language_exists(language): """Check if a language alias exists.""" xmlrpc = get_xmlrpc_service() langs = xmlrpc.pastes.getLanguages() return language in langs
52ba8ab8563085c2426178a5890874716eb59444 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11759/52ba8ab8563085c2426178a5890874716eb59444/lodgeit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2653, 67, 1808, 12, 4923, 4672, 3536, 1564, 309, 279, 2653, 2308, 1704, 12123, 31811, 273, 336, 67, 2902, 7452, 67, 3278, 1435, 26467, 273, 31811, 18, 84, 689, 281, 18, 588, 12912, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2653, 67, 1808, 12, 4923, 4672, 3536, 1564, 309, 279, 2653, 2308, 1704, 12123, 31811, 273, 336, 67, 2902, 7452, 67, 3278, 1435, 26467, 273, 31811, 18, 84, 689, 281, 18, 588, 12912, 1435,...
iter = self.currentdata.get_iter((i, )) self.currentdata.set(iter, 0, int(track.id), 1, item)
try: iter = self.currentdata.get_iter((i, )) self.currentdata.set(iter, 0, int(track.id), 1, item) except: pass
def update_playlist(self): if self.conn: try: prev_songs = self.songs except: prev_songs = None self.songs = self.conn.do.playlistinfo() all_files_unchanged = self.playlist_files_unchanged(prev_songs) self.total_time = 0 self.current.freeze_child_notify() if not all_files_unchanged: self.currentdata.clear() self.curren...
52c79ca8b28459acec3607fb5ef450237f108f18 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/52c79ca8b28459acec3607fb5ef450237f108f18/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1601, 1098, 12, 2890, 4672, 309, 365, 18, 4646, 30, 775, 30, 2807, 67, 816, 564, 273, 365, 18, 816, 564, 1335, 30, 2807, 67, 816, 564, 273, 599, 365, 18, 816, 564, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1601, 1098, 12, 2890, 4672, 309, 365, 18, 4646, 30, 775, 30, 2807, 67, 816, 564, 273, 365, 18, 816, 564, 1335, 30, 2807, 67, 816, 564, 273, 599, 365, 18, 816, 564, 273, 3...
def __init__(self, domainName): self.domainName = domainName
def __init__(self, moFile): self.__moFile = moFile self.__gnutranslations = gettext.GNUTranslations(open(moFile))
def __init__(self, domainName): self.domainName = domainName
e3230b35cf0a50384c3b230b4b4134bcba10c503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/e3230b35cf0a50384c3b230b4b4134bcba10c503/i18n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 21044, 4672, 365, 18, 4308, 461, 273, 21044, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21044, 4672, 365, 18, 4308, 461, 273, 21044, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def openDefaultWindow(self):
def openDefaultWindow(self, *args, **kw):
def openDefaultWindow(self): # Creates the main window for the first time, without being # too particular about the kind of graphics API that is # chosen. The suggested window type from the load-display # config variable is tried first; if that fails, the first # window type that can be successfully opened at all is #...
ac014bcf3e2d2c4b3bf4c46b93c5c932f6bd1093 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/ac014bcf3e2d2c4b3bf4c46b93c5c932f6bd1093/ShowBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1868, 3829, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 468, 10210, 326, 2774, 2742, 364, 326, 1122, 813, 16, 2887, 3832, 468, 4885, 6826, 2973, 326, 3846, 434, 17313, 1491, 716...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 1868, 3829, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 468, 10210, 326, 2774, 2742, 364, 326, 1122, 813, 16, 2887, 3832, 468, 4885, 6826, 2973, 326, 3846, 434, 17313, 1491, 716...
('sequence_uniq', 'uniq(sequence)', 'You can not have two actions at the same step'),
('sequence_uniq', 'unique(sequence)', 'You can not have two actions at the same step'),
def _check_context(self, cr, uid, ids, context=None): for action in self.browse(cr, uid, ids, context): if action.context: try: str2dict(action.context) except: return False return True
6166b3a87595ea32362f93bf2a290091331b2417 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/6166b3a87595ea32362f93bf2a290091331b2417/proforma.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 2472, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 1301, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 309, 1301, 18, 2472...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 1893, 67, 2472, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 1301, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 309, 1301, 18, 2472...
if (c.decode('utf8') == u'\u2022'
print type(c) if (c == u'\u2022'
def repl(m): row_text = m.group(1) row_text = row_text.replace('\t', '</td><td>') row_text = '<td>%s</td>'%row_text return '<tr>%s</tr>' % row_text
0c835ec513f42d59fe0201ca3474b72d9ebe1891 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14305/0c835ec513f42d59fe0201ca3474b72d9ebe1891/aar2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 12, 81, 4672, 1027, 67, 955, 273, 312, 18, 1655, 12, 21, 13, 1027, 67, 955, 273, 1027, 67, 955, 18, 2079, 2668, 64, 88, 2187, 4357, 4465, 4438, 4465, 1870, 13, 1027, 67, 955, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6831, 12, 81, 4672, 1027, 67, 955, 273, 312, 18, 1655, 12, 21, 13, 1027, 67, 955, 273, 1027, 67, 955, 18, 2079, 2668, 64, 88, 2187, 4357, 4465, 4438, 4465, 1870, 13, 1027, 67, 955, ...
elif Rtype[0] == 'D' and r == 2 and Stype.is_reducible() and \
elif Rtype[0] == 'D' and r == 2 and Stype.is_compound() and \
def rule(x): [x1, x2, x3, x4] = x; return [(x1+x2-x3-x4)/2, (x1-x2+x3-x4)/2, (x1-x2-x3+x4)/2]
045ae65648950c8f9b978b7757a992c4c79694ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/045ae65648950c8f9b978b7757a992c4c79694ea/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1720, 12, 92, 4672, 306, 92, 21, 16, 619, 22, 16, 619, 23, 16, 619, 24, 65, 273, 619, 31, 327, 306, 12, 92, 21, 15, 92, 22, 17, 92, 23, 17, 92, 24, 13176, 22, 16, 261, 92, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1720, 12, 92, 4672, 306, 92, 21, 16, 619, 22, 16, 619, 23, 16, 619, 24, 65, 273, 619, 31, 327, 306, 12, 92, 21, 15, 92, 22, 17, 92, 23, 17, 92, 24, 13176, 22, 16, 261, 92, 21...
''' Render a form edit field for the property
""" Render a form edit field for the property
def field(self, showid=0, size=None): ''' Render a form edit field for the property
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 12, 2890, 16, 2405, 350, 33, 20, 16, 963, 33, 7036, 4672, 9163, 6987, 279, 646, 3874, 652, 364, 326, 1272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 12, 2890, 16, 2405, 350, 33, 20, 16, 963, 33, 7036, 4672, 9163, 6987, 279, 646, 3874, 652, 364, 326, 1272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (absDeltaMinutes > 1440):
if (absDeltaMinutes >= 2880):
def RelativeDateTimeMessage(self, delta): deltaMinutes = delta.minutes if 1 > deltaMinutes >= 0: return _("Now") absDeltaMinutes = abs(deltaMinutes) if (absDeltaMinutes > 1440): format = _("%d day%s %s") scale = 1440 elif (absDeltaMinutes >= 60): format = _("%d hour%s %s") scale = 60 else: format = _("%d minute%s %s")...
7158c13216dd58419d8a7d2639d1bfd105dc1916 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7158c13216dd58419d8a7d2639d1bfd105dc1916/ReminderDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19873, 5096, 1079, 12, 2890, 16, 3622, 4672, 3622, 13050, 273, 3622, 18, 17916, 309, 404, 405, 3622, 13050, 1545, 374, 30, 327, 389, 2932, 8674, 7923, 225, 2417, 9242, 13050, 273, 2417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19873, 5096, 1079, 12, 2890, 16, 3622, 4672, 3622, 13050, 273, 3622, 18, 17916, 309, 404, 405, 3622, 13050, 1545, 374, 30, 327, 389, 2932, 8674, 7923, 225, 2417, 9242, 13050, 273, 2417, ...
elif (obj_type == list_type): return get_value(obj[index],index,"number",axis,pap) elif (obj_type == num_type):
elif obj_type == list_type: return get_value(obj[index], index, "number", axis, pap) elif obj_type == num_type:
def get_value(obj,index=0,descr=None,axis="y",pap=0): """ This function takes an arbitrary object and returns the value for the given index. If the object is not a collection the index is ignored. Parameters: ---------- -> obj is a SOM, SO or tuple -> index is a possible index for use in a SOM -> descr (OPTIONAL) is t...
1a7152ef8214e57cb269e9232349874b9d88a4cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/1a7152ef8214e57cb269e9232349874b9d88a4cc/hlr_data_helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 12, 2603, 16, 1615, 33, 20, 16, 28313, 33, 7036, 16, 4890, 1546, 93, 3113, 84, 438, 33, 20, 4672, 3536, 1220, 445, 5530, 392, 11078, 733, 471, 1135, 326, 460, 364, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 12, 2603, 16, 1615, 33, 20, 16, 28313, 33, 7036, 16, 4890, 1546, 93, 3113, 84, 438, 33, 20, 4672, 3536, 1220, 445, 5530, 392, 11078, 733, 471, 1135, 326, 460, 364, 326...
if game.state.galaxy[game.quadrant.x][game.quadrant.y].supernova:
if game.state.galaxy[game.quadrant.i][game.quadrant.j].supernova:
def destroybase(): "Code merges here for any commander destroying a starbase." # Not perfect, but will have to do # Handle case where base is in same quadrant as starship if game.battle == game.quadrant: game.state.chart[game.battle.x][game.battle.y].starbase = False game.quad[game.base.x][game.base.y] = IHDOT game.bas...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 1969, 13332, 315, 1085, 19037, 2674, 364, 1281, 1296, 264, 5546, 310, 279, 10443, 1969, 1199, 468, 2288, 24746, 16, 1496, 903, 1240, 358, 741, 468, 5004, 648, 1625, 1026, 353, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5546, 1969, 13332, 315, 1085, 19037, 2674, 364, 1281, 1296, 264, 5546, 310, 279, 10443, 1969, 1199, 468, 2288, 24746, 16, 1496, 903, 1240, 358, 741, 468, 5004, 648, 1625, 1026, 353, 316, ...
value = parameters[name]
def deserialize_parameters(parameters, schema, default=String(multiple=True)): for name in parameters: value = parameters[name] datatype = schema.get(name, default) if datatype is None: raise NameError, 'parameter "{0}" not defined'.format(name) # Decode value = [ datatype.decode(x) for x in value ] # Multiple or singl...
4ee19df1a66d1f49a51fce415b08d09de8b16a92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/4ee19df1a66d1f49a51fce415b08d09de8b16a92/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7673, 67, 3977, 12, 3977, 16, 1963, 16, 805, 33, 780, 12, 9622, 33, 5510, 3719, 30, 364, 508, 316, 1472, 30, 11172, 273, 1963, 18, 588, 12, 529, 16, 805, 13, 309, 11172, 353, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7673, 67, 3977, 12, 3977, 16, 1963, 16, 805, 33, 780, 12, 9622, 33, 5510, 3719, 30, 364, 508, 316, 1472, 30, 11172, 273, 1963, 18, 588, 12, 529, 16, 805, 13, 309, 11172, 353, 599, ...
quit
quit()
def process_transit_street_graph(graphdb_filename, gtfsdb_filename, osmdb_filename, agency_id=None): g = Graph() # Load gtfsdb ============================== gtfsdb = GTFSDatabase( gtfsdb_filename ) service_ids = [x.encode("ascii") for x in gtfsdb.service_ids()] load_gtfsdb_to_boardalight_graph(g, gtfsdb, agency_id=a...
612ee51a2be04fafcceeee425749489a4b9e280b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10974/612ee51a2be04fafcceeee425749489a4b9e280b/compile_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2338, 305, 67, 22424, 67, 4660, 12, 4660, 1966, 67, 3459, 16, 9879, 2556, 1966, 67, 3459, 16, 1140, 27574, 67, 3459, 16, 1737, 2075, 67, 350, 33, 7036, 4672, 314, 273, 5601, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2338, 305, 67, 22424, 67, 4660, 12, 4660, 1966, 67, 3459, 16, 9879, 2556, 1966, 67, 3459, 16, 1140, 27574, 67, 3459, 16, 1737, 2075, 67, 350, 33, 7036, 4672, 314, 273, 5601, ...
log.addwarning("%s %s trying to unpack %s at '%s' at %s/%s" % (self.__class__, error, type, message[start:].__repr__(), start, len(message))) self.debug(message)
if printerror: log.addwarning("%s %s trying to unpack %s at '%s' at %s/%s" % (self.__class__, error, type, message[start:].__repr__(), start, len(message))) self.debug(message)
def getObject(self, message, type, start=0, getintasshort=0, getsignedint=0): """ Returns object of specified type, extracted from message (which is a binary array). start is an offset.""" intsize = struct.calcsize("<I") try: if type is types.IntType: if getintasshort: return intsize+start, struct.unpack("<H", message[...
5283587b02f276f425e0c6712f75c33b2f608ba2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/5283587b02f276f425e0c6712f75c33b2f608ba2/slskmessages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6455, 12, 2890, 16, 883, 16, 618, 16, 787, 33, 20, 16, 336, 474, 428, 15571, 33, 20, 16, 336, 5679, 474, 33, 20, 4672, 3536, 2860, 733, 434, 1269, 618, 16, 9438, 628, 883, 261, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6455, 12, 2890, 16, 883, 16, 618, 16, 787, 33, 20, 16, 336, 474, 428, 15571, 33, 20, 16, 336, 5679, 474, 33, 20, 4672, 3536, 2860, 733, 434, 1269, 618, 16, 9438, 628, 883, 261, 127...
self.close(tmp)
self.close(*tmp)
def execBegin(self): self.active_components = [ ] if self.close_on_next_exec is not None: tmp = self.close_on_next_exec self.close_on_next_exec = None self.execing = True self.close(tmp) else: single = self.onFirstExecBegin self.onFirstExecBegin = [] for x in self.onExecBegin + single: x() if not self.stand_alone and s...
b3b1977dd9ef8a27d2b313d0c5934718ef682665 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/b3b1977dd9ef8a27d2b313d0c5934718ef682665/Screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 8149, 12, 2890, 4672, 365, 18, 3535, 67, 8119, 273, 306, 308, 309, 365, 18, 4412, 67, 265, 67, 4285, 67, 4177, 353, 486, 599, 30, 1853, 273, 365, 18, 4412, 67, 265, 67, 4285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1196, 8149, 12, 2890, 4672, 365, 18, 3535, 67, 8119, 273, 306, 308, 309, 365, 18, 4412, 67, 265, 67, 4285, 67, 4177, 353, 486, 599, 30, 1853, 273, 365, 18, 4412, 67, 265, 67, 4285, ...
cmd = "%s/bin/java -classpath %s %s %s" % (cfg.java_home, classpath, defs, cls)
cmd = ['/bin/sh', '-c', "%s/bin/java -classpath %s %s %s" % (cfg.java_home, classpath, defs, cls)]
def runJava(cls, **kw): classpath = cfg.classpath if "classpath" in kw: classpath = os.pathsep.join([cfg.classpath, kw["classpath"]]) if kw.get('pass_jython_home', 0): defs = "-Dpython.home=%s" % cfg.jython_home else: defs = '' if UNIX: cmd = "%s/bin/java -classpath %s %s %s" % (cfg.java_home, classpath, defs, cls) el...
7549d3a146ca72ddf5f06632ac0b65dfd26474aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/7549d3a146ca72ddf5f06632ac0b65dfd26474aa/support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 5852, 12, 6429, 16, 2826, 9987, 4672, 225, 10006, 273, 2776, 18, 26302, 309, 315, 26302, 6, 316, 5323, 30, 10006, 273, 1140, 18, 803, 10814, 18, 5701, 3816, 7066, 18, 26302, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 5852, 12, 6429, 16, 2826, 9987, 4672, 225, 10006, 273, 2776, 18, 26302, 309, 315, 26302, 6, 316, 5323, 30, 10006, 273, 1140, 18, 803, 10814, 18, 5701, 3816, 7066, 18, 26302, 16, ...
self._cur_regs[item * 4 + (column - 1)] = int(data, 16)
self._cur_regs[item * 4 + (column - 1)] = int(data, self.base)
def SetVirtualData(self, item, column, data): self._cur_regs[item * 4 + (column - 1)] = int(data, 16)
4f7cf094f743cc1258da61338293d78c609f2898 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9699/4f7cf094f743cc1258da61338293d78c609f2898/ispugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 6466, 751, 12, 2890, 16, 761, 16, 1057, 16, 501, 4672, 365, 6315, 1397, 67, 266, 564, 63, 1726, 380, 1059, 397, 261, 2827, 300, 404, 25887, 273, 509, 12, 892, 16, 2872, 13, 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, 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, 1000, 6466, 751, 12, 2890, 16, 761, 16, 1057, 16, 501, 4672, 365, 6315, 1397, 67, 266, 564, 63, 1726, 380, 1059, 397, 261, 2827, 300, 404, 25887, 273, 509, 12, 892, 16, 2872, 13, 2, ...
attrValue.append(appCounter)
attrValues.append(appCounter)
def setJobStatus(self,jobID,status='',minor='',application='',appCounter=None): """ Set status of the job specified by its jobID """
76fc043a282df2a1185abfc1327562c05e7cbbe1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/76fc043a282df2a1185abfc1327562c05e7cbbe1/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 23422, 12, 2890, 16, 4688, 734, 16, 2327, 2218, 2187, 17364, 2218, 2187, 3685, 2218, 2187, 2910, 4789, 33, 7036, 4672, 3536, 1000, 1267, 434, 326, 1719, 1269, 635, 2097, 28913, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 23422, 12, 2890, 16, 4688, 734, 16, 2327, 2218, 2187, 17364, 2218, 2187, 3685, 2218, 2187, 2910, 4789, 33, 7036, 4672, 3536, 1000, 1267, 434, 326, 1719, 1269, 635, 2097, 28913, 3536, ...
elif 'set (VERSION ' in l and filename.endiswith('.in'):
elif 'set (VERSION ' in l and name.endswith('.in'):
def substitute_file(name): subst = '' f = open(name) for l in f: if '#define LIBTORRENT_VERSION_MAJOR' in l and filename.endiswith('.hpp'): l = '#define LIBTORRENT_VERSION_MAJOR %d\n' % version[0] elif '#define LIBTORRENT_VERSION_MINOR' in l and filename.endiswith('.hpp'): l = '#define LIBTORRENT_VERSION_MINOR %d\n' % ...
ade9727b186357c72ab7a1eff51f29f4426775f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6320/ade9727b186357c72ab7a1eff51f29f4426775f8/set_version.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14811, 67, 768, 12, 529, 4672, 27750, 273, 875, 284, 273, 1696, 12, 529, 13, 364, 328, 316, 284, 30, 309, 2946, 11255, 23983, 56, 916, 7480, 67, 5757, 67, 26976, 916, 11, 316, 328, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14811, 67, 768, 12, 529, 4672, 27750, 273, 875, 284, 273, 1696, 12, 529, 13, 364, 328, 316, 284, 30, 309, 2946, 11255, 23983, 56, 916, 7480, 67, 5757, 67, 26976, 916, 11, 316, 328, 4...
if file and (type(file) is type('') or hasattr(file, 'content-type')):
if file and (type(file) is type('') or file.filename):
def manage_edit(self, meta_type='', icon='', file='', REQUEST=None): """Set basic item properties. """ if meta_type: self.setClassAttr('meta_type', meta_type)
97201e832883bdf3289275e29b5640d18012580d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/97201e832883bdf3289275e29b5640d18012580d/Basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 4619, 12, 2890, 16, 2191, 67, 723, 2218, 2187, 4126, 2218, 2187, 585, 2218, 2187, 12492, 33, 7036, 4672, 3536, 694, 5337, 761, 1790, 18, 3536, 309, 2191, 67, 723, 30, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 4619, 12, 2890, 16, 2191, 67, 723, 2218, 2187, 4126, 2218, 2187, 585, 2218, 2187, 12492, 33, 7036, 4672, 3536, 694, 5337, 761, 1790, 18, 3536, 309, 2191, 67, 723, 30, 365, 1...
pass
super(DNAStates, self).buildAttributes(node, attrs, already_processed)
def buildAttributes(self, node, attrs, already_processed): pass
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2498, 12, 2890, 16, 756, 16, 3422, 16, 1818, 67, 11005, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2498, 12, 2890, 16, 756, 16, 3422, 16, 1818, 67, 11005, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if not self.flag and collide.dist(self.pos, self.team.base.center) < self.team.base.radius: self.pos[0] += 1
basedist = collide.dist(self.pos, self.team.base.center) if basedist < self.team.base.radius: angle = math.atan2(self.team.base.center[1]-self.pos[1], self.team.base.center[0]-self.pos[0]) + math.pi self.pos = [math.cos(angle) * self.team.base.radius + self.team.base.pos[0], math.sin(angle) * self.team.base.radius + se...
def update_goals(self, dt): '''update the velocities to match the goals''' if not self.flag and collide.dist(self.pos, self.team.base.center) < self.team.base.radius: self.pos[0] += 1 self.hspeed += self.accelx self.vspeed += self.accely max = 30 if collide.dist((0,0),(self.hspeed, self.vspeed)) > max: dr = math.atan2(...
ae8266b334f0cf593d3c1aabcc41e6def14fe2c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/ae8266b334f0cf593d3c1aabcc41e6def14fe2c9/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3240, 1031, 12, 2890, 16, 3681, 4672, 9163, 2725, 326, 331, 9640, 1961, 358, 845, 326, 1960, 1031, 26418, 2511, 376, 273, 645, 8130, 18, 4413, 12, 2890, 18, 917, 16, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3240, 1031, 12, 2890, 16, 3681, 4672, 9163, 2725, 326, 331, 9640, 1961, 358, 845, 326, 1960, 1031, 26418, 2511, 376, 273, 645, 8130, 18, 4413, 12, 2890, 18, 917, 16, 365, 18,...
doc = Request(self, 'geo.getTopTracks', self.api_key, params).execute()
doc = _Request(self, 'geo.getTopTracks', self.api_key, params).execute()
def getTopTracks(self, location = None): """Returns a tuple of the most popular Tracks in the country, ordered by popularity. * location: A metro name, to fetch the charts for (must be within the country specified). """ params = self._getParams() if location: params['location'] = unicode(location) doc = Request(self,...
903c9b1622fe56617e5099f20abdc69f2090f8e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/903c9b1622fe56617e5099f20abdc69f2090f8e0/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13729, 22138, 12, 2890, 16, 2117, 273, 599, 4672, 3536, 1356, 279, 3193, 434, 326, 4486, 1843, 2490, 11065, 87, 316, 326, 5251, 16, 5901, 635, 1843, 12976, 18, 380, 2117, 30, 432, 5100, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13729, 22138, 12, 2890, 16, 2117, 273, 599, 4672, 3536, 1356, 279, 3193, 434, 326, 4486, 1843, 2490, 11065, 87, 316, 326, 5251, 16, 5901, 635, 1843, 12976, 18, 380, 2117, 30, 432, 5100, ...
p = sage.rings.integer.Integer(info[6])
p = Integer(info[6])
def find_factor(self, n, factor_digits=None, B1=2000, **kwds): """ Splits off a single factor of n. See ECM.factor() """ if not 'c' in kwds: kwds['c'] = 1000000000 if not 'I' in kwds: kwds['I'] = 1 if not factor_digits is None: B1 = self.recommended_B1(factor_digits); kwds['one'] = '' kwds['cofdec'] = '' self.__cmd = s...
03000ffd92da6e4411ad09bed68dd970417bd216 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/03000ffd92da6e4411ad09bed68dd970417bd216/ecm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 6812, 12, 2890, 16, 290, 16, 5578, 67, 16649, 33, 7036, 16, 605, 21, 33, 17172, 16, 2826, 25577, 4672, 3536, 5385, 87, 3397, 279, 2202, 5578, 434, 290, 18, 2164, 7773, 49, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 6812, 12, 2890, 16, 290, 16, 5578, 67, 16649, 33, 7036, 16, 605, 21, 33, 17172, 16, 2826, 25577, 4672, 3536, 5385, 87, 3397, 279, 2202, 5578, 434, 290, 18, 2164, 7773, 49, ...
fmt = '<hhqq'
fmt = '<HHQQ'
def FileHeader(self): """Return the per-file header as a string.""" dt = self.date_time dosdate = (dt[0] - 1980) << 9 | dt[1] << 5 | dt[2] dostime = dt[3] << 11 | dt[4] << 5 | (dt[5] // 2) if self.flag_bits & 0x08: # Set these to zero because we write them after the file data CRC = compress_size = file_size = 0 else: C...
42282b10b46702cb6d8edce0152e597e44fb6834 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/42282b10b46702cb6d8edce0152e597e44fb6834/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 1864, 12, 2890, 4672, 3536, 990, 326, 1534, 17, 768, 1446, 487, 279, 533, 12123, 3681, 273, 365, 18, 712, 67, 957, 16153, 712, 273, 261, 7510, 63, 20, 65, 300, 5342, 3672, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 1864, 12, 2890, 4672, 3536, 990, 326, 1534, 17, 768, 1446, 487, 279, 533, 12123, 3681, 273, 365, 18, 712, 67, 957, 16153, 712, 273, 261, 7510, 63, 20, 65, 300, 5342, 3672, 13, ...
if doct:
if cframe:
def _listWrapOn(F,availWidth,canv,mergeSpace=1,obj=None,dims=None): '''return max width, required height for a list of flowables F''' doct = getattr(canv,'_doctemplate',None) if doct: from reportlab.platypus.doctemplate import _addGeneratedContent doct_frame = doct.frame cframe = doct.frame = deepcopy(doct_frame) cfram...
cad7ab316c496a483ea6c1a76410612af0d155e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/cad7ab316c496a483ea6c1a76410612af0d155e1/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 2964, 1398, 12, 42, 16, 842, 671, 2384, 16, 4169, 90, 16, 2702, 3819, 33, 21, 16, 2603, 33, 7036, 16, 8550, 33, 7036, 4672, 9163, 2463, 943, 1835, 16, 1931, 2072, 364, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 2964, 1398, 12, 42, 16, 842, 671, 2384, 16, 4169, 90, 16, 2702, 3819, 33, 21, 16, 2603, 33, 7036, 16, 8550, 33, 7036, 4672, 9163, 2463, 943, 1835, 16, 1931, 2072, 364, 279...
tbl = self["main"]
def prop_value_changed(self, prop, value, group): if group == "main": tbl = self["main"]
d74c8bfd12ad1ac99f920cfd5afb9c6a135c8a9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/d74c8bfd12ad1ac99f920cfd5afb9c6a135c8a9c/signals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2270, 67, 1132, 67, 6703, 12, 2890, 16, 2270, 16, 460, 16, 1041, 4672, 309, 1041, 422, 315, 5254, 6877, 10142, 273, 365, 9614, 5254, 11929, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2270, 67, 1132, 67, 6703, 12, 2890, 16, 2270, 16, 460, 16, 1041, 4672, 309, 1041, 422, 315, 5254, 6877, 10142, 273, 365, 9614, 5254, 11929, 2, -100, -100, -100, -100, -100, -100, -100, ...
return False return True
return False
def should_upgrade_srcarch(self, src, arch, suite): """Check if binary package should be upgraded
16f23b39ee374eb9cb3cf84a720e4f31c16e7db3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/16f23b39ee374eb9cb3cf84a720e4f31c16e7db3/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 67, 15097, 67, 4816, 991, 12, 2890, 16, 1705, 16, 6637, 16, 11371, 4672, 3536, 1564, 309, 3112, 2181, 1410, 506, 31049, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1410, 67, 15097, 67, 4816, 991, 12, 2890, 16, 1705, 16, 6637, 16, 11371, 4672, 3536, 1564, 309, 3112, 2181, 1410, 506, 31049, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
i+=1 if not ret: locations = ComputerLocationManager().getMachinesLocations(uuids) try: locations_uuid = map(lambda l: l['uuid'], locations.values()) except IndexError: locations_uuid = [] if len(locations_uuid) != len(uuids): logger.info("Some computers don't have location in the profile %s"%(profileUUID)) ret = 5 ...
i += 1 if not ret: locations = ComputerLocationManager().getMachinesLocations(uuids) try: locations_uuid = map(lambda l: l['uuid'], locations.values()) except IndexError: locations_uuid = [] if len(locations_uuid) != len(uuids): logger.info("Some computers don't have location in the profile %s"%(profileUUID)) ret = ...
def checkProfileForImaging(self, profileUUID): """ @return: 0 if the profile can be registered into the imaging module @rtype: int """ logger = logging.getLogger() ret = 0 ctx = self.currentContext uuids = map(lambda c: c.uuid, ComputerProfileManager().getProfileContent(profileUUID)) h_macaddresses = ComputerManager()....
ec0e217b7892f5164faf5f0e553fe71aed950aac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/ec0e217b7892f5164faf5f0e553fe71aed950aac/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4029, 1290, 1170, 5755, 12, 2890, 16, 3042, 5562, 4672, 3536, 632, 2463, 30, 374, 309, 326, 3042, 848, 506, 4104, 1368, 326, 709, 5755, 1605, 632, 86, 723, 30, 509, 3536, 1194, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4029, 1290, 1170, 5755, 12, 2890, 16, 3042, 5562, 4672, 3536, 632, 2463, 30, 374, 309, 326, 3042, 848, 506, 4104, 1368, 326, 709, 5755, 1605, 632, 86, 723, 30, 509, 3536, 1194, 27...
The first 9 elements make up a tuple compatible with time.mktime(), and the 10th is the offset of the poster's time zone from GMT/UTC.
The first 9 elements make up a tuple compatible with time.mktime(), and the 10th is the offset of the poster's time zone from GMT/UTC.
def getdate_tz(self, name): """Retrieve a date field from a header as a 10-tuple.
8ede07cdfca2de9fd7d4ed84bc2b545f5d60f4da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8ede07cdfca2de9fd7d4ed84bc2b545f5d60f4da/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 712, 67, 12994, 12, 2890, 16, 508, 4672, 3536, 5767, 279, 1509, 652, 628, 279, 1446, 487, 279, 1728, 17, 8052, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 712, 67, 12994, 12, 2890, 16, 508, 4672, 3536, 5767, 279, 1509, 652, 628, 279, 1446, 487, 279, 1728, 17, 8052, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
dst_base = '%s/%s/database.bak/' % (cwd, target)
dst_base = os.path.join(cwd, target, 'database.bak/')
def end_commit_on_success(self): target = self.target transaction = get_transaction()
3af7dc8c16fb53f4075f5741b4f6781bc06a78c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/3af7dc8c16fb53f4075f5741b4f6781bc06a78c4/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 7371, 67, 265, 67, 4768, 12, 2890, 4672, 1018, 273, 365, 18, 3299, 2492, 273, 336, 67, 7958, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 7371, 67, 265, 67, 4768, 12, 2890, 4672, 1018, 273, 365, 18, 3299, 2492, 273, 336, 67, 7958, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
f = gzip.GzipFile(path +"~", "w") f.write(doc.toprettyxml()) f.close()
gzipfile = gzip.GzipFile(path +"~", "w") gzipfile.write(doc.toprettyxml()) gzipfile.close()
def SaveProjectFile(self, path=None): """ Saves the project and its children as an XML file to the path specified by file. """ if not path: if not self.projectfile: raise "No save path specified!" path = self.projectfile if not path.endswith(".jokosher"): path = path + ".jokosher" #sync the transport's mode with the...
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 4109, 812, 12, 2890, 16, 589, 33, 7036, 4672, 3536, 348, 6606, 326, 1984, 471, 2097, 2325, 487, 392, 3167, 585, 358, 326, 589, 1269, 635, 585, 18, 3536, 225, 309, 486, 589, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 4109, 812, 12, 2890, 16, 589, 33, 7036, 4672, 3536, 348, 6606, 326, 1984, 471, 2097, 2325, 487, 392, 3167, 585, 358, 326, 589, 1269, 635, 585, 18, 3536, 225, 309, 486, 589, 30, ...
camera.rotation = rotation * camera.rotation
camera.rotation = camera.rotation * rotation
def do_rotation(self, drawing_area, rotation_angle, rotation_axis): camera = context.application.camera rotation = Rotation.from_properties(rotation_angle, rotation_axis, False) camera.rotation = rotation * camera.rotation drawing_area.queue_draw()
a42b78df631392cf63de3b6170e192b4b2bfb81a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/a42b78df631392cf63de3b6170e192b4b2bfb81a/transform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 18807, 12, 2890, 16, 16327, 67, 5036, 16, 6752, 67, 4341, 16, 6752, 67, 4890, 4672, 10836, 273, 819, 18, 3685, 18, 26426, 6752, 273, 15697, 367, 18, 2080, 67, 4738, 12, 18807,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18807, 12, 2890, 16, 16327, 67, 5036, 16, 6752, 67, 4341, 16, 6752, 67, 4890, 4672, 10836, 273, 819, 18, 3685, 18, 26426, 6752, 273, 15697, 367, 18, 2080, 67, 4738, 12, 18807,...
def fl_set_browser_specialkey(ob, specialkey): """ fl_set_browser_specialkey(ob, specialkey) """ _fl_set_browser_specialkey(ob, specialkey) _fl_set_browser_vscrollbar = cfuncproto(so_libforms, "fl_set_browser_vscrollbar", None, [cty.POINTER(FL_OBJECT), cty.c_int],
def fl_set_browser_specialkey(pObject, specialkey): """ fl_set_browser_specialkey(pObject, specialkey) """ _fl_set_browser_specialkey(pObject, specialkey) _fl_set_browser_vscrollbar = cfuncproto(so_libforms, "fl_set_browser_vscrollbar", None, [cty.POINTER(FL_OBJECT), cty.c_int],
def fl_set_browser_specialkey(ob, specialkey): """ fl_set_browser_specialkey(ob, specialkey) """ _fl_set_browser_specialkey(ob, specialkey)
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, 542, 67, 11213, 67, 9371, 856, 12, 947, 16, 4582, 856, 4672, 3536, 1183, 67, 542, 67, 11213, 67, 9371, 856, 12, 947, 16, 4582, 856, 13, 3536, 225, 389, 2242, 67, 542, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 11213, 67, 9371, 856, 12, 947, 16, 4582, 856, 4672, 3536, 1183, 67, 542, 67, 11213, 67, 9371, 856, 12, 947, 16, 4582, 856, 13, 3536, 225, 389, 2242, 67, 542, 67, ...
warning += [_("Relation not found: %s on '%s'") % (line[i], relation)]
warning += [_("Relation not found: %s on '%s'") % (word, relation)]
def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = [] data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in...
033179095f647798482f03b29c5f8e4a37003be6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/033179095f647798482f03b29c5f8e4a37003be6/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
val = util.expandpath(val)
if setting in ('username', 'cert', 'key'): val = util.expandpath(val)
def readauthtoken(self, uri): # Read configuration config = dict() for key, val in self.ui.configitems('auth'): if '.' not in key: self.ui.warn(_("ignoring invalid [auth] key '%s'\n") % key) continue group, setting = key.split('.', 1) gdict = config.setdefault(group, dict()) val = util.expandpath(val) gdict[setting] = ...
1976cc13d48ad6e84773a136faab4d881aece154 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/1976cc13d48ad6e84773a136faab4d881aece154/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5854, 647, 969, 12, 2890, 16, 2003, 4672, 468, 2720, 1664, 642, 273, 2065, 1435, 364, 498, 16, 1244, 316, 365, 18, 4881, 18, 1425, 3319, 2668, 1944, 11, 4672, 309, 2611, 486, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5854, 647, 969, 12, 2890, 16, 2003, 4672, 468, 2720, 1664, 642, 273, 2065, 1435, 364, 498, 16, 1244, 316, 365, 18, 4881, 18, 1425, 3319, 2668, 1944, 11, 4672, 309, 2611, 486, 316,...
def _readheader(self):
def _readheader(self):
def _readheader(self):
d9300e7ae7f704ad263013ec13346104b4bba7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9300e7ae7f704ad263013ec13346104b4bba7ba/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 3374, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 3374, 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, -10...
return field.formfield()
return field.formfield(**kwargs)
def formfield_function(field): """ Custom formfield function, so we can inject our own form fields. The mapping of model fields to form fields is defined in 'MODEL_TO_FORM_FIELD_MAP'. It uses the default django mapping as fallback, if there is no match in our custom map. field -- a model field """ for field_map in MOD...
9ec2e17699ee4431950959e7ad904b5f1fe37917 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12008/9ec2e17699ee4431950959e7ad904b5f1fe37917/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 646, 1518, 67, 915, 12, 1518, 4672, 3536, 6082, 646, 1518, 445, 16, 1427, 732, 848, 4590, 3134, 4953, 646, 1466, 18, 1021, 2874, 434, 938, 1466, 358, 646, 1466, 353, 2553, 316, 296, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 646, 1518, 67, 915, 12, 1518, 4672, 3536, 6082, 646, 1518, 445, 16, 1427, 732, 848, 4590, 3134, 4953, 646, 1466, 18, 1021, 2874, 434, 938, 1466, 358, 646, 1466, 353, 2553, 316, 296, 17...
ret = self._oleobj_.Invoke(retEntry.dispid,0,pythoncom.DISPATCH_PROPERTYGET,1)
ret = self._oleobj_.Invoke(retEntry.dispid,0,invoke_type,1)
def __call__(self): import win32com.client.util return win32com.client.util.Iterator(self.ob)
542004995f49e8eb7a2cd0cd52a1334647194bdf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/542004995f49e8eb7a2cd0cd52a1334647194bdf/dynamic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1930, 5657, 1578, 832, 18, 2625, 18, 1367, 327, 5657, 1578, 832, 18, 2625, 18, 1367, 18, 3198, 12, 2890, 18, 947, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1930, 5657, 1578, 832, 18, 2625, 18, 1367, 327, 5657, 1578, 832, 18, 2625, 18, 1367, 18, 3198, 12, 2890, 18, 947, 13, 2, -100, -100, -100, -100, -100, ...
t = arange(0,self.Nf*self.dt, self.dt)
t = arange(0,self.Nf*self.dt, self.dt)[:self.Nf]
def show_timeseries(self, ch=None): figure() t = arange(0,self.Nf*self.dt, self.dt) L = len(self.points) if ch is None: ch=self.ch for i in xrange(L): subplot(L,1,i+1); if i == 0: title("Channel: %s" % ('red', 'green')[ch]) p = self.points[i] x = self.make_timeview(p, ch) plot(t, x, color=p.get_facecolor())
f554994f47b4029c71145a5f67a152cc513a8cea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6360/f554994f47b4029c71145a5f67a152cc513a8cea/ifuncut.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 28494, 12, 2890, 16, 462, 33, 7036, 4672, 7837, 1435, 268, 273, 9660, 12, 20, 16, 2890, 18, 50, 74, 14, 2890, 18, 7510, 16, 365, 18, 7510, 13, 10531, 2890, 18, 50, 74, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 67, 28494, 12, 2890, 16, 462, 33, 7036, 4672, 7837, 1435, 268, 273, 9660, 12, 20, 16, 2890, 18, 50, 74, 14, 2890, 18, 7510, 16, 365, 18, 7510, 13, 10531, 2890, 18, 50, 74, 65...
self.factory.quit() reactor.stop()
if hasattr(self.factory, 'client'): self.factory.quit() reactor.stop()
def on_quit_activate(self, widget, data=None): self.factory.quit() reactor.stop() gtk.main_quit()
1fa4bd2d25dc17cc6ed2167ba1c3b1d0739464d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/1fa4bd2d25dc17cc6ed2167ba1c3b1d0739464d0/GtkPalantir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 27176, 67, 10014, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 309, 3859, 12, 2890, 18, 6848, 16, 296, 2625, 11, 4672, 365, 18, 6848, 18, 27176, 1435, 19178, 18, 5681, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 27176, 67, 10014, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 309, 3859, 12, 2890, 18, 6848, 16, 296, 2625, 11, 4672, 365, 18, 6848, 18, 27176, 1435, 19178, 18, 5681, 1435, ...
widgetset.Alignment.__init__(self, xalign=0.5, xscale=0.0)
widgetset.Alignment.__init__(self, xalign=0.5, xscale=0.5) self.set_padding(18)
def __init__(self, text): widgetset.Alignment.__init__(self, xalign=0.5, xscale=0.0) self.label = widgetset.Label(text) self.label.set_color((0.8, 0.8, 0.8)) self.label.set_wrap(True) self.add(self.label)
029f2a63f5bf71960d2f068dcd93aee7b14b1354 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/029f2a63f5bf71960d2f068dcd93aee7b14b1354/itemlistwidgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 977, 4672, 3604, 542, 18, 11535, 16186, 2738, 972, 12, 2890, 16, 619, 7989, 33, 20, 18, 25, 16, 619, 5864, 33, 20, 18, 25, 13, 365, 18, 542, 67, 9598...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 977, 4672, 3604, 542, 18, 11535, 16186, 2738, 972, 12, 2890, 16, 619, 7989, 33, 20, 18, 25, 16, 619, 5864, 33, 20, 18, 25, 13, 365, 18, 542, 67, 9598...
\code{cusp\_only} is True, return only a basis for the cuspidal
``cusp_only`` is True, return only a basis for the cuspidal
def victor_miller_basis(k, prec=10, cusp_only=False, var='q'): r""" Compute and return the Victor-Miller basis for modular forms of weight k and level 1 to precision $O(q^prec)$. if \code{cusp\_only} is True, return only a basis for the cuspidal subspace. INPUT: k -- an integer prec -- (default: 10) a positive intege...
ee4ef2ed2571d7a5d47eb83402ce0da607fbc323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ee4ef2ed2571d7a5d47eb83402ce0da607fbc323/vm_basis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28873, 280, 67, 81, 24462, 67, 23774, 12, 79, 16, 13382, 33, 2163, 16, 27964, 84, 67, 3700, 33, 8381, 16, 569, 2218, 85, 11, 4672, 436, 8395, 8155, 471, 327, 326, 776, 933, 280, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28873, 280, 67, 81, 24462, 67, 23774, 12, 79, 16, 13382, 33, 2163, 16, 27964, 84, 67, 3700, 33, 8381, 16, 569, 2218, 85, 11, 4672, 436, 8395, 8155, 471, 327, 326, 776, 933, 280, 17, ...
key = 'C-c n m'
key = 'C-c r n m'
def _done(self): self.interface._goto_location(self.generator.get_location())
c73bbee7e9a87e20fe1891f20558b67891c27ef6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8283/c73bbee7e9a87e20fe1891f20558b67891c27ef6/refactor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8734, 12, 2890, 4672, 365, 18, 5831, 6315, 75, 6302, 67, 3562, 12, 2890, 18, 8812, 18, 588, 67, 3562, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8734, 12, 2890, 4672, 365, 18, 5831, 6315, 75, 6302, 67, 3562, 12, 2890, 18, 8812, 18, 588, 67, 3562, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
""" Attempts to redo the last undone action.
""" Attempts to redo the last undone action.
def Redo(self): """ Attempts to redo the last undone action. """ self.__performingRedo = True if len(self.__savedRedoStack): self.__savedUndo = True cmd = self.__savedRedoStack.pop() self.ExecuteCommand(cmd) self.__savedUndo = False elif len(self.__redoStack): cmd = self.__redoStack.pop() self.ExecuteCommand(cmd) se...
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4621, 83, 12, 2890, 4672, 3536, 6020, 9585, 358, 24524, 326, 1142, 640, 8734, 1301, 18, 3536, 365, 16186, 16092, 310, 3715, 83, 273, 1053, 225, 309, 562, 12, 2890, 16186, 14077, 3715, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4621, 83, 12, 2890, 4672, 3536, 6020, 9585, 358, 24524, 326, 1142, 640, 8734, 1301, 18, 3536, 365, 16186, 16092, 310, 3715, 83, 273, 1053, 225, 309, 562, 12, 2890, 16186, 14077, 3715, 83...
st = self.stream.Status() host = macdnr.AddrToStr(st.localHost) return host, st.localPort
host, port = self.stream.GetSockName() host = macdnr.AddrToStr(host) return host, port
def getsockname(self): st = self.stream.Status() host = macdnr.AddrToStr(st.localHost) return host, st.localPort
1eff88ac701885946033367b96f6a32c8e5786df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1eff88ac701885946033367b96f6a32c8e5786df/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5571, 975, 529, 12, 2890, 4672, 1479, 16, 1756, 273, 365, 18, 3256, 18, 967, 55, 975, 461, 1435, 1479, 273, 5318, 5176, 86, 18, 3178, 774, 1585, 12, 2564, 13, 327, 1479, 16, 1756, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5571, 975, 529, 12, 2890, 4672, 1479, 16, 1756, 273, 365, 18, 3256, 18, 967, 55, 975, 461, 1435, 1479, 273, 5318, 5176, 86, 18, 3178, 774, 1585, 12, 2564, 13, 327, 1479, 16, 1756, 22...
_('Editor Id'),_('Weight'),_('Value'),_('Uses'))) + '"\n')), ('SLGM', bolt.csvFormat('sfi')+'\n', ('"' + '","'.join((_('Type'),_('Mod Name'),_('ObjectIndex'), _('Editor Id'),_('Weight'),_('Value'))) + '"\n')), ('WEAP', bolt.csvFormat('sfiiiffi')+'\n', ('"' + '","'.join((_('Type'),_('Mod Name'),_('ObjectIndex'), _('Ed...
_('Editor Id'),_('Weight'),_('Value'),_('Health'),_('Damage'),_('Clip Size'), _('Reach'), _('Ammo Use'), _('Min Spread'), _('Spread'), _('Sight Fov'), _('Base VATS To-Hit Chance'), _('Projectile Count'), _('Min Range'), _('Max Range'), _('Fire Rate'), _('Override - Action Point'), _('Rumble - Left Motor Strength'), _('...
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
f5ea6d671bff44ebfcea2d8a00654e900df7c41f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/f5ea6d671bff44ebfcea2d8a00654e900df7c41f/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15175, 329, 2673, 12, 5296, 4672, 1525, 2232, 273, 3177, 18, 2452, 1435, 1525, 2232, 18, 3804, 12, 856, 33, 14661, 279, 30, 3177, 63, 69, 6362, 20, 5717, 1525, 2232, 18, 3804, 12, 856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15175, 329, 2673, 12, 5296, 4672, 1525, 2232, 273, 3177, 18, 2452, 1435, 1525, 2232, 18, 3804, 12, 856, 33, 14661, 279, 30, 3177, 63, 69, 6362, 20, 5717, 1525, 2232, 18, 3804, 12, 856,...
stageid = "-1" if ps.exists("stageId"): stageid = ps.get("stageId") elif ps.exists("STAGEID"):
if ps.exists("STAGEID"):
def _insertRecord(self, dbTable, ps):
dcff16115fd4b90da4b2aad9583613f6ddb7920b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6552/dcff16115fd4b90da4b2aad9583613f6ddb7920b/DatabaseLogger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6387, 2115, 12, 2890, 16, 1319, 1388, 16, 4250, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6387, 2115, 12, 2890, 16, 1319, 1388, 16, 4250, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
assert len(s) == 1
def calc_max_assignment(mat): """Uses the Hungarian algorithm to find the maximum weighted perfect matching. see notes http://www.cse.ust.hk/~golin/COMP572/Notes/Matching.pdf for description of the algorithm and the notation. """ print mat dim = len(mat) # Initialization: # Assign the initial labels (all y's get 0, an...
a2ad0dee0947cbc68b1113dad3dc27777f909fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11717/a2ad0dee0947cbc68b1113dad3dc27777f909fdb/partition_dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 1896, 67, 12960, 12, 7373, 4672, 3536, 15128, 326, 670, 20651, 297, 2779, 4886, 358, 1104, 326, 4207, 13747, 24746, 3607, 18, 2621, 10913, 1062, 2207, 5591, 18, 71, 307, 18, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7029, 67, 1896, 67, 12960, 12, 7373, 4672, 3536, 15128, 326, 670, 20651, 297, 2779, 4886, 358, 1104, 326, 4207, 13747, 24746, 3607, 18, 2621, 10913, 1062, 2207, 5591, 18, 71, 307, 18, 64...
landscape_types = ['']
landscape_types = []
def downloadLocationsKml2(self, arrStakeholders='', arrSupplyChains='', arrAdministrativeLevels='', arrLandscapeTypes='', path='', geo_types=None, geo_query=None, REQUEST=None): """Returns the selected locations as a KML file""" path = path or '/' arr_geo_types = [] if arrStakeholders: arr_geo_types.extend( arrStakehol...
3f85cfac49df96fe13e920164b73bf1cc0ab4699 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/3f85cfac49df96fe13e920164b73bf1cc0ab4699/GeoMapTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 10985, 47, 781, 22, 12, 2890, 16, 2454, 510, 911, 9000, 2218, 2187, 2454, 3088, 1283, 15945, 2218, 2187, 2454, 4446, 3337, 1535, 12240, 2218, 2187, 2454, 29398, 12476, 2016, 2218, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 10985, 47, 781, 22, 12, 2890, 16, 2454, 510, 911, 9000, 2218, 2187, 2454, 3088, 1283, 15945, 2218, 2187, 2454, 4446, 3337, 1535, 12240, 2218, 2187, 2454, 29398, 12476, 2016, 2218, 21...
elif type(job) == types.InstanceType: try: job = job._toXML() except: return S_ERROR("Not valid job description")
def submitTaskToExternal(self,job): if type(job) in types.StringTypes: pass elif type(job) == types.InstanceType: try: job = job._toXML() except: return S_ERROR("Not valid job description") else: return S_ERROR("Job should be string or Job object") return self.submissionClient.submitJob(job)
f2564427ac532d2f3984ec9d123b9e89dcbe7b1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/f2564427ac532d2f3984ec9d123b9e89dcbe7b1b/TaskManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 2174, 774, 6841, 12, 2890, 16, 4688, 4672, 309, 618, 12, 4688, 13, 316, 1953, 18, 780, 2016, 30, 1342, 469, 30, 327, 348, 67, 3589, 2932, 2278, 1410, 506, 533, 578, 3956, 733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 2174, 774, 6841, 12, 2890, 16, 4688, 4672, 309, 618, 12, 4688, 13, 316, 1953, 18, 780, 2016, 30, 1342, 469, 30, 327, 348, 67, 3589, 2932, 2278, 1410, 506, 533, 578, 3956, 733, ...
gb_format = mindy_index.load_format( "Bio.GenBank.genbank_format.record_format") if hasattr(indexer, "_wanted_elements"): gb_format = Martel.select_names(gb_format, indexer._wanted_elements)
gb_format = genbank_format.record_format
def index_file_db(genbank_file, db_name, db_directory, identifier = "accession", aliases = ["locus"], keywords = []): """Index a GenBank file into a database for quick loading. WARNING: This is very experimental and subject to change. It requires the use of Andrew Dalke's mindy. This is very similar to index_file, bu...
f3cb1d095cc82799ffe4add64a377c003cdd2310 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/f3cb1d095cc82799ffe4add64a377c003cdd2310/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 768, 67, 1966, 12, 4507, 10546, 67, 768, 16, 1319, 67, 529, 16, 1319, 67, 5149, 16, 2756, 273, 315, 3860, 285, 3113, 6900, 273, 8247, 1829, 407, 6, 6487, 7093, 273, 5378, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 770, 67, 768, 67, 1966, 12, 4507, 10546, 67, 768, 16, 1319, 67, 529, 16, 1319, 67, 5149, 16, 2756, 273, 315, 3860, 285, 3113, 6900, 273, 8247, 1829, 407, 6, 6487, 7093, 273, 5378, 46...
raise IOError, "end of file reached"
raise IOError("end of file reached")
def copyfileobj(src, dst, length=None): """Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. """ if length == 0: return if length is None: shutil.copyfileobj(src, dst) return BUFSIZE = 16 * 1024 blocks, remainder = divmod(length, BUFSIZE) for b in xrange(blocks): buf = src....
9d576e732e0c14bd37ecb65d8001d6f596cc8566 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9d576e732e0c14bd37ecb65d8001d6f596cc8566/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 76...
of.write("%s %s\n" % (hash, fpath))
of.write("%s %s\n" % (hash, fpath))
def manifest(self,path): from os.path import join, getsize cfiles = 0 mname = '%s.manifest' % time.strftime('%d-%B-%Y',time.gmtime()) of = file(mname, 'w+') if os.path.isdir(path): for root, dirs, files in os.walk(path): self.progress(' Please wait, getting initial file count (%s) ...' % (cfiles)) #get count first loo...
41fd1f03fbaab94cfd73f3cdb57c7814f7f45e9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14038/41fd1f03fbaab94cfd73f3cdb57c7814f7f45e9b/sysadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5643, 12, 2890, 16, 803, 4672, 628, 1140, 18, 803, 1930, 1233, 16, 30208, 276, 2354, 273, 374, 312, 529, 273, 1995, 87, 18, 14357, 11, 738, 813, 18, 701, 9982, 29909, 72, 6456, 38, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5643, 12, 2890, 16, 803, 4672, 628, 1140, 18, 803, 1930, 1233, 16, 30208, 276, 2354, 273, 374, 312, 529, 273, 1995, 87, 18, 14357, 11, 738, 813, 18, 701, 9982, 29909, 72, 6456, 38, 6...
eq(msg.get_param('title', unquote=0),
eq(msg.get_param('title', unquote=False),
def test_get_param(self): eq = self.assertEqual msg = self._msgobj('msg_29.txt') eq(msg.get_param('title'), ('us-ascii', 'en', 'This is even more ***fun*** isn\'t it!')) eq(msg.get_param('title', unquote=0), ('us-ascii', 'en', '"This is even more ***fun*** isn\'t it!"'))
1abdc903fc08a89b4695728d372aaf3594fcb8c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1abdc903fc08a89b4695728d372aaf3594fcb8c8/test_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 891, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 1234, 273, 365, 6315, 3576, 2603, 2668, 3576, 67, 5540, 18, 5830, 6134, 7555, 12, 3576, 18, 588, 67, 891, 2668,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 891, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 1234, 273, 365, 6315, 3576, 2603, 2668, 3576, 67, 5540, 18, 5830, 6134, 7555, 12, 3576, 18, 588, 67, 891, 2668,...
return '"%s" "%s" "%s"\n' % (modname, filename, desc)
return '"%s" "%s" "%s" "%s"\n' % (modname, filename, desc, packages)
def processModuleFile(file, bool_docbook, bool_linuxdoc): ''' process module file and get a line of result Declare lines look like this: \DeclareLyXModule[LaTeX Packages]{Description}{ModuleName}... We expect output: "ModuleName" "filename" "Description" " ''' p = re.compile(r'\DeclareLyXModule\s*(?:\[([^]]*)\])?{(.*)...
7f17f13bfc2ad4e7cdd8ecfce23374e2b3d0c646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/7f17f13bfc2ad4e7cdd8ecfce23374e2b3d0c646/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3120, 812, 12, 768, 16, 1426, 67, 2434, 3618, 16, 1426, 67, 20132, 2434, 4672, 9163, 1207, 1605, 585, 471, 336, 279, 980, 434, 563, 225, 16110, 834, 2362, 2324, 3007, 333, 30, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3120, 812, 12, 768, 16, 1426, 67, 2434, 3618, 16, 1426, 67, 20132, 2434, 4672, 9163, 1207, 1605, 585, 471, 336, 279, 980, 434, 563, 225, 16110, 834, 2362, 2324, 3007, 333, 30, 52...
name = wx.TextCtrl(self.panel, -1, '') value = wx.TextCtrl(self.panel, -1, '') self.notebox.Add(name) self.notebox.Add(value)
name = wx.TextCtrl(self.panel, -1, '', style=wx.TE_MULTILINE) value = wx.TextCtrl(self.panel, -1, '', style=wx.TE_MULTILINE) self.notebox.Add(name, 1 , wx.EXPAND) self.notebox.Add(value, 1, wx.EXPAND)
def __init__(self, group, model, group_name = 'default', annotations = None): wx.Frame.__init__(self, None, -1, "Annotations for " + group_name,style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER ) self.panel = wx.ScrolledWindow(self, -1, size = self.GetSize() , style = wx.DEFAULT | wx.VSCROLL) self.panel.SetScrollRate(5...
a3462e48af75e067438fec73b10d52e273f6ac10 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9486/a3462e48af75e067438fec73b10d52e273f6ac10/AnnotateFrame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1041, 16, 938, 16, 1041, 67, 529, 273, 296, 1886, 2187, 5617, 273, 599, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1041, 16, 938, 16, 1041, 67, 529, 273, 296, 1886, 2187, 5617, 273, 599, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 315...
if len(readset) < 1 or not self.sock in readset[0]: if len(readset) < 1: print "select() returns " + str(len(readset))
if len(readset[0]) < 1 or not self.sock in readset[0]: if len(readset[0]) < 1: print "select() timeout"
def wait_msg_from(self, timeout): endtime = time.time() + timeout msg = "" src_addr = None while time.time() < endtime: readset = select([self.sock], [], [], timeout) if len(readset) < 1 or not self.sock in readset[0]: if len(readset) < 1: print "select() returns " + str(len(readset)) elif not self.sock in readset[0]: ...
56401b57e236898d44fcdc21d7b853dd0c577d99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4447/56401b57e236898d44fcdc21d7b853dd0c577d99/inc_sip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 3576, 67, 2080, 12, 2890, 16, 2021, 4672, 31361, 273, 813, 18, 957, 1435, 397, 2021, 1234, 273, 1408, 1705, 67, 4793, 273, 599, 1323, 813, 18, 957, 1435, 411, 31361, 30, 855,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 3576, 67, 2080, 12, 2890, 16, 2021, 4672, 31361, 273, 813, 18, 957, 1435, 397, 2021, 1234, 273, 1408, 1705, 67, 4793, 273, 599, 1323, 813, 18, 957, 1435, 411, 31361, 30, 855,...
self._fix_sentence_endings(chunks)
if self.fix_sentence_endings: self._fix_sentence_endings(chunks)
def wrap (self, text, width): """wrap(text : string, width : int) -> [string]
62e4f3bf224d6a3a17c04524a674caaa14270753 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/62e4f3bf224d6a3a17c04524a674caaa14270753/textwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 261, 2890, 16, 977, 16, 1835, 4672, 3536, 4113, 12, 955, 294, 533, 16, 1835, 294, 509, 13, 317, 306, 1080, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 261, 2890, 16, 977, 16, 1835, 4672, 3536, 4113, 12, 955, 294, 533, 16, 1835, 294, 509, 13, 317, 306, 1080, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
T.sum(self.input*T.log(T.sigmoid(pre_sigmoid_nv)) + (1 - self.input)*T.log(1-T.sigmoid(pre_sigmoid_nv)), axis = 1))
T.sum(self.input*T.log(T.nnet.sigmoid(pre_sigmoid_nv)) + (1 - self.input)*T.log(1-T.nnet.sigmoid(pre_sigmoid_nv)), axis = 1))
def get_reconstruction_cost(self, updates, pre_sigmoid_nv): """Approximation to the reconstruction error Note that this function requires the pre-sigmoid activation as input. To understand why this is so you need to understand a bit about how Theano works. Whenever you compile a Theano function, the computational grap...
e03eab8818b87fa4258cbe5b8ddf4ddf2fea943d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/242/e03eab8818b87fa4258cbe5b8ddf4ddf2fea943d/rbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 266, 591, 4549, 67, 12398, 12, 2890, 16, 4533, 16, 675, 67, 7340, 30501, 67, 16588, 4672, 3536, 25789, 5115, 358, 326, 25792, 4549, 555, 225, 3609, 716, 333, 445, 4991, 326, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 266, 591, 4549, 67, 12398, 12, 2890, 16, 4533, 16, 675, 67, 7340, 30501, 67, 16588, 4672, 3536, 25789, 5115, 358, 326, 25792, 4549, 555, 225, 3609, 716, 333, 445, 4991, 326, 6...
log.info('Following %s' % package.getPackageName())
if _checkTrove(package.getDownstreamNameVersionFlavor()): log.info('Following %s' % package.getPackageName()) included = True else: log.info('Following non-buildable %s' % package.getPackageName()) included = False
def _build(name, version, flavor, parent=None): ''' Helper: creates a BobPackage from a NVF and adds it to I{buildPackages} '''
cdb73b21ab2cd32441facbec22ce8ee78466191f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7644/cdb73b21ab2cd32441facbec22ce8ee78466191f/recurse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 12, 529, 16, 1177, 16, 19496, 16, 982, 33, 7036, 4672, 9163, 9705, 30, 3414, 279, 605, 947, 2261, 628, 279, 423, 58, 42, 471, 4831, 518, 358, 467, 95, 3510, 11425, 97, 916...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 12, 529, 16, 1177, 16, 19496, 16, 982, 33, 7036, 4672, 9163, 9705, 30, 3414, 279, 605, 947, 2261, 628, 279, 423, 58, 42, 471, 4831, 518, 358, 467, 95, 3510, 11425, 97, 916...
'Subgroup of Mordell Weil group: [[1:-1:1], [-2:3:1], [-14:25:8]]' """ return "Subgroup of Mordell Weil group: %s"%self.__mw
'Subgroup of Mordell-Weil group: [[1:-1:1], [-2:3:1], [-14:25:8]]' """ return "Subgroup of Mordell-Weil group: %s"%self.__mw
def __repr__(self): r""" String representation of this Mordell-Weil subgroup.
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 436, 8395, 514, 4335, 434, 333, 490, 517, 1165, 17, 3218, 330, 720, 1655, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 436, 8395, 514, 4335, 434, 333, 490, 517, 1165, 17, 3218, 330, 720, 1655, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
connection = self._getConnection( connection )
def getFileMetadata( self, lfns, connection = False ): connection = self._getConnection( connection ) """ Get file metadata from the catalog """ #TO DO, should check whether it is a directory if it fails return self._findFiles( lfns, ['Size', 'Checksum', 'ChecksumType', 'UID', 'GID', 'GUID', 'CreationDate', 'Modificati...
730c8c8e8acbd225fa02fcc8d670bcbd786db665 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/730c8c8e8acbd225fa02fcc8d670bcbd786db665/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 2277, 12, 365, 16, 18594, 2387, 16, 1459, 273, 1083, 262, 30, 3536, 968, 585, 1982, 628, 326, 6222, 3536, 468, 4296, 5467, 16, 1410, 866, 2856, 518, 353, 279, 1867, 309, 518, 668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 2277, 12, 365, 16, 18594, 2387, 16, 1459, 273, 1083, 262, 30, 3536, 968, 585, 1982, 628, 326, 6222, 3536, 468, 4296, 5467, 16, 1410, 866, 2856, 518, 353, 279, 1867, 309, 518, 668...
"Updated rowcount %d does not match number of objects updated %d" %
"Updated rowcount %d does not match number " "of objects updated %d" %
def _save_obj(self, states, uowtransaction, postupdate=False, post_update_cols=None, single=False): """Issue ``INSERT`` and/or ``UPDATE`` statements for a list of objects.
dfab13e9ae147a7112a23db5abc4e4b7addc00fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/dfab13e9ae147a7112a23db5abc4e4b7addc00fa/mapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 2603, 12, 2890, 16, 5493, 16, 18215, 7958, 16, 1603, 2725, 33, 8381, 16, 1603, 67, 2725, 67, 6842, 33, 7036, 16, 2202, 33, 8381, 4672, 3536, 12956, 12176, 11356, 10335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 2603, 12, 2890, 16, 5493, 16, 18215, 7958, 16, 1603, 2725, 33, 8381, 16, 1603, 67, 2725, 67, 6842, 33, 7036, 16, 2202, 33, 8381, 4672, 3536, 12956, 12176, 11356, 10335, ...
mmctools.shlaunchBackground(cmd+" "+share+" "+savedir+" "+destpath+" "+login+" "+media+" "+path,"backup share "+share, mmctools.progressBackup)
mmctools.shlaunchBackground(cmd + " " + share + " " + savedir + " " + config.backupdir + " " + login + " " + media + " " + config.backuptools, "backup share " + share, mmctools.progressBackup) return os.path.join(config.backupdir, "%s-%s-%s" % (login, share, strftime("%Y%m%d")))
def backupShare(share, media, login): """ Launch as a background process the backup of a share """ smbObj = smbConf(SambaConfig("samba").samba_conf_file) configParser = mmctools.getConfigParser("base") path = configParser.get("backup-tools", "path") destpath = configParser.get("backup-tools", "destpath") cmd = os.path....
c5ee6cc2e8795515d3d7f73959a2ddce218ebca8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/c5ee6cc2e8795515d3d7f73959a2ddce218ebca8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 9535, 12, 14419, 16, 3539, 16, 3925, 4672, 3536, 14643, 487, 279, 5412, 1207, 326, 5114, 434, 279, 7433, 3536, 272, 1627, 2675, 273, 272, 1627, 3976, 12, 55, 2536, 69, 809, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 9535, 12, 14419, 16, 3539, 16, 3925, 4672, 3536, 14643, 487, 279, 5412, 1207, 326, 5114, 434, 279, 7433, 3536, 272, 1627, 2675, 273, 272, 1627, 3976, 12, 55, 2536, 69, 809, 2932, ...
return _urlopener.open(url)
return opener.open(url)
def urlopen(url, data=None): """urlopen(url [, data]) -> open file-like object""" global _urlopener if not _urlopener: _urlopener = FancyURLopener() if data is None: return _urlopener.open(url) else: return _urlopener.open(url, data)
542a95920c653ebd9e517166454699eb2e163a0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/542a95920c653ebd9e517166454699eb2e163a0a/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19613, 12, 718, 16, 501, 33, 7036, 4672, 3536, 295, 18589, 12, 718, 306, 16, 501, 5717, 317, 1696, 585, 17, 5625, 733, 8395, 2552, 389, 295, 16884, 708, 309, 486, 389, 295, 16884, 708,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19613, 12, 718, 16, 501, 33, 7036, 4672, 3536, 295, 18589, 12, 718, 306, 16, 501, 5717, 317, 1696, 585, 17, 5625, 733, 8395, 2552, 389, 295, 16884, 708, 309, 486, 389, 295, 16884, 708,...
' bc ' : ' ', ' browse-only-indx ' : ' ', ' coden ' : ' ', ' journal-coden ' : ' ',
'bc' : '', 'browse-only-indx' : '', 'coden' : '', 'journal-coden' : '',
def __init__(self, message): """Initialization.""" self.message = message
9ac6f199aca80bde5350b014ceb25041ee84876b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/9ac6f199aca80bde5350b014ceb25041ee84876b/search_engine_query_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 3536, 17701, 12123, 365, 18, 2150, 273, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 4672, 3536, 17701, 12123, 365, 18, 2150, 273, 883, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
('ShowMenu', None, _('Show Menu'), 'Menu', None, self.menu_show_cb),
('ShowMenu', None, _('Show Menu'), 'Menu', None, self.popupmenu_show_cb),
def init_actions(self): actions = [ # name, stock id, label, accelerator, tooltip, callback ('FileMenu', None, _('File')), ('Quit', gtk.STOCK_QUIT, _('Quit'), '<control>q', None, self.quit_cb),
29fd1831807099c0c7e39f4892fe14b3123b0c64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/29fd1831807099c0c7e39f4892fe14b3123b0c64/drawwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 4905, 12, 2890, 4672, 4209, 273, 306, 468, 508, 16, 12480, 612, 16, 1433, 16, 15153, 7385, 16, 11915, 16, 1348, 7707, 812, 4599, 2187, 377, 599, 16, 389, 2668, 812, 6134, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 67, 4905, 12, 2890, 4672, 4209, 273, 306, 468, 508, 16, 12480, 612, 16, 1433, 16, 15153, 7385, 16, 11915, 16, 1348, 7707, 812, 4599, 2187, 377, 599, 16, 389, 2668, 812, 6134, 363...
def __init__(self, parent, value):
def __init__(self, parent, value, check=True):
def __init__(self, parent, value): """ Create element of a finite field.
8d181bb00c9bd168ced2431def3272204f314e77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8d181bb00c9bd168ced2431def3272204f314e77/finite_field_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 460, 16, 866, 33, 5510, 4672, 3536, 1788, 930, 434, 279, 25922, 652, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 460, 16, 866, 33, 5510, 4672, 3536, 1788, 930, 434, 279, 25922, 652, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
product=self.aq_inner.aq_parent.id,
product=product,
def _unregister(self):
fb1b39c9b03ed638e715aa3ed10bdc8cc6b187dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fb1b39c9b03ed638e715aa3ed10bdc8cc6b187dc/ZClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 4861, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 4861, 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, -10...