<commit_before>from pathlib import Path
import json
import inspect
import sys

import PyFloraBook


# Globals
OBSERVATIONS_FOLDER = "observation_data"
RAW_OBSERVATIONS_FOLDER = "raw_observations"
RAW_COUNTS_FOLDER = "raw_counts"
CLEANSED_FOLDER = "cleansed"
SCORES_FOLDER = "scored"
SELECTIONS_FOLDER = "selected"


def locate_source_folder() -> Path:
    """Locate top-level project source folder

    Returns:
        Path of the project source folder
    """
    source_path = Path(inspect.getsourcefile(PyFloraBook)).parent
    # This assumes that the highest-level project __init__ file is contained
    # in a sub-folder of the project folder
    return source_path.parent


def load_configuration() -> dict:
    """Load project configuration info

    Returns:
        Dictionary of configuration info.
    """
    configuration = Path(locate_source_folder().parent / "configuration.json")
    with configuration.open() as config_file:
        return json.load(config_file)


def locate_data_folder() -> Path:<commit_msg>Rename some folders for brevity<commit_after>from pathlib import Path
import json
import inspect
import sys

import PyFloraBook


# Globals
OBSERVATIONS_FOLDER = "observations"
RAW_OBSERVATIONS_FOLDER = "raw_observations"
RAW_COUNTS_FOLDER = "raw_counts"
CLEANSED_FOLDER = "cleansed"
SCORES_FOLDER = "scored"
SELECTIONS_FOLDER = "selected"


def locate_source_folder() -> Path:
    """Locate top-level project source folder

    Returns:
        Path of the project source folder
    """
    source_path = Path(inspect.getsourcefile(PyFloraBook)).parent
    # This assumes that the highest-level project __init__ file is contained
    # in a sub-folder of the project folder
    return source_path.parent


def load_configuration() -> dict:
    """Load project configuration info

    Returns:
        Dictionary of configuration info.
    """
    configuration = Path(locate_source_folder().parent / "configuration.json")
    with configuration.open() as config_file:
        return json.load(config_file)


def locate_data_folder() -> Path:
{'fraction_non_alphanumeric': 0.07922705314009662, 'fraction_numerical': 0.0, 'mean_word_length': 4.138957816377172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2883593', 'n_tokens_mistral': 643, 'n_tokens_neox': 616, 'n_words': 173}