<commit_before>import pytest
import requests
import requests_mock
import base64
import sys
from pingdomexport import configuration, pingdom

class TestPingdom:
    def test_successful_construction(self):
        pingdom.Pingdom(
            configuration.PingdomAccess('u', 'p', 'ae', 'akey')
        )

    def test_checks(self):
        with requests_mock.mock() as m:
            p = pingdom.Pingdom(
                configuration.PingdomAccess('u', 'p', 'ae', 'akey')
            )
            m.get(
                'https://api.pingdom.com/api/2.0/checks',
                request_headers={
                    'Authorization': 'Basic dTpw',
                    'App-Key': 'akey',<commit_msg>remove import sys from pingdom<commit_after>import pytest
import requests
import requests_mock
import base64
from pingdomexport import configuration, pingdom

class TestPingdom:
    def test_successful_construction(self):
        pingdom.Pingdom(
            configuration.PingdomAccess('u', 'p', 'ae', 'akey')
        )

    def test_checks(self):
        with requests_mock.mock() as m:
            p = pingdom.Pingdom(
                configuration.PingdomAccess('u', 'p', 'ae', 'akey')
            )
            m.get(
                'https://api.pingdom.com/api/2.0/checks',
                request_headers={
                    'Authorization': 'Basic dTpw',
                    'App-Key': 'akey',
{'fraction_non_alphanumeric': 0.11269614835948645, 'fraction_numerical': 0.005706134094151213, 'mean_word_length': 2.0172043010752687, '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': '2252744', 'n_tokens_mistral': 430, 'n_tokens_neox': 408, 'n_words': 89}