<commit_before># REQUIREMENTS: npm install -g mammouth
# USAGE: Files must have a .mammouth suffix

import sublime, sublime_plugin,os
from os.path import dirname, realpath

class BuildMammouthOnSave(sublime_plugin.EventListener):
 
  def on_post_save(self, view):
    mammouthFile = view.file_name()
    filename, file_extension = os.path.splitext(mammouthFile)
    if file_extension == ".mammouth":
      print("Compiling: " + mammouthFile)
      view.window().run_command('exec',{'cmd': ["/usr/local/bin/mammouth", "-c", mammouthFile] })

# REFERENCES
# http://www.purplebeanie.com/Development/automatically-run-build-on-save-in-sublime-text-2.html<commit_msg>Adding auto build support for .mmt extension files.<commit_after># REQUIREMENTS: npm install -g mammouth
# USAGE: Files must have a .mammouth suffix

import sublime, sublime_plugin,os
from os.path import dirname, realpath

class BuildMammouthOnSave(sublime_plugin.EventListener):
 
  def on_post_save(self, view):
    mammouthFile = view.file_name()
    filename, file_extension = os.path.splitext(mammouthFile)
    if file_extension == ".mammouth" or file_extension == ".mmt":
      print("Compiling: " + mammouthFile)
      view.window().run_command('exec',{'cmd': ["/usr/local/bin/mammouth", "-c", mammouthFile] })

# REFERENCES
# http://www.purplebeanie.com/Development/automatically-run-build-on-save-in-sublime-text-2.html
{'fraction_non_alphanumeric': 0.1316546762589928, 'fraction_numerical': 0.0014388489208633094, 'mean_word_length': 4.8691983122362865, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6740290', 'n_tokens_mistral': 490, 'n_tokens_neox': 470, 'n_words': 93}