<commit_before>#!/usr/bin/env python2
import smolder
import nose
import json
import os
from nose.tools import assert_raises
from imp import reload

THIS_DIR = os.path.dirname(os.path.realpath(__file__))

def test_noop_test():
  assert smolder.noop_test()

def test_github_status():
  myfile = open(THIS_DIR + '/github_status.json')
  test_json = json.load(myfile)
  for test in test_json['tests']:
    smolder.http_test(test, 'status.github.com', False)
  reload(smolder)
  assert smolder.failed_tests == 0
<commit_msg>Clean up imports in smolder tests<commit_after>#!/usr/bin/env python2
import smolder
import json
import os
from nose.tools import assert_raises
from imp import reload

THIS_DIR = os.path.dirname(os.path.realpath(__file__))

def test_noop_test():
  assert smolder.noop_test()

def test_github_status():
  myfile = open(THIS_DIR + '/github_status.json')
  test_json = json.load(myfile)
  for test in test_json['tests']:
    smolder.http_test(test, 'status.github.com', False)
  reload(smolder)
  assert smolder.failed_tests == 0

{'fraction_non_alphanumeric': 0.11089866156787763, 'fraction_numerical': 0.0038240917782026767, 'mean_word_length': 5.232142857142857, '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': '200933', 'n_tokens_mistral': 374, 'n_tokens_neox': 357, 'n_words': 87}