<commit_before># db_utils
Really simple helper for JDBC.

````java
DataSource ds = ...;
DBUtil dbUtil = new DBUtil(ds);
````

Or

````java
Connection conn  = ...;
DBUtil dbUtil = new DBUtil(conn);
````

Or 

````
DBUtil dbUtil = new DBUtil(new SQLConnectionFactory() {
    @Override
    public Connection getConnection() throws SQLException {
        return makeConnectionSomehow();
    }
});
````

>**NOTE**<commit_msg>Docs for SQLConnectionFactory<commit_after># db_utils
Really simple helper for JDBC.

````java
DataSource ds = ...;
DBUtil dbUtil = new DBUtil(ds);
````

Or

````java
Connection conn  = ...;
DBUtil dbUtil = new DBUtil(conn);
````

Or 

````java
DBUtil dbUtil = new DBUtil(new SQLConnectionFactory() {
    @Override
    public Connection getConnection() throws SQLException {
        return makeConnectionSomehow();
    }
});
````

>**NOTE**
{'fraction_non_alphanumeric': 0.15813953488372093, 'fraction_numerical': 0.0, 'mean_word_length': 3.92, 'pattern_counts': {'":': 0, '<': 3, '<?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': '696463', 'n_tokens_mistral': 299, 'n_tokens_neox': 278, 'n_words': 76}