<commit_before>(use-package protobuf-mode
  :ensure t
  :mode (("\\.proto\\'" . protobuf-mode))
  :config
  (defun ar/reindex-proto-fields ()
    "From within a proto message, reindex all proto field tags."
    (interactive)
    (save-excursion
      (save-restriction
        (narrow-to-defun)
        (goto-char (point-min))
        (let ((counter 1))
          (while (search-forward-regexp "\\(\\(\\(optional\\)\\|\\(required\\)\\).*= *\\)[1-9]+" nil t)
            (replace-match (format "\\1%d" counter) t nil)
            (setq counter (+ counter 1))))))))<commit_msg>Adding goto-address-prog-mode to protobuf-mode<commit_after>(use-package protobuf-mode
  :ensure t
  :mode (("\\.proto\\'" . protobuf-mode))
  :hook ((protobuf-mode . goto-address-prog-mode))
  :config
  (defun ar/reindex-proto-fields ()
    "From within a proto message, reindex all proto field tags."
    (interactive)
    (save-excursion
      (save-restriction
        (narrow-to-defun)
        (goto-char (point-min))
        (let ((counter 1))
          (while (search-forward-regexp "\\(\\(\\(optional\\)\\|\\(required\\)\\).*= *\\)[1-9]+" nil t)
            (replace-match (format "\\1%d" counter) t nil)
            (setq counter (+ counter 1))))))))
{'fraction_non_alphanumeric': 0.20097244732576985, 'fraction_numerical': 0.008103727714748784, 'mean_word_length': 2.3468834688346885, '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': '1044573', 'n_tokens_mistral': 425, 'n_tokens_neox': 407, 'n_words': 95}