<commit_before>class Build
    module Job
      class Test
        class Perl < Test
          class Config < Hashr
          end
          def install
            "cpanm --installdeps ."
          end

          def script
            if uses_module_build?
              run_tests_with_mb
            else
              run_tests_with_eumm
            end
          end

          protected

          def uses_module_build?
            @uses_module_build ||= shell.file_exists?('Build.PL')
          end

          def uses_eumm
            @uses_eumm ||= shell.file_exists?('Makefile.PL')
          end

          def run_tests_with_mb
            "perl Build.PL && ./Build test"
          end

          def run_tests_with_eumm
            "perl Makefile.PL && make test"
          end

        end
      end
    end
  end
<commit_msg>announce versions for increased debugability<commit_after>class Build
    module Job
      class Test
        class Perl < Test
          class Config < Hashr
          end
          def setup
            super
            announce_versions
          end
          def install
            "cpanm --installdeps ."
          end

          def announce_versions
            shell.execute("perl --version")
            shell.execute("cpanm --version")
          end

          def script
            if uses_module_build?
              run_tests_with_mb
            else
              run_tests_with_eumm
            end
          end

          protected

          def uses_module_build?
            @uses_module_build ||= shell.file_exists?('Build.PL')
          end

          def uses_eumm
            @uses_eumm ||= shell.file_exists?('Makefile.PL')
          end

          def run_tests_with_mb
            "perl Build.PL && ./Build test"
          end

          def run_tests_with_eumm
            "perl Makefile.PL && make test"
          end

        end
      end
    end
  end

{'fraction_non_alphanumeric': 0.05500778412039439, 'fraction_numerical': 0.0, 'mean_word_length': 1.1469933184855234, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1862820', 'n_tokens_mistral': 525, 'n_tokens_neox': 503, 'n_words': 128}