<commit_before>
import sys
import argparse


# get the arguments from the command line
parser = argparse.ArgumentParser()

parser.add_argument("-f", "--filename", help="lesen source file to be converted to code")

parser.add_argument("-s", "--sourcetype", help="the type of source file to export to")

args = parser.parse_args()<commit_msg>starting off the to-code functionality<commit_after>
import sys
import argparse


# get the arguments from the command line
parser = argparse.ArgumentParser()

parser.add_argument("-f", "--filename", help="lesen source file to be converted to code")

parser.add_argument("-s", "--sourcetype", help="the type of source file to export to")

parser.add_argument("-n", "--blockname", help="the top level code block to export to the source file")

args = parser.parse_args()

if args.blockname is not None:
    MasterBlockName = args.blockname
else:
    MasterBlockName = "*"

if args.filename is not None:
    fileName = args.filename

Mode = 'document'

# blindly going to use a dictionary to store the  code chunks
# this might need to be changed later

codeChunks = {}

if fileName is not None:
    file = open(fileName)

    for line in file:
        if (line[0] == '<') and (line[1] == '<'):

    file.close()
{'fraction_non_alphanumeric': 0.1184, 'fraction_numerical': 0.0016, 'mean_word_length': 4.148148148148148, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2422886', 'n_tokens_mistral': 371, 'n_tokens_neox': 371, 'n_words': 141}