<commit_before>require 'formula'
require File.expand_path("../../Requirements/php-meta-requirement", Pathname.new(__FILE__).realpath)
require File.expand_path("../../Requirements/phar-requirement", Pathname.new(__FILE__).realpath)

class Box < Formula
  homepage 'http://box-project.org/'
  url 'https://github.com/kherge/Box/releases/download/2.3.0/box-2.3.0.phar'
  sha1 '59e95eb1480830a0e35a81e83c82aa3ada04753c'
  version '2.3.0'

  depends_on PhpMetaRequirement
  depends_on PharRequirement

  def install
    libexec.install "box-2.3.0.phar"
    sh = libexec + "box"
    sh.write("#!/usr/bin/env bash\n\n/usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off #{libexec}/box-2.3.0.phar $*")
    chmod 0755, sh
    bin.install_symlink sh
  end

  def test
    system 'box --version'
  end

  def caveats; <<-EOS.undent
    Verify your installation by running:
      "box --version".

    You can read more about box by running:
      "brew home box".
    EOS
  end

end<commit_msg>update box formula to 2.4.0<commit_after>require 'formula'
require File.expand_path("../../Requirements/php-meta-requirement", Pathname.new(__FILE__).realpath)
require File.expand_path("../../Requirements/phar-requirement", Pathname.new(__FILE__).realpath)

class Box < Formula
  homepage 'http://box-project.org/'
  url 'https://github.com/kherge/Box/releases/download/2.4.0/box-2.4.0.phar'
  sha1 'd18596280a5b0fcd103b5ad4552b5ffc97816d61'
  version '2.4.0'

  depends_on PhpMetaRequirement
  depends_on PharRequirement

  def install
    libexec.install "box-2.4.0.phar"
    sh = libexec + "box"
    sh.write("#!/usr/bin/env bash\n\n/usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off #{libexec}/box-2.4.0.phar $*")
    chmod 0755, sh
    bin.install_symlink sh
  end

  def test
    system 'box --version'
  end

  def caveats; <<-EOS.undent
    Verify your installation by running:
      "box --version".

    You can read more about box by running:
      "brew home box".
    EOS
  end

end
{'fraction_non_alphanumeric': 0.1372745490981964, 'fraction_numerical': 0.04759519038076152, 'mean_word_length': 3.257995735607676, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2794256', 'n_tokens_mistral': 799, 'n_tokens_neox': 748, 'n_words': 151}