<commit_before>require "formula"

class SeleniumServerStandalone < Formula
  homepage "http://seleniumhq.org/"
  url "http://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar"
  sha1 "ef1b5f8ae9c99332f99ba8794988a1d5b974d27b"

  bottle do
    sha1 "fa420b238130adea8407329e2b459a79eaa939dc" => :mavericks
    sha1 "b0ac2d1411b63c50639be91da20b898d8c7de53f" => :mountain_lion
    sha1 "dc9029c9028d18460fdd9c7e0ba296f05e5acd00" => :lion
  end

  def install
    libexec.install "selenium-server-standalone-#{version}.jar"
    bin.write_jar_script libexec/"selenium-server-standalone-#{version}.jar", "selenium-server"
  end

  plist_options :manual => "selenium-server -p 4444"

  def plist; <<-EOS.undent
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>#{plist_name}</string>
      <key>RunAtLoad</key>
      <true/>
      <key>KeepAlive</key>
      <false/>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/bin/java</string><commit_msg>selenium-server 2.44.0<commit_after>class SeleniumServerStandalone < Formula
  homepage "http://seleniumhq.org/"
  url "http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar"
  sha1 "deb2a8d4f6b5da90fd38d1915459ced2e53eb201"

  def install
    libexec.install "selenium-server-standalone-#{version}.jar"
    bin.write_jar_script libexec/"selenium-server-standalone-#{version}.jar", "selenium-server"
  end

  plist_options :manual => "selenium-server -p 4444"

  def plist; <<-EOS.undent
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>#{plist_name}</string>
      <key>RunAtLoad</key>
      <true/>
      <key>KeepAlive</key>
      <false/>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/bin/java</string>
{'fraction_non_alphanumeric': 0.15859449192782527, 'fraction_numerical': 0.08024691358024691, 'mean_word_length': 3.5606060606060606, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 2, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '3621846', 'n_tokens_mistral': 932, 'n_tokens_neox': 814, 'n_words': 108}