<commit_before># -*- coding: utf-8 -*-
""" This module provides collected information on the different types
returned by the crunchbase API.
"""

from crawlcrunch.helper import Model


def make_root_acces(root):
    def access_func(company_name):
        company = root.get(company_name)
        return company.data
    return access_func

IMAGE = Model({'attribution': None,
               'available_sizes': list})
# TODO: this is not resolved properly:
IMAGE.available_sizes = Model([list, list, list])

COMPANY = Model({'permalink': str,
                 'name': str,
                 'image': dict})
COMPANY.image = IMAGE
<commit_msg>get import right<commit_after># -*- coding: utf-8 -*-
""" This module provides collected information on the different types
returned by the crunchbase API.
"""

from crawlcrunch.model.inspection import Model


def make_root_acces(root):
    def access_func(company_name):
        company = root.get(company_name)
        return company.data
    return access_func

IMAGE = Model({'attribution': None,
               'available_sizes': list})
# TODO: this is not resolved properly:
IMAGE.available_sizes = Model([list, list, list])

COMPANY = Model({'permalink': str,
                 'name': str,
                 'image': dict})
COMPANY.image = IMAGE

{'fraction_non_alphanumeric': 0.1123160340821069, 'fraction_numerical': 0.001549186676994578, 'mean_word_length': 3.141025641025641, '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': '1663729', 'n_tokens_mistral': 374, 'n_tokens_neox': 365, 'n_words': 112}