<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import logging
import re
import sys

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('pre_gen_project')

PLUGIN_REGEX = r'^[_a-zA-Z][_a-zA-Z0-9]+$'

plugin_name = '{{cookiecutter.plugin_name}}'

if not re.match(PLUGIN_REGEX, plugin_name):
    logger.error('Invalid value for plugin_name "{}"'.format(plugin_name))
    sys.exit(1)<commit_msg>Make sure the user does not prepend plugin_name with pytest<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import logging
import re
import sys

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger('pre_gen_project')

PLUGIN_REGEX = r'^(?!pytest)[_a-zA-Z][_a-zA-Z0-9]+$'

plugin_name = '{{cookiecutter.plugin_name}}'

if not re.match(PLUGIN_REGEX, plugin_name):
    logger.error('Invalid value for plugin_name "{}"'.format(plugin_name))
    logger.debug('Please do not prepend plugin_name with "pytest"!')
    sys.exit(1)
{'fraction_non_alphanumeric': 0.15859938208032956, 'fraction_numerical': 0.008238928939237899, 'mean_word_length': 5.311688311688312, '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': '2193053', 'n_tokens_mistral': 364, 'n_tokens_neox': 354, 'n_words': 69}