<commit_before>module Docs
  class Yii < UrlScraper
    self.type = 'yii'

    options[:attribution] = <<-HTML
      &copy; 2008&ndash;2016 by Yii Software LLC<br>
      Licensed under the three clause BSD license.
    HTML

    version '2.0' do
      self.release = '2.0.8'
      self.base_url = 'http://www.yiiframework.com/doc-2.0/'
      self.root_path = 'index.html'

      html_filters.push 'yii/clean_html_v2', 'yii/entries_v2'

      options[:container] = 'div[role=main]'
      options[:skip_patterns] = [/\Ayii-apidoc/]
    end

    version '1.1' do
      self.release = '1.1.17'
      self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'

      html_filters.push 'yii/clean_html_v1', 'yii/entries_v1'

      options[:container] = '.grid_9'
    end
  end
end<commit_msg>Update Yii documentation (2.0.9, 1.1.17)<commit_after>module Docs
  class Yii < UrlScraper
    self.type = 'yii'

    options[:attribution] = <<-HTML
      &copy; 2008&ndash;2016 by Yii Software LLC<br>
      Licensed under the three clause BSD license.
    HTML

    version '2.0' do
      self.release = '2.0.9'
      self.base_url = 'http://www.yiiframework.com/doc-2.0/'
      self.root_path = 'index.html'

      html_filters.push 'yii/clean_html_v2', 'yii/entries_v2'

      options[:container] = 'div[role=main]'
      options[:skip_patterns] = [/\Ayii-apidoc/]
    end

    version '1.1' do
      self.release = '1.1.17'
      self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'

      html_filters.push 'yii/clean_html_v1', 'yii/entries_v1'

      options[:container] = '.grid_9'
    end
  end
end
{'fraction_non_alphanumeric': 0.14696685428392744, 'fraction_numerical': 0.039399624765478425, 'mean_word_length': 2.5794183445190155, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4193284', 'n_tokens_mistral': 653, 'n_tokens_neox': 605, 'n_words': 113}