<commit_before>class Rtags < Formula
  desc "Source code cross-referencer like ctags with a clang frontend"
  homepage "https://github.com/Andersbakken/rtags"
  url "https://github.com/Andersbakken/rtags.git",
      :tag => "v2.16",
      :revision => "8ef7554852541eced514c56d5e39d6073f7a2ef9"
  revision 2

  head "https://github.com/Andersbakken/rtags.git"

  bottle do
    sha256 "852de7a8c5911fe19aa554b4e8b7ca8fdd2ba228cc434692ede01655f5906379" => :high_sierra
    sha256 "13a24686988d9815e71d85bea736ad27f77918496fdc66582c2f78610828e05c" => :sierra
    sha256 "3e42fc75d8001f59316d273af14c6bd653d44848d289d2ec338f1e276bcd91a8" => :el_capitan
  end

  depends_on "cmake" => :build
  depends_on "emacs"
  depends_on "llvm"
  depends_on "openssl"

  def install
    # Reduce memory usage below 4 GB for Circle CI.
    ENV["MAKEFLAGS"] = "-j8" if ENV["CIRCLECI"]

    # Homebrew llvm libc++.dylib doesn't correctly reexport libc++abi
    ENV.append("LDFLAGS", "-lc++abi") if OS.mac?

    args = std_cmake_args << "-DRTAGS_NO_BUILD_CLANG=ON"

    if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
      args << "-DHAVE_CLOCK_MONOTONIC_RAW:INTERNAL=0"
      args << "-DHAVE_CLOCK_MONOTONIC:INTERNAL=0"
    end

    mkdir "build" do
      system "cmake", "..", *args<commit_msg>rtags: update 2.16_2 bottle for Linuxbrew.<commit_after>class Rtags < Formula
  desc "Source code cross-referencer like ctags with a clang frontend"
  homepage "https://github.com/Andersbakken/rtags"
  url "https://github.com/Andersbakken/rtags.git",
      :tag => "v2.16",
      :revision => "8ef7554852541eced514c56d5e39d6073f7a2ef9"
  revision 2

  head "https://github.com/Andersbakken/rtags.git"

  bottle do
    sha256 "852de7a8c5911fe19aa554b4e8b7ca8fdd2ba228cc434692ede01655f5906379" => :high_sierra
    sha256 "13a24686988d9815e71d85bea736ad27f77918496fdc66582c2f78610828e05c" => :sierra
    sha256 "3e42fc75d8001f59316d273af14c6bd653d44848d289d2ec338f1e276bcd91a8" => :el_capitan
    sha256 "02c2678b7f3d68e9de90d603308321cb0e7edc580120bf2032f7ce69fef91bd4" => :x86_64_linux
  end

  depends_on "cmake" => :build
  depends_on "emacs"
  depends_on "llvm"
  depends_on "openssl"

  def install
    # Reduce memory usage below 4 GB for Circle CI.
    ENV["MAKEFLAGS"] = "-j8" if ENV["CIRCLECI"]

    # Homebrew llvm libc++.dylib doesn't correctly reexport libc++abi
    ENV.append("LDFLAGS", "-lc++abi") if OS.mac?

    args = std_cmake_args << "-DRTAGS_NO_BUILD_CLANG=ON"

    if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
      args << "-DHAVE_CLOCK_MONOTONIC_RAW:INTERNAL=0"
      args << "-DHAVE_CLOCK_MONOTONIC:INTERNAL=0"
    end

    mkdir "build" do
      system "cmake", "..", *args
{'fraction_non_alphanumeric': 0.11901306240928883, 'fraction_numerical': 0.147677793904209, 'mean_word_length': 4.322393822393822, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 18, 'https://': 6, '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': '2078945', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1147, 'n_words': 191}