<commit_before>import Legobot
import ConfigParser

def is_num(val):
    try:
        if float(val) != int(val):
            return False

        test = int(val)
        test = int(float(val))

        return True
    except:
        return False

def fetch_apod(msg):
    import requests
    import ConfigParser
    import json

    api_keys = ConfigParser.SafeConfigParser()
    if os.path.isfile('api.cfg'):
        api_keys.read('api.cfg')
    else:
        return "No API keys found. Please initialize your api.cfg file."

    try:
        APOD_API_KEY = api_keys.get('API','nasa')
    except Exception as e:<commit_msg>Change imported modules for APOD<commit_after>import Legobot
import ConfigParser

def is_num(val):
    try:
        if float(val) != int(val):
            return False

        test = int(val)
        test = int(float(val))

        return True
    except:
        return False

def fetch_apod(msg):
    import requests
    import ConfigParser
    import os

    api_keys = ConfigParser.SafeConfigParser()
    if os.path.isfile('api.cfg'):
        api_keys.read('api.cfg')
    else:
        return "No API keys found. Please initialize your api.cfg file."

    try:
        APOD_API_KEY = api_keys.get('API','nasa')
    except Exception as e:
{'fraction_non_alphanumeric': 0.0962904498816101, 'fraction_numerical': 0.0, 'mean_word_length': 2.3280839895013123, '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': '6733790', 'n_tokens_mistral': 392, 'n_tokens_neox': 383, 'n_words': 107}