<commit_before># Copyright (C) 2017 <NAME>. All rights reserved.
# Created: 2017-06-05

print("== UML to CPP ==")
print("Create or modify C++ header and implementation files by plaintext UML.")
#print("Enter a UML filename: ") # file import currently disabled
# check if file isn't too bonkers
uml = [] # pull UML into memory as string list, 1 line per element
# check if file is properly formatted
# create blank object
noteList = [] # if weird things happen, this list will show potential errors
              # will be displayed after files are created for user info

# for each in uml list:
    # if first 4 = "class" and ends in {:
        # create new object with className (use same variable to clear prev object)
    # if +, obj.addToPublic(uml[current])
    # if -, obj.addToPrivate(uml[current])
    # if neither, obj.addToPrivate(uml[current]) and add message to noteList
    # if }:
        # obj.build()
        # create name.hpp file and write using hpp list
        # create name.cpp file and write using cpp list

class UmlClass:
    def __init__(self, className):
        self.name = className
        self.cpp = [] # will contain final implementation file
        self.functions = [] # list of functions used to build cpp file
        self.hppPrivate = []
        self.hppPublic = []
        self.hpp = [] # will contain final hpp template, built from hppPub, hppPriv<commit_msg>Add note about resetting object in loop<commit_after># Copyright (C) 2017 <NAME>. All rights reserved.
# Created: 2017-06-05

print("== UML to CPP ==")
print("Create or modify C++ header and implementation files by plaintext UML.")
#print("Enter a UML filename: ") # file import currently disabled
# check if file isn't too bonkers
uml = [] # pull UML into memory as string list, 1 line per element
# check if file is properly formatted
# create blank object
noteList = [] # if weird things happen, this list will show potential errors
              # will be displayed after files are created for user info

# for each in uml list:
    # if first 4 = "class" and ends in {:
        # create new object with className (use same variable to reset prev object)
    # if +, obj.addToPublic(uml[current])
    # if -, obj.addToPrivate(uml[current])
    # if neither, obj.addToPrivate(uml[current]) and add message to noteList
    # if }:
        # obj.build()
        # create name.hpp file and write using hpp list
        # create name.cpp file and write using cpp list

class UmlClass:
    def __init__(self, className):
        self.name = className
        self.cpp = [] # will contain final implementation file
        self.functions = [] # list of functions used to build cpp file
        self.hppPrivate = []
        self.hppPublic = []
        self.hpp = [] # will contain final hpp template, built from hppPub, hppPriv
{'fraction_non_alphanumeric': 0.09078014184397164, 'fraction_numerical': 0.009929078014184398, 'mean_word_length': 2.99009900990099, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '861379', 'n_tokens_mistral': 802, 'n_tokens_neox': 767, 'n_words': 343}