<commit_before>import requests
import json
import hashlib
import hmac
import urllib
import uuid
import sys
import logging
import time
from random import randint
from tqdm import tqdm

from . import config
from .api_photo import configurePhoto
from .api_photo import uploadPhoto
from .api_photo import downloadPhoto
from .api_video import downloadVideo

from .api_video import configureVideo
from .api_video import uploadVideo

from .api_search import fbUserSearch
from .api_search import searchUsers
from .api_search import searchUsername
from .api_search import searchTags
from .api_search import searchLocation

from .api_profile import removeProfilePicture
from .api_profile import setPrivateAccount
from .api_profile import setPublicAccount
from .api_profile import getProfileData
from .api_profile import editProfile
from .api_profile import setNameAndPhone

from .prepare import get_credentials
from .prepare import delete_credentials

try:
    from urllib.parse import urlparse
except ImportError:
    from urlparse import urlparse

# The urllib library was split into other modules from Python 2 to Python 3
if sys.version_info > (3,):
    import urllib.parse


class API(object):
    def __init__(self):
        self.isLoggedIn = False
        self.LastResponse = None
        self.total_requests = 0

        # handle logging
        self.logger = logging.getLogger('[instabot]')
<commit_msg>Fix bug, when multiple bots use one logger.<commit_after>import requests
import json
import hashlib
import hmac
import urllib
import uuid
import sys
import logging
import time
from random import randint
from tqdm import tqdm

from . import config
from .api_photo import configurePhoto
from .api_photo import uploadPhoto
from .api_photo import downloadPhoto
from .api_video import downloadVideo

from .api_video import configureVideo
from .api_video import uploadVideo

from .api_search import fbUserSearch
from .api_search import searchUsers
from .api_search import searchUsername
from .api_search import searchTags
from .api_search import searchLocation

from .api_profile import removeProfilePicture
from .api_profile import setPrivateAccount
from .api_profile import setPublicAccount
from .api_profile import getProfileData
from .api_profile import editProfile
from .api_profile import setNameAndPhone

from .prepare import get_credentials
from .prepare import delete_credentials

try:
    from urllib.parse import urlparse
except ImportError:
    from urlparse import urlparse

# The urllib library was split into other modules from Python 2 to Python 3
if sys.version_info > (3,):
    import urllib.parse


class API(object):
    def __init__(self):
        self.isLoggedIn = False
        self.LastResponse = None
        self.total_requests = 0

        # handle logging
        self.logger = logging.getLogger('[instabot_{}]'.format(id(self)))

{'fraction_non_alphanumeric': 0.04239663629992992, 'fraction_numerical': 0.002803083391730904, 'mean_word_length': 4.576171875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1635283', 'n_tokens_mistral': 777, 'n_tokens_neox': 764, 'n_words': 305}