<commit_before>'''
Created on December 20, 2012

@package: url info
@copyright: 2012 Sourcefabric o.p.s.
@license: http://www.gnu.org/licenses/gpl-3.0.txt
@author: <NAME>

API specifications for URL info service.
'''

from ally.api.config import service, call
from ally.api.type import Reference, List
from superdesk.api.domain_superdesk import model
from datetime import datetime

# --------------------------------------------------------------------

@model(id='URL')
class URLInfo:
    '''
    Provides the URL info model.
    '''
    URL = Reference
    ContentType = str
    Title = str
    Description = str
    SiteIcon = Reference
    Date = datetime
    Picture = List(Reference)

# --------------------------------------------------------------------

# No query

# --------------------------------------------------------------------

@service
class IURLInfoService:
    '''
    Provides the service methods for URL info.
    '''<commit_msg>NR-359 : Implement "Link" post type<commit_after>'''
Created on December 20, 2012

@package: url info
@copyright: 2012 Sourcefabric o.p.s.
@license: http://www.gnu.org/licenses/gpl-3.0.txt
@author: <NAME>

API specifications for URL info service.
'''

from ally.api.config import service, call
from ally.api.type import Reference, List
from superdesk.api.domain_superdesk import model
from datetime import datetime

# --------------------------------------------------------------------

@model(id='URL')
class URLInfo:
    '''
    Provides the URL info model.
    '''
    URL = Reference
    ContentType = str
    Title = str
    Description = str
    SiteIcon = str
    Date = datetime
    Picture = List(Reference)

# --------------------------------------------------------------------

# No query

# --------------------------------------------------------------------

@service
class IURLInfoService:
    '''
    Provides the service methods for URL info.
    '''
{'fraction_non_alphanumeric': 0.29552549427679503, 'fraction_numerical': 0.01404786680541103, 'mean_word_length': 1.5137254901960784, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5095730', 'n_tokens_mistral': 506, 'n_tokens_neox': 476, 'n_words': 154}