<commit_before>#!/usr/bin/ruby
require 'global'
require 'formula'
require 'keg'
require 'brew.h'

show_summary_heading = false

def text_for_keg_only_formula f
  <<-EOS
#{f.name} is keg-only. This means it is not symlinked into Homebrew's
prefix. The formula provides the following rationale:

#{f.keg_only?.chomp}

Generally there are no consequences of this for you, however if you build your
own software and it requires this formula, you may want to run this command to<commit_msg>Allow returning true from keg_only?<commit_after>#!/usr/bin/ruby
require 'global'
require 'formula'
require 'keg'
require 'brew.h'

show_summary_heading = false

def text_for_keg_only_formula f
  if f.keg_only?.kind_of? String
    rationale = "The formula provides the following rationale:\n\n#{f.keg_only?.chomp}"
  else
    rationale = "The formula didn't provide any rationale for this."
  end
  <<-EOS
#{f.name} is keg-only. This means it is not symlinked into Homebrew's
prefix. #{rationale}

Generally there are no consequences of this for you, however if you build your
own software and it requires this formula, you may want to run this command to
{'fraction_non_alphanumeric': 0.0824561403508772, 'fraction_numerical': 0.0, 'mean_word_length': 4.705, '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': '7431097', 'n_tokens_mistral': 367, 'n_tokens_neox': 358, 'n_words': 144}