<commit_before>//
// samskivert library - useful routines for java programs
// Copyright (C) 2001-2012 <NAME>, et al.
// http://github.com/samskivert/samskivert/blob/master/COPYING

package com.samskivert.jdbc;

import java.sql.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import static com.samskivert.Log.log;

/**
 * The liaison registry provides access to the appropriate database liaison implementation for a
 * particular database connection.
 */
public class LiaisonRegistry
{
    /**
     * Fetch the appropriate database liaison for the supplied URL, which should be the same string
     * that would be used to configure a connection to the database.
     */
    public static DatabaseLiaison getLiaison (String url)
    {
        // see if we already have a liaison mapped for this connection
        DatabaseLiaison liaison = _mappings.get(url);<commit_msg>Fail earlier if we get a null URL.<commit_after>//
// samskivert library - useful routines for java programs
// Copyright (C) 2001-2012 <NAME>, et al.
// http://github.com/samskivert/samskivert/blob/master/COPYING

package com.samskivert.jdbc;

import java.sql.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import static com.samskivert.Log.log;

/**
 * The liaison registry provides access to the appropriate database liaison implementation for a
 * particular database connection.
 */
public class LiaisonRegistry
{
    /**
     * Fetch the appropriate database liaison for the supplied URL, which should be the same string
     * that would be used to configure a connection to the database.
     */
    public static DatabaseLiaison getLiaison (String url)
    {
        if (url == null) throw new NullPointerException("URL must not be null");
        // see if we already have a liaison mapped for this connection
        DatabaseLiaison liaison = _mappings.get(url);
{'fraction_non_alphanumeric': 0.08481675392670157, 'fraction_numerical': 0.008376963350785341, 'mean_word_length': 3.4649532710280373, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6198520', 'n_tokens_mistral': 558, 'n_tokens_neox': 529, 'n_words': 202}