<commit_before>require_relative 'grabbers/base'
require_relative 'grabbers/facebook'
require_relative 'grabbers/vkontakte'
require_relative 'grabbers/instagram'
require_relative 'grabbers/twitter'
require_relative 'grabbers/mailru'
require_relative 'grabbers/google_plus'
require_relative 'grabbers/vimeo'

class IdsPlease
  module Grabbers

    NETWORKS = {
      facebook: IdsPlease::Grabbers::Facebook,
      vkontakte: IdsPlease::Grabbers::Vkontakte,
      twitter: IdsPlease::Grabbers::Twitter,
      instagram: IdsPlease::Grabbers::Instagram,
      mailru: IdsPlease::Grabbers::Mailru,
      google_plus: IdsPlease::Grabbers::GooglePlus,
      vimeo: IdsPlease::Grabbers::Vimeo
    }

    def self.each
      NETWORKS.values.each { |n| yield n }
    end

    def self.by_symbol(sym)
      NETWORKS[sym]
    end

  end
end<commit_msg>Add youtube to grabbers list<commit_after>require_relative 'grabbers/base'
require_relative 'grabbers/facebook'
require_relative 'grabbers/vkontakte'
require_relative 'grabbers/instagram'
require_relative 'grabbers/twitter'
require_relative 'grabbers/mailru'
require_relative 'grabbers/google_plus'
require_relative 'grabbers/vimeo',
require_relative 'grabbers/youtube'

class IdsPlease
  module Grabbers

    NETWORKS = {
      facebook: IdsPlease::Grabbers::Facebook,
      vkontakte: IdsPlease::Grabbers::Vkontakte,
      twitter: IdsPlease::Grabbers::Twitter,
      instagram: IdsPlease::Grabbers::Instagram,
      mailru: IdsPlease::Grabbers::Mailru,
      google_plus: IdsPlease::Grabbers::GooglePlus,
      vimeo: IdsPlease::Grabbers::Vimeo,
      youtube: IdsPlease::Grabbers::Youtube
    }

    def self.each
      NETWORKS.values.each { |n| yield n }
    end

    def self.by_symbol(sym)
      NETWORKS[sym]
    end

  end
end
{'fraction_non_alphanumeric': 0.09915492957746479, 'fraction_numerical': 0.0, 'mean_word_length': 4.584905660377358, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5494282', 'n_tokens_mistral': 635, 'n_tokens_neox': 615, 'n_words': 103}