<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import urllib, datetime

def log(interfaces, name="", content=""):
    '''
    #print to the script calling .log(); usually Mainframe.py
    print(str(datetime.datetime.now()) + "\n\t" + name + "\t" + str(content))
    '''
    #log in file
    logfile=open("log.txt", 'r+')
    logfile.write(str(datetime.datetime.now()) + "\n\t" + name + "\t" + str(content))
    
    #log via interfaces
    for i in interfaces:
        i.log(content)<commit_msg>commented out logging to file<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import urllib, datetime

def log(interfaces, name="", content=""):
    '''
    #print to the script calling .log(); usually Mainframe.py
    print(str(datetime.datetime.now()) + "\n\t" + name + "\t" + str(content))
    
    #log in file
    logfile=open("log.txt", 'r+')
    logfile.write(str(datetime.datetime.now()) + "\n\t" + name + "\t" + str(content))
    '''
    
    #log via interfaces
    for i in interfaces:
        i.log(content)
{'fraction_non_alphanumeric': 0.19212295869356388, 'fraction_numerical': 0.0019212295869356388, 'mean_word_length': 2.917293233082707, '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': '267103', 'n_tokens_mistral': 362, 'n_tokens_neox': 354, 'n_words': 87}