<commit_before>require 'tab'
require 'extend/ARGV'

def bottle_filename f, bottle_version=nil
  name = f.name.downcase
  version = f.stable.version
  bottle_version ||= f.bottle.revision.to_i
  "#{name}-#{version}#{bottle_native_suffix(bottle_version)}"
end

def install_bottle? f
  return true if ARGV.include? '--install-bottle'
  not ARGV.build_from_source? \
    and ARGV.bottles_supported? \
    and ARGV.options_only.empty? \
    and bottle_current?(f)<commit_msg>Check formula options properly to rule out bottle.<commit_after>require 'tab'
require 'extend/ARGV'

def bottle_filename f, bottle_version=nil
  name = f.name.downcase
  version = f.stable.version
  bottle_version ||= f.bottle.revision.to_i
  "#{name}-#{version}#{bottle_native_suffix(bottle_version)}"
end

def install_bottle? f
  return true if ARGV.include? '--install-bottle'
  not ARGV.build_from_source? \
    and ARGV.bottles_supported? \
    and ARGV.used_options(f).empty? \
    and bottle_current?(f)
{'fraction_non_alphanumeric': 0.11938775510204082, 'fraction_numerical': 0.0, 'mean_word_length': 4.605714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4981501', 'n_tokens_mistral': 368, 'n_tokens_neox': 368, 'n_words': 70}