<commit_before>package com.github.lateralthoughts.configuration;

import javax.sql.DataSource;

import org.h2.jdbcx.JdbcDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration;
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.context.annotation.*;

import com.github.lateralthoughts.liquibase.SpringLiquibaseChecker;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.io.ClassPathResource;

@Configuration
@ComponentScan(basePackages = "com.github.lateralthoughts")
@Import(EmbeddedServletContainerAutoConfiguration.class)
@EnableAutoConfiguration
public class Application {

    @Value("${url}")
    String databaseUrl;

    @Value("${username}")
    String databaseUsername;

    @Value("${password}")
    String databasePassword;

    @Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
        PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
        configurer.setLocation(new ClassPathResource("datasource.properties"));
        return configurer;
    }

    @Bean
    @Lazy(false)
    public SpringLiquibaseChecker springLiquibaseChecker() {
        SpringLiquibaseChecker liquibaseChecker = new SpringLiquibaseChecker();
        liquibaseChecker.setDataSource(dataSource());
        liquibaseChecker.setIgnoreClasspathPrefix(true);
        liquibaseChecker.setChangeLog("classpath:META-INF/master.xml");
        return liquibaseChecker;
    }

    @Bean
    public DataSource dataSource() {
        JdbcDataSource dataSource = new JdbcDataSource();
        dataSource.setURL(databaseUrl);
        dataSource.setUser(databaseUsername);
        dataSource.setPassword(<PASSWORD>);
        return dataSource;
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}<commit_msg>"classpath:"-prefix is now ignored by default<commit_after>package com.github.lateralthoughts.configuration;

import javax.sql.DataSource;

import org.h2.jdbcx.JdbcDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration;
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.context.annotation.*;

import com.github.lateralthoughts.liquibase.SpringLiquibaseChecker;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org.springframework.core.io.ClassPathResource;

@Configuration
@ComponentScan(basePackages = "com.github.lateralthoughts")
@Import(EmbeddedServletContainerAutoConfiguration.class)
@EnableAutoConfiguration
public class Application {

    @Value("${url}")
    String databaseUrl;

    @Value("${username}")
    String databaseUsername;

    @Value("${password}")
    String databasePassword;

    @Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
        PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
        configurer.setLocation(new ClassPathResource("datasource.properties"));
        return configurer;
    }

    @Bean
    @Lazy(false)
    public SpringLiquibaseChecker springLiquibaseChecker() {
        SpringLiquibaseChecker liquibaseChecker = new SpringLiquibaseChecker();
        liquibaseChecker.setDataSource(dataSource());
        liquibaseChecker.setChangeLog("classpath:META-INF/master.xml");
        return liquibaseChecker;
    }

    @Bean
    public DataSource dataSource() {
        JdbcDataSource dataSource = new JdbcDataSource();
        dataSource.setURL(databaseUrl);
        dataSource.setUser(databaseUsername);
        dataSource.setPassword(databasePassword);
        return dataSource;
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
{'fraction_non_alphanumeric': 0.08756875687568758, 'fraction_numerical': 0.00044004400440044003, 'mean_word_length': 5.23593964334705, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1117494', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1152, 'n_words': 184}