<commit_before>package sample.doma2;

import javax.sql.DataSource;

import org.seasar.doma.SingletonConfig;
import org.seasar.doma.jdbc.Config;
import org.seasar.doma.jdbc.dialect.Dialect;
import org.seasar.doma.jdbc.dialect.MysqlDialect;
import org.seasar.doma.jdbc.tx.LocalTransactionDataSource;
import org.seasar.doma.jdbc.tx.LocalTransactionManager;
import org.seasar.doma.jdbc.tx.TransactionManager;

@SingletonConfig
public class MyConfig implements Config {
    
    private static final MyConfig CONFIG = new MyConfig();
    
    private LocalTransactionDataSource ds;
    private Dialect dialect;
    private TransactionManager transactionManager;
    
    private MyConfig() {
        this.ds = new LocalTransactionDataSource("jdbc:mysql://localhost/test", "test", "test");
//        this.ds = new LocalTransactionDataSource("jdbc:oracle:thin:@localhost:1521:test", "test", "test");
//        this.dialect = new OracleDialect();
        this.dialect = new MysqlDialect();
        this.transactionManager = new LocalTransactionManager(this.ds.getLocalTransaction(this.getJdbcLogger()));
    }
    
    @Override
    public DataSource getDataSource() {
        return this.ds;
    }

    @Override
    public Dialect getDialect() {
        return this.dialect;
    }

    @Override
    public TransactionManager getTransactionManager() {
        return this.transactionManager;
    }

    public static MyConfig singleton() {<commit_msg>Oracle ページングを試す<commit_after>package sample.doma2;

import javax.sql.DataSource;

import org.seasar.doma.SingletonConfig;
import org.seasar.doma.jdbc.Config;
import org.seasar.doma.jdbc.dialect.Dialect;
import org.seasar.doma.jdbc.dialect.OracleDialect;
import org.seasar.doma.jdbc.tx.LocalTransactionDataSource;
import org.seasar.doma.jdbc.tx.LocalTransactionManager;
import org.seasar.doma.jdbc.tx.TransactionManager;

@SingletonConfig
public class MyConfig implements Config {
    
    private static final MyConfig CONFIG = new MyConfig();
    
    private LocalTransactionDataSource ds;
    private Dialect dialect;
    private TransactionManager transactionManager;
    
    private MyConfig() {
//        this.ds = new LocalTransactionDataSource("jdbc:mysql://localhost/test", "test", "test");
//        this.dialect = new MysqlDialect();
        this.ds = new LocalTransactionDataSource("jdbc:oracle:thin:@localhost:1521:test", "test", "test");
        this.dialect = new OracleDialect();
        this.transactionManager = new LocalTransactionManager(this.ds.getLocalTransaction(this.getJdbcLogger()));
    }
    
    @Override
    public DataSource getDataSource() {
        return this.ds;
    }

    @Override
    public Dialect getDialect() {
        return this.dialect;
    }

    @Override
    public TransactionManager getTransactionManager() {
        return this.transactionManager;
    }

    public static MyConfig singleton() {
{'fraction_non_alphanumeric': 0.10162461113031455, 'fraction_numerical': 0.0034566194262011752, 'mean_word_length': 3.7287581699346406, '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': '6608405', 'n_tokens_mistral': 892, 'n_tokens_neox': 848, 'n_words': 167}