<commit_before>require "sandbox"

module Homebrew
  def postinstall
    ARGV.resolved_formulae.each { |f| run_post_install(f) if f.post_install_defined? }
  end

  def run_post_install(formula)
    args = %W[
      nice #{RUBY_PATH}
      -W0
      -I #{HOMEBREW_LOAD_PATH}
      --
      #{HOMEBREW_LIBRARY_PATH}/postinstall.rb
      #{formula.path}
    ].concat(ARGV.options_only)<commit_msg>postinstall: sanitize ARGV options<commit_after>require "sandbox"

module Homebrew
  def postinstall
    ARGV.resolved_formulae.each { |f| run_post_install(f) if f.post_install_defined? }
  end

  def run_post_install(formula)
    args = %W[
      nice #{RUBY_PATH}
      -W0
      -I #{HOMEBREW_LOAD_PATH}
      --
      #{HOMEBREW_LIBRARY_PATH}/postinstall.rb
      #{formula.path}
    ].concat(ARGV.options_only)

    if formula.head?
      args << "--HEAD"
    elsif formula.devel?
      args << "--devel"
    end
{'fraction_non_alphanumeric': 0.11525795828759605, 'fraction_numerical': 0.0021953896816684962, 'mean_word_length': 2.864406779661017, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2629420', 'n_tokens_mistral': 348, 'n_tokens_neox': 328, 'n_words': 59}