<commit_before>package main

import (
    "database/sql"
    "os"
    "log"
    
    _ "github.com/lib/pq"
)

var currentDB *sql.DB

func init() {
    currentDB = connect()
}

func connect() *sql.DB {
    dbUrl := os.Getenv("DATABASE_URL")
    database, err := sql.Open("postgres", dbUrl)
    if err != nil {
        log.Fatalf("[x] Could not open the connection to the database. Reason: %s", err.Error())
    }
    return database
}

func Name() string {
    tx, _ := currentDB.Begin()
    
    stmt, _ := tx.Prepare("SELECT name FROM bots WHERE id = '$1'")
    var name string
    stmt.QueryRow("1").Scan(&name)
    stmt.Close()
    
    tx.Commit()
    
    return name
}<commit_msg>Switch to standard queries<commit_after>package main

import (
    "database/sql"
    "os"
    "log"
    
    _ "github.com/lib/pq"
)

var currentDB *sql.DB

func init() {
    currentDB = connect()
}

func connect() *sql.DB {
    dbUrl := os.Getenv("DATABASE_URL")
    database, err := sql.Open("postgres", dbUrl)
    if err != nil {
        log.Fatalf("[x] Could not open the connection to the database. Reason: %s", err.Error())
    }
    return database
}

func Name() string {
    var name string
    currentDB.QueryRow("SELECT name from bots WHERE id = '1'").Scan(&name)
    
    return name
}
{'fraction_non_alphanumeric': 0.1440809968847352, 'fraction_numerical': 0.002336448598130841, 'mean_word_length': 2.5694444444444446, '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': '4448867', 'n_tokens_mistral': 448, 'n_tokens_neox': 444, 'n_words': 119}