<commit_before>class Oclgrind < Formula
  desc "OpenCL device simulator and debugger"
  homepage "https://github.com/jrprice/Oclgrind"
  url "https://github.com/jrprice/Oclgrind/archive/v21.10.tar.gz"
  sha256 "b40ea81fcf64e9012d63c3128640fde9785ef4f304f9f876f53496595b8e62cc"
  license "BSD-3-Clause"

  livecheck do
    url :homepage
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any, arm64_big_sur: "7eb82923ede6b708c46585ea8277f4f73ed521f5a9411709f27de4daa9f48bb4"
    sha256 cellar: :any, big_sur:       "d7e20e1c27a6716a448f9e878f60706490751edfde5296a676776c2ec3d2ef2c"
    sha256 cellar: :any, catalina:      "3b7f3865bc3ed7ea3f9d4436b9e4a003b8759262347c7a27edf68ae291e804a2"
    sha256 cellar: :any, mojave:        "f92d8a342ad7d878f2164345e2f8982d8bd6c750ef625e1761f80cee666627fb"
  end

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

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"rot13.c").write <<~'EOS'
      #include <stdio.h>
      #include <stdlib.h>
      #include <string.h>

      #include <OpenCL/cl.h>

      const char rot13_cl[] = "                         \
      __kernel void rot13                               \
          (   __global    const   char*    in           \<commit_msg>oclgrind: update 21.10 bottle.<commit_after>class Oclgrind < Formula
  desc "OpenCL device simulator and debugger"
  homepage "https://github.com/jrprice/Oclgrind"
  url "https://github.com/jrprice/Oclgrind/archive/v21.10.tar.gz"
  sha256 "b40ea81fcf64e9012d63c3128640fde9785ef4f304f9f876f53496595b8e62cc"
  license "BSD-3-Clause"

  livecheck do
    url :homepage
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any, arm64_monterey: "c28fb5bc8dd0fa6897dfeae3dcd1b04c7d2494d6e69f2fdad110dfe0fd53210b"
    sha256 cellar: :any, arm64_big_sur:  "7eb82923ede6b708c46585ea8277f4f73ed521f5a9411709f27de4daa9f48bb4"
    sha256 cellar: :any, monterey:       "456d3363136042e98b217cd9fad9165fa0038b97c68279911ff7cd93cfc4889e"
    sha256 cellar: :any, big_sur:        "d7e20e1c27a6716a448f9e878f60706490751edfde5296a676776c2ec3d2ef2c"
    sha256 cellar: :any, catalina:       "3b7f3865bc3ed7ea3f9d4436b9e4a003b8759262347c7a27edf68ae291e804a2"
    sha256 cellar: :any, mojave:         "f92d8a342ad7d878f2164345e2f8982d8bd6c750ef625e1761f80cee666627fb"
  end

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

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"rot13.c").write <<~'EOS'
      #include <stdio.h>
      #include <stdlib.h>
      #include <string.h>

      #include <OpenCL/cl.h>

      const char rot13_cl[] = "                         \
      __kernel void rot13                               \
          (   __global    const   char*    in           \
{'fraction_non_alphanumeric': 0.10045502275113756, 'fraction_numerical': 0.19495974798739937, 'mean_word_length': 3.0712250712250713, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 13, 'https://': 4, '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': '7177448', 'n_tokens_mistral': 1516, 'n_tokens_neox': 1220, 'n_words': 177}