<commit_before>package com.cloudskol.restc.client;

import com.cloudskol.restc.core.*;
import com.cloudskol.restc.get.GetApiRequestBuilder;

import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Form;
import javax.ws.rs.core.MultivaluedHashMap;
import javax.ws.rs.core.MultivaluedMap;
import java.util.List;

/**
 * @author tham
 *
 * Main entry point for Rest client
 */

public class RestClient {
    private static RestClient instance;
    private static Client client;

    private RestClient() {}

    public static final synchronized RestClient getInstance() {
        if (instance == null) {
            instance = new RestClient();

            if (client == null) {
                client = ClientBuilder.newClient();
            }
        }

        return instance;
    }

    public ApiResponse request(ApiRequest request, ApiMethod method) {
        ApiResponse response = null;
        switch (method) {<commit_msg>Fix: Un-used imports are removed<commit_after>package com.cloudskol.restc.client;

import com.cloudskol.restc.core.*;
import com.cloudskol.restc.get.GetApiRequestBuilder;

import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
import java.util.List;

/**
 * @author tham
 *
 * Main entry point for Rest client
 */

public class RestClient {
    private static RestClient instance;
    private static Client client;

    private RestClient() {}

    public static final synchronized RestClient getInstance() {
        if (instance == null) {
            instance = new RestClient();

            if (client == null) {
                client = ClientBuilder.newClient();
            }
        }

        return instance;
    }

    public ApiResponse request(ApiRequest request, ApiMethod method) {
        ApiResponse response = null;
        switch (method) {
{'fraction_non_alphanumeric': 0.10034947578632052, 'fraction_numerical': 0.0, 'mean_word_length': 2.8687258687258685, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5759171', 'n_tokens_mistral': 572, 'n_tokens_neox': 570, 'n_words': 144}