<commit_before>class Awscli < Formula
  include Language::Python::Virtualenv

  desc "Official Amazon AWS command-line interface"
  homepage "https://aws.amazon.com/cli/"
  license "Apache-2.0"
  revision 1

  stable do
    url "https://github.com/aws/aws-cli/archive/2.2.30.tar.gz"
    sha256 "42168e3528a03677fb09c15336723a2799bb033cf197fab22dc0cd36ea6127eb"

    # Botocore v2 is not available on PyPI and version commits are not tagged. One way to update:
    # 1. Get `botocore` version at https://github.com/aws/aws-cli/blob/#{version}/setup.py
    # 2. Get commit matching version at https://github.com/boto/botocore/commits/v2
    resource "botocore" do
      url "https://github.com/boto/botocore/archive/5f1971d2d9d2cf7090a8b71650ab40712319bca3.tar.gz"
      sha256 "2516a3a98e08c8ada1b5517b6aede253461fc0d3d9f4d8c5fb2ea476b4ee3db7"
      version "2.0.0dev138"
    end
  end

  bottle do
    sha256 cellar: :any,                 arm64_big_sur: "a4ddcb64c68453bf66e3385289f55cc736c44012d8a0dd92ed8765a3178e59d6"
    sha256                               big_sur:       "44b790e05a412d40e5816f0e782dfb5de0c4a6e11560b1a19fe83a10e1e2ae09"
    sha256                               catalina:      "fb4f17d92ee6e457deb7148a7f903b7094ecc27d4084e1698099d8670b3b3700"
    sha256                               mojave:        "ef3222bbbe6471bd4e5cac6bc7ea2619d5b5d8f3e7bc5017448b9de551c5c947"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "45a8b3348cce8aee9e5f404a897ec6a34c3e94c207c1e3848b07c2506e7cd183"
  end

  head do
    url "https://github.com/aws/aws-cli.git", branch: "v2"

    resource "botocore" do
      url "https://github.com/boto/botocore.git", branch: "v2"
    end
  end

  depends_on "cmake" => :build
  depends_on "python@3.9"
  depends_on "six"

  uses_from_macos "groff"

  # Python resources should be updated based on setup.py. One possible way is:
  # 1. Download source tarball
  # 2. Remove `botocore` from setup.py
  # 3. At top of source directory, run `pipgrip . --sort`<commit_msg>awscli: update 2.2.30_1 bottle.<commit_after>class Awscli < Formula
  include Language::Python::Virtualenv

  desc "Official Amazon AWS command-line interface"
  homepage "https://aws.amazon.com/cli/"
  license "Apache-2.0"
  revision 1

  stable do
    url "https://github.com/aws/aws-cli/archive/2.2.30.tar.gz"
    sha256 "42168e3528a03677fb09c15336723a2799bb033cf197fab22dc0cd36ea6127eb"

    # Botocore v2 is not available on PyPI and version commits are not tagged. One way to update:
    # 1. Get `botocore` version at https://github.com/aws/aws-cli/blob/#{version}/setup.py
    # 2. Get commit matching version at https://github.com/boto/botocore/commits/v2
    resource "botocore" do
      url "https://github.com/boto/botocore/archive/5f1971d2d9d2cf7090a8b71650ab40712319bca3.tar.gz"
      sha256 "2516a3a98e08c8ada1b5517b6aede253461fc0d3d9f4d8c5fb2ea476b4ee3db7"
      version "2.0.0dev138"
    end
  end

  bottle do
    sha256 cellar: :any,                 arm64_big_sur: "7fe8716b0d9b09a9a0815162ac4fe0e272f50dd6de887716ec5814a5efa1f987"
    sha256 cellar: :any,                 big_sur:       "4d5d95a55b0cf5381901d6421b4804649849c40e02496f9a3460d54750d7572a"
    sha256 cellar: :any,                 catalina:      "5ce7c56c2383a89aa80f8d8812b2c8fd5aa1fdd47a0d603bd42ea04c212a06c6"
    sha256 cellar: :any,                 mojave:        "fc20f050881a15147a7cd09c34b6cfb3f674cb7d5447ba0f56a4eb4e1cd47677"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "e41015a6318cd03c04ce292fe748337aa722218ba078b33ed96e8a75d9e2cc29"
  end

  head do
    url "https://github.com/aws/aws-cli.git", branch: "v2"

    resource "botocore" do
      url "https://github.com/boto/botocore.git", branch: "v2"
    end
  end

  depends_on "cmake" => :build
  depends_on "python@3.9"
  depends_on "six"

  uses_from_macos "groff"

  # Python resources should be updated based on setup.py. One possible way is:
  # 1. Download source tarball
  # 2. Remove `botocore` from setup.py
  # 3. At top of source directory, run `pipgrip . --sort`
{'fraction_non_alphanumeric': 0.08909180651530109, 'fraction_numerical': 0.17892398815399801, 'mean_word_length': 3.3533834586466167, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3345343', 'n_tokens_mistral': 2011, 'n_tokens_neox': 1650, 'n_words': 288}