<commit_before>package com.example.ums

import com.example.billing.Client
import com.example.billing.Service
import com.example.email.SendEmail
import com.example.subscriptions.SubscriptionRepository
import org.springframework.amqp.rabbit.core.RabbitTemplate
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate

@Configuration
open class BeanConfig {
    @Autowired
    lateinit private var datasource: NamedParameterJdbcTemplate

    @Autowired
    lateinit private var billingclient: Client

    @Autowired
    lateinit private var emailConfiguration: EmailConfiguration

    @Autowired
    lateinit private var rabbitTemplate: RabbitTemplate

    @Bean
    open fun subscriptionRepository(): SubscriptionRepository = SubscriptionRepository(datasource)

    @Bean
    open fun billingService(): Service = Service(billingclient)

    @Bean
    open fun emailSender(): SendEmail = SendEmail(emailConfiguration.queue, rabbitTemplate)
}<commit_msg>Get rid of unnecessary type definitions<commit_after>package com.example.ums

import com.example.billing.Client
import com.example.billing.Service
import com.example.email.SendEmail
import com.example.subscriptions.SubscriptionRepository
import org.springframework.amqp.rabbit.core.RabbitTemplate
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate

@Configuration
open class BeanConfig {

    // In Spring 4.3, you will be able to do constructor injection of these and it will clean
    // up these declarations a bit.
    // https://spring.io/blog/2016/03/04/core-container-refinements-in-spring-framework-4-3
    @Autowired
    lateinit private var datasource: NamedParameterJdbcTemplate

    @Autowired
    lateinit private var billingclient: Client

    @Autowired
    lateinit private var emailConfiguration: EmailConfiguration

    @Autowired
    lateinit private var rabbitTemplate: RabbitTemplate

    @Bean
    open fun subscriptionRepository() = SubscriptionRepository(datasource)

    @Bean
    open fun billingService() = Service(billingclient)

    @Bean
    open fun emailSender() = SendEmail(emailConfiguration.queue, rabbitTemplate)
}
{'fraction_non_alphanumeric': 0.06830052229811169, 'fraction_numerical': 0.004821213338690237, 'mean_word_length': 5.0583941605839415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1086736', 'n_tokens_mistral': 640, 'n_tokens_neox': 618, 'n_words': 159}