from typing import List
from pathlib import Path


def get_available_tasks() -> List[str]:
    """Get available tasks

    Returns:
        List of tasks
    """
    task_dir = Path(__file__).parent.absolute()
    tasks = [f.name for f in task_dir.glob("*") if f.is_dir() and f.name[0] != "_"]
    tasks_extra = ["slcp_distractors", "bernoulli_glm_raw"]
    return tasks + tasks_extra