<commit_before>package fjdbc;

import org.apache.commons.pool2.ObjectPool;
import org.apache.commons.pool2.impl.*;

import java.io.*;
import java.sql.*;

public class Pool implements Closeable {

  private final ObjectPool<ExtendedConnection> pool;
  private final Driver driver;

  public Pool(String url, int size, Driver driver) {
    driver.initialize();
    this.driver = driver;
    final GenericObjectPoolConfig config = new GenericObjectPoolConfig();
    config.setMaxTotal(size);
    this.pool = new GenericObjectPool<ExtendedConnection>(new ExtendedConnectionPoolFactory(url), config);
  }
  private ExtendedConnection getConnection() throws SQLException {
    try {
      return pool.borrowObject();
    } catch (SQLException e) {
      throw e;
    } catch (Exception e) {
      throw new Error("Unexpected exception", e);
    }
  }
  private void putConnection(ExtendedConnection connection) {
    try {
      pool.returnObject(connection);<commit_msg>Update the pool initialization<commit_after>package fjdbc;

import org.apache.commons.pool2.impl.GenericObjectPool;

import java.io.*;
import java.sql.*;

public class Pool implements Closeable {

  private final GenericObjectPool<ExtendedConnection> pool;
  private final Driver driver;

  public Pool(String url, int size, Driver driver) {
    driver.initialize();
    this.driver = driver;
    this.pool = new GenericObjectPool<ExtendedConnection>(new ExtendedConnectionPoolFactory(url));
    this.pool.setMaxTotal(size);
  }
  private ExtendedConnection getConnection() throws SQLException {
    try {
      return pool.borrowObject();
    } catch (SQLException e) {
      throw e;
    } catch (Exception e) {
      throw new Error("Unexpected exception", e);
    }
  }
  private void putConnection(ExtendedConnection connection) {
    try {
      pool.returnObject(connection);
{'fraction_non_alphanumeric': 0.09528965890633459, 'fraction_numerical': 0.0016242555495397943, 'mean_word_length': 4.076923076923077, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5603980', 'n_tokens_mistral': 502, 'n_tokens_neox': 485, 'n_words': 136}