<commit_before>package com.raillearn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.util.ArrayList;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public TripRepository tripRepository() {
        Departure departure = new Departure("Warszawa", "04.04.2016", "17:50");
        Route route = new Route(departure, "Olsztyn", new ArrayList<Departure>());
        User user = new User("photo", "Karolka", "0");
        Offer offer = new Offer("Spanish","Hi! Learn spanish with me!");

        Route route2 = new Route(departure, "Gdańsk", new ArrayList<Departure>());
        User user2 = new User("photo", "<NAME>", "0");

        TripRepository tripRepository = new TripRepository();
        tripRepository.save(new Trip("0", route, user, offer));
        tripRepository.save(new Trip("0", route2, user2, offer));
        tripRepository.save(new Trip("0", route, user2, offer, "some_joined_user_id"));
        return tripRepository;
    }

    @Bean
    public UserRepository userRepository() {
        return new UserRepository();
    }
}<commit_msg>Add test data.<commit_after>package com.raillearn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.util.ArrayList;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public TripRepository tripRepository() {

        TripRepository tripRepository = new TripRepository();
        addTestData(tripRepository);
        return tripRepository;
    }

    @Bean
    public UserRepository userRepository() {
        return new UserRepository();
    }

    private void addTestData(TripRepository tripRepository) {
        Departure departure = new Departure("Warszawa", "04.06.2016", "17:50");
        Route route = new Route(departure, "Olsztyn", new ArrayList<Departure>());
        User user = new User("photo", "Karol", "0");
        Offer offer = new Offer("Hiszpański","Cześć! Ucz się ze mną hiszpańskiego - poziom A2.");

        Departure departure2 = new Departure("Kraków", "02.06.2016", "12:50");
        Route route2 = new Route(departure2, "Gdańsk", new ArrayList<Departure>());
        User user2 = new User("photo", "<NAME>", "0");
        Offer offer2 = new Offer("Matematyka","Korepetycje z analizy matematycznej 1-2 rok studiów");

        Departure departure3 = new Departure("Bydgoszcz", "30.05.2016", "10:15");
        Route route3 = new Route(departure3, "Warszawa", new ArrayList<Departure>());
        User user3 = new User("photo", "Asia J.", "0");
        Offer offer3 = new Offer("Francuski","Konwersacje po francusku poziom B2");

        Departure departure4 = new Departure("Warszawa", "08.06.2016", "18:15");
        Route route4 = new Route(departure4, "Wrocław", new ArrayList<Departure>());
        Offer offer4 = new Offer("Angielski","Pomogę w przygotowaniu do egzaminu FCE");

        Departure departure5 = new Departure("Wrocław", "10.06.2016", "15:25");
        Route route5 = new Route(departure5, "Warszawa", new ArrayList<Departure>());

        tripRepository.save(new Trip("0", route, user, offer));
        tripRepository.save(new Trip("0", route2, user2, offer2));
        tripRepository.save(new Trip("0", route3, user3, offer3));
        tripRepository.save(new Trip("0", route4, user3, offer4));
        tripRepository.save(new Trip("0", route5, user3, offer4));
    }
}
{'fraction_non_alphanumeric': 0.13173178458289334, 'fraction_numerical': 0.03247096092925027, 'mean_word_length': 3.742177722152691, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '7650027', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1139, 'n_words': 286}