<commit_before>import logging

logger = logging.getLogger(__file__)


class TrackAPICalls(object):
    def process_request(self, request):
        user = request.user
        user_email = getattr(user, 'email', None)

        data = {
            'user': user_email,
            'path': request.path,
            'uri': request.build_absolute_uri,
            'is_ajax': request.is_ajax(),
        }
        logger.info(data)
        return<commit_msg>[AC-7058] call build uri method (dummy)<commit_after>import logging

logger = logging.getLogger(__file__)


class TrackAPICalls(object):
    def process_request(self, request):
        user = request.user
        user_email = getattr(user, 'email', None)

        data = {
            'user': user_email,
            'path': request.path,
            'uri': request.build_absolute_uri(),
            'is_ajax': request.is_ajax(),
        }
        logger.info(data)
        return
{'fraction_non_alphanumeric': 0.1148068669527897, 'fraction_numerical': 0.004291845493562232, 'mean_word_length': 2.2283737024221453, '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': '1208507', 'n_tokens_mistral': 275, 'n_tokens_neox': 266, 'n_words': 56}