rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if res:
if res:
def onSuccess(result): if type(result) == dict and "faultCode" in result: self.logger.warning('Imaging: While processing result for %s : %s' % (MACAddress, result['faultTraceback'])) return False try: if result[0]: self.myUUIDCache.set(result[1]['uuid'], MACAddress, result[1]['shortname'], result[1]['fqdn']) self.logger.info('Imaging: Updating cache for %s' % (MACAddress)) return result[1] else: return False except Exception, e: self.logger.warning('Imaging: While processing result %s for %s : %s' % (result, MACAddress, e))
9243f98ba17d3c22702ab69f4700cc04c9ed9c91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/9243f98ba17d3c22702ab69f4700cc04c9ed9c91/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20613, 12, 2088, 4672, 309, 618, 12, 2088, 13, 422, 2065, 471, 315, 643, 1085, 6, 316, 563, 30, 365, 18, 4901, 18, 8551, 2668, 1170, 5755, 30, 21572, 4929, 563, 364, 738, 87, 294, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20613, 12, 2088, 4672, 309, 618, 12, 2088, 13, 422, 2065, 471, 315, 643, 1085, 6, 316, 563, 30, 365, 18, 4901, 18, 8551, 2668, 1170, 5755, 30, 21572, 4929, 563, 364, 738, 87, 294, 73...
print "len:", cantdata
def server(evt): serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) serv.settimeout(3) serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) serv.bind(("", 9093)) serv.listen(5) try: conn, addr = serv.accept() conn.send("1 Hola mundo\n") cantdata = 0 while cantdata < 13: print "len:", cantdata data = conn.recv(13-cantdata) cantdata += len(data) conn.send("2 No more lines\n") conn.close() except socket.timeout: pass finally: serv.close() evt.set()
10a865efe0f8d1aac32c1fb87ce2fe92475fef61 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/10a865efe0f8d1aac32c1fb87ce2fe92475fef61/test_urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 12, 73, 11734, 4672, 13515, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 13515, 18, 542, 4538, 12, 23, 13, 13515, 18, 4424, 27844,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 12, 73, 11734, 4672, 13515, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 13515, 18, 542, 4538, 12, 23, 13, 13515, 18, 4424, 27844,...
(self.imageWidth, self.imageHeight) = self._img.getSize()
img = self._img if img: self.imageWidth, self.imageHeight = img.getSize()
def _setup_inner(self): width = self._width height = self._height kind = self._kind (self.imageWidth, self.imageHeight) = self._img.getSize() if self._lazy>=2: del self._img if kind in ['direct','absolute']: self.drawWidth = width or self.imageWidth self.drawHeight = height or self.imageHeight elif kind in ['percentage','%']: self.drawWidth = self.imageWidth*width*0.01 self.drawHeight = self.imageHeight*height*0.01 elif kind in ['bound','proportional']: factor = min(float(width)/self.imageWidth,float(height)/self.imageHeight) self.drawWidth = self.imageWidth*factor self.drawHeight = self.imageHeight*factor
a629ef0836e01b3b76eac570c0a5221b4436b1e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/a629ef0836e01b3b76eac570c0a5221b4436b1e6/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 7872, 12, 2890, 4672, 1835, 273, 365, 6315, 2819, 2072, 273, 365, 6315, 4210, 3846, 273, 365, 6315, 9224, 3774, 273, 365, 6315, 6081, 309, 3774, 30, 365, 18, 2730, 2384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8401, 67, 7872, 12, 2890, 4672, 1835, 273, 365, 6315, 2819, 2072, 273, 365, 6315, 4210, 3846, 273, 365, 6315, 9224, 3774, 273, 365, 6315, 6081, 309, 3774, 30, 365, 18, 2730, 2384, ...
m.kind = name
m.kind = name[:-5]
def makeMarker(name): if Marker._attrMap['kind'].validate(name): m = Marker() m.kind = name elif Flag._attrMap['kind'].validate(name): m = Flag() m.kind = name m.size = 10 else: raise ValueError, "Invalid marker name %s" % name return m
a77c0498a33204c6e4648a002751383ee882429f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a77c0498a33204c6e4648a002751383ee882429f/markers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 7078, 12, 529, 4672, 309, 14742, 6315, 1747, 863, 3292, 9224, 29489, 5662, 12, 529, 4672, 312, 273, 14742, 1435, 312, 18, 9224, 273, 508, 10531, 17, 25, 65, 1327, 9960, 6315, 1747,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 7078, 12, 529, 4672, 309, 14742, 6315, 1747, 863, 3292, 9224, 29489, 5662, 12, 529, 4672, 312, 273, 14742, 1435, 312, 18, 9224, 273, 508, 10531, 17, 25, 65, 1327, 9960, 6315, 1747,...
self.assertEqual(unicode('+3ADYAA-', 'utf-7', 'replace'), u'\ufffd') self.assertRaises(UnicodeDecodeError, '+\xc1'.decode, 'utf-7')
self.assertEqual(unicode('+3ADYAA-', 'utf-7', 'replace'), u'\ufffd\ufffd') set_d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'(),-./:?" set_o = '!" for c in set_d: self.assertEqual(c.encode('utf7'), c.encode('ascii')) self.assertEqual(c.encode('ascii').decode('utf7'), c) for c in set_o: self.assertEqual(c.encode('ascii').decode('utf7'), c)
def test_codecs_utf7(self): utfTests = [ (u'A\u2262\u0391.', 'A+ImIDkQ.'), # RFC2152 example (u'Hi Mom -\u263a-!', 'Hi Mom -+Jjo--!'), # RFC2152 example (u'\u65E5\u672C\u8A9E', '+ZeVnLIqe-'), # RFC2152 example (u'Item 3 is \u00a31.', 'Item 3 is +AKM-1.'), # RFC2152 example (u'+', '+-'), (u'+-', '+--'), (u'+?', '+-?'), (u'\?', '+AFw?'), (u'+?', '+-?'), (ur'\\?', '+AFwAXA?'), (ur'\\\?', '+AFwAXABc?'), (ur'++--', '+-+---') ]
653dece278ca0e836651de290aaf22335dd476b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/653dece278ca0e836651de290aaf22335dd476b0/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 710, 2143, 67, 3158, 27, 12, 2890, 4672, 7718, 14650, 273, 306, 261, 89, 11, 37, 64, 89, 3787, 8898, 64, 89, 4630, 12416, 1093, 16, 296, 37, 15, 1170, 734, 79, 53, 1093, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 710, 2143, 67, 3158, 27, 12, 2890, 4672, 7718, 14650, 273, 306, 261, 89, 11, 37, 64, 89, 3787, 8898, 64, 89, 4630, 12416, 1093, 16, 296, 37, 15, 1170, 734, 79, 53, 1093, ...
for name, label in strings.items(): id = 'menuitem-%s' % name.replace('_', '-') frontend.jsBridge.updateLabel(id, label)
def onSelectedTabChange(self, strings, actionGroups, guideURL, videoFilename): app.controller.setGuideURL(guideURL) if videoFilename is not None: frontend.jsBridge.updateVideoFilename(os.path.basename(videoFilename)) else: frontend.jsBridge.updateVideoFilename('') frontend.currentVideoPath = videoFilename for group, enabled in actionGroups.items(): frontend.jsBridge.setActionGroupEnabled(group, enabled) for name, label in strings.items(): id = 'menuitem-%s' % name.replace('_', '-') frontend.jsBridge.updateLabel(id, label)
361de5c737651687b7aefc36a73aa2a67b47f027 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/361de5c737651687b7aefc36a73aa2a67b47f027/MainFrame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 7416, 5661, 3043, 12, 2890, 16, 2064, 16, 1301, 3621, 16, 7343, 1785, 16, 6191, 5359, 4672, 595, 18, 5723, 18, 542, 17424, 1785, 12, 12118, 1785, 13, 309, 6191, 5359, 353, 486, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 7416, 5661, 3043, 12, 2890, 16, 2064, 16, 1301, 3621, 16, 7343, 1785, 16, 6191, 5359, 4672, 595, 18, 5723, 18, 542, 17424, 1785, 12, 12118, 1785, 13, 309, 6191, 5359, 353, 486, 59...
0.9092974
0.90929741
def function_call(self, function, args=None, kwds=None): """ Calls the Lisp function with given args and kwds. For Lisp functions, the kwds are ignored.
b632467e5ca0a0b91320f57f8c4c3d90b498427e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/b632467e5ca0a0b91320f57f8c4c3d90b498427e/lisp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 445, 67, 1991, 12, 2890, 16, 445, 16, 833, 33, 7036, 16, 17149, 33, 7036, 4672, 3536, 23665, 326, 511, 23831, 445, 598, 864, 833, 471, 17149, 18, 2457, 511, 23831, 4186, 16, 326, 17149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 445, 67, 1991, 12, 2890, 16, 445, 16, 833, 33, 7036, 16, 17149, 33, 7036, 4672, 3536, 23665, 326, 511, 23831, 445, 598, 864, 833, 471, 17149, 18, 2457, 511, 23831, 4186, 16, 326, 17149...
lostUnits
lostUnits, Full_coi, COMM_CATEGORY_CODE, COMM_CODE, PCKKCODE, ALLCODE, QUALITY
def write_receipt_waybill_compas(self,waybill_id): db = cx_Oracle.Connection(u'TESTJERX001/TESTJERX001@//10.11.216.4:1521/JERX001') cursor = db.cursor()#connections['compas'].cursor() self.ErrorMessages = '' self.ErrorCodes = '' the_waybill = Waybill.objects.get(id=waybill_id) lineItems = the_waybill.loadingdetail_set.select_related() WB_CODE = the_waybill.waybillNumber receiverPerson = EpicPerson.objects.get(person_pk = the_waybill.recipientName) recPersonOUC = receiverPerson.org_unit_code recPersonCode = receiverPerson.code arrival_date = the_waybill.recipientArrivalDate all_ok = True ## check if containers = 2 & lines = 2 twoCont = False if lineItems.count() == 2: if len(the_waybill.containerTwoNumber) > 0: twoCont = True codeLetter = u'A' db.begin() for lineItem in lineItems: CURR_CODE=unicode(datetime.datetime.now().strftime('%y') +WB_CODE) if twoCont: CURR_CODE = unicode(datetime.datetime.now().strftime('%y') + codeLetter + WB_CODE) codeLetter = u'B' goodUnits = lineItem.numberUnitsGood damadgedUnits =lineItem.numberUnitsDamaged damadgedReason = lineItem.unitsDamagedReason.compasCode lostUnits =lineItem.numberUnitsLost lossReason = lineItem.unitsLostReason.compasCode Response_Message = cursor.var(cx_Oracle.STRING) Response_Message.setvalue(0,u' '*200) Response_Code = cursor.var(cx_Oracle.STRING) Response_Code.setvalue(0,u' '*2) Full_coi= TheStockItems[0].origin_id
fd2d935abe7610a5b62b8224fdcc7e805967c5bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/fd2d935abe7610a5b62b8224fdcc7e805967c5bc/compas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 8606, 8138, 67, 1888, 17240, 67, 2919, 345, 12, 2890, 16, 1888, 17240, 67, 350, 4672, 1319, 273, 9494, 67, 23601, 18, 1952, 12, 89, 11, 16961, 46, 654, 60, 11664, 19, 16961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 67, 8606, 8138, 67, 1888, 17240, 67, 2919, 345, 12, 2890, 16, 1888, 17240, 67, 350, 4672, 1319, 273, 9494, 67, 23601, 18, 1952, 12, 89, 11, 16961, 46, 654, 60, 11664, 19, 16961, ...
print "TSFT cannot be read"
print >> sys.stderr, "TSFT cannot be read"
def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print "Insufficient command line arguments " print " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print " Exiting ........." sys.exit(1) try: config = __import__(sys.argv[1]); except: print "Cannot import Config file '",sys.argv[1],"' exiting ...." sys.exit(1) UniqueID = '' # Compute Unique ID Number if(len(sys.argv) >= 3): UniqueID += '_' + sys.argv[2] # Variables Structure/Dictionary Vars = {} # SFT time baseline try: Vars['TSFT'] = config.TSFT except: print "TSFT cannot be read" sys.exit(1) # Strength of signal try: Vars['h0'] = config.h0 except: print "h0 cannot be read" sys.exit(1) # Cosine of iota try: Vars['cosi'] = config.cosi except: try: Vars['cosi'] = random.uniform(config.cosi_min,config.cosi_max) except: print "Cannot read in cosi variable" sys.exit(1) if(math.fabs(Vars['cosi']) > 1): print "abs(cosi) > 1 !!!" sys.exit(1) # Initial Phase try: Vars['phi0'] = config.phi0 except: try: Vars['phi0'] = random.uniform(config.phi0_min,config.phi0_max) except: print "Cannot read in phi0 variable" sys.exit(1) # Polarization Angle try: Vars['psi'] = config.psi except: try: Vars['psi'] = random.uniform(config.psi_min,config.psi_max) except: print "Cannot read in psi variable" sys.exit(1) # Number of Dirichlet terms used. try: Vars['Dterms'] = float(config.Dterms) except: print "Dterms cannot be read" sys.exit(1) # Interferometer try: IFOs = config.IFOs IFOs = IFOs.split(' ') NumofIFOs = len(IFOs) Vars['NumofIFOs'] = NumofIFOs Vars['IFO'] = [] for i in range(NumofIFOs): Vars['IFO'].append(IFOs[i]) except: print "IFO cannot be read" sys.exit(1) # Start Time try: t0 = config.t0 t0 = t0.split(' ') if(len(t0) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['t0'] = [] for i in range(NumofIFOs): Vars['t0'].append(float(t0[i])) except: print "t0 cannot be read" sys.exit(1) # Reference Time in SSB try: Vars['refTime'] = float(config.refTime) refString = ' --refTime ' + str(Vars['refTime']) except: refString = ' ' # Output Directory try: Vars['Out'] = config.Out + UniqueID except: print "Out cannot be read" sys.exit(1) # Ephemeris Directory try: Vars['Ephem'] = config.Ephem except: print "Ephem cannot be read" sys.exit(1) # Ephemeris Year try: Vars['EphemYear'] = config.EphemYear except: print "EphemYear cannot be read" sys.exit(1) # Noise Sh try: Vars['Sh'] = float(config.Sh) except: print "Sh cannot be read" sys.exit(1) # Duration of Analysis try: TSpan = config.TSpan TSpan = TSpan.split(' ') if(len(TSpan) != NumofIFOs): print "Number of TSpans != Number of IFOs" sys.exit(1) Vars['TSpan'] = [] for i in range(NumofIFOs): Vars['TSpan'].append(float(TSpan[i])) except: print "TSpan cannot be read" sys.exit(1) # Number of SFTs to add try: NumSFTs = config.NumSFTs NumSFTs = NumSFTs.split(' ') if(len(NumSFTs) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumSFTs'] = [] for i in range(NumofIFOs): Vars['NumSFTs'].append(int(NumSFTs[i])) except: print "NumSFTs cannot be read" sys.exit(1) # Number of Gaps to add try: NumGaps = config.NumGaps NumGaps = NumGaps.split(' ') if(len(NumGaps) != NumofIFOs): print "Number of starttimes != Number of IFOs" sys.exit(1) Vars['NumGaps'] = [] for i in range(NumofIFOs): Vars['NumGaps'].append(int(NumGaps[i])) except: print "NumGaps cannot be read" sys.exit(1) # Alpha (Right Ascension) try: Vars['Alpha'] = config.Alpha except: try: Vars['Alpha'] = random.uniform(config.Alpha_min,config.Alpha_max) except: print "Cannot read in Alpha variable" sys.exit(1) if(Vars['Alpha'] < 0 or Vars['Alpha'] > 2.0*math.pi): print "Alpha out of bounds !!!" sys.exit(1) # Delta (Declination) try: Vars['Delta'] = config.Delta except: try: Vars['Delta'] = random.uniform(config.Delta_min,config.Delta_max) except: print "Cannot read in Delta variable" sys.exit(1) if(math.fabs(Vars['Delta']) > math.pi/2.0): print "abs(Delta) > pi/2 !!!" sys.exit(1) # Minimum Frequency try: Vars['Fmin'] = config.Fmin except: print "Fmin cannot be read" sys.exit(1) # Band of Analysis try: Vars['Band'] = config.Band except: print "Band cannot be read" sys.exit(1) # Injection Frequency try: Vars['Finj'] = config.Finj except: try: Vars['Finj'] = random.uniform(config.Finj_min,config.Finj_max) except: print "Cannot read in Finj variable" sys.exit(1) if(Vars['Finj'] < 0): print "Finj < 0 !!!" sys.exit(1) # Spindown/ FDOT try: Vars['FDot'] = config.FDot except: try: Vars['FDot'] = random.uniform(config.FDot_min,config.FDot_max) except: print "Cannot read in FDot variable" sys.exit(1) # FDOTBand try: Vars['FDotBand'] = config.FDotBand except: Vars['FDotBand'] = 0 #print "Cannot read in FDot variable" #sys.exit(1) # dFDot try: Vars['dFDot'] = config.dFDot except: Vars['dFDot'] = 10 # Resolution try: Vars['Res'] = config.Res if(Vars['Res'] > 1.0/Vars['TSpan'][0]): print "Resolution too low, set to 1/T" Vars['Res'] = 1.0/Vars['TSpan'][0] if(Vars['Res'] < 0): print "Resolution < 0" sys.exit(1) except: Vars['Res'] = 1.0/Vars['TSpan'][0] current = 0 for i in range(NumofIFOs): if(Vars['TSpan'][i] > Vars['TSpan'][current]): current = i Vars['Res'] = 1.0/Vars['TSpan'][i] # Debug Check try: Vars['debug'] = config.debug except: Vars['debug'] = 1.0 # F Threshold try: Vars['FThres'] = config.FThres except: Vars['FThres'] = 0 # Optional Output Variable from Resamp try: Vars['ResampOutput'] = config.ResampOutput except: Vars['ResampOutput'] = "MyTS" # Optional Use Your Own TimeStampsFile try: Vars['TimeStampsFile'] = config.TimeStampsFile TimeStampsFile_Is_Set = True except: Vars['TimeStampsFile'] = 'TimeStampsFile' + UniqueID TimeStampsFile_Is_Set = False # Print out all the variables (if Debug is on) if(Vars['debug']): print "---------- Configuration Variables --------- " PrintValues(Vars) print "-------------------------------------------- \n \n" # Create the Time Stamp File if(not(TimeStampsFile_Is_Set)): CreateTimeStampFile(Vars,UniqueID) # If running multiple time, delete all the old SFTs if(os.path.exists("./"+Vars['Out'])): try: shutil.rmtree(Vars['Out']) except: print "Could not delete old directory\n" sys.exit(1) try: os.mkdir(Vars['Out']) except: print "Something went wrong creating new directory\n" print "Permission trouble maybe\n" sys.exit(1) # Generate Fake data string for ifo in range(NumofIFOs): FakeDataString = GenFakeDataString(1,Vars,ifo,UniqueID,refString) if(Vars['debug']): print "----------- Makefakedata String ------------" print FakeDataString print "--------------------------------------------\n\n" # Generate the data try: G = commands.getoutput(FakeDataString) os.remove("timestampsFile"+Vars['IFO'][ifo]+UniqueID) except: print "Tried to generate SFTs, failed" sys.exit(1) # Run v2() OutputFileVLoudest = "OutputVLoudest" + UniqueID OutputFileVFstat = "OutputVFstat" + UniqueID startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " " endstring = " " + refString V2DataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "----------- V2 String ------------" print V2DataString print "----------------------------------\n\n" print "----------- Running V2 -----------" (status,Voutput) = commands.getstatusoutput(V2DataString) if(status): print "V2 failed, Output was \n\n" print Voutput sys.exit(1) if(Vars['debug']): print "---------- V2 Done ---------------\n\n" # Run Resamp ResampLocation = "/home/ppatel/lalsuite/lalapps/src/pulsar/FDS_isolated/ResamplingFstat/" OutputFileRLoudest = "OutputRLoudest" + UniqueID OutputFileRFstat = "OutputRFstat" + UniqueID startstring = ResampLocation + "lalapps_ComputeFStatistic_resamp --outputFstat " + OutputFileRFstat + " --outputLoudest " + OutputFileRLoudest+ " -F " + str(Vars['FThres']) + " " endstring = " " + refString RDataString = GenDataString(startstring,endstring,Vars) if(Vars['debug']): print "-------- Resamp String -----------" print RDataString print "----------------------------------\n\n" print "--------- Running Resamp ---------" (status,Routput) = commands.getstatusoutput(RDataString) if(status): print "Resamp failed, Output was\n\n" print Routput sys.exit(0) if(Vars['debug']): print "---------- Resamp Done -----------\n\n" if(Vars['debug']): print "---------- Deleting SFT Folder ---------\n\n" try: shutil.rmtree(Vars['Out']) except: print " Could not delete SFT folder \n\n" sys.exit(1) FreqOutput = AnalyzeFreq(OutputFileRFstat,OutputFileVFstat,Vars['Finj'],Vars['Res']) LoudestOutput = AnalyzeLoudest(OutputFileRLoudest,OutputFileVLoudest) os.remove(OutputFileRLoudest) os.remove(OutputFileVLoudest) #os.remove(OutputFileRFstat) #os.remove(OutputFileVFstat) print FreqOutput,LoudestOutput return(0)
9f242671e9d0d7238a0ede41c485e14209156b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9f242671e9d0d7238a0ede41c485e14209156b6b/multiresamp_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 315, 5048, 11339, 1296, 980,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 315, 5048, 11339, 1296, 980,...
return HEADER_SIZE + (max_block+1) * self.sector_size
else: return HEADER_SIZE + (max_block+1) * self.sector_size
def createContentSize(self): max_block = -1 for fat in self.array("bbfat"): for entry in fat: block = entry.value if 0 < block: max_block = max(block, max_block) if max_block < 0: return None return HEADER_SIZE + (max_block+1) * self.sector_size
2a6ddc4a37c6f267f96bd90dd03c7762f903e2f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/2a6ddc4a37c6f267f96bd90dd03c7762f903e2f2/ole2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 1350, 1225, 12, 2890, 4672, 943, 67, 2629, 273, 300, 21, 364, 284, 270, 316, 365, 18, 1126, 2932, 9897, 74, 270, 6, 4672, 364, 1241, 316, 284, 270, 30, 1203, 273, 1241, 18, 1132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 1350, 1225, 12, 2890, 4672, 943, 67, 2629, 273, 300, 21, 364, 284, 270, 316, 365, 18, 1126, 2932, 9897, 74, 270, 6, 4672, 364, 1241, 316, 284, 270, 30, 1203, 273, 1241, 18, 1132...
self.only_registered = tf2bool(row[2]) self.only_admin = tf2bool(row[3]) self.only_sysadmin = tf2bool(row[4])
self.only_dynamic = tf2bool(row[2]) self.only_registered = tf2bool(row[3]) self.only_admin = tf2bool(row[4]) self.only_sysadmin = tf2bool(row[5]) self.dynamic_count = int(db.read_value('SELECT COUNT(*) FROM page WHERE only_dynamic'))
def load(self, row): self.code = trim(row[0]) self.sort_order = safeint(row[1]) self.only_registered = tf2bool(row[2]) self.only_admin = tf2bool(row[3]) self.only_sysadmin = tf2bool(row[4]) self.registered_count = int(db.read_value('SELECT COUNT(*) FROM page WHERE only_registered or only_admin or only_sysadmin')) self.admin_count = int(db.read_value('SELECT COUNT(*) FROM page WHERE only_admin or only_sysadmin')) self.sysadmin_count = int(db.read_value('SELECT COUNT(*) FROM page WHERE only_sysadmin')) sql = "SELECT lang, section_name FROM section_i18n WHERE section_code=" + wsq(self.code) cursor = db.select(sql) while (1): row = cursor.fetchone() if row==None: break lang = row[0] self.name[lang] = trim(row[1])
076b15b1c97d57e9f42e83a3568b1d2350396f3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/076b15b1c97d57e9f42e83a3568b1d2350396f3e/WebLayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 16, 1027, 4672, 365, 18, 710, 1082, 1377, 273, 2209, 12, 492, 63, 20, 5717, 365, 18, 3804, 67, 1019, 4202, 273, 4183, 474, 12, 492, 63, 21, 5717, 365, 18, 3700, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 16, 1027, 4672, 365, 18, 710, 1082, 1377, 273, 2209, 12, 492, 63, 20, 5717, 365, 18, 3804, 67, 1019, 4202, 273, 4183, 474, 12, 492, 63, 21, 5717, 365, 18, 3700, 67, ...
parent.job().get_pegasus_exec_dir(), dax_basename + '_0') )
parent.job().get_pegasus_exec_dir(), dax_basename + '_0.cache') )
def recurse_pfn_cache(node,caches=[]): for parent in node._CondorDAGNode__parents: if isinstance(parent.job(), CondorDAGManJob): if parent.job().get_dax() is None: pass else: caches = recurse_pfn_cache(parent,caches) dax_name = os.path.basename(parent.job().get_dax()) dax_basename = '.'.join(dax_name.split('.')[0:-1]) caches.append( os.path.join( parent.job().get_pegasus_exec_dir(), dax_basename + '_0') ) return caches
444df41c387b572f8d1af98af9fe7770169ad36d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/444df41c387b572f8d1af98af9fe7770169ad36d/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11502, 67, 84, 4293, 67, 2493, 12, 2159, 16, 17703, 281, 33, 8526, 4672, 364, 982, 316, 756, 6315, 12441, 280, 40, 1781, 907, 972, 12606, 30, 309, 1549, 12, 2938, 18, 4688, 9334, 735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11502, 67, 84, 4293, 67, 2493, 12, 2159, 16, 17703, 281, 33, 8526, 4672, 364, 982, 316, 756, 6315, 12441, 280, 40, 1781, 907, 972, 12606, 30, 309, 1549, 12, 2938, 18, 4688, 9334, 735, ...
}, -2)
}, -2)
def __init__(self, session): Screen.__init__(self, session) HelpableScreen.__init__(self) self.backupNameserverList = iNetwork.getNameserverList()[:] print "backup-list:", self.backupNameserverList self["ButtonGreentext"] = Label(_("Add")) self["ButtonYellowtext"] = Label(_("Delete")) self["ButtonRedtext"] = Label(_("Close")) self["introduction"] = Label(_("Press OK to activate the settings.")) self.createConfig() self["OkCancelActions"] = HelpableActionMap(self, "OkCancelActions", { "cancel": (self.cancel, _("exit nameserver configuration")), "ok": (self.ok, _("activate current configuration")), }) self["ColorActions"] = HelpableActionMap(self, "ColorActions", { "red": (self.cancel, _("exit nameserver configuration")), "green": (self.add, _("add a nameserver entry")), "yellow": (self.remove, _("remove a nameserver entry")), }) self["actions"] = NumberActionMap(["SetupActions"], { "ok": self.ok, }, -2) self.list = [] ConfigListScreen.__init__(self, self.list) self.createSetup()
18dcac668d46858377cc8c1ac55fc72fa62ecc0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/18dcac668d46858377cc8c1ac55fc72fa62ecc0e/NetworkSetup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 11288, 429, 7956, 16186, 2738, 972, 12, 2890, 13, 365, 18, 9572, 1557, 12330, 682, 273, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 11288, 429, 7956, 16186, 2738, 972, 12, 2890, 13, 365, 18, 9572, 1557, 12330, 682, 273, 277, ...
"PRUint32 count, const nsID **iids);\n"
"PRUint32 count, const nsID **iids);\n\n" "void " + name + "_MarkInterfaces();\n\n" "void " + name + "_ClearInterfaces();\n\n"
"#ifndef " + headerMacro + "\n"
b10cc8d19e2aa919583f608bf70ff0b7f0fa915b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/b10cc8d19e2aa919583f608bf70ff0b7f0fa915b/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6619, 430, 82, 536, 315, 397, 1446, 17392, 397, 1548, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6619, 430, 82, 536, 315, 397, 1446, 17392, 397, 1548, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.remote_branch_label = local_branch.get_parent().replace("%7E", "~") self.local_extra, self.remote_extra = find_unmerged(local_branch, remote_branch) if len(self.local_extra) <> 0: if int(self.local_extra[len(self.local_extra) - 1][0]) > self.local_branch_: self.actually_changed = True self.write_cache_file() if len(self.remote_extra) <> 0: if int(self.remote_extra[len(self.remote_extra) - 1][0]) > self.remote_branch_: self.actually_changed = True self.write_cache_file()
if remote_branch: self.remote_branch_label = local_branch.get_parent().replace("%7E", "~") self.local_extra, self.remote_extra = find_unmerged(local_branch, remote_branch) if len(self.local_extra) <> 0: if int(self.local_extra[len(self.local_extra) - 1][0]) > self.local_branch_: self.actually_changed = True self.write_cache_file() if len(self.remote_extra) <> 0: if int(self.remote_extra[len(self.remote_extra) - 1][0]) > self.remote_branch_: self.actually_changed = True self.write_cache_file() else: self.error = True self.specto.logger.log(("No remote copy available"), "warning", self.name)
def check(self): """ See if a folder's contents were modified or created. """ try: self.read_cache_file() local_branch = Branch.open_containing(self.folder)[0] remote_branch = Branch.open_containing(local_branch.get_parent())[0] self.remote_branch_label = local_branch.get_parent().replace("%7E", "~") self.local_extra, self.remote_extra = find_unmerged(local_branch, remote_branch)
cce299b9580f75ae6b3e26a27e82367cfb0d5d5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/cce299b9580f75ae6b3e26a27e82367cfb0d5d5c/watch_vc_bazaar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 3536, 2164, 309, 279, 3009, 1807, 2939, 4591, 4358, 578, 2522, 18, 3536, 775, 30, 365, 18, 896, 67, 2493, 67, 768, 1435, 1191, 67, 7500, 273, 15449, 18, 3190, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 3536, 2164, 309, 279, 3009, 1807, 2939, 4591, 4358, 578, 2522, 18, 3536, 775, 30, 365, 18, 896, 67, 2493, 67, 768, 1435, 1191, 67, 7500, 273, 15449, 18, 3190, 67, ...
raise ValueError("illegal content-type")
raise ValueError("illegal content-type: %s" % value)
def __new__(cls, value): if value == '*': return value try: type, subtype = value.split('/') except ValueError: raise ValueError("illegal content-type") else: if type == '*': raise ValueError("illegal content-type") return value
afe0134b526dece313862cedf05d57e9ef79a33c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/afe0134b526dece313862cedf05d57e9ef79a33c/datatypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 4672, 309, 460, 422, 5306, 30, 327, 460, 775, 30, 618, 16, 12308, 273, 460, 18, 4939, 2668, 2473, 13, 1335, 2068, 30, 1002, 2068, 2932, 31751, 913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 4672, 309, 460, 422, 5306, 30, 327, 460, 775, 30, 618, 16, 12308, 273, 460, 18, 4939, 2668, 2473, 13, 1335, 2068, 30, 1002, 2068, 2932, 31751, 913, ...
def mergeUniquePackages(collapse_group, parts, packages):
def mergeUniquePackages(collapse_group, parts, packages, seen_targets):
def mergeUniquePackages(collapse_group, parts, packages): self._console.debug("collapsing unique packages...") self._console.indent() for part in collapse_group: for packId in reversed(part.packages): # start with "smallest" package package = packages[packId] if isUnique(package, collapse_group): self._mergePackage1(package, parts, packages) self._console.outdent() return parts, packages
bcd212c02162ed0bc1637834a9115f4b6d533a0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/bcd212c02162ed0bc1637834a9115f4b6d533a0d/PartBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 6303, 11425, 12, 21405, 67, 1655, 16, 2140, 16, 5907, 16, 5881, 67, 11358, 4672, 365, 6315, 8698, 18, 4148, 2932, 1293, 3762, 2470, 3089, 5907, 7070, 13, 365, 6315, 8698, 18, 9355,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2691, 6303, 11425, 12, 21405, 67, 1655, 16, 2140, 16, 5907, 16, 5881, 67, 11358, 4672, 365, 6315, 8698, 18, 4148, 2932, 1293, 3762, 2470, 3089, 5907, 7070, 13, 365, 6315, 8698, 18, 9355,...
self.on_qToolButton_nextStream_clicked(0)
self.on_qToolButton_nextStream_clicked()
def __mpl_keyPressEvent(self, ev): if self.widgets.qToolButton_showMap.isChecked(): return keys = self.keys phase_type = str(self.widgets.qComboBox_phaseType.currentText()) dict = self.dicts[self.stPt] st = self.streams[self.stPt] ####################################################################### # Start of key events related to picking # ####################################################################### # For some key events (picking events) we need information on the x/y # position of the cursor: if ev.key in [keys['setPick'], keys['setPickError'], keys['setMagMin'], keys['setMagMax']]: # some keyPress events only make sense inside our matplotlib axes if ev.inaxes not in self.axs: return #We want to round from the picking location to #the time value of the nearest time sample: samp_rate = st[0].stats.sampling_rate pickSample = ev.xdata * samp_rate pickSample = round(pickSample) pickSample = pickSample / samp_rate # we need the position of the cursor location # in the seismogram array: xpos = pickSample * samp_rate
30a4a1a67243731364c367eb9b25d014d6034ac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/30a4a1a67243731364c367eb9b25d014d6034ac3/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 10514, 67, 856, 11840, 1133, 12, 2890, 16, 2113, 4672, 309, 365, 18, 18148, 18, 85, 6364, 3616, 67, 4500, 863, 18, 291, 11454, 13332, 327, 1311, 273, 365, 18, 2452, 6855, 67, 723...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 10514, 67, 856, 11840, 1133, 12, 2890, 16, 2113, 4672, 309, 365, 18, 18148, 18, 85, 6364, 3616, 67, 4500, 863, 18, 291, 11454, 13332, 327, 1311, 273, 365, 18, 2452, 6855, 67, 723...
result = codec_search_cache.get(encoding,None)
result = codec_search_cache.get(encoding, None)
def codec_lookup(encoding): """lookup(encoding) -> (encoder, decoder, stream_reader, stream_writer) Looks up a codec tuple in the Python codec registry and returns a tuple of functions. """ result = codec_search_cache.get(encoding,None) if not result: if codec_need_encodings: import encodings if len(codec_search_path) == 0: raise LookupError("no codec search functions registered: can't find encoding") del codec_need_encodings[:] if not isinstance(encoding,str): raise TypeError("Encoding must be a string") for search in codec_search_path: result=search(encoding) if result : if not( type(result) == tuple and len(result) == 4): raise TypeError("codec search functions must return 4-tuples") else: codec_search_cache[encoding] = result return result if not result: raise LookupError( "unknown encoding: %s" % encoding) return result
16ed2024742360e02d96bf99f8cb5ce4527577cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/16ed2024742360e02d96bf99f8cb5ce4527577cd/app_codecs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9196, 67, 8664, 12, 5999, 4672, 3536, 8664, 12, 5999, 13, 317, 261, 16480, 16, 8320, 16, 1407, 67, 10530, 16, 1407, 67, 6299, 13, 10176, 87, 731, 279, 9196, 3193, 316, 326, 6600, 9196,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9196, 67, 8664, 12, 5999, 4672, 3536, 8664, 12, 5999, 13, 317, 261, 16480, 16, 8320, 16, 1407, 67, 10530, 16, 1407, 67, 6299, 13, 10176, 87, 731, 279, 9196, 3193, 316, 326, 6600, 9196,...
try: conn.send("lssyscfg -r lpar -m " + options["-s"] + " -F name:state\n") conn.log_expect(options, options["-c"], POWER_TIMEOUT)
if options["-H"] == "3": try: conn.send("query_partition_names -m " + options["-s"] + "\n") conn.log_expect(options, options["-c"], POWER_TIMEOUT)
def get_lpar_list(conn, options): outlets = { } try: conn.send("lssyscfg -r lpar -m " + options["-s"] + " -F name:state\n") conn.log_expect(options, options["-c"], POWER_TIMEOUT) ## We have to remove first line (command) and last line (part of new prompt) #### res = re.search("^.+?\n(.*)\n.*$", conn.before, re.S) if res == None: fail_usage("Unable to parse output of list command") lines = res.group(1).split("\n") for x in lines: s = x.split(":") outlets[s[0]] = ("", s[1]) except pexpect.EOF: fail(EC_CONNECTION_LOST) except pexpect.TIMEOUT: fail(EC_TIMED_OUT) return outlets
96e27b8d2247d64abc53633ba81cc0cff474d668 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6868/96e27b8d2247d64abc53633ba81cc0cff474d668/fence_lpar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 80, 1065, 67, 1098, 12, 4646, 16, 702, 4672, 596, 17307, 273, 288, 289, 309, 702, 9614, 17, 44, 11929, 422, 315, 23, 6877, 775, 30, 1487, 18, 4661, 2932, 2271, 67, 10534, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 80, 1065, 67, 1098, 12, 4646, 16, 702, 4672, 596, 17307, 273, 288, 289, 309, 702, 9614, 17, 44, 11929, 422, 315, 23, 6877, 775, 30, 1487, 18, 4661, 2932, 2271, 67, 10534, 67...
y = np.asarray(y)**2
y = np.asarray(y)
def run(self, y, x, idx=None, split=None, drop=None, alternative='increasing', attach=True): '''see class docstring''' x = np.asarray(x) y = np.asarray(y)**2 nobs, nvars = x.shape if split is None: split = nobs//2 elif (0<split) and (split<1): split = int(nobs*split) if drop is None: start2 = split elif (0<split) and (split<1): start2 = split + int(nobs*drop)
65242e05db93602342fa77d2579bc8cae0fd6ea0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/65242e05db93602342fa77d2579bc8cae0fd6ea0/stattools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 677, 16, 619, 16, 2067, 33, 7036, 16, 1416, 33, 7036, 16, 3640, 33, 7036, 16, 10355, 2218, 267, 1793, 11730, 2187, 3306, 33, 5510, 4672, 9163, 5946, 667, 14525, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 677, 16, 619, 16, 2067, 33, 7036, 16, 1416, 33, 7036, 16, 3640, 33, 7036, 16, 10355, 2218, 267, 1793, 11730, 2187, 3306, 33, 5510, 4672, 9163, 5946, 667, 14525, 264...
from setuptools_build_ext import build_ext as setuptools_build_ext from setuptools_extension import Extension etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c') etree_ext = Extension('lxml.etree', [etree_c]) dist = Distribution({'name': 'lxml', 'ext_modules': [etree_ext]}) cmd = setuptools_build_ext(dist) cmd.ensure_finalized() cmd.inplace = 1 cmd.distribution.package_dir = {'': 'src'} cmd.distribution.packages = ['lxml', 'lxml.html'] curdir = os.getcwd() ext = sysconfig.get_config_var("SO") wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext) path = cmd.get_ext_fullpath('lxml.etree') self.assertEquals(wanted, path)
import distutils.core, distutils.extension, distutils.command.build_ext saved_ext = distutils.extension.Extension try: from setuptools_build_ext import build_ext as setuptools_build_ext from setuptools_extension import Extension etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c') etree_ext = Extension('lxml.etree', [etree_c]) dist = Distribution({'name': 'lxml', 'ext_modules': [etree_ext]}) cmd = setuptools_build_ext(dist) cmd.ensure_finalized() cmd.inplace = 1 cmd.distribution.package_dir = {'': 'src'} cmd.distribution.packages = ['lxml', 'lxml.html'] curdir = os.getcwd() ext = sysconfig.get_config_var("SO") wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext) path = cmd.get_ext_fullpath('lxml.etree') self.assertEquals(wanted, path) finally: distutils.extension.Extension = saved_ext distutils.core.Extension = saved_ext distutils.command.build_ext.Extension = saved_ext
def test_setuptools_compat(self): from setuptools_build_ext import build_ext as setuptools_build_ext from setuptools_extension import Extension
14b60886a63fde43197e72d21b7c4c01c4a37db3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/14b60886a63fde43197e72d21b7c4c01c4a37db3/test_build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 30693, 67, 16239, 12, 2890, 4672, 628, 444, 30693, 67, 3510, 67, 408, 1930, 1361, 67, 408, 487, 444, 30693, 67, 3510, 67, 408, 628, 444, 30693, 67, 6447, 1930, 10021, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 30693, 67, 16239, 12, 2890, 4672, 628, 444, 30693, 67, 3510, 67, 408, 1930, 1361, 67, 408, 487, 444, 30693, 67, 3510, 67, 408, 628, 444, 30693, 67, 6447, 1930, 10021, 2,...
port=port, ssh_key=key, post_upload_command=post_upload_command,
port=port, ssh_key=key, upload_to_temp_dir=upload_to_temp_dir, post_upload_command=post_upload_command,
def UploadFiles(user, host, path, files, verbose=False, port=None, ssh_key=None, base_path=None, post_upload_command=None): """Upload each file in the list files to user@host:path. Optionally pass port and ssh_key to the ssh commands. If base_path is not None, upload files including their path relative to base_path. If post_upload_command is not None, execute that command on the remote host after uploading all files, passing it the upload path, and the full paths to all files uploaded. If verbose is True, print status updates while working.""" if not path.endswith("/"): path += "/" if base_path is not None: base_path = os.path.abspath(base_path) remote_files = [] for file in files: file = os.path.abspath(file) if not os.path.isfile(file): raise IOError("File not found: %s" % file) # first ensure that path exists remotely remote_path = GetRemotePath(path, file, base_path) DoSSHCommand("mkdir -p " + remote_path, user, host, port=port, ssh_key=ssh_key) if verbose: print "Uploading " + file DoSCPFile(file, remote_path, user, host, port=port, ssh_key=ssh_key) remote_files.append(remote_path + '/' + os.path.basename(file)) if post_upload_command is not None: if verbose: print "Running post-upload command: " + post_upload_command file_list = '"' + '" "'.join(remote_files) + '"' DoSSHCommand('%s "%s" %s' % (post_upload_command, path, file_list), user, host, port=port, ssh_key=ssh_key) if verbose: print "Upload complete"
cc16eafcdbcfbf03ef9bbe4d97328c8a833578ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/cc16eafcdbcfbf03ef9bbe4d97328c8a833578ae/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 2697, 12, 1355, 16, 1479, 16, 589, 16, 1390, 16, 3988, 33, 8381, 16, 1756, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 1026, 67, 803, 33, 7036, 16, 1603, 67, 6327, 67, 3076, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 2697, 12, 1355, 16, 1479, 16, 589, 16, 1390, 16, 3988, 33, 8381, 16, 1756, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 1026, 67, 803, 33, 7036, 16, 1603, 67, 6327, 67, 3076, 3...
paths.insert(0, self._webkit_baseline_path(self._name))
paths.insert(0, self._webkit_baseline_path( 'google-chrome-linux64'))
def baseline_search_path(self): paths = chromium_linux.ChromiumLinuxPort.baseline_search_path( self) paths.insert(0, self._webkit_baseline_path(self._name)) return paths
d7f4bb42307e56dedf9654922fe4662cc2ac9e67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/d7f4bb42307e56dedf9654922fe4662cc2ac9e67/google_chrome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14243, 67, 3072, 67, 803, 12, 2890, 4672, 2953, 273, 8123, 5077, 67, 20132, 18, 30761, 5077, 19475, 2617, 18, 27818, 67, 3072, 67, 803, 12, 365, 13, 2953, 18, 6387, 12, 20, 16, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14243, 67, 3072, 67, 803, 12, 2890, 4672, 2953, 273, 8123, 5077, 67, 20132, 18, 30761, 5077, 19475, 2617, 18, 27818, 67, 3072, 67, 803, 12, 365, 13, 2953, 18, 6387, 12, 20, 16, 365, ...
def __init__(self, api, slice_id_or_name_list = None):
def __init__(self, api, slice_id_or_name_list = None, expires = int(time.time())):
def __init__(self, api, slice_id_or_name_list = None): self.api = api
e15691dd2f64530a2f1ef1a8636d443ae47fe0ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/e15691dd2f64530a2f1ef1a8636d443ae47fe0ae/Slices.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1536, 16, 2788, 67, 350, 67, 280, 67, 529, 67, 1098, 273, 599, 16, 7368, 273, 509, 12, 957, 18, 957, 1435, 3719, 30, 365, 18, 2425, 273, 1536, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1536, 16, 2788, 67, 350, 67, 280, 67, 529, 67, 1098, 273, 599, 16, 7368, 273, 509, 12, 957, 18, 957, 1435, 3719, 30, 365, 18, 2425, 273, 1536, 2, -10...
def test_AuthorizedAsChan12(self): self.doTestAndCheck12(conn_chan)
def test_AuthorizedAsChan12(self): self.doTestAndCheck12(conn_chan)
091168d98667491ee6176464a27d5a3e2a269f75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6226/091168d98667491ee6176464a27d5a3e2a269f75/cftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15341, 1463, 6255, 2138, 12, 2890, 4672, 365, 18, 2896, 4709, 31151, 2138, 12, 4646, 67, 7472, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 15341, 1463, 6255, 2138, 12, 2890, 4672, 365, 18, 2896, 4709, 31151, 2138, 12, 4646, 67, 7472, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
for delimiter in _DELIMITERS_WORDS: if len(delimiter) > len(longest[1]) and word.endswith(delimiter): word = word.rpartition(delimiter) longest = (word[0], word[1])
def test_paragraph_mean(self): self.assertEquals(self.generator.paragraph_mean, 2)
def _get_word_info(word): longest = (word, "") for delimiter in _DELIMITERS_WORDS: if len(delimiter) > len(longest[1]) and word.endswith(delimiter): word = word.rpartition(delimiter) longest = (word[0], word[1]) return (len(longest[0]), longest[1])
fa9e6662a1f30cb272942f25e233798ee7edac45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3480/fa9e6662a1f30cb272942f25e233798ee7edac45/testlipsum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1095, 67, 1376, 12, 1095, 4672, 12163, 273, 261, 1095, 16, 1408, 13, 225, 1652, 1842, 67, 22445, 67, 7079, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 2890, 18, 8812, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1095, 67, 1376, 12, 1095, 4672, 12163, 273, 261, 1095, 16, 1408, 13, 225, 1652, 1842, 67, 22445, 67, 7079, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 2890, 18, 8812, 18, ...
if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK:
if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK and event.state != gtk.gdk.LOCK_MASK | gtk.gdk.CONTROL_MASK:
def topwindow_keypress(self, widget, event): if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK: if event.keyval == 65361: # Left arrow
1c17d458f65b213687f9e04befcc4d29dbae7a76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/1c17d458f65b213687f9e04befcc4d29dbae7a76/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1760, 5668, 67, 856, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 309, 871, 18, 2019, 480, 22718, 18, 75, 2883, 18, 23191, 67, 11704, 471, 871, 18, 2019, 480, 22718, 18, 75, 2883, 18, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1760, 5668, 67, 856, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 309, 871, 18, 2019, 480, 22718, 18, 75, 2883, 18, 23191, 67, 11704, 471, 871, 18, 2019, 480, 22718, 18, 75, 2883, 18, 18...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 864) else quickfix.IntField.__init__(self, 864, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 19663, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 19663, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
pth = os.path.join(self.path, nm)
pth = os.path.join(self.fspath, nm) pth=pth.replace('.', '/')
def getmod(self, nm, getsuffixes=imp.get_suffixes, loadco=marshal.loads, newmod=imp.new_module): # this is taken almost verbatim from # Gordon McMillan's iu.DirOwner.getmod, # except that vfs methods are used pth = os.path.join(self.path, nm) possibles = [(pth, 0, None)] if self.fs.isdir(pth): possibles.insert(0, (os.path.join(pth, '__init__'), 1, pth)) py = pyc = None for pth, ispkg, pkgpth in possibles: for ext, mode, typ in getsuffixes(): attempt = pth+ext try: st = self.fs.ministat(attempt) except: pass else: if typ == imp.C_EXTENSION: fp = self.fs.open(attempt) mod = imp.load_module(nm, fp, attempt, (ext, mode, typ)) mod.__file__ = 'vfs://<%s>%s' % (self.fskey, attempt) return mod elif typ == imp.PY_SOURCE: py = (attempt, st) else: pyc = (attempt, st) if py or pyc: break if py is None and pyc is None: return None while 1: if pyc is None or py and pyc[1][vfs.MST_MTIME] < py[1][vfs.MST_MTIME]: try: co = compile(self.fs.open(py[0], 'r').read()+'\n', py[0], 'exec') break except SyntaxError, e: print "Invalid syntax in %s" % py[0] print e.args raise elif pyc: stuff = self.fs.open(pyc[0]).read() try: co = loadco(stuff[8:]) break except (ValueError, EOFError): pyc = None else: return None mod = newmod(nm) mod.__file__ = co.co_filename if ispkg: mod.__path__ = [pkgpth] subimporter = iu.PathImportDirector(mod.__path__) mod.__importsub__ = subimporter.getmod mod.__co__ = co return mod
a3726ade43a8d62cf09a127a6b7142e87249157d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/a3726ade43a8d62cf09a127a6b7142e87249157d/importer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1711, 12, 2890, 16, 8442, 16, 5571, 2609, 281, 33, 14532, 18, 588, 67, 8477, 281, 16, 1262, 2894, 33, 3108, 18, 17135, 16, 394, 1711, 33, 14532, 18, 2704, 67, 2978, 4672, 468, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1711, 12, 2890, 16, 8442, 16, 5571, 2609, 281, 33, 14532, 18, 588, 67, 8477, 281, 16, 1262, 2894, 33, 3108, 18, 17135, 16, 394, 1711, 33, 14532, 18, 2704, 67, 2978, 4672, 468, 3...
self.HandleViewRequest(jabber_id)
self.HandleViewRequest(jabberID)
def PermissionsChanged(self, view): for jabberID in self.openPeers.keys(): if self.openPeers[jabberID] == 1: self.HandleViewRequest(jabber_id)
60aa9aa211cac0941cc271415a00ce1fe66a023f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/60aa9aa211cac0941cc271415a00ce1fe66a023f/ChandlerJabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15684, 5033, 12, 2890, 16, 1476, 4672, 364, 525, 378, 744, 734, 316, 365, 18, 3190, 14858, 18, 2452, 13332, 309, 365, 18, 3190, 14858, 63, 78, 378, 744, 734, 65, 422, 404, 30, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15684, 5033, 12, 2890, 16, 1476, 4672, 364, 525, 378, 744, 734, 316, 365, 18, 3190, 14858, 18, 2452, 13332, 309, 365, 18, 3190, 14858, 63, 78, 378, 744, 734, 65, 422, 404, 30, 365, 1...
return sys.modules[fqname]
module = sys.modules[fqname] module.__name__ = fqname return module
def _process_result(self, (ispkg, code, values), fqname): # did get_code() return an actual module? (rather than a code object) is_module = isinstance(code, _ModuleType)
5941609e5f6f556fdefdcdbc388260bc31e27972 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5941609e5f6f556fdefdcdbc388260bc31e27972/imputil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 2088, 12, 2890, 16, 261, 291, 10657, 16, 981, 16, 924, 3631, 8508, 529, 4672, 468, 5061, 336, 67, 710, 1435, 327, 392, 3214, 1605, 35, 261, 86, 4806, 2353, 279, 981, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 2088, 12, 2890, 16, 261, 291, 10657, 16, 981, 16, 924, 3631, 8508, 529, 4672, 468, 5061, 336, 67, 710, 1435, 327, 392, 3214, 1605, 35, 261, 86, 4806, 2353, 279, 981, 7...
self.builder.reset()
SGMLParser.reset(self)
def reset(self): Tag.__init__(self, self, self.ROOT_TAG_NAME) self.hidden = 1 self.builder.reset() self.currentData = [] self.currentTag = None self.tagStack = [] self.quoteStack = [] self.pushTag(self)
7300e101f39b7a1a436c6765d140c987cbc58a45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7300e101f39b7a1a436c6765d140c987cbc58a45/BeautifulSoup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 4034, 16186, 2738, 972, 12, 2890, 16, 365, 16, 365, 18, 9185, 67, 7927, 67, 1985, 13, 365, 18, 6345, 273, 404, 348, 43, 1495, 2678, 18, 6208, 12, 2890, 13, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 4034, 16186, 2738, 972, 12, 2890, 16, 365, 16, 365, 18, 9185, 67, 7927, 67, 1985, 13, 365, 18, 6345, 273, 404, 348, 43, 1495, 2678, 18, 6208, 12, 2890, 13, 365,...
admin, admin, 'Unexpected Mailman error',
admin, admin, _('Unexpected Mailman error'),
def ParseMailCommands(self, msg): # Break any infloops. If this has come from a Mailman server then # it'll have this header. It's still possible to infloop between two # servers because there's no guaranteed way to know it came from a # bot. if msg['x-beenthere'] or msg['list-id']: return # check the autoresponse stuff if self.autorespond_requests: # TBD: this is a hack and is not safe with respect to errors in # the Replybot module. It should be redesigned to work with the # robust delivery scheme. from Mailman.Handlers import Replybot Replybot.process(self, msg, msgdata={'torequest':1}) if self.autorespond_requests == 1: # Yes, auto-respond and discard return
fd50f6ba3c52ce475f91f07aef2835cffeada335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/fd50f6ba3c52ce475f91f07aef2835cffeada335/MailCommandHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 6759, 9127, 12, 2890, 16, 1234, 4672, 468, 17030, 1281, 8286, 383, 4473, 18, 225, 971, 333, 711, 12404, 628, 279, 11542, 4728, 1438, 1508, 468, 518, 5614, 1240, 333, 1446, 18, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2884, 6759, 9127, 12, 2890, 16, 1234, 4672, 468, 17030, 1281, 8286, 383, 4473, 18, 225, 971, 333, 711, 12404, 628, 279, 11542, 4728, 1438, 1508, 468, 518, 5614, 1240, 333, 1446, 18, 225,...
return render_to_response("datarequests/view_datarequest.html", { "datarequest": datarequest, "form": form, },
return render_to_response('datarequests/view_datarequest.html', {'datarequest': datarequest, 'form': form},
def view_datarequest(request, item_id, slug): datarequest = get_object_or_404(DataRequest, pk=item_id) form = PostCommentForm() user = request.user return render_to_response("datarequests/view_datarequest.html", { # This required that view_datarequest MUST NOT pass # in any template arguments but datarequest, user # and postcommentform. "datarequest": datarequest, "form": form, }, context_instance=RequestContext(request))
9f1623add3022da9be49b013fe49ed4f616818c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2706/9f1623add3022da9be49b013fe49ed4f616818c3/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 892, 2293, 12, 2293, 16, 761, 67, 350, 16, 4959, 4672, 501, 2293, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 751, 691, 16, 2365, 33, 1726, 67, 350, 13, 646, 273, 5616, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 892, 2293, 12, 2293, 16, 761, 67, 350, 16, 4959, 4672, 501, 2293, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 751, 691, 16, 2365, 33, 1726, 67, 350, 13, 646, 273, 5616, 4...
kwargs = {} if builddir: kwargs['replace_dir'] = map(self.get_build_dir_for, self.src_path) else: kwargs['replace_dir'] = self.src_path sources = rutils.DeepGlob(
return self.get_files( self.src_path,
def get_sources(self, builddir = True): """Returns CXX source files of the project""" kwargs = {} if builddir: kwargs['replace_dir'] = map(self.get_build_dir_for, self.src_path) else: kwargs['replace_dir'] = self.src_path
f6169e5c580d05b718b9c78d8460b56c8efcf9aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/f6169e5c580d05b718b9c78d8460b56c8efcf9aa/project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10141, 12, 2890, 16, 25666, 330, 449, 481, 273, 1053, 4672, 3536, 1356, 385, 5619, 1084, 1390, 434, 326, 1984, 8395, 1205, 273, 2618, 309, 25666, 330, 449, 481, 30, 1205, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10141, 12, 2890, 16, 25666, 330, 449, 481, 273, 1053, 4672, 3536, 1356, 385, 5619, 1084, 1390, 434, 326, 1984, 8395, 1205, 273, 2618, 309, 25666, 330, 449, 481, 30, 1205, 3292, ...
mc = make_conf_source( source='/etc/make.conf')
mc = source.create_source(make_conf_source, source='/etc/make.conf')
def post_conf(self, inhibitor_state): super(BaseStage, self).post_conf(inhibitor_state)
d61d312fbaa024a816b78a716f1e46b883e80de3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13627/d61d312fbaa024a816b78a716f1e46b883e80de3/stage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 3923, 12, 2890, 16, 316, 15769, 1811, 67, 2019, 4672, 2240, 12, 2171, 8755, 16, 365, 2934, 2767, 67, 3923, 12, 267, 15769, 1811, 67, 2019, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 67, 3923, 12, 2890, 16, 316, 15769, 1811, 67, 2019, 4672, 2240, 12, 2171, 8755, 16, 365, 2934, 2767, 67, 3923, 12, 267, 15769, 1811, 67, 2019, 13, 2, -100, -100, -100, -100, -100...
if node.position[0] <= x <= (node.position[0] + node.size[0]) and \ node.position[1] <= y <= (node.position[1] + node.size[1]): if isPress: self.lastPressedNode = node elif isRelease: self.lastReleasedNode = node break
try: if node.position: if node.position[0] <= x <= (node.position[0] + node.size[0]) and \ node.position[1] <= y <= (node.position[1] + node.size[1]): if isPress: self.lastPressedNode = node elif isRelease: self.lastReleasedNode = node break except AttributeError: pass
def onMouseButton(self, event): #logEvent(event) isPress = isRelease = False if "mouse:button:1" not in event.type: return elif event.type == "mouse:button:1p": isPress = True elif event.type == "mouse:button:1r": isRelease = True # The source node is always "main" - which sucks. # sourceNode = dogtail.tree.Node(event.source) x = event.detail1 y = event.detail2 #print "x,y: %s, %s" % (x, y) for node in (self.lastFocusedNode, self.lastSelectedNode): #print "position: %s, size: %s" % (node.position, node.size) if node.position[0] <= x <= (node.position[0] + node.size[0]) and \ node.position[1] <= y <= (node.position[1] + node.size[1]): if isPress: self.lastPressedNode = node elif isRelease: self.lastReleasedNode = node break if isRelease: self.writer.recordClick(self.lastFocusedNode)
7ca1dced869b8341bac22f59f9225a7baceb4b3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/7ca1dced869b8341bac22f59f9225a7baceb4b3f/recorder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21000, 3616, 12, 2890, 16, 871, 4672, 468, 1330, 1133, 12, 2575, 13, 225, 353, 11840, 273, 353, 7391, 273, 1083, 309, 315, 11697, 30, 5391, 30, 21, 6, 486, 316, 871, 18, 723, 30, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21000, 3616, 12, 2890, 16, 871, 4672, 468, 1330, 1133, 12, 2575, 13, 225, 353, 11840, 273, 353, 7391, 273, 1083, 309, 315, 11697, 30, 5391, 30, 21, 6, 486, 316, 871, 18, 723, 30, 327...
if self.interrupted: raise KeyboardInterrupt()
def wait(self, seconds=None): if self.interrupted: raise KeyboardInterrupt() timer = event.timeout(seconds, lambda: None) timer.add()
179b6851abd130cf0e0f6e40d6d4d7f96a416448 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/179b6851abd130cf0e0f6e40d6d4d7f96a416448/libeventhub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 16, 3974, 33, 7036, 4672, 5441, 273, 871, 18, 4538, 12, 7572, 16, 3195, 30, 599, 13, 5441, 18, 1289, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 16, 3974, 33, 7036, 4672, 5441, 273, 871, 18, 4538, 12, 7572, 16, 3195, 30, 599, 13, 5441, 18, 1289, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Translate 2d plot options into 3d plot options.
Translate 2D plot options into 3D plot options.
def _plot3d_options(self, options=None): """ Translate 2d plot options into 3d plot options.
c71626951366337c05394cc4062fa8695d550d57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c71626951366337c05394cc4062fa8695d550d57/primitive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4032, 23, 72, 67, 2116, 12, 2890, 16, 702, 33, 7036, 4672, 3536, 16820, 576, 72, 3207, 702, 1368, 890, 72, 3207, 702, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4032, 23, 72, 67, 2116, 12, 2890, 16, 702, 33, 7036, 4672, 3536, 16820, 576, 72, 3207, 702, 1368, 890, 72, 3207, 702, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if line[:node.col_offset].strip() != '':
if self._last_stmt and line[:node.col_offset].strip() != '':
def __analyze_node(self, node): if isinstance(node, rope.base.ast.stmt): line = self.lines.get_line(node.lineno) if line[:node.col_offset].strip() != '': self.__update_last_min(self._last_stmt.lineno, node.lineno) self._last_stmt = node self._starts[node.lineno] = True min_end = 0 return False if isinstance(node, rope.base.ast.expr): if self._last_stmt is not None: start = self._last_stmt.lineno self.__update_last_min(start, node.lineno) return True
0d340faf9ca509f19e65462c4edbcf4740e94d40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/0d340faf9ca509f19e65462c4edbcf4740e94d40/codeanalyze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 304, 9508, 67, 2159, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 721, 347, 18, 1969, 18, 689, 18, 10589, 4672, 980, 273, 365, 18, 3548, 18, 588, 67, 1369, 12, 2159, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 304, 9508, 67, 2159, 12, 2890, 16, 756, 4672, 309, 1549, 12, 2159, 16, 721, 347, 18, 1969, 18, 689, 18, 10589, 4672, 980, 273, 365, 18, 3548, 18, 588, 67, 1369, 12, 2159, 18, ...
def http_error_302(self, url, fp, errcode, errmsg, headers, data=None): self.tries += 1 if self.tries >= self.maxtries: return self.http_error_default(url, fp, 500, "Internal Server Error: Redirect Recursion", headers) result = urllib.FancyURLopener.http_error_302(self, url, fp, errcode, errmsg, headers, data) self.tries = 0 return result
def http_error_default(self, url, fp, errcode, errmsg, headers): self.errcode = errcode return urllib.FancyURLopener.http_error_default(self, url, fp, errcode, errmsg, headers)
3375ab0caac67b977cc26065d6a9c2c1d47b3786 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3375ab0caac67b977cc26065d6a9c2c1d47b3786/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 1886, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 4672, 365, 18, 25093, 273, 393, 710, 327, 11527, 18, 42, 12514, 1785, 25098, 18, 2505, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 1886, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 4672, 365, 18, 25093, 273, 393, 710, 327, 11527, 18, 42, 12514, 1785, 25098, 18, 2505, 67, 1...
__version__ = '1.3'
__version__ = '1.4'
def _(s): return s
6c846207c39841ddcb1877377b20ec30bef07b97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6c846207c39841ddcb1877377b20ec30bef07b97/pygettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 87, 4672, 327, 272, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 87, 4672, 327, 272, 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, ...
flows = _rml_flowable(self.doc, images=self.images, path=self.path, title=self.title).render(node)
flows = _rml_flowable(self.doc, self.localcontext, images=self.images, path=self.path, title=self.title).render(node)
def _place(self, node): flows = _rml_flowable(self.doc, images=self.images, path=self.path, title=self.title).render(node) infos = utils.attr_get(node, ['x','y','width','height'])
8e08b1afb4e551b469ca33479d41aa58e68527b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/8e08b1afb4e551b469ca33479d41aa58e68527b4/trml2pdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 964, 12, 2890, 16, 756, 4672, 22465, 273, 389, 86, 781, 67, 2426, 429, 12, 2890, 18, 2434, 16, 365, 18, 3729, 2472, 16, 4602, 33, 2890, 18, 7369, 16, 589, 33, 2890, 18, 803, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 964, 12, 2890, 16, 756, 4672, 22465, 273, 389, 86, 781, 67, 2426, 429, 12, 2890, 18, 2434, 16, 365, 18, 3729, 2472, 16, 4602, 33, 2890, 18, 7369, 16, 589, 33, 2890, 18, 803, 1...
urllib._urlopener = gfurlo = GUIFancyURLopener() gfurlo._user_prompt = props['name'] gfurlo._passwd_prompt = props['passwd'] try: f = urllib.urlopen(url) return f.read() finally: urllib._urlopener = None
import urllib f = urllib.urlopen(url) return f.read()
def generatePage(self): props = self.model.zopeObj.properties url = 'http://%s:%d/%s/source.html'%(props['host'], props['httpport'], self.model.zopeObj.whole_name()) urllib._urlopener = gfurlo = GUIFancyURLopener() gfurlo._user_prompt = props['name'] gfurlo._passwd_prompt = props['passwd'] try: f = urllib.urlopen(url) return f.read() finally: urllib._urlopener = None
9a80cc073d56b51c3f39184b63f3d6a9bd244611 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9a80cc073d56b51c3f39184b63f3d6a9bd244611/ProdPageTemplates.plug-in.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 1964, 12, 2890, 4672, 3458, 273, 365, 18, 2284, 18, 94, 1306, 2675, 18, 4738, 880, 273, 296, 2505, 23155, 87, 5319, 72, 5258, 87, 19, 3168, 18, 2620, 11, 17105, 9693, 3292, 2564,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 1964, 12, 2890, 4672, 3458, 273, 365, 18, 2284, 18, 94, 1306, 2675, 18, 4738, 880, 273, 296, 2505, 23155, 87, 5319, 72, 5258, 87, 19, 3168, 18, 2620, 11, 17105, 9693, 3292, 2564,...
mode="Text")),
mode="Text"), case=query['case']),
def display(self, query, result):
ed8ef2a175deee3b5394318bc2411c638c3ae69b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5568/ed8ef2a175deee3b5394318bc2411c638c3ae69b/Email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 843, 16, 563, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 12, 2890, 16, 843, 16, 563, 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, ...
""" % fields[1:]
""" % fields
def __format_results(self, results): out = open(self.resultsdir + '/keyval', 'w') for line in results.split('\n'): if len([c for c in line if c == ',']) != 26: continue fields = tuple(line.split(',')) print >> out, """size=%s
2e6262885594d38162ae52b425873c1ef4e65d2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/2e6262885594d38162ae52b425873c1ef4e65d2d/bonnie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2139, 67, 4717, 12, 2890, 16, 1686, 4672, 596, 273, 1696, 12, 2890, 18, 4717, 1214, 397, 1173, 856, 1125, 2187, 296, 91, 6134, 364, 980, 316, 1686, 18, 4939, 2668, 64, 82, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2139, 67, 4717, 12, 2890, 16, 1686, 4672, 596, 273, 1696, 12, 2890, 18, 4717, 1214, 397, 1173, 856, 1125, 2187, 296, 91, 6134, 364, 980, 316, 1686, 18, 4939, 2668, 64, 82, 11, ...
def createInstance(cls, pool, module, cr): name = getattr(cls, '_name', cls._inherit)
def createInstance(cls, pool, module, cr):
def createInstance(cls, pool, module, cr): name = getattr(cls, '_name', cls._inherit) parent_names = getattr(cls, '_inherit', None) if parent_names: for parent_name in ((type(parent_names)==list) and parent_names or [parent_names]): parent_class = pool.get(parent_name).__class__ assert pool.get(parent_name), "parent class %s does not exist in module %s !" % (parent_name, module) nattr = {} for s in ('_columns', '_defaults'): new = copy.copy(getattr(pool.get(parent_name), s)) if hasattr(new, 'update'): new.update(cls.__dict__.get(s, {})) else: new.extend(cls.__dict__.get(s, [])) nattr[s] = new name = getattr(cls, '_name', cls._inherit) cls = type(name, (cls, parent_class), nattr)
a0be2f8e46a52320096255092dbceb06a4ee555e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/a0be2f8e46a52320096255092dbceb06a4ee555e/osv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20075, 12, 6429, 16, 2845, 16, 1605, 16, 4422, 4672, 982, 67, 1973, 273, 3869, 12, 6429, 16, 2070, 6018, 2187, 599, 13, 309, 982, 67, 1973, 30, 364, 982, 67, 529, 316, 14015, 723, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20075, 12, 6429, 16, 2845, 16, 1605, 16, 4422, 4672, 982, 67, 1973, 273, 3869, 12, 6429, 16, 2070, 6018, 2187, 599, 13, 309, 982, 67, 1973, 30, 364, 982, 67, 529, 316, 14015, 723, 12...
self.assertEqual(self.event.getCustomDescription(), "Every 3 weeks until 8/15/05")
value = datetime.combine(date(2005, 8, 15), time(0, tzinfo=self.sandbox.itsView.tzinfo.default)) dateStr = shortDateTimeFormat.format(self.sandbox.itsView, value).split(' ') self.assertEqual(self.event.getCustomDescription(), "Every 3 weeks until %s" % dateStr[0])
def testRuleChange(self): self.event.rruleset = self._createRuleSetItem('weekly') # an automatically generated backup occurrence should exist # @@@triageChange: this fails when triage automatically creates # modifications #self.assertEqual(len(self.event.occurrences), 1) # instead, just assert there's more than one occurrence self.assert_(len(self.event.occurrences) > 0) count = 3 newRule = dateutil.rrule.rrule(dateutil.rrule.WEEKLY, count = count, interval = 3, dtstart = self.start)
6e7b147bcb1addfc125251aacd49574d40cf3f0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/6e7b147bcb1addfc125251aacd49574d40cf3f0a/TestRecurringEvent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2175, 3043, 12, 2890, 4672, 365, 18, 2575, 18, 523, 1513, 278, 273, 365, 6315, 2640, 21474, 1180, 2668, 10741, 715, 6134, 468, 392, 6635, 4374, 5114, 13083, 1410, 1005, 468, 22175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2175, 3043, 12, 2890, 4672, 365, 18, 2575, 18, 523, 1513, 278, 273, 365, 6315, 2640, 21474, 1180, 2668, 10741, 715, 6134, 468, 392, 6635, 4374, 5114, 13083, 1410, 1005, 468, 22175, ...
raise SystemExit(unicodeC(m) + os.linesep + u"Could not find path %s and could not make a directory there. Please make sure this path is correct and try creating the folder with proper permissions for me" % os.path.join(self['global']['workingDir'], downDict['Dir'] ))
raise SystemExit(unicodeC(m) + os.linesep + u"""Could \ not find path %s and could not make a directory there. Please make sure this \ path is correct and try creating the folder with proper permissions for me\ """ % os.path.join(self['global']['workingDir'], downDict['Dir'] ))
def check(self): global mechanize if not self['global']['urllib'] and not mechanize: print >> sys.stderr, 'Using urllib2 instead of mechanize. setting urllib = True' self['global']['urllib'] = True if 'saveFile' not in self['global'] or self['global']['saveFile'] == None: self['global']['saveFile'] = u'savedstate.dat' if 'downloadDir' not in self['global'] or self['global']['downloadDir'] == None: raise SystemExit(u"Must specify downloadDir in [global] config\nInvalid configuration, no download directory") if 'runOnce' not in self['global'] or self['global']['runOnce'] == None: self['global']['runOnce'] = False if 'scanMins' not in self['global'] or self['global']['scanMins'] == None: self['global']['scanMins'] = 15 if self['global']['cookieType'] == 'MSIECookieJar' and self['global']['urllib']: raise SystemExit( u"Cannot use MSIECookieJar with urllib = True. Choose one or the other. May be caused by failed mechanize import. Incompatible configuration, IE cookies must use mechanize. please install and configure mechanize") if self['global']['cookieType'] not in ['MSIECookieJar' ,'LWPCookieJar' , 'MozillaCookieJar' ]: raise SystemExit(u'Invalid cookieType option: %s. Only MSIECookieJar, LWPCookieJar, and MozillaCookieJar are valid options. Exiting...' % self['global']['cookieType']) if 'lockPort' not in self['global'] or self['global']['lockPort'] == None: self['global']['lockPort'] = 8023 if 'log' in self['global'] and self['global']['log']: if 'logFile' not in self['global'] or self['global']['logFile'] == None: self['global']['logFile'] = u'downloads.log' # check all directories to make sure they exist. Ask for creation? if self['global']['downloadDir']: if not os.path.isdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ): try: os.mkdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ) except OSError, m: raise SystemExit(unicodeC(m) + os.linesep + u"Could not find path %s and could not make a directory there. Please make sure this path is correct and try creating the folder with proper permissions for me" % os.path.join(self['global']['workingDir'], self['global']['downloadDir'])) for thread in self['threads']: if self['threads'][thread]['directory'] and not os.path.isdir( os.path.join(self['global']['workingDir'], self['threads'][thread]['directory']) ): try: os.mkdir( os.path.join(self['global']['workingDir'], self['threads'][thread]['directory']) ) except OSError, m: raise SystemExit(unicodeC(m) + os.linesep + u"Could not find path %s and could not make a directory there. Please make sure this path is correct and try creating the folder with proper permissions for me" % os.path.join(self['global']['workingDir'], self['threads'][thread]['directory'])) for downDict in self['threads'][thread]['downloads']: if downDict['Dir'] and not os.path.isdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ): try: os.mkdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ) except OSError, m: raise SystemExit(unicodeC(m) + os.linesep + u"Could not find path %s and could not make a directory there. Please make sure this path is correct and try creating the folder with proper permissions for me" % os.path.join(self['global']['workingDir'], downDict['Dir'] ))
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 2552, 1791, 7472, 554, 309, 486, 365, 3292, 6347, 21712, 718, 2941, 3546, 471, 486, 1791, 7472, 554, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 7736, 11527, 22, 3560,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 2552, 1791, 7472, 554, 309, 486, 365, 3292, 6347, 21712, 718, 2941, 3546, 471, 486, 1791, 7472, 554, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 7736, 11527, 22, 3560,...
for tz in ('UTC','GMT','Luna/Tycho'): environ['TZ'] = 'US/Eastern' time.tzset() environ['TZ'] = tz time.tzset() self.failUnlessEqual( time.gmtime(xmas2002),time.localtime(xmas2002) ) self.failUnlessEqual(time.timezone,time.altzone) self.failUnlessEqual(time.daylight,0) self.failUnlessEqual(time.timezone,0) self.failUnlessEqual(time.altzone,0) self.failUnlessEqual(time.localtime(xmas2002).tm_isdst,0)
environ['TZ'] = eastern time.tzset() environ['TZ'] = utc time.tzset() self.failUnlessEqual( time.gmtime(xmas2002), time.localtime(xmas2002) ) self.failUnlessEqual(time.daylight, 0) self.failUnlessEqual(time.timezone, 0) self.failUnlessEqual(time.localtime(xmas2002).tm_isdst, 0)
def test_tzset(self): if not hasattr(time, "tzset"): return # Can't test this; don't want the test suite to fail
7f71bd449b62d8c9e24ec8f5d2d9a9a7fe3d85d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7f71bd449b62d8c9e24ec8f5d2d9a9a7fe3d85d9/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 542, 12, 2890, 4672, 309, 486, 3859, 12, 957, 16, 315, 12994, 542, 6, 4672, 327, 468, 4480, 1404, 1842, 333, 31, 2727, 1404, 2545, 326, 1842, 11371, 358, 2321, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12994, 542, 12, 2890, 4672, 309, 486, 3859, 12, 957, 16, 315, 12994, 542, 6, 4672, 327, 468, 4480, 1404, 1842, 333, 31, 2727, 1404, 2545, 326, 1842, 11371, 358, 2321, 2, -100...
if not ':' in head:
if os.sep == ':' and not ':' in head:
def mkdirs(dst): """Make directories leading to 'dst' if they don't exist yet""" if dst == '' or os.path.exists(dst): return head, tail = os.path.split(dst) if not ':' in head: head = head + ':' mkdirs(head) os.mkdir(dst, 0777)
9194966439c4860a695bd70c7fa80b94adff15cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9194966439c4860a695bd70c7fa80b94adff15cf/macostools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18095, 12, 11057, 4672, 3536, 6464, 6402, 7676, 358, 296, 11057, 11, 309, 2898, 2727, 1404, 1005, 4671, 8395, 309, 3046, 422, 875, 578, 1140, 18, 803, 18, 1808, 12, 11057, 4672, 327, 910...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18095, 12, 11057, 4672, 3536, 6464, 6402, 7676, 358, 296, 11057, 11, 309, 2898, 2727, 1404, 1005, 4671, 8395, 309, 3046, 422, 875, 578, 1140, 18, 803, 18, 1808, 12, 11057, 4672, 327, 910...
self.fileinfo.eventhandler(event)
self.fileitem.eventhandler(event)
def eventhandler(self, event):
b72d486c76612e003909b5e9a5bb41d0394f92df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/b72d486c76612e003909b5e9a5bb41d0394f92df/viewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 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,...
'<code class="link">%s</code></a>' % childstr)
'<code class="link">%s</code></a>' % children[0])
def _dom_to_html(tree, container, indent, seclevel, **kwargs): """ Helper function for L{dom_to_html}, that does the real work of converting a DOM tree for an epytext string to HTML. @param tree: The DOM tree for an epytext string. @type tree: C{xml.dom.minidom.Element} @param container: The container in which to look up objects by name (e.g., for link directives). @type container: Python module @param indent: The number of characters indentation that should be used for HTML tags. @type indent: C{int} @param seclevel: The current section level. @type seclevel: int @param kwargs: Keyword arguments (see L{dom_to_html} for details). """ # This takes care of converting > to &gt;, etc.: if isinstance(tree, _Text): return tree.toxml() if tree.tagName == 'epytext': indent -= 2 if tree.tagName == 'section': seclevel += 1 # Process the children first. children = [_dom_to_html(c, container, indent+2, seclevel, **kwargs) for c in tree.childNodes] # Get rid of unnecessary <P>...</P> tags; they introduce extra # space on most browsers that we don't want. if kwargs.get('para', 0) == 0: for i in range(len(children)-1): if (not isinstance(tree.childNodes[i], _Text) and tree.childNodes[i].tagName == 'para' and (isinstance(tree.childNodes[i+1], _Text) or tree.childNodes[i+1].tagName != 'para')): children[i] = children[i][5+indent:-5] if (tree.hasChildNodes() and not isinstance(tree.childNodes[-1], _Text) and tree.childNodes[-1].tagName == 'para'): children[-1] = children[-1][5+indent:-5] # Construct the HTML string for the children. childstr = ''.join(children) # Perform the approriate action for the DOM tree type. if tree.tagName == 'para': return epytext.wordwrap('<p>%s</p>' % childstr, indent) elif tree.tagName == 'code': return '<code>%s</code>' % childstr elif tree.tagName == 'uri': if re.match('\w+:.+', childstr): uri = childstr else: uri = 'http://'+childstr return '<a href="%s">%s</a>' % (uri, childstr) elif tree.tagName == 'link': childstr = re.sub('[^a-zA-Z0-9.]', '_', childstr) uid = findUID(childstr, container) if uid is not None: return ('<a href="%s">' % _uid_to_uri(uid) + '<code class="link">%s</code></a>' % childstr) else: print ('Warning: could not find UID for %r in %r' % (childstr, container)) return '<code class="link">%s</code>' % childstr elif tree.tagName == 'italic': return '<i>%s</i>' % childstr elif tree.tagName == 'math': return '<i class="math">%s</i>' % childstr elif tree.tagName == 'index': return ('<a name="%s"></a>' % index_to_anchor(childstr) + '<i class="indexterm">%s</i>' % childstr) elif tree.tagName == 'bold': return '<b>%s</b>' % childstr elif tree.tagName == 'ulist': return indent*' '+'<ul>\n%s%s</ul>\n' % (childstr, indent*' ') elif tree.tagName == 'olist': return indent*' '+'<ol>\n%s%s</ol>\n' % (childstr, indent*' ') elif tree.tagName == 'li': return indent*' '+'<li>\n%s%s</li>\n' % (childstr, indent*' ') elif tree.tagName == 'heading': return ('%s<h%s class="heading">%s</h%s>\n' % ((indent-2)*' ', seclevel, childstr, seclevel)) elif tree.tagName == 'literalblock': return '<pre class="literalblock">\n%s\n</pre>\n' % childstr elif tree.tagName == 'doctestblock': childstr = _colorize_doctestblock(childstr) return '<pre class="doctestblock">\n%s\n</pre>\n' % childstr elif tree.tagName == 'fieldlist': raise AssertionError("There should not be any field lists left") elif tree.tagName in ('epytext', 'section', 'tag', 'arg'): return childstr else: raise NotImplementedError, tree.tagName
5468ca82a58df68bd0160c5589738a8ca3aa4f29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5468ca82a58df68bd0160c5589738a8ca3aa4f29/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 869, 67, 2620, 12, 3413, 16, 1478, 16, 3504, 16, 1428, 2815, 16, 2826, 4333, 4672, 3536, 9705, 445, 364, 511, 95, 9859, 67, 869, 67, 2620, 5779, 716, 1552, 326, 2863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9859, 67, 869, 67, 2620, 12, 3413, 16, 1478, 16, 3504, 16, 1428, 2815, 16, 2826, 4333, 4672, 3536, 9705, 445, 364, 511, 95, 9859, 67, 869, 67, 2620, 5779, 716, 1552, 326, 2863, ...
_url_regex = re.compile(r"\A((.*/)*(?P<observatory>[^/]+)-(?P<description>[^/]+)-(?P<start>[^/]+)-(?P<duration>[^/]+)\.[^/]+)\Z")
_url_regex = re.compile(r"\A((.*/)*(?P<observatory>[^/]+)-(?P<description>[^/]+)-(?P<start>[^/]+)-(?P<duration>[^/\.]+)\.[^/]+)\Z")
def __abs__(self): return LIGOTimeGPS(0, abs(self.ns()))
6b2e79cffdb63333eaa77eb6722526630791d1c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/6b2e79cffdb63333eaa77eb6722526630791d1c7/lal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5113, 972, 12, 2890, 4672, 327, 511, 3047, 51, 950, 28983, 12, 20, 16, 2417, 12, 2890, 18, 2387, 1435, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5113, 972, 12, 2890, 4672, 327, 511, 3047, 51, 950, 28983, 12, 20, 16, 2417, 12, 2890, 18, 2387, 1435, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def addChange(self, field, old, new):
def addChange(self, field, old, new, user=None, created=None):
def addChange(self, field, old, new): if str(old) != str(new): event = TranscriptEvent('change', field=field, old=old, new=new) self.add(event)
e2c98f9de8fc5d36bcc90e5d315f6c2476132afb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/e2c98f9de8fc5d36bcc90e5d315f6c2476132afb/Transcript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3043, 12, 2890, 16, 652, 16, 1592, 16, 394, 16, 729, 33, 7036, 16, 2522, 33, 7036, 4672, 309, 609, 12, 1673, 13, 480, 609, 12, 2704, 4672, 871, 273, 2604, 9118, 1133, 2668, 3427...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3043, 12, 2890, 16, 652, 16, 1592, 16, 394, 16, 729, 33, 7036, 16, 2522, 33, 7036, 4672, 309, 609, 12, 1673, 13, 480, 609, 12, 2704, 4672, 871, 273, 2604, 9118, 1133, 2668, 3427...
elif type in ("suicide", "crazyhouse", "bughouse"):
elif type in ("suicide", "crazyhouse", "bughouse", "atomic"):
def __parseType (self, type): if type == "wild/fr": variant = FISCHERRANDOMCHESS elif type == "losers": variant = LOSERSCHESS elif type in ("suicide", "crazyhouse", "bughouse"): raise RuntimeError, "We don't support %s yet :X" % type else: variant = NORMALCHESS return variant
9e13cfe70941dd356fa730d30dabe47605562930 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/9e13cfe70941dd356fa730d30dabe47605562930/BoardManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 559, 261, 2890, 16, 618, 4672, 309, 618, 422, 315, 91, 545, 19, 4840, 6877, 5437, 273, 4011, 55, 1792, 9712, 28159, 5007, 1260, 1327, 618, 422, 315, 383, 5944, 6877, 5437, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 559, 261, 2890, 16, 618, 4672, 309, 618, 422, 315, 91, 545, 19, 4840, 6877, 5437, 273, 4011, 55, 1792, 9712, 28159, 5007, 1260, 1327, 618, 422, 315, 383, 5944, 6877, 5437, ...
eg("""canvas.ellipse(x, y, width, height, stroke=1, fill=0)""")
eg("""canvas.ellipse(x1,y1, x2,y2, stroke=1, fill=0)""")
eg(""" def __init__(self,filename, pagesize=(595.27,841.89), bottomup = 1, pageCompression=0, encoding=rl_config.defaultEncoding, verbosity=0): """)
2ca5f3075eca047894aa0f3b47ce2d94c86cc5d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2ca5f3075eca047894aa0f3b47ce2d94c86cc5d5/ch2_graphics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9130, 2932, 3660, 565, 1652, 1001, 2738, 972, 12, 2890, 16, 3459, 16, 4689, 554, 28657, 6162, 25, 18, 5324, 16, 5193, 21, 18, 6675, 3631, 5469, 416, 273, 404, 16, 1363, 15270, 33, 20, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9130, 2932, 3660, 565, 1652, 1001, 2738, 972, 12, 2890, 16, 3459, 16, 4689, 554, 28657, 6162, 25, 18, 5324, 16, 5193, 21, 18, 6675, 3631, 5469, 416, 273, 404, 16, 1363, 15270, 33, 20, 16, ...
name = _('Database') description = _('A database name')
def __str__(self): return self.value is not None and self.value or ""
4861ac46cf6c99143158bef1fb7af73228cacd60 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11787/4861ac46cf6c99143158bef1fb7af73228cacd60/entry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 18, 1132, 353, 486, 599, 471, 365, 18, 1132, 578, 1408, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 18, 1132, 353, 486, 599, 471, 365, 18, 1132, 578, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
suffix = 'mac' else: suffix == 'glx'
if plat['cpu'] == 'i386': suffix = 'maci' else: suffix = 'mac' else: suffix = 'glx'
def matlab(context): context.Message("checking for Matlab ... ") matlab = WhereIs('matlab') if matlab: context.Result(matlab) RSFROOT_lib = os.path.join(context.env.get('RSFROOT'),'lib') MATLABPATH = os.environ.get('MATLABPATH') if MATLABPATH: MATLABPATH += ':' + RSFROOT_lib else: MATLABPATH = RSFROOT_lib context.env['MATLAB'] = 'MATLABPATH=%s %s ' \ '-nosplash -nojvm -nodesktop' %(MATLABPATH, matlab) else: context.Result(context_failure) stderr_write('Please install Matlab.') context.env['MATLAB'] = None sys.exit(unix_failure) context.Message("checking for mex ... ") mex = WhereIs('mex') if mex: context.Result(mex) context.env['MEX'] = mex else: context.Result(context_failure) stderr_write('Please install mex.') context.env['MEX'] = None sys.exit(unix_failure) # See http://www.mathworks.com/access/helpdesk/help/techdoc/ref/mex.html if plat['OS'] == 'linux': if plat['arch'] == '32bit': suffix = 'glx' else: suffix = 'a64' elif plat['OS'] == 'sunos': suffix = 'sol' elif plat['OS'] == 'darwin': suffix = 'mac' else: suffix == 'glx' context.env['MEXSUFFIX'] = '.mex' + suffix
80931747027fe13125609423e08f2fb4019c30b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3143/80931747027fe13125609423e08f2fb4019c30b5/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4834, 7411, 12, 2472, 4672, 819, 18, 1079, 2932, 24609, 364, 14493, 7411, 1372, 9369, 4834, 7411, 273, 12177, 2520, 2668, 7373, 7411, 6134, 309, 4834, 7411, 30, 819, 18, 1253, 12, 7373, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4834, 7411, 12, 2472, 4672, 819, 18, 1079, 2932, 24609, 364, 14493, 7411, 1372, 9369, 4834, 7411, 273, 12177, 2520, 2668, 7373, 7411, 6134, 309, 4834, 7411, 30, 819, 18, 1253, 12, 7373, ...
info.SetDescription(gettext('Neural ciruit visualization')) info.SetCopyright(gettext('Copyright \xa9 2009 - Howard Hughes Medical Institute'))
info.SetDescription(gettext('Developed at the \nJanelia Farm Research Campus by:\n\nFrank Midgley\nVivek Jayaraman\nMitya Chklovskii\nDon Olbris')) info.SetCopyright(gettext('Copyright \xa9 2010 - Howard Hughes Medical Institute'))
def onAboutNeuroptikon(self, event_): info = wx.AboutDialogInfo() info.SetName(gettext('Neuroptikon')) info.SetVersion(__version__.version) info.SetDescription(gettext('Neural ciruit visualization')) info.SetCopyright(gettext('Copyright \xa9 2009 - Howard Hughes Medical Institute')) wx.AboutBox(info)
5314bb5eaa43f66c5ee3a53e0dd67594f1cb19cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6368/5314bb5eaa43f66c5ee3a53e0dd67594f1cb19cd/neuroptikon_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 24813, 6586, 295, 3838, 1766, 265, 12, 2890, 16, 871, 67, 4672, 1123, 273, 7075, 18, 24813, 6353, 966, 1435, 1123, 18, 11924, 12, 29967, 2668, 6586, 295, 3838, 1766, 265, 26112, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 24813, 6586, 295, 3838, 1766, 265, 12, 2890, 16, 871, 67, 4672, 1123, 273, 7075, 18, 24813, 6353, 966, 1435, 1123, 18, 11924, 12, 29967, 2668, 6586, 295, 3838, 1766, 265, 26112, 112...
self.error(400, "Description is required" % service_slug)
self.error(400, "Description is required" % description)
def post(self, version, status_slug): description = self.request.get('description', default_value=None) host = self.request.headers.get('host', 'nohost') if (self.valid_version(version)): if description: status = Status.get_by_slug(status_slug) if status: status.description = description status.put() self.json(status.rest(self.base_url(host, version))) else: self.error(404, "Status %s not found" % status_slug) else: self.error(400, "Description is required" % service_slug) else: self.error(404, "API Version %s not supported" % version)
3581adb7463ac49b5a9188b1c80289bb4b5968b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10465/3581adb7463ac49b5a9188b1c80289bb4b5968b3/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 1177, 16, 1267, 67, 6436, 4672, 2477, 273, 365, 18, 2293, 18, 588, 2668, 3384, 2187, 805, 67, 1132, 33, 7036, 13, 1479, 273, 365, 18, 2293, 18, 2485, 18, 588, 266...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1603, 12, 2890, 16, 1177, 16, 1267, 67, 6436, 4672, 2477, 273, 365, 18, 2293, 18, 588, 2668, 3384, 2187, 805, 67, 1132, 33, 7036, 13, 1479, 273, 365, 18, 2293, 18, 2485, 18, 588, 266...
def add_search(self, dirname, regex):
def add_search(self, dirname, regex):
def add_search(self, dirname, regex): """Starting in dirname, look for files matching regex""" if not self.searches.has_key(dirname): self.searches[dirname] = [ regex ] else: self.searches[dirname].append( regex )
87356cf591306b4d5c4873eaf0576cc574702165 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/87356cf591306b4d5c4873eaf0576cc574702165/DeepScan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3072, 12, 2890, 16, 4283, 16, 3936, 4672, 3536, 11715, 316, 4283, 16, 2324, 364, 1390, 3607, 3936, 8395, 309, 486, 365, 18, 3072, 281, 18, 5332, 67, 856, 12, 12287, 4672, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3072, 12, 2890, 16, 4283, 16, 3936, 4672, 3536, 11715, 316, 4283, 16, 2324, 364, 1390, 3607, 3936, 8395, 309, 486, 365, 18, 3072, 281, 18, 5332, 67, 856, 12, 12287, 4672, 365,...
result = inv.amount_total * (1.0 - debit / (credit + inv.amount_total)) res[inv.id] = round(result,int(config['price_accuracy']))
amount = debit-credit result = inv.amount_total - amount res[inv.id] = result
def _amount_residual(self, cr, uid, ids, name, args, context=None): res = {} data_inv = self.browse(cr, uid, ids) cur_obj = self.pool.get('res.currency') for inv in data_inv: debit = credit = 0.0 for lines in inv.move_lines: if lines.account_id.company_currency_id.id <> inv.currency_id.id: if lines.debit: debit += cur_obj.compute(cr, uid, lines.account_id.company_currency_id.id, inv.currency_id.id, lines.debit) if lines.credit: credit += cur_obj.compute(cr, uid, lines.account_id.company_currency_id.id, inv.currency_id.id, lines.credit) else: debit += lines.debit credit += lines.credit
2d09f1d6391e72b9723729eefe480f7e944f0f6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/2d09f1d6391e72b9723729eefe480f7e944f0f6d/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8949, 67, 455, 5557, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 400, 273, 2618, 501, 67, 5768, 273, 365, 18, 25731, 12, 3353, 16, 4555, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8949, 67, 455, 5557, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 400, 273, 2618, 501, 67, 5768, 273, 365, 18, 25731, 12, 3353, 16, 4555, ...
sys.exit(False)
sys.exit(1)
def createMiroMythVideoDirectory(): '''If the "Miro" directory does not exist in MythVideo then create it. abort if there is an issue creating the directory ''' global localhostname, vid_graphics_dirs, storagegroups, channel_id, flat, simulation, verbose # Check that a MIRO video directory exists # if not then create the dir and add symbolic link to cover/file or icon miro = u'Miro' miro_icon = u'folder.jpg' miro_path = vid_graphics_dirs[u'mythvideo']+miro miro_icon_filename = (u"%s/%s" % (miro_path, miro_icon)) if not os.path.isdir(miro_path): miro_cover = vid_graphics_dirs[u'posterdir']+miro_icon try: if simulation: logger.info(u"Simulation: Create Miro Mythvideo directory (%s)" % (miro_path,)) else: try: os.mkdir(miro_path) except OSError: logger.critical(u"Create Miro Mythvideo directory (%s).\nThis may be due to a permissions error." % (miro_path)) sys.exit(False) if os.path.isfile(miro_cover): if simulation: logger.info(u"Simulation: Copy Miro directory cover file link from (%s) to (%s)" % (miro_cover, miro_icon_filename)) else: try: if not os.path.isfile(os.path.realpath(miro_cover)): useImageMagick(u'convert "%s" "%s"' % (miro_cover, miro_icon_filename)) except OSError: logger.critical(u"File (%s) copy to (%s) failed.\nThis may be due to a permissions error." % (miro_cover, miro_icon_filename)) sys.exit(False) except OSError: logger.critical(u"Creation of MythVideo 'Miro' directory (%s) failed.\nThis may be due to a permissions error." % (miro_path)) sys.exit(False) # end createMiroMythVideoDirectory()
0f178cb606ce1cfb96840e30bd489d420b041e6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/0f178cb606ce1cfb96840e30bd489d420b041e6d/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 49, 11373, 12062, 451, 10083, 2853, 13332, 9163, 2047, 326, 315, 49, 11373, 6, 1867, 1552, 486, 1005, 316, 8005, 451, 10083, 1508, 752, 518, 18, 6263, 309, 1915, 353, 392, 5672, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 49, 11373, 12062, 451, 10083, 2853, 13332, 9163, 2047, 326, 315, 49, 11373, 6, 1867, 1552, 486, 1005, 316, 8005, 451, 10083, 1508, 752, 518, 18, 6263, 309, 1915, 353, 392, 5672, 497...
context.scan("ZODB3", *join("releases", "ZODB3"))
context.scan("ZODB3", here, ".")
def join(*parts): local_full_path = os.path.join(here, *parts) relative_path = posixpath.join(*parts) return local_full_path, relative_path
e745a089a0e52a0aae220e38eabe4d68d279a9c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e745a089a0e52a0aae220e38eabe4d68d279a9c1/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1233, 30857, 6019, 4672, 1191, 67, 2854, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 14852, 16, 380, 6019, 13, 3632, 67, 803, 273, 16366, 803, 18, 5701, 30857, 6019, 13, 327, 1191, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1233, 30857, 6019, 4672, 1191, 67, 2854, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 14852, 16, 380, 6019, 13, 3632, 67, 803, 273, 16366, 803, 18, 5701, 30857, 6019, 13, 327, 1191, 67, ...
return st[stat.ST_MTIME]
return st[stat.ST_ATIME]
def getatime(filename): """Return the last access time of a file, reported by os.stat()""" st = os.stat(filename) return st[stat.ST_MTIME]
162bd855a631ed66f83ff3ed76ae1533de033298 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/162bd855a631ed66f83ff3ed76ae1533de033298/ntpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 270, 494, 12, 3459, 4672, 3536, 990, 326, 1142, 2006, 813, 434, 279, 585, 16, 14010, 635, 1140, 18, 5642, 1435, 8395, 384, 273, 1140, 18, 5642, 12, 3459, 13, 327, 384, 63, 5642, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 270, 494, 12, 3459, 4672, 3536, 990, 326, 1142, 2006, 813, 434, 279, 585, 16, 14010, 635, 1140, 18, 5642, 1435, 8395, 384, 273, 1140, 18, 5642, 12, 3459, 13, 327, 384, 63, 5642, ...
wikipedia.output(u"Login failed. Wrong password or CAPTCHA answer?")
pywikibot.output(u"Login failed. Wrong password or CAPTCHA answer?")
def login(self, api = config.use_api_login, retry = False): if not self.password: # As we don't want the password to appear on the screen, we set # password = True self.password = wikipedia.input( u'Password for user %s on %s:' % (self.username, self.site), password = True)
608981a1811e769d811dd6211e35a67e7339add5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/608981a1811e769d811dd6211e35a67e7339add5/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 1536, 273, 642, 18, 1202, 67, 2425, 67, 5819, 16, 3300, 273, 1083, 4672, 309, 486, 365, 18, 3664, 30, 468, 2970, 732, 2727, 1404, 2545, 326, 2201, 358, 9788, 603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3925, 12, 2890, 16, 1536, 273, 642, 18, 1202, 67, 2425, 67, 5819, 16, 3300, 273, 1083, 4672, 309, 486, 365, 18, 3664, 30, 468, 2970, 732, 2727, 1404, 2545, 326, 2201, 358, 9788, 603, ...
self.head ="" self.foot class PHPGenerator(Generator): def __init__(self): self.head = "<?\n" self.foot = "?>\n" def flatten(self, stripeset, depth=0, context="show"):
self.head = trim(""" def fetch(): _res = "" """) self.foot = trim(""" return _res def show(): print fetch() if __name__=="__main__": show() """) self.initialDepth = 1 def flatten(self, stripeset, depth, context="show"):
def __init__(self): self.head ="" self.foot
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 1978, 273, 3660, 365, 18, 10923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 1978, 273, 3660, 365, 18, 10923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
filetype = "sourcecode.c.h" w("\t%s = {\n\t\tisa = PBXFileReference;\n\t\tfileEncoding = 4;\n\t\tlastKnownFileType = %s;\n\t\tname = \"%s\";\n\t\tpath = \"%s\";\n\t\tsourceTree = \"<group>\";\n\t};\n" % (file.id, filetype, os.path.split(filename)[1], filename))
filetype = "text" w("\t%s = {\n\t\tisa = PBXFileReference;\n\t\tfileEncoding = 4;\n\t\tlastKnownFileType = %s;\n\t\tname = \"%s\";\n\t\tpath = \"%s\";\n\t\tsourceTree = %s;\n\t};\n" % (file.id, filetype, os.path.split(filename)[1], filename, sourceroot))
def pbxFileRefTree(self, tree, path=''): w = self.file.write for name,dir in tree.directories.iteritems(): self.pbxFileRefTree(dir, os.path.join(path, tree.prefix)) for file in tree.files: filename = os.path.join(path, tree.prefix, file.filename) if isinstance(file, mak.sources.hsource): filetype = "sourcecode.c.h" elif isinstance(file, mak.sources.cppsource): filetype = "sourcecode.c.cpp" else: filetype = "sourcecode.c.h" w("\t%s = {\n\t\tisa = PBXFileReference;\n\t\tfileEncoding = 4;\n\t\tlastKnownFileType = %s;\n\t\tname = \"%s\";\n\t\tpath = \"%s\";\n\t\tsourceTree = \"<group>\";\n\t};\n" % (file.id, filetype, os.path.split(filename)[1], filename))
a60ebba76722784f18efcbe8160429b6fe069496 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/a60ebba76722784f18efcbe8160429b6fe069496/xcode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6386, 92, 812, 1957, 2471, 12, 2890, 16, 2151, 16, 589, 2218, 11, 4672, 341, 273, 365, 18, 768, 18, 2626, 364, 508, 16, 1214, 316, 2151, 18, 15121, 18, 2165, 3319, 13332, 365, 18, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6386, 92, 812, 1957, 2471, 12, 2890, 16, 2151, 16, 589, 2218, 11, 4672, 341, 273, 365, 18, 768, 18, 2626, 364, 508, 16, 1214, 316, 2151, 18, 15121, 18, 2165, 3319, 13332, 365, 18, 57...
self.sem.acquire()
def wait(self): """The difference from queue.wait: if there is an only item in the queue and it is an exception, raise it, but keep it in the queue, so that future calls to wait() will raise it again. """ self.sem.acquire() if self.has_error() and len(self.items)==1: # the last item, which is an exception, raise without emptying the queue self.sem.release() getcurrent().throw(*self.items[0][1]) else: result, exc = self.items.popleft() if exc is not None: getcurrent().throw(*exc) return result
51f9cee438f7498269c63a69121e9cf8b16b7d62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/51f9cee438f7498269c63a69121e9cf8b16b7d62/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 4672, 3536, 1986, 7114, 628, 2389, 18, 7048, 30, 309, 1915, 353, 392, 1338, 761, 316, 326, 2389, 471, 518, 353, 392, 1520, 16, 1002, 518, 16, 1496, 3455, 518, 316, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 12, 2890, 4672, 3536, 1986, 7114, 628, 2389, 18, 7048, 30, 309, 1915, 353, 392, 1338, 761, 316, 326, 2389, 471, 518, 353, 392, 1520, 16, 1002, 518, 16, 1496, 3455, 518, 316, 326,...
f = open(self.filename, 'w') f.seek(0) if self.writePID: f.write(str(os.getpid())) else: f.write("a") f.close()
try: f = open(self.filename, 'w+', 0) f.seek(0) if self.writePID: f.write(str(os.getpid())) else: f.write("a") f.close() except (OSError, IOError): pass
def touch(self): f = open(self.filename, 'w') f.seek(0) if self.writePID: f.write(str(os.getpid())) else: f.write("a") f.close() # keep the lock fresh
25f107514524a1df70dfe83af00000860a8e1e68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/25f107514524a1df70dfe83af00000860a8e1e68/lockfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6920, 12, 2890, 4672, 775, 30, 284, 273, 1696, 12, 2890, 18, 3459, 16, 296, 91, 15, 2187, 374, 13, 284, 18, 16508, 12, 20, 13, 309, 365, 18, 2626, 16522, 30, 284, 18, 2626, 12, 701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6920, 12, 2890, 4672, 775, 30, 284, 273, 1696, 12, 2890, 18, 3459, 16, 296, 91, 15, 2187, 374, 13, 284, 18, 16508, 12, 20, 13, 309, 365, 18, 2626, 16522, 30, 284, 18, 2626, 12, 701...
_weighInstallNotUpdown = 3
def getBestUpdownDeltaWeight(self, pkg): weight = self._bestUpdownDeltaWeight.get(pkg); if weight is not None: return weight
aec98224ca89229d16b8f41f05636695a75a2f7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/aec98224ca89229d16b8f41f05636695a75a2f7a/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28782, 1211, 2378, 9242, 6544, 12, 2890, 16, 3475, 4672, 3119, 273, 365, 6315, 12729, 1211, 2378, 9242, 6544, 18, 588, 12, 10657, 1769, 309, 3119, 353, 486, 599, 30, 327, 3119, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28782, 1211, 2378, 9242, 6544, 12, 2890, 16, 3475, 4672, 3119, 273, 365, 6315, 12729, 1211, 2378, 9242, 6544, 18, 588, 12, 10657, 1769, 309, 3119, 353, 486, 599, 30, 327, 3119, 2, -100, ...
context.Message("Please install RPC libraries.\n") sys.exit(1)
if myplatform['distro'] == 'fc6': sys.stderr.write("Needed package: glibc-headers.\n") sys.exit(1) def c99(context, myplatform): context.Message("checking complex support ... ") text = ''' int main(int argc,char* argv[]) { float complex c; float f; f = cabsf(ccosf(c)); return (int) f; }\n''' res = context.TryLink(text,'.c') if res: context.Result(res) else: context.env['CCFLAGS'] = context.env.get('CCFLAGS','')+' -DNO_COMPLEX' context.Result(0) if myplatform['distro'] == 'fc6': context.Message("Package needed for ISO C99 support: glibc-headers")
def libs(context): context.Message("checking libraries ... ") LIBS = context.env.get('LIBS','m') if type(LIBS) is not types.ListType: LIBS = string.split(LIBS) if sys.platform[:5] == 'sunos': LIBS.append('nsl') elif sys.platform[:6] == 'cygwin': LIBS.append('rpc') elif sys.platform[:6] == 'darwin': LIBS.append('mx') elif sys.platform[:7] == 'interix': LIBS.append('rpclib') text = ''' #include <rpc/types.h> #include <rpc/xdr.h> int main(int argc,char* argv[]) { return 0; }\n''' res = context.TryLink(text,'.c') if res: context.Result(str(LIBS)) context.env['LIBS'] = LIBS else: context.Result(0) context.Message("Please install RPC libraries.\n") sys.exit(1)
48f74b0cc7ad87ff031aeb2e4a6d08e2d4a9ecf3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3143/48f74b0cc7ad87ff031aeb2e4a6d08e2d4a9ecf3/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15042, 12, 2472, 4672, 819, 18, 1079, 2932, 24609, 14732, 1372, 9369, 8961, 12692, 273, 819, 18, 3074, 18, 588, 2668, 2053, 12692, 17023, 81, 6134, 309, 618, 12, 2053, 12692, 13, 353, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15042, 12, 2472, 4672, 819, 18, 1079, 2932, 24609, 14732, 1372, 9369, 8961, 12692, 273, 819, 18, 3074, 18, 588, 2668, 2053, 12692, 17023, 81, 6134, 309, 618, 12, 2053, 12692, 13, 353, 48...
def __init__(self, session, title = "Console", cmdlist = None, finishedCallback = None):
def __init__(self, session, title = "Console", cmdlist = None, finishedCallback = None, closeOnSuccess = False):
def __init__(self, session, title = "Console", cmdlist = None, finishedCallback = None): self.skin = Console.skin Screen.__init__(self, session)
d130f81ed02482d5b43cb7da2399a6bc4414af41 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/d130f81ed02482d5b43cb7da2399a6bc4414af41/Console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 2077, 273, 315, 10215, 3113, 1797, 1098, 273, 599, 16, 6708, 2428, 273, 599, 16, 1746, 1398, 4510, 273, 1083, 4672, 365, 18, 7771, 267, 273, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 2077, 273, 315, 10215, 3113, 1797, 1098, 273, 599, 16, 6708, 2428, 273, 599, 16, 1746, 1398, 4510, 273, 1083, 4672, 365, 18, 7771, 267, 273, 96...
def parse_description(self): def gotPage(x): self.debug("got device description from %r" % self.location) data, headers = x tree = utils.parse_xml(data, 'utf-8').getroot() ns = "urn:schemas-upnp-org:device-1-0" d = tree.find('.//{%s}device' % ns) if d == None: return self.device_type = unicode(d.findtext('.//{%s}deviceType' % ns)) self.friendly_name = unicode(d.findtext('.//{%s}friendlyName' % ns)) self.udn = d.findtext('.//{%s}UDN' % ns) icon_list = d.find('.//{%s}iconList' % ns) if icon_list is not None: import urllib2 url_base = "%s://%s" % urllib2.urlparse.urlparse(self.location)[:2] for icon in icon_list.findall('.//{%s}icon' % ns): try: i = {} i['mimetype'] = icon.find('.//{%s}mimetype' % ns).text i['width'] = icon.find('.//{%s}width' % ns).text i['height'] = icon.find('.//{%s}height' % ns).text i['depth'] = icon.find('.//{%s}depth' % ns).text i['url'] = icon.find('.//{%s}url' % ns).text if i['url'].startswith('/'): i['url'] = ''.join((url_base,i['url'])) self.icons.append(i) self.debug("adding icon %r for %r" % (i,self.friendly_name)) except: import traceback self.debug(traceback.format_exc()) self.warning("device %r seems to have an invalid icon description, ignoring that icon" % self.friendly_name) s = d.find('.//{%s}serviceList' % ns) for service in s.findall('.//{%s}service' % ns):
def parse_device(self, d): self.device_type = unicode(d.findtext('.//{%s}deviceType' % ns)) self.friendly_name = unicode(d.findtext('.//{%s}friendlyName' % ns)) self.udn = d.findtext('.//{%s}UDN' % ns) icon_list = d.find('.//{%s}iconList' % ns) if icon_list is not None: import urllib2 url_base = "%s://%s" % urllib2.urlparse.urlparse(self.get_location())[:2] for icon in icon_list.findall('.//{%s}icon' % ns): try: i = {} i['mimetype'] = icon.find('.//{%s}mimetype' % ns).text i['width'] = icon.find('.//{%s}width' % ns).text i['height'] = icon.find('.//{%s}height' % ns).text i['depth'] = icon.find('.//{%s}depth' % ns).text i['url'] = icon.find('.//{%s}url' % ns).text if i['url'].startswith('/'): i['url'] = ''.join((url_base,i['url'])) self.icons.append(i) self.debug("adding icon %r for %r" % (i,self.friendly_name)) except: import traceback self.debug(traceback.format_exc()) self.warning("device %r seems to have an invalid icon description, ignoring that icon" % self.friendly_name) serviceList = d.find('.//{%s}serviceList' % ns) if serviceList: for service in serviceList.findall('.//{%s}service' % ns):
def parse_description(self):
1b647a8639326e2b683f1d3c8843644916009caf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11626/1b647a8639326e2b683f1d3c8843644916009caf/device.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3384, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3384, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/bin/ls
/.
def test_getstatus(self): # This pattern should match 'ls -ld /bin/ls' on any posix # system, however perversely configured. pat = r'''[l-]..x..x..x # It is executable. (May be a symlink.) \s+\d+ # It has some number of links. \s+\w+\s+\w+ # It has a user and group, which may # be named anything. [^/]* # Skip the date. /bin/ls # and end with the name of the file. '''
4993c51b9436bc28126659519c362558fdcdd0d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4993c51b9436bc28126659519c362558fdcdd0d7/test_commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 2327, 12, 2890, 4672, 468, 1220, 1936, 1410, 845, 296, 3251, 300, 1236, 342, 4757, 19, 3251, 11, 603, 1281, 16366, 468, 2619, 16, 14025, 1534, 2496, 2357, 4351, 18, 9670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 2327, 12, 2890, 4672, 468, 1220, 1936, 1410, 845, 296, 3251, 300, 1236, 342, 4757, 19, 3251, 11, 603, 1281, 16366, 468, 2619, 16, 14025, 1534, 2496, 2357, 4351, 18, 9670, ...
1.67750000000000099
1.6775000000000000
def legendre_P(n,x): """ Returns the Legendre polynomial of the first kind for integers n > -1. EXAMPLES: sage: t = PolynomialRing(QQ, "t").gen() sage: legendre_P(2,t) 3/2*t^2 - 1/2 sage: legendre_P(3,1.1) 1.67750000000000099 """ _init() n0 = ZZ(n) # n must be an integer if not(is_Polynomial(x)): return sage_eval(maxima.eval("legendre_p(%s,%s)"%(n0,RR(x)))) R = x.parent() y = R.gen() return sage_eval(maxima.eval("legendre_p(%s,%s)"%(n0,y)),locals={str(y):y})
07b997b0f30cf3292afd8a442aae7d9ff8238bcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/07b997b0f30cf3292afd8a442aae7d9ff8238bcc/orthogonal_polys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7241, 266, 67, 52, 12, 82, 16, 92, 4672, 3536, 2860, 326, 17167, 409, 266, 16991, 434, 326, 1122, 3846, 364, 12321, 290, 405, 300, 21, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7241, 266, 67, 52, 12, 82, 16, 92, 4672, 3536, 2860, 326, 17167, 409, 266, 16991, 434, 326, 1122, 3846, 364, 12321, 290, 405, 300, 21, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 2...
req = request()
req = request(self.manager)
def dofindnew( self, collection): hresult = "" req = request() req.method = "PROPFIND" req.ruri = collection[0] req.headers["Depth"] = "1" if len(collection[1]): req.user = collection[1] if len(collection[2]): req.pswd = collection[2] req.data = data() req.data.value = """<?xml version="1.0" encoding="utf-8" ?>
537d7b7fcc5b1a7663d6cb1c2ca984f1798f2b80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/129/537d7b7fcc5b1a7663d6cb1c2ca984f1798f2b80/caldavtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 4720, 2704, 12, 365, 16, 1849, 4672, 366, 2088, 273, 1408, 1111, 273, 590, 12, 2890, 18, 4181, 13, 1111, 18, 2039, 273, 315, 15811, 42, 2356, 6, 1111, 18, 86, 1650, 273, 1849, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 4720, 2704, 12, 365, 16, 1849, 4672, 366, 2088, 273, 1408, 1111, 273, 590, 12, 2890, 18, 4181, 13, 1111, 18, 2039, 273, 315, 15811, 42, 2356, 6, 1111, 18, 86, 1650, 273, 1849, 6...
node.writexml(writer)
node.writexml(writer, indent, addindent, newl)
def writexml(self, writer): writer.write('<?xml version="1.0" ?>\n') for node in self.childNodes: node.writexml(writer)
5ea004889408dc5478560e140964863c49592819 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5ea004889408dc5478560e140964863c49592819/minidom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 338, 781, 12, 2890, 16, 2633, 4672, 2633, 18, 2626, 2668, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 692, 5333, 82, 6134, 364, 756, 316, 365, 18, 3624, 3205, 30, 756, 18, 5363, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 338, 781, 12, 2890, 16, 2633, 4672, 2633, 18, 2626, 2668, 12880, 2902, 1177, 1546, 21, 18, 20, 6, 692, 5333, 82, 6134, 364, 756, 316, 365, 18, 3624, 3205, 30, 756, 18, 5363, 33...
def build_disk_space_panel():
def _build_disk_space_panel():
def build_disk_space_panel(): v = widgetset.VBox() cbx = widgetset.Checkbox(_('Keep at least this much free space on my drive:')) limit = widgetset.TextEntry() limit.set_width(5) note = widgetset.Label(_('GB')) attach_boolean(cbx, prefs.PRESERVE_DISK_SPACE, (limit,)) attach_float(limit, prefs.PRESERVE_X_GB_FREE, create_float_checker(min=0.0)) v.pack_start(_hbox(cbx, limit, note)) note = widgetset.Label(_('By default, videos expire after')) expire_ops = [(1, _('1 day')), (3, _('3 days')), (6, _('6 days')), (10, _('10 days')), (30, _('1 month')), (-1, _('never'))] expire_menu = widgetset.OptionMenu([op[1] for op in expire_ops]) attach_combo(expire_menu, prefs.EXPIRE_AFTER_X_DAYS, [op[0] for op in expire_ops]) v.pack_start(_hbox(note, expire_menu)) return v
d684bb5fcb21553ab8d362f2165fbb8f241f6e86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/d684bb5fcb21553ab8d362f2165fbb8f241f6e86/preferencespanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 10863, 67, 2981, 67, 13916, 13332, 331, 273, 3604, 542, 18, 58, 3514, 1435, 225, 2875, 92, 273, 3604, 542, 18, 21272, 24899, 2668, 11523, 622, 4520, 333, 9816, 4843, 3476,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 10863, 67, 2981, 67, 13916, 13332, 331, 273, 3604, 542, 18, 58, 3514, 1435, 225, 2875, 92, 273, 3604, 542, 18, 21272, 24899, 2668, 11523, 622, 4520, 333, 9816, 4843, 3476,...
if self.io: return self.io.issrc
if self.issrc != None: return self.issrc
def isSourceRPM(self): """Return 1 if the package is a SRPM."""
dc88d71e11b1a741bd1c86c8eae1ecd6fb52e1f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/dc88d71e11b1a741bd1c86c8eae1ecd6fb52e1f6/package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1830, 54, 12728, 12, 2890, 4672, 3536, 990, 404, 309, 326, 2181, 353, 279, 19145, 12728, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1830, 54, 12728, 12, 2890, 4672, 3536, 990, 404, 309, 326, 2181, 353, 279, 19145, 12728, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.started:
if self._started:
def _NH_CFGSettingsObjectDidChange(self, notification): # update credentials attribute if 'password' in notification.data.modified: self.credentials.password = self.password
221e410e34c3ac7631bd9554b19a7b2b5b5864a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/221e410e34c3ac7631bd9554b19a7b2b5b5864a8/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 19727, 2628, 921, 18250, 3043, 12, 2890, 16, 3851, 4672, 468, 1089, 4448, 1566, 309, 296, 3664, 11, 316, 3851, 18, 892, 18, 7342, 30, 365, 18, 11687, 18, 3664, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 19727, 2628, 921, 18250, 3043, 12, 2890, 16, 3851, 4672, 468, 1089, 4448, 1566, 309, 296, 3664, 11, 316, 3851, 18, 892, 18, 7342, 30, 365, 18, 11687, 18, 3664, 273, ...
if not (self._mvcc and self._setstate_noncurrent(obj)): self.getTransaction().register(obj) self._conflicts[obj._p_oid] = 1 raise ReadConflictError(object=obj)
self._load_before_or_conflict(obj) return
def _setstate(self, obj): # Helper for setstate(), which provides logging of failures.
f673079bfe822e4f9812a8b873a40cbafda945ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/f673079bfe822e4f9812a8b873a40cbafda945ef/Connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 2019, 12, 2890, 16, 1081, 4672, 468, 9705, 364, 444, 2019, 9334, 1492, 8121, 2907, 434, 11720, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 2019, 12, 2890, 16, 1081, 4672, 468, 9705, 364, 444, 2019, 9334, 1492, 8121, 2907, 434, 11720, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
options.build32 = False;
options.build32 = False
def main(): options.buildMac = True; options.buildWindows = True; options.buildLinux = True; options.build32 = True; options.build64 = True; options.buildEval = True; options.buildGpl = True; options.buildCommercial = True; for i in range(0, len(sys.argv)): arg = sys.argv[i]; if arg == "--qt-version": options.qtVersion = sys.argv[i+1] elif arg == "--package-root": options.packageRoot = sys.argv[i+1] elif arg == "--qt-jambi-version": options.qtJambiVersion = sys.argv[i+1] elif arg == "--no-mac": options.buildMac = False; elif arg == "--no-win": options.buildWindows = False; elif arg == "--no-linux": options.buildLinux = False; elif arg == "--no-eval": options.buildEval = False; elif arg == "--no-gpl": options.buildGpl = False; elif arg == "--no-commercial": options.buildCommercial = False; elif arg == "--no-32bit": options.build32 = False; elif arg == "--no-64bit": options.build64 = False; elif arg == "--verbose": pkgutil.VERBOSE = 1 options.startDir = os.getcwd() pkgutil.debug("Options:") print " - Qt Version: " + options.qtVersion print " - Package Root: " + options.packageRoot print " - Qt Jambi Version: " + options.qtJambiVersion print " - P4 User: " + options.p4User print " - P4 Client: " + options.p4Client print " - buildMac: %s" % options.buildMac print " - buildWindows: %s" % options.buildWindows print " - buildLinux: %s" % options.buildLinux print " - buildEval: %s" % options.buildEval print " - buildGpl: %s" % options.buildGpl print " - buildCommercial: %s" % options.buildCommercial print " - build32: %s" % options.build32 print " - build64: %s" % options.build64 pkgutil.debug("preparing source tree...") prepareSourceTree() pkgutil.debug("configuring packages..."); setupPackages() pkgutil.debug(" - %d packages in total..." % len(packages)) # Package and send all packages, finish off by closing all sockets # to make sure they are properly closed... for package in packages: packageAndSend(package) waitForResponse()
9ac47f9ecf789734865da2c0706a0c3dc2eb6813 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4229/9ac47f9ecf789734865da2c0706a0c3dc2eb6813/package_builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 702, 18, 3510, 9990, 273, 1053, 31, 702, 18, 3510, 10399, 273, 1053, 31, 702, 18, 3510, 19475, 273, 1053, 31, 702, 18, 3510, 1578, 273, 1053, 31, 702, 18, 3510, 1105, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 702, 18, 3510, 9990, 273, 1053, 31, 702, 18, 3510, 10399, 273, 1053, 31, 702, 18, 3510, 19475, 273, 1053, 31, 702, 18, 3510, 1578, 273, 1053, 31, 702, 18, 3510, 1105, 273,...
builder.push(ast.Const(builder.space.newtuple([n.value for n in names]), atoms[0].lineno))
builder.push(ast.Const(builder.space.newtuple(values), atoms[0].lineno))
def build_exprlist(builder, nb): """exprlist: expr (',' expr)* [',']""" atoms = get_atoms(builder, nb) if len(atoms) <= 2: builder.push(atoms[0]) else: names = [] isConst = True for index in range(0, len(atoms), 2): names.append(atoms[index]) isConst &= isinstance(atoms[index],ast.Const) if isConst: builder.push(ast.Const(builder.space.newtuple([n.value for n in names]), atoms[0].lineno)) else: builder.push(ast.Tuple(names, atoms[0].lineno))
27df60cfbcbe7bfcbd243da52f8351afe6b69c5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/27df60cfbcbe7bfcbd243da52f8351afe6b69c5d/astbuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 8638, 1098, 12, 9574, 16, 4264, 4672, 3536, 8638, 1098, 30, 3065, 261, 17023, 3065, 17653, 306, 2187, 3546, 8395, 9006, 273, 336, 67, 14937, 12, 9574, 16, 4264, 13, 309, 562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 67, 8638, 1098, 12, 9574, 16, 4264, 4672, 3536, 8638, 1098, 30, 3065, 261, 17023, 3065, 17653, 306, 2187, 3546, 8395, 9006, 273, 336, 67, 14937, 12, 9574, 16, 4264, 13, 309, 562, ...
new_list.append( [item[0]-1, item[1]] )
new_list.append([item[0]-1, item[1]])
def decay_items(self): """ Decays items and removes expired items. """ # Loop through all items for item_key in ITEMS.keys(): new_list = []
7bcda207bb0e5ed90b7cb81e09ad0cbac372efd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11269/7bcda207bb0e5ed90b7cb81e09ad0cbac372efd1/LemonadeMain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22286, 67, 3319, 12, 2890, 4672, 3536, 3416, 8271, 1516, 471, 7157, 7708, 1516, 18, 3536, 468, 9720, 3059, 777, 1516, 364, 761, 67, 856, 316, 467, 1448, 3537, 18, 2452, 13332, 394, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22286, 67, 3319, 12, 2890, 4672, 3536, 3416, 8271, 1516, 471, 7157, 7708, 1516, 18, 3536, 468, 9720, 3059, 777, 1516, 364, 761, 67, 856, 316, 467, 1448, 3537, 18, 2452, 13332, 394, 67, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 297) else quickfix.IntField.__init__(self, 297, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 576, 10580, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 576, 10580, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
if len(self._elements) == len(other._elements): return cmp(self._elements, other._elements) and \ cmp(self._hasse_diagram, other._hasse_diagram)
if len(self._elements) == len(other._elements) and self._elements == other._elements: return self._hasse_diagram == other._hasse_diagram
def __cmp__(self, other): r""" Define comparison for finite posets.
2518d89a98c6c73ae582d9bc45a7618b6eac5246 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/2518d89a98c6c73ae582d9bc45a7618b6eac5246/posets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 13184, 5826, 364, 25922, 949, 2413, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 13184, 5826, 364, 25922, 949, 2413, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def _check_it2i0k0(self):
def check_it2i0k0(self):
def _check_it2i0k0(self): cephes.it2i0k0(1)
2a0571808f9b68627e9152f6f1037281e69d9d98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2a0571808f9b68627e9152f6f1037281e69d9d98/test_cephes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 305, 22, 77, 20, 79, 20, 12, 2890, 4672, 5898, 844, 281, 18, 305, 22, 77, 20, 79, 20, 12, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 305, 22, 77, 20, 79, 20, 12, 2890, 4672, 5898, 844, 281, 18, 305, 22, 77, 20, 79, 20, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def read_drm(self):
def _read_drm(self):
def read_drm(self): self.drmlevel = 0 if '/DRMStorage/Licenses/EUL' in self.entries: self.drmlevel = 5 elif '/DRMStorage/DRMBookplate' in self.entries: self.drmlevel = 3 elif '/DRMStorage/DRMSealed' in self.entries: self.drmlevel = 1 else: return des = msdes.new(self.calculate_deskey()) bookkey = des.decrypt(self.get_file('/DRMStorage/DRMSealed')) if bookkey[0] != '\000': raise LitError('Unable to decrypt title key!') self.bookkey = bookkey[1:9]
006182e5f46ea8f5da43607ab530dff752a12d94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/006182e5f46ea8f5da43607ab530dff752a12d94/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 3069, 81, 12, 2890, 4672, 365, 18, 3069, 81, 2815, 273, 374, 309, 1173, 6331, 49, 3245, 19, 48, 16548, 19, 41, 1506, 11, 316, 365, 18, 8219, 30, 365, 18, 3069, 81, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 896, 67, 3069, 81, 12, 2890, 4672, 365, 18, 3069, 81, 2815, 273, 374, 309, 1173, 6331, 49, 3245, 19, 48, 16548, 19, 41, 1506, 11, 316, 365, 18, 8219, 30, 365, 18, 3069, 81, 28...
sage.misc.persist.save(help, HELP_CACHE)
sage.misc.persist.save(help, HELP_CACHE)
def __init__(self, stacksize=10000000, # 10MB maxread=100000, script_subdirectory=None, logfile=None, server=None, init_list_length=1024): Expect.__init__(self,
86f89936c69cf79b2617a6cbab97276a7bb2101a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/86f89936c69cf79b2617a6cbab97276a7bb2101a/lie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2110, 1467, 33, 21, 17877, 16, 282, 468, 1728, 7969, 943, 896, 33, 21, 11706, 16, 2728, 67, 1717, 5149, 33, 7036, 16, 15204, 33, 7036, 16, 1438, 33, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2110, 1467, 33, 21, 17877, 16, 282, 468, 1728, 7969, 943, 896, 33, 21, 11706, 16, 2728, 67, 1717, 5149, 33, 7036, 16, 15204, 33, 7036, 16, 1438, 33, 70...
product = Infsign[self._sign ^ other._sign]
product = _Infsign[self._sign ^ other._sign]
def fma(self, other, third, context=None): """Fused multiply-add.
c5de0969ca2a82c66efd30bb675f03c2324a3b27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/c5de0969ca2a82c66efd30bb675f03c2324a3b27/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 2540, 12, 2890, 16, 1308, 16, 12126, 16, 819, 33, 7036, 4672, 3536, 42, 3668, 10194, 17, 1289, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 2540, 12, 2890, 16, 1308, 16, 12126, 16, 819, 33, 7036, 4672, 3536, 42, 3668, 10194, 17, 1289, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
import plone.z3cform.base old_call = plone.z3cform.base.FormWrapper.__call__ plone.z3cform.base.FormWrapper.__call__ = lambda self: ''
import plone.z3cform.layout old_call = plone.z3cform.layout.FormWrapper.__call__ plone.z3cform.layout.FormWrapper.__call__ = lambda self: ''
def test_call_checks_fti_is_allowed(self): # When calling the add view, we need to ensure that construction # is allowed # Container, context and request container_mock = self.mocker.mock() context_mock = self.mocker.mock() request_mock = self.mocker.mock() self.expect(context_mock.context).result(container_mock) request_mock['disable_border'] = True # FTI fti_mock = self.mocker.proxy(DexterityFTI(u"testtype")) self.expect(fti_mock.isConstructionAllowed(container_mock)).result(True) self.mock_utility(fti_mock, IDexterityFTI, name=u"testtype") # Override base view's __call__ # XXX: This should be doable with mocker import plone.z3cform.base old_call = plone.z3cform.base.FormWrapper.__call__ plone.z3cform.base.FormWrapper.__call__ = lambda self: '' self.replay() addview = DefaultAddView(context_mock, request_mock, u"testtype") addview() # XXX: Clean up plone.z3cform.base.FormWrapper.__call__ = old_call
3f06316c92d07beb10d82d2694f2f51f7dd799c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12260/3f06316c92d07beb10d82d2694f2f51f7dd799c8/test_views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1991, 67, 12366, 67, 1222, 77, 67, 291, 67, 8151, 12, 2890, 4672, 225, 468, 5203, 4440, 326, 527, 1476, 16, 732, 1608, 358, 3387, 716, 16171, 468, 353, 2935, 225, 468, 4039, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 67, 12366, 67, 1222, 77, 67, 291, 67, 8151, 12, 2890, 4672, 225, 468, 5203, 4440, 326, 527, 1476, 16, 732, 1608, 358, 3387, 716, 16171, 468, 353, 2935, 225, 468, 4039, ...
if IsWhiteListedExtension(file_path_lower): return None if IsWhiteListedPath(file_path_lower): return None if IsWhiteListedRegex(file_path_lower):
if IsWhiteListed(file_path_lower):
def CheckFile(file_path): """Checks file_path's permissions. Args: file_path: The file path to check. Returns: Either a string describing the error if there was one, or None if the file checked out OK. """ if VERBOSE: print 'Checking file: ' + file_path file_path_lower = file_path.lower() # Check to see if it's whitelisted. if IsWhiteListedExtension(file_path_lower): return None if IsWhiteListedPath(file_path_lower): return None if IsWhiteListedRegex(file_path_lower): return None # Not whitelisted, stat the file and check permissions. try: st_mode = os.stat(file_path).st_mode except IOError, e: return 'Failed to stat file: %s' % e except OSError, e: return 'Failed to stat file: %s' % e if EXECUTABLE_PERMISSION & st_mode: error = 'Contains executable permission' if VERBOSE: return '%s: %06o' % (error, st_mode) return error return None
7a92ab95ee1bc4d2af9ef7b3e071e650fa795619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/7a92ab95ee1bc4d2af9ef7b3e071e650fa795619/checkperms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 812, 12, 768, 67, 803, 4672, 3536, 4081, 585, 67, 803, 1807, 4371, 18, 225, 6634, 30, 585, 67, 803, 30, 1021, 585, 589, 358, 866, 18, 225, 2860, 30, 14635, 279, 533, 16868, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 812, 12, 768, 67, 803, 4672, 3536, 4081, 585, 67, 803, 1807, 4371, 18, 225, 6634, 30, 585, 67, 803, 30, 1021, 585, 589, 358, 866, 18, 225, 2860, 30, 14635, 279, 533, 16868, 326...
Arrow from (0,0) to (2,3)
Arrow from (0.0,0.0) to (2.0,3.0)
def __init__(self, xtail, ytail, xhead, yhead, options): """ Create an arrow graphics primitive.
01f914cbafee27fd15b2ce0201d19f8f91bfb786 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/01f914cbafee27fd15b2ce0201d19f8f91bfb786/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 13101, 16, 677, 13101, 16, 619, 1978, 16, 677, 1978, 16, 702, 4672, 3536, 1788, 392, 12274, 17313, 8225, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 619, 13101, 16, 677, 13101, 16, 619, 1978, 16, 677, 1978, 16, 702, 4672, 3536, 1788, 392, 12274, 17313, 8225, 18, 2, -100, -100, -100, -100, -100, -100, ...
self.log.verbose('Current proxy is %s' %self.proxy)
self.log.verbose('Current proxy is %s' %self.proxy)
def __getCurrentUser(self): self.proxy = getGridProxy() if not self.proxy: return self.__errorReport('No proxy found in local environment') else: self.log.verbose('Current proxy is %s' %self.proxy) nickname = getVOMSAttributes(self.proxy,'nickname') if nickname['OK']: owner = nickname['Value'] self.log.verbose('Established user nickname from current proxy ( %s )' %(owner)) if owner: self.log.verbose('Obtained nickname from VOMS proxy => %s' %owner) return S_OK(owner) else: self.log.verbose('Could not get nickname from current proxy credential, trying CS')
1811a0d5110f3d167209cf9b01681f765604a038 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/1811a0d5110f3d167209cf9b01681f765604a038/DiracProduction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 3935, 1299, 12, 2890, 4672, 365, 18, 5656, 273, 336, 6313, 3886, 1435, 309, 486, 365, 18, 5656, 30, 327, 365, 16186, 1636, 4820, 2668, 2279, 2889, 1392, 316, 1191, 3330, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 3935, 1299, 12, 2890, 4672, 365, 18, 5656, 273, 336, 6313, 3886, 1435, 309, 486, 365, 18, 5656, 30, 327, 365, 16186, 1636, 4820, 2668, 2279, 2889, 1392, 316, 1191, 3330, 6134,...
thr.Thread.__init__(self)
DamnThread.__init__(self)
def __init__(self, parent): self.parent = parent self.sourceuri = parent.videos[parent.converting] self.outdir = None self.filename = None self.tmpfilename = None self.moduleextraargs = [] thr.Thread.__init__(self)
371889325452e864707c025214d1b8c204b791d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/371889325452e864707c025214d1b8c204b791d0/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 365, 18, 2938, 273, 982, 365, 18, 3168, 1650, 273, 982, 18, 6768, 538, 63, 2938, 18, 6283, 310, 65, 365, 18, 659, 1214, 273, 599, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 365, 18, 2938, 273, 982, 365, 18, 3168, 1650, 273, 982, 18, 6768, 538, 63, 2938, 18, 6283, 310, 65, 365, 18, 659, 1214, 273, 599, 365, 18, ...
if not self.rdfns in self.namespaces.keys(): self.namespaces[self.rdfns] = 'rdf'
def start(self): if not self.rdfns in self.namespaces.keys(): self.namespaces[self.rdfns] = 'rdf'
1313813332adaaa3197b56a7142c1558cf12f9f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/1313813332adaaa3197b56a7142c1558cf12f9f2/serializer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 309, 486, 365, 18, 19299, 2387, 316, 365, 18, 16078, 18, 2452, 13332, 365, 18, 16078, 63, 2890, 18, 19299, 2387, 65, 273, 296, 19299, 11, 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, 0, 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, 787, 12, 2890, 4672, 309, 486, 365, 18, 19299, 2387, 316, 365, 18, 16078, 18, 2452, 13332, 365, 18, 16078, 63, 2890, 18, 19299, 2387, 65, 273, 296, 19299, 11, 2, -100, -100, -100, -100...
review_requests = get_review_requests_to_group(request.user, group)
review_requests = get_review_requests_to_group(group, request.user)
def dashboard(request, limit=50, template_name='reviews/dashboard.html'): view = request.GET.get('view', 'incoming') if view == 'outgoing': review_requests = \ get_review_requests_from_user(request.user, request.user.username) elif view == 'to-me': review_requests = \ get_review_requests_to_user_directly(request.user, request.user.username) elif view == 'to-group': group = request.GET.get('group', None) if group != None: review_requests = get_review_requests_to_group(request.user, group) else: review_requests = \ get_review_requests_to_user_groups(request.user, request.user.username) else: # "incoming" or invalid review_requests = get_review_requests_to_user(request.user, request.user.username) review_requests = review_requests[:limit] return render_to_response(template_name, RequestContext(request, { 'review_requests': review_requests, }))
7768372a31cb0ad888bbb130ce8310a5cd61e4d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/7768372a31cb0ad888bbb130ce8310a5cd61e4d0/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11825, 12, 2293, 16, 1800, 33, 3361, 16, 1542, 67, 529, 2218, 266, 7061, 19, 13479, 18, 2620, 11, 4672, 1476, 273, 590, 18, 3264, 18, 588, 2668, 1945, 2187, 296, 31033, 6134, 225, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11825, 12, 2293, 16, 1800, 33, 3361, 16, 1542, 67, 529, 2218, 266, 7061, 19, 13479, 18, 2620, 11, 4672, 1476, 273, 590, 18, 3264, 18, 588, 2668, 1945, 2187, 296, 31033, 6134, 225, 309,...