<commit_before>class CodesignRequirement < Requirement
  fatal true

  satisfy(:build_env => false) do
    FileUtils.mktemp do
      FileUtils.cp "/usr/bin/false", "llvm_check"
      quiet_system "/usr/bin/codesign", "-f", "-s", "lldb_codesign", "--dryrun", "llvm_check"
    end
  end

  def message
    <<~EOS
      lldb_codesign identity must be available to build with LLDB.
      See: https://llvm.org/svn/llvm-project/lldb/trunk/docs/code-signing.txt
    EOS
  end
end

class Llvm < Formula
  desc "Next-gen compiler infrastructure"
  homepage "https://llvm.org/"

  stable do
    url "https://releases.llvm.org/5.0.1/llvm-5.0.1.src.tar.xz"
    sha256 "5fa7489fc0225b11821cab0362f5813a05f2bcf2533e8a4ea9c9c860168807b0"

    resource "clang" do
      url "https://releases.llvm.org/5.0.1/cfe-5.0.1.src.tar.xz"
      sha256 "135f6c9b0cd2da1aff2250e065946258eb699777888df39ca5a5b4fe5e23d0ff"
    end

    resource "clang-extra-tools" do
      url "https://releases.llvm.org/5.0.1/clang-tools-extra-5.0.1.src.tar.xz"
      sha256 "9aada1f9d673226846c3399d13fab6bba4bfd38bcfe8def5ee7b0ec24f8cd225"
    end

    resource "compiler-rt" do
      url "https://releases.llvm.org/5.0.1/compiler-rt-5.0.1.src.tar.xz"
      sha256 "4edd1417f457a9b3f0eb88082530490edf3cf6a7335cdce8ecbc5d3e16a895da"
    end

    # Only required to build & run Compiler-RT tests on macOS, optional otherwise.
    # https://clang.llvm.org/get_started.html
    resource "libcxx" do
      url "https://releases.llvm.org/5.0.1/libcxx-5.0.1.src.tar.xz"
      sha256 "fa8f99dd2bde109daa3276d529851a3bce5718d46ce1c5d0806f46caa3e57c00"
    end

    resource "libcxxabi" do
      url "https://llvm.org/releases/5.0.0/libcxxabi-5.0.0.src.tar.xz"
      sha256 "176918c7eb22245c3a5c56ef055e4d69f5345b4a98833e0e8cb1a19cab6b8911"
    end

    resource "libunwind" do
      url "https://releases.llvm.org/5.0.1/libunwind-5.0.1.src.tar.xz"
      sha256 "6bbfbf6679435b858bd74bdf080386d084a76dfbf233fb6e47b2c28e0872d0fe"
    end

    resource "lld" do
      url "https://releases.llvm.org/5.0.1/lld-5.0.1.src.tar.xz"
      sha256 "d5b36c0005824f07ab093616bdff247f3da817cae2c51371e1d1473af717d895"
    end

    resource "lldb" do
      url "https://releases.llvm.org/5.0.1/lldb-5.0.1.src.tar.xz"
      sha256 "b7c1c9e67975ca219089a3a6a9c77c2d102cead2dc38264f2524aa3326da376a"
    end
<commit_msg>llvm: Update libcxxabi and build bottle for Linuxbrew<commit_after>class CodesignRequirement < Requirement
  fatal true

  satisfy(:build_env => false) do
    FileUtils.mktemp do
      FileUtils.cp "/usr/bin/false", "llvm_check"
      quiet_system "/usr/bin/codesign", "-f", "-s", "lldb_codesign", "--dryrun", "llvm_check"
    end
  end

  def message
    <<~EOS
      lldb_codesign identity must be available to build with LLDB.
      See: https://llvm.org/svn/llvm-project/lldb/trunk/docs/code-signing.txt
    EOS
  end
end

class Llvm < Formula
  desc "Next-gen compiler infrastructure"
  homepage "https://llvm.org/"

  stable do
    url "https://releases.llvm.org/5.0.1/llvm-5.0.1.src.tar.xz"
    sha256 "5fa7489fc0225b11821cab0362f5813a05f2bcf2533e8a4ea9c9c860168807b0"

    resource "clang" do
      url "https://releases.llvm.org/5.0.1/cfe-5.0.1.src.tar.xz"
      sha256 "135f6c9b0cd2da1aff2250e065946258eb699777888df39ca5a5b4fe5e23d0ff"
    end

    resource "clang-extra-tools" do
      url "https://releases.llvm.org/5.0.1/clang-tools-extra-5.0.1.src.tar.xz"
      sha256 "9aada1f9d673226846c3399d13fab6bba4bfd38bcfe8def5ee7b0ec24f8cd225"
    end

    resource "compiler-rt" do
      url "https://releases.llvm.org/5.0.1/compiler-rt-5.0.1.src.tar.xz"
      sha256 "4edd1417f457a9b3f0eb88082530490edf3cf6a7335cdce8ecbc5d3e16a895da"
    end

    # Only required to build & run Compiler-RT tests on macOS, optional otherwise.
    # https://clang.llvm.org/get_started.html
    resource "libcxx" do
      url "https://releases.llvm.org/5.0.1/libcxx-5.0.1.src.tar.xz"
      sha256 "fa8f99dd2bde109daa3276d529851a3bce5718d46ce1c5d0806f46caa3e57c00"
    end

    resource "libcxxabi" do
      url "https://llvm.org/releases/5.0.1/libcxxabi-5.0.1.src.tar.xz"
      sha256 "5a25152cb7f21e3c223ad36a1022faeb8a5ac27c9e75936a5ae2d3ac48f6e854"
    end

    resource "libunwind" do
      url "https://releases.llvm.org/5.0.1/libunwind-5.0.1.src.tar.xz"
      sha256 "6bbfbf6679435b858bd74bdf080386d084a76dfbf233fb6e47b2c28e0872d0fe"
    end

    resource "lld" do
      url "https://releases.llvm.org/5.0.1/lld-5.0.1.src.tar.xz"
      sha256 "d5b36c0005824f07ab093616bdff247f3da817cae2c51371e1d1473af717d895"
    end

    resource "lldb" do
      url "https://releases.llvm.org/5.0.1/lldb-5.0.1.src.tar.xz"
      sha256 "b7c1c9e67975ca219089a3a6a9c77c2d102cead2dc38264f2524aa3326da376a"
    end

{'fraction_non_alphanumeric': 0.11746098692534795, 'fraction_numerical': 0.18051455082243778, 'mean_word_length': 3.2806859205776173, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, 'https://': 24, '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': '3166309', 'n_tokens_mistral': 2544, 'n_tokens_neox': 2108, 'n_words': 267}