<commit_before>class SignalCli < Formula
  desc "CLI and dbus interface for WhisperSystems/libsignal-service-java"
  homepage "https://github.com/AsamK/signal-cli"
  url "https://github.com/AsamK/signal-cli/archive/refs/tags/v0.11.0.tar.gz"
  sha256 "ec174af007ff1717ef820720182e7c0b21e75aae9cc5bed714f05c16b8381faf"
  license "GPL-3.0-or-later"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "70427d300f90bdd1059fd8302db09058311c354d579865da2ae4d120b7ce136f"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "14a6661cff2cca8e274f15522f1df227cb6a3f519f5a9fda0b0862ce2c3a5075"
    sha256 cellar: :any_skip_relocation, monterey:       "3cb073aa935e53f3e068fef8597fdcfb0c7bda7d5acf34d5c415f260d475f352"
    sha256 cellar: :any_skip_relocation, big_sur:        "3a05fd0587a72f06dead09a4425751fbc2e360c8d1c781298f2f013cf832a014"
    sha256 cellar: :any_skip_relocation, catalina:       "df676008b82ef4d496007907c5757dc9007f508f295505e5e9030f741f56e89f"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "782eac7e2e8ddff04315ffca41887e8fd799322b83f184343c4545f6327e3f0e"
  end

  depends_on "cmake" => :build # For `boring-sys` crate in `libsignal-client`
  depends_on "gradle" => :build
  depends_on "protobuf" => :build
  # the libsignal-client build targets a specific rustc listed in the file
  # https://github.com/signalapp/libsignal/blob/#{libsignal-client.version}/rust-toolchain
  # which doesn't automatically happen if we use brew-installed rust. rustup-init
  # allows us to use a toolchain that lives in HOMEBREW_CACHE
  depends_on "rustup-init" => :build

  depends_on "openjdk"

  uses_from_macos "llvm" => :build # For `libclang`, used by `boring-sys` crate
  uses_from_macos "zip" => :build

  # per https://github.com/AsamK/signal-cli/wiki/Provide-native-lib-for-libsignal#libsignal-client
  # we want the specific libsignal-client version from 'signal-cli-#{version}/lib/libsignal-client-X.X.X.jar'
  resource "libsignal-client" do
    url "https://github.com/signalapp/libsignal/archive/refs/tags/v0.20.0.tar.gz"
    sha256 "baed0958835107fb96b565102a3bd1309f27c747b5b68d77cb12239acfd1b553"
  end

  def install
    system "gradle", "build"
    system "gradle", "installDist"<commit_msg>signal-cli: update 0.11.0 bottle.<commit_after>class SignalCli < Formula
  desc "CLI and dbus interface for WhisperSystems/libsignal-service-java"
  homepage "https://github.com/AsamK/signal-cli"
  url "https://github.com/AsamK/signal-cli/archive/refs/tags/v0.11.0.tar.gz"
  sha256 "ec174af007ff1717ef820720182e7c0b21e75aae9cc5bed714f05c16b8381faf"
  license "GPL-3.0-or-later"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "596dca22450d4bdf73f421213154c35e3f3fc6fddd4108631d40a1d4e24259db"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "4582f1efffd20a293edc968abb7d0d0c2eaa28b3869880d27725f611dd9b677b"
    sha256 cellar: :any_skip_relocation, monterey:       "81cc6fbd8a2965335c2cff8c7deb46357fd20bea5647a470a0cb48002993a609"
    sha256 cellar: :any_skip_relocation, big_sur:        "08c834623e4e628c38f1bf6a36b468c8e980f8ac4f361ead18f2d32ecc96c6b0"
    sha256 cellar: :any_skip_relocation, catalina:       "00969179a4427b191a7b4976dd63d4b13a4874147910aa1cafa60a7f50a51dcf"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "424b76676ebcff162afe6e210810f8b03074dd5f57860637aa3435781449a113"
  end

  depends_on "cmake" => :build # For `boring-sys` crate in `libsignal-client`
  depends_on "gradle" => :build
  depends_on "protobuf" => :build
  # the libsignal-client build targets a specific rustc listed in the file
  # https://github.com/signalapp/libsignal/blob/#{libsignal-client.version}/rust-toolchain
  # which doesn't automatically happen if we use brew-installed rust. rustup-init
  # allows us to use a toolchain that lives in HOMEBREW_CACHE
  depends_on "rustup-init" => :build

  depends_on "openjdk"

  uses_from_macos "llvm" => :build # For `libclang`, used by `boring-sys` crate
  uses_from_macos "zip" => :build

  # per https://github.com/AsamK/signal-cli/wiki/Provide-native-lib-for-libsignal#libsignal-client
  # we want the specific libsignal-client version from 'signal-cli-#{version}/lib/libsignal-client-X.X.X.jar'
  resource "libsignal-client" do
    url "https://github.com/signalapp/libsignal/archive/refs/tags/v0.20.0.tar.gz"
    sha256 "baed0958835107fb96b565102a3bd1309f27c747b5b68d77cb12239acfd1b553"
  end

  def install
    system "gradle", "build"
    system "gradle", "installDist"
{'fraction_non_alphanumeric': 0.09582036460649178, 'fraction_numerical': 0.16518452645620277, 'mean_word_length': 5.336619718309859, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 10, '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': '1961789', 'n_tokens_mistral': 2230, 'n_tokens_neox': 1822, 'n_words': 282}