<commit_before>import json
import errno
from dateutil import parser
import calendar

def convert_to_unix(self, timestamp):
    '''Used to convert any timestamp format to unix time'''
    return calendar.timegm(parser.parse(timestamp).utctimetuple())

def save_data(self, json_data, location):
    '''Saves json data to a specific file location'''
    try:
        os.makedirs(os.path.dirname(location))
    except OSError as e:
        if e.errno != errno.EEXIST:
            raise

    json.dump(json_data, open(location, 'w'))<commit_msg>Removed self from the function signitures<commit_after>import json
import errno
from dateutil import parser
import calendar

def convert_to_unix(timestamp):
    '''Used to convert any timestamp format to unix time'''
    return calendar.timegm(parser.parse(timestamp).utctimetuple())

def save_data(json_data, location):
    '''Saves json data to a specific file location'''
    try:
        os.makedirs(os.path.dirname(location))
    except OSError as e:
        if e.errno != errno.EEXIST:
            raise

    json.dump(json_data, open(location, 'w'))
{'fraction_non_alphanumeric': 0.10036496350364964, 'fraction_numerical': 0.0, 'mean_word_length': 3.7695652173913046, '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': '3766506', 'n_tokens_mistral': 333, 'n_tokens_neox': 321, 'n_words': 100}