<commit_before>module SchemaEvolutionManager

  # Container for common args, mainly to have stricter validation on
  # inputs. Tried to use GetoptLong but could not write solid unit
  # tests around it... so we have our own internal simple implementation.
  class Args

    if !defined?(FLAGS_WITH_ARGUMENTS)
      FLAGS_WITH_ARGUMENTS = {
        :artifact_name => "Specifies the name of the artifact. Tag will be appeneded to this name",
        :user => "Connect to the database as this username instead of the default",
        :host => "Specifies the host name of the machine on which the server is running",
        :port => "Specifies the port on which the server is running",
        :name => "Specifies the name of the database to which to connect",
        :url => "Connect to the database as this username instead of the default",
        :dir => "Path to a directory",
        :tag => "A git tag (e.g. 0.0.1)",
        :prefix => "Configure installer to use this prefix"
      }

      FLAGS_NO_ARGUMENTS = {
        :password => "<PASSWORD> to enter password for the database user. Password is stored for the duration of the process",
        :dry_run => "Include flag to echo commands that will run without actually executing them",
        :help => "Display help",
        :verbose => "Enable verbose logging of all system calls",
      }
    end

    attr_reader :artifact_name, :host, :port, :name, :prefix, :url, :user, :dir, :dry_run, :tag, :password

    # args: Actual string arguments
    # :required => list of parameters that are required
    # :optional => list of parameters that are optional<commit_msg>Fix typos in arguments help text (#51)<commit_after>module SchemaEvolutionManager

  # Container for common args, mainly to have stricter validation on
  # inputs. Tried to use GetoptLong but could not write solid unit
  # tests around it... so we have our own internal simple implementation.
  class Args

    if !defined?(FLAGS_WITH_ARGUMENTS)
      FLAGS_WITH_ARGUMENTS = {
        :artifact_name => "Specifies the name of the artifact. Tag will be appended to this name",
        :user => "Connect to the database as this username instead of the default",
        :host => "Specifies the host name of the machine on which the server is running",
        :port => "Specifies the port on which the server is running",
        :name => "Specifies the name of the database to which to connect",
        :url => "The connection string for the psql database",
        :dir => "Path to a directory",
        :tag => "A git tag (e.g. 0.0.1)",
        :prefix => "Configure installer to use this prefix"
      }

      FLAGS_NO_ARGUMENTS = {
        :password => "<PASSWORD> enter password for the database user. Password is stored for the duration of the process",
        :dry_run => "Include flag to echo commands that will run without actually executing them",
        :help => "Display help",
        :verbose => "Enable verbose logging of all system calls",
      }
    end

    attr_reader :artifact_name, :host, :port, :name, :prefix, :url, :user, :dir, :dry_run, :tag, :password

    # args: Actual string arguments
    # :required => list of parameters that are required
    # :optional => list of parameters that are optional
{'fraction_non_alphanumeric': 0.0867831953388531, 'fraction_numerical': 0.0024532352039251764, 'mean_word_length': 3.0073710073710074, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '6523018', 'n_tokens_mistral': 885, 'n_tokens_neox': 844, 'n_words': 408}