<commit_before>package com.github.tsar_industries.poke_radar.pokemon_go

import com.pokegoapi.api.PokemonGo
import com.pokegoapi.auth.PtcCredentialProvider
import okhttp3.OkHttpClient


open class PokemonGoService {
    fun getUsername(username: String, password: String): String {

        val myPair = Pair(1, 2) //todo remove this once we use kotlin stdlib properly somewhere

        val client = OkHttpClient()
        val provider = PtcCredentialProvider(client, username, password)
        val pokemonApi = PokemonGo(provider, client)
        return pokemonApi.playerProfile.username
    }
}
<commit_msg>Added some ugly api code<commit_after>package com.github.tsar_industries.poke_radar.pokemon_go

import com.pokegoapi.api.PokemonGo
import com.pokegoapi.auth.PtcCredentialProvider
import okhttp3.OkHttpClient


open class PokemonGoService {
    var pokemonApi: PokemonGo? = null


    fun getUsername(username: String, password: String): String {

        val myPair = Pair(1, 2) //todo remove this once we use kotlin stdlib properly somewhere

        val client = OkHttpClient()
        val provider = PtcCredentialProvider(client, username, password)
        pokemonApi = PokemonGo(provider, client)

        return pokemonApi!!.playerProfile.username
    }

    fun setLocation() {
        pokemonApi!!.setLocation(59.337042, 18.064270, 0.0)
    }

    fun getCatchablePokemons(): List<String> {
        return pokemonApi!!.map.catchablePokemon
                .map { it.pokemonId.name }
    }
}

{'fraction_non_alphanumeric': 0.08151093439363817, 'fraction_numerical': 0.015904572564612324, 'mean_word_length': 3.5074626865671643, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6653258', 'n_tokens_mistral': 491, 'n_tokens_neox': 460, 'n_words': 109}