<commit_before>from __future__ import unicode_literals, division, absolute_import
import datetime
import logging
import random

from sqlalchemy import Column, Integer, DateTime, Unicode, and_, Index

from flexget.event import event
from flexget.utils.cached_input import cached
from flexget.plugin import (register_plugin, get_plugin_by_name, PluginError,
    PluginWarning, register_parser_option)
from flexget import schema
from flexget.utils.tools import parse_timedelta

log = logging.getLogger('discover')
Base = schema.versioned_base('discover', 0)


class DiscoverEntry(Base):
    __tablename__ = 'discover_entry'

    id = Column(Integer, primary_key=True)
    title = Column(Unicode, index=True)
    task = Column(Unicode, index=True)
    last_execution = Column(DateTime)

    def __init__(self, title, task):
        self.title = title
        self.task = task
        self.last_execution = None

    def __str__(self):
        return '<DiscoverEntry(title=%s,task=%s,added=%s)>' % (self.title, self.task, self.last_execution)
<commit_msg>Fix small merge problem with discover plugin<commit_after>from __future__ import unicode_literals, division, absolute_import
import datetime
import logging
import random

from sqlalchemy import Column, Integer, DateTime, Unicode, and_, Index

from flexget.event import event
from flexget.utils.cached_input import cached
from flexget.plugin import (register_plugin, get_plugin_by_name, PluginError,
    PluginWarning, register_parser_option)
from flexget import db_schema
from flexget.utils.tools import parse_timedelta

log = logging.getLogger('discover')
Base = db_schema.versioned_base('discover', 0)


class DiscoverEntry(Base):
    __tablename__ = 'discover_entry'

    id = Column(Integer, primary_key=True)
    title = Column(Unicode, index=True)
    task = Column(Unicode, index=True)
    last_execution = Column(DateTime)

    def __init__(self, title, task):
        self.title = title
        self.task = task
        self.last_execution = None

    def __str__(self):
        return '<DiscoverEntry(title=%s,task=%s,added=%s)>' % (self.title, self.task, self.last_execution)

{'fraction_non_alphanumeric': 0.08890968647636874, 'fraction_numerical': 0.0009358914365933552, 'mean_word_length': 4.857534246575343, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5374906', 'n_tokens_mistral': 645, 'n_tokens_neox': 620, 'n_words': 170}