import json


def read_url_patterns_file(url_patterns_path):
    """
        Loads the URL patterns from the corresponding file
    """

    with open(url_patterns_path, "r") as url_patterns_file:
        json_data = json.loads(url_patterns_file.read())
        return json_data["exclude"], json_data["sample"]