<commit_before>(define-library (led documentation)

   (import
      (owl toplevel)
      (led log)
      (led buffer))

   (export
      help-buffer)

   (begin

      (define main-help
"GLOBAL COMMANDS ---------------------------------------------------------------

  Ctrl-n - next, switch to next buffer
  Ctrl-p - previous, switch to previous buffer
  Ctrl-q - quit, lose all changes in all buffers and exit led directly


COMMAND MODE ------------------------------------------------------------------

   h - move left by one character up to newline or start of buffer
   j - move down by one line
   k - move up by one line
   l - move right by one line up to newline or and of buffer

   i - enter insert mode

   . - select current line including newline
   H - shrink the current selection by 1 character
   J - select the rest of the current line and next line up to current position
   L - grow the current selection by 1 character

   d - delete the current selection and copy it
   p - paste last copied content over the current selection
   y - copy current selection to a global buffer

   n - repeat last search forwards
   m<char> - save a mark named by char to current selection (offset and length)
   '<char> - go to selection named by char

   $ - select empty string at end of current line
   0 - move to beginning of current line
   . - select current line

   u - undo last command
   r - redo last undone command

   > - indent selection
   < - undent selection<commit_msg>documentation update<commit_after>(define-library (led documentation)

   (import
      (owl toplevel)
      (led log)
      (led buffer))

   (export
      help-buffer)

   (begin

      (define main-help
"GLOBAL COMMANDS ---------------------------------------------------------------

  Ctrl-n - next, switch to next buffer
  Ctrl-p - previous, switch to previous buffer
  Ctrl-q - quit, lose all changes in all buffers and exit led directly


COMMAND MODE ------------------------------------------------------------------

   h - move left by one character up to newline or start of buffer
   j - move down by one line
   k - move up by one line
   l - move right by one line up to newline or and of buffer

   i - enter insert mode

   . - select current line including newline
   H - shrink the current selection by 1 character
   J - select the rest of the current line and next line up to current position
   L - grow the current selection by 1 character

   d - delete the current selection and copy it
   p - paste last copied content over the current selection
   y - copy current selection to a global buffer

   n - repeat last search forwards
   m<char> - save a mark named by char to current selection (offset and length)
   '<char> - go to selection named by char

   $ - select rest of line
   0 - select beginning of line
   . - select current line

   u - undo last command
   r - redo last undone command

   > - indent selection
   < - undent selection
{'fraction_non_alphanumeric': 0.1305079044735957, 'fraction_numerical': 0.0020181634712411706, 'mean_word_length': 1.8651252408477843, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4972101', 'n_tokens_mistral': 761, 'n_tokens_neox': 715, 'n_words': 398}