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,10) elif self.tag: flickrPhotos = flickr.photos_search(tags=self.tag,per_page=10,sort="date-posted-desc") else: assert (False) #we should have either a userName or tag
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, 1282, 1767, 273, 2071, 1767, 2934, 8401, 1435, 309, 365, 18, 1355, 461, 30, 1183, 16254, 15296, 273, 1183, 16254, 18, 28035, 67, 4720, 858, 8575, 12, 2890, 18, 1355, 461, 18, 3015, 2668, 3158, 28, 26112, 1183, 16254, 3731, 12440, 273, 1183, 16254, 18, 28035, 67, 588, 4782, 3731, 12440, 12, 2242, 16254, 15296, 18, 350, 16, 2163, 13, 1327, 365, 18, 2692, 30, 1183, 16254, 3731, 12440, 273, 1183, 16254, 18, 29121, 67, 3072, 12, 4156, 33, 2890, 18, 2692, 16, 457, 67, 2433, 33, 2163, 16, 3804, 1546, 712, 17, 2767, 329, 17, 5569, 7923, 469, 30, 1815, 261, 8381, 13, 468, 1814, 1410, 1240, 3344, 279, 12065, 578, 1047, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 1282, 1767, 273, 2071, 1767, 2934, 8401, 1435, 309, 365, 18, 1355, 461, 30, 1183, 16254, 15296, 273, 1183, 16254, 18, 28035, 67, 4720, 858, 8575, 12, 2890, 18, 1355, 461, 18, 3015, 2668, 3158, 28, 26112, 1183, 16254, 3731, 12440, 273, 1183, 16254, 18, 28035, 67, 588, 4782, 3731, 12440, 12, 2242, 16254, 15296, 18, 350, 16, 2163, 13, 1327, 365, 18, 2692, 30, 1183, 16254, 3731, 12440, 273, 1183, 16254, 18, 29121, 67, 3072, 12, 4156, 33, 2890, 18, 2692, 16, 457, 67, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.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, 22626, 11, 358, 3877, 296, 27672, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 22626, 11, 358, 3877, 296, 27672, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.setChecked(bool(self.showsystemaccounts)) self.showsystemgroups = self.config.group("Options").readEntry("ShowSystemGroups") if self.showsystemgroups == '': self.showsystemgroups == 0 else: self.showsystemgroups = int(self.showsystemgroups) self.groupstab.show_sysgroups_checkbox.setChecked(bool(self.showsystemgroups))
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.userlistmodel.slotShowSystemAccounts(showsystemaccounts) showsystemgroups = self.optionsconfiggroup.readEntry("ShowSystemGroups") if showsystemgroups: showsystemgroups = int(showsystemgroups) showsystemgroups = bool(showsystemgroups) self.groupstab.show_sysgroups_checkbox.setChecked(showsystemgroups) self.grouplistmodel.slotShowSystemAccounts(showsystemgroups)
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 == '': self.showsystemaccounts = False else: self.showsystemaccounts = int(self.showsystemaccounts) self.userstab.show_sysaccts_checkbox.setChecked(bool(self.showsystemaccounts)) self.showsystemgroups = self.config.group("Options").readEntry("ShowSystemGroups") if self.showsystemgroups == '': self.showsystemgroups == 0 else: self.showsystemgroups = int(self.showsystemgroups) self.groupstab.show_sysgroups_checkbox.setChecked(bool(self.showsystemgroups))
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, 963, 18, 291, 1921, 1435, 631, 8381, 30, 468, 2890, 18, 15169, 12, 1467, 13, 225, 468, 2660, 468, 2890, 18, 1425, 18, 542, 1114, 2932, 1320, 7923, 365, 18, 4500, 4299, 13739, 273, 365, 18, 1425, 18, 1655, 2932, 1320, 20387, 896, 1622, 2932, 5706, 3163, 13971, 7923, 309, 365, 18, 4500, 4299, 13739, 422, 875, 30, 365, 18, 4500, 4299, 13739, 273, 1083, 469, 30, 365, 18, 4500, 4299, 13739, 273, 509, 12, 2890, 18, 4500, 4299, 13739, 13, 365, 18, 1355, 334, 378, 18, 4500, 67, 9499, 1077, 299, 87, 67, 12017, 18, 542, 11454, 12, 6430, 12, 2890, 18, 4500, 4299, 13739, 3719, 365, 18, 4500, 4299, 4650, 273, 365, 18, 1425, 18, 1655, 2932, 1320, 20387, 896, 1622, 2932, 5706, 3163, 3621, 7923, 309, 365, 18, 4500, 4299, 4650, 422, 875, 30, 365, 18, 4500, 4299, 4650, 422, 374, 469, 30, 365, 18, 4500, 4299, 4650, 273, 509, 12, 2890, 18, 4500, 4299, 4650, 13, 365, 18, 1655, 334, 378, 18, 4500, 67, 9009, 1055, 656, 87, 67, 12017, 18, 542, 11454, 12, 6430, 12, 2890, 18, 4500, 4299, 4650, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 963, 18, 291, 1921, 1435, 631, 8381, 30, 468, 2890, 18, 15169, 12, 1467, 13, 225, 468, 2660, 468, 2890, 18, 1425, 18, 542, 1114, 2932, 1320, 7923, 365, 18, 4500, 4299, 13739, 273, 365, 18, 1425, 18, 1655, 2932, 1320, 20387, 896, 1622, 2932, 5706, 3163, 13971, 7923, 309, 365, 18, 4500, 4299, 13739, 422, 875, 30, 365, 18, 4500, 4299, 13739, 273, 1083, 469, 30, 365, 18, 4500, 4299, 13739, 273, 509, 12, 2890, 18, 4500, 4299, 13739, 13, 365, 18, 1355, 2 ]
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,readId): if size == 196: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 184: unpacked = ins.unpack('10f3Bs3Bs3BsI32f',size,readId)
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 it is NOT #-- damage, so it is probably just filler unpacked = ins.unpack('11f3Bs3Bs3BsB3s6f2s',size,readId) elif size == 62: #--Else 62 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('11f3Bs3Bs3BsB3s2s',size,readId) elif size == 42: #--Else 42 byte record (skips most everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('10f2s',size,readId) elif size == 2: #--Else 2 byte record (skips everything #-- Two junk? bytes are tacked onto the end #-- No testing done, but assumed that its the same as the #-- previous truncated record. unpacked = ins.unpack('2s',size,readId) else: raise "Unexpected size encountered for WATR subrecord: %s" % size unpacked = unpacked[:-1] unpacked += self.defaults[len(unpacked):] setter = record.__setattr__ for attr,value,action in zip(self.attrs,unpacked,self.actions): if callable(action): value = action(value) setter(attr,value) if self._debug: print unpacked
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, 16, 896, 548, 13, 327, 1327, 963, 422, 20457, 30, 468, 413, 12427, 20457, 1160, 1409, 261, 7457, 87, 16232, 27522, 16, 468, 413, 16232, 42, 287, 383, 1403, 16, 16232, 40, 931, 1224, 16, 16232, 1225, 16, 471, 302, 301, 410, 468, 413, 16896, 525, 1683, 35, 1731, 854, 268, 484, 329, 10170, 326, 679, 468, 413, 15734, 15755, 471, 326, 6761, 2195, 481, 959, 716, 518, 353, 4269, 468, 413, 302, 301, 410, 16, 1427, 518, 353, 8656, 2537, 28187, 24195, 273, 2763, 18, 17309, 2668, 2499, 74, 23, 38, 87, 23, 38, 87, 23, 38, 87, 38, 23, 87, 26, 74, 22, 87, 2187, 1467, 16, 896, 548, 13, 1327, 963, 422, 22684, 30, 468, 413, 12427, 22684, 1160, 1409, 261, 7457, 87, 4486, 7756, 468, 413, 16896, 525, 1683, 35, 1731, 854, 268, 484, 329, 10170, 326, 679, 468, 413, 2631, 7769, 2731, 16, 1496, 12034, 716, 2097, 326, 1967, 487, 326, 468, 413, 2416, 15282, 1409, 18, 24195, 273, 2763, 18, 17309, 2668, 2499, 74, 23, 38, 87, 23, 38, 87, 23, 38, 87, 38, 23, 87, 22, 87, 2187, 1467, 16, 896, 548, 13, 1327, 963, 422, 14856, 30, 468, 413, 12427, 14856, 1160, 1409, 261, 7457, 87, 4486, 7756, 468, 413, 16896, 525, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 16, 896, 548, 13, 327, 1327, 963, 422, 20457, 30, 468, 413, 12427, 20457, 1160, 1409, 261, 7457, 87, 16232, 27522, 16, 468, 413, 16232, 42, 287, 383, 1403, 16, 16232, 40, 931, 1224, 16, 16232, 1225, 16, 471, 302, 301, 410, 468, 413, 16896, 525, 1683, 35, 1731, 854, 268, 484, 329, 10170, 326, 679, 468, 413, 15734, 15755, 471, 326, 6761, 2195, 481, 959, 716, 518, 353, 4269, 468, 413, 302, 301, 410, 16, 1427, 518, 353, 8656, 2537, 28187, 2 ]
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, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 972, 12, 2890, 16, 7668, 16, 14264, 273, 14264, 13, 365, 18, 2819, 273, 348, 771, 429, 12, 2819, 13, 365, 18, 4210, 273, 348, 771, 429, 12, 4210, 13, 365, 18, 4210, 7244, 12682, 273, 2072, 67, 2892, 12682, 365, 18, 2819, 7244, 12682, 273, 1835, 67, 2892, 12682, 365, 18, 6180, 2148, 273, 261, 20, 16, 374, 13, 7541, 1048, 30, 306, 20, 358, 404, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 972, 12, 2890, 16, 7668, 16, 14264, 273, 14264, 13, 365, 18, 2819, 273, 348, 771, 429, 12, 2819, 13, 365, 18, 4210, 273, 348, 771, 429, 12, 4210, 13, 365, 18, 4210, 7244, 12682, 273, 2072, 67, 2892, 12682, 365, 18, 2819, 7244, 12682, 273, 1835, 67, 2892, 12682, 365, 18, 6180, 2148, 273, 261, 20, 16, 374, 13, 7541, 1048, 30, 306, 20, 358, 404, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 13, 397, 833, 63, 21, 26894, 327, 389, 1673, 67, 2074, 2434, 67, 1759, 67, 5457, 12, 2890, 16, 14, 1968, 16, 636, 25577, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 13, 397, 833, 63, 21, 26894, 327, 389, 1673, 67, 2074, 2434, 67, 1759, 67, 5457, 12, 2890, 16, 14, 1968, 16, 636, 25577, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 = wsite.getUrl(wsite.path() + '?title=Special:Log/block&page=User:' + username) numblock = re.findall(reg, block_text) if len(numblock) == 0: return False else: return True
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'] except KeyError: return False return True
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"""(.*?)\" title=\"(.*?)\">(.*?)</a> <span class=\"mw-usertoollinks\">""" block_text = wsite.getUrl(wsite.path() + '?title=Special:Log/block&page=User:' + username) numblock = re.findall(reg, block_text) # If the bot doesn't find block-line (that means the user isn't blocked), it will return False otherwise True. if len(numblock) == 0: # No problem. return False else: # User Blocked. return True
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, 18, 4936, 13, 468, 37, 12720, 445, 358, 866, 309, 326, 729, 711, 1818, 2118, 14547, 261, 869, 2488, 366, 381, 2934, 960, 273, 436, 8395, 32, 549, 5333, 72, 64, 72, 5581, 72, 64, 72, 16, 521, 72, 4713, 72, 9945, 29049, 8535, 521, 72, 64, 72, 64, 72, 64, 72, 411, 69, 3897, 5189, 8395, 397, 283, 18, 6939, 12, 803, 25438, 13, 397, 521, 436, 8395, 21110, 2412, 2077, 5189, 21110, 24735, 21110, 1757, 69, 34, 411, 3969, 667, 5189, 81, 91, 17, 1355, 6738, 7135, 21121, 3660, 1203, 67, 955, 273, 341, 4256, 18, 588, 1489, 12, 91, 4256, 18, 803, 1435, 397, 13023, 2649, 33, 12193, 30, 1343, 19, 2629, 10, 2433, 33, 1299, 2497, 397, 2718, 13, 818, 2629, 273, 283, 18, 4720, 454, 12, 1574, 16, 1203, 67, 955, 13, 468, 971, 326, 2512, 3302, 1404, 1104, 1203, 17, 1369, 261, 19056, 4696, 326, 729, 5177, 1404, 14547, 3631, 518, 903, 327, 1083, 3541, 1053, 18, 309, 562, 12, 2107, 2629, 13, 422, 374, 30, 468, 2631, 6199, 18, 327, 1083, 469, 30, 468, 2177, 3914, 329, 18, 327, 1053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 18, 4936, 13, 468, 37, 12720, 445, 358, 866, 309, 326, 729, 711, 1818, 2118, 14547, 261, 869, 2488, 366, 381, 2934, 960, 273, 436, 8395, 32, 549, 5333, 72, 64, 72, 5581, 72, 64, 72, 16, 521, 72, 4713, 72, 9945, 29049, 8535, 521, 72, 64, 72, 64, 72, 64, 72, 411, 69, 3897, 5189, 8395, 397, 283, 18, 6939, 12, 803, 25438, 13, 397, 521, 436, 8395, 21110, 2412, 2077, 5189, 21110, 24735, 21110, 1757, 69, 34, 411, 3969, 667, 5189, 2 ]
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, 18, 3733, 1435, 365, 18, 3733, 67, 1883, 1011, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 18, 3733, 1435, 365, 18, 3733, 67, 1883, 1011, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.__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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 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_ARCHIVE_TYPE if BUILD_ARCHIVE_TYPE in ('linux', 'linux-64'): BUILD_ZIP_NAME = 'chrome-linux.zip' BUILD_DIR_NAME = 'chrome-linux' BUILD_EXE_NAME = 'chrome' elif BUILD_ARCHIVE_TYPE in ('mac'): BUILD_ZIP_NAME = 'chrome-mac.zip' BUILD_DIR_NAME = 'chrome-mac' BUILD_EXE_NAME = 'Chromium.app/Contents/MacOS/Chromium' elif BUILD_ARCHIVE_TYPE in ('xp'): BUILD_ZIP_NAME = 'chrome-win32.zip' BUILD_DIR_NAME = 'chrome-win32' BUILD_EXE_NAME = 'chrome.exe' BUILD_BASE_URL += BUILD_ARCHIVE_DIR
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, 2552, 30054, 67, 13951, 67, 1985, 2552, 30054, 67, 4537, 67, 1985, 2552, 30054, 67, 2294, 41, 67, 1985, 2552, 30054, 67, 8369, 67, 1785, 225, 30054, 67, 10586, 5354, 67, 2399, 273, 5052, 30054, 67, 10586, 5354, 67, 4537, 273, 296, 16298, 5077, 17, 2878, 6627, 397, 30054, 67, 10586, 5354, 67, 2399, 225, 309, 30054, 67, 10586, 5354, 67, 2399, 316, 7707, 20132, 2187, 296, 20132, 17, 1105, 2187, 296, 20132, 17, 16298, 5077, 538, 11, 4672, 30054, 67, 13951, 67, 1985, 273, 296, 343, 10896, 17, 20132, 18, 4450, 11, 30054, 67, 4537, 67, 1985, 273, 296, 343, 10896, 17, 20132, 11, 30054, 67, 2294, 41, 67, 1985, 273, 296, 343, 10896, 11, 1327, 30054, 67, 10586, 5354, 67, 2399, 316, 7707, 5821, 11, 4672, 30054, 67, 13951, 67, 1985, 273, 296, 343, 10896, 17, 5821, 18, 4450, 11, 30054, 67, 4537, 67, 1985, 273, 296, 343, 10896, 17, 5821, 11, 30054, 67, 2294, 41, 67, 1985, 273, 296, 30761, 5077, 18, 2910, 19, 6323, 19, 9990, 4618, 19, 30761, 5077, 11, 1327, 30054, 67, 10586, 5354, 67, 2399, 316, 7707, 23829, 11, 4672, 30054, 67, 13951, 67, 1985, 273, 296, 343, 10896, 17, 8082, 1578, 18, 4450, 11, 30054, 67, 4537, 67, 1985, 273, 296, 343, 10896, 17, 8082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2552, 30054, 67, 13951, 67, 1985, 2552, 30054, 67, 4537, 67, 1985, 2552, 30054, 67, 2294, 41, 67, 1985, 2552, 30054, 67, 8369, 67, 1785, 225, 30054, 67, 10586, 5354, 67, 2399, 273, 5052, 30054, 67, 10586, 5354, 67, 4537, 273, 296, 16298, 5077, 17, 2878, 6627, 397, 30054, 67, 10586, 5354, 67, 2399, 225, 309, 30054, 67, 10586, 5354, 67, 2399, 316, 7707, 20132, 2187, 296, 20132, 17, 1105, 2187, 296, 20132, 17, 16298, 5077, 538, 11, 4672, 30054, 67, 13951, 67, 1985, 273, 2 ]
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, 486, 10861, 18, 1021, 13001, 1410, 506, 30372, 1450, 326, 315, 20394, 6, 471, 315, 17169, 6, 1779, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 486, 10861, 18, 1021, 13001, 1410, 506, 30372, 1450, 326, 315, 20394, 6, 471, 315, 17169, 6, 1779, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.fileh = openFile(self.file, "a") table = self.fileh.root.table # Check the dirty flag for indexes if verbose: print "auto flag:", table.autoIndex for colname in table.colnames: print "dirty flag col %s: %s" % \ (colname, table.cols._f_col(colname).index.dirty) # Check the flags for colname in table.colnames: if table.cols._f_col(colname).index: if not table.autoIndex: assert table.cols._f_col(colname).index.dirty == True else: assert table.cols._f_col(colname).index.dirty == False
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, 7677, 67, 18013, 7070, 738, 365, 16186, 1106, 972, 16186, 529, 972, 1014, 273, 365, 18, 2121, 468, 11889, 279, 3792, 316, 5596, 1014, 18, 11330, 4300, 19418, 1435, 468, 4494, 16, 1206, 2690, 2595, 30, 1014, 18, 4479, 4300, 12, 23, 16, 25, 13, 309, 365, 18, 266, 3190, 30, 365, 18, 768, 76, 18, 4412, 1435, 365, 18, 768, 76, 273, 31622, 12, 2890, 18, 768, 16, 315, 69, 7923, 1014, 273, 365, 18, 768, 76, 18, 3085, 18, 2121, 468, 2073, 326, 9603, 2982, 364, 5596, 309, 3988, 30, 1172, 315, 6079, 2982, 2773, 16, 1014, 18, 6079, 1016, 364, 29146, 316, 1014, 18, 1293, 1973, 30, 309, 1014, 18, 6842, 6315, 74, 67, 1293, 12, 1293, 529, 2934, 1615, 30, 1172, 315, 18013, 2982, 645, 738, 87, 30, 738, 87, 6, 738, 521, 261, 1293, 529, 16, 1014, 18, 6842, 6315, 74, 67, 1293, 12, 1293, 529, 2934, 1615, 18, 18013, 13, 468, 2073, 326, 2943, 364, 29146, 316, 1014, 18, 1293, 1973, 30, 309, 1014, 18, 6842, 6315, 74, 67, 1293, 12, 1293, 529, 2934, 1615, 30, 309, 486, 1014, 18, 6079, 1016, 30, 1815, 1014, 18, 6842, 6315, 74, 67, 1293, 12, 1293, 529, 2934, 1615, 18, 18013, 422, 1053, 469, 30, 1815, 1014, 18, 6842, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 7677, 67, 18013, 7070, 738, 365, 16186, 1106, 972, 16186, 529, 972, 1014, 273, 365, 18, 2121, 468, 11889, 279, 3792, 316, 5596, 1014, 18, 11330, 4300, 19418, 1435, 468, 4494, 16, 1206, 2690, 2595, 30, 1014, 18, 4479, 4300, 12, 23, 16, 25, 13, 309, 365, 18, 266, 3190, 30, 365, 18, 768, 76, 18, 4412, 1435, 365, 18, 768, 76, 273, 31622, 12, 2890, 18, 768, 16, 315, 69, 7923, 1014, 273, 365, 18, 768, 76, 18, 3085, 18, 2121, 468, 2073, 2 ]
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" % frame #get the buffer from the frame (this is part of the ring buffer): dtyp = c_char*frame.contents.image_bytes buf = dtyp.from_address(frame.contents.image) #generate an Image class from the buffer: img = fromstring(buf, dtype=self._dtype).reshape( self._shape).view(Image) #enqueue the buffer since fromstring copies data self._dll.dc1394_capture_enqueue(self._cam, frame) img._position = frame.contents.position img._packet_size = frame.contents.packet_size img._packets_per_frame = frame.contents.packets_per_frame img._timestamp = frame.contents.timestamp img._frames_behind = frame.contents.frames_behind img._id = frame.contents.id # self._current_img = img return img
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, 4830, 67, 26366, 67, 19046, 365, 6315, 27670, 18, 7201, 3437, 11290, 67, 19250, 67, 323, 4000, 12, 2890, 6315, 20133, 16, 3329, 16, 12725, 12, 3789, 3719, 309, 486, 1426, 12, 3789, 4672, 327, 309, 365, 6315, 27670, 18, 7201, 3437, 11290, 67, 19250, 67, 291, 67, 3789, 67, 3850, 10433, 12, 2890, 6315, 20133, 16, 2623, 4672, 1172, 315, 3789, 738, 87, 16899, 6, 738, 2623, 468, 588, 326, 1613, 628, 326, 2623, 261, 2211, 353, 1087, 434, 326, 9221, 1613, 4672, 3681, 879, 273, 276, 67, 3001, 14, 3789, 18, 3980, 18, 2730, 67, 3890, 1681, 273, 3681, 879, 18, 2080, 67, 2867, 12, 3789, 18, 3980, 18, 2730, 13, 468, 7163, 392, 3421, 667, 628, 326, 1613, 30, 3774, 273, 21376, 12, 4385, 16, 3182, 33, 2890, 6315, 8972, 2934, 1955, 1273, 12, 365, 6315, 4867, 2934, 1945, 12, 2040, 13, 468, 21798, 326, 1613, 3241, 21376, 13200, 501, 365, 6315, 27670, 18, 7201, 3437, 11290, 67, 19250, 67, 21798, 12, 2890, 6315, 20133, 16, 2623, 13, 3774, 6315, 3276, 273, 2623, 18, 3980, 18, 3276, 3774, 6315, 11482, 67, 1467, 273, 2623, 18, 3980, 18, 11482, 67, 1467, 3774, 6315, 28717, 67, 457, 67, 3789, 273, 2623, 18, 3980, 18, 28717, 67, 457, 67, 3789, 3774, 6315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4830, 67, 26366, 67, 19046, 365, 6315, 27670, 18, 7201, 3437, 11290, 67, 19250, 67, 323, 4000, 12, 2890, 6315, 20133, 16, 3329, 16, 12725, 12, 3789, 3719, 309, 486, 1426, 12, 3789, 4672, 327, 309, 365, 6315, 27670, 18, 7201, 3437, 11290, 67, 19250, 67, 291, 67, 3789, 67, 3850, 10433, 12, 2890, 6315, 20133, 16, 2623, 4672, 1172, 315, 3789, 738, 87, 16899, 6, 738, 2623, 468, 588, 326, 1613, 628, 326, 2623, 261, 2211, 353, 1087, 434, 326, 9221, 1613, 4672, 2 ]
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="page_name") (options, args) = parser.parse_args() if (options.test_shell_path and os.path.isfile(options.test_shell_path)): test_shell = options.test_shell_path else: test_shell = FindTestShell() # Load the manifest of existing API Methods api_manifest = ApiManifest(_extension_api_json) # Read static file names static_names = GetStaticFileNames() # Read module names module_names = api_manifest.getModuleNames() # All pages to generate page_names = static_names | module_names # Allow the user to render a single page if they want if options.page_name: if options.page_name in page_names: page_names = [options.page_name] else: raise Exception("--page-name argument must be one of %s." % ', '.join(sorted(page_names))) # Render a manifest file containing metadata about all the extension samples samples_manifest = SamplesManifest(_samples_dir, _base_dir, api_manifest) samples_manifest.writeToFile(_samples_json) modified_files = RenderPages(page_names, test_shell) if (len(modified_files) == 0): print "Output files match existing files. No changes made." else: print ("ATTENTION: EXTENSION DOCS HAVE CHANGED\n" + "The following files have been modified and should be checked\n" + "into source control (ideally in the same changelist as the\n" + "underlying files that resulting in their changing).") for f in modified_files: print f # Hack. Sleep here, otherwise windows doesn't properly close the debug.log # and the os.remove will fail with a "Permission denied". time.sleep(1) debug_log = os.path.normpath(_build_dir + "/" + "debug.log") if (os.path.isfile(debug_log)): os.remove(debug_log) return os.EX_OK
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, 8082, 5790, 8403, 82, 6, 315, 8496, 1086, 326, 1361, 18, 28260, 2728, 1199, 13, 225, 2082, 273, 18862, 1435, 2082, 18, 1289, 67, 3482, 2932, 413, 3813, 17, 10304, 17, 803, 3113, 1570, 1546, 3813, 67, 10304, 67, 803, 7923, 2082, 18, 1289, 67, 3482, 2932, 413, 2433, 17, 529, 3113, 1570, 1546, 2433, 67, 529, 7923, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 225, 309, 261, 2116, 18, 3813, 67, 10304, 67, 803, 471, 1140, 18, 803, 18, 291, 768, 12, 2116, 18, 3813, 67, 10304, 67, 803, 3719, 30, 1842, 67, 10304, 273, 702, 18, 3813, 67, 10304, 67, 803, 469, 30, 1842, 67, 10304, 273, 4163, 4709, 13220, 1435, 225, 468, 4444, 326, 5643, 434, 2062, 1491, 13063, 1536, 67, 14357, 273, 4458, 9121, 24899, 6447, 67, 2425, 67, 1977, 13, 225, 468, 2720, 760, 585, 1257, 760, 67, 1973, 273, 968, 5788, 812, 1557, 1435, 225, 468, 2720, 1605, 1257, 1605, 67, 1973, 273, 1536, 67, 14357, 18, 588, 3120, 1557, 1435, 225, 468, 4826, 4689, 358, 2103, 1363, 67, 1973, 273, 760, 67, 1973, 571, 1605, 67, 1973, 225, 468, 7852, 326, 729, 358, 1743, 279, 2202, 1363, 309, 2898, 2545, 309, 702, 18, 2433, 67, 529, 30, 309, 702, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 8082, 5790, 8403, 82, 6, 315, 8496, 1086, 326, 1361, 18, 28260, 2728, 1199, 13, 225, 2082, 273, 18862, 1435, 2082, 18, 1289, 67, 3482, 2932, 413, 3813, 17, 10304, 17, 803, 3113, 1570, 1546, 3813, 67, 10304, 67, 803, 7923, 2082, 18, 1289, 67, 3482, 2932, 413, 2433, 17, 529, 3113, 1570, 1546, 2433, 67, 529, 7923, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 225, 309, 261, 2116, 18, 3813, 67, 10304, 67, 803, 471, 1140, 18, 803, 2 ]
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.anisotropic_flag): print "%6.4f" % (scatterer.u_iso,), else: print ("%6.3f " * 5 + "%6.3f") % adptbx.u_star_as_u_cart( self.unit_cell(), scatterer.u_star), print if (abs(scatterer.fp_fdp) != 0): print " fp,fdp = %6.4f,%6.4f" % ( scatterer.fp_fdp.real, scatterer.fp_fdp.imag) return self
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, 14644, 264, 316, 365, 18, 31320, 414, 13332, 1172, 2213, 17, 24, 87, 6, 738, 261, 31320, 264, 18, 1925, 16, 3631, 1172, 2213, 23, 72, 6, 738, 261, 31320, 264, 18, 7027, 20458, 9334, 3631, 1172, 2213, 27, 18, 24, 74, 738, 27, 18, 24, 74, 738, 27, 18, 24, 74, 6, 738, 14644, 264, 18, 4256, 16, 1172, 2213, 24, 18, 22, 74, 6, 738, 261, 31320, 264, 18, 25049, 416, 12514, 16, 3631, 309, 261, 902, 14644, 264, 18, 304, 17693, 1764, 335, 67, 6420, 4672, 1172, 2213, 26, 18, 24, 74, 6, 738, 261, 31320, 264, 18, 89, 67, 9699, 16, 3631, 469, 30, 1172, 7566, 9, 26, 18, 23, 74, 315, 380, 1381, 397, 2213, 26, 18, 23, 74, 7923, 738, 1261, 337, 70, 92, 18, 89, 67, 10983, 67, 345, 67, 89, 67, 11848, 12, 365, 18, 4873, 67, 3855, 9334, 14644, 264, 18, 89, 67, 10983, 3631, 1172, 309, 261, 5113, 12, 31320, 264, 18, 7944, 67, 8313, 84, 13, 480, 374, 4672, 1172, 315, 377, 4253, 16, 8313, 84, 273, 738, 26, 18, 24, 74, 15529, 26, 18, 24, 74, 6, 738, 261, 14644, 264, 18, 7944, 67, 8313, 84, 18, 7688, 16, 14644, 264, 18, 7944, 67, 8313, 84, 18, 15374, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14644, 264, 316, 365, 18, 31320, 414, 13332, 1172, 2213, 17, 24, 87, 6, 738, 261, 31320, 264, 18, 1925, 16, 3631, 1172, 2213, 23, 72, 6, 738, 261, 31320, 264, 18, 7027, 20458, 9334, 3631, 1172, 2213, 27, 18, 24, 74, 738, 27, 18, 24, 74, 738, 27, 18, 24, 74, 6, 738, 14644, 264, 18, 4256, 16, 1172, 2213, 24, 18, 22, 74, 6, 738, 261, 31320, 264, 18, 25049, 416, 12514, 16, 3631, 309, 261, 902, 14644, 264, 18, 304, 2 ]
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 file (default: generate one), short -p" print " --nib file Main nib file or lproj folder for Cocoa program, short -n" print " --resource r Extra resource file to be copied to Resources, short -r" print " --creator c 4-char creator code (default: ????), short -c" print " --help This message, short -?"
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 file Plist file (default: generate one), short -p" print " --nib file Main nib file or lproj folder for Cocoa program, short -n" print " --resource r Extra resource file to be copied to Resources, short -r" print " --creator c 4-char creator code (default: ????), short -c" print " --help This message, short -?" sys.exit(1)
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.__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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 shortage date is today.
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 quantity comes from the order_point or is zero :param cursor: the database cursor :param user: the user id :param location_id: the stock location id :param produc_id: the product id :param min_date: the minimal date :param max_date: the maximal date :param min_date_qty: the stock quantity at the minimal date :param order_point: a BrowseRecord of the Order Point :param context: the context :return: a tuple with the date and the quantity
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, 33, 7036, 16, 2472, 33, 7036, 4672, 3536, 8155, 12480, 10251, 1961, 3086, 326, 2795, 864, 7811, 18, 971, 864, 326, 1353, 1634, 16, 1245, 1509, 903, 506, 30679, 310, 316, 10406, 333, 1509, 353, 2106, 524, 7260, 831, 326, 12480, 1801, 622, 333, 1509, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 33, 7036, 16, 2472, 33, 7036, 4672, 3536, 8155, 12480, 10251, 1961, 3086, 326, 2795, 864, 7811, 18, 971, 864, 326, 1353, 1634, 16, 1245, 1509, 903, 506, 30679, 310, 316, 10406, 333, 1509, 353, 2106, 524, 7260, 831, 326, 12480, 1801, 622, 333, 1509, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
__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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
f = 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 = open(fname,'r') lines = f.readlines() f.close() #self.clear() #delete lines that the csv reader can not understand for i in range(len(lines)-1,-1,-1): #delete comment lines if lines[i].startswith(ArrayStore.csv_commentStart): del lines[i] #delete blank lines (conaining only whitespace) if len(lines[i].strip()) == 0: del lines[i] #interpret remaining lines as CSV reader = csv.reader(lines) #First two lines: scalar values (parameters) nameList = reader.next() #read parameter names #TODO: map strip() function to remove leading trailing spaces from file names dataList = reader.next() #read parameter values dataList = map(float, dataList) #convert strings to floating point #TODO: convert strings that might be found between the numbers to nan. self.dataDict = dict(zip(nameList, dataList)) #put data into internal dict #Following lines until end: array values (variables) nameList = reader.next() #read parameter names #put numbers into nested list dataList = [] for line in reader: #TODO: convert strings that might be found between the numbers to nan. lineFloat = map(float, line) #convert strings to floating point dataList.append(lineFloat) #append to nested list dataArray = array(dataList).T #convert nested list to array self.dataDict.update(dict(zip(nameList, dataArray))) #add data to internal dict
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, 6084, 1915, 854, 5313, 4186, 364, 9957, 333, 16, 716, 854, 468, 7748, 6906, 12063, 30, 468, 565, 10966, 18, 1594, 18, 896, 67, 1126, 468, 565, 2395, 7411, 1807, 1262, 445, 261, 307, 7424, 358, 506, 4797, 395, 13, 468, 6241, 30, 1898, 27920, 4496, 225, 468, 896, 7339, 585, 622, 3647, 284, 273, 1696, 12, 17812, 16, 296, 86, 6134, 2362, 273, 284, 18, 896, 3548, 1435, 284, 18, 4412, 1435, 225, 468, 2890, 18, 8507, 1435, 468, 3733, 2362, 716, 326, 6101, 2949, 848, 486, 22413, 364, 277, 316, 1048, 12, 1897, 12, 3548, 24950, 21, 16, 17, 21, 16, 17, 21, 4672, 468, 3733, 2879, 2362, 309, 2362, 63, 77, 8009, 17514, 1918, 12, 1076, 2257, 18, 6715, 67, 3469, 1685, 4672, 1464, 2362, 63, 77, 65, 468, 3733, 7052, 2362, 261, 591, 3280, 1338, 7983, 13, 309, 562, 12, 3548, 63, 77, 8009, 6406, 10756, 422, 374, 30, 1464, 2362, 63, 77, 65, 225, 468, 24713, 4463, 2362, 487, 225, 10381, 2949, 273, 6101, 18, 10530, 12, 3548, 13, 468, 3759, 2795, 2362, 30, 4981, 924, 261, 3977, 13, 508, 682, 273, 2949, 18, 4285, 1435, 468, 896, 1569, 1257, 468, 6241, 30, 852, 2569, 1435, 445, 358, 1206, 7676, 7341, 7292, 628, 585, 1257, 501, 682, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 6084, 1915, 854, 5313, 4186, 364, 9957, 333, 16, 716, 854, 468, 7748, 6906, 12063, 30, 468, 565, 10966, 18, 1594, 18, 896, 67, 1126, 468, 565, 2395, 7411, 1807, 1262, 445, 261, 307, 7424, 358, 506, 4797, 395, 13, 468, 6241, 30, 1898, 27920, 4496, 225, 468, 896, 7339, 585, 622, 3647, 284, 273, 1696, 12, 17812, 16, 296, 86, 6134, 2362, 273, 284, 18, 896, 3548, 1435, 284, 18, 4412, 1435, 225, 468, 2890, 18, 8507, 1435, 468, 3733, 2362, 716, 326, 6101, 2 ]
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(seconds * 1000)) if not self.__playing: self.pause()
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, 468, 1965, 1492, 12001, 7877, 358, 15436, 3241, 619, 558, 17, 2941, 3302, 1404, 19264, 358, 1240, 279, 468, 1661, 17, 1601, 310, 6520, 445, 18, 468, 1427, 732, 866, 358, 2621, 309, 732, 5055, 732, 4565, 23982, 471, 309, 486, 16, 732, 2132, 23982, 18, 365, 18, 92, 558, 18, 16508, 12, 474, 12, 7572, 380, 4336, 3719, 309, 486, 365, 16186, 1601, 310, 30, 365, 18, 19476, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 468, 1965, 1492, 12001, 7877, 358, 15436, 3241, 619, 558, 17, 2941, 3302, 1404, 19264, 358, 1240, 279, 468, 1661, 17, 1601, 310, 6520, 445, 18, 468, 1427, 732, 866, 358, 2621, 309, 732, 5055, 732, 4565, 23982, 471, 309, 486, 16, 732, 2132, 23982, 18, 365, 18, 92, 558, 18, 16508, 12, 474, 12, 7572, 380, 4336, 3719, 309, 486, 365, 16186, 1601, 310, 30, 365, 18, 19476, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1842, 67, 768, 18, 86, 4720, 12, 538, 18, 10814, 397, 296, 3744, 14650, 11, 397, 1140, 18, 10814, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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, 1842, 67, 768, 18, 86, 4720, 12, 538, 18, 10814, 397, 296, 3744, 14650, 11, 397, 1140, 18, 10814, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 = pauseOnData self.runEventLoop() self.assertEquals(self.downloader.state, 'paused') self.assert_(self.downloader.currentSize > 0) self.assert_(os.path.exists(self.downloader.filename)) self.assertEquals(self.countConnections(), 0) def restart(): self.downloader.start() self.addTimeout(0.5, restart, 'restarter') self.downloader.statusCallback = self.stopOnFinished self.runEventLoop() self.assertEquals(self.downloader.currentSize, 45572) self.assertEquals(self.downloader.totalSize, 45572)
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, 310, 4164, 6714, 12, 2890, 16, 880, 16, 315, 734, 21, 7923, 1652, 11722, 1398, 751, 13332, 309, 261, 2890, 18, 2378, 6714, 18, 2019, 422, 296, 7813, 310, 11, 471, 365, 18, 2378, 6714, 18, 2972, 1225, 405, 374, 4672, 365, 18, 2378, 6714, 18, 19476, 1435, 365, 18, 5681, 1133, 6452, 12, 8381, 13, 365, 18, 2378, 6714, 18, 2327, 2428, 273, 11722, 1398, 751, 365, 18, 2681, 1133, 6452, 1435, 365, 18, 11231, 8867, 12, 2890, 18, 2378, 6714, 18, 2019, 16, 296, 8774, 3668, 6134, 365, 18, 11231, 67, 12, 2890, 18, 2378, 6714, 18, 2972, 1225, 405, 374, 13, 365, 18, 11231, 67, 12, 538, 18, 803, 18, 1808, 12, 2890, 18, 2378, 6714, 18, 3459, 3719, 365, 18, 11231, 8867, 12, 2890, 18, 1883, 9314, 9334, 374, 13, 1652, 7870, 13332, 365, 18, 2378, 6714, 18, 1937, 1435, 365, 18, 1289, 2694, 12, 20, 18, 25, 16, 7870, 16, 296, 8792, 14153, 6134, 365, 18, 2378, 6714, 18, 2327, 2428, 273, 365, 18, 5681, 1398, 10577, 365, 18, 2681, 1133, 6452, 1435, 365, 18, 11231, 8867, 12, 2890, 18, 2378, 6714, 18, 2972, 1225, 16, 1059, 2539, 9060, 13, 365, 18, 11231, 8867, 12, 2890, 18, 2378, 6714, 18, 4963, 1225, 16, 1059, 2539, 9060, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 310, 4164, 6714, 12, 2890, 16, 880, 16, 315, 734, 21, 7923, 1652, 11722, 1398, 751, 13332, 309, 261, 2890, 18, 2378, 6714, 18, 2019, 422, 296, 7813, 310, 11, 471, 365, 18, 2378, 6714, 18, 2972, 1225, 405, 374, 4672, 365, 18, 2378, 6714, 18, 19476, 1435, 365, 18, 5681, 1133, 6452, 12, 8381, 13, 365, 18, 2378, 6714, 18, 2327, 2428, 273, 11722, 1398, 751, 365, 18, 2681, 1133, 6452, 1435, 365, 18, 11231, 8867, 12, 2890, 18, 2378, 6714, 18, 2 ]
["uint32 ", "UINT32", "0"],
["uint32 ", "UINT32", "UINT32", " 0"],
f.write("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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 300, 261, 39, 342, 10360, 67, 75, 13, 380, 272, 636, 81, 342, 366, 636, 12, 81, 15, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 300, 261, 39, 342, 10360, 67, 75, 13, 380, 272, 636, 81, 342, 366, 636, 12, 81, 15, 21, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 710, 273, 1061, 18, 1132, 819, 18, 2972, 2115, 18, 6226, 273, 1053, 469, 30, 819, 18, 14308, 2932, 4063, 464, 1297, 506, 392, 10844, 287, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 819, 18, 2972, 2115, 18, 6226, 273, 1053, 469, 30, 819, 18, 14308, 2932, 4063, 464, 1297, 506, 392, 10844, 287, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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" % name
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, 13, 1335, 261, 1499, 668, 16, 3580, 4672, 1342, 469, 30, 1002, 7766, 2925, 16, 315, 13139, 82, 1404, 506, 7752, 358, 444, 738, 87, 358, 738, 86, 6, 738, 261, 529, 16, 460, 13, 775, 30, 1464, 1747, 12, 2603, 16, 508, 13, 1335, 261, 1499, 668, 16, 3580, 4672, 1342, 469, 30, 1002, 7766, 2925, 16, 315, 13139, 82, 1404, 506, 7752, 358, 1464, 738, 87, 6, 738, 508, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 13, 1335, 261, 1499, 668, 16, 3580, 4672, 1342, 469, 30, 1002, 7766, 2925, 16, 315, 13139, 82, 1404, 506, 7752, 358, 444, 738, 87, 358, 738, 86, 6, 738, 261, 529, 16, 460, 13, 775, 30, 1464, 1747, 12, 2603, 16, 508, 13, 1335, 261, 1499, 668, 16, 3580, 4672, 1342, 469, 30, 1002, 7766, 2925, 16, 315, 13139, 82, 1404, 506, 7752, 358, 1464, 738, 87, 6, 738, 508, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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): raise except: obj.handle_error()
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, 2027, 18, 14232, 1502, 1693, 30, 1081, 18, 4110, 67, 2626, 67, 2575, 1435, 309, 2943, 473, 261, 4025, 18, 14232, 48, 9712, 571, 2027, 18, 14232, 48, 50, 2669, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2027, 18, 14232, 1502, 1693, 30, 1081, 18, 4110, 67, 2626, 67, 2575, 1435, 309, 2943, 473, 261, 4025, 18, 14232, 48, 9712, 571, 2027, 18, 14232, 48, 50, 2669, 4672, 1081, 18, 4110, 67, 338, 337, 67, 2575, 1435, 309, 2943, 473, 2027, 18, 14232, 48, 44, 3079, 30, 1081, 18, 4110, 67, 4412, 67, 2575, 1435, 1335, 261, 6767, 8674, 16, 19424, 16, 25454, 4672, 1002, 1335, 30, 1081, 18, 4110, 67, 1636, 1435, 225, 2, -100, -100, -100, -100, -100, -100 ]
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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 ( 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, 455, 13, 327, 261, 400, 16, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 455, 13, 327, 261, 400, 16, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 317, 733, 3536, 225, 5221, 273, 389, 2242, 67, 1289, 67, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 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, 317, 733, 3536, 225, 5221, 273, 389, 2242, 67, 1289, 67, 5391, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1318, 6134, 309, 333, 8638, 353, 486, 599, 30, 312, 1401, 273, 8074, 3391, 12, 2211, 8638, 16, 26010, 16, 312, 1401, 18, 529, 13, 327, 312, 1401, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8074, 3391, 12, 2211, 8638, 16, 26010, 16, 312, 1401, 18, 529, 13, 327, 312, 1401, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 )', 'Maximal quantity must be bigger than Minimal quantity'), ] self._error_messages.update( {'unique_op': 'Only one order point is allowed '\ 'for each product-location pair.', 'concurrent_internal_op': 'You can not define two order point '\ 'on the same product with opposite locations.',})
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, 7236, 67, 556, 19899, 7707, 1893, 67, 318, 18988, 15681, 2187, 296, 6270, 67, 556, 19899, 308, 365, 6315, 4669, 67, 11967, 1011, 306, 7707, 1893, 67, 1154, 67, 1896, 67, 16172, 2187, 296, 10687, 12, 943, 67, 16172, 353, 446, 578, 1131, 67, 16172, 353, 446, 578, 943, 67, 16172, 1545, 1131, 67, 16172, 262, 2187, 296, 2747, 2840, 10457, 1297, 506, 18983, 2353, 5444, 2840, 10457, 19899, 308, 365, 6315, 1636, 67, 6833, 18, 2725, 12, 13666, 6270, 67, 556, 4278, 296, 3386, 1245, 1353, 1634, 353, 2935, 2337, 296, 1884, 1517, 3017, 17, 3562, 3082, 1093, 16, 296, 591, 2972, 67, 7236, 67, 556, 4278, 296, 6225, 848, 486, 4426, 2795, 1353, 3143, 2337, 296, 265, 326, 1967, 3017, 598, 20759, 7838, 1093, 16, 6792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 7236, 67, 556, 19899, 7707, 1893, 67, 318, 18988, 15681, 2187, 296, 6270, 67, 556, 19899, 308, 365, 6315, 4669, 67, 11967, 1011, 306, 7707, 1893, 67, 1154, 67, 1896, 67, 16172, 2187, 296, 10687, 12, 943, 67, 16172, 353, 446, 578, 1131, 67, 16172, 353, 446, 578, 943, 67, 16172, 1545, 1131, 67, 16172, 262, 2187, 296, 2747, 2840, 10457, 1297, 506, 18983, 2353, 5444, 2840, 10457, 19899, 308, 365, 6315, 1636, 67, 6833, 18, 2725, 12, 13666, 6270, 67, 556, 4278, 296, 2 ]
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, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 451, 267, 1392, 6134, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 1655, 10880, 4278, 327, 225, 468, 2305, 777, 2743, 486, 1543, 310, 628, 279, 490, 17479, 7725, 67, 2080, 273, 21650, 18, 588, 1265, 7675, 588, 16632, 1845, 1435, 10909, 67, 2080, 273, 21650, 18, 588, 1265, 7675, 588, 1420, 1435, 309, 486, 10909, 67, 2080, 30, 10909, 67, 2080, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 1655, 10880, 4278, 327, 225, 468, 2305, 777, 2743, 486, 1543, 310, 628, 279, 490, 17479, 7725, 67, 2080, 273, 21650, 18, 588, 1265, 7675, 588, 16632, 1845, 1435, 10909, 67, 2080, 273, 21650, 18, 588, 1265, 7675, 588, 1420, 1435, 309, 486, 10909, 67, 2080, 30, 10909, 67, 2080, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 7036, 16, 1131, 67, 2469, 33, 21, 4672, 436, 8395, 11436, 1879, 777, 14354, 23749, 598, 2461, 12176, 2890, 10335, 471, 326, 864, 11012, 5254, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 2218, 3175, 6134, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 1501, 33, 7036, 16, 11012, 1530, 33, 7036, 16, 1131, 67, 2469, 33, 21, 4672, 436, 8395, 11436, 1879, 777, 14354, 23749, 598, 2461, 12176, 2890, 10335, 471, 326, 864, 11012, 5254, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 67, 2452, 30, 327, 1083, 1327, 498, 422, 296, 2039, 4278, 309, 619, 63, 856, 65, 486, 316, 10228, 455, 1154, 2187, 296, 22663, 24626, 2187, 296, 86, 7020, 17, 3211, 291, 3546, 30, 327, 1083, 1327, 498, 422, 296, 3211, 1341, 457, 12752, 4278, 309, 486, 261, 877, 67, 474, 12, 92, 63, 856, 5717, 578, 619, 63, 856, 65, 353, 599, 4672, 327, 1083, 327, 1053, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 67, 2452, 30, 327, 1083, 1327, 498, 422, 296, 2039, 4278, 309, 619, 63, 856, 65, 486, 316, 10228, 455, 1154, 2187, 296, 22663, 24626, 2187, 296, 86, 7020, 17, 3211, 291, 3546, 30, 327, 1083, 1327, 498, 422, 296, 3211, 1341, 457, 12752, 4278, 309, 486, 261, 877, 67, 474, 12, 92, 63, 856, 5717, 578, 619, 63, 856, 65, 353, 599, 4672, 327, 1083, 327, 1053, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 64, 82, 9, 87, 64, 82, 11, 738, 261, 91, 18, 823, 869, 9334, 1001, 4650, 67, 4905, 9334, 341, 18, 5414, 12, 1650, 3719, 225, 646, 67, 529, 273, 315, 1655, 67, 2640, 6, 225, 501, 1011, 9163, 32, 2892, 612, 1546, 1745, 6441, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 64, 82, 9, 87, 64, 82, 11, 738, 261, 91, 18, 823, 869, 9334, 1001, 4650, 67, 4905, 9334, 341, 18, 5414, 12, 1650, 3719, 225, 646, 67, 529, 273, 315, 1655, 67, 2640, 6, 225, 501, 1011, 9163, 32, 2892, 612, 1546, 1745, 6441, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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/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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise 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, os.F_OK): raise ValueError("No key file found! (tried %r)" % 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, 1140, 18, 803, 18, 5701, 12, 1397, 1214, 16, 315, 8157, 67, 7593, 18, 20313, 7923, 309, 486, 1140, 18, 3860, 12, 7593, 67, 768, 16, 1140, 18, 42, 67, 3141, 4672, 1002, 2068, 2932, 2279, 3320, 585, 1392, 5, 261, 313, 2092, 738, 86, 2225, 738, 3320, 67, 768, 13, 498, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 1397, 1214, 16, 315, 8157, 67, 856, 18, 20313, 7923, 309, 486, 1140, 18, 3860, 12, 856, 67, 768, 16, 1140, 18, 42, 67, 3141, 4672, 1002, 2068, 2932, 2279, 498, 585, 1392, 5, 261, 313, 2092, 738, 86, 2225, 738, 498, 67, 768, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 1140, 18, 803, 18, 5701, 12, 1397, 1214, 16, 315, 8157, 67, 7593, 18, 20313, 7923, 309, 486, 1140, 18, 3860, 12, 7593, 67, 768, 16, 1140, 18, 42, 67, 3141, 4672, 1002, 2068, 2932, 2279, 3320, 585, 1392, 5, 261, 313, 2092, 738, 86, 2225, 738, 3320, 67, 768, 13, 498, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 1397, 1214, 16, 315, 8157, 67, 856, 18, 20313, 7923, 309, 486, 1140, 18, 3860, 12, 856, 67, 768, 16, 1140, 18, 2 ]
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 (all of the same length) -- this is treated the same as a matrix. texture -- (default: "automatic"), solid light blue OPTIONAL KEYWORDS: interpolation_type - 'linear', 'nn' (nearest neighbor), 'spline' 'linear' will perform linear interpolation The option 'nn' will interpolate by averaging the value of the nearest neighbors, this produces an interpolating function that is smoother than a linear interpolation, it has one derivative everywhere except at the sample points. The option 'spline' interpolates using a bivariate B-spline. When v is a matrix the default is to use linear interpolation, when v is a list of points the default is nearest neighbor. degree - an integer between 1 and 5, controls the degree of spline used for spline interpolation. For data that is highly oscillatory use higher values point_list - If point_list=True is passed, then if the array is a list of lists of length three, it will be treated as an array of points rather than a 3xn array. num_points - Number of points to sample interpolating function in each direction. By default for an nxn array this is n. **kwds -- all other arguments are passed to the surface function OUTPUT: a 3d plot EXAMPLES: We plot a matrix that illustrates summation modulo $n$. sage: n = 5; list_plot3d(matrix(RDF,n,[(i+j)%n for i in [1..n] for j in [1..n]])) We plot a matrix of values of sin. sage: pi = float(pi) sage: m = matrix(RDF, 6, [sin(i^2 + j^2) for i in [0,pi/5,..,pi] for j in [0,pi/5,..,pi]]) sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3]) Though it doesn't change the shap of the graph, increasing num_points can increase the clarity of the graph sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3],num_points=40) We can change the interpolation type sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3]) We can make this look better by increasing the number of samples sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3],num_points=40) Lets try a spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline',frame_aspect_ratio=[1,1,1/3]) That spline doesn't capture the oscillation very well, lets try a higher degree spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline', degree=5, frame_aspect_ratio=[1,1,1/3]) We plot a list of lists: sage: show(list_plot3d([[1, 1, 1, 1], [1, 2, 1, 2], [1, 1, 3, 1], [1, 2, 1, 4]])) We plot a list of points: As a first example we can extract the (x,y,z) coordinates from the above example and make a list plot out of it. By default we do linear interpolation. sage: l=[] sage: for i in range(6): ... for j in range(6): ... l.append((float(i*pi/5),float(j*pi/5),m[i,j])) sage: list_plot3d(l,texture='yellow') Note that the points do not have to be regularly sampled. For example sage: l=[] sage: for i in range(-5,5): ... for j in range(-5,5): ... l.append((normalvariate(0,1),normalvariate(0,1),normalvariate(0,1))) sage: list_plot3d(l,interpolation_type='nn',texture='yellow',num_points=100) TESTS: We plot 0, 1, and 2 points: sage: list_plot3d([]) sage: list_plot3d([(2,3,4)]) sage: list_plot3d([(0,0,1), (2,3,4)]) However, if two points with the same x,y coordinates are given and different z coordinates an exception will be raised sage: pts =[(-4/5, -2/5, -2/5), (-4/5, -2/5, 2/5), (-4/5, 2/5, -2/5), (-4/5, 2/5, 2/5), (-2/5, -4/5, -2/5), (-2/5, -4/5, 2/5), (-2/5, -2/5, -4/5), (-2/5, -2/5, 4/5), (-2/5, 2/5, -4/5), (-2/5, 2/5, 4/5), (-2/5, 4/5, -2/5), (-2/5, 4/5, 2/5), (2/5, -4/5, -2/5), (2/5, -4/5, 2/5), (2/5, -2/5, -4/5), (2/5, -2/5, 4/5), (2/5, 2/5, -4/5), (2/5, 2/5, 4/5), (2/5, 4/5, -2/5), (2/5, 4/5, 2/5), (4/5, -2/5, -2/5), (4/5, -2/5, 2/5), (4/5, 2/5, -2/5), (4/5, 2/5, 2/5)] sage: show(list_plot3d(pts, interpolation_type='nn')) Traceback (most recent call last): ... ValueError: Two points with same x,y coordinates and different z coordinates were given. Interpolation cannot handle this. Additionally we need at least 3 points to do the interpolation sage: pts=[(0,0,0)] sage: show(list_plot3d(pts,interpolation_type='nn')) Traceback (most recent call last): ... ValueError: We need at least 3 points to perform the interpolation """ import numpy if texture == "automatic": texture = "lightblue" if is_Matrix(v): if interpolation_type=='default' or interpolation_type=='linear' and not kwds.has_key('num_points'): return list_plot3d_matrix(v, texture=texture, **kwds) else: l=[] for i in xrange(v.nrows()): for j in xrange(v.ncols()): l.append((i,j,v[i,j])) return list_plot3d_tuples(l,interpolation_type,texture,**kwds) if type(v)==numpy.ndarray: return list_plot3d(matrix(v),interpolation_type,texture,**kwds) if isinstance(v, list): if len(v) == 0: # return empty 3d graphic from base import Graphics3d return Graphics3d() elif len(v) == 1: # return a point from shapes2 import point3d return point3d(v[0], **kwds) elif len(v) == 2: # return a line from shapes2 import line3d return line3d(v, **kwds) elif isinstance(v[0],tuple) or point_list==True and len(v[0]) == 3: return list_plot3d_tuples(v,interpolation_type,texture=texture, **kwds) else: return list_plot3d_array_of_arrays(v, interpolation_type,texture, **kwds) raise TypeError, "v must be a matrix or list"
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, 279, 9034, 2553, 635, 326, 666, 271, 90, 8, 434, 3143, 316, 890, 17, 31236, 3476, 18, 225, 12943, 30, 331, 1493, 5943, 716, 11164, 279, 444, 434, 3143, 316, 890, 3476, 16, 364, 3454, 30, 380, 279, 3148, 380, 279, 666, 434, 890, 17, 17705, 380, 279, 666, 434, 6035, 261, 454, 434, 326, 1967, 769, 13, 1493, 333, 353, 13974, 326, 1967, 487, 279, 3148, 18, 11428, 1493, 261, 1886, 30, 315, 5854, 4941, 6, 3631, 18035, 9052, 8024, 225, 14930, 5311, 23287, 30, 225, 12851, 67, 723, 300, 296, 12379, 2187, 296, 9074, 11, 261, 25785, 10553, 3631, 296, 13106, 558, 11, 225, 296, 12379, 11, 225, 903, 3073, 9103, 12851, 225, 1021, 1456, 296, 9074, 11, 903, 13156, 635, 23713, 5755, 326, 460, 434, 326, 11431, 11003, 16, 333, 15505, 392, 7326, 1776, 445, 716, 353, 3029, 1632, 1614, 2353, 279, 9103, 12851, 16, 518, 711, 1245, 16417, 3614, 6051, 1335, 622, 326, 3296, 3143, 18, 225, 1021, 1456, 296, 13106, 558, 11, 7326, 815, 1450, 279, 324, 27693, 605, 17, 13106, 558, 18, 225, 5203, 331, 353, 279, 3148, 326, 805, 353, 358, 999, 9103, 12851, 16, 1347, 331, 353, 279, 666, 434, 3143, 326, 805, 353, 11431, 10553, 18, 225, 10782, 300, 392, 3571, 3086, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 279, 9034, 2553, 635, 326, 666, 271, 90, 8, 434, 3143, 316, 890, 17, 31236, 3476, 18, 225, 12943, 30, 331, 1493, 5943, 716, 11164, 279, 444, 434, 3143, 316, 890, 3476, 16, 364, 3454, 30, 380, 279, 3148, 380, 279, 666, 434, 890, 17, 17705, 380, 279, 666, 434, 6035, 261, 454, 434, 326, 1967, 769, 13, 1493, 333, 353, 13974, 326, 1967, 487, 279, 3148, 18, 11428, 1493, 261, 1886, 30, 315, 5854, 4941, 6, 3631, 18035, 9052, 8024, 225, 14930, 2 ]
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, 7032, 365, 18, 9647, 67, 4173, 67, 5391, 18, 2752, 70, 67, 1886, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 7032, 365, 18, 9647, 67, 4173, 67, 5391, 18, 2752, 70, 67, 1886, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 67, 768, 12, 768, 13, 876, 18, 2626, 2932, 565, 411, 768, 508, 28713, 87, 11, 5333, 82, 6, 738, 261, 2978, 3719, 2065, 273, 365, 18, 2485, 63, 768, 65, 3258, 273, 2065, 18, 10722, 18, 2452, 1435, 397, 2065, 18, 7528, 18, 2452, 1435, 397, 521, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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, 67, 768, 12, 768, 13, 876, 18, 2626, 2932, 565, 411, 768, 508, 28713, 87, 11, 5333, 82, 6, 738, 261, 2978, 3719, 2065, 273, 365, 18, 2485, 63, 768, 65, 3258, 273, 2065, 18, 10722, 18, 2452, 1435, 397, 2065, 18, 7528, 18, 2452, 1435, 397, 521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.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, 20, 6, 2688, 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 20, 6, 2688, 1546, 5159, 17, 28, 6, 35, 4438, 92, 18280, 16, 7545, 3783, 3631, 582, 11, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, 17, 28, 6, 35, 4438, 92, 18280, 13, 365, 18, 11231, 67, 12, 19385, 3783, 13, 365, 18, 11231, 8867, 12, 19385, 3783, 18919, 21, 8009, 972, 1106, 972, 16, 13400, 16901, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.failUnless(within_tol(Y1, Y2, eps))
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, 18, 261, 84, 33, 23, 18, 28, 2225, 7785, 273, 404, 73, 17, 8642, 468, 968, 326, 501, 30, 326, 810, 3148, 471, 326, 2145, 876, 18, 1139, 21, 273, 425, 83, 3292, 4315, 376, 17, 60, 21, 3546, 1139, 22, 273, 425, 83, 3292, 4315, 376, 17, 60, 22, 3546, 1624, 21, 273, 276, 4413, 12, 60, 21, 16, 1139, 22, 16, 296, 81, 754, 543, 7771, 77, 2187, 293, 33, 23, 18, 28, 13, 1624, 22, 273, 276, 4413, 12, 60, 21, 16, 1139, 22, 16, 296, 3813, 67, 81, 754, 543, 7771, 77, 2187, 293, 33, 23, 18, 28, 13, 309, 3988, 405, 576, 30, 1172, 261, 61, 21, 17, 61, 22, 2934, 1896, 1435, 365, 18, 6870, 984, 2656, 12, 25850, 67, 3490, 12, 61, 21, 16, 1624, 22, 16, 7785, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 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, 18, 261, 84, 33, 23, 18, 28, 2225, 7785, 273, 404, 73, 17, 8642, 468, 968, 326, 501, 30, 326, 810, 3148, 471, 326, 2145, 876, 18, 1139, 21, 273, 425, 83, 3292, 4315, 376, 17, 60, 21, 3546, 1139, 22, 273, 425, 83, 3292, 4315, 376, 17, 60, 22, 3546, 1624, 21, 273, 276, 4413, 12, 60, 21, 16, 1139, 22, 16, 296, 81, 754, 543, 7771, 77, 2187, 293, 33, 23, 18, 28, 13, 1624, 22, 273, 276, 4413, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: 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, which must be specified if there is more than one independent variable in the equation. EXAMPLES: sage: t = var('t') sage: x = function('x', t) sage: y = function('y', t) sage: de1 = diff(x,t) + y - 1 == 0 sage: de2 = diff(y,t) - x + 1 == 0 sage: desolve_system([de1, de2], [x,y]) [x(t) == (x(0) - 1)*cos(t) - (y(0) - 1)*sin(t) + 1, y(t) == (x(0) - 1)*sin(t) + (y(0) - 1)*cos(t) + 1] Now we give some initial conditions: sage: sol = desolve_system([de1, de2], [x,y], ics=[0,1,2]); sol [x(t) == -sin(t) + 1, y(t) == cos(t) + 1] sage: solnx, solny = sol[0].rhs(), sol[1].rhs() sage: plot([solnx,solny],0,1) sage: parametric_plot((solnx,solny),0,1) AUTHOR: Robert Bradshaw (10-2008) """ ivars = set([]) for i, de in enumerate(des): if not is_SymbolicEquation(de): des[i] = de == 0 ivars = ivars.union(set(de.variables())) if ivar is None: ivars = ivars - set(vars) if len(ivars) != 1: raise ValueError, "Unable to determine independent variable, please specify." ivar = list(ivars)[0] dvars = [v._maxima_() for v in vars] if ics is not None: ivar_ic = ics[0] for dvar, ic in zip(dvars, ics[1:]): dvar.atvalue(ivar==ivar_ic, ic) soln = dvars[0].parent().desolve(des, dvars) if str(soln).strip() == 'false': raise NotImplementedError, "Maxima was unable to solve this system." soln = list(soln) for i, sol in enumerate(soln): soln[i] = sol.sage() if ics is not None: ivar_ic = ics[0] for dvar, ic in zip(dvars, ics[:1]): dvar.atvalue(ivar==ivar_ic, dvar) return soln
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, 13888, 18, 10188, 87, 4636, 854, 3129, 18, 225, 12943, 30, 2832, 282, 1493, 666, 434, 531, 1639, 87, 4153, 225, 1493, 666, 434, 10460, 3152, 277, 2143, 282, 1493, 261, 10444, 13, 666, 434, 2172, 924, 364, 277, 1401, 471, 4153, 277, 1401, 225, 1493, 261, 10444, 13, 326, 14807, 2190, 16, 1492, 1297, 506, 1269, 309, 1915, 353, 1898, 2353, 1245, 14807, 2190, 316, 326, 15778, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 268, 273, 569, 2668, 88, 6134, 272, 410, 30, 619, 273, 445, 2668, 92, 2187, 268, 13, 272, 410, 30, 677, 273, 445, 2668, 93, 2187, 268, 13, 272, 410, 30, 443, 21, 273, 3122, 12, 92, 16, 88, 13, 397, 677, 300, 404, 422, 374, 272, 410, 30, 443, 22, 273, 3122, 12, 93, 16, 88, 13, 300, 619, 397, 404, 422, 374, 272, 410, 30, 2832, 5390, 67, 4299, 3816, 323, 21, 16, 443, 22, 6487, 306, 92, 16, 93, 5717, 306, 92, 12, 88, 13, 422, 261, 92, 12, 20, 13, 300, 404, 17653, 14445, 12, 88, 13, 300, 261, 93, 12, 20, 13, 300, 404, 17653, 21861, 12, 88, 13, 397, 404, 16, 677, 12, 88, 13, 422, 261, 92, 12, 20, 13, 300, 404, 17653, 21861, 12, 88, 13, 397, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 13888, 18, 10188, 87, 4636, 854, 3129, 18, 225, 12943, 30, 2832, 282, 1493, 666, 434, 531, 1639, 87, 4153, 225, 1493, 666, 434, 10460, 3152, 277, 2143, 282, 1493, 261, 10444, 13, 666, 434, 2172, 924, 364, 277, 1401, 471, 4153, 277, 1401, 225, 1493, 261, 10444, 13, 326, 14807, 2190, 16, 1492, 1297, 506, 1269, 309, 1915, 353, 1898, 2353, 1245, 14807, 2190, 316, 326, 15778, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 268, 273, 569, 2668, 88, 6134, 272, 2 ]
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: return self.randomlist = [] if self.curr_img_in_list > 0: self.curr_img_in_list -= 1 else: if self.listwrap_mode == 0: return elif self.listwrap_mode == 1: self.curr_img_in_list = len(self.image_list) - 1 else: if self.fullscreen_mode == True: self.change_cursor(None) dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, _("You are viewing the first image in the list. Wrap around to the last image?")) dialog.set_title(_("Wrap?")) dialog.set_default_response(gtk.RESPONSE_YES) self.user_prompt_visible = True response = dialog.run() if response == gtk.RESPONSE_YES: self.curr_img_in_list = len(self.image_list)-1 dialog.destroy() self.user_prompt_visible = False if self.fullscreen_mode == True: self.hide_cursor else: dialog.destroy() self.user_prompt_visible = False if self.fullscreen_mode == True: self.hide_cursor if self.slideshow_mode == True: self.toggle_slideshow(None) return if self.fullscreen_mode == False and (self.slideshow_mode == False or (self.slideshow_mode == True and action != "ss")): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration() try: self.load_new_image(False, True, False, True, True) except: self.image_load_failed(True) self.set_go_navigation_sensitivities(False) if self.slideshow_mode == True: if self.curr_slideshow_random == True: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.goto_random_image, "ss") else: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.goto_next_image, "ss") self.preload_when_idle = gobject.idle_add(self.preload_prev_image, False) self.preload_when_idle2 = gobject.idle_add(self.preload_next_image, False)
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, 12542, 67, 10790, 13, 309, 562, 12, 2890, 18, 2730, 67, 1098, 13, 405, 404, 30, 775, 30, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 13, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 22, 13, 1335, 30, 1342, 3755, 273, 365, 18, 21996, 836, 67, 2730, 1435, 309, 3755, 422, 1053, 30, 327, 365, 18, 9188, 1098, 273, 5378, 309, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 405, 374, 30, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 3947, 404, 469, 30, 309, 365, 18, 1098, 4113, 67, 3188, 422, 374, 30, 327, 1327, 365, 18, 1098, 4113, 67, 3188, 422, 404, 30, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 273, 562, 12, 2890, 18, 2730, 67, 1098, 13, 300, 404, 469, 30, 309, 365, 18, 2854, 9252, 67, 3188, 422, 1053, 30, 365, 18, 3427, 67, 9216, 12, 7036, 13, 6176, 273, 22718, 18, 1079, 6353, 12, 2890, 18, 5668, 16, 22718, 18, 2565, 18683, 67, 6720, 1013, 571, 22718, 18, 2565, 18683, 67, 1639, 25870, 61, 67, 9147, 67, 14943, 16, 22718, 18, 8723, 67, 4740, 1146, 16, 22718, 18, 20068, 55, 67, 29081, 67, 3417, 16, 389, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 12542, 67, 10790, 13, 309, 562, 12, 2890, 18, 2730, 67, 1098, 13, 405, 404, 30, 775, 30, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 13, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 22, 13, 1335, 30, 1342, 3755, 273, 365, 18, 21996, 836, 67, 2730, 1435, 309, 3755, 422, 1053, 30, 327, 365, 18, 9188, 1098, 273, 5378, 309, 365, 18, 17016, 67, 6081, 67, 267, 2 ]
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, 3378, 273, 609, 12, 8688, 2934, 2079, 2932, 16, 15937, 1199, 13, 327, 284, 12, 73, 24428, 16082, 3378, 13, 1335, 261, 23610, 16, 19030, 16, 12586, 18, 1941, 2988, 4672, 1342, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 3378, 273, 609, 12, 8688, 2934, 2079, 2932, 16, 15937, 1199, 13, 327, 284, 12, 73, 24428, 16082, 3378, 13, 1335, 261, 23610, 16, 19030, 16, 12586, 18, 1941, 2988, 4672, 1342, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 2010, 30, 2902, 30, 2387, 30, 10578, 16194, 6, 5333, 82, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 2010, 30, 2902, 30, 2387, 30, 10578, 16194, 6, 5333, 82, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 2890, 16, 585, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 31722, 22643, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 31722, 22643, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 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 = datetime.datetime.now() if patchmode: data = run_scanner(command, address, proto, port, "-u " + quote_for_shell(savepath)) else: data = run_scanner(command, address, proto, port) save = tempfile.TemporaryFile(bufsize=-1) line_count = 0 line_count_patch = 0 for line in data.stdout: line_count += 1 if line[0] in ('+', '-', '*'): line_count_patch += 1 if line_count > max_lines_from_scanner: kill_process(data) data.stdout.close() data.wait() log("Scanning %s failed. Too many lines from scanner (elapsed time %s).", (hoststr, datetime.datetime.now() - start)) return save.write(line) if data.wait() != 0: # assume next_scan is far away from now and we do not have to # acquire lock on the shares table again cursor.execute(""" UPDATE shares SET next_scan = now() + %(w)s WHERE share_id = %(s)s; """, {'s':share_id, 'w': wait_until_next_scan_failed}) log("Scanning %s failed (elapsed time %s).", (hoststr, datetime.datetime.now() - start)) return 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) patchmode = False db.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED) scan_time = datetime.datetime.now() - start start = datetime.datetime.now() if tree_id is None: cursor.execute("INSERT INTO trees (share_id) VALUES (%(s)s) RETURNING tree_id", {'s':share_id}) tree_id = cursor.fetchone()['tree_id'] qcache = PsycoCache(cursor) paths_buffer = dict() save.seek(0) if patchmode: for line in save: if line[0] not in ('+', '-', '*'): break scan_line_patch(cursor, tree_id, line.strip('\n'), qcache, paths_buffer) else: cursor.execute("DELETE FROM paths WHERE tree_id = %(t)s", {'t':tree_id}) for line in save: if line[0] in ('+', '-', '*'): continue scan_line(cursor, tree_id, line.strip('\n'), qcache, paths_buffer) qcache.allcommit() try: save.seek(0) file = open(savepath, 'w') shutil.copyfileobj(save, file) file.close() except: log("Failed to save contents of %s to file %s.", (hoststr, savepath)) save.close() cursor.execute(""" UPDATE shares SET tree_id = %(t)s, last_scan = now() WHERE share_id = %(s)s; """, {'s': share_id, 't': tree_id}) if qcache.totalsize >= 0: cursor.execute(""" UPDATE shares SET size = %(sz)s WHERE share_id = %(s)s; """, {'s':share_id, 'sz': qcache.totalsize}) db.commit() if patchmode: deleted = qcache.stat_pdelete + qcache.stat_fdelete added = qcache.stat_padd + qcache.stat_fadd modified = qcache.stat_fmodify log("Scanning %s succeded. Database updated in patching mode: delete %s, add %s, modify %s (scan time %s, update time %s).", (hoststr, str(deleted), str(added), str(modified), scan_time, datetime.datetime.now() - start)) else: log("Scanning %s succeded. Database updated in non-patching mode (scan time %s, update time %s).", (hoststr, scan_time, datetime.datetime.now() - 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, 16, 1479, 16, 1756, 13, 1923, 803, 273, 7433, 67, 5688, 67, 803, 12, 9393, 16, 1479, 16, 1756, 13, 4729, 3188, 273, 2151, 67, 350, 480, 599, 471, 1140, 18, 803, 18, 291, 768, 12, 5688, 803, 13, 1758, 273, 2987, 18, 75, 546, 669, 1637, 529, 12, 2564, 13, 613, 2932, 1541, 10903, 738, 87, 6142, 87, 13, 1372, 3113, 261, 2564, 701, 16, 1758, 3719, 787, 273, 3314, 18, 6585, 18, 3338, 1435, 309, 4729, 3188, 30, 501, 273, 1086, 67, 26842, 12, 3076, 16, 1758, 16, 3760, 16, 1756, 16, 3701, 89, 315, 397, 3862, 67, 1884, 67, 10304, 12, 5688, 803, 3719, 469, 30, 501, 273, 1086, 67, 26842, 12, 3076, 16, 1758, 16, 3760, 16, 1756, 13, 1923, 273, 13275, 18, 23808, 12, 4385, 1467, 29711, 21, 13, 980, 67, 1883, 273, 374, 980, 67, 1883, 67, 2272, 273, 374, 364, 980, 316, 501, 18, 10283, 30, 980, 67, 1883, 1011, 404, 309, 980, 63, 20, 65, 316, 7707, 15, 2187, 2400, 2187, 5306, 4672, 980, 67, 1883, 67, 2272, 1011, 404, 309, 980, 67, 1883, 405, 943, 67, 3548, 67, 2080, 67, 26842, 30, 8673, 67, 2567, 12, 892, 13, 501, 18, 10283, 18, 4412, 1435, 501, 18, 7048, 1435, 613, 2932, 1541, 10903, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 16, 1479, 16, 1756, 13, 1923, 803, 273, 7433, 67, 5688, 67, 803, 12, 9393, 16, 1479, 16, 1756, 13, 4729, 3188, 273, 2151, 67, 350, 480, 599, 471, 1140, 18, 803, 18, 291, 768, 12, 5688, 803, 13, 1758, 273, 2987, 18, 75, 546, 669, 1637, 529, 12, 2564, 13, 613, 2932, 1541, 10903, 738, 87, 6142, 87, 13, 1372, 3113, 261, 2564, 701, 16, 1758, 3719, 787, 273, 3314, 18, 6585, 18, 3338, 1435, 309, 4729, 3188, 30, 501, 273, 1086, 2 ]
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(directory) start = os.getcwd() os.mkdir(directory) os.chdir(directory) uniqueLD = uniquePath(ldpath) if DEBUG: print 'Unique LD LIBRARY PATH is:' print uniqueLD sys.stdout.flush() ldlist = string.split(uniqueLD,':') if DEBUG: print '' print 'LD List is:' print ldlist print '' sys.stdout.flush() for path in ldlist: if os.path.exists(path): if DEBUG: print 'Searching for shared libraries in:' print path print '-----------------------------------------------' res = shellCall(0,'ls '+path+'/*.so*') if res['OK']: print res['Value'] else: print res print '-----------------------------------------------' output = shellCall(0,'ls '+path+'/*.so*') #must be tidied for Windows (same below) if DEBUG: if not output['OK']: print '**************************' print 'Warning, problem with ls:' print output print '**************************' if not output['Value'][0]: ldlibs = output['Value'][1].split('\n') for lib in ldlibs: if os.path.exists(lib): filename = os.path.basename(lib) output = shellCall(0,'ln -s '+str(lib)+' '+str(filename)) #N.B. for Windows this should be a copy... if DEBUG: if not output['OK']: print '********************************' print 'Warning, problem creating link:' print 'File: ',filename print 'Path: ',lib print output print '********************************' if DEBUG: print 'Searching for rootmap file in:' print path print '-----------------------------------------------' res = shellCall(0,'ls '+path+'/*rootmap*') if res['OK']: print res['Value'] else: print res print '-----------------------------------------------' output = shellCall(0,'ls '+path+'/*rootmap*') if DEBUG: if not output['OK']: print '**************************' print 'Warning, problem with rootmap:' print output print '**************************' if not output['Value'][0]: ldlibs = output['Value'][1].split('\n') for lib in ldlibs: if os.path.exists(lib): if re.search('RELAX',lib) is not None: filename = os.path.basename(lib) output = shellCall(0,'ln -s '+str(lib)+' '+str(filename)) if DEBUG: if not output['OK']: print '********************************' print 'Warning, problem creating link:' print 'File: ',filename print 'Path: ',lib print output print '********************************' os.chdir(start) sys.stdout.flush()
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, 628, 326, 2282, 28083, 67, 2053, 28254, 67, 4211, 854, 8459, 358, 326, 13760, 1269, 1867, 18, 225, 2457, 8202, 261, 464, 316, 7470, 13, 333, 4260, 2690, 1278, 15850, 1468, 475, 18, 3536, 225, 309, 1140, 18, 803, 18, 1808, 12, 5149, 4672, 11060, 18, 86, 17371, 12, 5149, 13, 225, 787, 273, 1140, 18, 588, 11089, 1435, 1140, 18, 26686, 12, 5149, 13, 1140, 18, 343, 1214, 12, 5149, 13, 3089, 12069, 273, 3089, 743, 12, 1236, 803, 13, 225, 309, 6369, 30, 1172, 296, 6303, 28083, 8961, 28254, 7767, 353, 2497, 1172, 3089, 12069, 2589, 18, 10283, 18, 11330, 1435, 225, 16916, 1098, 273, 533, 18, 4939, 12, 6270, 12069, 11189, 2497, 13, 309, 6369, 30, 1172, 875, 1172, 296, 12069, 987, 353, 2497, 1172, 16916, 1098, 1172, 875, 2589, 18, 10283, 18, 11330, 1435, 225, 364, 589, 316, 16916, 1098, 30, 309, 1140, 18, 803, 18, 1808, 12, 803, 4672, 225, 309, 6369, 30, 1172, 296, 2979, 310, 364, 5116, 14732, 316, 2497, 1172, 589, 1172, 296, 2443, 18753, 11, 400, 273, 5972, 1477, 12, 20, 11189, 3251, 15126, 803, 6797, 30987, 2048, 4035, 13, 309, 400, 3292, 3141, 3546, 30, 1172, 400, 3292, 620, 3546, 469, 30, 1172, 400, 1172, 296, 2443, 18753, 11, 225, 876, 273, 5972, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 628, 326, 2282, 28083, 67, 2053, 28254, 67, 4211, 854, 8459, 358, 326, 13760, 1269, 1867, 18, 225, 2457, 8202, 261, 464, 316, 7470, 13, 333, 4260, 2690, 1278, 15850, 1468, 475, 18, 3536, 225, 309, 1140, 18, 803, 18, 1808, 12, 5149, 4672, 11060, 18, 86, 17371, 12, 5149, 13, 225, 787, 273, 1140, 18, 588, 11089, 1435, 1140, 18, 26686, 12, 5149, 13, 1140, 18, 343, 1214, 12, 5149, 13, 3089, 12069, 273, 3089, 743, 12, 1236, 803, 13, 225, 309, 6369, 30, 2 ]
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 = a if not debug: try: import psyco psyco.full() except ImportError: pass if file_out: fd_out = open(file_out, 'w') else: fd_out = sys.stdout errh = pyx12.error_handler.errh_null() if len(args) > 0: file_in = args[0] if not os.path.isfile(file_in): sys.stderr.write('File %s was not found' % (file_in)) else: file_in = '-' src = pyx12.x12file.x12file(file_in, errh) for seg_data in src: if fix: if seg_data.get_seg_id() == 'IEA' and errh.err_cde == '021': seg_data.set('IEA01', src.gs_count) elif seg_data.get_seg_id() == 'GE' and errh.err_cde == '5': seg_data.set('GE01', src.st_count) elif seg_data.get_seg_id() == 'SE' and errh.err_cde == '4': seg_data.set('SE01', src.seg_count) elif seg_data.get_seg_id() == 'HL' and errh.err_cde == 'HL1': seg_data.set('HL01', src.hl_count) fd_out.write(seg_data.format() + eol) if eol == '': fd_out.write('\n') return True
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, 1435, 327, 1083, 1198, 273, 1083, 14775, 273, 875, 585, 67, 659, 273, 599, 2917, 273, 1083, 364, 320, 16, 279, 316, 1500, 30, 309, 320, 422, 2400, 76, 4278, 4084, 1435, 327, 1053, 309, 320, 422, 2400, 72, 4278, 1198, 273, 1053, 309, 320, 422, 2400, 73, 4278, 14775, 273, 2337, 82, 11, 309, 320, 422, 2400, 74, 4278, 2917, 273, 1053, 309, 320, 422, 2400, 83, 4278, 585, 67, 659, 273, 279, 225, 309, 486, 1198, 30, 775, 30, 1930, 4250, 93, 2894, 4250, 93, 2894, 18, 2854, 1435, 1335, 11308, 30, 1342, 225, 309, 585, 67, 659, 30, 5194, 67, 659, 273, 1696, 12, 768, 67, 659, 16, 296, 91, 6134, 469, 30, 5194, 67, 659, 273, 225, 2589, 18, 10283, 393, 76, 273, 2395, 92, 2138, 18, 1636, 67, 4176, 18, 370, 76, 67, 2011, 1435, 309, 562, 12, 1968, 13, 405, 374, 30, 585, 67, 267, 273, 833, 63, 20, 65, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 768, 67, 267, 4672, 2589, 18, 11241, 18, 2626, 2668, 812, 738, 87, 1703, 486, 1392, 11, 738, 261, 768, 67, 267, 3719, 469, 30, 585, 67, 267, 273, 4014, 1705, 273, 2395, 92, 2138, 18, 92, 2138, 768, 18, 92, 2138, 768, 12, 768, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 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, 1435, 327, 1083, 1198, 273, 1083, 14775, 273, 875, 585, 67, 659, 273, 599, 2917, 273, 1083, 364, 320, 16, 279, 316, 1500, 30, 309, 320, 422, 2400, 76, 4278, 4084, 1435, 327, 1053, 309, 320, 422, 2400, 72, 4278, 1198, 273, 1053, 309, 320, 422, 2400, 73, 4278, 14775, 273, 2337, 82, 11, 309, 320, 422, 2400, 74, 4278, 2917, 273, 1053, 309, 320, 422, 2400, 83, 4278, 585, 67, 659, 273, 279, 225, 309, 486, 1198, 30, 775, 30, 1930, 2 ]
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 the public version of the page. @param private: The output stream for the private version of the page. @param container: The module or class that contains the functions. C{container} is used to group the functions. @param functions: The functions that should be included in the section. """ # Filter out functions that we have no docs for; these are just # listed in the summary table. docmap = self._docmap functions = [f for f in functions if docmap.has_key(f.target())] if container.uid().is_class(): # Filter out inherited methods (their details docs are # listed under the class that defines them): functions = [f for f in functions if f.target().cls() == container.uid()]
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, 353, 1399, 635, 511, 95, 67, 2626, 67, 2978, 97, 358, 6401, 326, 4186, 316, 279, 1605, 31, 471, 635, 511, 95, 67, 2626, 67, 1106, 97, 358, 6401, 326, 2590, 316, 279, 667, 18, 632, 891, 1071, 30, 1021, 876, 1407, 364, 326, 1071, 1177, 434, 326, 1363, 18, 632, 891, 3238, 30, 1021, 876, 1407, 364, 326, 3238, 1177, 434, 326, 1363, 18, 632, 891, 1478, 30, 1021, 1605, 578, 667, 716, 1914, 326, 4186, 18, 225, 385, 95, 3782, 97, 353, 1399, 358, 1041, 326, 4186, 18, 632, 891, 4186, 30, 1021, 4186, 716, 1410, 506, 5849, 316, 326, 2442, 18, 3536, 468, 4008, 596, 4186, 716, 732, 1240, 1158, 3270, 364, 31, 4259, 854, 2537, 468, 12889, 316, 326, 4916, 1014, 18, 997, 1458, 273, 365, 6315, 2434, 1458, 4186, 273, 306, 74, 364, 284, 316, 4186, 309, 997, 1458, 18, 5332, 67, 856, 12, 74, 18, 3299, 10756, 65, 225, 309, 1478, 18, 1911, 7675, 291, 67, 1106, 13332, 468, 4008, 596, 12078, 2590, 261, 5787, 481, 3189, 3270, 854, 468, 12889, 3613, 326, 667, 716, 11164, 2182, 4672, 4186, 273, 306, 74, 364, 284, 316, 4186, 309, 284, 18, 3299, 7675, 6429, 1435, 422, 1478, 18, 1911, 1435, 65, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 353, 1399, 635, 511, 95, 67, 2626, 67, 2978, 97, 358, 6401, 326, 4186, 316, 279, 1605, 31, 471, 635, 511, 95, 67, 2626, 67, 1106, 97, 358, 6401, 326, 2590, 316, 279, 667, 18, 632, 891, 1071, 30, 1021, 876, 1407, 364, 326, 1071, 1177, 434, 326, 1363, 18, 632, 891, 3238, 30, 1021, 876, 1407, 364, 326, 3238, 1177, 434, 326, 1363, 18, 632, 891, 1478, 30, 1021, 1605, 578, 667, 716, 1914, 326, 4186, 18, 225, 385, 95, 3782, 97, 2 ]
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.requestClient.setRequest(name,request)
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, 1435, 3292, 620, 3546, 327, 365, 18, 2293, 1227, 18, 542, 691, 12, 529, 16, 2293, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 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, 1435, 3292, 620, 3546, 327, 365, 18, 2293, 1227, 18, 542, 691, 12, 529, 16, 2293, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, debug=debug, xargs=xargs, use_exec = True)
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, 365, 6315, 92, 1968, 1876, 2829, 2932, 3083, 305, 94, 3113, 8247, 17, 60, 11023, 16010, 49, 6, 5717, 1172, 315, 13212, 833, 6, 2811, 305, 94, 67, 11930, 273, 1140, 18, 803, 18, 5701, 2932, 2941, 15937, 3567, 15937, 3083, 305, 94, 18, 11930, 7923, 1296, 273, 675, 15, 9614, 17, 11930, 3113, 3083, 305, 94, 67, 11930, 3737, 2767, 1172, 1296, 8068, 2439, 18, 6290, 18, 2681, 12, 3076, 16, 1198, 33, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 365, 6315, 92, 1968, 1876, 2829, 2932, 3083, 305, 94, 3113, 8247, 17, 60, 11023, 16010, 49, 6, 5717, 1172, 315, 13212, 833, 6, 2811, 305, 94, 67, 11930, 273, 1140, 18, 803, 18, 5701, 2932, 2941, 15937, 3567, 15937, 3083, 305, 94, 18, 11930, 7923, 1296, 273, 675, 15, 9614, 17, 11930, 3113, 3083, 305, 94, 67, 11930, 3737, 2767, 1172, 1296, 8068, 2439, 18, 6290, 18, 2681, 12, 3076, 16, 1198, 33, 4148, 16, 619, 1968, 33, 92, 1968, 16, 2 ]
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]) if common_prefix == pwd: # File is relative to cwd - strip off cwd and return return str(filename).replace(common_prefix,'',1).lstrip(os.sep) else: # File is not relative to cwd - return as is return 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, 11089, 13, 1508, 333, 445, 1135, 326, 3632, 589, 358, 7239, 18, 5272, 518, 1135, 296, 3459, 11, 12123, 14720, 273, 1140, 18, 588, 11089, 1435, 2975, 67, 3239, 273, 1140, 18, 803, 18, 6054, 3239, 3816, 27487, 16, 3459, 5717, 309, 2975, 67, 3239, 422, 14720, 30, 468, 1387, 353, 3632, 358, 7239, 300, 2569, 3397, 7239, 471, 327, 327, 609, 12, 3459, 2934, 2079, 12, 6054, 67, 3239, 11189, 2187, 21, 2934, 80, 6406, 12, 538, 18, 10814, 13, 469, 30, 468, 1387, 353, 486, 3632, 358, 7239, 300, 327, 487, 353, 327, 1544, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 11089, 13, 1508, 333, 445, 1135, 326, 3632, 589, 358, 7239, 18, 5272, 518, 1135, 296, 3459, 11, 12123, 14720, 273, 1140, 18, 588, 11089, 1435, 2975, 67, 3239, 273, 1140, 18, 803, 18, 6054, 3239, 3816, 27487, 16, 3459, 5717, 309, 2975, 67, 3239, 422, 14720, 30, 468, 1387, 353, 3632, 358, 7239, 300, 2569, 3397, 7239, 471, 327, 327, 609, 12, 3459, 2934, 2079, 12, 6054, 67, 3239, 11189, 2187, 21, 2934, 80, 6406, 12, 538, 18, 10814, 13, 469, 30, 468, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 309, 486, 1570, 67, 311, 30, 1570, 67, 311, 273, 5658, 1304, 18, 10283, 2668, 329, 75, 17, 21722, 1376, 336, 1441, 6134, 309, 486, 1570, 67, 311, 30, 1570, 67, 311, 273, 5658, 1304, 18, 10283, 2668, 7043, 1137, 17, 21722, 1376, 336, 1441, 6134, 327, 5658, 1304, 18, 6406, 67, 869, 67, 6102, 12, 10488, 67, 311, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 309, 486, 1570, 67, 311, 30, 1570, 67, 311, 273, 5658, 1304, 18, 10283, 2668, 329, 75, 17, 21722, 1376, 336, 1441, 6134, 309, 486, 1570, 67, 311, 30, 1570, 67, 311, 273, 5658, 1304, 18, 10283, 2668, 7043, 1137, 17, 21722, 1376, 336, 1441, 6134, 327, 5658, 1304, 18, 6406, 67, 869, 67, 6102, 12, 10488, 67, 311, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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.parentId, state.zoneIdList) self._considerRemoveInterest(handle) for event in eventsToSend: messenger.send(event)
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( "handleInterestDoneMessage--> Received handle %s, context %s" % ( handle, contextId)) eventsToSend = [] # if the context matches, send out the event if contextId == DoInterestManager._interests[handle].context: DoInterestManager._interests[handle].context = NO_CONTEXT # the event handlers may call back into the interest manager. Send out # the events after we're once again in a stable state. #DoInterestManager._interests[handle].sendEvents() eventsToSend = list(DoInterestManager._interests[handle].getEvents()) DoInterestManager._interests[handle].clearEvents() else: 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.parentId, state.zoneIdList) self._considerRemoveInterest(handle) for event in eventsToSend: messenger.send(event) # if there are no more outstanding interest-completes, send out global all-done event if self._completeEventCount.num == 0: self.queueAllInterestsCompleteEvent() assert self.printInterestsIfDebug()
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, 273, 4314, 18, 588, 5487, 2313, 1435, 819, 548, 273, 4314, 18, 588, 5487, 1578, 1435, 309, 365, 16186, 11369, 13332, 1172, 296, 5093, 2866, 9125, 11027, 18, 2761, 395, 7387, 12, 4110, 5095, 87, 2506, 738, 1640, 2256, 29281, 1318, 18, 12336, 18, 4148, 12, 315, 4110, 29281, 7387, 1079, 413, 34, 21066, 1640, 738, 87, 16, 819, 738, 87, 6, 738, 261, 1640, 16, 819, 548, 3719, 2641, 28878, 273, 5378, 468, 309, 326, 819, 1885, 16, 1366, 596, 326, 871, 309, 819, 548, 422, 2256, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 2472, 30, 2256, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 2472, 273, 3741, 67, 13181, 468, 326, 871, 4919, 2026, 745, 1473, 1368, 326, 16513, 3301, 18, 2479, 596, 468, 326, 2641, 1839, 732, 4565, 3647, 3382, 316, 279, 14114, 919, 18, 468, 3244, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 4661, 3783, 1435, 2641, 28878, 273, 666, 12, 3244, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 588, 3783, 10756, 2256, 29281, 1318, 6315, 2761, 25563, 63, 4110, 8009, 8507, 3783, 1435, 469, 30, 2256, 29281, 1318, 18, 12336, 18, 8551, 12, 315, 4110, 29281, 7387, 1079, 30, 1640, 486, 1392, 30, 738, 87, 6, 738, 261, 4110, 3719, 468, 309, 1915, 854, 1158, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 273, 4314, 18, 588, 5487, 2313, 1435, 819, 548, 273, 4314, 18, 588, 5487, 1578, 1435, 309, 365, 16186, 11369, 13332, 1172, 296, 5093, 2866, 9125, 11027, 18, 2761, 395, 7387, 12, 4110, 5095, 87, 2506, 738, 1640, 2256, 29281, 1318, 18, 12336, 18, 4148, 12, 315, 4110, 29281, 7387, 1079, 413, 34, 21066, 1640, 738, 87, 16, 819, 738, 87, 6, 738, 261, 1640, 16, 819, 548, 3719, 2641, 28878, 273, 5378, 468, 309, 326, 819, 1885, 16, 1366, 596, 326, 871, 309, 819, 2 ]
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, bodyStream, newStyle = False, minHeaderLen = 2): """Create a new Packet""" typeDispatcher = cls.PacketDispatcherClass klass = typeDispatcher.getClass(tag) pkt = klass(bodyStream, newStyle = newStyle, minHeaderLen = minHeaderLen) if not hasattr(pkt, 'tag'): pkt.setTag(tag) pkt._msgClass = cls return pkt
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.getKeyFingerprint().endswith(keyId.upper()): # This is a subkey, return the main key return pkt.getMainKey()
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, 12, 5465, 88, 16, 21222, 67, 6376, 653, 4672, 309, 11536, 18, 588, 653, 17678, 7675, 5839, 1918, 12, 856, 548, 18, 5797, 1435, 4672, 468, 1220, 353, 279, 2774, 498, 471, 518, 711, 326, 30914, 732, 1608, 327, 11536, 1327, 1549, 12, 5465, 88, 16, 21222, 67, 1676, 653, 4672, 309, 11536, 18, 588, 653, 17678, 7675, 5839, 1918, 12, 856, 548, 18, 5797, 1435, 4672, 468, 1220, 353, 279, 21949, 16, 327, 326, 2774, 498, 327, 11536, 18, 588, 6376, 653, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 12, 5465, 88, 16, 21222, 67, 6376, 653, 4672, 309, 11536, 18, 588, 653, 17678, 7675, 5839, 1918, 12, 856, 548, 18, 5797, 1435, 4672, 468, 1220, 353, 279, 2774, 498, 471, 518, 711, 326, 30914, 732, 1608, 327, 11536, 1327, 1549, 12, 5465, 88, 16, 21222, 67, 1676, 653, 4672, 309, 11536, 18, 588, 653, 17678, 7675, 5839, 1918, 12, 856, 548, 18, 5797, 1435, 4672, 468, 1220, 353, 279, 21949, 16, 327, 326, 2774, 498, 327, 11536, 18, 588, 6376, 653, 1435, 2 ]
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 == keys.Up: self.move('MoveUp') elif pressed == keys.Down: self.move('MoveDown')
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.keysyms.Up: self.move('MoveUp') elif event.keyval == gtk.keysyms.Down: self.move('MoveDown') else: return False return True def key_press_event_cb_after(self, win, event): if event.keyval == gtk.keysyms.KP_Add: self.zoom('ZoomIn') elif event.keyval == gtk.keysyms.KP_Subtract: self.zoom('ZoomOut') else: return False return True
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 == keys.Right: self.move('MoveRight') elif pressed == keys.Up: self.move('MoveUp') elif pressed == keys.Down: self.move('MoveDown')
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, 959, 309, 871, 18, 2019, 422, 374, 30, 468, 1158, 10429, 309, 19504, 422, 1311, 18, 47, 52, 67, 986, 30, 365, 18, 14932, 2668, 11497, 382, 6134, 1327, 19504, 422, 1311, 18, 47, 52, 67, 27904, 30, 365, 18, 14932, 2668, 11497, 1182, 6134, 1327, 19504, 422, 1311, 18, 3910, 30, 365, 18, 8501, 2668, 7607, 3910, 6134, 1327, 19504, 422, 1311, 18, 4726, 30, 365, 18, 8501, 2668, 7607, 4726, 6134, 1327, 19504, 422, 1311, 18, 1211, 30, 365, 18, 8501, 2668, 7607, 1211, 6134, 1327, 19504, 422, 1311, 18, 4164, 30, 365, 18, 8501, 2668, 7607, 4164, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 959, 309, 871, 18, 2019, 422, 374, 30, 468, 1158, 10429, 309, 19504, 422, 1311, 18, 47, 52, 67, 986, 30, 365, 18, 14932, 2668, 11497, 382, 6134, 1327, 19504, 422, 1311, 18, 47, 52, 67, 27904, 30, 365, 18, 14932, 2668, 11497, 1182, 6134, 1327, 19504, 422, 1311, 18, 3910, 30, 365, 18, 8501, 2668, 7607, 3910, 6134, 1327, 19504, 422, 1311, 18, 4726, 30, 365, 18, 8501, 2668, 7607, 4726, 6134, 1327, 19504, 422, 1311, 18, 1211, 30, 365, 18, 2 ]
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 (0 = new) fileId -- id of the output 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, 3895, 18, 225, 13599, 30, 225, 3709, 548, 1493, 326, 3709, 612, 316, 2063, 3968, 1493, 326, 876, 5384, 585, 508, 13845, 1493, 326, 1719, 508, 225, 2000, 30, 225, 791, 1493, 791, 1300, 434, 326, 585, 261, 20, 273, 394, 13, 21223, 1493, 612, 434, 326, 876, 585, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3895, 18, 225, 13599, 30, 225, 3709, 548, 1493, 326, 3709, 612, 316, 2063, 3968, 1493, 326, 876, 5384, 585, 508, 13845, 1493, 326, 1719, 508, 225, 2000, 30, 225, 791, 1493, 791, 1300, 434, 326, 585, 261, 20, 273, 394, 13, 21223, 1493, 612, 434, 326, 876, 585, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 67, 19237, 19, 2890, 18, 12033, 3215, 22, 19237, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 67, 19237, 19, 2890, 18, 12033, 3215, 22, 19237, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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), 'XXX'), # now: (nan, nan) ((inf, nan), (0, nan), 'XXX'), # now: (nan, nan) ((nan, 1.), (nan, nan), ''), ((nan, inf), (+0, pi/2), 'XXX'), # now: (nan, nan) ((nan, nan), (nan, nan), ''), ]: yield self._check, np.arctanh, p, v, e
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, 12990, 6468, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 21, 12990, 374, 18, 3631, 261, 10625, 16, 374, 18, 3631, 296, 15639, 12326, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 21, 12990, 8286, 3631, 261, 10625, 16, 374, 18, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 21, 12990, 6468, 3631, 261, 13569, 16, 6468, 3631, 296, 5387, 17, 10444, 19899, 14015, 10625, 16, 404, 18, 3631, 261, 20, 12990, 4790, 19, 22, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 10625, 16, 8286, 3631, 261, 20, 16, 4790, 19, 22, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 10625, 16, 6468, 3631, 261, 20, 16, 6468, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 13569, 16, 404, 18, 3631, 261, 13569, 16, 6468, 3631, 875, 3631, 14015, 13569, 16, 8286, 3631, 261, 15, 20, 16, 4790, 19, 22, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 13569, 16, 6468, 3631, 261, 13569, 16, 6468, 3631, 875, 3631, 308, 30, 2824, 365, 6315, 1893, 16, 1130, 18, 297, 299, 304, 76, 16, 293, 16, 331, 16, 425, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 12990, 6468, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 21, 12990, 374, 18, 3631, 261, 10625, 16, 374, 18, 3631, 296, 15639, 12326, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 21, 12990, 8286, 3631, 261, 10625, 16, 374, 18, 3631, 296, 15639, 19899, 468, 2037, 30, 261, 13569, 16, 6468, 13, 14015, 21, 12990, 6468, 3631, 261, 13569, 16, 6468, 3631, 296, 5387, 17, 10444, 19899, 14015, 10625, 16, 404, 18, 3631, 261, 20, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, 5463, 1390, 358, 326, 3159, 1867, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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17492, 518, 326, 5463, 87, 358, 326, 3434, 1634, 1655, 471, 3637, 16, 364, 791, 16, 471, 3635, 326, 5463, 1390, 358, 326, 3159, 1867, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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: return GROUP_MEMBER_DIRECT_URL % (domain, member_id, self._Bool2Str(direct_only)) else: return GROUP_MEMBER_URL % (domain, member_id) if start_key != '': return GROUP_START_URL % (domain, start_key) return BASE_URL % (domain) if service_type == 'member': if member_id != '' and is_existed: return MEMBER_ID_URL % (domain, group_id, member_id) if start_key != '': return MEMBER_START_URL % (domain, group_id, start_key) return MEMBER_URL % (domain, group_id) if service_type == 'owner': if owner_email != '' and is_existed: return OWNER_ID_URL % (domain, group_id, owner_email) return OWNER_URL % (domain, group_id)
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, 2461, 33, 7036, 4672, 309, 2461, 353, 599, 30, 2461, 273, 365, 18, 4308, 309, 1156, 67, 723, 422, 296, 1655, 4278, 309, 1041, 67, 350, 480, 875, 471, 353, 67, 7398, 329, 30, 327, 13839, 67, 734, 67, 1785, 738, 261, 4308, 16, 1041, 67, 350, 13, 309, 3140, 67, 350, 480, 875, 30, 309, 2657, 67, 3700, 353, 486, 599, 30, 327, 13839, 67, 19630, 67, 17541, 67, 1785, 738, 261, 4308, 16, 3140, 67, 350, 16, 365, 6315, 7464, 22, 1585, 12, 7205, 67, 3700, 3719, 469, 30, 327, 13839, 67, 19630, 67, 1785, 738, 261, 4308, 16, 3140, 67, 350, 13, 309, 787, 67, 856, 480, 875, 30, 327, 13839, 67, 7570, 67, 1785, 738, 261, 4308, 16, 787, 67, 856, 13, 327, 10250, 67, 1785, 738, 261, 4308, 13, 309, 1156, 67, 723, 422, 296, 5990, 4278, 309, 3140, 67, 350, 480, 875, 471, 353, 67, 7398, 329, 30, 327, 18990, 6271, 67, 734, 67, 1785, 738, 261, 4308, 16, 1041, 67, 350, 16, 3140, 67, 350, 13, 309, 787, 67, 856, 480, 875, 30, 327, 18990, 6271, 67, 7570, 67, 1785, 738, 261, 4308, 16, 1041, 67, 350, 16, 787, 67, 856, 13, 327, 18990, 6271, 67, 1785, 738, 261, 4308, 16, 1041, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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, 2461, 33, 7036, 4672, 309, 2461, 353, 599, 30, 2461, 273, 365, 18, 4308, 309, 1156, 67, 723, 422, 296, 1655, 4278, 309, 1041, 67, 350, 480, 875, 471, 353, 67, 7398, 329, 30, 327, 13839, 67, 734, 67, 1785, 738, 261, 4308, 16, 1041, 67, 350, 13, 309, 3140, 67, 350, 480, 875, 30, 309, 2657, 67, 3700, 353, 486, 599, 30, 327, 13839, 67, 19630, 67, 17541, 67, 1785, 738, 261, 4308, 16, 3140, 67, 350, 16, 365, 6315, 2 ]
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, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 364, 498, 16, 460, 316, 1677, 18, 3319, 13332, 14221, 18, 16985, 6426, 1499, 4217, 12, 856, 16, 2298, 12, 1132, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 364, 498, 16, 460, 316, 1677, 18, 3319, 13332, 14221, 18, 16985, 6426, 1499, 4217, 12, 856, 16, 2298, 12, 1132, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if 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, 17023, 712, 67, 869, 3546, 4672, 309, 1950, 3292, 2696, 67, 792, 67, 9810, 3546, 411, 374, 30, 327, 1083, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 17023, 712, 67, 869, 3546, 4672, 309, 1950, 3292, 2696, 67, 792, 67, 9810, 3546, 411, 374, 30, 327, 1083, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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 to a user's Last.fm library.""" if isinstance(artist, Artist): artist = artist.getName() params = self._getParams() params['artist'] = artist _Request(self, 'library.addArtist', self.api_key, params, True, self.secret).execute() def addTrack(self, track): """Add a track to a user's Last.fm library.""" params = self._getParams() params['artist'] = track.getArtistName() params['track'] = track.getTitle() _Request(self, 'library.addTrack', self.api_key, params, True, self.secret).execute() class Playlist(_BaseObject):
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 range(1, self.getTracksPageCount() +1): stack = self.getTracks(page = i) for track in stack: if track._hash() == track_object._hash(): return self._tracks_tagcounts[track._hash()]
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, 1279, 17526, 1525, 813, 2934, 380, 3298, 67, 1612, 294, 1021, 11065, 358, 1104, 18, 3536, 225, 498, 273, 3298, 67, 1612, 6315, 2816, 1435, 309, 498, 316, 365, 6315, 21499, 67, 2692, 8008, 18, 2452, 13332, 327, 365, 6315, 21499, 67, 2692, 8008, 63, 856, 65, 225, 364, 277, 316, 1048, 12, 21, 16, 365, 18, 588, 22138, 1964, 1380, 1435, 397, 21, 4672, 2110, 273, 365, 18, 588, 22138, 12, 2433, 273, 277, 13, 225, 364, 3298, 316, 2110, 30, 309, 3298, 6315, 2816, 1435, 422, 3298, 67, 1612, 6315, 2816, 13332, 327, 365, 6315, 21499, 67, 2692, 8008, 63, 4101, 6315, 2816, 1435, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 1279, 17526, 1525, 813, 2934, 380, 3298, 67, 1612, 294, 1021, 11065, 358, 1104, 18, 3536, 225, 498, 273, 3298, 67, 1612, 6315, 2816, 1435, 309, 498, 316, 365, 6315, 21499, 67, 2692, 8008, 18, 2452, 13332, 327, 365, 6315, 21499, 67, 2692, 8008, 63, 856, 65, 225, 364, 277, 316, 1048, 12, 21, 16, 365, 18, 588, 22138, 1964, 1380, 1435, 397, 21, 4672, 2110, 273, 365, 18, 588, 22138, 12, 2433, 273, 277, 13, 225, 364, 3298, 316, 2110, 30, 309, 3298, 6315, 2 ]
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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\n%s\n%s\n\n" % (get_usk_hash(usk), usk, '\n'.join(usk_entry)))
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.\n') else: trust_map = stored_cfg.fmsread_trust_map.copy() # paranoid copy if params['VERBOSITY'] >= 2: fms_ids = trust_map.keys() fms_ids.sort() ui_.status(("Only listing repo USKs from trusted " + "fms IDs:\n%s\n\n") % '\n'.join(fms_ids)) 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\n%s\n%s\n\n" % (get_usk_hash(usk), usk, '\n'.join(usk_entry))) return True
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, 480, 296, 1098, 11, 471, 859, 3292, 42, 3537, 6949, 3546, 480, 296, 1098, 454, 4278, 327, 1083, 225, 309, 859, 3292, 42, 3537, 6949, 3546, 422, 296, 1098, 454, 4278, 2082, 273, 587, 11129, 23137, 475, 2678, 1435, 309, 859, 3292, 2204, 25400, 3546, 1545, 576, 30, 5915, 27799, 2327, 2668, 19081, 777, 3538, 587, 11129, 87, 8403, 82, 6134, 469, 30, 10267, 67, 1458, 273, 4041, 67, 7066, 18, 74, 959, 896, 67, 21879, 67, 1458, 18, 3530, 1435, 468, 779, 304, 839, 1610, 309, 859, 3292, 2204, 25400, 3546, 1545, 576, 30, 284, 959, 67, 2232, 273, 10267, 67, 1458, 18, 2452, 1435, 284, 959, 67, 2232, 18, 3804, 1435, 5915, 27799, 2327, 12, 2932, 3386, 11591, 3538, 587, 11129, 87, 628, 13179, 315, 397, 315, 74, 959, 7115, 5581, 82, 9, 87, 64, 82, 64, 82, 7923, 738, 2337, 82, 10332, 5701, 12, 74, 959, 67, 2232, 3719, 2082, 273, 587, 11129, 23137, 475, 2678, 12, 21879, 67, 1458, 13, 225, 10665, 67, 27439, 12, 22601, 67, 7066, 18, 7606, 3292, 42, 3537, 67, 8908, 17337, 4041, 67, 7066, 18, 7606, 3292, 42, 3537, 67, 6354, 17337, 2082, 16, 4041, 67, 7066, 18, 74, 959, 896, 67, 4650, 13, 225, 309, 562, 12, 4288, 18, 407, 7904, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 480, 296, 1098, 11, 471, 859, 3292, 42, 3537, 6949, 3546, 480, 296, 1098, 454, 4278, 327, 1083, 225, 309, 859, 3292, 42, 3537, 6949, 3546, 422, 296, 1098, 454, 4278, 2082, 273, 587, 11129, 23137, 475, 2678, 1435, 309, 859, 3292, 2204, 25400, 3546, 1545, 576, 30, 5915, 27799, 2327, 2668, 19081, 777, 3538, 587, 11129, 87, 8403, 82, 6134, 469, 30, 10267, 67, 1458, 273, 4041, 67, 7066, 18, 74, 959, 896, 67, 21879, 67, 1458, 18, 3530, 1435, 468, 779, 2 ]
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, 17, 3368, 7923, 1316, 67, 1650, 1546, 768, 14334, 397, 1140, 18, 803, 18, 5113, 803, 12, 11574, 18, 3445, 43, 67, 4537, 13, 397, 2206, 5111, 538, 17, 12506, 17, 1578, 92, 1578, 18, 6446, 6, 290, 273, 293, 878, 352, 1164, 18, 4386, 12, 389, 2932, 56, 14445, 2346, 8131, 7923, 269, 1234, 16, 1316, 67, 1650, 262, 290, 18, 542, 67, 295, 75, 2075, 12, 295, 75, 2075, 13, 290, 18, 542, 67, 4743, 2932, 5964, 7923, 290, 18, 542, 67, 4538, 12, 3600, 3784, 13, 468, 4711, 1428, 309, 486, 290, 18, 4500, 13332, 1172, 67, 4148, 225, 7566, 4500, 67, 9927, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 17, 3368, 7923, 1316, 67, 1650, 1546, 768, 14334, 397, 1140, 18, 803, 18, 5113, 803, 12, 11574, 18, 3445, 43, 67, 4537, 13, 397, 2206, 5111, 538, 17, 12506, 17, 1578, 92, 1578, 18, 6446, 6, 290, 273, 293, 878, 352, 1164, 18, 4386, 12, 389, 2932, 56, 14445, 2346, 8131, 7923, 269, 1234, 16, 1316, 67, 1650, 262, 290, 18, 542, 67, 295, 75, 2075, 12, 295, 75, 2075, 13, 290, 18, 542, 67, 4743, 2932, 5964, 7923, 290, 18, 542, 2 ]
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, 22998, 16, 1515, 13, 1335, 1068, 30, 1324, 364, 9109, 316, 7566, 12586, 67, 1153, 3113, 315, 451, 24810, 67, 10814, 6, 4672, 365, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 22998, 16, 1515, 13, 1335, 1068, 30, 1324, 364, 9109, 316, 7566, 12586, 67, 1153, 3113, 315, 451, 24810, 67, 10814, 6, 4672, 365, 18, 5246, 67, 1078, 387, 2668, 3729, 17181, 90, 2187, 1191, 17181, 90, 1435, 63, 17704, 6487, 9109, 16, 1515, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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_error)
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, 1376, 3292, 5387, 3546, 818, 67, 5387, 273, 562, 12, 5387, 13, 309, 770, 1545, 818, 67, 5387, 30, 770, 273, 818, 67, 5387, 300, 404, 327, 261, 5387, 63, 1615, 6487, 315, 79, 2279, 668, 3113, 365, 18, 7043, 67, 1636, 13, 327, 7566, 6062, 3589, 21, 6062, 3113, 315, 79, 2279, 668, 3113, 365, 18, 7043, 67, 1636, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 1376, 3292, 5387, 3546, 818, 67, 5387, 273, 562, 12, 5387, 13, 309, 770, 1545, 818, 67, 5387, 30, 770, 273, 818, 67, 5387, 300, 404, 327, 261, 5387, 63, 1615, 6487, 315, 79, 2279, 668, 3113, 365, 18, 7043, 67, 1636, 13, 327, 7566, 6062, 3589, 21, 6062, 3113, 315, 79, 2279, 668, 3113, 365, 18, 7043, 67, 1636, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 20093, 16, 314, 334, 18, 7998, 67, 52, 7868, 1360, 4672, 365, 6315, 16508, 12, 7572, 13, 365, 18, 9274, 18, 20177, 12, 2890, 6315, 265, 67, 2019, 67, 6703, 67, 350, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 334, 18, 7998, 67, 52, 7868, 1360, 4672, 365, 6315, 16508, 12, 7572, 13, 365, 18, 9274, 18, 20177, 12, 2890, 6315, 265, 67, 2019, 67, 6703, 67, 350, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""".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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 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, 6923, 12, 6429, 6315, 4071, 6315, 3584, 67, 2640, 4572, 1388, 3997, 12, 5701, 3719, 327, 2337, 82, 10332, 5701, 12, 4669, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 6923, 12, 6429, 6315, 4071, 6315, 3584, 67, 2640, 4572, 1388, 3997, 12, 5701, 3719, 327, 2337, 82, 10332, 5701, 12, 4669, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 740, 67, 1098, 273, 306, 2139, 65, 364, 1151, 316, 3869, 12, 2139, 16, 296, 18093, 2187, 5378, 4672, 740, 67, 1098, 18, 14313, 12, 2890, 6315, 3510, 67, 3624, 67, 803, 12, 3624, 16, 9711, 3719, 327, 740, 67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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 740, 67, 1098, 273, 306, 2139, 65, 364, 1151, 316, 3869, 12, 2139, 16, 296, 18093, 2187, 5378, 4672, 740, 67, 1098, 18, 14313, 12, 2890, 6315, 3510, 67, 3624, 67, 803, 12, 3624, 16, 9711, 3719, 327, 740, 67, 1098, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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, 6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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 67, 3001, 11, 4672, 327, 276, 471, 276, 316, 365, 6315, 84, 6315, 3567, 18, 91, 545, 67, 4036, 67, 3001, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
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:]) else: options[i] = '%s [%s]' % (option, hotkey)
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, 63, 77, 65, 12811, 856, 273, 12811, 2452, 63, 77, 65, 312, 273, 283, 18, 3072, 2668, 14451, 87, 9, 87, 3864, 738, 261, 15224, 856, 18, 8167, 9334, 12811, 856, 18, 5797, 1435, 3631, 1456, 13, 309, 312, 30, 949, 273, 312, 18, 1937, 1435, 702, 63, 77, 65, 273, 1995, 87, 14451, 87, 65, 9, 87, 11, 738, 261, 3482, 10531, 917, 6487, 1456, 63, 917, 6487, 1456, 63, 917, 15, 21, 30, 5717, 469, 30, 702, 63, 77, 65, 273, 1995, 87, 9799, 87, 3864, 738, 261, 3482, 16, 12811, 856, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 63, 77, 65, 12811, 856, 273, 12811, 2452, 63, 77, 65, 312, 273, 283, 18, 3072, 2668, 14451, 87, 9, 87, 3864, 738, 261, 15224, 856, 18, 8167, 9334, 12811, 856, 18, 5797, 1435, 3631, 1456, 13, 309, 312, 30, 949, 273, 312, 18, 1937, 1435, 702, 63, 77, 65, 273, 1995, 87, 14451, 87, 65, 9, 87, 11, 738, 261, 3482, 10531, 917, 6487, 1456, 63, 917, 6487, 1456, 63, 917, 15, 21, 30, 5717, 469, 30, 702, 63, 77, 65, 273, 1995, 2 ]
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(dx, -self.left) if dy > 0: dy = min(dx, self.bottom - self.h) else: dy = max(dx, -self.top) if self.state in (DRAG_TL, DRAG_T, DRAG_TR, DRAG_C): new_top = self.top + dy if self.state in (DRAG_TL, DRAG_L, DRAG_BL, DRAG_C): new_left = self.left + dx if self.state in (DRAG_TR, DRAG_R, DRAG_BR, DRAG_C): new_right = self.right + dx if self.state in (DRAG_BL, DRAG_B, DRAG_BR, DRAG_C): new_bottom = self.bottom + dy # A drag never moves left past right and so on new_top = min(self.bottom, new_top) new_left = min(self.right, new_left) new_right = max(self.left, new_right) new_bottom = max(self.top, new_bottom)
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, 93, 20, 273, 871, 18, 93, 394, 67, 3669, 16, 394, 67, 4482, 16, 394, 67, 4083, 16, 394, 67, 9176, 273, 521, 365, 18, 3669, 16, 365, 18, 4482, 16, 365, 18, 4083, 16, 365, 18, 9176, 309, 365, 18, 2019, 422, 16801, 1781, 67, 39, 30, 468, 432, 4617, 8823, 324, 23868, 1368, 326, 5231, 309, 6633, 405, 374, 30, 6633, 273, 1131, 12, 13437, 16, 365, 18, 4083, 300, 365, 18, 91, 13, 469, 30, 6633, 273, 943, 12, 13437, 16, 300, 2890, 18, 4482, 13, 309, 7732, 405, 374, 30, 7732, 273, 1131, 12, 15680, 16, 365, 18, 76, 300, 365, 18, 9176, 300, 404, 13, 469, 30, 7732, 273, 943, 12, 13437, 16, 300, 2890, 18, 3669, 13, 309, 365, 18, 2019, 316, 261, 6331, 1781, 67, 5967, 16, 16801, 1781, 67, 56, 16, 16801, 1781, 67, 4349, 16, 16801, 1781, 67, 39, 4672, 394, 67, 3669, 273, 365, 18, 3669, 397, 7732, 309, 365, 18, 2019, 316, 261, 6331, 1781, 67, 5967, 16, 16801, 1781, 67, 48, 16, 16801, 1781, 67, 14618, 16, 16801, 1781, 67, 39, 4672, 394, 67, 4482, 273, 365, 18, 4482, 397, 6633, 309, 365, 18, 2019, 316, 261, 6331, 1781, 67, 4349, 16, 16801, 1781, 67, 54, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 93, 20, 273, 871, 18, 93, 394, 67, 3669, 16, 394, 67, 4482, 16, 394, 67, 4083, 16, 394, 67, 9176, 273, 521, 365, 18, 3669, 16, 365, 18, 4482, 16, 365, 18, 4083, 16, 365, 18, 9176, 309, 365, 18, 2019, 422, 16801, 1781, 67, 39, 30, 468, 432, 4617, 8823, 324, 23868, 1368, 326, 5231, 309, 6633, 405, 374, 30, 6633, 273, 1131, 12, 13437, 16, 365, 18, 4083, 300, 365, 18, 91, 13, 469, 30, 6633, 273, 2 ]
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(self.com_assign(nodelist[i], OP_ASSIGN)) n = Assign(nodes, exprNode) n.lineno = nodelist[1][2] else: lval = self.com_augassign(nodelist[0]) op = self.com_augassign_op(nodelist[1]) n = AugAssign(lval, op[1], exprNode) n.lineno = op[2] return n
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, 67, 2159, 12, 275, 21433, 275, 63, 21, 30, 5717, 309, 562, 12, 82, 24221, 13, 422, 404, 30, 290, 273, 21643, 12, 8638, 907, 13, 290, 18, 17782, 273, 3065, 907, 18, 17782, 327, 290, 309, 30068, 63, 21, 6362, 20, 65, 422, 1147, 18, 12853, 30, 2199, 273, 5378, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 82, 24221, 13, 300, 576, 16, 576, 4672, 2199, 80, 18, 6923, 12, 2890, 18, 832, 67, 6145, 12, 82, 24221, 63, 77, 6487, 7247, 67, 23289, 3719, 290, 273, 12093, 12, 4690, 80, 16, 3065, 907, 13, 290, 18, 17782, 273, 30068, 63, 21, 6362, 22, 65, 469, 30, 328, 1125, 273, 365, 18, 832, 67, 6480, 6145, 12, 82, 24221, 63, 20, 5717, 1061, 273, 365, 18, 832, 67, 6480, 6145, 67, 556, 12, 82, 24221, 63, 21, 5717, 290, 273, 432, 637, 4910, 12, 80, 1125, 16, 1061, 63, 21, 6487, 3065, 907, 13, 290, 18, 17782, 273, 1061, 63, 22, 65, 327, 290, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 67, 2159, 12, 275, 21433, 275, 63, 21, 30, 5717, 309, 562, 12, 82, 24221, 13, 422, 404, 30, 290, 273, 21643, 12, 8638, 907, 13, 290, 18, 17782, 273, 3065, 907, 18, 17782, 327, 290, 309, 30068, 63, 21, 6362, 20, 65, 422, 1147, 18, 12853, 30, 2199, 273, 5378, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 82, 24221, 13, 300, 576, 16, 576, 4672, 2199, 80, 18, 6923, 12, 2890, 18, 832, 67, 6145, 12, 82, 24221, 63, 77, 6487, 7247, 2 ]