<commit_before>require 'slop'
require 'manowar'
require_relative 'version'

define 'Synt'

module Synt::CLI
  extend self

  def parse
    Slop.parse help: true, &API
  end

  private

  API = proc {
    banner 'Usage: synt.rb [options]'

    on 't=', 'tokenize=', 'file or string to tokenize'
    on 'c=', 'compare=', 'File or String to compare to something.'
    on 't=', 'to=', 'File or String to compare against.'
    on 'a=', 'algorithm=', 'Similarity algorithm [default=jaccard,tanimoto].'
    on 'n=', 'ngram=', 'Specify what ngrams are generated and used for
                       comparing token sequences.
                       [default=1,2,4..5,10,...,all]'
    on 'd=', 'threshold=', 'Similarity threshold and exit with error.'
<commit_msg>Oops. Totally missed this. Does nothing.<commit_after>require 'slop'
require 'manowar'
require_relative 'version'

define 'Synt'

module Synt::CLI
  extend self

  def parse
    Slop.parse help: true, &API
  end

  private

  API = proc {
    banner 'Usage: synt.rb [options]'

    on 'c=', 'compare=', 'File or String to compare to something.'
    on 't=', 'to=', 'File or String to compare against.'
    on 'a=', 'algorithm=', 'Similarity algorithm [default=jaccard,tanimoto].'
    on 'n=', 'ngram=', 'Specify what ngrams are generated and used for
                       comparing token sequences.
                       [default=1,2,4..5,10,...,all]'
    on 'd=', 'threshold=', 'Similarity threshold and exit with error.'

{'fraction_non_alphanumeric': 0.13986486486486485, 'fraction_numerical': 0.008108108108108109, 'mean_word_length': 2.9076517150395778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7180338', 'n_tokens_mistral': 496, 'n_tokens_neox': 471, 'n_words': 163}