<commit_before>/*
 * Copyright (c)  [2011-2016] "Pivotal Software, Inc." / "Neo Technology" / "Graph Aware Ltd."
 *
 * This product is licensed to you under the Apache License, Version 2.0 (the "License").
 * You may not use this product except in compliance with the License.
 *
 * This product may include a number of subcomponents with
 * separate copyright notices and license terms. Your use of the source
 * code for these subcomponents is subject to the terms and
 * conditions of the subcomponent's license, as noted in the LICENSE file.
 *
 */

package org.springframework.data.neo4j.transactions;

import org.neo4j.ogm.session.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.config.Neo4jConfiguration;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author <NAME>
 */
@Configuration
@ComponentScan({"org.springframework.data.neo4j.transactions"})
@EnableTransactionManagement
@EnableNeo4jRepositories
public class ApplicationConfig extends Neo4jConfiguration {

	@Override
	@Bean
	public SessionFactory getSessionFactory() {
		return new SessionFactory("org.springframework.data.neo4j.transactions");
	}


}
<commit_msg>DATAGRAPH-888 - Attempted fix for broken build server test.<commit_after>/*
 * Copyright (c)  [2011-2016] "Pivotal Software, Inc." / "Neo Technology" / "Graph Aware Ltd."
 *
 * This product is licensed to you under the Apache License, Version 2.0 (the "License").
 * You may not use this product except in compliance with the License.
 *
 * This product may include a number of subcomponents with
 * separate copyright notices and license terms. Your use of the source
 * code for these subcomponents is subject to the terms and
 * conditions of the subcomponent's license, as noted in the LICENSE file.
 *
 */

package org.springframework.data.neo4j.transactions;

import org.neo4j.ogm.session.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.neo4j.config.Neo4jConfiguration;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.TransactionManagementConfigurer;

/**
 * @author <NAME>
 */
@Configuration
@ComponentScan({"org.springframework.data.neo4j.transactions"})
@EnableTransactionManagement
@EnableNeo4jRepositories
public class ApplicationConfig extends Neo4jConfiguration implements TransactionManagementConfigurer
{

    @Override
    @Bean
    public SessionFactory getSessionFactory()
    {
        return new SessionFactory("org.springframework.data.neo4j.transactions");
    }


    @Override
    public PlatformTransactionManager annotationDrivenTransactionManager()
    {
        try
        {
            return transactionManager();
        }
        catch (Exception e)
        {
            throw new RuntimeException(e);
        }
    }
}

{'fraction_non_alphanumeric': 0.08412042502951594, 'fraction_numerical': 0.01269185360094451, 'mean_word_length': 4.76360544217687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5941282', 'n_tokens_mistral': 895, 'n_tokens_neox': 862, 'n_words': 254}