def METHOD_NAME(demo_paths, default_max):
    """
    Configure data of all demos.
    :param demo_paths: Demo path dicts.
    :param default_max: default maximum points.
    :return: List of demo data dicts.
    """
    results = []
    task_id_list = []
    demos, docs = get_sorted_lists(demo_paths, "demo")
    for doc in docs:
        task_id_list += (
            find_task_ids(
                doc.document.get_paragraphs(),
                default_view_ctx,
                user_context_with_logged_in(None),
            )
        )[0]
    task_info_list = get_users_for_tasks(
        task_id_list, [get_current_user_id()], group_by_doc=True
    )
    task_info_dict = defaultdict(float)
    for task in task_info_list:
        pts = task.get("total_points", 0.0)
        if pts is not None:
            task_info_dict[task.get("doc_id")] += pts
    for doc, demo in zip(docs, demos):
        doc_max_points = demo.get("max_points")
        short_name = demo.get("short_name")
        if short_name is None:
            short_name = doc.short_name
        temp_dict = dict(id=doc.id, name=short_name, link=doc.url)
        if doc_max_points is None:
            doc_set = doc.document.get_settings()
            doc_max_points = doc_set.max_points() or default_max
        if doc_max_points is not None:
            temp_dict["maxPoints"] = doc_max_points
        temp_dict["gotPoints"] = task_info_dict[str(doc.id)]
        results.append(temp_dict)
    return results