<commit_before>require "integration_test_helper"
require "app"
require "rest-client"
require "nokogiri"

class SitemapTest < IntegrationTest

  def setup
    stub_backends_with(
      {
        primary: {
          type: "elasticsearch",
          server: "localhost",
          port: 9200,
          index_name: "mainstream"
        },
        mainstream: {
          type: "elasticsearch",
          server: "localhost",
          port: 9200,
          index_name: "mainstream"
        },
        detailed: {
          type: "elasticsearch",
          server: "localhost",
          port: 9200,
          index_name: "detailed"
        }
      }
    )<commit_msg>Change test index names to avoid clobbering in dev.<commit_after>require "integration_test_helper"
require "app"
require "rest-client"
require "nokogiri"

class SitemapTest < IntegrationTest

  def setup
    stub_backends_with(
      {
        primary: {
          type: "elasticsearch",
          server: "localhost",
          port: 9200,
          index_name: "mainstream_test"
        },
        mainstream: {
          type: "elasticsearch",
          server: "localhost",
          port: 9200,
          index_name: "mainstream_test"
        },
        detailed: {
          type: "elasticsearch",
          server: "localhost",
          port: 9200,
          index_name: "detailed_test"
        }
      }
    )
{'fraction_non_alphanumeric': 0.09761388286334056, 'fraction_numerical': 0.01735357917570499, 'mean_word_length': 1.7903225806451613, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5695124', 'n_tokens_mistral': 412, 'n_tokens_neox': 398, 'n_words': 90}