<commit_before>module Docs
  class Tensorflow < UrlScraper
    self.name = 'TensorFlow'
    self.type = 'tensorflow'
    self.links = {
      home: 'https://www.tensorflow.org/',
      code: 'https://github.com/tensorflow/tensorflow'
    }

    html_filters.push 'tensorflow/entries', 'tensorflow/clean_html'

    options[:container] = '#content'

    options[:attribution] = <<-HTML
      &copy; 2015 The TensorFlow Authors. All rights reserved.<br>
      Licensed under the Apache 2.0 License.
    HTML

    version 'Python' do
      self.base_url = 'https://www.tensorflow.org/versions/r0.9/api_docs/python/'
      self.release = '0.9'
    end

    version 'C++' do
      self.base_url = 'https://www.tensorflow.org/versions/r0.9/api_docs/cc/'
      self.release = '0.9'

      options[:fix_urls] = ->(url) {
        url.sub! '/api_docs/cc/class', '/api_docs/cc/Class'
        url.sub! '/api_docs/cc/struct', '/api_docs/cc/Struct'
        url
      }
    end
  end
end
<commit_msg>Update TensorFlow documentation (0.10, 0.10)<commit_after>module Docs
  class Tensorflow < UrlScraper
    self.name = 'TensorFlow'
    self.type = 'tensorflow'
    self.links = {
      home: 'https://www.tensorflow.org/',
      code: 'https://github.com/tensorflow/tensorflow'
    }

    html_filters.push 'tensorflow/entries', 'tensorflow/clean_html'

    options[:container] = '#content'

    options[:attribution] = <<-HTML
      &copy; 2015 The TensorFlow Authors. All rights reserved.<br>
      Licensed under the Apache 2.0 License.
    HTML

    version 'Python' do
      self.base_url = 'https://www.tensorflow.org/versions/r0.10/api_docs/python/'
      self.release = '0.10'
    end

    version 'C++' do
      self.base_url = 'https://www.tensorflow.org/versions/r0.10/api_docs/cc/'
      self.release = '0.10'

      options[:fix_urls] = ->(url) {
        url.sub! '/api_docs/cc/class', '/api_docs/cc/Class'
        url.sub! '/api_docs/cc/struct', '/api_docs/cc/Struct'
        url
      }
    end
  end
end

{'fraction_non_alphanumeric': 0.1492760858711932, 'fraction_numerical': 0.018971542685971045, 'mean_word_length': 2.509632224168126, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, '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': '4530516', 'n_tokens_mistral': 718, 'n_tokens_neox': 687, 'n_words': 130}