<commit_before>require 'generator_spec'
require File.expand_path("../../lib/generators/postgis/setup_generator", __FILE__)

RSpec.describe Postgis::SetupGenerator, type: :generator do
  destination File.expand_path('../../tmp', __FILE__)

  before(:each) do
    prepare_destination
    run_generator
  end<commit_msg>Modified setup_generator_spec to not throw deprecation warnings.<commit_after>require 'generator_spec/test_case'
require File.expand_path("../../lib/generators/postgis/setup_generator", __FILE__)

RSpec.describe Postgis::SetupGenerator do
  include GeneratorSpec::TestCase

  destination File.expand_path('../../tmp', __FILE__)

  before(:each) do
    prepare_destination
    run_generator
  end
{'fraction_non_alphanumeric': 0.11657303370786516, 'fraction_numerical': 0.0, 'mean_word_length': 5.254385964912281, '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': '4865136', 'n_tokens_mistral': 209, 'n_tokens_neox': 202, 'n_words': 41}