<commit_before>#!/usr/bin/env python

import imp

def check_for(module):
  try:
    imp.find_module(module)
  except ImportError:
    print(module + " not installed")

check_for('os')
check_for('platform')
check_for('socket')
check_for('json')
check_for('urllib2')
check_for('apt')
check_for('daemonize')
check_for('schedule')
check_for('configparser')

print("checks done.")
<commit_msg>comment how to install added<commit_after>#!/usr/bin/env python

import imp

def check_for(module):
  try:
    imp.find_module(module)
  except ImportError:
    print(module + " not installed")

check_for('os')
check_for('platform')
check_for('socket')
check_for('json')
check_for('urllib2')
check_for('apt')                # sudo apt install python-apt
check_for('daemonize')          # sudo apt install python-daemonize
check_for('schedule')           # sudo pip install schedule
check_for('configparser')       # sudo apt install python-configparser

print("checks done.")

{'fraction_non_alphanumeric': 0.1358921161825726, 'fraction_numerical': 0.002074688796680498, 'mean_word_length': 4.95679012345679, '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': '1834500', 'n_tokens_mistral': 321, 'n_tokens_neox': 311, 'n_words': 68}