<commit_before>require "formula"

class X264 < Formula
  homepage "https://www.videolan.org/developers/x264.html"
  # the latest commit on the stable branch
  url "https://git.videolan.org/git/x264.git", :revision => "021c0dc6c95c1bc239c9db78a80dd85fc856a4dd"
  version "r2455"
  head "https://git.videolan.org/git/x264.git"

  devel do
    # the latest commit on the master branch
    url "https://git.videolan.org/git/x264.git", :revision => "dd79a61e0e354a432907f2d1f7137b27a12dfce7"
    version "r2479"
  end

  bottle do
    cellar :any
    revision 1
    sha1 "dd035a889bb65ba9ae9cc4815a4159e8d28a5ff2" => :yosemite
    sha1 "4dcf404cc4609578b5dffc94e2aff366f0a5d193" => :mavericks
    sha1 "a49c0943b4b420607c410f6736f9edf3d50704c2" => :mountain_lion
  end

  depends_on "yasm" => :build

  option "10-bit", "Build a 10-bit x264 (default: 8-bit)"
  option "with-mp4=", "Select mp4 output: none (default), l-smash or gpac"

  case ARGV.value "with-mp4"
  when "l-smash" then depends_on "l-smash"
  when "gpac" then depends_on "gpac"
  end

  def install
    args = %W[
      --prefix=#{prefix}
      --enable-shared
      --enable-static
      --enable-strip
    ]
    if Formula["l-smash"].installed?
      args << "--disable-gpac"<commit_msg>x264 r2495<commit_after>class X264 < Formula
  homepage "https://www.videolan.org/developers/x264.html"
  # the latest commit on the stable branch
  url "https://git.videolan.org/git/x264.git", :revision => "6a301b6ee0ae8c78fb704e1cd86f4e861070f641"
  version "r2495"

  devel do
    # the latest commit on the master branch
    url "https://git.videolan.org/git/x264.git", :revision => "40bb56814e56ed342040bdbf30258aab39ee9e89"
    version "r2525"
  end

  head "https://git.videolan.org/git/x264.git"

  bottle do
    cellar :any
    revision 1
    sha1 "dd035a889bb65ba9ae9cc4815a4159e8d28a5ff2" => :yosemite
    sha1 "4dcf404cc4609578b5dffc94e2aff366f0a5d193" => :mavericks
    sha1 "a49c0943b4b420607c410f6736f9edf3d50704c2" => :mountain_lion
  end

  depends_on "yasm" => :build

  option "10-bit", "Build a 10-bit x264 (default: 8-bit)"
  option "with-mp4=", "Select mp4 output: none (default), l-smash or gpac"

  case ARGV.value "with-mp4"
  when "l-smash" then depends_on "l-smash"
  when "gpac" then depends_on "gpac"
  end

  def install
    args = %W[
      --prefix=#{prefix}
      --enable-shared
      --enable-static
      --enable-strip
    ]
    if Formula["l-smash"].installed?
      args << "--disable-gpac"
{'fraction_non_alphanumeric': 0.12424364663170634, 'fraction_numerical': 0.13231141589350545, 'mean_word_length': 3.4285714285714284, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 8, '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': '5271670', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1021, 'n_words': 200}