<commit_before>package org.lightmare.jpa.datasource.c3p0;

import java.sql.Connection;
import java.util.concurrent.atomic.AtomicInteger;

import org.apache.log4j.Logger;
import org.lightmare.utils.ObjectUtils;
import org.lightmare.utils.StringUtils;

import com.mchange.v2.c3p0.AbstractConnectionCustomizer;

/**
 * Logger class for customize pooled connections
 * 
 * @author levan
 * 
 */
public class LoggConnectionCustomizer extends AbstractConnectionCustomizer {

    private static final AtomicInteger ACTIVE_CONNECTIONS = new AtomicInteger();

    private static final AtomicInteger POOLED_CONNECTIONS = new AtomicInteger();

    private static final Logger LOG = Logger
	    .getLogger(LoggConnectionCustomizer.class);

    public static void setMaxPoolSize(int maxPoolSize) {
	POOLED_CONNECTIONS.set(maxPoolSize);
    }
<commit_msg>improved connection pool utilities<commit_after>package org.lightmare.jpa.datasource.c3p0;

import java.sql.Connection;
import java.util.concurrent.atomic.AtomicInteger;

import org.apache.log4j.Logger;
import org.lightmare.utils.ObjectUtils;
import org.lightmare.utils.StringUtils;

import com.mchange.v2.c3p0.AbstractConnectionCustomizer;

/**
 * Logger class for customize pooled connections
 * 
 * @author levan
 * 
 */
public class LoggConnectionCustomizer extends AbstractConnectionCustomizer {

    // Keeps count of active connections
    private static final AtomicInteger ACTIVE_CONNECTIONS = new AtomicInteger();

    private static final AtomicInteger POOLED_CONNECTIONS = new AtomicInteger();

    private static final Logger LOG = Logger
	    .getLogger(LoggConnectionCustomizer.class);

    public static void setMaxPoolSize(int maxPoolSize) {
	POOLED_CONNECTIONS.set(maxPoolSize);
    }

{'fraction_non_alphanumeric': 0.0768348623853211, 'fraction_numerical': 0.006880733944954129, 'mean_word_length': 5.101398601398602, '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': '3838155', 'n_tokens_mistral': 522, 'n_tokens_neox': 485, 'n_words': 116}