<commit_before>package com.openteam.persistance

import com.openteam.model.Event
import com.openteam.model.Player
import com.openteam.repository.EventRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.CommandLineRunner
import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Component
import java.time.LocalDateTime

@Component
@Profile("dev")
class DatabaseLoader : CommandLineRunner {

    @Autowired lateinit var eventDao: EventRepository

    override fun run(vararg args: String?) {

        val event = this.eventDao.save(Event("Futbol", LocalDateTime.of(2017, 7, 7, 19, 0)))

        event.teams.get(0).players.add(Player("Ariel", "<EMAIL>"))
        event.teams.get(0).players.add(Player("Juan", "<EMAIL>"))
        event.teams.get(0).players.add(Player("Carlos", "", true))

        eventDao.save(event)
    }
}<commit_msg>fix db loader<commit_after>package com.openteam.persistance

import com.openteam.model.Event
import com.openteam.model.Player
import com.openteam.repository.EventRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.CommandLineRunner
import org.springframework.context.annotation.Profile
import org.springframework.stereotype.Component
import java.time.LocalDateTime

@Component
class DatabaseLoader : CommandLineRunner {

    @Autowired lateinit var eventDao: EventRepository

    override fun run(vararg args: String?) {

        val event = this.eventDao.save(Event("Futbol", LocalDateTime.of(2017, 7, 7, 19, 0)))

        event.teams.get(0).players.add(Player("Ariel", "<EMAIL>"))
        event.teams.get(0).players.add(Player("Juan", "<EMAIL>"))
        event.teams.get(0).players.add(Player("Carlos", "", true))

        eventDao.save(event)
    }
}
{'fraction_non_alphanumeric': 0.1263676148796499, 'fraction_numerical': 0.01312910284463895, 'mean_word_length': 4.787974683544304, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1371207', 'n_tokens_mistral': 571, 'n_tokens_neox': 555, 'n_words': 97}