<commit_before>"""
lolbot - by <NAME>
Under MIT License
Copyright (c) <NAME> 2017

I am looking for developers.
Make a PR if you can help.

Hall of fame:
- Discord API - #python_discord-py
- Discord Bots - #development
and lastly, the Discord.py docs.
I wouldn't be here without them.
"""
# -*- coding: utf-8 -*-
import logging
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
from subprocess import check_output
import sys
try:
  import discord
  from discord.ext import commands
  import git
except ImportError:
  logging.warn('Module(s) could not be found/not installed')
  logging.warn('Installing automatically')
  check_output(['pip', 'install', '-Ur', 'requirements.txt'])
  sys.exit('Please relaunch lolbot')
else:
  logging.info('Found requirements, continuing')
import aiohttp
import json
import time
import datetime
from random import choice as rchoice<commit_msg>[core] catch pip failures<commit_after>"""
lolbot - by <NAME>
Under MIT License
Copyright (c) <NAME> 2017

I am looking for developers.
Make a PR if you can help.

Hall of fame:
- Discord API - #python_discord-py
- Discord Bots - #development
and lastly, the Discord.py docs.
I wouldn't be here without them.
"""
# -*- coding: utf-8 -*-
import logging
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
from subprocess import check_output
import sys
try:
  import discord
  from discord.ext import commands
  import git
except ImportError:
  logging.warn('Module(s) could not be found/not installed')
  logging.warn('Installing automatically')
  try:
    check_output(['pip', 'install', '-Ur', 'requirements.txt'])
  except Exception:
    logging.error('Fatal error: pip failed to install dependencies')
  else:
    sys.exit('Please relaunch lolbot')
else:
  logging.info('Found requirements, continuing')
import aiohttp
import json
import time
import datetime
from random import choice as rchoice
{'fraction_non_alphanumeric': 0.11231884057971014, 'fraction_numerical': 0.005175983436853002, 'mean_word_length': 4.718934911242603, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2286085', 'n_tokens_mistral': 603, 'n_tokens_neox': 574, 'n_words': 213}