<commit_before>from flocker.node import BackendDescription, DeployerType
from .ceph_rbd import (
    rbd_from_configuration, DEFAULT_CLUSTER_NAME, DEFAULT_USER_ID,
    DEFAULT_CEPF_CONF_PATH, DEFAULT_STORAGE_POOL
)

def api_factory(cluster_id, test_case, **kwargs):

    cluster_name = DEFAULT_CLUSTER_NAME
    if "cluster_name" in kwargs:
        cluster_name = kwargs["cluster_name"]

    user_id = DEFAULT_USER_ID
    if "user_id" in kwargs:
        user_id = kwargs["user_id"]

    ceph_conf_path = DEFAULT_CEPF_CONF_PATH
    if "ceph_conf_path" in kwargs:
        ceph_conf_path = kwargs["ceph_conf_path"]

    storage_pool = DEFAULT_STORAGE_POOL
    if "storage_pool" in kwargs:
       storage_pool= kwargs["storage_pool"]


    return rbd_from_configuration(cluster_name=cluster_name, user_id=user_id,<commit_msg>Making test_case default value to None<commit_after>from flocker.node import BackendDescription, DeployerType
from .ceph_rbd import (
    rbd_from_configuration, DEFAULT_CLUSTER_NAME, DEFAULT_USER_ID,
    DEFAULT_CEPF_CONF_PATH, DEFAULT_STORAGE_POOL
)

def api_factory(cluster_id, test_case=None, **kwargs):

    cluster_name = DEFAULT_CLUSTER_NAME
    if "cluster_name" in kwargs:
        cluster_name = kwargs["cluster_name"]

    user_id = DEFAULT_USER_ID
    if "user_id" in kwargs:
        user_id = kwargs["user_id"]

    ceph_conf_path = DEFAULT_CEPF_CONF_PATH
    if "ceph_conf_path" in kwargs:
        ceph_conf_path = kwargs["ceph_conf_path"]

    storage_pool = DEFAULT_STORAGE_POOL
    if "storage_pool" in kwargs:
       storage_pool= kwargs["storage_pool"]


    return rbd_from_configuration(cluster_name=cluster_name, user_id=user_id,
{'fraction_non_alphanumeric': 0.07245508982035928, 'fraction_numerical': 0.0, 'mean_word_length': 4.683673469387755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6321001', 'n_tokens_mistral': 575, 'n_tokens_neox': 577, 'n_words': 108}