<commit_before># -*- coding: utf-8 -*-
class WebViewController < UIViewController
  attr_accessor :bookmark

  def viewDidLoad
    super

    @bookmark_requested = {}
    @link_clicked = nil

    @document_title = nil
    self.backGestureEnabled = true
    self.navigationItem.backBarButtonItem = UIBarButtonItem.titled("戻る")
    self.view.backgroundColor = '#fff'.uicolor
    self.initialize_toolbar

    self.navigationItem.titleView = TitleLabel.new.tap do |label|
      label.frame = self.navigationController.navigationBar.bounds
      label.text = @bookmark.title
    end

    ## WebView
    @proxy = NJKWebViewProgress.alloc.init
    self.view << @webview = HBFav2::WebView.new.tap do |v|
      v.scalesPageToFit = true
      v.loadRequest(NSURLRequest.requestWithURL(@bookmark.link.nsurl))
      v.delegate = @proxy
    end

    @proxy.webViewProxyDelegate = self
    @proxy.progressDelegate = self<commit_msg>backgroundcolor 指定<commit_after># -*- coding: utf-8 -*-
class WebViewController < UIViewController
  attr_accessor :bookmark

  def viewDidLoad
    super

    @bookmark_requested = {}
    @link_clicked = nil

    @document_title = nil
    self.backGestureEnabled = true
    self.navigationItem.backBarButtonItem = UIBarButtonItem.titled("戻る")
    self.view.backgroundColor = '#fff'.uicolor
    self.initialize_toolbar

    self.navigationItem.titleView = TitleLabel.new.tap do |label|
      label.frame = self.navigationController.navigationBar.bounds
      label.text = @bookmark.title
    end

    ## WebView
    @proxy = NJKWebViewProgress.alloc.init
    self.view << @webview = HBFav2::WebView.new.tap do |v|
      v.scalesPageToFit = true
      v.backgroundColor = '#fff'.uicolor
      v.loadRequest(NSURLRequest.requestWithURL(@bookmark.link.nsurl))
      v.delegate = @proxy
    end

    @proxy.webViewProxyDelegate = self
    @proxy.progressDelegate = self
{'fraction_non_alphanumeric': 0.10201912858660998, 'fraction_numerical': 0.0021253985122210413, 'mean_word_length': 3.348729792147806, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1542403', 'n_tokens_mistral': 610, 'n_tokens_neox': 578, 'n_words': 102}