<commit_before>package com.javafm.vertx.helloworld;

import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.jdbc.JDBCClient;
import io.vertx.ext.sql.ResultSet;
import io.vertx.ext.sql.SQLConnection;

/**
 * Created by lemontea <<EMAIL>> on 16-12-23.
 */
public class DataAccess {
    private static DataAccess dataAccess;
    private static JDBCClient jdbcClient;
    private static JsonObject config;

    static {
        config = new JsonObject();
        config.put("url", "jdbc:mysql://172.16.31.10:3306/test");
        config.put("driver_class", "com.mysql.jdbc.Driver");
        config.put("user", "root");
        config.put("password", "<PASSWORD>");
    }

    public static DataAccess create(Vertx vertx) {
        if (dataAccess == null) {
            synchronized (DataAccess.class) {
                if (dataAccess == null) {
                    dataAccess = new DataAccess();
                    dataAccess.init(vertx);
                }
            }
        }
        return dataAccess;
    }

    private void init(Vertx vertx) {
        jdbcClient = JDBCClient.createShared(vertx, config);
    }

    public JDBCClient getJDBCClient() {
        return jdbcClient;
    }

    public static void main(String[] args) {
        Vertx vertx = Vertx.vertx();
        DataAccess dataAccess = DataAccess.create(vertx);
        dataAccess.getJDBCClient().getConnection(res -> {
            if (res.succeeded()) {
                SQLConnection conn = res.result();
                conn.query("SELECT * FROM `test`", res2 -> {
                    ResultSet rs = res2.result();
                    rs.getResults().forEach(e -> {
                        System.out.println(e.getInteger(0) + " " + e.getString(1));
                    });
                    conn.close();
                });
            } else {
                System.out.println(res.cause());
            }
        });
    }
}<commit_msg>注释调测试方法<commit_after>package com.javafm.vertx.helloworld;

import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.jdbc.JDBCClient;
import io.vertx.ext.sql.ResultSet;
import io.vertx.ext.sql.SQLConnection;

/**
 * Created by lemontea <<EMAIL>> on 16-12-23.
 */
public class DataAccess {
    private static DataAccess dataAccess;
    private static JDBCClient jdbcClient;
    private static JsonObject config;

    static {
        config = new JsonObject();
        config.put("url", "jdbc:mysql://localhost:3306/test");
        config.put("driver_class", "com.mysql.jdbc.Driver");
        config.put("user", "root");
        config.put("password", "password");
    }

    public static DataAccess create(Vertx vertx) {
        if (dataAccess == null) {
            synchronized (DataAccess.class) {
                if (dataAccess == null) {
                    dataAccess = new DataAccess();
                    dataAccess.init(vertx);
                }
            }
        }
        return dataAccess;
    }

    private void init(Vertx vertx) {
        jdbcClient = JDBCClient.createShared(vertx, config);
    }

    public JDBCClient getJDBCClient() {
        return jdbcClient;
    }

    /*public static void main(String[] args) {
        Vertx vertx = Vertx.vertx();
        DataAccess dataAccess = DataAccess.create(vertx);
        dataAccess.getJDBCClient().getConnection(res -> {
            if (res.succeeded()) {
                SQLConnection conn = res.result();
                conn.query("SELECT * FROM `test`", res2 -> {
                    ResultSet rs = res2.result();
                    rs.getResults().forEach(e -> {
                        System.out.println(e.getInteger(0) + " " + e.getString(1));
                    });
                    conn.close();
                });
            } else {
                System.out.println(res.cause());
            }
        });
    }*/
}
{'fraction_non_alphanumeric': 0.127544447307395, 'fraction_numerical': 0.00953362535429013, 'mean_word_length': 1.8130434782608695, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1214898', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1104, 'n_words': 212}