<commit_before>class Doubleshot::CLI::Commands::Build < Doubleshot::CLI
  def self.summary
    <<-EOS.margin
      Download all dependencies and compile sources so that you
      can use the project directly without installation, such
      as with IRB.

      NOTE: Packaging and testing have a dependency on this
      command. You don't need to build as a prerequisite.
    EOS
  end

  def self.options
    Options.new do |options|
      options.banner = "Usage: doubleshot build"

      options.separator ""
      options.separator "Summary: #{summary}"
    end
  end

  def self.start(args)
    config = Doubleshot::current.config

    # TODO:
    # download JAR dependencies
    # setup correct class-path
    # download Gem dependencies
    # compile Java
    # exit

    return true
  end
end<commit_msg>compile java as part of `doubleshot build`<commit_after>class Doubleshot::CLI::Commands::Build < Doubleshot::CLI
  def self.summary
    <<-EOS.margin
      Download all dependencies and compile sources so that you
      can use the project directly without installation, such
      as with IRB.

      NOTE: Packaging and testing have a dependency on this
      command. You don't need to build as a prerequisite.
    EOS
  end

  def self.options
    Options.new do |options|
      options.banner = "Usage: doubleshot build"

      options.separator ""
      options.separator "Summary: #{summary}"
    end
  end

  def self.start(args)
    config = Doubleshot::current.config

    Doubleshot::Compiler.new(config.source.java, config.target).build!

    # TODO:
    # download JAR dependencies
    # setup correct class-path
    # download Gem dependencies
    # exit

    return true
  end
end
{'fraction_non_alphanumeric': 0.07377049180327869, 'fraction_numerical': 0.0, 'mean_word_length': 2.7977777777777777, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3691511', 'n_tokens_mistral': 494, 'n_tokens_neox': 468, 'n_words': 169}