<commit_before>require 'erb'
require 'generator/files'

module Generator
  module Files
    module TrackFiles
      def minitest_tests
        MinitestTestsFile.new(filename: File.join(exercise_path, minitest_tests_filename))
      end

      def example_solution
        ExampleSolutionFile.new(filename: File.join(solutions_path, example_filename))
      end

      def tests_template
        TestsTemplateFile.new(filename: tests_template_absolute_filename)
      end

      def test_case
        TestCaseFile.new(filename: File.join(generator_path, case_filename))
      end

      private
      def exercise_path
        File.join(paths.track, 'exercises', slug)
      end

      def meta_path
        File.join(exercise_path, '.meta')
      end

      def generator_path
        File.join(meta_path, 'generator')
      end

      def solutions_path
        File.join(meta_path, 'solutions')
      end

      def minitest_tests_filename
        "#{slug_underscored}_test.rb"
      end

      def example_filename
        "#{slug_underscored}.rb"
      end

      def tests_template_absolute_filename
        if File.exist?(track_tests_template_filename)
  track_tests_template_filename
else
  default_tests_template_filename
end
      end

      def track_tests_template_filename
        File.join(meta_path, 'generator', tests_template_filename)
      end

      def default_tests_template_filename
        File.join(paths.track, 'lib', 'generator', tests_template_filename)
      end<commit_msg>Fix Layout/ElseAlignment violations<commit_after>require 'erb'
require 'generator/files'

module Generator
  module Files
    module TrackFiles
      def minitest_tests
        MinitestTestsFile.new(filename: File.join(exercise_path, minitest_tests_filename))
      end

      def example_solution
        ExampleSolutionFile.new(filename: File.join(solutions_path, example_filename))
      end

      def tests_template
        TestsTemplateFile.new(filename: tests_template_absolute_filename)
      end

      def test_case
        TestCaseFile.new(filename: File.join(generator_path, case_filename))
      end

      private
      def exercise_path
        File.join(paths.track, 'exercises', slug)
      end

      def meta_path
        File.join(exercise_path, '.meta')
      end

      def generator_path
        File.join(meta_path, 'generator')
      end

      def solutions_path
        File.join(meta_path, 'solutions')
      end

      def minitest_tests_filename
        "#{slug_underscored}_test.rb"
      end

      def example_filename
        "#{slug_underscored}.rb"
      end

      def tests_template_absolute_filename
        if File.exist?(track_tests_template_filename)
  track_tests_template_filename
        else
  default_tests_template_filename
end
      end

      def track_tests_template_filename
        File.join(meta_path, 'generator', tests_template_filename)
      end

      def default_tests_template_filename
        File.join(paths.track, 'lib', 'generator', tests_template_filename)
      end
{'fraction_non_alphanumeric': 0.06427158866183257, 'fraction_numerical': 0.0, 'mean_word_length': 2.8032581453634084, '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': '4021401', 'n_tokens_mistral': 895, 'n_tokens_neox': 862, 'n_words': 171}