<commit_before>package net.ketc.numeri.domain

import dagger.Component
import dagger.Module
import dagger.Provides
import net.ketc.numeri.domain.entity.TimeLineDisplay
import net.ketc.numeri.domain.entity.TweetsDisplay
import net.ketc.numeri.domain.entity.TweetsDisplayGroup
import net.ketc.numeri.domain.service.*
import net.ketc.numeri.setOnMemoryDB
import net.ketc.numeri.util.ormlite.createTable
import javax.inject.Singleton

@Module
class TestDomainModule() {

    @Provides
    @Singleton
    fun provideOAuthService(): OAuthService = OAuthServiceImpl()

    @Provides
    @Singleton
    fun provideTweetDisplayService(): TweetsDisplayService {
        setOnMemoryDB()
        createTable(TweetsDisplay::class, TimeLineDisplay::class, TweetsDisplayGroup::class)
        return TweetsDisplayServiceImpl()
    }

}

@Singleton
@Component(modules = arrayOf(TestDomainModule::class))
interface TestDomainComponent {
    fun inject(oAuthServiceSpecDependency: OAuthServiceTest)
    fun inject(tweetsDisplayServiceTest: TweetsDisplayServiceTest)
}<commit_msg>細かい変更<commit_after>package net.ketc.numeri.domain

import dagger.Component
import dagger.Module
import dagger.Provides
import net.ketc.numeri.domain.entity.TimeLineDisplay
import net.ketc.numeri.domain.entity.TweetsDisplay
import net.ketc.numeri.domain.entity.TweetsDisplayGroup
import net.ketc.numeri.domain.service.*
import net.ketc.numeri.setOnMemoryDB
import net.ketc.numeri.util.ormlite.createTable
import javax.inject.Singleton

@Module
class TestDomainModule {

    @Provides
    @Singleton
    fun provideOAuthService(): OAuthService = OAuthServiceImpl()

    @Provides
    @Singleton
    fun provideTweetDisplayService(): TweetsDisplayService {
        setOnMemoryDB()
        createTable(TweetsDisplay::class, TimeLineDisplay::class, TweetsDisplayGroup::class)
        return TweetsDisplayServiceImpl()
    }

}

@Singleton
@Component(modules = arrayOf(TestDomainModule::class))
interface TestDomainComponent {
    fun inject(oAuthServiceSpecDependency: OAuthServiceTest)
    fun inject(tweetsDisplayServiceTest: TweetsDisplayServiceTest)
}
{'fraction_non_alphanumeric': 0.08530805687203792, 'fraction_numerical': 0.0, 'mean_word_length': 5.495384615384616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2139256', 'n_tokens_mistral': 650, 'n_tokens_neox': 637, 'n_words': 106}