<commit_before>var ItemAssistant = Class.create(BaseAssistant, {
  initialize: function($super, google, feed, item) {
    $super()
    this.google = google
    this.feed = feed
    this.item = item
  },
  
  ready: function($super) {
    $super()
    this.controller.get("header").update(this.item.title)
    this.controller.get("summary").update(this.cleanUp(this.item.summary.content))
  },
  
  cleanUp: function(content) {
    return content.replace(/<iframe[^>]+>/g, '')
  }
})<commit_msg>remove scripts, objects, and iframes from article<commit_after>var ItemAssistant = Class.create(BaseAssistant, {
  initialize: function($super, google, feed, item) {
    $super()
    this.google = google
    this.feed = feed
    this.item = item
  },
  
  ready: function($super) {
    $super()
    this.controller.get("header").update(this.item.title)
    this.controller.get("summary").update(this.cleanUp(this.item.summary.content))
  },
  
  cleanUp: function(content) {
    var cleaned = content.replace(/<script.*?<\/script.*?>/g , "")
    cleaned = cleaned.replace(/<iframe.*?<\/iframe.*?>/g , "")
    cleaned = cleaned.replace(/<object.*?<\/object.*?>/g , "")
    return cleaned
  }
})
{'fraction_non_alphanumeric': 0.18281381634372368, 'fraction_numerical': 0.0, 'mean_word_length': 3.5343511450381677, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1188025', 'n_tokens_mistral': 389, 'n_tokens_neox': 386, 'n_words': 61}