<commit_before>class Libtensorflow < Formula
  desc "C interface for Google's OS library for Machine Intelligence"
  homepage "https://www.tensorflow.org/"
  url "https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.11.0.tar.gz"
  sha256 "99c732b92b1b37fc243a559e02f9aef5671771e272758aa4aec7f34dc92dac48"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any,                 arm64_ventura:  "62eca0ff2a425d025fe342aa3ba166203f3d60e138dd3b49145b282bd4f2849d"
    sha256 cellar: :any,                 arm64_monterey: "62eca0ff2a425d025fe342aa3ba166203f3d60e138dd3b49145b282bd4f2849d"
    sha256 cellar: :any,                 arm64_big_sur:  "61631b447424eb0a2b7382e02e096d9afe1e1060ce30cb51e451d78ec215ffd4"
    sha256 cellar: :any,                 ventura:        "be0c3ba93dcfc9ae0075e7d417d1c624770ca34193c0ac91cbcc6a9ea48a24ff"
    sha256 cellar: :any,                 monterey:       "be0c3ba93dcfc9ae0075e7d417d1c624770ca34193c0ac91cbcc6a9ea48a24ff"
    sha256 cellar: :any,                 big_sur:        "6922d297d0535f752c2a0fa5bcbe4f00f8f1c47a8a467079c40a9383ca56a3e0"
    sha256 cellar: :any,                 catalina:       "8d575c934aa2a7087f4979eb7578fd1f3f802a1b9780dbcf4c5207afe3db24af"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "5b1dd91384a0647ed06d67de0f4d82f48dcdee229d2677ff41227662a4cce913"
  end

  depends_on "bazelisk" => :build
  depends_on "numpy" => :build
  depends_on "python@3.10" => :build

  resource "homebrew-test-model" do
    url "https://github.com/tensorflow/models/raw/v1.13.0/samples/languages/java/training/model/graph.pb"
    sha256 "147fab50ddc945972818516418942157de5e7053d4b67e7fca0b0ada16733ecb"
  end

  def install
    optflag = if Hardware::CPU.arm? && OS.mac?
      "-mcpu=apple-m1"
    elsif build.bottle?
      "-march=#{Hardware.oldest_cpu}"
    else
      "-march=native"
    end
    ENV["CC_OPT_FLAGS"] = optflag<commit_msg>libtensorflow: update 2.11.0 bottle.<commit_after>class Libtensorflow < Formula
  desc "C interface for Google's OS library for Machine Intelligence"
  homepage "https://www.tensorflow.org/"
  url "https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.11.0.tar.gz"
  sha256 "99c732b92b1b37fc243a559e02f9aef5671771e272758aa4aec7f34dc92dac48"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any,                 arm64_ventura:  "6338d2b8b3783529d2b88bc1dd2952b7be6eeb47a4fb92046773538ddb42a52f"
    sha256 cellar: :any,                 arm64_monterey: "6338d2b8b3783529d2b88bc1dd2952b7be6eeb47a4fb92046773538ddb42a52f"
    sha256 cellar: :any,                 arm64_big_sur:  "f7bf9ae6bbb912322dbf159a429cf8d2c02a69499def33e0d50e5fc67a103a06"
    sha256 cellar: :any,                 monterey:       "bda2efd536cf339b515c30bc2358087cdb0ec01b79c258e7287086f6013b060b"
    sha256 cellar: :any,                 big_sur:        "8cbf67ceeaf31bafcd5f567ad4476b98ba7c2b13bb16ca4856a7e46f3e0a496b"
    sha256 cellar: :any,                 catalina:       "0e659810b7c74403b61217c99c52a95e7e812f81d9395b916f2260e7b24586ba"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "9388c60f0faab1e4cff146b63b8a7870250aa2109c6cef7c218cbf3e4ed08b67"
  end

  depends_on "bazelisk" => :build
  depends_on "numpy" => :build
  depends_on "python@3.10" => :build

  resource "homebrew-test-model" do
    url "https://github.com/tensorflow/models/raw/v1.13.0/samples/languages/java/training/model/graph.pb"
    sha256 "147fab50ddc945972818516418942157de5e7053d4b67e7fca0b0ada16733ecb"
  end

  def install
    optflag = if Hardware::CPU.arm? && OS.mac?
      "-mcpu=apple-m1"
    elsif build.bottle?
      "-march=#{Hardware.oldest_cpu}"
    else
      "-march=native"
    end
    ENV["CC_OPT_FLAGS"] = optflag
{'fraction_non_alphanumeric': 0.08555286521388217, 'fraction_numerical': 0.23083131557707828, 'mean_word_length': 3.809831824062096, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '627421', 'n_tokens_mistral': 2030, 'n_tokens_neox': 1594, 'n_words': 189}