<commit_before>"""
Creates a new folder for running SeleniumBase scripts.

Usage:
seleniumbase mkdir [DIRECTORY_NAME]
Output:
A new folder for running SeleniumBase scripts.
Contains default config files, boilerplates, and sample tests.
"""

import codecs
import os
import sys


def main():
    expected_arg = ("[DIRECTORY_NAME]")
    num_args = len(sys.argv)
    if sys.argv[0].split('/')[-1] == "seleniumbase" or (
            sys.argv[0].split('\\')[-1] == "seleniumbase"):
        if num_args < 3 or num_args > 3:
            raise Exception('\n* INVALID RUN COMMAND! *  Usage:\n'
                            '"seleniumbase convert %s"\n' % expected_arg)
    else:
        raise Exception('\n* INVALID RUN COMMAND! *  Usage:\n'
                        '"seleniumbase convert %s"\n' % expected_arg)
    dir_name = sys.argv[num_args-1]<commit_msg>Fix a typo in exception messages<commit_after>"""
Creates a new folder for running SeleniumBase scripts.

Usage:
seleniumbase mkdir [DIRECTORY_NAME]
Output:
A new folder for running SeleniumBase scripts.
Contains default config files, boilerplates, and sample tests.
"""

import codecs
import os
import sys


def main():
    expected_arg = ("[DIRECTORY_NAME]")
    num_args = len(sys.argv)
    if sys.argv[0].split('/')[-1] == "seleniumbase" or (
            sys.argv[0].split('\\')[-1] == "seleniumbase"):
        if num_args < 3 or num_args > 3:
            raise Exception('\n* INVALID RUN COMMAND! *  Usage:\n'
                            '"seleniumbase mkdir %s"\n' % expected_arg)
    else:
        raise Exception('\n* INVALID RUN COMMAND! *  Usage:\n'
                        '"seleniumbase mkdir %s"\n' % expected_arg)
    dir_name = sys.argv[num_args-1]
{'fraction_non_alphanumeric': 0.12974868497954412, 'fraction_numerical': 0.008182349503214495, 'mean_word_length': 2.7217391304347824, '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': '3279354', 'n_tokens_mistral': 568, 'n_tokens_neox': 529, 'n_words': 156}