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
"""
"""
def flimage_delete_all_markers(pImage): """ flimage_delete_all_markers(pImage) """ _flimage_delete_all_markers(pImage)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 3733, 67, 454, 67, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 3733, 67, 454, 67, 22807, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 3733, 67, 454, 67, 228...
raise AttributeError(_('Unknown attribute % in % ') % (name,self._id))
logger = netsvc.Logger() logger.notifyChannel("browse_record", netsvc.LOG_ERROR,"Ffields: %s, datas: %s"%(str(fffields),str(datas))) logger.notifyChannel("browse_record", netsvc.LOG_ERROR,"Data: %s, Table: %s"%(str(self._data[self._id]),str(self._table))) raise AttributeError(_('Unknown attribute %s in %s ') % (str(nam...
def __getitem__(self, name): if name == 'id': return self._id if not name in self._data[self._id]: # build the list of fields we will fetch
5d17809f5269c1891e570095686b8c768b9188fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/5d17809f5269c1891e570095686b8c768b9188fc/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 486, 508, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 486, 508, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
'reply_to':fields.char('Reply-To', size=250,
'reply_to':fields.char('Reply-To', size=250,
def _default_model(self, cursor, user, context=None): """ Returns the default value for model field @param cursor: Database Cursor @param user: ID of current user @param context: OpenERP Context """ return self.pool.get('email.template').read( cursor, user, context['template_id'], ['object_name'], context)['object_name...
c73e17329c92d262f57a45e57664e059f5ce62c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c73e17329c92d262f57a45e57664e059f5ce62c3/email_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 67, 2284, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 3536, 2860, 326, 805, 460, 364, 938, 652, 632, 891, 3347, 30, 5130, 13949, 632, 891, 729, 30, 1599, 434, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1886, 67, 2284, 12, 2890, 16, 3347, 16, 729, 16, 819, 33, 7036, 4672, 3536, 2860, 326, 805, 460, 364, 938, 652, 632, 891, 3347, 30, 5130, 13949, 632, 891, 729, 30, 1599, 434, 78...
"", "", "dvn",
self._last_fileselector_dir, "", "dvn",
def _fileOpenCallback(self, event): filename = wx.FileSelector( "Choose DeVIDE network to load", "", "", "dvn", "DeVIDE networks (*.dvn)|*.dvn|All files (*.*)|*.*", wx.OPEN) if filename: self.clearAllGlyphsFromCanvas() self._loadAndRealiseNetwork(filename) # make sure that the newly realised network is nicely in # vie...
1f20840b07ede703da0177ec1a21cff6547f16b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/1f20840b07ede703da0177ec1a21cff6547f16b4/graph_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 768, 3678, 2428, 12, 2890, 16, 871, 4672, 1544, 273, 7075, 18, 812, 4320, 12, 315, 24529, 1505, 58, 10385, 2483, 358, 1262, 3113, 365, 6315, 2722, 67, 2354, 292, 1229, 67, 1214, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 3678, 2428, 12, 2890, 16, 871, 4672, 1544, 273, 7075, 18, 812, 4320, 12, 315, 24529, 1505, 58, 10385, 2483, 358, 1262, 3113, 365, 6315, 2722, 67, 2354, 292, 1229, 67, 1214, 1...
discard_index, k_offset):
discard_index, k_offset, cost):
def _find_diagonal(minimum, maximum, k, best, diagoff, vector, vdiff_func, check_x_range, check_y_range, discard_index, k_offset): for d in xrange(maximum, minimum - 1, -2): dd = d - k x = vector[diagoff + d] y = x - d v = vdiff_func(x) * 2 + dd
b916ddeca30cdfdaf0e81e61e8f674df1d86691a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/b916ddeca30cdfdaf0e81e61e8f674df1d86691a/myersdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 30130, 12, 15903, 16, 4207, 16, 417, 16, 3796, 16, 6643, 3674, 16, 3806, 16, 331, 5413, 67, 644, 16, 866, 67, 92, 67, 3676, 16, 866, 67, 93, 67, 3676, 16, 10388, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 67, 30130, 12, 15903, 16, 4207, 16, 417, 16, 3796, 16, 6643, 3674, 16, 3806, 16, 331, 5413, 67, 644, 16, 866, 67, 92, 67, 3676, 16, 866, 67, 93, 67, 3676, 16, 10388, 67,...
"\s*\d+: (B|W) (%s)\s+(Y|N) \[([a-z ]{3})\s+(\d+)\s+(\d+)\]\s+(\d+)-(\d+)\s+(W|B)(\d+)\s+(\?\?\?|[A-Z]\d+)\s+(%s)\s+(%s)\s+(\d+),\s+(\d+):(\d+)\s+([A-Z\?]+)\s+(\d{4})" %
"\s*\d+: (B|W) (%s)\s+(Y|N) \[([a-z ]{3})\s+(\d+)\s+(\d+)\]\s+(\d+)-(\d+)\s+(W|B)(\d+)\s+(---|\?\?\?|[A-Z]\d+)\s+(%s)\s+(%s)\s+(\d+),\s+(\d+):(\d+)\s+([A-Z\?]+)\s+(\d{4})" %
def __init__ (self, connection): GObject.__init__(self) self.connection = connection self.connection.expect_line (self.__onStoredResponseNO, "%s has no adjourned games\." % self.connection.username) self.connection.expect_fromto (self.__onSmovesResponse, "Move\s+(%s)\s+(%s)" % (names,names), "{(.*[gG]ame adjourned.*...
c055f7dc6c6e350342cd81929a5ef1a16ad6899d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/c055f7dc6c6e350342cd81929a5ef1a16ad6899d/AdjournManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1459, 4672, 611, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 4071, 273, 1459, 225, 365, 18, 4071, 18, 12339, 67, 1369, 261, 2890, 16186, 265, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1459, 4672, 611, 921, 16186, 2738, 972, 12, 2890, 13, 225, 365, 18, 4071, 273, 1459, 225, 365, 18, 4071, 18, 12339, 67, 1369, 261, 2890, 16186, 265, 180...
self.worker.flush = True self.worker.process()
if not self.worker.xmds == None: self.worker.flush = True self.worker.process()
def flush(self): self.worker.flush = True self.worker.process()
fac10bc93468af9ed5b258f8456ca26343f99677 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5464/fac10bc93468af9ed5b258f8456ca26343f99677/XiboClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 365, 18, 10124, 18, 11330, 273, 1053, 365, 18, 10124, 18, 2567, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 365, 18, 10124, 18, 11330, 273, 1053, 365, 18, 10124, 18, 2567, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
doc.AddItem(Link('%s/%s' % (mlist.GetRelativeScriptURL('admin'), category),
doc.AddItem(Link('%s/%s' % (mlist.GetScriptURL('admin'), category),
def FormatOptionHelp(doc, varref, mlist): item = None reflist = string.split(varref, '/') if len(reflist) == 2: category, varname = reflist options = GetConfigOptions(mlist, category) for i in options: if i and i[0] == varname: item = i break if not item: bad = ("Option %s/%s not found. %s" % (category, varname, os.env...
d772bed94c30a1a03262a0ff02987a6c5643a380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d772bed94c30a1a03262a0ff02987a6c5643a380/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 1895, 6696, 12, 2434, 16, 569, 1734, 16, 312, 1098, 4672, 761, 273, 599, 1278, 1098, 273, 533, 18, 4939, 12, 1401, 1734, 16, 2023, 13, 309, 562, 12, 1734, 1098, 13, 422, 576, 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, 4077, 1895, 6696, 12, 2434, 16, 569, 1734, 16, 312, 1098, 4672, 761, 273, 599, 1278, 1098, 273, 533, 18, 4939, 12, 1401, 1734, 16, 2023, 13, 309, 562, 12, 1734, 1098, 13, 422, 576, 3...
FL_Coord, STRING],
FL_Coord, STRING],
def fl_create_bitmap(type, x, y, w, h, label): """ fl_create_bitmap(type, x, y, w, h, label) -> object """ retval = _fl_create_bitmap(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 3682, 1458, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, ...
f.write(fmt % (self.stationlist[i], 'P', date, delta,
f.write(fmt % (self.dicts[i]['Station'], 'P', date, delta,
def do3dLoc(self): self.xmlEventID = '%i' % time.time() subprocess.call(self.threeDlocPreCall, shell = True) f = open(self.threeDlocInfile, 'w') network = "BW" fmt = "%04s %s %s %5.3f -999.0 0.000 -999. 0.000 T__DR_ %9.6f %9.6f %8.6f\n" self.coords = [] for i in range(len(self.streams)): #lon, lat, ele = getCoo...
50570db0175b1852c554a55b2bd91b8f3d8fb93f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/50570db0175b1852c554a55b2bd91b8f3d8fb93f/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 23, 72, 1333, 12, 2890, 4672, 365, 18, 2902, 1133, 734, 273, 1995, 77, 11, 738, 813, 18, 957, 1435, 6652, 18, 1991, 12, 2890, 18, 451, 992, 40, 1829, 1386, 1477, 16, 5972, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 23, 72, 1333, 12, 2890, 4672, 365, 18, 2902, 1133, 734, 273, 1995, 77, 11, 738, 813, 18, 957, 1435, 6652, 18, 1991, 12, 2890, 18, 451, 992, 40, 1829, 1386, 1477, 16, 5972, 273, ...
def JSDocTypeString(type_defn): """Gets the representation of a type in JSDoc notation. Args: type_defn: a Definition for the type. Returns: a string that is the JSDoc notation of type_defn. """ type_defn = type_defn.GetFinalType() type_stack = type_defn.GetParentScopeStack() name = type_defn.name return '!' + '.'....
def CppGetStatic(scope, type_defn, field): """Gets the representation of an expression getting a static field. Args: scope: a Definition for the scope in which the expression will be written. type_defn: a Definition, representing the type of the object containing the field being retrieved. field: a string, the name of...
3d476cf047d6a463d5706f70bfdf5e3787f863ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/3d476cf047d6a463d5706f70bfdf5e3787f863ee/o3d_binding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 385, 11858, 967, 5788, 12, 4887, 16, 618, 67, 536, 82, 16, 652, 4672, 3536, 3002, 326, 4335, 434, 392, 2652, 8742, 279, 760, 652, 18, 225, 6634, 30, 2146, 30, 279, 10849, 364, 326, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 385, 11858, 967, 5788, 12, 4887, 16, 618, 67, 536, 82, 16, 652, 4672, 3536, 3002, 326, 4335, 434, 392, 2652, 8742, 279, 760, 652, 18, 225, 6634, 30, 2146, 30, 279, 10849, 364, 326, 2...
ValueError: The given string does not only contain 0 and 1 """
ValueError: Input must be a binary string. """
def decode(self, string): r""" Returns a decoded version of the given string corresponding to the current encoding table.
1b9c6cbddf459d54e7643b46fc74830b6a3ea80c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b9c6cbddf459d54e7643b46fc74830b6a3ea80c/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 533, 4672, 436, 8395, 2860, 279, 6383, 1177, 434, 326, 864, 533, 4656, 358, 326, 783, 2688, 1014, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2495, 12, 2890, 16, 533, 4672, 436, 8395, 2860, 279, 6383, 1177, 434, 326, 864, 533, 4656, 358, 326, 783, 2688, 1014, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
stripefoot = '";'
stripefoot = '"\n'
def flatten(self, stripeset, depth=0, context="show"): """Converts a stripe or stripeset into a string"""
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 2, -100, -100, -100, -100, -100, ...
def forget_items(self, item_list): for item in item_list: del self.positions[item.id]
def forget_items(self, id_list): for id in id_list: del self.positions[id]
def forget_items(self, item_list): for item in item_list: del self.positions[item.id]
8b3233d5e351708d470edc8ec98cd6860ccfa3c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/8b3233d5e351708d470edc8ec98cd6860ccfa3c9/playlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 67, 3319, 12, 2890, 16, 761, 67, 1098, 4672, 364, 761, 316, 761, 67, 1098, 30, 1464, 365, 18, 12388, 63, 1726, 18, 350, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13776, 67, 3319, 12, 2890, 16, 761, 67, 1098, 4672, 364, 761, 316, 761, 67, 1098, 30, 1464, 365, 18, 12388, 63, 1726, 18, 350, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not url.startswith('http') and self.ssl:
if url.startswith('http:') and self.ssl: url = atom.url.parse_url('https:' + url[5:]) elif not url.startswith('http') and self.ssl:
def request(self, operation, url, data=None, headers=None, url_params=None): if isinstance(url, (str, unicode)): if not url.startswith('http') and self.ssl: url = atom.url.parse_url('https://%s%s' % (self.server, url)) elif not url.startswith('http'): url = atom.url.parse_url('http://%s%s' % (self.server, url)) else: u...
ea2f7e8127b31a28e10b760816bd093d8a946c1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/ea2f7e8127b31a28e10b760816bd093d8a946c1e/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 1674, 16, 880, 16, 501, 33, 7036, 16, 1607, 33, 7036, 16, 880, 67, 2010, 33, 7036, 4672, 309, 1549, 12, 718, 16, 261, 701, 16, 5252, 3719, 30, 309, 880, 18, 1751...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 590, 12, 2890, 16, 1674, 16, 880, 16, 501, 33, 7036, 16, 1607, 33, 7036, 16, 880, 67, 2010, 33, 7036, 4672, 309, 1549, 12, 718, 16, 261, 701, 16, 5252, 3719, 30, 309, 880, 18, 1751...
warn = 'No Systems compatible with distro %s' % distro_install_name
warn = 'No Systems compatible with distro %s' % distro.install_name
def reserve_link(x,distro): if x.is_free(): return make_link("/reserveworkflow/reserve?system_id=%s&distro_id=%s" % (Utility.get_correct_system_column(x).id,distro), 'Reserve Now') else: return make_link("/reserveworkflow/reserve?system_id=%s&distro_id=%s" % (Utility.get_correct_system_column(x).id,distro), 'Queue Rese...
5c77e791bdcee2227c2fc9b01719b478d23fa9eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/5c77e791bdcee2227c2fc9b01719b478d23fa9eb/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20501, 67, 1232, 12, 92, 16, 4413, 303, 4672, 309, 619, 18, 291, 67, 9156, 13332, 327, 1221, 67, 1232, 2932, 19, 455, 264, 90, 359, 778, 2426, 19, 455, 6527, 35, 4299, 67, 350, 5095,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20501, 67, 1232, 12, 92, 16, 4413, 303, 4672, 309, 619, 18, 291, 67, 9156, 13332, 327, 1221, 67, 1232, 2932, 19, 455, 264, 90, 359, 778, 2426, 19, 455, 6527, 35, 4299, 67, 350, 5095,...
return sorted(p_list, key=lambda obj: isinstance(obj, str) and \ force_to_unicode(getattr(obj, p_attr, '')) or \ getattr(obj, p_attr, None), reverse=bool(p_desc))
def sort_key(obj): attr = getattr(obj, p_attr, None) if isinstance(attr, basestring): return force_to_unicode(attr) else: return attr return sorted(p_list, key=sort_key, reverse=bool(p_desc))
def utSortObjsListByAttr(self, p_list, p_attr, p_desc=1): """Sort a list of objects by an attribute values""" return sorted(p_list, key=lambda obj: isinstance(obj, str) and \ force_to_unicode(getattr(obj, p_attr, '')) or \ getattr(obj, p_attr, None), reverse=bool(p_desc))
ea85247a98528b7c1a1b53b5d815da61fe4e306e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/ea85247a98528b7c1a1b53b5d815da61fe4e306e/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5218, 4416, 2675, 21576, 858, 3843, 12, 2890, 16, 293, 67, 1098, 16, 293, 67, 1747, 16, 293, 67, 5569, 33, 21, 4672, 3536, 4416, 279, 666, 434, 2184, 635, 392, 1566, 924, 8395, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5218, 4416, 2675, 21576, 858, 3843, 12, 2890, 16, 293, 67, 1098, 16, 293, 67, 1747, 16, 293, 67, 5569, 33, 21, 4672, 3536, 4416, 279, 666, 434, 2184, 635, 392, 1566, 924, 8395, 327, ...
self.assertRaises(ValueError, time.strftime, '',
self.assertRaises(ValueError, func,
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple (0 is valid for *all* values).
e5bdf5740529b4ba238a2559495df94fbf74c768 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e5bdf5740529b4ba238a2559495df94fbf74c768/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 261, 20, 353, 923, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 261, 20, 353, 923, 364, ...
def btnActivate_clicked(self,widget): self.writeSettings() def btnClose_clicked(self,widget):
def event_settings_changed(self,widget, data = None): if self.gone_live: self.writeSettings() pass def btnClose_clicked(self,widget, data = None):
def btnActivate_clicked(self,widget): self.writeSettings()
3397f9f1c50ccb125dcd8c579936e104f847d2d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/61/3397f9f1c50ccb125dcd8c579936e104f847d2d3/proximity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10638, 21370, 67, 7475, 329, 12, 2890, 16, 6587, 4672, 365, 18, 2626, 2628, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10638, 21370, 67, 7475, 329, 12, 2890, 16, 6587, 4672, 365, 18, 2626, 2628, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
keepalive = peer.hold_time / 3.0
keepalive = self._HoldTime(peer.address) / 3.0
def msg_send_timeout(): message = protocol.Message('HEARTBEAT') message.args.id_ = self.node.id_ self.SendToPeer(peer, message)
03c07bb2808d7efccee059a822635f1fd287f271 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/03c07bb2808d7efccee059a822635f1fd287f271/nodeconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1234, 67, 4661, 67, 4538, 13332, 883, 273, 1771, 18, 1079, 2668, 3900, 4928, 5948, 789, 6134, 883, 18, 1968, 18, 350, 67, 273, 365, 18, 2159, 18, 350, 67, 365, 18, 3826, 774, 6813, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1234, 67, 4661, 67, 4538, 13332, 883, 273, 1771, 18, 1079, 2668, 3900, 4928, 5948, 789, 6134, 883, 18, 1968, 18, 350, 67, 273, 365, 18, 2159, 18, 350, 67, 365, 18, 3826, 774, 6813, 1...
[{'width': 420.0-380.0, 'line_width': 1.0, 'height': 380.0-180.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xffff0cA0L, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'tool': 'LINE', 'points': (360.0, 80.0, 400.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': 707406591L}, {'radius_x': 100, 'line_width': 1.0, 'ra...
[{'width': 420.0-380.0, 'line_width': 1.0, 'height': 380.0-180.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_YELLOW|C_FILL, 'y': 180.0, 'tool': 'FILL_RECT', 'x': 380.0}, {'tool': 'LINE', 'points': (360.0, 80.0, 400.0, 180.0), 'line_width': 8.0, 'stroke_color_rgba': C_STROKE}, {'radius_x': 100, 'line_width': 1....
def init_item_list(self):
afe6d4cfa4a483507d506d63168d467aba7acf11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11306/afe6d4cfa4a483507d506d63168d467aba7acf11/redraw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1726, 67, 1098, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1208, 67, 1726, 67, 1098, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
S -- a finite iterable defining the S-box with integer or finite field elements big_endian -- controls whether bits shall be ordered in big endian order (default: True)
- ``S`` - a finite iterable defining the S-box with integer or finite field elements - ``big_endian`` - controls whether bits shall be ordered in big endian order (default: ``True``)
def __init__(self, *args, **kwargs): """ Construct a substitution box (S-box) for a given lookup table $S$.
16527da1ddc0ac750f609cd58858c5b45d932696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/16527da1ddc0ac750f609cd58858c5b45d932696/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 225, 2826, 4333, 4672, 3536, 14291, 279, 12785, 3919, 261, 55, 17, 2147, 13, 364, 279, 864, 3689, 1014, 271, 55, 8, 18, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 225, 2826, 4333, 4672, 3536, 14291, 279, 12785, 3919, 261, 55, 17, 2147, 13, 364, 279, 864, 3689, 1014, 271, 55, 8, 18, 2, -100, -100, -...
album = "%s (disc %s)" % (album, discnumber)
album = "%s (disc %d)" % (album, discnumber)
def cluster(files, threshold): artistDict = ClusterDict() albumDict = ClusterDict() tracks = [] for file in files: album = file.metadata["album"] discnumber = file.metadata["discnumber"] if discnumber and "disc" not in album and "CD" not in album: album = "%s (disc %s)" % (album, discnumber) tracks.append((artistDict.a...
ff677ce91ee4664ce346f3205b37e7c2a1d61e50 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12415/ff677ce91ee4664ce346f3205b37e7c2a1d61e50/cluster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2855, 12, 2354, 16, 5573, 4672, 15469, 5014, 273, 5584, 5014, 1435, 14844, 5014, 273, 5584, 5014, 1435, 13933, 273, 5378, 364, 585, 316, 1390, 30, 14844, 273, 585, 18, 4165, 9614, 25090, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2855, 12, 2354, 16, 5573, 4672, 15469, 5014, 273, 5584, 5014, 1435, 14844, 5014, 273, 5584, 5014, 1435, 13933, 273, 5378, 364, 585, 316, 1390, 30, 14844, 273, 585, 18, 4165, 9614, 25090, ...
print "---------- beign standard out ----------"
print "---------- begin standard out ----------"
def run(self): while True: job = self.input_queue.get() # # Worker threads continue running until explicitly told to stop with # a special job. # if job.is_break: return # # If the global interrupt handler sets the thread_exit variable, # we stop doing real work and just report back a "break" in the # normal command pr...
c06bd63e79fb8cd8489563b398b72217d4c96ddf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7746/c06bd63e79fb8cd8489563b398b72217d4c96ddf/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 1053, 30, 1719, 273, 365, 18, 2630, 67, 4000, 18, 588, 1435, 468, 468, 11016, 7403, 1324, 3549, 3180, 8122, 268, 1673, 358, 2132, 598, 468, 279, 4582, 1719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 1323, 1053, 30, 1719, 273, 365, 18, 2630, 67, 4000, 18, 588, 1435, 468, 468, 11016, 7403, 1324, 3549, 3180, 8122, 268, 1673, 358, 2132, 598, 468, 279, 4582, 1719, ...
if prog.start <= now and prog.stop >= now and recording:
if recording:
def removeScheduledRecording(self, prog=None): if not prog: return (FALSE, 'no prog')
f79c81409fa066f1fd35ff211636eb7c2c76f741 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f79c81409fa066f1fd35ff211636eb7c2c76f741/recordserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 10660, 21037, 12, 2890, 16, 11243, 33, 7036, 4672, 309, 486, 11243, 30, 327, 261, 21053, 16, 296, 2135, 11243, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 10660, 21037, 12, 2890, 16, 11243, 33, 7036, 4672, 309, 486, 11243, 30, 327, 261, 21053, 16, 296, 2135, 11243, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for i in xrange(self.order()):
while len(edges) < self.order()-1:
def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False.
a89281b5d7607ed5e3c6211ab311725fad246357 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a89281b5d7607ed5e3c6211ab311725fad246357/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5...
def email_send(self, cr, uid, obj, emails, body, emailfrom=tools.config.get('email_from', False), context={}):
def email_send(self, cr, uid, obj, emails, body, emailfrom=None, context=None):
def email_send(self, cr, uid, obj, emails, body, emailfrom=tools.config.get('email_from', False), context={}): """ send email @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param email: pass the emails @param emailfrom: Pass ...
c2b346743214ee3e9cac1aefeb2b874c6d090634 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c2b346743214ee3e9cac1aefeb2b874c6d090634/base_action_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 4661, 12, 2890, 16, 4422, 16, 4555, 16, 1081, 16, 14255, 16, 1417, 16, 2699, 2080, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 1366, 2699, 632, 891, 365, 30, 1021, 733, 4407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2699, 67, 4661, 12, 2890, 16, 4422, 16, 4555, 16, 1081, 16, 14255, 16, 1417, 16, 2699, 2080, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 1366, 2699, 632, 891, 365, 30, 1021, 733, 4407, ...
user and user.username not in ( u"anonymous", None ) and P( u"You're currently subscribed to Luminotes %s." % user_plan[ u"name" ].capitalize(), ( user.rate_plan > 0 ) and unsubscribe_button or None, ) or None,
def __init__( self, user, notebooks, first_notebook, login_url, logout_url, rate_plan, groups, rate_plans, unsubscribe_button ): MEGABYTE = 1024 * 1024 rate_plans = list( rate_plans )[ 0:1 ] # only the free rate plan is shown user_plan = rate_plans[ user.rate_plan ]
e8d787f163a5353ab7ec80f3249c027887d4c2c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6754/e8d787f163a5353ab7ec80f3249c027887d4c2c4/Upgrade_page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 729, 16, 4721, 12567, 16, 1122, 67, 24422, 16, 3925, 67, 718, 16, 12735, 67, 718, 16, 4993, 67, 7088, 16, 3252, 16, 4993, 67, 412, 634, 16, 15954, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16, 729, 16, 4721, 12567, 16, 1122, 67, 24422, 16, 3925, 67, 718, 16, 12735, 67, 718, 16, 4993, 67, 7088, 16, 3252, 16, 4993, 67, 412, 634, 16, 15954, 67, ...
>>> rec = RecordData(GDSII.STRNAME, 'struct')
>>> rec = RecordData(GDSII.STRNAME, b'struct')
def check_tag(self, tag): """ Checks if current record has the same tag as the given one. Raises :exc:`MissingRecord` exception otherwise. For example::
9fc341a2edeef093b49ae3765d31894d9ac2c59d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6985/9fc341a2edeef093b49ae3765d31894d9ac2c59d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2692, 12, 2890, 16, 1047, 4672, 3536, 13074, 309, 783, 1409, 711, 326, 1967, 1047, 487, 326, 864, 1245, 18, 20497, 294, 10075, 28288, 4841, 2115, 68, 1520, 3541, 18, 2457, 3454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 2692, 12, 2890, 16, 1047, 4672, 3536, 13074, 309, 783, 1409, 711, 326, 1967, 1047, 487, 326, 864, 1245, 18, 20497, 294, 10075, 28288, 4841, 2115, 68, 1520, 3541, 18, 2457, 3454,...
viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>"
viewRaytraceSceneActionText = \ "<u><b>POV-Ray</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as "\ "a plug-in from <b>Preferences > Plug-ins</b> "\ "for this feature to work." \ "</p>...
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their...
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
sys.stdout = sys.__stdout__
sys.stdout = orig
def do_add(db, paths, one_book_per_directory, recurse, add_duplicates): sys.stdout = NULL try: files, dirs = [], [] for path in paths: path = os.path.abspath(path) if os.path.isdir(path): dirs.append(path) else: files.append(path) formats, metadata = [], [] for book in files: format = os.path.splitext(book)[1] format ...
aab8744748b031f43fe9148ccb2cdc2e9db72d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/aab8744748b031f43fe9148ccb2cdc2e9db72d82/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1289, 12, 1966, 16, 2953, 16, 1245, 67, 3618, 67, 457, 67, 5149, 16, 11502, 16, 527, 67, 22449, 4672, 2589, 18, 10283, 273, 3206, 775, 30, 1390, 16, 7717, 273, 5378, 16, 537...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1289, 12, 1966, 16, 2953, 16, 1245, 67, 3618, 67, 457, 67, 5149, 16, 11502, 16, 527, 67, 22449, 4672, 2589, 18, 10283, 273, 3206, 775, 30, 1390, 16, 7717, 273, 5378, 16, 537...
return self.indexrecords[release][indexFile]['SHA1'] if not self.load(): return (None, None)
d.callback(self.indexrecords[release][indexFile]['SHA1']) return d deferLoad = self.load() deferLoad.addCallback(self._findHash, path, d) return d def _findHash(self, loadResult, path, d): if not loadResult: d.callback((None, None)) return loadResult
def findHash(self, path): for release in self.indexrecords: if path.startswith(release[:-7]): for indexFile in self.indexrecords[release]: if release[:-7] + indexFile == path: return self.indexrecords[release][indexFile]['SHA1'] if not self.load(): return (None, None) package = path.split('/')[-1].split('_')[0] try:...
0ad382b9a8273617c2ee9891c77a2e3fb9d0f2bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/665/0ad382b9a8273617c2ee9891c77a2e3fb9d0f2bd/AptPackages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2310, 12, 2890, 16, 589, 4672, 364, 3992, 316, 365, 18, 1615, 7094, 30, 309, 589, 18, 17514, 1918, 12, 9340, 10531, 17, 27, 65, 4672, 364, 770, 812, 316, 365, 18, 1615, 7094, 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, 1104, 2310, 12, 2890, 16, 589, 4672, 364, 3992, 316, 365, 18, 1615, 7094, 30, 309, 589, 18, 17514, 1918, 12, 9340, 10531, 17, 27, 65, 4672, 364, 770, 812, 316, 365, 18, 1615, 7094, 6...
"""returns a list with all sprites at that position.
"""return a list with all sprites at that position
def get_sprites_at(self, pos): """returns a list with all sprites at that position. LayeredUpdates.get_sprites_at(pos): return colliding_sprites
d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1752, 24047, 67, 270, 12, 2890, 16, 949, 4672, 3536, 2463, 279, 666, 598, 777, 1694, 24047, 622, 716, 1754, 225, 12112, 329, 5121, 18, 588, 67, 1752, 24047, 67, 270, 12, 917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1752, 24047, 67, 270, 12, 2890, 16, 949, 4672, 3536, 2463, 279, 666, 598, 777, 1694, 24047, 622, 716, 1754, 225, 12112, 329, 5121, 18, 588, 67, 1752, 24047, 67, 270, 12, 917, ...
nodes = xpath.Evaluate("//TABLE[starts-with(@background, 'http://posters.imdb.com/posters/')]", doc.documentElement) for i in nodes: poster_urls.append(i.getAttributeNS(EMPTY_NAMESPACE, 'background')) nodes = xpath.Evaluate("//A[contains(@href, 'impawards.com')]", doc.documentElement) if len(nodes): try: base = nodes...
ofdoc = get_ofdb_doc(uid, "poster") try: (url, id) = extract_imdb_url(ofdoc) (rc, content) = ofdb_url_get(urlparse.urljoin("http://www.imdb.com", "title/tt%s/posters" % (id))) reader = HtmlLib.Reader() doc = reader.fromString(content) nodes = xpath.Evaluate("//TABLE[starts-with(@background, 'http://posters.imdb.com...
def search_poster(uid): try: doc = get_ofdb_doc(uid, "poster") (url, id) = get_imdb_url(doc) req = urllib2.Request(urlparse.urljoin("http://www.imdb.com", "title/tt%s/posters" % (id))) debug_out("Looking at %s for posters" % (req.get_full_url())) res = urllib2.urlopen(req) content = res.read() res.close() reader = ...
2ffdaee9138ec9cb46201405bbe8379f1e308d49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/2ffdaee9138ec9cb46201405bbe8379f1e308d49/ofdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 2767, 264, 12, 1911, 4672, 775, 30, 997, 273, 336, 67, 792, 1966, 67, 2434, 12, 1911, 16, 315, 2767, 264, 7923, 225, 261, 718, 16, 612, 13, 273, 336, 67, 381, 1966, 67, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 2767, 264, 12, 1911, 4672, 775, 30, 997, 273, 336, 67, 792, 1966, 67, 2434, 12, 1911, 16, 315, 2767, 264, 7923, 225, 261, 718, 16, 612, 13, 273, 336, 67, 381, 1966, 67, 7...
self.installed_hosts[host] = (at, tmp_dir)
self.installed_hosts[host.hostname] = (host, at, tmp_dir)
def _install(self): """ Install autotest on any current job hosts. """ in_use_hosts = set(host.hostname for host in self.job.hosts if not (host.get_autodir() and host.get_autodir().startswith(PROFILER_TMPDIR))) logging.debug('Hosts currently in use: %s', in_use_hosts)
ff19f5f24bcb393ece8b98216938f887984eba8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/ff19f5f24bcb393ece8b98216938f887984eba8a/profiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 12, 2890, 4672, 3536, 10284, 2059, 352, 395, 603, 1281, 783, 1719, 7206, 18, 3536, 316, 67, 1202, 67, 11588, 273, 444, 12, 2564, 18, 10358, 364, 1479, 316, 365, 18, 4688, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5425, 12, 2890, 4672, 3536, 10284, 2059, 352, 395, 603, 1281, 783, 1719, 7206, 18, 3536, 316, 67, 1202, 67, 11588, 273, 444, 12, 2564, 18, 10358, 364, 1479, 316, 365, 18, 4688, 18...
for x in range(10):
for x in values:
def fact(n): result = 1 for i in range(1, int(n)+1): result *= i return result
f3e3a9c2793baf25a930f63a0dc090b6f3f5d54d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f3e3a9c2793baf25a930f63a0dc090b6f3f5d54d/test_math.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5410, 12, 82, 4672, 563, 273, 404, 364, 277, 316, 1048, 12, 21, 16, 509, 12, 82, 27921, 21, 4672, 563, 6413, 277, 327, 563, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5410, 12, 82, 4672, 563, 273, 404, 364, 277, 316, 1048, 12, 21, 16, 509, 12, 82, 27921, 21, 4672, 563, 6413, 277, 327, 563, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def __init__(self, control, widget, attribute, f = None): self.control = control self.widget = widget self.attribute = attribute self.f = f widget.callbackDeposit.append(self) def __call__(self, value): if value==None: return if isinstance(value, QString): value = str(value) try: pos = self.control.cursorPosition() if...
def __init__(self, control, widget, attribute, f = None): self.control = control self.widget = widget self.attribute = attribute self.f = f widget.callbackDeposit.append(self) def __call__(self, value): if value==None: return if isinstance(value, QString): value = str(value) try: pos = self.control.cursorPosition() if...
def __init__(self, control, widget, attribute, f = None): self.control = control self.widget = widget self.attribute = attribute self.f = f widget.callbackDeposit.append(self)
ec58355f0e4e6cbc25734f2c717e88966d659bd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/ec58355f0e4e6cbc25734f2c717e88966d659bd7/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 16, 3604, 16, 1566, 16, 284, 273, 599, 4672, 365, 18, 7098, 273, 3325, 365, 18, 6587, 273, 3604, 365, 18, 4589, 273, 1566, 365, 18, 74, 273, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 16, 3604, 16, 1566, 16, 284, 273, 599, 4672, 365, 18, 7098, 273, 3325, 365, 18, 6587, 273, 3604, 365, 18, 4589, 273, 1566, 365, 18, 74, 273, 284,...
raise Exception("consumer canceled")
raise Exception("consumer canceled: "+info.message)
def verify(self): """Handle incoming redirect from OpenID Provider""" log_debug = self.log_debug if log_debug: log.debug('Handling processing of response from server') openid_session = session['openid_session'] if not openid_session: raise Exception("openid session missing") # Setup the consumer and parse the informa...
17d68b219e4eb80c875311897c7228e145731ce6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12761/17d68b219e4eb80c875311897c7228e145731ce6/openidconsumer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 2890, 4672, 3536, 3259, 6935, 3136, 628, 25781, 7561, 8395, 613, 67, 4148, 273, 365, 18, 1330, 67, 4148, 309, 613, 67, 4148, 30, 613, 18, 4148, 2668, 14701, 4929, 434, 766, 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, 3929, 12, 2890, 4672, 3536, 3259, 6935, 3136, 628, 25781, 7561, 8395, 613, 67, 4148, 273, 365, 18, 1330, 67, 4148, 309, 613, 67, 4148, 30, 613, 18, 4148, 2668, 14701, 4929, 434, 766, 6...
up_vector[k] = x
up_vector[self.upoff + k] = x
def _findSMS(self, a_lower, a_upper, b_lower, b_upper, find_minimal): """ Finds the Shortest Middle Snake. """ down_vector = self.fdiag # The vector for the (0, 0) to (x, y) search up_vector = self.bdiag # The vector for the (u, v) to (N, M) search
97543e17e72ffa73040dbf9d8592f08aa6cf12c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/97543e17e72ffa73040dbf9d8592f08aa6cf12c3/myersdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 29533, 12, 2890, 16, 279, 67, 8167, 16, 279, 67, 5797, 16, 324, 67, 8167, 16, 324, 67, 5797, 16, 1104, 67, 1154, 2840, 4672, 3536, 4163, 87, 326, 7925, 395, 490, 3132, 189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 29533, 12, 2890, 16, 279, 67, 8167, 16, 279, 67, 5797, 16, 324, 67, 8167, 16, 324, 67, 5797, 16, 1104, 67, 1154, 2840, 4672, 3536, 4163, 87, 326, 7925, 395, 490, 3132, 189...
except StopIteration, UnicodeDecodeError:
except (StopIteration, UnicodeDecodeError):
def __init__(self, context, message): # -> none """Extract the bits of interest from an RFC2822 message string. context should be a wiki page. This perhaps should do the isJunk test up front to avoid unnecessary resource usage. """ DEBUG('mailin.py processing incoming message:\n%s' % message) self.context = contex...
7f9107a0da5d9522673793cc967a721a8e97dbe4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5225/7f9107a0da5d9522673793cc967a721a8e97dbe4/Mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 883, 4672, 468, 317, 6555, 3536, 4976, 326, 4125, 434, 16513, 628, 392, 8372, 6030, 3787, 883, 533, 18, 819, 1410, 506, 279, 9050, 1363, 18, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 883, 4672, 468, 317, 6555, 3536, 4976, 326, 4125, 434, 16513, 628, 392, 8372, 6030, 3787, 883, 533, 18, 819, 1410, 506, 279, 9050, 1363, 18, 122...
if os.environ.has_key('OSG_APP'):
if os.environ.has_key( 'OSG_APP' ):
def executeAndGetOutput( cmd ): try: import subprocess p = subprocess.Popen( "%s" % cmd, shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE, close_fds = True ) outData = p.stdout.read().strip() returnCode = p.wait() except ImportError: import popen2 p3 = popen2.Popen3( "%s" % cmd ) outData = p3.fromchild....
47c293fe28587532dcc46ce4b1dc8ab0111a614b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/47c293fe28587532dcc46ce4b1dc8ab0111a614b/dirac-pilot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 14042, 1447, 12, 1797, 262, 30, 775, 30, 1930, 6652, 293, 273, 6652, 18, 52, 3190, 12, 2213, 87, 6, 738, 1797, 16, 5972, 273, 1053, 16, 3909, 273, 6652, 18, 27602, 16, 4514, 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, 1836, 14042, 1447, 12, 1797, 262, 30, 775, 30, 1930, 6652, 293, 273, 6652, 18, 52, 3190, 12, 2213, 87, 6, 738, 1797, 16, 5972, 273, 1053, 16, 3909, 273, 6652, 18, 27602, 16, 4514, 27...
params = [x['name'] + '=\u0022'+x['default']+'\u0022' for x in format_attributes['params']] builtin_params = [x['name'] + '=\u0022'+x['default']+'\u0022' for x in format_attributes['builtin_params']]
params = [x['name'] + '=\u0022'+str(x['default'])+'\u0022' for x in format_attributes['params']] builtin_params = [x['name'] + '=\u0022'+str(x['default'])+'\u0022' for x in format_attributes['builtin_params']]
def tmpl_admin_format_template_show_short_doc(self, ln, format_elements): """ Prints the format element documentation in a condensed way to display inside format template editor.
3a21af5c478829dd68a80adb90e466bbc886533f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/3a21af5c478829dd68a80adb90e466bbc886533f/bibformat_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 3666, 67, 2139, 67, 3202, 67, 4500, 67, 6620, 67, 2434, 12, 2890, 16, 7211, 16, 740, 67, 6274, 4672, 3536, 3038, 87, 326, 740, 930, 7323, 316, 279, 6941, 28003, 4031, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10720, 67, 3666, 67, 2139, 67, 3202, 67, 4500, 67, 6620, 67, 2434, 12, 2890, 16, 7211, 16, 740, 67, 6274, 4672, 3536, 3038, 87, 326, 740, 930, 7323, 316, 279, 6941, 28003, 4031, 358, ...
def __init__(self, source_name, ErrMsg, StdMsg, DefaultMsg, color="default", logfile="/dev/null", verbose=""):
def __init__(self, source_name, ErrMsg, StdMsg, DefaultMsg, color="default", logfile="/dev/null", verbose="true"):
def __init__(self, source_name, ErrMsg, StdMsg, DefaultMsg, color="default", logfile="/dev/null", verbose=""): self.sourcename = source_name self.ErrMsg = ErrMsg self.StdMsg = StdMsg self.DefaultMsg = DefaultMsg self.color = color self.logfile = logfile self.colorcode = self.define_colorcode(self.color) self.verbose = ...
b39ff3267cd008682a12a2d6c15ffe254ed2bb33 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2647/b39ff3267cd008682a12a2d6c15ffe254ed2bb33/abyle_output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1084, 67, 529, 16, 1926, 3332, 16, 6276, 3332, 16, 2989, 3332, 16, 2036, 1546, 1886, 3113, 15204, 1546, 19, 5206, 19, 2011, 3113, 3988, 1546, 3767, 6, 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, 1001, 2738, 972, 12, 2890, 16, 1084, 67, 529, 16, 1926, 3332, 16, 6276, 3332, 16, 2989, 3332, 16, 2036, 1546, 1886, 3113, 15204, 1546, 19, 5206, 19, 2011, 3113, 3988, 1546, 3767, 6, 46...
Wraps GAP's DirectProduct, Embedding, and Projection. Sage calls GAP's DirectProduct, which chooses an efficient
Wraps GAP's ``DirectProduct``, ``Embedding``, and ``Projection``. Sage calls GAP's ``DirectProduct``, which chooses an efficient
def direct_product(self,other,maps=True): """ Wraps GAP's DirectProduct, Embedding, and Projection. Sage calls GAP's DirectProduct, which chooses an efficient representation for the direct product. The direct product of permutation groups will be a permutation group again. For a direct product D, the GAP operation Emb...
6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2657, 67, 5896, 12, 2890, 16, 3011, 16, 10711, 33, 5510, 4672, 3536, 678, 7506, 611, 2203, 1807, 12176, 5368, 4133, 68, 9191, 12176, 9538, 7459, 68, 9191, 471, 12176, 14789, 68, 8338, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2657, 67, 5896, 12, 2890, 16, 3011, 16, 10711, 33, 5510, 4672, 3536, 678, 7506, 611, 2203, 1807, 12176, 5368, 4133, 68, 9191, 12176, 9538, 7459, 68, 9191, 471, 12176, 14789, 68, 8338, 22...
parameters = urllib.urlencode(self.parameter_children(self.child_results)) + q
parameters = urllib.urlencode(self.parameter_children(child_results)) + q
def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """
0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2088, 12, 2890, 16, 1111, 16, 293, 67, 22734, 67, 2088, 33, 7036, 16, 1151, 67, 4717, 33, 8526, 4672, 3536, 6020, 9585, 358, 4614, 3167, 628, 326, 3699, 471, 327, 392, 22566, 4335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2088, 12, 2890, 16, 1111, 16, 293, 67, 22734, 67, 2088, 33, 7036, 16, 1151, 67, 4717, 33, 8526, 4672, 3536, 6020, 9585, 358, 4614, 3167, 628, 326, 3699, 471, 327, 392, 22566, 4335...
cursor.execute("DELETE FROM session_attribute WHERE sid=%s", (self.sid,))
cursor.execute(""" DELETE FROM session_attribute WHERE sid=%s """, (self.sid,))
def delete_session_cookie(db): cursor = db.cursor() if self._new: self.last_visit = now self._new = False # The session might already exist even if _new is True since # it could have been created by a concurrent request (#3563). try: cursor.execute("INSERT INTO session " " (sid,last_visit,authenticated)" " VALUES (%s,%...
c9cd2abe472fbff336262b87b60cf1276cdfdeca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/c9cd2abe472fbff336262b87b60cf1276cdfdeca/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 3184, 67, 8417, 12, 1966, 4672, 3347, 273, 1319, 18, 9216, 1435, 309, 365, 6315, 2704, 30, 365, 18, 2722, 67, 11658, 273, 2037, 365, 6315, 2704, 273, 1083, 468, 1021, 1339, 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, 1430, 67, 3184, 67, 8417, 12, 1966, 4672, 3347, 273, 1319, 18, 9216, 1435, 309, 365, 6315, 2704, 30, 365, 18, 2722, 67, 11658, 273, 2037, 365, 6315, 2704, 273, 1083, 468, 1021, 1339, 4...
self.modifyEdgeBondAction.setIconSet(QIconSet(self.image70))
self.modifyEdgeBondAction.setIconSet(QIconSet(self.image66))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
if len(str(int(locale.atof(new_value)))) > digits[0]:
locale.atof(new_value) decimal_point = locale.localeconv()['decimal_point'] new_int = new_value new_decimal = '' if decimal_point in new_value: new_int, new_decimal = new_value.rsplit(decimal_point, 1) if len(new_int) > digits[0] \ or len(new_decimal) > digits[1]:
def sig_insert_text(self, entry, new_text, new_text_length, position): value = entry.get_text() position = entry.get_position() new_value = value[:position] + new_text + value[position:] try: if new_value == '-': return
d8f659740fb3e5e4be215ae95ebd292d7d19fe40 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/d8f659740fb3e5e4be215ae95ebd292d7d19fe40/float.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 67, 6387, 67, 955, 12, 2890, 16, 1241, 16, 394, 67, 955, 16, 394, 67, 955, 67, 2469, 16, 1754, 4672, 460, 273, 1241, 18, 588, 67, 955, 1435, 1754, 273, 1241, 18, 588, 67, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3553, 67, 6387, 67, 955, 12, 2890, 16, 1241, 16, 394, 67, 955, 16, 394, 67, 955, 67, 2469, 16, 1754, 4672, 460, 273, 1241, 18, 588, 67, 955, 1435, 1754, 273, 1241, 18, 588, 67, 327...
class dm_campaign_statistics(osv.osv): _name = "dm.campaign.statistics" _columns = { 'kind' : fields.char('Kind', size=16), 'qty' : fields.integer('Quantity'), 'rate' : fields.float('Rate', digits=(16,2)), 'camp_id' : fields.many2one('dm.campaign', 'Campaign') } dm_campaign_statistics()
def copy(self, cr, uid, id, default=None, context={}): cmp_id = super(dm_campaign, self).copy(cr, uid, id, default) data = self.browse(cr, uid, cmp_id, context) default='Copy of %s' % data.name super(dm_campaign, self).write(cr, uid, cmp_id, {'name':default, 'date_start':0}) return cmp_id
69c8954d987167cad030faf89e21c8ebbb6cb792 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/69c8954d987167cad030faf89e21c8ebbb6cb792/campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 9411, 67, 350, 273, 2240, 12, 10956, 67, 14608, 16, 365, 2934, 3530, 12, 3353, 16, 4555, 16, 612...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9411, 67, 350, 273, 2240, 12, 10956, 67, 14608, 16, 365, 2934, 3530, 12, 3353, 16, 4555, 16, 612...
easy_run.call("rm -rf %s "%output)
def check_adp_rand(cmd, xrsp_init, output, selection, selection_str, tolerance=1.e-3): easy_run.call(cmd) xrsp = xray_structure_plus(file_name = output) assert approx_equal(xrsp.occ, xrsp_init.occ,tolerance) assert approx_equal(xrsp.sites_cart, xrsp_init.sites_cart,tolerance) assert approx_equal(xrsp.use_u_iso, ...
d3b962327f9bfcab4633f0d80f058ec29ecde30b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/d3b962327f9bfcab4633f0d80f058ec29ecde30b/tst_pdbtools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 361, 84, 67, 7884, 12, 4172, 16, 20912, 1752, 67, 2738, 16, 876, 16, 4421, 16, 4421, 67, 701, 16, 10673, 33, 21, 18, 73, 17, 23, 4672, 12779, 67, 2681, 18, 1991, 12, 4172,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 361, 84, 67, 7884, 12, 4172, 16, 20912, 1752, 67, 2738, 16, 876, 16, 4421, 16, 4421, 67, 701, 16, 10673, 33, 21, 18, 73, 17, 23, 4672, 12779, 67, 2681, 18, 1991, 12, 4172,...
hgr.link(link_hypernode, link_hyperedge)
hgr.link(link_hypernode, link_hyperedge)
def read_hypergraph(string): """ Read a hypergraph from a string in dot format. Nodes and edges specified in the input will be added to the current hypergraph. @type string: string @param string: Input string in dot format specifying a graph. @rtype: hypergraph @return: Hypergraph """ hgr = hypergraph() dotG = pydo...
e6eb116cccbd282c6e3fa3cf4bff6bc426fa4caf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4687/e6eb116cccbd282c6e3fa3cf4bff6bc426fa4caf/dot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 17203, 4660, 12, 1080, 4672, 3536, 2720, 279, 9512, 4660, 628, 279, 533, 316, 3928, 740, 18, 14037, 471, 5231, 1269, 316, 326, 810, 903, 506, 3096, 358, 326, 783, 9512, 4660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 17203, 4660, 12, 1080, 4672, 3536, 2720, 279, 9512, 4660, 628, 279, 533, 316, 3928, 740, 18, 14037, 471, 5231, 1269, 316, 326, 810, 903, 506, 3096, 358, 326, 783, 9512, 4660, ...
first2 = True for clause in c[0]: if not first2: query += ' AND ' first2 = False query += clause
first = True for c in g: if not first: query += ' OR ' first = False query += '(' first2 = True for clause in c[0]: if not first2: query += ' AND ' first2 = False query += clause query += ')' val += c[1]
def domain_get(self, cr, uid, model_name): # root user above constraint if uid == 1: return '', []
1d274fe2c4562218be0678c0c5cd73d249e42aa1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/1d274fe2c4562218be0678c0c5cd73d249e42aa1/ir_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2461, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 938, 67, 529, 4672, 468, 1365, 729, 5721, 4954, 309, 4555, 422, 404, 30, 327, 10226, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2461, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 938, 67, 529, 4672, 468, 1365, 729, 5721, 4954, 309, 4555, 422, 404, 30, 327, 10226, 5378, 2, -100, -100, -100, -100, -100, -100, -100,...
del fd
os.close(fd)
def __clipboard_get_func_cb(self, clipboard, selection_data, info, data): file_name = urlparse.urlparse(self._url).path extension = None if '.' in file_name: extension = file_name.split('.')[1] fd, self._temp_file = tempfile.mkstemp(suffix='.' + extension) del fd
854eb02dda6c9569053daf38dc22f98c06759ae7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6905/854eb02dda6c9569053daf38dc22f98c06759ae7/palettes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14161, 3752, 67, 588, 67, 644, 67, 7358, 12, 2890, 16, 20304, 16, 4421, 67, 892, 16, 1123, 16, 501, 4672, 585, 67, 529, 273, 15185, 18, 718, 2670, 12, 2890, 6315, 718, 2934, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14161, 3752, 67, 588, 67, 644, 67, 7358, 12, 2890, 16, 20304, 16, 4421, 67, 892, 16, 1123, 16, 501, 4672, 585, 67, 529, 273, 15185, 18, 718, 2670, 12, 2890, 6315, 718, 2934, 80...
def __init__(self, rel, search_fields, attrs=None):
def __init__(self, rel, search_fields, to_string_function, attrs=None):
def __init__(self, rel, search_fields, attrs=None): self.rel = rel self.search_fields = search_fields super(ForeignKeySearchInput, self).__init__(attrs)
232004ad594938cbe340dce72b421873aa7f21e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/232004ad594938cbe340dce72b421873aa7f21e5/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1279, 16, 1623, 67, 2821, 16, 358, 67, 1080, 67, 915, 16, 3422, 33, 7036, 4672, 365, 18, 2878, 273, 1279, 365, 18, 3072, 67, 2821, 273, 1623, 67, 2821,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1279, 16, 1623, 67, 2821, 16, 358, 67, 1080, 67, 915, 16, 3422, 33, 7036, 4672, 365, 18, 2878, 273, 1279, 365, 18, 3072, 67, 2821, 273, 1623, 67, 2821,...
penColor = edgeOverlay.color if type(penColor) == qt.QColor: penColor = qtColor2figColor(penColor)
if not attr.has_key("penColor"): penColor = edgeOverlay.color if type(penColor) == qt.QColor: penColor = qtColor2figColor(penColor) attr["penColor"] = penColor
def addEdgeOverlay(self, edgeOverlay, **attr): """Adds and returns fig.Polygon for all edges (or -parts, see addClippedPoly) of the given overlay, using the overlays' color."""
396c619383f8adeb626fc4ef11c56fd7ad43727b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/396c619383f8adeb626fc4ef11c56fd7ad43727b/figexport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6098, 11627, 12, 2890, 16, 3591, 11627, 16, 2826, 1747, 4672, 3536, 3655, 471, 1135, 4291, 18, 11787, 364, 777, 5231, 261, 280, 300, 6019, 16, 2621, 527, 15339, 1845, 12487, 13, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 6098, 11627, 12, 2890, 16, 3591, 11627, 16, 2826, 1747, 4672, 3536, 3655, 471, 1135, 4291, 18, 11787, 364, 777, 5231, 261, 280, 300, 6019, 16, 2621, 527, 15339, 1845, 12487, 13, 434...
for shot in self.shots: shot.update(dt) if self.reloadtimer > 0: self.reloadtimer -= dt
def update(self, dt): '''update the tank's position, status, velocities''' if self.status == constants.TANKDEAD: self.dead_timer -= dt if self.dead_timer <= 0: self.team.respawn(self,not self.spawned) self.spawned = True return
09d423d8b35998677a916425c1c94ee6be961d30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/09d423d8b35998677a916425c1c94ee6be961d30/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3681, 4672, 9163, 2725, 326, 268, 2304, 1807, 1754, 16, 1267, 16, 331, 9640, 1961, 26418, 309, 365, 18, 2327, 422, 6810, 18, 56, 20201, 1639, 1880, 30, 365, 18, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3681, 4672, 9163, 2725, 326, 268, 2304, 1807, 1754, 16, 1267, 16, 331, 9640, 1961, 26418, 309, 365, 18, 2327, 422, 6810, 18, 56, 20201, 1639, 1880, 30, 365, 18, 220...
cmd = cmd + ' -S"' + dotdots + 'built/include/parser-inc"' cmd = cmd + ' -I"' + dotdots + 'built/python/include"'
cmd = cmd + ' -S"' + dotdots + PREFIX+'/include/parser-inc"' cmd = cmd + ' -I"' + dotdots + PREFIX+'/python/include"'
def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0): if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)): sys.exit("syntax error in Interrogate directive"); ipath = ["built/tmp"] + ipath + ["built/include"] outd = "built/etc/"+outd outc = "built/t...
4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309...
- prepend _ if the result is a python keyword
- append _ if the result is a python keyword
def identify(str): """Turn any string into an identifier: - replace space by _ - replace other illegal chars by _xx_ (hex code) - prepend _ if the result is a python keyword """ if not str: return "empty_ae_name_" rv = '' ok = string.ascii_letters + '_' ok2 = ok + string.digits for c in str: if c in ok: rv = rv + c eli...
20cdaa7b9e4a47e6362ef069a5be4c6505c37d08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/20cdaa7b9e4a47e6362ef069a5be4c6505c37d08/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 12, 701, 4672, 3536, 15858, 1281, 533, 1368, 392, 2756, 30, 300, 1453, 3476, 635, 389, 300, 1453, 1308, 16720, 5230, 635, 389, 5279, 67, 261, 7118, 981, 13, 300, 714, 389, 309, 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, 9786, 12, 701, 4672, 3536, 15858, 1281, 533, 1368, 392, 2756, 30, 300, 1453, 3476, 635, 389, 300, 1453, 1308, 16720, 5230, 635, 389, 5279, 67, 261, 7118, 981, 13, 300, 714, 389, 309, 3...
if params['avatar']:
if 'avatar' in params and params['avatar']:
def update(self, params, volunteer): if params['home_neighborhood']: if params['home_neighborhood'] == 'None': volunteer.home_neighborhood = None; else: volunteer.home_neighborhood = Neighborhood.get_by_id(int(params['home_neighborhood'])) if params['work_neighborhood']: if params['work_neighborhood'] == 'None': volun...
fb33ca1b2e1da0630555b6db66419e3dac2fa9f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5139/fb33ca1b2e1da0630555b6db66419e3dac2fa9f9/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 859, 16, 6626, 318, 736, 264, 4672, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 30, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 422, 296, 7036, 4278, 6626, 318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 859, 16, 6626, 318, 736, 264, 4672, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 30, 309, 859, 3292, 8712, 67, 18168, 19619, 3546, 422, 296, 7036, 4278, 6626, 318, ...
sys.exit(1)
raise UnsupportedException
def make_essential_devs(self, image_path):
be99daf4b6f697762bb053d60594aa73fb866280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12707/be99daf4b6f697762bb053d60594aa73fb866280/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 403, 2001, 67, 5206, 87, 12, 2890, 16, 1316, 67, 803, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1221, 67, 403, 2001, 67, 5206, 87, 12, 2890, 16, 1316, 67, 803, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if self.class_group:
if self.identifier: icon_name = self.identifier.lower() elif self.class_group:
def find_icon_pixbuf(self, size): # Returns the icon pixbuf for the program. Uses the following metods:
dcfb9af5533d0897251e6cd781e65ac4dc13c932 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/dcfb9af5533d0897251e6cd781e65ac4dc13c932/dockbarx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3950, 67, 14861, 4385, 12, 2890, 16, 963, 4672, 468, 2860, 326, 4126, 11871, 4385, 364, 326, 5402, 18, 14854, 326, 3751, 5100, 369, 87, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3950, 67, 14861, 4385, 12, 2890, 16, 963, 4672, 468, 2860, 326, 4126, 11871, 4385, 364, 326, 5402, 18, 14854, 326, 3751, 5100, 369, 87, 30, 2, -100, -100, -100, -100, -100, -...
self.setup_color(defs.BAR, defs.GLASS_HISTEP_1, self.wTree.get_widget("highlightcolor2"))
self.setup_color(defs.BAR, defs.GLASS_HISTEP_2, self.wTree.get_widget("highlightcolor2"))
def __init__(self, wTree): self.wTree = wTree
c0ca09cfb91a9a39f968ee8f209aaccf92b1e38e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8416/c0ca09cfb91a9a39f968ee8f209aaccf92b1e38e/awnPreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 341, 2471, 4672, 365, 18, 91, 2471, 273, 341, 2471, 2, 0, 0, 0, 0, 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, 341, 2471, 4672, 365, 18, 91, 2471, 273, 341, 2471, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
users[change['user']].append(change['title']) pages[change['title']] += 1
users.setdefault(change['user'], []).append(change['title']) pages[change['title']] = pages.setdefault(change['title'], 0) + 1
def print_recent_changes(self, days=7, show=10): now = datetime.utcnow() then = now - timedelta(days=days) print "From %s to %s" % (then, now) changes = self.get_recent_changes(now=now, then=then) num_changes = len(changes) print "%d wiki changes in the past week" % num_changes if num_changes == 500: print "Warning: Nu...
ba6df619ca5568706fa7715f5cf7b072d14d8a48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9952/ba6df619ca5568706fa7715f5cf7b072d14d8a48/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 20872, 67, 6329, 12, 2890, 16, 4681, 33, 27, 16, 2405, 33, 2163, 4672, 2037, 273, 3314, 18, 17892, 3338, 1435, 1508, 273, 2037, 300, 10661, 12, 9810, 33, 9810, 13, 1172, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 20872, 67, 6329, 12, 2890, 16, 4681, 33, 27, 16, 2405, 33, 2163, 4672, 2037, 273, 3314, 18, 17892, 3338, 1435, 1508, 273, 2037, 300, 10661, 12, 9810, 33, 9810, 13, 1172, 315,...
self.get_installer_filename()))
self.get_installer_filename(fullname)))
def run (self): if (sys.platform != "win32" and (self.distribution.has_ext_modules() or self.distribution.has_c_libraries())): raise DistutilsPlatformError \ ("distribution contains extensions and/or C libraries; " "must be compiled on a Windows 32 platform")
ff0d1f9f6ad8cd41b33d68ee48c7b97269062ee2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ff0d1f9f6ad8cd41b33d68ee48c7b97269062ee2/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 471, 261, 2890, 18, 16279, 18, 5332, 67, 408, 67, 6400, 1435, 578, 365, 18, 16279, 18, 5332, 67, 71, 67, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 4672, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 471, 261, 2890, 18, 16279, 18, 5332, 67, 408, 67, 6400, 1435, 578, 365, 18, 16279, 18, 5332, 67, 71, 67, 314...
raise IOError(_('Unknown backend %s') % uri.scheme)
raise IOError(_(u'Unknown backend %s') % uri.scheme)
def phonebook_open(uri): if isinstance(uri, basestring): uri = URI(basestring) # guess backend, if uri was not absolute (= no scheme was given) uri.absolutize() if uri.scheme is None: raise IOError(_('Couldn\'t find a backend for %s') % uri) try: backend = backendmanager.manager()[uri.scheme] except KeyError: raise IOE...
7caf7af8620f36787fcc5d3a1634ba919cd8202c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/7caf7af8620f36787fcc5d3a1634ba919cd8202c/phonebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7353, 3618, 67, 3190, 12, 1650, 4672, 309, 1549, 12, 1650, 16, 10699, 4672, 2003, 273, 3699, 12, 18602, 371, 13, 468, 7274, 4221, 16, 309, 2003, 1703, 486, 4967, 261, 33, 1158, 4355, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7353, 3618, 67, 3190, 12, 1650, 4672, 309, 1549, 12, 1650, 16, 10699, 4672, 2003, 273, 3699, 12, 18602, 371, 13, 468, 7274, 4221, 16, 309, 2003, 1703, 486, 4967, 261, 33, 1158, 4355, 1...
check_u(type)
check_u(typ)
def setup_new(self, typ): """Construct a TabOrder. typ should be either ``channel`` or ``playlist``. """ check_u(type) self.type = typ self.tab_ids = [] self._setup_views() to_sort = self.id_to_tab.values() to_sort.sort(key=lambda x: x.get_title().lower()) for tab in to_sort: self.tab_ids.append(tab.id)
4ff9561aef7d2c3ecfcbfdee5a13e7db3db6eb70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/4ff9561aef7d2c3ecfcbfdee5a13e7db3db6eb70/tabs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2704, 12, 2890, 16, 3815, 4672, 3536, 7249, 279, 9483, 2448, 18, 225, 3815, 1410, 506, 3344, 12176, 4327, 10335, 578, 12176, 1601, 1098, 68, 8338, 3536, 866, 67, 89, 12, 12846,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2704, 12, 2890, 16, 3815, 4672, 3536, 7249, 279, 9483, 2448, 18, 225, 3815, 1410, 506, 3344, 12176, 4327, 10335, 578, 12176, 1601, 1098, 68, 8338, 3536, 866, 67, 89, 12, 12846,...
filename="/lsst/daues/ipac/add_ons/afwdata-ImSim/processed/imsim_85751839_R23_S11_C00_E000.fits" bbox = afwImage.BBox(afwImage.PointI(32,32), 512, 512) exposure = afwImage.ExposureF(filename, 0,bbox)
filename = os.path.join(eups.productDir("afwdata"), "ImSim", "postISR", "v85751839-fr", "s0", "R23", "S11", "C00.fits") bbox = afwImage.BBox(afwImage.PointI(0,0), 512, 512) exposure = afwImage.ExposureF(filename, 0, bbox)
def setUp(self): # filename = os.path.join(eups.productDir("afwdata"), "CFHT", "D4", "cal-53535-i-797722_1")
93a6d16a0e24fd320e54abd9714906b01459305b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6538/93a6d16a0e24fd320e54abd9714906b01459305b/crSplitStagesImSimTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 225, 1544, 273, 1140, 18, 803, 18, 5701, 12, 73, 18294, 18, 5896, 1621, 2932, 1727, 91, 892, 6, 3631, 315, 8955, 5062, 3113, 315, 40, 24, 3113, 315, 771, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 12, 2890, 4672, 468, 225, 1544, 273, 1140, 18, 803, 18, 5701, 12, 73, 18294, 18, 5896, 1621, 2932, 1727, 91, 892, 6, 3631, 315, 8955, 5062, 3113, 315, 40, 24, 3113, 315, 771, ...
print 'Received event "%s": %s' % (event_name, kwargs)
if event_name == "log": print "%(timestamp)s (%(level)d) %(sender)14s: %(msg)s" % kwargs else: print 'Received event "%s": %s' % (event_name, kwargs)
def _handle_event(self, event_name, **kwargs): print 'Received event "%s": %s' % (event_name, kwargs)
437ad0f5dc8e5b823c84dc0f15641647ef715f15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/437ad0f5dc8e5b823c84dc0f15641647ef715f15/engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2575, 12, 2890, 16, 871, 67, 529, 16, 2826, 4333, 4672, 1172, 296, 8872, 871, 2213, 87, 6877, 738, 87, 11, 738, 261, 2575, 67, 529, 16, 1205, 13, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 4110, 67, 2575, 12, 2890, 16, 871, 67, 529, 16, 2826, 4333, 4672, 1172, 296, 8872, 871, 2213, 87, 6877, 738, 87, 11, 738, 261, 2575, 67, 529, 16, 1205, 13, 2, -100, -100, -100, ...
show(self.tokens)
def run(self): show(self.tokens) def finish(): print "FINISH", counts assert len(counts)==len(styles) from mwlib.parser import styleanalyzer states = styleanalyzer.compute_path(counts)
112a769acb27a6eab638352c64685baec986c67f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/112a769acb27a6eab638352c64685baec986c67f/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1652, 4076, 13332, 1172, 315, 23259, 3113, 6880, 1815, 562, 12, 8008, 13, 631, 1897, 12, 10218, 13, 225, 628, 14721, 2941, 18, 4288, 1930, 2154, 13647, 5493, 273, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1652, 4076, 13332, 1172, 315, 23259, 3113, 6880, 1815, 562, 12, 8008, 13, 631, 1897, 12, 10218, 13, 225, 628, 14721, 2941, 18, 4288, 1930, 2154, 13647, 5493, 273, 2...
gump.addText(50, yoffset + 3, self.submenus[actions + j].title, 0x480)
gump.addText(50, yoffset + 3, self.submenus[actions + j].title, enabbledhue)
def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return
0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 7291, 16, 833, 273, 5378, 4672, 309, 365, 18, 6528, 6738, 471, 486, 365, 18, 1893, 6738, 12, 14872, 16, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 2264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 7291, 16, 833, 273, 5378, 4672, 309, 365, 18, 6528, 6738, 471, 486, 365, 18, 1893, 6738, 12, 14872, 16, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 2264...
Context.__init__(self)
Context.__init__(self, prog = prog)
def __init__(self): """ Also sets the "_client" field for this instance to None. Each cli maintains a single active client. The "session" plugin is responsible for the loading of the client object. """ cmd.Cmd.__init__(self) Context.__init__(self) self.prompt = 'omero> ' self.interrupt_loop = False self.rv = 0 ...
36ca7331bf833f7348cf5f3b503618c5585e7c72 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/36ca7331bf833f7348cf5f3b503618c5585e7c72/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 8080, 1678, 326, 4192, 2625, 6, 652, 364, 333, 791, 358, 599, 18, 8315, 4942, 11566, 4167, 279, 2202, 2695, 1004, 18, 1021, 315, 3184, 6, 1909, 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, 1001, 2738, 972, 12, 2890, 4672, 3536, 8080, 1678, 326, 4192, 2625, 6, 652, 364, 333, 791, 358, 599, 18, 8315, 4942, 11566, 4167, 279, 2202, 2695, 1004, 18, 1021, 315, 3184, 6, 1909, 3...
"before %s but was." % (last, m))
"before %s but was." % (last, migration))
def forwards_problems(pending, done, verbosity): """ Takes the list of linearised pending migrations, and the set of done ones, and returns the list of problems, if any. """ result = [] for last, migration in problems(reversed(pending), done): missing = [m for m in last.forwards_plan()[:-1] if m not in done] if verbosi...
13fed4742881622fd1b775d2a00b739cdccf6abc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/13fed4742881622fd1b775d2a00b739cdccf6abc/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24578, 67, 29812, 12, 9561, 16, 2731, 16, 11561, 4672, 3536, 23004, 326, 666, 434, 9103, 5918, 4634, 9814, 16, 471, 326, 444, 434, 2731, 5945, 16, 471, 1135, 326, 666, 434, 9688, 16, 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, 24578, 67, 29812, 12, 9561, 16, 2731, 16, 11561, 4672, 3536, 23004, 326, 666, 434, 9103, 5918, 4634, 9814, 16, 471, 326, 444, 434, 2731, 5945, 16, 471, 1135, 326, 666, 434, 9688, 16, 3...
return s, None, None
return s, None, None, None
def _split(s): # Return a triple: prefix, name, suffix # - prefix is text that can be used literally in the result (may be '') # - name is a referenced name, or None # - suffix is trailling text that may contain additional references # (may be '' or None) if "$" in s: i = s.find("$") c = s[i+1:i+2] if c == "": raise...
15bf6994530c17c23f1bf769b237622bf9d50492 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9785/15bf6994530c17c23f1bf769b237622bf9d50492/substitution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 12, 87, 4672, 468, 2000, 279, 14543, 30, 225, 1633, 16, 508, 16, 3758, 468, 300, 1633, 353, 977, 716, 848, 506, 1399, 328, 2165, 1230, 316, 326, 563, 261, 24877, 506, 28707,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 12, 87, 4672, 468, 2000, 279, 14543, 30, 225, 1633, 16, 508, 16, 3758, 468, 300, 1633, 353, 977, 716, 848, 506, 1399, 328, 2165, 1230, 316, 326, 563, 261, 24877, 506, 28707,...
return _readmodule(module, path) def _readmodule(module, path, inpackage=None): '''Do the hard work for readmodule[_ex].'''
def readmodule_ex(module, path=[]): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module. If INPACKAGE is true, it must be the dotted name of the package in which we are sea...
7d4cac5de777aad61727f6a068b3c392bb76f3e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/7d4cac5de777aad61727f6a068b3c392bb76f3e3/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 33, 8526, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2978, 67, 338, 12, 2978, 16, 589, 33, 8526, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, ...
raise SMTPDataError('data transmission error: %s' % code)
raise SMTPDataError(code, resp)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2...
cur_line.append(chunks.pop(0))
cur_line.append(reversed_chunks.pop())
def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int)
813c5d3fb234531a2f4549fcc4952768bddda0f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/813c5d3fb234531a2f4549fcc4952768bddda0f8/textwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 5748, 67, 1095, 12, 2890, 16, 6055, 16, 662, 67, 1369, 16, 662, 67, 1897, 16, 1835, 4672, 3536, 67, 4110, 67, 5748, 67, 1095, 12, 14691, 294, 306, 1080, 6487, 662, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 5748, 67, 1095, 12, 2890, 16, 6055, 16, 662, 67, 1369, 16, 662, 67, 1897, 16, 1835, 4672, 3536, 67, 4110, 67, 5748, 67, 1095, 12, 14691, 294, 306, 1080, 6487, 662, 67,...
def paramikoConnect(hostname, username, password, timeout): """Connects to 'hostname' and returns a Paramiko transport object to use in further communications"""
def paramikoConnect(host, username, password, timeout): """Connects to 'host' and returns a Paramiko transport object to use in further communications"""
def paramikoConnect(hostname, username, password, timeout): """Connects to 'hostname' and returns a Paramiko transport object to use in further communications""" # Uncomment this line to turn on Paramiko debugging (good for troubleshooting why some servers report connection failures) #paramiko.util.log_to_file('paramik...
6f69307ce1383825280bcd450de5b2253a841bcf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/6f69307ce1383825280bcd450de5b2253a841bcf/sshpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 27113, 5215, 12, 2564, 16, 2718, 16, 2201, 16, 2021, 4672, 3536, 21500, 358, 296, 2564, 11, 471, 1135, 279, 3014, 27113, 4736, 733, 358, 999, 316, 9271, 18279, 87, 8395, 468, 1351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 579, 27113, 5215, 12, 2564, 16, 2718, 16, 2201, 16, 2021, 4672, 3536, 21500, 358, 296, 2564, 11, 471, 1135, 279, 3014, 27113, 4736, 733, 358, 999, 316, 9271, 18279, 87, 8395, 468, 1351, ...
if p not in binaries: binaries.append(p)
def doop_source(self, pkg):
8bd331e0372890c5e7a61dfbb4f1be9ff009ad52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/8bd331e0372890c5e7a61dfbb4f1be9ff009ad52/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 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, ...
[ 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, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
cmap = get_cmap(options['cmap'])
if options.has_key('cmap'): cmap = get_cmap(options['cmap']) elif fill or contours is None: cmap = get_cmap('gray') else: if isinstance(contours, (int, Integer)): cmap = get_cmap([(i,i,i) for i in xsrange(0,1,1/contours)]) else: l = Integer(len(contours)) cmap = get_cmap([(i,i,i) for i in xsrange(0,1,1/l)])
def _render_on_subplot(self, subplot): """ TESTS:
f9c563d3af4fbbd6cb54efabeb25dc77482062db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f9c563d3af4fbbd6cb54efabeb25dc77482062db/contour_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 3536, 22130, 55, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 3536, 22130, 55, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
bad = (_("%s admin authentication failed.") % mlist.real_name)
bad = _("%(realname)s admin authentication failed.")
def main(): doc = htmlformat.HeadlessDocument() parts = Utils.GetPathPieces() if not parts: error_page(_('Invalid options to CGI script')) return listname = string.lower(parts[0]) try: mlist = MailList.MailList(listname, lock=0) except Errors.MMListError, e: error_page(_('No such list <em>%s</em>') % listname) syslog...
29a3cd601994f90d3f470ab38e8b391cda590e41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/29a3cd601994f90d3f470ab38e8b391cda590e41/roster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 997, 273, 1729, 2139, 18, 1414, 2656, 2519, 1435, 225, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 309, 486, 2140, 30, 555, 67, 2433, 24899, 2668, 1941, 702, 358, 385,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 997, 273, 1729, 2139, 18, 1414, 2656, 2519, 1435, 225, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 309, 486, 2140, 30, 555, 67, 2433, 24899, 2668, 1941, 702, 358, 385,...
To prevent this, _check_missing will abort if there are missing files. The force option will let the user skip the check if he knows it is safe.
To prevent this, this function will abort if there are uncommitted changes. """
def _check_missing(ui, repo, missing, force=False): """Abort if there is the chance of having problems with name-mangling fs In a name mangling filesystem (e.g. a case insensitive one) dirstate.walk() can yield filenames different from the ones stored in the dirstate. This already confuses the status and add commands,...
bb6187763e086d349115546960664f7f65e54e0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/bb6187763e086d349115546960664f7f65e54e0a/purge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 7337, 12, 4881, 16, 3538, 16, 3315, 16, 2944, 33, 8381, 4672, 3536, 13572, 309, 1915, 353, 326, 17920, 434, 7999, 9688, 598, 508, 17, 81, 539, 2456, 2662, 225, 657, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 7337, 12, 4881, 16, 3538, 16, 3315, 16, 2944, 33, 8381, 4672, 3536, 13572, 309, 1915, 353, 326, 17920, 434, 7999, 9688, 598, 508, 17, 81, 539, 2456, 2662, 225, 657, 279,...
builder.FOR__setCondition(node, (tokenizer.peek() == SEMICOLON) ? null : Expression(tokenizer, compilerContext))
if tokenizer.peek() == SEMICOLON: builder.FOR__setCondition(node, None) else: builder.FOR__setCondition(node, Expression(tokenizer, compilerContext))
def Statement(tokenizer, compilerContext): """Parses a Statement.""" tokenType = tokenizer.get(True) builder = compilerContext.builder # Cases for statements ending in a right curly return early, avoiding the # common semicolon insertion magic after this switch. if tokenType == FUNCTION: # DECLARED_FORM extends funD...
670da102d472903ae06b498219cfe183a84ebd84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/670da102d472903ae06b498219cfe183a84ebd84/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8056, 12, 2316, 1824, 16, 5274, 1042, 4672, 3536, 6656, 279, 8056, 12123, 225, 22302, 273, 10123, 18, 588, 12, 5510, 13, 2089, 273, 5274, 1042, 18, 9574, 225, 468, 385, 3304, 364, 6317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8056, 12, 2316, 1824, 16, 5274, 1042, 4672, 3536, 6656, 279, 8056, 12123, 225, 22302, 273, 10123, 18, 588, 12, 5510, 13, 2089, 273, 5274, 1042, 18, 9574, 225, 468, 385, 3304, 364, 6317, ...
if not user.login.startswith(start_filter):
if eval(self.config_dict['uppercase_only']): login = user.login.decode('utf8').upper().encode('utf8') else: login = user.login if not login.startswith(start_filter):
def display_user_list(self, users, start_filter):
a20481d48ce29f35da563176baa45e8aee99e748 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/a20481d48ce29f35da563176baa45e8aee99e748/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 1355, 67, 1098, 12, 2890, 16, 3677, 16, 787, 67, 2188, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2562, 67, 1355, 67, 1098, 12, 2890, 16, 3677, 16, 787, 67, 2188, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def wrapperCall( self, *args ):
def wrapperCall( *args ):
def wrapperCall( self, *args ): """Wrapper with all save returnValues""" pyArgs = args cArgs = [] for (index,converter) in enumerate( cConverters ): # move enumerate out... if not callable(converter): cArgs.append( converter ) else: try: cArgs.append( converter( pyArgs, index, self ) ) except Exception, err: if hasattr...
37819bfb0a23b29e5197cbb47fad0e486a1708d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1545/37819bfb0a23b29e5197cbb47fad0e486a1708d3/wrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 1477, 12, 380, 1968, 262, 30, 3536, 3611, 598, 777, 1923, 327, 1972, 8395, 2395, 2615, 273, 833, 276, 2615, 273, 5378, 364, 261, 1615, 16, 15747, 13, 316, 4241, 12, 276, 24615, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 1477, 12, 380, 1968, 262, 30, 3536, 3611, 598, 777, 1923, 327, 1972, 8395, 2395, 2615, 273, 833, 276, 2615, 273, 5378, 364, 261, 1615, 16, 15747, 13, 316, 4241, 12, 276, 24615, 2...
for path in paths: print path
def __init__(self,*args): paths = [] import glob for arg in args: paths += glob.glob(arg)
2bea244723902afdd7c8d9b8c1a90b1f4d64ed4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/2bea244723902afdd7c8d9b8c1a90b1f4d64ed4b/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 2953, 273, 5378, 1930, 4715, 364, 1501, 316, 833, 30, 2953, 1011, 4715, 18, 10581, 12, 3175, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 2953, 273, 5378, 1930, 4715, 364, 1501, 316, 833, 30, 2953, 1011, 4715, 18, 10581, 12, 3175, 13, 2, -100, -100, -100, -100, -100, -100, -...
sage: R.<x> = QQ['x']
sage: R.<x> = QQ['x']
def local_coordinates_at_infinity(self, prec = 20, name = 't'): """ For the genus g hyperelliptic curve y^2 = f(x), returns (x(t), y(t)) such that (y(t))^2 = f(x(t)), where t = x^g/y is the local parameter at infinity
ef7503ddc882a8693dd4b8a170c060074f3ef89b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/ef7503ddc882a8693dd4b8a170c060074f3ef89b/hyperelliptic_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 16941, 67, 270, 67, 267, 7850, 12, 2890, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 326, 3157, 407, 314, 9512, 292, 549, 21507, 8882, 677, 66, 22, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 16941, 67, 270, 67, 267, 7850, 12, 2890, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 326, 3157, 407, 314, 9512, 292, 549, 21507, 8882, 677, 66, 22, 2...
reply.getQuerynode().addChild("feature", {"var":"http://jabber.org/protocol/si"}) reply.getQuerynode().addChild("feature", {"var":"http://jabber.org/protocol/si/profile/spade-p2p-messaging"})
reply.getTag("query").addChild("feature", {"var":"http://jabber.org/protocol/si"}) reply.getTag("query").addChild("feature", {"var":"http://jabber.org/protocol/si/profile/spade-p2p-messaging"})
def _jabber_messageCB(self, conn, mess, raiseFlag=True): """ message callback read the message envelope and post the message to the agent """
3fd3d787c8af9fa40be6b7e2507de52eb463020d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10121/3fd3d787c8af9fa40be6b7e2507de52eb463020d/Agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 78, 378, 744, 67, 2150, 8876, 12, 2890, 16, 1487, 16, 12755, 16, 1002, 4678, 33, 5510, 4672, 3536, 883, 1348, 855, 326, 883, 9045, 471, 1603, 326, 883, 358, 326, 4040, 3536, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 78, 378, 744, 67, 2150, 8876, 12, 2890, 16, 1487, 16, 12755, 16, 1002, 4678, 33, 5510, 4672, 3536, 883, 1348, 855, 326, 883, 9045, 471, 1603, 326, 883, 358, 326, 4040, 3536, 2, ...
cursor, user, vals.from_location, context=context)
cursor, user, vals['from_location'], context=context)
def create(self, cursor, user, vals, context=None): location_obj = self.pool.get('stock.location')
0836283c2507878c6f7b0fcdca72e62df6bf58b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/0836283c2507878c6f7b0fcdca72e62df6bf58b7/move.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 2, -100, -100, -100, -100, -100, -100, ...
self.initReady = False
def __init__(self, cols, subPanelHeight, orientation='horizontal', viewmode = 'list', parent = None, name="standardGrid"): ## self.initReady = False self.data = None self.detailPanel = None self.orientation = orientation self.subPanelClass = None self.items = 0 #number of items that are currently visible self.currentRo...
f1eb2fec9d42f97f3483769dff090dc9f264a0fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/f1eb2fec9d42f97f3483769dff090dc9f264a0fd/standardGrid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5347, 16, 720, 5537, 2686, 16, 9820, 2218, 18396, 2187, 1476, 3188, 273, 296, 1098, 2187, 982, 273, 599, 16, 508, 1546, 10005, 6313, 6, 4672, 7541, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5347, 16, 720, 5537, 2686, 16, 9820, 2218, 18396, 2187, 1476, 3188, 273, 296, 1098, 2187, 982, 273, 599, 16, 508, 1546, 10005, 6313, 6, 4672, 7541, 365, ...
else: self.quit_pending = True
def ftp_QUIT(self, line): """Quit the current session.""" # From RFC-959: # This command terminates a USER and if file transfer is not # in progress, the server closes the control connection. # If file transfer is in progress, the connection will remain # open for result response and the server will then close it. if s...
b72be3883869c0d6338fc8636991ea45b11add17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7236/b72be3883869c0d6338fc8636991ea45b11add17/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 3500, 1285, 12, 2890, 16, 980, 4672, 3536, 25365, 326, 783, 1339, 12123, 468, 6338, 8372, 17, 29, 6162, 30, 468, 1220, 1296, 30559, 279, 7443, 471, 309, 585, 7412, 353, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13487, 67, 3500, 1285, 12, 2890, 16, 980, 4672, 3536, 25365, 326, 783, 1339, 12123, 468, 6338, 8372, 17, 29, 6162, 30, 468, 1220, 1296, 30559, 279, 7443, 471, 309, 585, 7412, 353, 486, ...
tree = treelib.parseNewick("((a1,b1),(c1,d1));")
def test_birthDeathPriorFull(self): """test birth death prior with implied speciation nodes""" l = 2 u = .5 maxdoom = 10
690c25985c6575933cde9011a69349769e38013c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12857/690c25985c6575933cde9011a69349769e38013c/birthdeath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22531, 758, 421, 25355, 5080, 12, 2890, 4672, 3536, 3813, 17057, 443, 421, 6432, 598, 23547, 857, 7072, 2199, 8395, 225, 328, 273, 576, 582, 273, 263, 25, 943, 2896, 362, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 22531, 758, 421, 25355, 5080, 12, 2890, 4672, 3536, 3813, 17057, 443, 421, 6432, 598, 23547, 857, 7072, 2199, 8395, 225, 328, 273, 576, 582, 273, 263, 25, 943, 2896, 362, 273, ...
wc.config = wc.Configuration(confdir=confdir) wc.config.init_filter_modules()
wc.configuration.config = wc.configuration.Configuration(confdir=confdir) wc.configuration.config.init_filter_modules() wc.proxy.dns_lookups.init_resolver()
def _main (): """USAGE: test/run.sh test/filterfile.py <config dir> <.html file>""" if len(sys.argv)!=3: print _main.__doc__ sys.exit(1) confdir = sys.argv[1] fname = sys.argv[2] if fname=="-": f = sys.stdin else: f = file(fname) logfile = os.path.join(confdir, "logging.conf") wc.initlog(logfile, wc.Name, filelogs=Fals...
34490e8500d1c9e54d629f5a2141f228d212be2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/34490e8500d1c9e54d629f5a2141f228d212be2a/filterfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 1832, 30, 3536, 29550, 30, 1842, 19, 2681, 18, 674, 1842, 19, 2188, 768, 18, 2074, 411, 1425, 1577, 34, 411, 18, 2620, 585, 2984, 3660, 309, 562, 12, 9499, 18, 19485, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 1832, 30, 3536, 29550, 30, 1842, 19, 2681, 18, 674, 1842, 19, 2188, 768, 18, 2074, 411, 1425, 1577, 34, 411, 18, 2620, 585, 2984, 3660, 309, 562, 12, 9499, 18, 19485, 13, ...
from Cookie import SimpleCookie c = SimpleCookie() c['MOIN_ID'] = self.user.id c['MOIN_ID']['max-age'] = maxage if self.cfg.cookie_domain: c['MOIN_ID']['domain'] = self.cfg.cookie_domain if self.cfg.cookie_path: c['MOIN_ID']['path'] = self.cfg.cookie_path else: c['MOIN_ID']['path'] = self.getScriptname() c['MOIN_ID']...
cookie = self.makeCookie(self.user.id, maxage, expires) self.setHttpHeader(cookie)
def setCookie(self): """ Set cookie for the current user cfg.cookie_lifetime and the user 'remember_me' setting set the lifetime of the cookie. lifetime in int hours, see table: value cookie lifetime ---------------------------------------------------------------- = 0 forever, ignoring user 'remember_me' setting...
63802b2d2ac05d2344f28c1d53a2b0063863fa12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/63802b2d2ac05d2344f28c1d53a2b0063863fa12/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26793, 12, 2890, 4672, 3536, 1000, 3878, 364, 326, 783, 729, 225, 2776, 18, 8417, 67, 17155, 471, 326, 729, 296, 28155, 67, 3501, 11, 3637, 444, 326, 12486, 434, 326, 3878, 18, 12486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26793, 12, 2890, 4672, 3536, 1000, 3878, 364, 326, 783, 729, 225, 2776, 18, 8417, 67, 17155, 471, 326, 729, 296, 28155, 67, 3501, 11, 3637, 444, 326, 12486, 434, 326, 3878, 18, 12486, ...
return NumericSynthSetting("inflection",_("&Inflection"),minStep)
return NumericSynthSetting("inflection",_("&Inflection"),minStep=minStep)
def InflectionSetting(cls,minStep=1): """Factory function for creating inflection setting.""" return NumericSynthSetting("inflection",_("&Inflection"),minStep)
d7501d83cabc291a70992da6a9e3459373ad3530 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/d7501d83cabc291a70992da6a9e3459373ad3530/synthDriverHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13648, 942, 5568, 12, 6429, 16, 1154, 4160, 33, 21, 4672, 3536, 1733, 445, 364, 4979, 8286, 942, 3637, 12123, 327, 16980, 10503, 451, 5568, 2932, 10625, 942, 3113, 67, 2932, 10, 13149, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13648, 942, 5568, 12, 6429, 16, 1154, 4160, 33, 21, 4672, 3536, 1733, 445, 364, 4979, 8286, 942, 3637, 12123, 327, 16980, 10503, 451, 5568, 2932, 10625, 942, 3113, 67, 2932, 10, 13149, 9...
tl = int(techID / 1000),
tl = tech.level,
def showTechs(self): # techs items = [] select = None showMilitary = self.win.vMilitary.checked showBio = self.win.vBioProduction.checked showEn = self.win.vEnProduction.checked showCP = self.win.vCPProduction.checked showRP = self.win.vRPProduction.checked showMorale = self.win.vMorale.checked
2f942f88cd232edd6772f78047475ff3d5b1dd57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10927/2f942f88cd232edd6772f78047475ff3d5b1dd57/StructTaskDlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 56, 8987, 87, 12, 2890, 4672, 468, 13878, 87, 1516, 273, 5378, 2027, 273, 599, 2405, 49, 330, 305, 814, 273, 365, 18, 8082, 18, 90, 49, 330, 305, 814, 18, 4532, 2405, 38, 1594,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 56, 8987, 87, 12, 2890, 4672, 468, 13878, 87, 1516, 273, 5378, 2027, 273, 599, 2405, 49, 330, 305, 814, 273, 365, 18, 8082, 18, 90, 49, 330, 305, 814, 18, 4532, 2405, 38, 1594,...
res = RecapDecompose(m)
res = RecapDecompose(m,onlyUseReactions=[1])
def testAmideRxn(self): m = Chem.MolFromSmiles('C1CC1C(=O)NC1OC1') res = RecapDecompose(m) self.failUnless(res) self.failUnless(len(res.GetLeaves())==2) ks = res.GetLeaves().keys() self.failUnless('[*]C(=O)C1CC1' in ks) self.failUnless('[*]NC1CO1' in ks) m = Chem.MolFromSmiles('C1CC1C(=O)N(C)C1OC1') res = RecapDecompo...
e793cf1d5a1abc952de6d7bd7feb70328e8a57c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9195/e793cf1d5a1abc952de6d7bd7feb70328e8a57c4/Recap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9864, 831, 54, 22695, 12, 2890, 4672, 312, 273, 26542, 18, 49, 355, 1265, 9552, 1449, 2668, 39, 21, 6743, 21, 39, 12, 33, 51, 13, 10346, 21, 10809, 21, 6134, 400, 273, 868, 590...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9864, 831, 54, 22695, 12, 2890, 4672, 312, 273, 26542, 18, 49, 355, 1265, 9552, 1449, 2668, 39, 21, 6743, 21, 39, 12, 33, 51, 13, 10346, 21, 10809, 21, 6134, 400, 273, 868, 590...
self.clientServerService2 = util.wait(self.addClientService( self.toAddress, 'aaaa', self.serverService)) util.wait(self.clientServerService2.listenQ2Q(self.toAddress, {'pony': ponyFactory}, 'ponies are weird')) ponged = defer.Deferred() util.wait(self.clientServerService.listenQ2Q(self.toAddress, {'pony': ponyFa...
def testChooserGetsThreeChoices(self): ponyFactory = OneTrickPonyServerFactory() self.testListening()
37f03e58474c9d3756dd1192a546f215552de242 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/37f03e58474c9d3756dd1192a546f215552de242/test_q2q.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 17324, 3002, 28019, 17442, 12, 2890, 4672, 293, 6598, 1733, 273, 6942, 1070, 1200, 52, 6598, 2081, 1733, 1435, 365, 18, 3813, 31594, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 17324, 3002, 28019, 17442, 12, 2890, 4672, 293, 6598, 1733, 273, 6942, 1070, 1200, 52, 6598, 2081, 1733, 1435, 365, 18, 3813, 31594, 1435, 2, -100, -100, -100, -100, -100, -100, -100...
os.system("kwriteconfig --group Development --key CopyWidgetTextCommand \"/bin/sh `kde4-config --path data --locate lokalize/find-gui-text.sh` \\\"%1\\\" \\\"%2\\\"\"")
os.system("kwriteconfig --group Development --key CopyWidgetTextCommand \"/bin/sh `kde4-config --path data --locate lokalize/scripts/find-gui-text.sh` \\\"%1\\\" \\\"%2\\\"\"")
def i18n(text, args = []): if T is not None: return utf8_decoder(T.i18n(text, args))[0] # No translation module, return the untranslated string for a in range(len(args)): text = text.replace( ("%" + "%d" % ( a + 1 )), str(args[a]) ) return text
5e32cdcea6cb19a4cfece5cd3db81f79a942fa05 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1688/5e32cdcea6cb19a4cfece5cd3db81f79a942fa05/widget-text-capture.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 2643, 82, 12, 955, 16, 833, 273, 5378, 4672, 309, 399, 353, 486, 599, 30, 327, 7718, 28, 67, 21070, 12, 56, 18, 77, 2643, 82, 12, 955, 16, 833, 3719, 63, 20, 65, 468, 2631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 277, 2643, 82, 12, 955, 16, 833, 273, 5378, 4672, 309, 399, 353, 486, 599, 30, 327, 7718, 28, 67, 21070, 12, 56, 18, 77, 2643, 82, 12, 955, 16, 833, 3719, 63, 20, 65, 468, 2631, ...
res = os.popen("file --brief --mime-type '%s'" % filename).read().strip()
res = os.popen(file_cmd % filename).read().strip()
def get_file_mimetype(filename): res = os.popen("file --brief --mime-type '%s'" % filename).read().strip() assert res, "Cannot get mime type using `file' command" return res
cafabd266125e8911285a529d6bbf0f454a18552 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/cafabd266125e8911285a529d6bbf0f454a18552/sip_im_send_file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 22571, 12, 3459, 4672, 400, 273, 1140, 18, 84, 3190, 12, 768, 67, 4172, 738, 1544, 2934, 896, 7675, 6406, 1435, 1815, 400, 16, 315, 4515, 336, 4892, 618, 1450, 1375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 22571, 12, 3459, 4672, 400, 273, 1140, 18, 84, 3190, 12, 768, 67, 4172, 738, 1544, 2934, 896, 7675, 6406, 1435, 1815, 400, 16, 315, 4515, 336, 4892, 618, 1450, 1375, ...
if self.editable:
if self.editable or force_root_egg_info:
def run_egg_info(self): assert self.source_dir if self.name: logger.notify('Running setup.py egg_info for package %s' % self.name) else: logger.notify('Running setup.py egg_info for package from %s' % self.url) logger.indent += 2 try: script = self._run_setup_py script = script.replace('__SETUP_PY__', repr(self.setup_p...
c051e9faf4f36daecedea6639c4185a848366fa6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12982/c051e9faf4f36daecedea6639c4185a848366fa6/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 23171, 67, 1376, 12, 2890, 4672, 1815, 365, 18, 3168, 67, 1214, 309, 365, 18, 529, 30, 1194, 18, 12336, 2668, 7051, 3875, 18, 2074, 25144, 67, 1376, 364, 2181, 738, 87, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 23171, 67, 1376, 12, 2890, 4672, 1815, 365, 18, 3168, 67, 1214, 309, 365, 18, 529, 30, 1194, 18, 12336, 2668, 7051, 3875, 18, 2074, 25144, 67, 1376, 364, 2181, 738, 87, 11, ...