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

  desc "Serve local files to Nintendo 3DS via FBI remote installer"
  homepage "https://github.com/Steveice10/FBI"
  url "https://github.com/Steveice10/FBI/archive/2.5.3.tar.gz"
  sha256 "88ab87c31e9fc70c5ef31fb2217b43e638447b0fd1e26d5652cc554630bce264"

  bottle do
    cellar :any_skip_relocation
    rebuild 1
    sha256 "e6d1df54cf7a26852bb41e2126e7b28198f468d9d3e09125ebfd758e029a1151" => :mojave
    sha256 "37f2e02c88c68efdc6d5d4afdb4758c2b353c59b24e32a4b5a29ae64c0860a96" => :high_sierra
    sha256 "1cd570e03e53dafc15394c6a6ae2214d53f3c2c30ac7fe9bae82cf31c1545982" => :sierra
  end

  depends_on "python"

  def install
    venv = virtualenv_create(libexec)
    venv.pip_install_and_link buildpath/"servefiles"
  end

  test do
    require "socket"

    def test_socket
      server = TCPServer.new(5000)
      client = server.accept
      client.puts "\n"
      client_response = client.gets
      client.close<commit_msg>fbi-servefiles: update 2.5.3 bottle.<commit_after>class FbiServefiles < Formula
  include Language::Python::Virtualenv

  desc "Serve local files to Nintendo 3DS via FBI remote installer"
  homepage "https://github.com/Steveice10/FBI"
  url "https://github.com/Steveice10/FBI/archive/2.5.3.tar.gz"
  sha256 "88ab87c31e9fc70c5ef31fb2217b43e638447b0fd1e26d5652cc554630bce264"

  bottle do
    cellar :any_skip_relocation
    sha256 "778ec157541829ec42f374cadd9a5f0849d73b78ee07b1c7d496b3a9639e8648" => :mojave
    sha256 "9de12962d6f6af9047184f028147d0fac61f05d33e6c6b08e65cf8ef7ba1165b" => :high_sierra
    sha256 "47d7eadf048df60403d45fba40235ac9d91fb338c6a4a0f1da48094cdbadd3c8" => :sierra
  end

  depends_on "python"

  def install
    venv = virtualenv_create(libexec)
    venv.pip_install_and_link buildpath/"servefiles"
  end

  test do
    require "socket"

    def test_socket
      server = TCPServer.new(5000)
      client = server.accept
      client.puts "\n"
      client_response = client.gets
      client.close
{'fraction_non_alphanumeric': 0.07488986784140969, 'fraction_numerical': 0.1811062163485071, 'mean_word_length': 4.4361702127659575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3362336', 'n_tokens_mistral': 1026, 'n_tokens_neox': 832, 'n_words': 124}