<commit_before>import unittest

from sdklib.test.rrserver import RRServer
from sdklib.util.files import read_file_as_string

from tests.sample_sdk import SampleSdk


class TestSampleSdk(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/get_restaurants.txt'),
                                              response=read_file_as_string('tests/responses/get_restaurants.txt'))
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/create_restaurant.txt'))
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/login.txt'))
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/update_restaurant.txt'))
        host, port = RRServer.manager.start_rrserver()

        SampleSdk.set_default_proxy("http://localhost:8080")
        SampleSdk.set_default_host("http://%s:%s" % (host, port))
        cls.api = SampleSdk()

    @classmethod
    def tearDownClass(cls):
        RRServer.manager.close_rrserver()
<commit_msg>comment proxy in test<commit_after>import unittest

from sdklib.test.rrserver import RRServer
from sdklib.util.files import read_file_as_string

from tests.sample_sdk import SampleSdk


class TestSampleSdk(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/get_restaurants.txt'),
                                              response=read_file_as_string('tests/responses/get_restaurants.txt'))
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/create_restaurant.txt'))
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/login.txt'))
        RRServer.manager.add_request_response(request=read_file_as_string('tests/requests/update_restaurant.txt'))
        host, port = RRServer.manager.start_rrserver()

        # SampleSdk.set_default_proxy("http://localhost:8080")
        SampleSdk.set_default_host("http://%s:%s" % (host, port))
        cls.api = SampleSdk()

    @classmethod
    def tearDownClass(cls):
        RRServer.manager.close_rrserver()

{'fraction_non_alphanumeric': 0.1023936170212766, 'fraction_numerical': 0.0035460992907801418, 'mean_word_length': 4.049217002237136, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4513549', 'n_tokens_mistral': 707, 'n_tokens_neox': 674, 'n_words': 77}