<commit_before># encoding: utf-8

require File.dirname(__FILE__) + '/test_helper'

class SluggedModelTest < Test::Unit::TestCase

  context "A slugged model using single table inheritance" do

    setup do
      Novel.friendly_id_options = FriendlyId::DEFAULT_FRIENDLY_ID_OPTIONS.merge(:column => :title, :use_slug => true)
      Novel.delete_all
      Slug.delete_all
      @novel = Novel.new :title => "Test novel"
      @novel.save!<commit_msg>Fix a typo in an existing test name<commit_after># encoding: utf-8

require File.dirname(__FILE__) + '/test_helper'

class STIModelTest < Test::Unit::TestCase

  context "A slugged model using single table inheritance" do

    setup do
      Novel.friendly_id_options = FriendlyId::DEFAULT_FRIENDLY_ID_OPTIONS.merge(:column => :title, :use_slug => true)
      Novel.delete_all
      Slug.delete_all
      @novel = Novel.new :title => "Test novel"
      @novel.save!
{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.0021929824561403508, 'mean_word_length': 3.9619565217391304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3693889', 'n_tokens_mistral': 302, 'n_tokens_neox': 295, 'n_words': 72}