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

# `fwork.py` will probably be renamed to something a little
# more suggestive as to its purpose.

import unittest
import sys

sys.path.append( '.' )
sys.path.append( '..' )
sys.path.append( '../lib/' )

from  bmark2 import *

class TestBMark2(unittest.TestCase):

    def removeFile(self, file):
        #delete a file if it exists
        if os.path.isfile(file):
            os.system("rm {file}".format(file=file))


    def setUp(self):
        self.foo = 'bar'

    def test_get_filename_suffix(self):
        filename = 'foo.bar.csv'
	assert('csv' == get_filename_suffix(filename))
        filename = 'foo.bar.sqlite3'
	assert('sqlite3' == get_filename_suffix(filename))


    def test_is_csv_file(self):
        filename = 'foo.bar.csv'
	assert(True == is_csv_file(filename))
        filename = 'foo.bar.sqlite3'
	assert(False == is_csv_file(filename))

if __name__ == '__main__':
    unittest.main()<commit_msg>stubbed out test functions for computing results<commit_after>#!/usr/bin/env python

# `fwork.py` will probably be renamed to something a little
# more suggestive as to its purpose.

import unittest
import sys

sys.path.append( '.' )
sys.path.append( '..' )
sys.path.append( '../lib/' )

from  bmark2 import *

def removeFile(self, file):
    #delete a file if it exists
    if os.path.isfile(file):
        os.system("rm {file}".format(file=file))


class TestBMark2(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
	print "Setting up TestCase..."

    def setUp(self):
        print "Setting up..."
        self.foo = 'bar'

    def test_compute_orig(self):
	    print "Testing compute_orig"

    def test_compute_errm(self):
        print "Testing compute_errm"

    def test_compute_u(self):
	print "Testing compute_u"

    def test_compute_o(self):
        print "Testing compute_o"

    def test_get_filename_suffix(self):
        filename = 'foo.bar.csv'
	assert('csv' == get_filename_suffix(filename))
        filename = 'foo.bar.sqlite3'
	assert('sqlite3' == get_filename_suffix(filename))


    def test_is_csv_file(self):
        filename = 'foo.bar.csv'
	assert(True == is_csv_file(filename))
        filename = 'foo.bar.sqlite3'
	assert(False == is_csv_file(filename))

    def tearDown(self):
        print "Done with testing."

    @classmethod
    def tearDownClass(cls):
        print "Tearing down TestCase."


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.12878168438266557, 'fraction_numerical': 0.004088307440719542, 'mean_word_length': 3.1829059829059827, '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': '4077764', 'n_tokens_mistral': 836, 'n_tokens_neox': 806, 'n_words': 190}