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

class Envoy < Formula
  homepage 'https://github.com/laravel/envoy'
  url 'https://github.com/laravel/envoy/raw/v1.0.11/envoy.phar'
  sha1 '00401ec8014a1744bebae14f8411fde6f2db551b'
  version '1.0.11'

  depends_on PhpMetaRequirement
  depends_on PharRequirement

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

  test do
    system 'envoy --version'
  end

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

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

end
<commit_msg>envoy: convert from sha1 to sha256<commit_after>require 'formula'
require File.expand_path("../../Requirements/php-meta-requirement", __FILE__)
require File.expand_path("../../Requirements/phar-requirement", __FILE__)

class Envoy < Formula
  homepage 'https://github.com/laravel/envoy'
  url 'https://github.com/laravel/envoy/raw/v1.0.11/envoy.phar'
  sha256 'e24746bd5f35d60ff1d3af1bbdb676a9a1fb64706bc7f60fa4c07e048ca169c1'
  version '1.0.11'

  depends_on PhpMetaRequirement
  depends_on PharRequirement

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

  test do
    system 'envoy --version'
  end

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

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

end

{'fraction_non_alphanumeric': 0.1222279525528623, 'fraction_numerical': 0.04744713769984528, 'mean_word_length': 3.3891402714932126, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '59472', 'n_tokens_mistral': 778, 'n_tokens_neox': 721, 'n_words': 153}