<commit_before>require 'formula'

class Uwsgi < Formula
  url 'http://projects.unbit.it/downloads/uwsgi-0.9.6.2.tar.gz'
  homepage 'http://projects.unbit.it/uwsgi/'
  md5 'eab88c552e4c7c4ecb5188cdefc43390'

  def install
    # Find the archs of the Python we are building against.
    # We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
    archs = archs_for_command("python")
    archs.delete :ppc7400
    archs.delete :ppc64

    flags = archs.collect{ |a| "-arch #{a}" }.join(' ')
<commit_msg>uwsgi: use new arch methods<commit_after>require 'formula'

class Uwsgi < Formula
  url 'http://projects.unbit.it/downloads/uwsgi-0.9.6.2.tar.gz'
  homepage 'http://projects.unbit.it/uwsgi/'
  md5 'eab88c552e4c7c4ecb5188cdefc43390'

  def install
    # Find the arch for the Python we are building against.
    # We remove 'ppc' support, so we can pass Intel-optimized CFLAGS.
    archs = archs_for_command("python")
    archs.remove_ppc!
    flags = archs.as_arch_flags

{'fraction_non_alphanumeric': 0.11824668705402651, 'fraction_numerical': 0.0509683995922528, 'mean_word_length': 3.6103286384976525, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5490031', 'n_tokens_mistral': 402, 'n_tokens_neox': 375, 'n_words': 87}