<commit_before>require 'mechanize'
require 'net/telnet'

module Crawler
  class ModuleBase
    attr_reader :agent

    def self.run(*args)
      new(*args).run
    end

    def initialize
      init_agent
    end

    def init_agent
      @agent = Mechanize.new
      # @agent.set_proxy('w3c.widzew.net', 8080)

      # disabling keep alive will make sure we can easier switch circuit in tor
      @agent.keep_alive = false
      # randomize user agent
      @agent.user_agent_alias = Mechanize::AGENT_ALIASES.keys.sample
    end

    # @abstract
    def run
      raise 'You must define #run method'
    end
  end
end
<commit_msg>Remove commented out code with proxy details<commit_after>require 'mechanize'
require 'net/telnet'

module Crawler
  class ModuleBase
    attr_reader :agent

    def self.run(*args)
      new(*args).run
    end

    def initialize
      init_agent
    end

    def init_agent
      @agent = Mechanize.new

      # disabling keep alive will make sure we can easier switch circuit in tor
      @agent.keep_alive = false
      # randomize user agent
      @agent.user_agent_alias = Mechanize::AGENT_ALIASES.keys.sample
    end

    # @abstract
    def run
      raise 'You must define #run method'
    end
  end
end

{'fraction_non_alphanumeric': 0.06752411575562701, 'fraction_numerical': 0.0040192926045016075, 'mean_word_length': 2.5269121813031163, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3070838', 'n_tokens_mistral': 399, 'n_tokens_neox': 381, 'n_words': 118}