<commit_before>class GstPython < Formula
  desc "Python overrides for gobject-introspection-based pygst bindings"
  homepage "https://gstreamer.freedesktop.org/modules/gst-python.html"
  url "https://gstreamer.freedesktop.org/src/gst-python/gst-python-1.8.1.tar.xz"
  sha256 "76a3bfb72f9cb81d2b2cf8d07e420478e5b3592ea4b8056bb8c8127f73810a98"

  bottle do
    revision 1
    sha256 "8236f9fc6db0d7575532049c5c72336c06407a847dbdc6e9e8224a757f4f6bd7" => :el_capitan
    sha256 "8685ae8cf393c0f9971f1b90251be4671c3c81f55425a7f630f9f63086c6badc" => :yosemite
    sha256 "ea56455e1d0c138d29b99b0e5fdc8ca85dc5339522d2d074065fd27b156fe9af" => :mavericks
  end

  option "without-python", "Build without python 2 support"

  depends_on :python3 => :optional
  depends_on "gst-plugins-base"

  if build.with? "python"
    depends_on "pygobject3"
  end
  if build.with? "python3"
    depends_on "pygobject3" => "with-python3"
  end

  link_overwrite "lib/python2.7/site-packages/gi/overrides"

  def install
    if build.with?("python") && build.with?("python3")<commit_msg>gst-python 1.8.2<commit_after>class GstPython < Formula
  desc "Python overrides for gobject-introspection-based pygst bindings"
  homepage "https://gstreamer.freedesktop.org/modules/gst-python.html"
  url "https://gstreamer.freedesktop.org/src/gst-python/gst-python-1.8.2.tar.xz"
  sha256 "4f5015239482014c16f435559a45e6c87930340b65ee04e2e6fa164c8d724d97"

  bottle do
    revision 1
    sha256 "8236f9fc6db0d7575532049c5c72336c06407a847dbdc6e9e8224a757f4f6bd7" => :el_capitan
    sha256 "8685ae8cf393c0f9971f1b90251be4671c3c81f55425a7f630f9f63086c6badc" => :yosemite
    sha256 "ea56455e1d0c138d29b99b0e5fdc8ca85dc5339522d2d074065fd27b156fe9af" => :mavericks
  end

  option "without-python", "Build without python 2 support"

  depends_on :python3 => :optional
  depends_on "gst-plugins-base"

  if build.with? "python"
    depends_on "pygobject3"
  end
  if build.with? "python3"
    depends_on "pygobject3" => "with-python3"
  end

  link_overwrite "lib/python2.7/site-packages/gi/overrides"

  def install
    if build.with?("python") && build.with?("python3")
{'fraction_non_alphanumeric': 0.10098637858149366, 'fraction_numerical': 0.18318459370596524, 'mean_word_length': 5.173913043478261, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4853008', 'n_tokens_mistral': 1109, 'n_tokens_neox': 925, 'n_words': 124}