<commit_before>const eol = require('os').EOL
const muOps = require('./modules/muOps')

const usage = `
Usage:
mu <command> [<args>]

  Commands:	Args:			Descriptions:
  help					- shows usage
  start		[name]			- creates a new mu repo
  state					- shows the working repo state
  save		<message>		- records snapshot of repo
  which					- shows name of current repo
  saveas	<name>			- saves repo with a new name
  undo		<file|pattern>		- reverts file (or pattern) to last save
  get		<name> [version]	- switches to a different named repo
  mash		<name> [version]	- mashes (ie merges) named repo into current repo
`

module.exports = {
  help: usage.trim(),
  eol: new RegExp(`(?=${eol})`),
  insert: (string, index, substr) => string.slice(0, index) + substr + string.slice(index),
  vnorm: v => Math.max(0, parseInt(v,10) - 1),
  linesPath: muOps.path('disk_mem', 'lines'),
  filesPath: muOps.path('disk_mem', 'files'),
  binPath: muOps.path('disk_mem', 'bin'),
  get baseCase() {
    return {
      'ino': {},
      'dat': {}
    }
  }
}<commit_msg>updates help<commit_after>const eol = require('os').EOL
const muOps = require('./modules/muOps')

const usage = `
Usage:
mu <command> [<args>]

  Commands:	Args:			Descriptions:
  help					- shows usage
  start		[name]			- creates a new mu repo
  state					- shows the working repo state
  save		<message>		- records snapshot of repo
  which					- shows name of current repo
  saveas	<name>			- saves repo with a new name
  history	[limit]			- shows ≤ the limit number of save messages for current repo
  undo		<file|pattern>		- reverts file (or pattern) to last save
  get		<name> [version]	- switches to a different named repo
  mash		<name> [version]	- mashes (ie merges) named repo into current repo
`

module.exports = {
  help: usage.trim(),
  eol: new RegExp(`(?=${eol})`),
  insert: (string, index, substr) => string.slice(0, index) + substr + string.slice(index),
  vnorm: v => Math.max(0, parseInt(v,10) - 1),
  linesPath: muOps.path('disk_mem', 'lines'),
  filesPath: muOps.path('disk_mem', 'files'),
  binPath: muOps.path('disk_mem', 'bin'),
  get baseCase() {
    return {
      'ino': {},
      'dat': {}
    }
  }
}
{'fraction_non_alphanumeric': 0.14678899082568808, 'fraction_numerical': 0.0045871559633027525, 'mean_word_length': 3.218568665377176, 'pattern_counts': {'":': 0, '<': 17, '<?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': '1252251', 'n_tokens_mistral': 810, 'n_tokens_neox': 768, 'n_words': 240}