<commit_before>package haw.vs.superteam.gamesservice;

import com.google.gson.Gson;
import haw.vs.superteam.gamesservice.api.ServicesAPI;
import haw.vs.superteam.gamesservice.model.Service;
import retrofit.GsonConverterFactory;
import retrofit.Response;
import retrofit.Retrofit;

import java.io.IOException;

/**
 * Created by florian on 13.12.15.
 */
public class ServiceLocator {

    private ServicesAPI servicesAPI;

    public ServiceLocator() {

        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl(Constants.SERVICE_DIRECTORY_URL + "/")
                .addConverterFactory(GsonConverterFactory.create(new Gson()))
                .client(Utils.getUnsafeOkHttpClient())
                .build();

        servicesAPI = retrofit.create(ServicesAPI.class);
    }

    public Service getBoardsService() throws IOException {
        Response<Service> response = servicesAPI.getService(Constants.BOARDS_SERVICE_NAME).execute();
        return response.body();
    }
}<commit_msg>games service: refactoring<commit_after>package haw.vs.superteam.gamesservice;

import haw.vs.superteam.gamesservice.api.ServicesAPI;
import haw.vs.superteam.gamesservice.model.Service;
import retrofit.Response;

import java.io.IOException;

/**
 * Created by florian on 13.12.15.
 */
public class ServiceLocator {

    private ServicesAPI servicesAPI;

    public ServiceLocator(ServicesAPI servicesAPI) {

        this.servicesAPI = servicesAPI;
    }

    public Service getBoardsService() throws IOException {
        Response<Service> response = servicesAPI.getService(Constants.BOARDS_SERVICE_NAME).execute();
        return response.body();
    }
}
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.007228915662650603, 'mean_word_length': 3.6396648044692737, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5109536', 'n_tokens_mistral': 504, 'n_tokens_neox': 475, 'n_words': 88}