<commit_before>class AboutScreen < PM::WebScreen

  title "About"

  def content
    "AboutView.html"
  end

  def will_appear
    App::Persistence["seenAbout"] = "yes"
    @view_loaded ||= begin
      self.navigationController.navigationBar.barStyle = UIBarStyleBlack
      set_nav_bar_right_button "Done", action: :close, type: UIBarButtonItemStyleDone
    end
  end

  #debugging function to output the html of the webview once loaded.
  #def webViewDidFinishLoad(webView)
  #  puts self.view.stringByEvaluatingJavaScriptFromString("document.getElementsByTagName('html')[0].outerHTML")
  #end

end<commit_msg>Update about screen for iOS 7<commit_after>class AboutScreen < PM::WebScreen

  title "About"

  def content
    "AboutView.html"
  end

  def will_appear
    App::Persistence["seenAbout"] = "yes"
    @view_loaded ||= begin
      self.navigationController.navigationBar.barStyle = UIBarStyleBlack if Device.ios_version.to_f < 7.0
      set_nav_bar_right_button "Close", action: :close, type: UIBarButtonItemStyleDone
    end
  end

  #debugging function to output the html of the webview once loaded.
  #def webViewDidFinishLoad(webView)
  #  puts self.view.stringByEvaluatingJavaScriptFromString("document.getElementsByTagName('html')[0].outerHTML")
  #end

end
{'fraction_non_alphanumeric': 0.09105180533751962, 'fraction_numerical': 0.003924646781789639, 'mean_word_length': 4.616740088105727, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, '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': '4908970', 'n_tokens_mistral': 410, 'n_tokens_neox': 397, 'n_words': 91}