<commit_before>require 'spec_helper'

describe SiteInspector::Endpoint::Accessibility do

  before do
    stub_request(:get, "https://example.com/").to_return(:status => 200 )
  end

  subject do
    endpoint = SiteInspector::Endpoint.new("https://example.com")
    SiteInspector::Endpoint::Accessibility.new(endpoint)<commit_msg>use http endpoint<commit_after>require 'spec_helper'

describe SiteInspector::Endpoint::Accessibility do

  before do
    stub_request(:get, "http://example.com/").to_return(:status => 200 )
  end

  subject do
    endpoint = SiteInspector::Endpoint.new("http://example.com")
    SiteInspector::Endpoint::Accessibility.new(endpoint)
{'fraction_non_alphanumeric': 0.13595166163141995, 'fraction_numerical': 0.00906344410876133, 'mean_word_length': 5.564356435643564, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4624407', 'n_tokens_mistral': 203, 'n_tokens_neox': 191, 'n_words': 33}