<commit_before>package main

import (
	"bytes"
	"encoding/csv"
	"fmt"
	"reflect"

	"github.com/jmoiron/sqlx"
)

type Client struct {
	db               *sqlx.DB
	history          []string
	connectionString string
}

type Row []interface{}

type Result struct {
	Columns []string `json:"columns"`
	Rows    []Row    `json:"rows"`
}

func NewClient() (*Client, error) {
	str, err := buildConnectionString(options)

	if options.Debug {
		fmt.Println("Creating a new client with: %s", str)
	}

	if err != nil {
		return nil, err
	}

	db, err := sqlx.Open("postgres", str)

	if err != nil {
		return nil, err
	}

	return &Client{db: db, connectionString: str}, nil
}
<commit_msg>Fix debug connection string output<commit_after>package main

import (
	"bytes"
	"encoding/csv"
	"fmt"
	"reflect"

	"github.com/jmoiron/sqlx"
)

type Client struct {
	db               *sqlx.DB
	history          []string
	connectionString string
}

type Row []interface{}

type Result struct {
	Columns []string `json:"columns"`
	Rows    []Row    `json:"rows"`
}

func NewClient() (*Client, error) {
	str, err := buildConnectionString(options)

	if options.Debug {
		fmt.Println("Creating a new client with:", str)
	}

	if err != nil {
		return nil, err
	}

	db, err := sqlx.Open("postgres", str)

	if err != nil {
		return nil, err
	}

	return &Client{db: db, connectionString: str}, nil
}

{'fraction_non_alphanumeric': 0.13876651982378854, 'fraction_numerical': 0.0, 'mean_word_length': 3.259375, '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': '848421', 'n_tokens_mistral': 494, 'n_tokens_neox': 473, 'n_words': 137}