<commit_before>package io.door2door.analytics.network;

import org.junit.Before;
import org.junit.Test;

import io.door2door.analytics.DummyModelsCreatorUtil;
import io.door2door.analytics.api.model.InitializationParameters;
import io.door2door.analytics.base.model.Environment;

import static org.assertj.core.api.Java6Assertions.assertThat;


/**
 * Test class for {@link NetworkConfigurator}.
 */
public class NetworkConfiguratorTest {

    private NetworkConfigurator networkConfigurator;

    @Before
    public void setUp() {
        InitializationParameters initializationParameters =
                DummyModelsCreatorUtil.getDummyInitializationParametersBuilder()
                        .setEnvironment(Environment.PRODUCTION)
                        .build();
        networkConfigurator = new NetworkConfigurator(initializationParameters);
    }

    @Test
    public void shouldGetBaseUrlWithVersion() {
        // given

        // when
        String baseUrlWithVersion = networkConfigurator.getBaseUrlWithVersion();

        // then
        assertThat(baseUrlWithVersion).isEqualTo("https://events.d2di.net/v1/");
    }

    @Test
    public void shouldReturnDefaultTimeoutInSeconds() {
        // given

        // when
        int defaultTimeoutInSeconds = networkConfigurator.getDefaultTimeoutInSeconds();

        assertThat(defaultTimeoutInSeconds).isEqualTo(30);
        // then
    }

}<commit_msg>MA-77: Fixed formatting of one test.<commit_after>package io.door2door.analytics.network;

import org.junit.Before;
import org.junit.Test;

import io.door2door.analytics.DummyModelsCreatorUtil;
import io.door2door.analytics.api.model.InitializationParameters;
import io.door2door.analytics.base.model.Environment;

import static org.assertj.core.api.Java6Assertions.assertThat;


/**
 * Test class for {@link NetworkConfigurator}.
 */
public class NetworkConfiguratorTest {

    private NetworkConfigurator networkConfigurator;

    @Before
    public void setUp() {
        InitializationParameters initializationParameters =
                DummyModelsCreatorUtil.getDummyInitializationParametersBuilder()
                        .setEnvironment(Environment.PRODUCTION)
                        .build();
        networkConfigurator = new NetworkConfigurator(initializationParameters);
    }

    @Test
    public void shouldGetBaseUrlWithVersion() {
        // given

        // when
        String baseUrlWithVersion = networkConfigurator.getBaseUrlWithVersion();

        // then
        assertThat(baseUrlWithVersion).isEqualTo("https://events.d2di.net/v1/");
    }

    @Test
    public void shouldReturnDefaultTimeoutInSeconds() {
        // given

        // when
        int defaultTimeoutInSeconds = networkConfigurator.getDefaultTimeoutInSeconds();

        // then
        assertThat(defaultTimeoutInSeconds).isEqualTo(30);
    }

}
{'fraction_non_alphanumeric': 0.0862129144851658, 'fraction_numerical': 0.006980802792321117, 'mean_word_length': 3.0480225988700567, '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': '1376107', 'n_tokens_mistral': 772, 'n_tokens_neox': 749, 'n_words': 125}