<commit_before>import os
import sys
import base64
import logging

from Bigcommerce.api.lib.connection import Connection
from resources import ResourceAccessor

log = logging.getLogger("bc_aaapi")


class ApiClient(object):
    BASE_URL = '/api/v2'
    
    def __init__(self, host, token, user_id):
        auth = base64.b64encode("%s:%s" % (user_id, token))
        self._connection = Connection(host, self.BASE_URL, auth)
        
        
    def connection(self):
        pass
    
    def get_url_registry(self):
        return self._connection.meta_data()
        
    def __getattr__(self, attrname):
        try:
            return ResourceAccessor(attrname, self._connection)
        except:
            raise AttributeError
        raise AttributeError
            <commit_msg>Changed the logger name to Bigcommerce.api<commit_after>import os
import sys
import base64
import logging

from Bigcommerce.api.lib.connection import Connection
from resources import ResourceAccessor

log = logging.getLogger("Bigcommerce.api")


class ApiClient(object):
    BASE_URL = '/api/v2'
    
    def __init__(self, host, token, user_id):
        auth = base64.b64encode("%s:%s" % (user_id, token))
        self._connection = Connection(host, self.BASE_URL, auth)
        
        
    def connection(self):
        pass
    
    def get_url_registry(self):
        return self._connection.meta_data()
        
    def __getattr__(self, attrname):
        try:
            return ResourceAccessor(attrname, self._connection)
        except:
            raise AttributeError
        raise AttributeError
            
{'fraction_non_alphanumeric': 0.08014354066985646, 'fraction_numerical': 0.008373205741626795, 'mean_word_length': 2.22972972972973, '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': '634786', 'n_tokens_mistral': 489, 'n_tokens_neox': 452, 'n_words': 113}