from typing import List
from typing import Dict


def reduce_raw_dict(data: List[Dict[str, str]]) -> List[Dict[str, str]]:
    """
    Initial data cleanup.  Filter all logs that deal with accessing a
    "BernsteinConference" page and that contain "Completed" to remove
    "Started" duplicates. Further remove "/plugins" to filter loading
    the PDF viewer load logs.
    :param data: list containing docker log dictionaries.
    :return: list containing docker log dictionaries.
    """
    fil_str = "BernsteinConference"
    fil_dat = list(filter(lambda log_entry: fil_str in log_entry["log"], data))
    fil_dat = list(filter(lambda log_entry: "Completed" in log_entry["log"], fil_dat))
    fil_dat = list(filter(lambda log_entry: "/plugins" not in log_entry["log"], fil_dat))

    return fil_dat