<commit_before>"""
Simple Trove API
===================

This is meant to be a simple wrapper around the Trove API.

"""
import logging
from django.conf import settings
from troveclient import client
from troveclient.exceptions import ClientException
from troveclient.auth import ServiceCatalog
from trove_dashboard.tools.horizon_attrs import get_horizon_parameter


LOG = logging.getLogger(__name__)

client._logger.setLevel(get_horizon_parameter('TROVE_LOGLEVEL', True))


class TokenAuth(object):
    """Simple Token Authentication handler for trove api"""

    def __init__(self, client, auth_strategy, auth_url, username, password, 
                 tenant, region, service_type, service_name, service_url):
        # TODO (rmyers): handle some of these other args 
        self.username = username
        self.service_type = service_type<commit_msg>setting CRITICAL level for logging process<commit_after>"""
Simple Trove API
===================

This is meant to be a simple wrapper around the Trove API.

"""
import logging
from django.conf import settings
from troveclient import client
from troveclient.exceptions import ClientException
from troveclient.auth import ServiceCatalog
from trove_dashboard.tools.horizon_attrs import get_horizon_parameter


LOG = logging.getLogger(__name__)

client._logger.setLevel(get_horizon_parameter('TROVE_LOGLEVEL', logging.CRITICAL))


class TokenAuth(object):
    """Simple Token Authentication handler for trove api"""

    def __init__(self, client, auth_strategy, auth_url, username, password, 
                 tenant, region, service_type, service_name, service_url):
        # TODO (rmyers): handle some of these other args 
        self.username = username
        self.service_type = service_type
{'fraction_non_alphanumeric': 0.08841985168282944, 'fraction_numerical': 0.0, 'mean_word_length': 4.713355048859935, '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': '201016', 'n_tokens_mistral': 470, 'n_tokens_neox': 461, 'n_words': 154}