<commit_before>module Travis
  module Build
    class Script
      class Jvm < Script
        include Jdk

        DEFAULTS = {
          jdk: 'default'
        }

        def install
          sh.if '-f gradlew' do
            sh.cmd './gradlew assemble', retry: true, fold: 'install'
          end
          sh.elif '-f build.gradle' do
            sh.cmd 'gradle assemble', retry: true, fold: 'install'<commit_msg>Clean up ivy and sbt artifacts<commit_after>module Travis
  module Build
    class Script
      class Jvm < Script
        include Jdk

        DEFAULTS = {
          jdk: 'default'
        }

        CLEANUPS = [
          { directory: '$HOME/.ivy2', glob: "ivydata-*.properties"},
          { directory: '$HOME/.sbt',  glob: "*.lock"}
        ]

        def setup
          super
          CLEANUPS.each do |find_arg|
            sh.raw "find #{find_arg[:directory]} -name #{find_arg[:glob]} -delete"
          end
        end

        def install
          sh.if '-f gradlew' do
            sh.cmd './gradlew assemble', retry: true, fold: 'install'
          end
          sh.elif '-f build.gradle' do
            sh.cmd 'gradle assemble', retry: true, fold: 'install'
{'fraction_non_alphanumeric': 0.11026936026936027, 'fraction_numerical': 0.0008417508417508417, 'mean_word_length': 1.5625, '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': '4905665', 'n_tokens_mistral': 361, 'n_tokens_neox': 341, 'n_words': 105}