<commit_before>"""Setup for Advent of Code by making git branches and directories."""
from __future__ import unicode_literals, division
from subprocess import call
import os

# Add dayname.py file
#   Import unicode_literals, empty docstring
#   def part1 and part2 functions
# Add test_dayname.py file
# Import unicode_literals, Docstring

SOLUTION_TEMPLATE = [
    '"""',
    '"""',
    'from __future__ import unicode_literals, division',
    '',
    '',
    'def part1(lines):',
    '   """Run solution for Part 1."""',
    '',
    '',
    'def part1(lines):',
    '   """Run solution for Part 1."""',
    '',
]

HERE = os.path.abspath(os.path.dirname(__file__))

RETURN_TO = 'automate-setup'


def test_names():
    """."""
    for n in range(2):
        yield 'test{}'.format(n)


def main(names):
    """."""
    for name in names:
        path = os.path.join(HERE, name)
        txt_filepath = os.path.join(path, 'input.txt')
        solution_filename = '.'.join((name, 'py'))
        solution_filepath = os.path.join(path, solution_filename)<commit_msg>Fixed duplicate part1 named function.<commit_after>"""Setup for Advent of Code by making git branches and directories."""
from __future__ import unicode_literals, division
from subprocess import call
import os

# Add dayname.py file
#   Import unicode_literals, empty docstring
#   def part1 and part2 functions
# Add test_dayname.py file
# Import unicode_literals, Docstring

SOLUTION_TEMPLATE = [
    '"""',
    '',
    '"""',
    'from __future__ import unicode_literals, division',
    '',
    '',
    'def part1(lines):',
    '   """Run solution for Part 1."""',
    '',
    '',
    'def part2(lines):',
    '   """Run solution for Part 2."""',
    '',
]

HERE = os.path.abspath(os.path.dirname(__file__))

RETURN_TO = 'automate-setup'


def test_names():
    """."""
    for n in range(2):
        yield 'test{}'.format(n)


def main(names):
    """."""
    for name in names:
        path = os.path.join(HERE, name)
        txt_filepath = os.path.join(path, 'input.txt')
        solution_filename = '.'.join((name, 'py'))
        solution_filepath = os.path.join(path, solution_filename)
{'fraction_non_alphanumeric': 0.15306122448979592, 'fraction_numerical': 0.006957328385899814, 'mean_word_length': 3.124282982791587, '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': '6569882', 'n_tokens_mistral': 711, 'n_tokens_neox': 702, 'n_words': 183}