<commit_before>package com.bdb.bikedeboa.model.manager;

import com.bdb.bikedeboa.model.network.Service;
import com.bdb.bikedeboa.model.network.response.LocalLight;
import com.bdb.bikedeboa.model.network.response.Token;

import java.util.List;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public final class NetworkManager {

	private static Service service;

	private NetworkManager() {
	}

	public static void init() {

		Retrofit retrofit = new Retrofit.Builder()
				.baseUrl("https://bdb-api.herokuapp.com/")
				.addConverterFactory(GsonConverterFactory.create())
				.build();

		service = retrofit.create(Service.class);
	}

	public static void getLocalLightList(Callback<List<LocalLight>> callback) {

		Call<List<LocalLight>> localListCall = service.getLocalsLight();
		localListCall.enqueue(callback);
	}

	public static void getAuthToken(Callback<Token> callback, String username, String password) {

		Call<Token> tokenCall = service.getAuthToken(username, password);
		tokenCall.enqueue(callback);
	}

}<commit_msg>Marker click triggers download and persistence of a rack's detail data (except for the reviews)<commit_after>package com.bdb.bikedeboa.model.manager;

import com.bdb.bikedeboa.model.network.Service;
import com.bdb.bikedeboa.model.network.response.LocalFull;
import com.bdb.bikedeboa.model.network.response.LocalLight;
import com.bdb.bikedeboa.model.network.response.Token;

import java.util.List;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public final class NetworkManager {

	private static Service service;

	private NetworkManager() {
	}

	public static void init() {

		Retrofit retrofit = new Retrofit.Builder()
				.baseUrl("https://bdb-api.herokuapp.com/")
				.addConverterFactory(GsonConverterFactory.create())
				.build();

		service = retrofit.create(Service.class);
	}

	public static void getLocalLightList(Callback<List<LocalLight>> callback) {

		Call<List<LocalLight>> call = service.getLocalsLight();
		call.enqueue(callback);
	}

	public static void getAuthToken(Callback<Token> callback, String username, String password) {

		Call<Token> call = service.getAuthToken(username, password);
		call.enqueue(callback);
	}

	public static void getLocalFull(Callback<LocalFull> callback, int rackId, String authKey) {

		Call<LocalFull> call = service.getLocalFull(rackId, authKey);
		call.enqueue(callback);
	}

}
{'fraction_non_alphanumeric': 0.11045364891518737, 'fraction_numerical': 0.003155818540433925, 'mean_word_length': 5.5025641025641026, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4045436', 'n_tokens_mistral': 856, 'n_tokens_neox': 788, 'n_words': 158}