rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
photoItem = repView [photoUUID]
photoItem = repView[photoUUID]
def fillCollectionFromFlickr(self, repView): """ Fills the collection with photos from the flickr website. """ coll = pim.ListCollection(itsView = repView).setup() if self.userName: flickrUserName = flickr.people_findByUsername(self.userName.encode('utf8')) flickrPhotos = flickr.people_getPublicPhotos(flickrUserName.id...
9117b16c67be28a0a170fe4d46c0bc4a0f04851f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9117b16c67be28a0a170fe4d46c0bc4a0f04851f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 2532, 1265, 2340, 16254, 12, 2890, 16, 2071, 1767, 4672, 3536, 14192, 87, 326, 1849, 598, 18185, 628, 326, 1183, 16254, 12504, 18, 3536, 4508, 273, 293, 381, 18, 682, 2532, 12, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3636, 2532, 1265, 2340, 16254, 12, 2890, 16, 2071, 1767, 4672, 3536, 14192, 87, 326, 1849, 598, 18185, 628, 326, 1183, 16254, 12504, 18, 3536, 4508, 273, 293, 381, 18, 682, 2532, 12, 128...
Not that calling any method (even inquiries) on a closed file is undefined. Implementations may raise IOError in this case.
Note that calling any method (even inquiries) on a closed file is undefined. Implementations may raise IOError in this case.
def __new__(cls, *args, **kwargs): return open(*args, **kwargs)
4e4955315a0b47d137c84babf3770cf29603395c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/4e4955315a0b47d137c84babf3770cf29603395c/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 327, 1696, 30857, 1968, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 327, 1696, 30857, 1968, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.session_binder[ptype].append((persp_klass, show_pers, resize, shrink))
self.session_binder[ptype].append((persp_klass, show_pers, \ resize, shrink))
def bind_session(self, ptype, persp_klass, show_pers=True, resize=False, shrink=True): """ Bind the perspective 'pers_klass' to Session 'ptype'
05f68a255d3ea85d6e22c14339e6ebf36badb224 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11468/05f68a255d3ea85d6e22c14339e6ebf36badb224/MainWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 67, 3184, 12, 2890, 16, 24203, 16, 13508, 84, 67, 22626, 16, 2405, 67, 10422, 33, 5510, 16, 7041, 33, 8381, 16, 17697, 33, 5510, 4672, 3536, 6936, 326, 26651, 296, 10422, 67, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1993, 67, 3184, 12, 2890, 16, 24203, 16, 13508, 84, 67, 22626, 16, 2405, 67, 10422, 33, 5510, 16, 7041, 33, 8381, 16, 17697, 33, 5510, 4672, 3536, 6936, 326, 26651, 296, 10422, 67, 226...
fullname = None
fullname = ''
def lock_info(self): """Get information about the current lock, a dict containing:
0e15a92b559bbddcebace018c1ab7484eaa73a2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12235/0e15a92b559bbddcebace018c1ab7484eaa73a2c/locking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2176, 67, 1376, 12, 2890, 4672, 3536, 967, 1779, 2973, 326, 783, 2176, 16, 279, 2065, 4191, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2176, 67, 1376, 12, 2890, 4672, 3536, 967, 1779, 2973, 326, 783, 2176, 16, 279, 2065, 4191, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
size = self.config.group("General").readEntry("Geometry") self.showsystemaccounts = self.config.group("Options").readEntry("ShowSystemAccounts") if self.showsystemaccounts == '': self.showsystemaccounts = False else: self.showsystemaccounts = int(self.showsystemaccounts) self.userstab.show_sysaccts_checkbox.setChe...
self.restoreDialogSize(self.generalconfiggroup) showsystemaccounts = self.optionsconfiggroup.readEntry("ShowSystemAccounts") if showsystemaccounts: showsystemaccounts = int(showsystemaccounts) showsystemaccounts = bool(showsystemaccounts) self.userstab.show_sysaccts_checkbox.setChecked(showsystemaccounts) self.userli...
def __loadOptions(self): #self.config.setGroup("General") size = self.config.group("General").readEntry("Geometry") #if size.isEmpty()==False: #self.resize(size) # TODO #self.config.setGroup("Options") self.showsystemaccounts = self.config.group("Options").readEntry("ShowSystemAccounts") if self.showsystemaccounts ==...
ec4df457bd95d1969f47ad7ec630fe1b0d9ad95b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1669/ec4df457bd95d1969f47ad7ec630fe1b0d9ad95b/userconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 945, 1320, 12, 2890, 4672, 468, 2890, 18, 1425, 18, 542, 1114, 2932, 12580, 7923, 225, 963, 273, 365, 18, 1425, 18, 1655, 2932, 12580, 20387, 896, 1622, 2932, 9823, 7923, 468, 430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 945, 1320, 12, 2890, 4672, 468, 2890, 18, 1425, 18, 542, 1114, 2932, 12580, 7923, 225, 963, 273, 365, 18, 1425, 18, 1655, 2932, 12580, 20387, 896, 1622, 2932, 9823, 7923, 468, 430,...
unpacked = ins.unpack('2s',size,readId)
record.damage = ins.unpack('H',size,readId) return else: raise "Unexpected size encountered for WATR subrecord: %s" % size def dumpData(self,record,out): out.packSub(self.subType,'H',record.damage) class MelWatrDnam(MelStruct): """Handle older trucated DNAM for WATR subrecord.""" def loadData(self,record,ins,type,size...
def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that...
bb8dded3d0038a77d8e132eb182951a44f590672 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/bb8dded3d0038a77d8e132eb182951a44f590672/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29422, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, 16, 896, 548, 4672, 309, 963, 422, 21822, 30, 490, 292, 3823, 18, 945, 751, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29422, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, 16, 896, 548, 4672, 309, 963, 422, 21822, 30, 490, 292, 3823, 18, 945, 751, 12, 2890, 16, 3366, 16, 2679, 16, 723, 16, 1467, ...
top: 8em;
top: 12em;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
acdc0244792477086801b5d196f5c9838d98c5bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/acdc0244792477086801b5d196f5c9838d98c5bd/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, ...
self.widthLineCount = width_line_count self.heightLineCount = height_line_count
self.heightDivisions = height_divisions self.widthDivisions = width_divisions
def __init__(self, xy, width, height, width_line_count, height_line_count, pen=None): _CompoundHPGL.__init__(self, xy, pen = pen) self.width = Scalable(width) self.height = Scalable(height) self.widthLineCount = width_line_count self.heightLineCount = height_line_count self.referencePoint = (0, 0) ## range: [0 to 1]
62b6b73b97af490069011e9cc7efc85a83a0a0bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3716/62b6b73b97af490069011e9cc7efc85a83a0a0bb/grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7668, 16, 1835, 16, 2072, 16, 1835, 67, 1369, 67, 1883, 16, 2072, 67, 1369, 67, 1883, 16, 14264, 33, 7036, 4672, 389, 16835, 2500, 11261, 16186, 2738, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7668, 16, 1835, 16, 2072, 16, 1835, 67, 1369, 67, 1883, 16, 2072, 67, 1369, 67, 1883, 16, 14264, 33, 7036, 4672, 389, 16835, 2500, 11261, 16186, 2738, 97...
args = (ppresolve(args[0]),) + args[1:]
args = (_ppresolve_ignore_failure(args[0]),) + args[1:]
def _scipy_pydoc_Doc_document(self,*args,**kwds): args = (ppresolve(args[0]),) + args[1:] return _old_pydoc_Doc_document(self,*args,**kwds)
5d6793a718e91906b1e75665ba78c6e02e6a1370 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5d6793a718e91906b1e75665ba78c6e02e6a1370/ppimport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1017, 9126, 67, 2074, 2434, 67, 1759, 67, 5457, 12, 2890, 16, 14, 1968, 16, 636, 25577, 4672, 833, 273, 261, 67, 11858, 10828, 67, 6185, 67, 12251, 12, 1968, 63, 20, 65, 3631, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1017, 9126, 67, 2074, 2434, 67, 1759, 67, 5457, 12, 2890, 16, 14, 1968, 16, 636, 25577, 4672, 833, 273, 261, 67, 11858, 10828, 67, 6185, 67, 12251, 12, 1968, 63, 20, 65, 3631, 1...
def blocked(wsite, username): """ The function to understand if the user is blocked or not. """ pathWiki = wsite.family.nicepath(wsite.lang) reg = r"""<li>\d\d:\d\d, \d(\d)? (.*?) \d\d\d\d <a href=\"""" + re.escape(pathWiki) + \ r"""(.*?)\" title=\"(.*?)\">(.*?)</a> <span class=\"mw-usertoollinks\">""" block_text = ws...
def blocked(username): """ Function that detects if a user is currently blocked or not. """ params = { 'action' :'query', 'list' :'users', 'ususers' :username, 'usprop' :'blockinfo', } data = query.GetData(params, useAPI = True, encodeTitle = False) try: blockedBy = data['query']['users'][0]['blockedby...
def blocked(wsite, username): """ The function to understand if the user is blocked or not. """ pathWiki = wsite.family.nicepath(wsite.lang) #A little function to check if the user has already been blocked (to skip him). reg = r"""<li>\d\d:\d\d, \d(\d)? (.*?) \d\d\d\d <a href=\"""" + re.escape(pathWiki) + \ r"""(.*?)\"...
2638e848f0e3bc123c30c43c6144cc3f3bc87131 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/2638e848f0e3bc123c30c43c6144cc3f3bc87131/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14547, 12, 91, 4256, 16, 2718, 4672, 3536, 1021, 445, 358, 22413, 309, 326, 729, 353, 14547, 578, 486, 18, 3536, 589, 25438, 273, 341, 4256, 18, 9309, 18, 82, 1812, 803, 12, 91, 4256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14547, 12, 91, 4256, 16, 2718, 4672, 3536, 1021, 445, 358, 22413, 309, 326, 729, 353, 14547, 578, 486, 18, 3536, 589, 25438, 273, 341, 4256, 18, 9309, 18, 82, 1812, 803, 12, 91, 4256, ...
entity.title = "%s, %s" % (inferred_name, reverse_geocode(entity.location[1], entity.location[0])[0][0])
entity.title = u"%s, %s" % (inferred_name, reverse_geocode(entity.location[1], entity.location[0])[0][0])
def endDocument(self): for entity in Entity.objects.filter(source=self.source): if not entity.identifiers['osm'] in self.ids: entity.delete() self.delete_count += 1
49e31fe3ef4aa2a9a8a7861170df02e006c0f7a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/49e31fe3ef4aa2a9a8a7861170df02e006c0f7a6/osm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 2519, 12, 2890, 4672, 364, 1522, 316, 3887, 18, 6911, 18, 2188, 12, 3168, 33, 2890, 18, 3168, 4672, 309, 486, 1522, 18, 20218, 3292, 538, 81, 3546, 316, 365, 18, 2232, 30, 1522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 2519, 12, 2890, 4672, 364, 1522, 316, 3887, 18, 6911, 18, 2188, 12, 3168, 33, 2890, 18, 3168, 4672, 309, 486, 1522, 18, 20218, 3292, 538, 81, 3546, 316, 365, 18, 2232, 30, 1522, ...
result = self.fc.listDirectory(path,long)
result = self.fc.listDirectory(path,long)
def do_ls(self,args): """ Lists directory entries at <path>
4e9355f1e4d9d4e6acac1a2fac367016f26ecd4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/4e9355f1e4d9d4e6acac1a2fac367016f26ecd4b/FileCatalogClientCLI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3251, 12, 2890, 16, 1968, 4672, 3536, 11592, 1867, 3222, 622, 411, 803, 34, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3251, 12, 2890, 16, 1968, 4672, 3536, 11592, 1867, 3222, 622, 411, 803, 34, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.__permalink_link = ClickableLabel("Permalink")
self.__permalink_link = ClickableLabel(_("Permalink"))
def build_video_details(self): v = VBox()
17ee76314d6827c5b10310d092f160b36e48fb21 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/17ee76314d6827c5b10310d092f160b36e48fb21/video.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9115, 67, 6395, 12, 2890, 4672, 331, 273, 776, 3514, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9115, 67, 6395, 12, 2890, 4672, 331, 273, 776, 3514, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if BUILD_ARCHIVE_TYPE in ('linux', 'linux-64'):
if BUILD_ARCHIVE_TYPE in ('linux', 'linux-64', 'linux-chromiumos'):
def SetArchiveVars(archive): """Set a bunch of global variables appropriate for the specified archive.""" global BUILD_ARCHIVE_TYPE global BUILD_ARCHIVE_DIR global BUILD_ZIP_NAME global BUILD_DIR_NAME global BUILD_EXE_NAME global BUILD_BASE_URL BUILD_ARCHIVE_TYPE = archive BUILD_ARCHIVE_DIR = 'chromium-rel-' + BUILD_A...
bb46e0d24a1c87d3a627ae0b4832c44d184888e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6097/bb46e0d24a1c87d3a627ae0b4832c44d184888e0/build-bisect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 7465, 5555, 12, 10686, 4672, 3536, 694, 279, 25606, 434, 2552, 3152, 5505, 364, 326, 1269, 5052, 12123, 2552, 30054, 67, 10586, 5354, 67, 2399, 2552, 30054, 67, 10586, 5354, 67, 4537...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 7465, 5555, 12, 10686, 4672, 3536, 694, 279, 25606, 434, 2552, 3152, 5505, 364, 326, 1269, 5052, 12123, 2552, 30054, 67, 10586, 5354, 67, 2399, 2552, 30054, 67, 10586, 5354, 67, 4537...
value = int(value)
value = float(value)
def import_list(self, propnames, proplist): ''' Import a node - all information including "id" is present and should not be sanity checked. Triggers are not triggered. The journal should be initialised using the "creator" and "creation" information.
6c0272730e912ec3bee2ac717f2658a1a4d45d30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/6c0272730e912ec3bee2ac717f2658a1a4d45d30/back_metakit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 1098, 12, 2890, 16, 2270, 1973, 16, 450, 17842, 4672, 9163, 6164, 279, 756, 300, 777, 1779, 6508, 315, 350, 6, 353, 3430, 471, 1410, 486, 506, 16267, 5950, 18, 840, 8060, 854...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1930, 67, 1098, 12, 2890, 16, 2270, 1973, 16, 450, 17842, 4672, 9163, 6164, 279, 756, 300, 777, 1779, 6508, 315, 350, 6, 353, 3430, 471, 1410, 486, 506, 16267, 5950, 18, 840, 8060, 854...
print "dirty flag col %s: %s" % \ (colname, table.cols._f_col(colname).index.dirty)
if table.cols._f_col(colname).index: print "dirty flag col %s: %s" % \ (colname, table.cols._f_col(colname).index.dirty)
def test06_dirty(self): "Checking dirty flags (removeRows action)" if verbose: print '\n', '-=' * 30 print "Running %s.test06_dirty..." % self.__class__.__name__ table = self.table # Force a sync in indexes table.flushRowsToIndex() # Now, remove some rows: table.removeRows(3,5) if self.reopen: self.fileh.close() self.f...
73462116e1dd3d1805620e8794a02e56bb776904 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12687/73462116e1dd3d1805620e8794a02e56bb776904/test_indexes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7677, 67, 18013, 12, 2890, 4672, 315, 14294, 9603, 2943, 261, 4479, 4300, 1301, 2225, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7677, 67, 18013, 12, 2890, 4672, 315, 14294, 9603, 2943, 261, 4479, 4300, 1301, 2225, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813...
if frame.contents.image == 0:
if not bool(frame):
def capture(self, poll=False): frame = POINTER(video_frame_t)() policy = poll and CAPTURE_POLICY_POLL or CAPTURE_POLICY_WAIT self._dll.dc1394_capture_dequeue(self._cam, policy, byref(frame)) if frame.contents.image == 0: return if self._dll.dc1394_capture_is_frame_corrupt(self._cam, frame): print "frame %s corrupt" % f...
b7e508bed0c4c86fd4644b3b69f50d5980d52aaa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6169/b7e508bed0c4c86fd4644b3b69f50d5980d52aaa/camera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7477, 12, 2890, 16, 7672, 33, 8381, 4672, 2623, 273, 23320, 12, 9115, 67, 3789, 67, 88, 13, 1435, 3329, 273, 7672, 471, 6425, 1856, 4830, 67, 26366, 67, 14232, 48, 578, 6425, 1856, 483...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7477, 12, 2890, 16, 7672, 33, 8381, 4672, 2623, 273, 23320, 12, 9115, 67, 3789, 67, 88, 13, 1435, 3329, 273, 7672, 471, 6425, 1856, 4830, 67, 26366, 67, 14232, 48, 578, 6425, 1856, 483...
return os.EX_OK
if 'EX_OK' in dir(os): return os.EX_OK else: return 0
def main(): # Prevent windows from using cygwin python. if (sys.platform == "cygwin"): raise Exception("Building docs not supported for cygwin python.\n" "Please run the build.bat script.") parser = OptionParser() parser.add_option("--test-shell-path", dest="test_shell_path") parser.add_option("--page-name", dest="pag...
68b710f25760da35df8478a3e53aa4ccca72fc69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/68b710f25760da35df8478a3e53aa4ccca72fc69/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 19412, 9965, 628, 1450, 276, 4338, 8082, 5790, 18, 309, 261, 9499, 18, 9898, 422, 315, 2431, 75, 8082, 6, 4672, 1002, 1185, 2932, 16713, 3270, 486, 3260, 364, 276, 4338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 19412, 9965, 628, 1450, 276, 4338, 8082, 5790, 18, 309, 261, 9499, 18, 9898, 422, 315, 2431, 75, 8082, 6, 4672, 1002, 1185, 2932, 16713, 3270, 486, 3260, 364, 276, 4338...
print "Label M Coordinates Occ Uiso or Ustar"
print >> f, "Label M Coordinates Occ Uiso or Ustar"
def show_scatterers(self, f=sys.stdout): print "Label M Coordinates Occ Uiso or Ustar" for scatterer in self.scatterers(): print "%-4s" % (scatterer.label,), print "%3d" % (scatterer.multiplicity(),), print "%7.4f %7.4f %7.4f" % scatterer.site, print "%4.2f" % (scatterer.occupancy,), if (not scatterer.ani...
50eb6ce42fe373a63e21bbdfcde1df9b1ce7a450 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/50eb6ce42fe373a63e21bbdfcde1df9b1ce7a450/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 31320, 414, 12, 2890, 16, 284, 33, 9499, 18, 10283, 4672, 1172, 1671, 284, 16, 315, 2224, 225, 490, 225, 10320, 4174, 5411, 531, 952, 225, 587, 9699, 578, 587, 10983, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 31320, 414, 12, 2890, 16, 284, 33, 9499, 18, 10283, 4672, 1172, 1671, 284, 16, 315, 2224, 225, 490, 225, 10320, 4174, 5411, 531, 952, 225, 587, 9699, 578, 587, 10983, 6, 364,...
print "buildappbundle creates an application bundle" print "Usage:" print " buildappbundle [options] executable" print "Options:" print " --output o Output file; default executable with .app appended, short -o" print " --link Symlink the executable (default: copy), short -l" print " --plist file Plist fi...
print __doc__
def usage(): print "buildappbundle creates an application bundle" print "Usage:" print " buildappbundle [options] executable" print "Options:" print " --output o Output file; default executable with .app appended, short -o" print " --link Symlink the executable (default: copy), short -l" print " --plist f...
06b2357b37510cd59f689eb1cfe082ad4a97ae09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/06b2357b37510cd59f689eb1cfe082ad4a97ae09/buildappbundle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1001, 2434, 972, 2589, 18, 8593, 12, 21, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1001, 2434, 972, 2589, 18, 8593, 12, 21, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.__parents = []
def __init__(self, id_hash): self.__id_hash = id_hash
2406f7d16cad24d396b3e8ea5605813f4011b5a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/2406f7d16cad24d396b3e8ea5605813f4011b5a6/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 612, 67, 2816, 4672, 365, 16186, 350, 67, 2816, 273, 612, 67, 2816, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 612, 67, 2816, 4672, 365, 16186, 350, 67, 2816, 273, 612, 67, 2816, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
max_date, min_date_qty, order_point=None,context=None): """ Compute stock quantities between the two given dates. If given the order point, one date will be lacking in products this date is returned alongside the stock level at this date. If no dates are given, the stock is computed for an infinire date and the shorta...
max_date, min_date_qty, order_point=None, context=None): """ Return between min_date and max_date the first date where the stock quantity is less than the minimal quantity and the smallest stock quantity in the interval or None if there is no date where stock quantity is less than the minimal quantity The minimal quan...
def get_shortage(self, cursor, user, location_id, product_id, min_date, max_date, min_date_qty, order_point=None,context=None): """ Compute stock quantities between the two given dates. If given the order point, one date will be lacking in products this date is returned alongside the stock level at this date.
e31a8863ae53e3bfb18086ef454ee17abfb3acb2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12480/e31a8863ae53e3bfb18086ef454ee17abfb3acb2/purchase_request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6620, 410, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 350, 16, 3017, 67, 350, 16, 1131, 67, 712, 16, 943, 67, 712, 16, 1131, 67, 712, 67, 85, 4098, 16, 1353, 67, 1153, 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, 336, 67, 6620, 410, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 350, 16, 3017, 67, 350, 16, 1131, 67, 712, 16, 943, 67, 712, 16, 1131, 67, 712, 67, 85, 4098, 16, 1353, 67, 1153, 3...
__id__ = "$Id: Solver.py,v 1.33 2003/11/28 22:17:26 tan2 Exp $"
__id__ = "$Id: Solver.py,v 1.34 2003/12/24 22:46:56 ces74 Exp $"
def setProperties(self): self.CitcomModule.Solver_set_properties(self.all_variables, self.inventory)
e56a8d94a0056279ecfb931dbae06831c99611e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/e56a8d94a0056279ecfb931dbae06831c99611e0/Solver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23126, 12, 2890, 4672, 365, 18, 39, 305, 832, 3120, 18, 27721, 67, 542, 67, 4738, 12, 2890, 18, 454, 67, 7528, 16, 365, 18, 26024, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23126, 12, 2890, 4672, 365, 18, 39, 305, 832, 3120, 18, 27721, 67, 542, 67, 4738, 12, 2890, 18, 454, 67, 7528, 16, 365, 18, 26024, 13, 2, -100, -100, -100, -100, -100, -100, -100, -1...
f = open(fname,'r')
f = open(fileName, 'r')
def _loadCSV(self,fname): '''Load data from a csv file.''' #Uses the CSV reader and an entirey hommade algorithm. #however there are library functions for doing this, that are #probably faster: # scipy.io.read_array # pylab's load function (seems to be fastest) #TODO: more robustness #read whole file at once f =...
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 16570, 12, 2890, 16, 12749, 4672, 9163, 2563, 501, 628, 279, 6101, 585, 1093, 6309, 468, 15128, 326, 10381, 2949, 471, 392, 7278, 93, 13995, 81, 2486, 4886, 18, 468, 13606, 608...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 945, 16570, 12, 2890, 16, 12749, 4672, 9163, 2563, 501, 628, 279, 6101, 585, 1093, 6309, 468, 15128, 326, 10381, 2949, 471, 392, 7278, 93, 13995, 81, 2486, 4886, 18, 468, 13606, 608...
self.xine.seek(int(seconds * 1000)) if not self.__playing:
if self.__playing: self.xine.seek(int(seconds * 1000)) else: self.xine.set_volume(0) self.xine.seek(int(seconds * 1000))
def seek(self, seconds): confirmMainThread() # FIXME - this is icky. self.xine.seek autoamtically kicks us into playing # mode which seems hard to undo since xine-lib doesn't seem to have a # non-playing seek function. # so we check to see if we know we're playing and if not, we stop playing. self.xine.seek(int(second...
e16804948ea864632cace34404f844a1ed15b6a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/e16804948ea864632cace34404f844a1ed15b6a2/xinerenderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 3974, 4672, 6932, 6376, 3830, 1435, 468, 9852, 300, 333, 353, 277, 363, 93, 18, 225, 365, 18, 92, 558, 18, 16508, 3656, 301, 88, 6478, 417, 20642, 584, 1368, 23982,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6520, 12, 2890, 16, 3974, 4672, 6932, 6376, 3830, 1435, 468, 9852, 300, 333, 353, 277, 363, 93, 18, 225, 365, 18, 92, 558, 18, 16508, 3656, 301, 88, 6478, 417, 20642, 584, 1368, 23982,...
self.tk.call(self._w, 'active', 'set', index)
self.tk.call(self._w, 'active', 'set', index)
def active_set(self, index):
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2695, 67, 542, 12, 2890, 16, 770, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 2695, 67, 542, 12, 2890, 16, 770, 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, ...
def shutdown(self):
def forgetTimeouts(self):
def shutdown(self): # Cancel any pending retransmits for d in self.nbs.itervalues(): if d: d.cancel()
b24d4139b69b476c43bd698d2c264e97de0294cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8524/b24d4139b69b476c43bd698d2c264e97de0294cc/dtella_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 2694, 87, 12, 2890, 4672, 468, 10347, 1281, 4634, 283, 2338, 22679, 225, 364, 302, 316, 365, 18, 82, 2038, 18, 2165, 2372, 13332, 309, 302, 30, 302, 18, 10996, 1435, 2, 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, 13776, 2694, 87, 12, 2890, 4672, 468, 10347, 1281, 4634, 283, 2338, 22679, 225, 364, 302, 316, 365, 18, 82, 2038, 18, 2165, 2372, 13332, 309, 302, 30, 302, 18, 10996, 1435, 2, -100, -1...
index = test_file.rfind(os.sep + 'LayoutTests' + os.sep) test_file = test_file[index + len('LayoutTests/'):]
index = test_file.rfind(os.sep + LAYOUT_TESTS_DIRECTORY) test_file = test_file[index + len(LAYOUT_TESTS_DIRECTORY):]
def _get_dir_for_test_file(self, test_file): """Returns the highest-level directory by which to shard the given test file.""" index = test_file.rfind(os.sep + 'LayoutTests' + os.sep)
6e498feec276a0ad91f7d259a8d45718e5420f54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/6e498feec276a0ad91f7d259a8d45718e5420f54/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1214, 67, 1884, 67, 3813, 67, 768, 12, 2890, 16, 1842, 67, 768, 4672, 3536, 1356, 326, 9742, 17, 2815, 1867, 635, 1492, 358, 5820, 326, 864, 1842, 585, 12123, 770, 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, 389, 588, 67, 1214, 67, 1884, 67, 3813, 67, 768, 12, 2890, 16, 1842, 67, 768, 4672, 3536, 1356, 326, 9742, 17, 2815, 1867, 635, 1492, 358, 5820, 326, 864, 1842, 585, 12123, 770, 273, ...
url = 'http://www.getdemocracy.com/images/linux-screen.jpg'
url = u'http://www.getdemocracy.com/images/linux-screen.jpg'
def testPause(self): url = 'http://www.getdemocracy.com/images/linux-screen.jpg' self.downloader = TestingDownloader(self, url, "ID1") def pauseOnData(): if (self.downloader.state == 'downloading' and self.downloader.currentSize > 0): self.downloader.pause() self.stopEventLoop(False) self.downloader.statusCallback = pa...
feaff95a712c28dbbcb3fa5c150bf8074ed96a02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/feaff95a712c28dbbcb3fa5c150bf8074ed96a02/httpdownloadertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 19205, 12, 2890, 4672, 880, 273, 582, 11, 2505, 2207, 5591, 18, 588, 19117, 504, 354, 2431, 18, 832, 19, 7369, 19, 20132, 17, 9252, 18, 14362, 11, 365, 18, 2378, 6714, 273, 7766,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19205, 12, 2890, 4672, 880, 273, 582, 11, 2505, 2207, 5591, 18, 588, 19117, 504, 354, 2431, 18, 832, 19, 7369, 19, 20132, 17, 9252, 18, 14362, 11, 365, 18, 2378, 6714, 273, 7766,...
["uint32 ", "UINT32", "0"],
["uint32 ", "UINT32", "UINT32", " 0"],
f.write("#ifdef DEBUG\n")
f54640901f9704aa02f15abc4882b5cd0254cf98 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/f54640901f9704aa02f15abc4882b5cd0254cf98/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 284, 18, 2626, 2932, 7, 430, 536, 6369, 64, 82, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 284, 18, 2626, 2932, 7, 430, 536, 6369, 64, 82, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
zvar[0]=0 zbvar[0]=0
def SMsurface(h,x): b_x = SMcold_bedslope(x) s = a * abs(x) # ??? return b_x - (C / rho_g) * s**m / h**(m+1)
810459039197317233680a0b31209dd383851591 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7383/810459039197317233680a0b31209dd383851591/solverSM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 6947, 295, 865, 12, 76, 16, 92, 4672, 324, 67, 92, 273, 12014, 1293, 72, 67, 2992, 30320, 12, 92, 13, 272, 273, 279, 380, 2417, 12, 92, 13, 468, 5317, 35, 327, 324, 67, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 348, 6947, 295, 865, 12, 76, 16, 92, 4672, 324, 67, 92, 273, 12014, 1293, 72, 67, 2992, 30320, 12, 92, 13, 272, 273, 279, 380, 2417, 12, 92, 13, 468, 5317, 35, 327, 324, 67, 92, ...
context.syntax("operand mst be an octal")
context.syntax("operand must be an octal")
def parse_2OCT(self, context, operands): op = DoubleOctal(" ".join(operands)) if op.isValid(): context.currentRecord.code = op.value context.currentRecord.complete = True else: context.syntax("operand mst be an octal")
547fd2bc1e4463728858ab42cd4e9cf927abdd7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/547fd2bc1e4463728858ab42cd4e9cf927abdd7a/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 22, 51, 1268, 12, 2890, 16, 819, 16, 14883, 4672, 1061, 273, 3698, 19320, 287, 2932, 3552, 5701, 12, 4063, 5708, 3719, 309, 1061, 18, 26810, 13332, 819, 18, 2972, 2115, 18, 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, 1109, 67, 22, 51, 1268, 12, 2890, 16, 819, 16, 14883, 4672, 1061, 273, 3698, 19320, 287, 2932, 3552, 5701, 12, 4063, 5708, 3719, 309, 1061, 18, 26810, 13332, 819, 18, 2972, 2115, 18, 7...
except TypeError:
except (AttributeError, TypeError):
def cantset(obj, name, value): verify(hasattr(obj, name)) # Otherwise it's probably a typo try: setattr(obj, name, value) except TypeError: pass else: raise TestFailed, "shouldn't be able to set %s to %r" % (name, value) try: delattr(obj, name) except TypeError: pass else: raise TestFailed, "shouldn't be able to del %s...
56ff387a7e625a692851e2e5ffdea096b72831f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/56ff387a7e625a692851e2e5ffdea096b72831f7/test_funcattrs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 88, 542, 12, 2603, 16, 508, 16, 460, 4672, 3929, 12, 5332, 1747, 12, 2603, 16, 508, 3719, 468, 5272, 518, 1807, 8656, 279, 3815, 83, 775, 30, 9241, 12, 2603, 16, 508, 16, 460, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 848, 88, 542, 12, 2603, 16, 508, 16, 460, 4672, 3929, 12, 5332, 1747, 12, 2603, 16, 508, 3719, 468, 5272, 518, 1807, 8656, 279, 3815, 83, 775, 30, 9241, 12, 2603, 16, 508, 16, 460, ...
obj.handle_close()
obj.handle_close_event()
def readwrite(obj, flags): try: if flags & (select.POLLIN | select.POLLPRI): obj.handle_read_event() if flags & select.POLLOUT: obj.handle_write_event() if flags & (select.POLLERR | select.POLLNVAL): obj.handle_expt_event() if flags & select.POLLHUP: obj.handle_close() except (ExitNow, KeyboardInterrupt, SystemExit): r...
2648c2d28a8222fa959608a5ba4ea1bbb2a54881 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/2648c2d28a8222fa959608a5ba4ea1bbb2a54881/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2626, 12, 2603, 16, 2943, 4672, 775, 30, 309, 2943, 473, 261, 4025, 18, 14232, 20663, 571, 2027, 18, 14232, 48, 7698, 4672, 1081, 18, 4110, 67, 896, 67, 2575, 1435, 309, 2943, 473...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 12, 2603, 16, 2943, 4672, 775, 30, 309, 2943, 473, 261, 4025, 18, 14232, 20663, 571, 2027, 18, 14232, 48, 7698, 4672, 1081, 18, 4110, 67, 896, 67, 2575, 1435, 309, 2943, 473...
module_generator = flatten([[C(i+1)]*shape[i] for i in range(len(shape))]) module_generator.reverse()
p = shape.conjugate() module_generator = flatten([[C(p[j]-i) for i in range(p[j])] for j in range(len(p))])
def __init__(self, type, shape):
f5cf21397db0cd18b6691a15594e6e520d46ad99 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/f5cf21397db0cd18b6691a15594e6e520d46ad99/tensor_product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 16, 2179, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 16, 2179, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return ( res, )
return (res, )
def __call__(self, inputs): """ inputs is the list of input values """ res = float(inputs[0]) self.set_caption('%.1f'%res) return ( res, )
f78cad0f6ee07e911240d784cd94a6972a31d06b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4914/f78cad0f6ee07e911240d784cd94a6972a31d06b/data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 4540, 4672, 3536, 4540, 353, 326, 666, 434, 810, 924, 3536, 400, 273, 1431, 12, 10029, 63, 20, 5717, 365, 18, 542, 67, 15386, 29909, 18, 21, 74, 11, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 4540, 4672, 3536, 4540, 353, 326, 666, 434, 810, 924, 3536, 400, 273, 1431, 12, 10029, 63, 20, 5717, 365, 18, 542, 67, 15386, 29909, 18, 21, 74, 11, 9,...
FL_Coord, STRING],
FL_Coord, STRING],
def fl_add_button(type, x, y, w, h, label): """ fl_add_button(type, x, y, w, h, label) -> object """ retval = _fl_add_button(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, 1289, 67, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 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, 1183, 67, 1289, 67, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 1289, 67, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, ...
assert not self.decl.type.isToplevel()
assert thisexpr is not None or not self.decl.type.isToplevel()
def managerVar(self, thisexpr=None): assert not self.decl.type.isToplevel() mvar = ExprVar('mManager') if thisexpr is not None: mvar = ExprSelect(thisexpr, '->', mvar.name) return mvar
8467476b63a441deb10da9768955d847629ae72b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/8467476b63a441deb10da9768955d847629ae72b/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3301, 1537, 12, 2890, 16, 333, 8638, 33, 7036, 4672, 1815, 333, 8638, 353, 486, 599, 578, 486, 365, 18, 8840, 18, 723, 18, 291, 3401, 2815, 1435, 312, 1401, 273, 8074, 1537, 2668, 81, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3301, 1537, 12, 2890, 16, 333, 8638, 33, 7036, 4672, 1815, 333, 8638, 353, 486, 599, 578, 486, 365, 18, 8840, 18, 723, 18, 291, 3401, 2815, 1435, 312, 1401, 273, 8074, 1537, 2668, 81, ...
sage: m._next_var_name()
sage: m._next_var_name()
def _next_var_name(self): """ Return the next available variable name in Magma.
06891bc866b47f420feaea6eefc08baf44cc4cb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/06891bc866b47f420feaea6eefc08baf44cc4cb9/magma.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4285, 67, 1401, 67, 529, 12, 2890, 4672, 3536, 2000, 326, 1024, 2319, 2190, 508, 316, 490, 9454, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4285, 67, 1401, 67, 529, 12, 2890, 4672, 3536, 2000, 326, 1024, 2319, 2190, 508, 316, 490, 9454, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if __debug__ and self.debug >= 4: _mesg('read literal size %s' % size)
if __debug__: if self.debug >= 4: _mesg('read literal size %s' % size)
def _get_response(self):
8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2740, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2740, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
'concurrent_internal_op': 'You can not define two order point '\
'concurrent_internal_op': 'You can not define two order points '\
def __init__(self): super(OrderPoint, self).__init__() self._constraints += [ ('check_concurrent_internal', 'concurrent_internal_op'), ('check_uniqueness', 'unique_op'), ] self._sql_constraints += [ ('check_min_max_quantity', 'CHECK( max_quantity is null or min_quantity is null or max_quantity >= min_quantity )', 'Maxi...
6f9827f2ec4f5eb2263585b54eeda6419f09ec0b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9299/6f9827f2ec4f5eb2263585b54eeda6419f09ec0b/order_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 2448, 2148, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 11967, 1011, 306, 7707, 1893, 67, 591, 2972, 67, 7236, 2187, 296, 591, 2972, 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, 2890, 4672, 2240, 12, 2448, 2148, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 11967, 1011, 306, 7707, 1893, 67, 591, 2972, 67, 7236, 2187, 296, 591, 2972, 67, ...
torrent.description += '%s\n\n%s\n' % (title, body)
if torrent.description is NotLoaded: torrent.description = u'' torrent.description += u'%s\n\n%s\n' % (title, body)
def get_torrent(self, id): table = self.document.getroot().cssselect('div.thin') if not table: warning('No div.thin found') return None
171722fce35b22ec799836373e452903ea23aac1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/171722fce35b22ec799836373e452903ea23aac1/torrents.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13039, 547, 12, 2890, 16, 612, 4672, 1014, 273, 365, 18, 5457, 18, 588, 3085, 7675, 5212, 4025, 2668, 2892, 18, 451, 267, 6134, 309, 486, 1014, 30, 3436, 2668, 2279, 3739, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13039, 547, 12, 2890, 16, 612, 4672, 1014, 273, 365, 18, 5457, 18, 588, 3085, 7675, 5212, 4025, 2668, 2892, 18, 451, 267, 6134, 309, 486, 1014, 30, 3436, 2668, 2279, 3739, 18,...
room.topic = stanza.getSubject().encode('utf-8').replace('\n', '|')
room.topic = subject.encode('utf-8').replace('\n', '|')
def room_message(self, stanza): if len(sys.argv) > 1: self.information(str(stanza)) if stanza.getType() != 'groupchat': return # ignore all messages not comming from a MUC room_from = stanza.getFrom().getStripped() nick_from = stanza.getFrom().getResource() if not nick_from: nick_from = ''
724c45770c6736b436edcef08388e58a5c98cc99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/724c45770c6736b436edcef08388e58a5c98cc99/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7725, 67, 2150, 12, 2890, 16, 21650, 4672, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 365, 18, 13117, 12, 701, 12, 541, 11939, 3719, 309, 21650, 18, 588, 559, 1435, 480, 296, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7725, 67, 2150, 12, 2890, 16, 21650, 4672, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 365, 18, 13117, 12, 701, 12, 541, 11939, 3719, 309, 21650, 18, 588, 559, 1435, 480, 296, 1...
def iter_morphisms(self, l=None, codomain=None, min_length=1):
@rename_keyword(deprecated='Sage version 4.6.1', l='arg') def iter_morphisms(self, arg=None, codomain=None, min_length=1):
def iter_morphisms(self, l=None, codomain=None, min_length=1): r""" Iterate over all morphisms with domain ``self`` and the given codmain.
932f02519b456e87f5bab82bef45c62d52dc3efe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/932f02519b456e87f5bab82bef45c62d52dc3efe/words.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 632, 18539, 67, 11041, 12, 14089, 2218, 55, 410, 1177, 1059, 18, 26, 18, 21, 2187, 328, 2218, 3175, 6134, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 1501, 33, 7036, 16, 11012, 1530, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 632, 18539, 67, 11041, 12, 14089, 2218, 55, 410, 1177, 1059, 18, 26, 18, 21, 2187, 328, 2218, 3175, 6134, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 1501, 33, 7036, 16, 11012, 1530, 33, ...
if not valid_int(x[key]):
if not (valid_int(x[key]) or x[key] is None):
def valid_electronic_minimization(x): valid_keys = ['method', 'diagsperband'] for key in x: if key not in valid_keys: return False elif key == 'method': if x[key] not in ['resmin', 'eigsolve', 'rmm-diis']: return False elif key == 'diagsperband': if not valid_int(x[key]): return False return True
0ec1e2aac8f1d339c74158b8e58b9a6aba8c0c94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/0ec1e2aac8f1d339c74158b8e58b9a6aba8c0c94/validate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 923, 67, 13759, 1949, 335, 67, 1154, 381, 1588, 12, 92, 4672, 923, 67, 2452, 273, 10228, 2039, 2187, 296, 3211, 1341, 457, 12752, 3546, 364, 498, 316, 619, 30, 309, 498, 486, 316, 923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 923, 67, 13759, 1949, 335, 67, 1154, 381, 1588, 12, 92, 4672, 923, 67, 2452, 273, 10228, 2039, 2187, 296, 3211, 1341, 457, 12752, 3546, 364, 498, 316, 619, 30, 309, 498, 486, 316, 923,...
w.checkbox('permissive', "True", _("Yes")), w.button(_('<< Cancel'), "/groups/list"), w.submit('create', _('Create >>'), onClick = "selectAllMultiValues('%s');" % form_name)
w.checkbox('permissive', "True", _("Yes"), accesskey = _('P')), w.button(_('<< Cancel'), "/groups/list", accesskey = _('N')), w.submit('create', _('Create >>'), onClick = "selectAllMultiValues('%s');" % form_name, accesskey = _('T'))
def new(uri) : """Generate a form to create a new group on the system.""" title = _("Creating a new group") data = '%s%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) form_name = "group_create" data += '''<div id="content">
690f3241794eb1e9043f01ac59d34922393aa298 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7650/690f3241794eb1e9043f01ac59d34922393aa298/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 1650, 13, 294, 3536, 4625, 279, 646, 358, 752, 279, 394, 1041, 603, 326, 2619, 12123, 225, 2077, 273, 389, 2932, 11092, 279, 394, 1041, 7923, 501, 225, 273, 1995, 87, 9, 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, 394, 12, 1650, 13, 294, 3536, 4625, 279, 646, 358, 752, 279, 394, 1041, 603, 326, 2619, 12123, 225, 2077, 273, 389, 2932, 11092, 279, 394, 1041, 7923, 501, 225, 273, 1995, 87, 9, 87, ...
labin_command += ' E%d=%s_%s' % \
labout_command += ' E%d=%s_%s' % \
def update(self): '''Update the information for one reflection file.'''
84d32e7d2fdc6a4787cc6fa245da0c7b1a7b49b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3290/84d32e7d2fdc6a4787cc6fa245da0c7b1a7b49b9/Cad.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 9163, 1891, 326, 1779, 364, 1245, 5463, 585, 1093, 6309, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 9163, 1891, 326, 1779, 364, 1245, 5463, 585, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
errStr = "ReplicationScheduler.execute: The file has no replicas." gLogger.error(errStr,lfn) oRequest.setSubRequestFileAttributeValue(ind,'transfer',lfn,'Status','Failed') break
gLogger.error("ReplicationScheduler.execute: The file has no replicas.",lfn) continue
def execute(self): """ The main agent execution method """
c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853/ReplicationScheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
raise ValuError
raise ValueError
def _external(self): # let's find the .pem files curdir = os.path.dirname(__file__) or os.curdir cert_file = os.path.join(curdir, "ssl_cert.pem") if not os.access(cert_file, os.F_OK): raise ValueError("No cert file found! (tried %r)" % cert_file) key_file = os.path.join(curdir, "ssl_key.pem") if not os.access(key_file,...
aba867a0bac2d0d54c6ffec3d548e523043f67a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/aba867a0bac2d0d54c6ffec3d548e523043f67a2/test_socket_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9375, 12, 2890, 4672, 468, 2231, 1807, 1104, 326, 263, 20313, 1390, 662, 1214, 273, 1140, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 578, 1140, 18, 1397, 1214, 3320, 67, 768, 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, 389, 9375, 12, 2890, 4672, 468, 2231, 1807, 1104, 326, 263, 20313, 1390, 662, 1214, 273, 1140, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 578, 1140, 18, 1397, 1214, 3320, 67, 768, 273,...
Though it doesn't change the shap of the graph, increasing num_points can increase the clarity of the graph
Though it doesn't change the shape of the graph, increasing num_points can increase the clarity of the graph.
def list_plot3d(v, interpolation_type='default', texture="automatic", point_list=None,**kwds): """ A 3-dimensional plot of a surface defined by the list $v$ of points in 3-dimensional space. INPUT: v -- something that defines a set of points in 3 space, for example: * a matrix * a list of 3-tuples * a list of lists (a...
d0f0fc2115cde9e1670bebb42ac1add0bbca76c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d0f0fc2115cde9e1670bebb42ac1add0bbca76c1/list_plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 4032, 23, 72, 12, 90, 16, 12851, 67, 723, 2218, 1886, 2187, 11428, 1546, 5854, 4941, 3113, 1634, 67, 1098, 33, 7036, 16, 636, 25577, 4672, 3536, 432, 890, 17, 31236, 3207, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 4032, 23, 72, 12, 90, 16, 12851, 67, 723, 2218, 1886, 2187, 11428, 1546, 5854, 4941, 3113, 1634, 67, 1098, 33, 7036, 16, 636, 25577, 4672, 3536, 432, 890, 17, 31236, 3207, 434...
treestore = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_BOOLEAN )
def on_main_notebook_switch_page(self, widget, gpointer, new_tab): if new_tab == 2: # "Simple Quiz"-tab self.simple_question_button.grab_default()
e38a545af5167e909e0f5d4fda97832510e1f42a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2313/e38a545af5167e909e0f5d4fda97832510e1f42a/quizdrill.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5254, 67, 24422, 67, 9610, 67, 2433, 12, 2890, 16, 3604, 16, 4178, 2480, 16, 394, 67, 7032, 4672, 309, 394, 67, 7032, 422, 576, 30, 225, 468, 315, 5784, 4783, 452, 6, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5254, 67, 24422, 67, 9610, 67, 2433, 12, 2890, 16, 3604, 16, 4178, 2480, 16, 394, 67, 7032, 4672, 309, 394, 67, 7032, 422, 576, 30, 225, 468, 315, 5784, 4783, 452, 6, 17, ...
ids = dict.functions.keys() + dict.variables.keys() + \
ids = uniq(dict.functions.keys() + dict.variables.keys() + \
def serialize_xrefs_files(self, output): headers = self.headers.keys() headers.sort() for file in headers: module = self.modulename_file(file) output.write(" <file name='%s'>\n" % (module)) dict = self.headers[file] ids = dict.functions.keys() + dict.variables.keys() + \
a2e844a3b3503367a4418187e77ccc977f186909 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/a2e844a3b3503367a4418187e77ccc977f186909/apibuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4472, 67, 92, 9316, 67, 2354, 12, 2890, 16, 876, 4672, 1607, 273, 365, 18, 2485, 18, 2452, 1435, 1607, 18, 3804, 1435, 364, 585, 316, 1607, 30, 1605, 273, 365, 18, 1711, 332, 1069, 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, 4472, 67, 92, 9316, 67, 2354, 12, 2890, 16, 876, 4672, 1607, 273, 365, 18, 2485, 18, 2452, 1435, 1607, 18, 3804, 1435, 364, 585, 316, 1607, 30, 1605, 273, 365, 18, 1711, 332, 1069, 6...
self.assertEquals(xmlEncoding.decode('US-ASCII', '<?xml version="1.0" encoding="UTF-8"?><x/>', loggedEvents), u'<?xml version="1.0" encoding="UTF-8"?><x/>')
self.assertEquals(xmlEncoding.decode(ctAX, 'US-ASCII', '<?xml version="1.0" encoding="UTF-8"?><x/>', loggedEvents), u'<?xml version="1.0" encoding="UTF-8"?><x/>')
def testWarnMismatch(self): loggedEvents=[] self.assertEquals(xmlEncoding.decode('US-ASCII', '<?xml version="1.0" encoding="UTF-8"?><x/>', loggedEvents), u'<?xml version="1.0" encoding="UTF-8"?><x/>') self.assert_(loggedEvents) self.assertEquals(loggedEvents[-1].__class__, EncodingMismatch)
c9bc8bbd0880a77ea6553e5286a8d6b8bd59e622 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5012/c9bc8bbd0880a77ea6553e5286a8d6b8bd59e622/testXmlEncodingDecode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3160, 16901, 12, 2890, 4672, 7545, 3783, 33, 8526, 365, 18, 11231, 8867, 12, 2902, 4705, 18, 3922, 12, 299, 2501, 16, 296, 3378, 17, 13756, 2187, 16617, 2902, 1177, 1546, 21, 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, 1842, 3160, 16901, 12, 2890, 4672, 7545, 3783, 33, 8526, 365, 18, 11231, 8867, 12, 2902, 4705, 18, 3922, 12, 299, 2501, 16, 296, 3378, 17, 13756, 2187, 16617, 2902, 1177, 1546, 21, 18, ...
print (Y1-Y2).max()
if verbose > 2: print (Y1-Y2).max()
def test_cdist_minkowski_random_p3d8(self): "Tests cdist(X, 'minkowski') on random data. (p=3.8)" eps = 1e-07 # Get the data: the input matrix and the right output. X1 = eo['cdist-X1'] X2 = eo['cdist-X2'] Y1 = cdist(X1, X2, 'minkowski', p=3.8) Y2 = cdist(X1, X2, 'test_minkowski', p=3.8) print (Y1-Y2).max() self.failUnl...
c3d85c07ed380f445f851652c8c4ee87f0b2dc45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5882/c3d85c07ed380f445f851652c8c4ee87f0b2dc45/test_distance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4315, 376, 67, 81, 754, 543, 7771, 77, 67, 9188, 67, 84, 23, 72, 28, 12, 2890, 4672, 315, 14650, 276, 4413, 12, 60, 16, 296, 81, 754, 543, 7771, 77, 6134, 603, 2744, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4315, 376, 67, 81, 754, 543, 7771, 77, 67, 9188, 67, 84, 23, 72, 28, 12, 2890, 4672, 315, 14650, 276, 4413, 12, 60, 16, 296, 81, 754, 543, 7771, 77, 6134, 603, 2744, 501,...
type_err('bases', 'tuple', bases)
raise type_err('bases', 'tuple', bases)
def __new__(subtype, name, bases, dic): if not isinstance(name, str): type_err('name', 'string', name)
bf0f51ca7a6db8dd183ff8eb9551cdf860775651 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/bf0f51ca7a6db8dd183ff8eb9551cdf860775651/_classobj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 21974, 16, 508, 16, 8337, 16, 11681, 4672, 309, 486, 1549, 12, 529, 16, 609, 4672, 618, 67, 370, 2668, 529, 2187, 296, 1080, 2187, 508, 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, 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, 2704, 972, 12, 21974, 16, 508, 16, 8337, 16, 11681, 4672, 309, 486, 1549, 12, 529, 16, 609, 4672, 618, 67, 370, 2668, 529, 2187, 296, 1080, 2187, 508, 13, 2, -100, -100, -100, ...
sage: plot([solnx,solny],0,1) sage: parametric_plot((solnx,solny),0,1)
sage: plot([solnx,solny],(0,1)) sage: parametric_plot((solnx,solny),(0,1))
def desolve_system(des, vars, ics=None, ivar=None): """ Solves any size system of 1st order odes using maxima. Initials conditions are optional. INPUT: des -- list of ODEs vars -- list of dependent variables ics -- (optional) list of initial values for ivar and vars ivar -- (optional) the independent variable, w...
6134ef35c71cd17b1e85c99daca048c27d523c74 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6134ef35c71cd17b1e85c99daca048c27d523c74/desolvers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2832, 5390, 67, 4299, 12, 5489, 16, 4153, 16, 277, 2143, 33, 7036, 16, 277, 1401, 33, 7036, 4672, 3536, 348, 355, 3324, 1281, 963, 2619, 434, 404, 334, 1353, 320, 5489, 1450, 943, 1388...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2832, 5390, 67, 4299, 12, 5489, 16, 4153, 16, 277, 2143, 33, 7036, 16, 277, 1401, 33, 7036, 4672, 3536, 348, 355, 3324, 1281, 963, 2619, 434, 404, 334, 1353, 320, 5489, 1450, 943, 1388...
self.preload_when_idle = gobject.idle_add(self.preload_prev_image, False) self.preload_when_idle2 = gobject.idle_add(self.preload_next_image, False)
def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu...
b2e5967bb60ec75f61407fa81eb48dca2dcd947b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/b2e5967bb60ec75f61407fa81eb48dca2dcd947b/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2897, 67, 10001, 67, 2730, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 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, 2897, 67, 10001, 67, 2730, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18,...
except (ValueError,TypeError):
except (ValueError,TypeError,decimal.InvalidOperation):
def _convertNumberWithCulture(variant, f): try: return f(variant) except (ValueError,TypeError): try: europeVsUS = str(variant).replace(",",".") return f(europeVsUS) except (ValueError,TypeError): pass
b648fa9d8a40a1975c730f3095403eb7a02bb0e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/992/b648fa9d8a40a1975c730f3095403eb7a02bb0e8/adodbapi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6283, 1854, 1190, 39, 29923, 12, 8688, 16, 284, 4672, 775, 30, 327, 284, 12, 8688, 13, 1335, 261, 23610, 16, 19030, 16, 12586, 18, 1941, 2988, 4672, 775, 30, 425, 24428, 16082, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6283, 1854, 1190, 39, 29923, 12, 8688, 16, 284, 4672, 775, 30, 327, 284, 12, 8688, 13, 1335, 261, 23610, 16, 19030, 16, 12586, 18, 1941, 2988, 4672, 775, 30, 425, 24428, 16082, 33...
text += '<origin ' . attr . '>'+self.origin+'</origin>\n'
text += '<origin ' + attr + '>'+self.origin+'</origin>\n'
def generate(self): text = '<?xml version="1.0" encoding="utf-8"?>\n' text += '<metalink xmlns="urn:ietf:params:xml:ns:metalink">\n'
bc56ff5875bc5c2999408c71e73d4d854e411ab2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/bc56ff5875bc5c2999408c71e73d4d854e411ab2/metalink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 977, 273, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 3158, 17, 28, 6, 35, 5333, 82, 11, 977, 1011, 2368, 10578, 16194, 12302, 1546, 321, 30, 18508, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 977, 273, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 3158, 17, 28, 6, 35, 5333, 82, 11, 977, 1011, 2368, 10578, 16194, 12302, 1546, 321, 30, 18508, 30, ...
def WriteDestinationInitalizationValidation(self, file): """Writes the client side destintion initialization validation.""" self.type_handler.WriteDestinationInitalizationValidation(self, file)
def WriteGLES2ImplementationHeader(self, file): """Writes the GLES2 Implemention declaration.""" self.type_handler.WriteGLES2ImplementationHeader(self, file)
ce383f32a1bfbe4ca33b88a0cbbb79c7f077428d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/ce383f32a1bfbe4ca33b88a0cbbb79c7f077428d/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 8266, 12123, 365, 18, 723, 67, 4176, 18, 3067, 43, 11386, 22, 13621, 1864, 12, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2598, 43, 11386, 22, 13621, 1864, 12, 2890, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 8266, 12123, 365, 18, 723, 67, 4176, 18, 3067, 43, 11386, 22, 13621, 1864, 12, 2...
parser.set_default(allocator_url=default_allocator_url)
parser.set_defaults(allocator_url=default_allocator_url)
def run(self): assert self.exists() sys.exit(subprocess.call([self.options.buildslave_cmd, 'start', self.options.basedir]))
4749a714cf611a7eba0480a0e55efd6800a8d8b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/4749a714cf611a7eba0480a0e55efd6800a8d8b0/runslave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1815, 365, 18, 1808, 1435, 2589, 18, 8593, 12, 1717, 2567, 18, 1991, 3816, 2890, 18, 2116, 18, 3510, 27352, 67, 4172, 16, 296, 1937, 2187, 365, 18, 2116, 18, 3172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 2890, 4672, 1815, 365, 18, 1808, 1435, 2589, 18, 8593, 12, 1717, 2567, 18, 1991, 3816, 2890, 18, 2116, 18, 3510, 27352, 67, 4172, 16, 296, 1937, 2187, 365, 18, 2116, 18, 3172...
one, two = _original_socketpair(*args)
one, two = _socket.socketpair(*args)
def socketpair(*args): one, two = _original_socketpair(*args) return GreenSocket(one), GreenSocket(two)
a892330317ed3c2033cb1cc1c763eb328e74fb95 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/a892330317ed3c2033cb1cc1c763eb328e74fb95/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2987, 6017, 30857, 1968, 4672, 1245, 16, 2795, 273, 389, 7814, 18, 7814, 6017, 30857, 1968, 13, 327, 17766, 4534, 12, 476, 3631, 17766, 4534, 12, 15415, 13, 282, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 2987, 6017, 30857, 1968, 4672, 1245, 16, 2795, 273, 389, 7814, 18, 7814, 6017, 30857, 1968, 13, 327, 17766, 4534, 12, 476, 3631, 17766, 4534, 12, 15415, 13, 282, 2, -100, -100, -100, -10...
if patchmode and (line_count_patch > (line_count - line_count_patch) / 2): log("Patch is too long for %s. Fallback to non-patching mode", hoststr)
if patchmode and (line_count_patch > (line_count - line_count_patch) / patch_fallback): log("Patch is too long for %s (patch %s, non-patch %s). Fallback to non-patching mode", (hoststr, line_count_patch, line_count - line_count_patch))
def scan_share(db, share_id, proto, host, port, tree_id, command): cursor = db.cursor() hoststr = sharestr(proto, host, port) savepath = share_save_path(proto, host, port) patchmode = tree_id != None and os.path.isfile(savepath) address = socket.gethostbyname(host) log("Scanning %s (%s) ...", (hoststr, address)) start ...
548274942706f9ee44389799ed028277e887fef5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4762/548274942706f9ee44389799ed028277e887fef5/spider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 14419, 12, 1966, 16, 7433, 67, 350, 16, 3760, 16, 1479, 16, 1756, 16, 2151, 67, 350, 16, 1296, 4672, 3347, 273, 1319, 18, 9216, 1435, 1479, 701, 273, 24123, 313, 12, 9393, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4135, 67, 14419, 12, 1966, 16, 7433, 67, 350, 16, 3760, 16, 1479, 16, 1756, 16, 2151, 67, 350, 16, 1296, 4672, 3347, 273, 1319, 18, 9216, 1435, 1479, 701, 273, 24123, 313, 12, 9393, ...
output = shellCall(0,'ls '+path+'/*rootmap*')
output = shellCall( 0, 'ls ' + path + '/*rootmap*' )
def fixLDPath( root, ldpath, directory): """ This is a utility to fix the LD_LIBRARY_PATH on Grid WNs. The shared libraries from the original LD_LIBRARY_PATH are linked to the locally specified directory. For Windows (and in general) this needs some refurbishment. """ if os.path.exists(directory): shutil.rmtree(direc...
9b8eea7ba28a2770fdfbf806c3e35df73cf645a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9b8eea7ba28a2770fdfbf806c3e35df73cf645a1/dirac-fix-ld-library-path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 12069, 743, 12, 1365, 16, 16916, 803, 16, 1867, 4672, 3536, 1220, 353, 279, 12788, 358, 2917, 326, 28083, 67, 2053, 28254, 67, 4211, 603, 7145, 678, 10386, 18, 1021, 5116, 14732, 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, 2917, 12069, 743, 12, 1365, 16, 16916, 803, 16, 1867, 4672, 3536, 1220, 353, 279, 12788, 358, 2917, 326, 28083, 67, 2053, 28254, 67, 4211, 603, 7145, 678, 10386, 18, 1021, 5116, 14732, 6...
seg_data.set('IEA01', src.gs_count)
seg_data.set('IEA01', '%i' % (src.gs_count))
def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'dhefo:') except getopt.error, msg: usage() return False debug = False eol = '' file_out = None fix = False for o, a in opts: if o == '-h': usage() return True if o == '-d': debug = True if o == '-e': eol = '\n' if o == '-f': fix = True if o == '-o': file_out = ...
0387a9e69787bc3825811d36c0c3a874862511d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/0387a9e69787bc3825811d36c0c3a874862511d7/x12norm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 72, 580, 617, 2497, 13, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 72, 580, 617, 2497, 13, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 4084,...
if f.target().cls() == container.uid()]
if f.target().cls() == cuid]
def _write_func_details(self, public, private, container, functions, heading='Function Details'): """ Write HTML code for a function details section. This is used by L{_write_module} to describe the functions in a module; and by L{_write_class} to describe the methods in a class. @param public: The output stream for t...
b57986399a2595e7095d7d67227b7bcda199a18b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/b57986399a2595e7095d7d67227b7bcda199a18b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 644, 67, 6395, 12, 2890, 16, 1071, 16, 3238, 16, 1478, 16, 4186, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 2598, 3982, 981, 364, 279, 445, 3189, 2442, 18, 225, 1220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 644, 67, 6395, 12, 2890, 16, 1071, 16, 3238, 16, 1478, 16, 4186, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 2598, 3982, 981, 364, 279, 445, 3189, 2442, 18, 225, 1220,...
def submitToExternal(self,request): if not (request in types.StringTypes): try: name = request.getRequestName()['Value'] request = request.toXML()['Value'] except: return S_ERROR("Not valid request description") else:
def submitTaskToExternal(self,request): if type(request) in types.StringTypes:
def submitToExternal(self,request): if not (request in types.StringTypes): try: name = request.getRequestName()['Value'] request = request.toXML()['Value'] except: return S_ERROR("Not valid request description") else: oRequest = RequestContainer(request) name = oRequest.getRequestName()['Value'] return self.requestClie...
7e361d624cd9374c5dec904aad18c8eb176604b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7e361d624cd9374c5dec904aad18c8eb176604b6/TaskManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 2174, 774, 6841, 12, 2890, 16, 2293, 4672, 309, 618, 12, 2293, 13, 316, 1953, 18, 780, 2016, 30, 320, 691, 273, 1567, 2170, 12, 2293, 13, 508, 273, 320, 691, 18, 588, 691, 461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 2174, 774, 6841, 12, 2890, 16, 2293, 4672, 309, 618, 12, 2293, 13, 316, 1953, 18, 780, 2016, 30, 320, 691, 273, 1567, 2170, 12, 2293, 13, 508, 273, 320, 691, 18, 588, 691, 461,...
print "Execp"
def blitz(self, args): args = Arguments(args) print args.args pre, post = self._checkIceConfig(args) xargs, debug = self._xargsAndDebug("blitz", ["-Xmx400M"]) print "got args" blitz_jar = os.path.join("lib","server","blitz.jar") print "Execp" command = pre+["-jar",blitz_jar]+post print command omero.java.run(command, d...
7a9791164c017b89229dc9f4a4a6663b1c4fb393 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/7a9791164c017b89229dc9f4a4a6663b1c4fb393/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2811, 305, 94, 12, 2890, 16, 833, 4672, 833, 273, 13599, 12, 1968, 13, 1172, 833, 18, 1968, 675, 16, 1603, 273, 365, 6315, 1893, 45, 311, 809, 12, 1968, 13, 619, 1968, 16, 1198, 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, 2811, 305, 94, 12, 2890, 16, 833, 4672, 833, 273, 13599, 12, 1968, 13, 1172, 833, 18, 1968, 675, 16, 1603, 273, 365, 6315, 1893, 45, 311, 809, 12, 1968, 13, 619, 1968, 16, 1198, 273,...
int_status.setValue('sweep',status_processor['sweep'][0].value('name'))
this_sweep = status_processor['sweep'][0].value('name') int_status.setValue('sweep',this_sweep)
def get_relative_path(filename): """Attempt to get the path relative to cwd If 'filename' refers to a file or directory below the current working directory (cwd) then this function returns the relative path to cwd. Otherwise it returns 'filename'.""" pwd = os.getcwd() common_prefix = os.path.commonprefix([pwd,filename...
e1340f1bff904e82fb6a1fdf58de2ed7622eee81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3290/e1340f1bff904e82fb6a1fdf58de2ed7622eee81/Xia2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11626, 67, 803, 12, 3459, 4672, 3536, 7744, 358, 336, 326, 589, 3632, 358, 7239, 225, 971, 296, 3459, 11, 21368, 358, 279, 585, 578, 1867, 5712, 326, 783, 5960, 1867, 261, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11626, 67, 803, 12, 3459, 4672, 3536, 7744, 358, 336, 326, 589, 3632, 358, 7239, 225, 971, 296, 3459, 11, 21368, 358, 279, 585, 578, 1867, 5712, 326, 783, 5960, 1867, 261, 110...
return 0
return False
def __eq__(self, n): if n.lid == self.lid: return 1 else: return 0
db5e486ce08d4d56bdca35160b820bcab1d43c7f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4470/db5e486ce08d4d56bdca35160b820bcab1d43c7f/astar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 290, 4672, 309, 290, 18, 80, 350, 422, 365, 18, 80, 350, 30, 327, 404, 469, 30, 327, 374, 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, 1001, 11253, 972, 12, 2890, 16, 290, 4672, 309, 290, 18, 80, 350, 422, 365, 18, 80, 350, 30, 327, 404, 469, 30, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
dest_ce = CommonUtil.env('GLOBUS_CE') if not dest_ce: dest_ce = CommonUtil.stdout('edg-brokerinfo getCE') if not dest_ce: dest_ce = CommonUtil.stdout('glite-brokerinfo getCE') return CommonUtil.strip_to_none(dest_ce)
return '%s_localbatch_%s' % (ji['GANGA_HOSTNAME'], ji['Batch'])
def wn_dest_ce(): """Build dest_ce. Only run on worker node.""" dest_ce = CommonUtil.env('GLOBUS_CE') if not dest_ce: dest_ce = CommonUtil.stdout('edg-brokerinfo getCE') if not dest_ce: dest_ce = CommonUtil.stdout('glite-brokerinfo getCE') return CommonUtil.strip_to_none(dest_ce)
3d31941fcc096ef695c2e7fa17aa4dcb8981529c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/3d31941fcc096ef695c2e7fa17aa4dcb8981529c/BatchUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 82, 67, 10488, 67, 311, 13332, 3536, 3116, 1570, 67, 311, 18, 5098, 1086, 603, 4322, 756, 12123, 1570, 67, 311, 273, 5658, 1304, 18, 3074, 2668, 43, 1502, 3000, 55, 67, 1441, 6134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 341, 82, 67, 10488, 67, 311, 13332, 3536, 3116, 1570, 67, 311, 18, 5098, 1086, 603, 4322, 756, 12123, 1570, 67, 311, 273, 5658, 1304, 18, 3074, 2668, 43, 1502, 3000, 55, 67, 1441, 6134...
DoInterestManager.notify.debug( "handleInterestDoneMessage--> handle: %s: Expecting context %s, got %s" % ( handle, DoInterestManager._interests[handle].context, contextId)) if __debug__: state = DoInterestManager._interests[handle] self._addDebugInterestHistory( "finished", state.desc, handle, contextId, state.parentI...
DoInterestManager.notify.warning( "handleInterestDoneMessage: handle not found: %s" % (handle))
def handleInterestDoneMessage(self, di): """ This handles the interest done messages and may dispatch an event """ assert DoInterestManager.notify.debugCall() handle = di.getUint16() contextId = di.getUint32() if self.__verbose(): print 'CR::INTEREST.interestDone(handle=%s)' % handle DoInterestManager.notify.debug( "ha...
795bfe437b481208c1d6dffec397c8e0d63f00e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/795bfe437b481208c1d6dffec397c8e0d63f00e4/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640...
class PacketTypeDispatcher(object): _registry = {} @staticmethod def addPacketType(klass): PacketTypeDispatcher._registry[klass.tag] = klass @staticmethod def getClass(tag): return PacketTypeDispatcher._registry.get(tag, PGP_Packet)
@classmethod def newPacketFromStream(cls, stream, start = -1): if isinstance(stream, file) and not hasattr(stream, "pread"): f = util.ExtendedFile(stream.name, buffering = False) f.seek(stream.tell()) stream = f return PGP_PacketFromStream(cls).read(stream, start = start) @classmethod def newPacket(cls, tag, bodyStre...
def seekParentKey(self, keyId): """Get a parent key with this keyId or with a subkey with this keyId""" for pkt in self.iterKeys(): if isinstance(pkt, PGP_MainKey): if pkt.getKeyFingerprint().endswith(keyId.upper()): # This is a main key and it has the keyId we need return pkt elif isinstance(pkt, PGP_SubKey): if pkt.g...
4fd56e701ef4706d42981fa85285185ee22dae57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/4fd56e701ef4706d42981fa85285185ee22dae57/openpgpfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 3054, 653, 12, 2890, 16, 30914, 4672, 3536, 967, 279, 982, 498, 598, 333, 30914, 578, 598, 279, 21949, 598, 333, 30914, 8395, 364, 11536, 316, 365, 18, 2165, 2396, 13332, 309, 1549...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6520, 3054, 653, 12, 2890, 16, 30914, 4672, 3536, 967, 279, 982, 498, 598, 333, 30914, 578, 598, 279, 21949, 598, 333, 30914, 8395, 364, 11536, 316, 365, 18, 2165, 2396, 13332, 309, 1549...
def key_press_event_cb(self, win, event): pressed = event.keyval keys = gtk.keysyms if event.state == 0: if pressed == keys.KP_Add: self.zoom('ZoomIn') elif pressed == keys.KP_Subtract: self.zoom('ZoomOut') elif pressed == keys.Left: self.move('MoveLeft') elif pressed == keys.Right: self.move('MoveRight') elif pressed...
def key_press_event_cb_before(self, win, event): ANY_MODIFIER = gtk.gdk.SHIFT_MASK | gtk.gdk.MOD1_MASK | gtk.gdk.CONTROL_MASK if event.state & ANY_MODIFIER: return False if event.keyval == gtk.keysyms.Left: self.move('MoveLeft') elif event.keyval == gtk.keysyms.Right: self.move('MoveRight') elif event.keyval == gtk.ke...
def key_press_event_cb(self, win, event): #print event.keyval, event.state pressed = event.keyval keys = gtk.keysyms if event.state == 0: # no modifiers if pressed == keys.KP_Add: self.zoom('ZoomIn') elif pressed == keys.KP_Subtract: self.zoom('ZoomOut') elif pressed == keys.Left: self.move('MoveLeft') elif pressed == ...
57714ab3737a3cf0cef52230b54b1a65c96e393b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7129/57714ab3737a3cf0cef52230b54b1a65c96e393b/drawwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 1028, 67, 2575, 67, 7358, 12, 2890, 16, 5657, 16, 871, 4672, 468, 1188, 871, 18, 856, 1125, 16, 871, 18, 2019, 19504, 273, 871, 18, 856, 1125, 1311, 273, 22718, 18, 2452, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 498, 67, 1028, 67, 2575, 67, 7358, 12, 2890, 16, 5657, 16, 871, 4672, 468, 1188, 871, 18, 856, 1125, 16, 871, 18, 2019, 19504, 273, 871, 18, 856, 1125, 1311, 273, 22718, 18, 2452, 93...
self.conn = self.connect() cursor = self.conn.cursor(MySQLdb.cursors.DictCursor) except MySQLdb.Error: self.conn = self.connect(invalidate = True) cursor = self.conn.cursor(MySQLdb.cursors.DictCursor)
cursor = self.conn.cursor(MySQLdb.cursors.DictCursor) except MySQLdb.Error: self.conn = self.connect() self.redo() cursor = self.conn.cursor(MySQLdb.cursors.DictCursor)
def addOutputFile(self, datasetId, fileName, jobId): """ __addOutputFile__ Add an output file to a file block. If it exists, increment instance counter. Arguments: datasetId -- the dataset id in database fileName -- the output merged file name jobId -- the job name Return: instance -- instance number of the file (...
f6d38da4b0910650112bd5df8a6e148fb35b760b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/f6d38da4b0910650112bd5df8a6e148fb35b760b/MergeSensorDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1447, 812, 12, 2890, 16, 3709, 548, 16, 3968, 16, 13845, 4672, 3536, 1001, 1289, 1447, 812, 972, 225, 1436, 392, 876, 585, 358, 279, 585, 1203, 18, 971, 518, 1704, 16, 5504, 791, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 1447, 812, 12, 2890, 16, 3709, 548, 16, 3968, 16, 13845, 4672, 3536, 1001, 1289, 1447, 812, 972, 225, 1436, 392, 876, 585, 358, 279, 585, 1203, 18, 971, 518, 1704, 16, 5504, 791, ...
name = str(cls)
def createInstance(cls, pool, module):
bee04b3198d73775d98c3fcee8f4efef13fd1555 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/bee04b3198d73775d98c3fcee8f4efef13fd1555/osv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20075, 12, 6429, 16, 2845, 16, 1605, 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, 20075, 12, 6429, 16, 2845, 16, 1605, 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...
return(params.n_bg_std_thresh/self.scrollbar2thresh)
if self.scrollbar2thresh == 0: return 0 else: return(params.n_bg_std_thresh/self.scrollbar2thresh)
def GetThresholdScrollbar(self): if not hasattr(self,'scrollbar2thresh'): self.SetThreshBounds() return(params.n_bg_std_thresh/self.scrollbar2thresh)
fc214aea8a01d87814d200d879896f18aab135ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2711/fc214aea8a01d87814d200d879896f18aab135ce/bg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 7614, 31636, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 11189, 12033, 3215, 22, 19237, 11, 4672, 365, 18, 694, 1315, 1955, 5694, 1435, 327, 12, 2010, 18, 82, 67, 12370, 67, 5084, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 7614, 31636, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 11189, 12033, 3215, 22, 19237, 11, 4672, 365, 18, 694, 1315, 1955, 5694, 1435, 327, 12, 2010, 18, 82, 67, 12370, 67, 5084, 6...
result = [] for brev,blineno in self.git.blame(self.rev, p): result.append(brev) return result
return [ rev for (rev,lineno) in self.git.blame(self.rev, self.__git_path()) ]
def get_annotations(self): p = self.path.strip('/') if not self.isfile: return
ff0ef4a0b7ee5f4115b9e845804b91a3cc0ca57e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14465/ff0ef4a0b7ee5f4115b9e845804b91a3cc0ca57e/git_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14670, 12, 2890, 4672, 293, 273, 365, 18, 803, 18, 6406, 2668, 2473, 13, 309, 486, 365, 18, 291, 768, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14670, 12, 2890, 4672, 293, 273, 365, 18, 803, 18, 6406, 2668, 2473, 13, 309, 486, 365, 18, 291, 768, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
((1., nan), (nan, nan), ''),
((1., nan), (nan, nan), 'invalid-optional'),
def test_catanh(self): for p, v, e in [ ((0., 0), (0, 0), ''), ((0., nan), (0., nan), 'XXX'), # now: (nan, nan) ((1., 0.), (inf, 0.), 'XXX divide'), # now: (nan, nan) ((1., inf), (inf, 0.), 'XXX'), # now: (nan, nan) ((1., nan), (nan, nan), ''), ((inf, 1.), (0., pi/2), 'XXX'), # now: (nan, nan) ((inf, inf), (0, pi/2), '...
ecf30dc2d1e500c5654ca8624aad15de84c01b6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/ecf30dc2d1e500c5654ca8624aad15de84c01b6c/test_umath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2574, 304, 76, 12, 2890, 4672, 364, 293, 16, 331, 16, 425, 316, 306, 14015, 20, 12990, 374, 3631, 261, 20, 16, 374, 3631, 875, 3631, 14015, 20, 12990, 6468, 3631, 261, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2574, 304, 76, 12, 2890, 4672, 364, 293, 16, 331, 16, 425, 316, 306, 14015, 20, 12990, 374, 3631, 261, 20, 16, 374, 3631, 875, 3631, 14015, 20, 12990, 6468, 3631, 261, 20, ...
assert text.count(string) == 1
def install(self): """Install library files after writing changes."""
31fdc3db39351fa0dee3f56e26af75fa0affd800 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12936/31fdc3db39351fa0dee3f56e26af75fa0affd800/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 3536, 6410, 5313, 1390, 1839, 7410, 3478, 12123, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 3536, 6410, 5313, 1390, 1839, 7410, 3478, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pointgroup, reindex_op, ntr = self._pointless_indexer_jiffy( hklin, indxr) if ntr: need_to_return = True if self._scalr_input_pointgroup:
if not self._scalr_input_pointgroup: pointgroup, reindex_op, ntr = self._pointless_indexer_jiffy( hklin, indxr) if ntr: need_to_return = True else:
def _scale_prepare(self): '''Prepare the data for scaling - this will reindex it the reflections to the correct pointgroup and setting, for instance, and move the reflection files to the scale directory.'''
a2d54d2e6bf30abdb43de04ed0fffe8d8d345b2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3290/a2d54d2e6bf30abdb43de04ed0fffe8d8d345b2e/XDSScaler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5864, 67, 9366, 12, 2890, 4672, 9163, 7543, 326, 501, 364, 10612, 300, 333, 903, 17492, 518, 326, 5463, 87, 358, 326, 3434, 1634, 1655, 471, 3637, 16, 364, 791, 16, 471, 3635, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5864, 67, 9366, 12, 2890, 4672, 9163, 7543, 326, 501, 364, 10612, 300, 333, 903, 17492, 518, 326, 5463, 87, 358, 326, 3434, 1634, 1655, 471, 3637, 16, 364, 791, 16, 471, 3635, 326...
return OWNER_ID_URL % (domain, group_id, owner_email)
return OWNER_ID_URL % (domain, group_id, urllib.quote_plus(owner_email))
def _ServiceUrl(self, service_type, is_existed, group_id, member_id, owner_email, start_key, direct_only=None, domain=None): if domain is None: domain = self.domain if service_type == 'group': if group_id != '' and is_existed: return GROUP_ID_URL % (domain, group_id) if member_id != '': if direct_only is not None: retu...
bf51339d8323fe930115a4bc023f9b3d9a742af2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/bf51339d8323fe930115a4bc023f9b3d9a742af2/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1179, 1489, 12, 2890, 16, 1156, 67, 723, 16, 353, 67, 7398, 329, 16, 1041, 67, 350, 16, 3140, 67, 350, 16, 3410, 67, 3652, 16, 787, 67, 856, 16, 2657, 67, 3700, 33, 7036, 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, 389, 1179, 1489, 12, 2890, 16, 1156, 67, 723, 16, 353, 67, 7398, 329, 16, 1041, 67, 350, 16, 3140, 67, 350, 16, 3410, 67, 3652, 16, 787, 67, 856, 16, 2657, 67, 3700, 33, 7036, 16, ...
self.bond_directions_to_neighbors(), remove_data_from_neighbors = True )
self.bond_directions_to_neighbors(), remove_data_from_neighbors = True )
def _f_Pl_set_position_from_Ss3plus5_data(self): #bruce 080402 """ [friend method for dna updater]
e1e62a385ab869207e0fbbe06c8be2f0433a21df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/e1e62a385ab869207e0fbbe06c8be2f0433a21df/PAM_Atom_methods.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 74, 67, 1749, 67, 542, 67, 3276, 67, 2080, 67, 55, 87, 23, 10103, 25, 67, 892, 12, 2890, 4672, 468, 2848, 3965, 16314, 3028, 3103, 3536, 306, 74, 7522, 707, 364, 31702, 7760, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 74, 67, 1749, 67, 542, 67, 3276, 67, 2080, 67, 55, 87, 23, 10103, 25, 67, 892, 12, 2890, 4672, 468, 2848, 3965, 16314, 3028, 3103, 3536, 306, 74, 7522, 707, 364, 31702, 7760, 65...
packkey(ae, key, value)
ae.AEPutAttributeDesc(key, pack(value))
def packevent(ae, parameters = {}, attributes = {}): for key, value in parameters.items(): packkey(ae, key, value) for key, value in attributes.items(): packkey(ae, key, value)
ddba1089dbae508982de25bef58f6d2962c3a688 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ddba1089dbae508982de25bef58f6d2962c3a688/aetools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 2575, 12, 8906, 16, 1472, 273, 10615, 1677, 273, 2618, 4672, 364, 498, 16, 460, 316, 1472, 18, 3319, 13332, 14221, 18, 16985, 6426, 1499, 4217, 12, 856, 16, 2298, 12, 1132, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2298, 2575, 12, 8906, 16, 1472, 273, 10615, 1677, 273, 2618, 4672, 364, 498, 16, 460, 316, 1472, 18, 3319, 13332, 14221, 18, 16985, 6426, 1499, 4217, 12, 856, 16, 2298, 12, 1132, 3719, ...
set_reliable(sk, True)
def accept(self, sk): # complete deferred setup if not do_accept(sk): return
9f9f97b8817b5a72d77dd926acad1d7380ba96cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/9f9f97b8817b5a72d77dd926acad1d7380ba96cc/mcap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 12, 2890, 16, 4343, 4672, 468, 3912, 7045, 3875, 309, 486, 741, 67, 9436, 12, 7771, 4672, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2791, 12, 2890, 16, 4343, 4672, 468, 3912, 7045, 3875, 309, 486, 741, 67, 9436, 12, 7771, 4672, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if ids: cr.execute('select number_of_days_temp from hr_holidays where id in ('+','.join(map(str, ids))+')') res = cr.fetchall() if res and res[0][0] < 0:
for rec in self.read(cr, uid, ids, ['number_of_days','date_from','date_to']): if rec['number_of_days'] < 0:
def _check_date(self, cr, uid, ids): if ids: cr.execute('select number_of_days_temp from hr_holidays where id in ('+','.join(map(str, ids))+')') res = cr.fetchall() if res and res[0][0] < 0: return False return True
f495432c7f7629ebc36337557faa7b5fb9ccc964 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f495432c7f7629ebc36337557faa7b5fb9ccc964/hr_holidays.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 712, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 364, 1950, 316, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2696, 67, 792, 67, 9810, 17023, 712, 67, 2080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 712, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 364, 1950, 316, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2696, 67, 792, 67, 9810, 17023, 712, 67, 2080...
class Playlist(BaseObject):
def addAlbum(self, album): """Add an album to a user's Last.fm library. """ params = self._getParams() params['artist'] = album.getArtist().getName() params['album'] = album.getName() _Request(self, 'library.addAlbum', self.api_key, params, True, self.secret).execute() def addArtist(self, artist): """Add an artist ...
def getTrackTagcount(self, track_object): """Goes through the library until it finds the tagcount of this track and returns it (could take a relatively long time). * track_object : The Track to find. """ key = track_object._hash() if key in self._tracks_tagcounts.keys(): return self._tracks_tagcounts[key] for i in ra...
903c9b1622fe56617e5099f20abdc69f2090f8e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/903c9b1622fe56617e5099f20abdc69f2090f8e0/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4402, 1805, 1883, 12, 2890, 16, 3298, 67, 1612, 4672, 3536, 5741, 281, 3059, 326, 5313, 3180, 518, 13094, 326, 1047, 1883, 434, 333, 3298, 471, 1135, 518, 261, 15195, 4862, 279, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4402, 1805, 1883, 12, 2890, 16, 3298, 67, 1612, 4672, 3536, 5741, 281, 3059, 326, 5313, 3180, 518, 13094, 326, 1047, 1883, 434, 333, 3298, 471, 1135, 518, 261, 15195, 4862, 279, 127...
def register(cls, xml_cls): cls._xml_classes[xml_cls.qname] = xml_cls
def register_element(cls, xml_class): cls._xml_classes[xml_class.qname] = xml_class for child in cls._children_applications: child.register_element(xml_class)
def register(cls, xml_cls): cls._xml_classes[xml_cls.qname] = xml_cls
86a3cb09569495d76ac3ea45504458f43e29e618 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/86a3cb09569495d76ac3ea45504458f43e29e618/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 6429, 16, 2025, 67, 6429, 4672, 2028, 6315, 2902, 67, 4701, 63, 2902, 67, 6429, 18, 85, 529, 65, 273, 2025, 67, 6429, 2, 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, 1744, 12, 6429, 16, 2025, 67, 6429, 4672, 2028, 6315, 2902, 67, 4701, 63, 2902, 67, 6429, 18, 85, 529, 65, 273, 2025, 67, 6429, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
parser = USKAnnouncementParser(trust_map) recv_msgs(stored_cfg.defaults['FMS_HOST'], stored_cfg.defaults['FMS_PORT'], parser, stored_cfg.fmsread_groups) if len(parser.usks) == 0: ui_.status("No USKs found.\n") return True ui_.status("\n") for usk in parser.usks: usk_entry = parser.usks[usk] ui_.status("USK Hash: %s\...
parser = USKAnnouncementParser(trust_map) recv_msgs(stored_cfg.defaults['FMS_HOST'], stored_cfg.defaults['FMS_PORT'], parser, stored_cfg.fmsread_groups) if len(parser.usks) == 0: ui_.status("No USKs found.\n")
def handled_listall(ui_, params, stored_cfg): """ INTERNAL: Helper function to simplify execute_fmsread. """ if params['FMSREAD'] != 'list' and params['FMSREAD'] != 'listall': return False if params['FMSREAD'] == 'listall': parser = USKAnnouncementParser() if params['VERBOSITY'] >= 2: ui_.status('Listing all repo USKs...
6febded09a51cf3193ab5fd10a69e44323549d12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4007/6febded09a51cf3193ab5fd10a69e44323549d12/infcmds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7681, 67, 1098, 454, 12, 4881, 67, 16, 859, 16, 4041, 67, 7066, 4672, 3536, 18139, 30, 9705, 445, 358, 16499, 1836, 67, 74, 959, 896, 18, 3536, 309, 859, 3292, 42, 3537, 6949, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7681, 67, 1098, 454, 12, 4881, 67, 16, 859, 16, 4041, 67, 7066, 4672, 3536, 18139, 30, 9705, 445, 358, 16499, 1836, 67, 74, 959, 896, 18, 3536, 309, 859, 3292, 42, 3537, 6949, 3546, ...
pynotify.init("Multi Action Test") n = pynotify.Notification( _("Tcos device daemon") , msg )
pynotify.init("tcos-devices-ng") image_uri="file://" + os.path.abspath(shared.IMG_DIR) + "/tcos-devices-32x32.png" n = pynotify.Notification( _("Tcos device daemon") , msg, image_uri )
def show_notification(self, msg, urgency=pynotify.URGENCY_CRITICAL): pynotify.init("Multi Action Test") n = pynotify.Notification( _("Tcos device daemon") , msg ) n.set_urgency(urgency) n.set_category("device") n.set_timeout(15000) # 15 sec if not n.show(): print_debug ("show_notification() Failed to send notification...
6b6b277d324dc98aca42c94ca02b2cc81f5f4535 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/6b6b277d324dc98aca42c94ca02b2cc81f5f4535/tcos-devices-ng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 9927, 12, 2890, 16, 1234, 16, 8896, 75, 2075, 33, 84, 878, 352, 1164, 18, 1099, 16652, 16068, 67, 5093, 21377, 4672, 293, 878, 352, 1164, 18, 2738, 2932, 5111, 538, 17, 12506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 9927, 12, 2890, 16, 1234, 16, 8896, 75, 2075, 33, 84, 878, 352, 1164, 18, 1099, 16652, 16068, 67, 5093, 21377, 4672, 293, 878, 352, 1164, 18, 2738, 2932, 5111, 538, 17, 12506...
for li, lc in ("decimal_point", "thousands_sep"):
for lc in ("decimal_point", "thousands_sep"):
def test_lc_numeric_localeconv(self): # Test localeconv against known values for loc in candidate_locales: try: setlocale(LC_NUMERIC, loc) except Error: continue for li, lc in ("decimal_point", "thousands_sep"): self.numeric_tester('localeconv', localeconv()[lc], lc, loc)
a71aa7a7a46ff0f14ce0d77bbab296dcc0b3b978 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/a71aa7a7a46ff0f14ce0d77bbab296dcc0b3b978/test__locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17704, 67, 5246, 67, 3729, 17181, 90, 12, 2890, 4672, 468, 7766, 1191, 17181, 90, 5314, 4846, 924, 364, 1515, 316, 5500, 67, 22638, 30, 775, 30, 444, 6339, 12, 13394, 67, 229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17704, 67, 5246, 67, 3729, 17181, 90, 12, 2890, 4672, 468, 7766, 1191, 17181, 90, 5314, 4846, 924, 364, 1515, 316, 5500, 67, 22638, 30, 775, 30, 444, 6339, 12, 13394, 67, 229...
return (invalid[index], "kNoError", self.gl_error) return ("---ERROR1---", "kNoError", self.gl_error)
return (invalid[index], "kNoError", "GL_INVALID_ENUM") return ("---ERROR1---", "kNoError", "GL_INVALID_ENUM")
def GetInvalidArg(self, offset, index): """returns an invalid value by index.""" if 'invalid' in self.enum_info: invalid = self.enum_info['invalid'] num_invalid = len(invalid) if index >= num_invalid: index = num_invalid - 1 return (invalid[index], "kNoError", self.gl_error) return ("---ERROR1---", "kNoError", self.gl_...
85c6d6739a81098c35cb35c3430f038ed4f5ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85c6d6739a81098c35cb35c3430f038ed4f5ddab/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 6154, 392, 2057, 460, 635, 770, 12123, 309, 296, 5387, 11, 316, 365, 18, 7924, 67, 1376, 30, 2057, 273, 365, 18, 7924, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 6154, 392, 2057, 460, 635, 770, 12123, 309, 296, 5387, 11, 316, 365, 18, 7924, 67, 1376, 30, 2057, 273, 365, 18, 7924, 67, 1...
self.bus.disconnect(self._on_state_changed_id)
self.bus.disconnect(self._set_current_time_actual_id)
def _on_state_changed(self, bus, message, seconds): if self.playbin.get_state(0)[1] in (gst.STATE_PAUSED, gst.STATE_PLAYING): self._seek(seconds) self.bus.disconnect(self._on_state_changed_id)
408cbef61fa2e462355ba48311f7bbb6475c06f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/408cbef61fa2e462355ba48311f7bbb6475c06f6/gstreamerrenderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 265, 67, 2019, 67, 6703, 12, 2890, 16, 5766, 16, 883, 16, 3974, 4672, 309, 365, 18, 1601, 4757, 18, 588, 67, 2019, 12, 20, 25146, 21, 65, 316, 261, 75, 334, 18, 7998, 67, 4066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 265, 67, 2019, 67, 6703, 12, 2890, 16, 5766, 16, 883, 16, 3974, 4672, 309, 365, 18, 1601, 4757, 18, 588, 67, 2019, 12, 20, 25146, 21, 65, 316, 261, 75, 334, 18, 7998, 67, 4066...
""".splitlines()],
""".splitlines() if len(c.strip()) > 0],
def run(self): distbuild.run(self) generate_docs()
3a7737b864c6502932ba0d9f09ee96c5768eac96 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13168/3a7737b864c6502932ba0d9f09ee96c5768eac96/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2411, 3510, 18, 2681, 12, 2890, 13, 2103, 67, 8532, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 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, 1086, 12, 2890, 4672, 2411, 3510, 18, 2681, 12, 2890, 13, 2103, 67, 8532, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def createJoinTablesSQL(cls):
def createJoinTablesSQL(cls, connection=None): conn = connection or cls._connection
def createJoinTablesSQL(cls): sql = [] for join in cls._getJoinsToCreate(): sql.append(cls._connection._SO_createJoinTableSQL(join)) return '\n'.join(sql)
5095cfa4c32001226e31b16fc79027c429b12d8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/5095cfa4c32001226e31b16fc79027c429b12d8b/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4572, 6905, 3997, 12, 6429, 16, 1459, 33, 7036, 4672, 1487, 273, 1459, 578, 2028, 6315, 4071, 1847, 273, 5378, 364, 1233, 316, 2028, 6315, 588, 4572, 11634, 1684, 13332, 1847, 18, 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, 752, 4572, 6905, 3997, 12, 6429, 16, 1459, 33, 7036, 4672, 1487, 273, 1459, 578, 2028, 6315, 4071, 1847, 273, 5378, 364, 1233, 316, 2028, 6315, 588, 4572, 11634, 1684, 13332, 1847, 18, 6...
format_list.extend(self._build_child_path(parent, visited))
format_list.extend(self._build_child_path(child, visited))
def _build_child_path(self, format, visited=None): if visited is None: visited = {} if visited.has_key(format.name): return [] format_list = [format] for child in getattr(format, 'objs', []): format_list.extend(self._build_child_path(parent, visited)) return format_list
2b83fc3b0f22310d0474c47fdb905d267c97c662 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/2b83fc3b0f22310d0474c47fdb905d267c97c662/FormatRegistry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 3624, 67, 803, 12, 2890, 16, 740, 16, 9711, 33, 7036, 4672, 309, 9711, 353, 599, 30, 9711, 273, 2618, 309, 9711, 18, 5332, 67, 856, 12, 2139, 18, 529, 4672, 327, 5378,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3510, 67, 3624, 67, 803, 12, 2890, 16, 740, 16, 9711, 33, 7036, 4672, 309, 9711, 353, 599, 30, 9711, 273, 2618, 309, 9711, 18, 5332, 67, 856, 12, 2139, 18, 529, 4672, 327, 5378,...
return c and c in self._p._server.wild_prec_char
return c in self._p._server.wild_prec_char
def precChar(c): """Check if the char is a char that might be come before wild""" if hasattr(self._p._server, 'wild_prec_char'): return c and c in self._p._server.wild_prec_char
9ea24e732be9ab4c129e73356a2d3d8ee65e3c4a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8560/9ea24e732be9ab4c129e73356a2d3d8ee65e3c4a/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13382, 2156, 12, 71, 4672, 3536, 1564, 309, 326, 1149, 353, 279, 1149, 716, 4825, 506, 12404, 1865, 23578, 8395, 309, 3859, 12, 2890, 6315, 84, 6315, 3567, 16, 296, 91, 545, 67, 4036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13382, 2156, 12, 71, 4672, 3536, 1564, 309, 326, 1149, 353, 279, 1149, 716, 4825, 506, 12404, 1865, 23578, 8395, 309, 3859, 12, 2890, 6315, 84, 6315, 3567, 16, 296, 91, 545, 67, 4036, ...
ui = UI() print ui.input('Test?')
if __name__ == '__main__': ui = UI() print ui.input('Test?') app.MainLoop()
def inputChoice(self, question, options, hotkeys): goodAnswer = False while not goodAnswer: for i in range(len(options)): option = options[i] hotkey = hotkeys[i] m = re.search('[%s%s]' % (hotkey.lower(), hotkey.upper()), option) if m: pos = m.start() options[i] = '%s[%s]%s' % (option[:pos], option[pos], option[pos+1:])...
0899cbaefcae064dbdaff757cca5ba9a51d5f3db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/0899cbaefcae064dbdaff757cca5ba9a51d5f3db/wxpython_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 810, 10538, 12, 2890, 16, 5073, 16, 702, 16, 12811, 2452, 4672, 7494, 13203, 273, 1083, 1323, 486, 7494, 13203, 30, 364, 277, 316, 1048, 12, 1897, 12, 2116, 3719, 30, 1456, 273, 702, 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, 810, 10538, 12, 2890, 16, 5073, 16, 702, 16, 12811, 2452, 4672, 7494, 13203, 273, 1083, 1323, 486, 7494, 13203, 30, 364, 277, 316, 1048, 12, 1897, 12, 2116, 3719, 30, 1456, 273, 702, 6...
dy = min(dx, self.bottom - self.h)
dy = min(dy, self.h - self.bottom - 1)
def motion(self, event): dx = event.x - self.x0; self.x0 = event.x dy = event.y - self.y0; self.y0 = event.y new_top, new_left, new_right, new_bottom = \ self.top, self.left, self.right, self.bottom if self.state == DRAG_C: # A center drag bumps into the edges if dx > 0: dx = min(dx, self.right - self.w) else: dx = max...
b3eaf5869a14ff310ecbd9fda1cb61b2ee52c9c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7932/b3eaf5869a14ff310ecbd9fda1cb61b2ee52c9c3/cropgui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21188, 12, 2890, 16, 871, 4672, 6633, 273, 871, 18, 92, 300, 365, 18, 92, 20, 31, 365, 18, 92, 20, 273, 871, 18, 92, 7732, 273, 871, 18, 93, 300, 365, 18, 93, 20, 31, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21188, 12, 2890, 16, 871, 4672, 6633, 273, 871, 18, 92, 300, 365, 18, 92, 20, 31, 365, 18, 92, 20, 273, 871, 18, 92, 7732, 273, 871, 18, 93, 300, 365, 18, 93, 20, 31, 365, 18, ...
nodes.append(self.com_assign(nodelist[i], OP_ASSIGN)) n = Assign(nodes, exprNode)
nodesl.append(self.com_assign(nodelist[i], OP_ASSIGN)) n = Assign(nodesl, exprNode)
def expr_stmt(self, nodelist): # augassign testlist | testlist ('=' testlist)* en = nodelist[-1] exprNode = self.lookup_node(en)(en[1:]) if len(nodelist) == 1: n = Discard(exprNode) n.lineno = exprNode.lineno return n if nodelist[1][0] == token.EQUAL: nodes = [] for i in range(0, len(nodelist) - 2, 2): nodes.append(sel...
2ef304c322664332896e51f878e74a6fd728abed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2ef304c322664332896e51f878e74a6fd728abed/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3065, 67, 10589, 12, 2890, 16, 30068, 4672, 468, 31350, 6145, 1842, 1098, 571, 1842, 1098, 7707, 2218, 1842, 1098, 17653, 570, 273, 30068, 18919, 21, 65, 3065, 907, 273, 365, 18, 8664, 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, 3065, 67, 10589, 12, 2890, 16, 30068, 4672, 468, 31350, 6145, 1842, 1098, 571, 1842, 1098, 7707, 2218, 1842, 1098, 17653, 570, 273, 30068, 18919, 21, 65, 3065, 907, 273, 365, 18, 8664, 6...