Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(49)  |  Call(49)  |  Derive(0)  |  Import(0)

src/c/h/challenge2011-HEAD/bugextraction/bugs/chromeHTMLBug.py   challenge2011(Download)
  def __init__(self,textlines,bugid):
    if hasattr(ABug, '__init__'):
      ABug.__init__(self)
    self.lines = textlines
    self.addAttribute("bugid",bugid)
  def readCreator(self,i,lines):
    if '<div class="author">' in lines[i]:
      self.addAttribute("creator"     , lines[i+1].replace("Reported by ","").replace(',','').replace('\n',''))
      self.addAttribute("creationDate", lines[i+2].split('"')[3])
 
  def readAssigned(self,i,lines):
    if '<tr><th align="left">Owner:&nbsp;</th><td>' in lines[i]:
      self.addAttribute("assigned", lines[i+2].replace("\n",""))
  def readLabel(self,i,lines):
    if '<a href="list?q=label:' in lines[i] and not '<tr><td colspan="2">' in lines[i]:
      if not self.attributes.has_key("label"):
        self.addAttribute("label",lines[i].split('"')[1].split(":")[1] + " -- " + lines[i+1].split('"')[1].replace('\n',''))
      else:

src/c/h/challenge2011-HEAD/bugextraction/bugs/bugzillaHTMLBug.py   challenge2011(Download)
    self.lines = textlines
    self.historylines = historytextlines
    self.addAttribute("bugid",bugid)
    self.namedict = {}
    self.namedict["Blocks"] = 'blocks'
  def readCreator(self,i,lines):
    if '<b>Reported</b>' in lines[i]:
      if len(lines[i+2].split('>')) > 3:
        self.addAttribute("creator"     , lines[i+2].split('>')[3].split('<')[0])
      else:
        self.addAttribute("creator"     , lines[i+2].split('>')[2].replace("\n",""))
      self.addAttribute("creationDate", string.strip(lines[i+2].split('>')[1].split('<')[0].replace('by','')))
  def readAssigned(self,i,lines):
    if 'page.cgi?id=fields.html#assigned_to' in lines[i]:
      if len(lines[i+2].split('>')) > 3:
        self.addAttribute("assigned", lines[i+2].split('>')[3].split('<')[0])
      else:

src/c/h/challenge2011-HEAD/bugextraction/bugs/sourceForgeHTMLBug.py   challenge2011(Download)
  def __init__(self,textlines,bugid):
    if hasattr(ABug, '__init__'):
      ABug.__init__(self)
    self.lines = textlines
    self.addAttribute("bugid",bugid)
  def readCreation(self,i,lines):
    if "Submited:" in lines[i]:
      self.addAttribute("creator", self.removeNoise(lines[i+1]).split('<p>')[1].split(' - ')[0])
      self.addAttribute("creationDate", self.removeNoise(lines[i+1]).split('</p>')[0].split(' - ')[1])
 
  def readStatus(self,i,lines):
    if "Status:" in lines[i]:        
      self.addAttribute("status", self.removeNoise(lines[i+1]).split('<p>')[1].split('</p>')[0])
  def readResolution(self,i,lines):
    if "<label>Resolution:</label>" in lines[i]:        
      self.addAttribute("resolution", self.removeNoise(lines[i+1]).split('<p>')[1].split('</p>')[0])
 
  def readAssigned(self,i,lines):