<commit_before>require "formula"

class Sonar < Formula
  homepage "http://www.sonarqube.org/"
  url "http://dist.sonar.codehaus.org/sonarqube-4.5.2.zip"
  sha1 "c3c9c5c663f01f5be01fcf2eab555e645e6fc07a"

  def install
    # Delete native bin directories for other systems
    rm_rf Dir['bin/{aix,hpux,linux,solaris,windows}-*']

    if MacOS.prefer_64_bit?
      rm_rf "bin/macosx-universal-32"
    else
      rm_rf "bin/macosx-universal-64"
    end<commit_msg>SonarQube 5.0<commit_after>require "formula"

class Sonar < Formula
  homepage "http://www.sonarqube.org/"
  url "http://dist.sonar.codehaus.org/sonarqube-5.0.zip"
  sha1 "6040d24e24195af2c87a3232393523fac0ddcc88"

  def install
    # Delete native bin directories for other systems
    rm_rf Dir['bin/{aix,hpux,linux,solaris,windows}-*']

    if MacOS.prefer_64_bit?
      rm_rf "bin/macosx-universal-32"
    else
      rm_rf "bin/macosx-universal-64"
    end
{'fraction_non_alphanumeric': 0.1193058568329718, 'fraction_numerical': 0.07483731019522777, 'mean_word_length': 3.6616161616161618, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2097654', 'n_tokens_mistral': 416, 'n_tokens_neox': 373, 'n_words': 60}