<commit_before>#!/usr/bin/env ruby -w
libdir = File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)

require "test/unit"
require "discodactyl"

class TestURIAcct < Test::Unit::TestCase
  def test_parse_without_scheme
    a = URI::ACCT.parse('<EMAIL>')
    assert_equal('user', a.local_part)
    assert_equal('host.example', a.host)
  end

  def test_parse_with_scheme<commit_msg>Minimize requires<commit_after>#!/usr/bin/env ruby -w
libdir = File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)

require "test/unit"
require "discodactyl/acct_uri"

class TestURIAcct < Test::Unit::TestCase
  def test_parse_without_scheme
    a = URI::ACCT.parse('<EMAIL>')
    assert_equal('user', a.local_part)
    assert_equal('host.example', a.host)
  end

  def test_parse_with_scheme
{'fraction_non_alphanumeric': 0.14844649021864212, 'fraction_numerical': 0.0, 'mean_word_length': 5.258992805755396, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '7281907', 'n_tokens_mistral': 321, 'n_tokens_neox': 315, 'n_words': 54}