<commit_before>import re
#from pypeg2 import * #parser
#import pypeg2
#from antlr4 import * #possibly use this for python3 parsing
import CppHeaderParser #sudo pip3 install cppheaderparser, also: sudo pip3 install ply
import os
import sys

shouldPrint =True

def studentFeedback(*strToPrint):
    if (shouldPrint):
        print (*strToPrint,file=sys.stderr)

def funCppHeaderParser(cppSourceFileName):
    with open (cppSourceFileName, "r") as myfile:
        data=myfile.read()
        
    try:
        cppHeader = CppHeaderParser.CppHeader(cppSourceFileName)<commit_msg>Jack - commented out an unecessay line that may be the cause of an error when running scripts on COG<commit_after>import re
#from pypeg2 import * #parser
#import pypeg2
#from antlr4 import * #possibly use this for python3 parsing
import CppHeaderParser #sudo pip3 install cppheaderparser, also: sudo pip3 install ply
import os
import sys

shouldPrint =True

def studentFeedback(*strToPrint):
    if (shouldPrint):
        print (*strToPrint,file=sys.stderr)

def funCppHeaderParser(cppSourceFileName):
    #with open (cppSourceFileName, "r") as myfile:
        #data=myfile.read()
        
    try:
        cppHeader = CppHeaderParser.CppHeader(cppSourceFileName)
{'fraction_non_alphanumeric': 0.07518189167340339, 'fraction_numerical': 0.009700889248181084, 'mean_word_length': 4.359307359307359, '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': '252172', 'n_tokens_mistral': 379, 'n_tokens_neox': 369, 'n_words': 121}