<commit_before>""" Organize tasks """
import datetime as dt
import os.path
import os
import re

PRIORITY_RE = re.compile("\(([a-zA-Z])\)")
DATE_RE = re.compile("([0-9]{4})-([0-9]{2})-([0-9]{2})")

TODAY = dt.date.today()
_DATA_PATH = "data"
_OTHER_FOLDERS = ["completed", "inbox"]

def setup_folders(path):
    """ Set up folders for tasks in directory specified by path """
    folder_list = [folder for folder in _OTHER_FOLDERS]
    # Date folders
    one_day = dt.timedelta(days=1)
    date = TODAY
    for _ in range(366):
        month = date.strftime("%m")
        day = date.strftime("%d")
        folder = os.path.join(path, month, day)
        folder_list.append(folder)
        date = date + one_day
    # Other folders
    for folder in folder_list:
        os.makedirs(name=folder, exist_ok=True)

class TodoItem:
    """ A todo item """
    def __init__(self, todo_str=None):
        """ Set up todo item with an optional todo string """<commit_msg>Fixed bug in folder path<commit_after>""" Organize tasks """
import datetime as dt
import os.path
import os
import re

PRIORITY_RE = re.compile("\(([a-zA-Z])\)")
DATE_RE = re.compile("([0-9]{4})-([0-9]{2})-([0-9]{2})")

TODAY = dt.date.today()
_DATA_PATH = "data"
_OTHER_FOLDERS = ["completed", "inbox"]

def setup_folders(path):
    """ Set up folders for tasks in directory specified by path """
    folder_list = [folder for folder in _OTHER_FOLDERS]
    # Date folders
    one_day = dt.timedelta(days=1)
    date = TODAY
    for _ in range(366):
        month = date.strftime("%m")
        day = date.strftime("%d")
        folder = os.path.join(month, day)
        folder_list.append(folder)
        date = date + one_day
    # Other folders
    for folder in folder_list:
        folder_path = os.path.join(path, folder)
        os.makedirs(name=folder_path, exist_ok=True)

class TodoItem:
    """ A todo item """
    def __init__(self, todo_str=None):
        """ Set up todo item with an optional todo string """
{'fraction_non_alphanumeric': 0.1487644982349975, 'fraction_numerical': 0.013111447302067574, 'mean_word_length': 3.1333333333333333, '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': '1381979', 'n_tokens_mistral': 705, 'n_tokens_neox': 674, 'n_words': 182}