<commit_before>import os

def createDirectory(directoryPath):
    return None

def createFile(filePath):
    try:
        createdFile = open(filePath, 'w+')
        createdFile.close()
    except IOError:
        print "Error: could not create file at location: " + filePath

def getFileContents(filePath):
    return None

def deleteFile(filePath):
    return None

def deleteDirectory(directoryPath):
    return None<commit_msg>Implement logic for directory creation<commit_after>import os

def createDirectory(directoryPath):
    if os.path.isdir(directoryPath) is False and os.path.exists(directoryPath) is False:
        try:
            os.makedirs(directoryPath)
        except OSError:
            print 'Error: Could not create directory at location: ' + directoryPath

def createFile(filePath):
    try:
        createdFile = open(filePath, 'w+')
        createdFile.close()
    except IOError:
        print "Error: could not create file at location: " + filePath

def getFileContents(filePath):
    return None

def deleteFile(filePath):
    return None

def deleteDirectory(directoryPath):
    return None
{'fraction_non_alphanumeric': 0.07960644007155634, 'fraction_numerical': 0.0, 'mean_word_length': 3.388235294117647, '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': '4563434', 'n_tokens_mistral': 309, 'n_tokens_neox': 308, 'n_words': 94}