<commit_before># #
# Spring Boot Project.
# #
module IBuild::Projects
  class SpringBoot < Mvn
    def self.detect(dir)
      Mvn.detect(dir) && File.read(BUILD_FILE).includes?("spring-boot-maven-plugin")
    end

    # @Override
    def run
      fork_run_browser(
        %(mvn clean spring-boot:run -Drun.jvmArguments="-Xmx1g -noverify -Drun.mode=dev" -P mock_server),
        "http://localhost:#{port}"
      )
    end

    private def port : UInt16
      f = "src/main/resources/application.properties"
      if File.exists?(f)
        if line = File.read(f).lines.find { |x| x.starts_with?("server.port=") }
          return line.split("=")[1].to_u16
        end
      end
      3000_u16
    end

    # @Override
    def to_s(io)
      io << "Spring Boot Maven"
    end
  end
end
<commit_msg>mvn springboot -P dev<commit_after># #
# Spring Boot Project.
# #
module IBuild::Projects
  class SpringBoot < Mvn
    def self.detect(dir)
      Mvn.detect(dir) && File.read(BUILD_FILE).includes?("spring-boot-maven-plugin")
    end

    # @Override
    def run
      fork_run_browser(
        %(mvn clean spring-boot:run -Drun.jvmArguments="-Xmx1g -noverify -Drun.mode=dev" -P mock_server -P dev),
        "http://localhost:#{port}"
      )
    end

    private def port : UInt16
      f = "src/main/resources/application.properties"
      if File.exists?(f)
        if line = File.read(f).lines.find { |x| x.starts_with?("server.port=") }
          return line.split("=")[1].to_u16
        end
      end
      3000_u16
    end

    # @Override
    def to_s(io)
      io << "Spring Boot Maven"
    end
  end
end

{'fraction_non_alphanumeric': 0.13656114214773432, 'fraction_numerical': 0.0148975791433892, 'mean_word_length': 2.316872427983539, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4723712', 'n_tokens_mistral': 590, 'n_tokens_neox': 565, 'n_words': 119}