<commit_before>require 'nokogiri'
require 'open-uri'
require 'public_suffix'
require 'gman'
require 'net/http'
require "dnsruby"
require 'yaml'
require 'sniffles'
require "addressable/uri"
require 'typhoeus'
require 'json'
require File.expand_path './site-inspector/cache',      File.dirname(__FILE__)
require File.expand_path './site-inspector/sniffer',    File.dirname(__FILE__)
require File.expand_path './site-inspector/dns',        File.dirname(__FILE__)
require File.expand_path './site-inspector/compliance', File.dirname(__FILE__)

class SiteInspector

  def initialize(domain)
    domain = domain.sub /^http\:/, ""
    domain = domain.sub /^\/+/, ""<commit_msg>use require_relative instead of full path<commit_after>require 'nokogiri'
require 'open-uri'
require 'public_suffix'
require 'gman'
require 'net/http'
require "dnsruby"
require 'yaml'
require 'sniffles'
require "addressable/uri"
require 'typhoeus'
require 'json'

require_relative 'site-inspector/cache'
require_relative 'site-inspector/sniffer'
require_relative 'site-inspector/dns'
require_relative 'site-inspector/compliance'
require_relative 'site-inspector/headers'

class SiteInspector

  def initialize(domain)
    domain = domain.sub /^http\:/, ""
    domain = domain.sub /^\/+/, ""
{'fraction_non_alphanumeric': 0.13174603174603175, 'fraction_numerical': 0.0, 'mean_word_length': 5.305, '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': '1837709', 'n_tokens_mistral': 423, 'n_tokens_neox': 401, 'n_words': 93}