import os
from api.main.computer.analytics_computer import AnalyticsComputer
from api.main.helpers.helpers import getlogger
from api.main.utilities import constants as cst
log = getlogger(cst.LOGGER['SEARCH_ANALYTICS_SERVICE'])


class SearchAnalyticsService:

    def __init__(self):
        self._analyticsComputer = AnalyticsComputer()

    def getQueriesCount(self, date):
        resp = self._analyticsComputer.getDistinctQueriesCount(date)
        return True, resp, ''

    def getPopularQueries(self, date, size):
        resp = self._analyticsComputer.getTopPopularQueries(date, size)
        return True, resp, ''

97a68e00bd0c0c9af647dbc3e8d42a2bd663b230
<mask token>


class SearchAnalyticsService:
    <mask token>
    <mask token>
    <mask token>

<mask token>


class SearchAnalyticsService:

    def __init__(self):
        self._analyticsComputer = AnalyticsComputer()

    def getQueriesCount(self, date):
        resp = self._analyticsComputer.getDistinctQueriesCount(date)
        return True, resp, ''

    def getPopularQueries(self, date, size):
        resp = self._analyticsComputer.getTopPopularQueries(date, size)
        return True, resp, ''

<mask token>
log = getlogger(cst.LOGGER['SEARCH_ANALYTICS_SERVICE'])


class SearchAnalyticsService:

    def __init__(self):
        self._analyticsComputer = AnalyticsComputer()

    def getQueriesCount(self, date):
        resp = self._analyticsComputer.getDistinctQueriesCount(date)
        return True, resp, ''

    def getPopularQueries(self, date, size):
        resp = self._analyticsComputer.getTopPopularQueries(date, size)
        return True, resp, ''

import os
from api.main.computer.analytics_computer import AnalyticsComputer
from api.main.helpers.helpers import getlogger
from api.main.utilities import constants as cst
log = getlogger(cst.LOGGER['SEARCH_ANALYTICS_SERVICE'])


class SearchAnalyticsService:

    def __init__(self):
        self._analyticsComputer = AnalyticsComputer()

    def getQueriesCount(self, date):
        resp = self._analyticsComputer.getDistinctQueriesCount(date)
        return True, resp, ''

    def getPopularQueries(self, date, size):
        resp = self._analyticsComputer.getTopPopularQueries(date, size)
        return True, resp, ''
