# Path: crowd_anki/utils/utils.py
# def merge_dicts(*dict_args):
# def add_column(db, table_name, column_name, default_value="\"\""):
# def add_absent_field(object_to_modify, field_name, default_value=None):
# def json_compare(first, second):
# def fs_remove(path):
# def list_to_cs_string(uf_list: list) -> str:
# def string_cs_to_list(f_list: str) -> list:
# 
# Path: crowd_anki/utils/constants.py
# UUID_FIELD_NAME = 'crowdanki_uuid'


from uuid import uuid1
from ..utils import utils
from ..utils.constants import UUID_FIELD_NAME
        :return: Unique identificator in a string format.
        """

    def save_to_collection(self, collection):
        """
        Save content to anki collection
        :param collection:
        :return:
        """

    def post_import_filter(self):
        """Remove unnecessary information imported in bulk with necessary"""


class JsonSerializableAnkiDict(JsonSerializable):
    export_filter_set = JsonSerializable.export_filter_set | {"anki_dict"}

    def __init__(self, anki_dict=None):
        super(JsonSerializableAnkiDict, self).__init__()
        self.anki_dict = anki_dict

    def serialization_dict(self):
        return utils.merge_dicts(super(JsonSerializableAnkiDict, self).serialization_dict(),
                                 self.anki_dict)

    def _update_fields(self):
        self.anki_dict.setdefault(UUID_FIELD_NAME, str(uuid1()))

    def get_uuid(self):
        super(JsonSerializableAnkiDict, self).get_uuid()

# Path: crowd_anki/utils/utils.py
# def merge_dicts(*dict_args):
# def add_column(db, table_name, column_name, default_value="\"\""):
# def add_absent_field(object_to_modify, field_name, default_value=None):
# def json_compare(first, second):
# def fs_remove(path):
# def list_to_cs_string(uf_list: list) -> str:
# def string_cs_to_list(f_list: str) -> list:
# 
# Path: crowd_anki/utils/constants.py
# UUID_FIELD_NAME = 'crowdanki_uuid'


# Path: crowd_anki/representation/json_serializable.py
from uuid import uuid1
from ..utils import utils
from ..utils.constants import UUID_FIELD_NAME

        :return: Unique identificator in a string format.
        """

    def save_to_collection(self, collection):
        """
        Save content to anki collection
        :param collection:
        :return:
        """

    def post_import_filter(self):
        """Remove unnecessary information imported in bulk with necessary"""


class JsonSerializableAnkiDict(JsonSerializable):
    export_filter_set = JsonSerializable.export_filter_set | {"anki_dict"}

    def __init__(self, anki_dict=None):
        super(JsonSerializableAnkiDict, self).__init__()
        self.anki_dict = anki_dict

    def serialization_dict(self):
        return utils.merge_dicts(super(JsonSerializableAnkiDict, self).serialization_dict(),
                                 self.anki_dict)

    def _update_fields(self):
        self.anki_dict.setdefault(UUID_FIELD_NAME, str(uuid1()))

    def get_uuid(self):
        super(JsonSerializableAnkiDict, self).get_uuid()

        return self.anki_dict[UUID_FIELD_NAME]