<commit_before>package dataimport;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.BasicCookieStore;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.BasicHttpClientConnectionManager;
import org.apache.http.impl.cookie.BasicClientCookie2;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;

import javax.net.ssl.SSLContext;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URI;
import java.util.Map;

import static java.util.Arrays.asList;

public class GymDataImportTool {
    private static final TypeReference<Map<String, GymResponse>> gymsTypeReference =
            new TypeReference<Map<String, GymResponse>>() {};

    public static void main(String[] args) {
        if (args == null || args.length > 2 || args.length < 2) {
            System.out.println("Wrong use of the import tool! Run " + GymDataImportTool.class.getSimpleName() +
                    " with parameters: [side of map cube, in kilometres] [the location to search for]");
            throw new RuntimeException("Error!");
        }
        FileOutputStream fis = null;
        try {
            final String location = StringUtils.join(ArrayUtils.removeElements(args, 0), " ");
            final Integer widthCube = new Integer(args[0]);
            String ann4Cookie = "1";
            String mapFiltersCookie = "1[##split##]1[##split##]1[##split##]0[##split##]0[##split##]1[##split##]1" +
                    "[##split##]0[##split##]1[##split##]1[##split##]1";
            String ann6Cookie = "1";
            String latlngZoomCookie = "14[##split##]59.84869731029538[##split##]17.579755254187045";<commit_msg>Fix of minor mistake<commit_after>package dataimport;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.BasicCookieStore;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.BasicHttpClientConnectionManager;
import org.apache.http.impl.cookie.BasicClientCookie2;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;

import javax.net.ssl.SSLContext;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URI;
import java.util.Map;

import static java.util.Arrays.asList;

public class GymDataImportTool {
    private static final TypeReference<Map<String, GymResponse>> gymsTypeReference =
            new TypeReference<Map<String, GymResponse>>() {};

    public static void main(String[] args) {
        if (args == null || args.length > 2 || args.length < 2) {
            System.out.println("Wrong use of the import tool! Run " + GymDataImportTool.class.getSimpleName() +
                    " with parameters: [side of map cube, in kilometres] [the location to search for]");
            throw new RuntimeException("Error!");
        }
        FileOutputStream fis = null;
        try {
            final String location = StringUtils.join(ArrayUtils.remove(args, 0), " ");
            final Integer widthCube = new Integer(args[0]);
            String ann4Cookie = "1";
            String mapFiltersCookie = "1[##split##]1[##split##]1[##split##]0[##split##]0[##split##]1[##split##]1" +
                    "[##split##]0[##split##]1[##split##]1[##split##]1";
            String ann6Cookie = "1";
            String latlngZoomCookie = "14[##split##]59.84869731029538[##split##]17.579755254187045";
{'fraction_non_alphanumeric': 0.12642934196332253, 'fraction_numerical': 0.02459546925566343, 'mean_word_length': 4.232505643340858, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1362607', 'n_tokens_mistral': 1377, 'n_tokens_neox': 1314, 'n_words': 254}