<commit_before>package ch.liip.timeforcoffee;

import ch.liip.timeforcoffee.api.DepartureService;
import ch.liip.timeforcoffee.api.OpenDataApiService;
import ch.liip.timeforcoffee.api.ZvvApiService;
import ch.liip.timeforcoffee.opendata.TransportService;
import ch.liip.timeforcoffee.presenter.*;
import ch.liip.timeforcoffee.wear.WearService;
import ch.liip.timeforcoffee.zvv.ZvvService;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import dagger.Module;
import dagger.Provides;
import org.greenrobot.eventbus.EventBus;
import retrofit.RestAdapter;
import retrofit.converter.GsonConverter;

import javax.inject.Singleton;

/**
 * Created by fsantschi on 08/03/15.
 */
@Module(
        injects = {
                WearService.class,
                MainPresenter.class,
                DeparturesPresenter.class,
                StationListPresenter.class,
                StationSearchPresenter.class,
                DepartureListPresenter.class
        }
)
class TimeForCoffeeModule {

    @Provides
    @Singleton
    EventBus provideEventBus() {
        return EventBus.getDefault();
    }

    @Provides
    @Singleton
    TransportService provideTransportService() {
        RestAdapter restAdapter = new RestAdapter.Builder()
                .setEndpoint("http://transport.opendata.ch")
                .build();

        TransportService service = restAdapter.create(TransportService.class);
        return service;
    }

    @Provides
    @Singleton
    ZvvService provideZvvService() {
        Gson gson = new GsonBuilder()
                .setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
                .create();

        RestAdapter restAdapter = new RestAdapter.Builder()
                .setEndpoint("http://tfc.chregu.tv")
                .setConverter(new GsonConverter(gson))
                .build();

        ZvvService service = restAdapter.create(ZvvService.class);
        return service;
    }

    @Provides
    @Singleton
    OpenDataApiService provideOpenDataApiService(EventBus eventBus, TransportService transportService) {
        return new OpenDataApiService(eventBus, transportService);
    }

    @Provides
    @Singleton
    ZvvApiService provideZvvApiService(EventBus eventBus, ZvvService zvvService) {
        return new ZvvApiService(eventBus, zvvService);
    }

    @Provides
    @Singleton
    DepartureService provideDepartureService(EventBus eventBus) {
        return new DepartureService(eventBus);
    }

}
<commit_msg>switch endpoints to https<commit_after>package ch.liip.timeforcoffee;

import ch.liip.timeforcoffee.api.DepartureService;
import ch.liip.timeforcoffee.api.OpenDataApiService;
import ch.liip.timeforcoffee.api.ZvvApiService;
import ch.liip.timeforcoffee.opendata.TransportService;
import ch.liip.timeforcoffee.presenter.*;
import ch.liip.timeforcoffee.wear.WearService;
import ch.liip.timeforcoffee.zvv.ZvvService;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import dagger.Module;
import dagger.Provides;
import org.greenrobot.eventbus.EventBus;
import retrofit.RestAdapter;
import retrofit.converter.GsonConverter;

import javax.inject.Singleton;

/**
 * Created by fsantschi on 08/03/15.
 */
@Module(
        injects = {
                WearService.class,
                MainPresenter.class,
                DeparturesPresenter.class,
                StationListPresenter.class,
                StationSearchPresenter.class,
                DepartureListPresenter.class
        }
)
class TimeForCoffeeModule {

    @Provides
    @Singleton
    EventBus provideEventBus() {
        return EventBus.getDefault();
    }

    @Provides
    @Singleton
    TransportService provideTransportService() {
        RestAdapter restAdapter = new RestAdapter.Builder()
                .setEndpoint("https://transport.opendata.ch")
                .build();

        TransportService service = restAdapter.create(TransportService.class);
        return service;
    }

    @Provides
    @Singleton
    ZvvService provideZvvService() {
        Gson gson = new GsonBuilder()
                .setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
                .create();

        RestAdapter restAdapter = new RestAdapter.Builder()
                .setEndpoint("https://tfc.chregu.tv")
                .setConverter(new GsonConverter(gson))
                .build();

        ZvvService service = restAdapter.create(ZvvService.class);
        return service;
    }

    @Provides
    @Singleton
    OpenDataApiService provideOpenDataApiService(EventBus eventBus, TransportService transportService) {
        return new OpenDataApiService(eventBus, transportService);
    }

    @Provides
    @Singleton
    ZvvApiService provideZvvApiService(EventBus eventBus, ZvvService zvvService) {
        return new ZvvApiService(eventBus, zvvService);
    }

    @Provides
    @Singleton
    DepartureService provideDepartureService(EventBus eventBus) {
        return new DepartureService(eventBus);
    }

}

{'fraction_non_alphanumeric': 0.08871938980329185, 'fraction_numerical': 0.0024086712163789645, 'mean_word_length': 2.8096330275229358, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6035991', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1449, 'n_words': 245}