<commit_before># Read $HOME/.dtachr for where to put sockets
# Generate a 256 character file name if a socket isn't given
# Everything after the optional socket name is the command
require 'rubygems'
require 'docopt'

module Dtachr

  VERSION = '0.0.4'
  NAME = 'dtachr'

  DOC = <<-DOCOPT
    dtachr

    Usage:
      #{Dtachr::NAME} [--socket=<sock>] [--title=<title>] [--message=<message>] <parts>...
      #{Dtachr::NAME} -h | --help
      #{Dtachr::NAME} -v | --version

    Options:
      -h --help               Show this screen
      -v --version            Show the version
      -n --socket=<sock>      Temporary file to use as socket for dtach command
      -t --title=<title>      Title to use for terminal-notifier
      -m --message=<message>  Message to use with terminal-notifier

    DOCOPT

  class Runner

    def initialize(args)
      @opts = Docopt::docopt(Dtachr::DOC, {
        :argv => args,
        :version => Dtachr::VERSION<commit_msg>Add optional -- to doc string<commit_after># Read $HOME/.dtachr for where to put sockets
# Generate a 256 character file name if a socket isn't given
# Everything after the optional socket name is the command
require 'rubygems'
require 'docopt'

module Dtachr

  VERSION = '0.0.4'
  NAME = 'dtachr'

  DOC = <<-DOCOPT
    dtachr

    Usage:
      #{Dtachr::NAME} [--socket=<sock>] [--title=<title>] [--message=<message>] [--] <parts>...
      #{Dtachr::NAME} -h | --help
      #{Dtachr::NAME} -v | --version

    Options:
      -h --help               Show this screen
      -v --version            Show the version
      -n --socket=<sock>      Temporary file to use as socket for dtach command
      -t --title=<title>      Title to use for terminal-notifier
      -m --message=<message>  Message to use with terminal-notifier

    DOCOPT

  class Runner

    def initialize(args)
      @opts = Docopt::docopt(Dtachr::DOC, {
        :argv => args,
        :version => Dtachr::VERSION
{'fraction_non_alphanumeric': 0.129297075423294, 'fraction_numerical': 0.0061570035915854285, 'mean_word_length': 2.3106960950764006, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '599339', 'n_tokens_mistral': 663, 'n_tokens_neox': 624, 'n_words': 203}