<commit_before>import re
import requests
import pickle
from samba.netcmd import time

from myanonamouse.models import MAMLoginCache
from myanonamouse.settings import MAM_USERNAME, MAM_PASSWORD, MAM_LOGIN_URL, MAM_ROOT_URL


class MAMException(Exception):
    pass


class LoginException(MAMException):
    pass


def process_url(url):
    if url.startswith('http://') or url.startswith('https://'):
        return url
    elif url.startswith('//'):
        return 'http:' + url
    elif url.startswith('/'):
        return MAM_ROOT_URL + url
    else:
        return MAM_ROOT_URL + '/' + url

<commit_msg>Use default time module rather than samba.netcmd<commit_after>import re
import requests
import pickle
import time

from myanonamouse.models import MAMLoginCache
from myanonamouse.settings import MAM_USERNAME, MAM_PASSWORD, MAM_LOGIN_URL, MAM_ROOT_URL


class MAMException(Exception):
    pass


class LoginException(MAMException):
    pass


def process_url(url):
    if url.startswith('http://') or url.startswith('https://'):
        return url
    elif url.startswith('//'):
        return 'http:' + url
    elif url.startswith('/'):
        return MAM_ROOT_URL + url
    else:
        return MAM_ROOT_URL + '/' + url


{'fraction_non_alphanumeric': 0.09942950285248574, 'fraction_numerical': 0.0, 'mean_word_length': 3.5313653136531364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1164797', 'n_tokens_mistral': 401, 'n_tokens_neox': 393, 'n_words': 102}