<commit_before>package redis

import "fmt"

func (c *Client) Auth(password string) (bool, error) {
	resp, err := c.exec("AUTH", password)
	if err != nil {
		return false, err
	}
	return c.boolResp(resp)
}

func (c *Client) Echo(message string) (string, error) {
	resp, err := c.exec("ECHO", message)
	if err != nil {
		return "", err
	}
	return c.bulkString(resp)
}

func (c *Client) Ping() (string, error) {
	resp, err := c.exec("PING")
	if err != nil {
		return "", err
	}
	return c.stringResp(resp)
}

func (c *Client) Quit() (bool, error) {
	resp, err := c.exec("QUIT")
	if err != nil {
		return false, err
	}
	return c.boolResp(resp)
}

func (c *Client) Select(database int) (bool, error) {
	// TODO(ttacon): do it
	resp, err := c.exec("SELECT", fmt.Sprintf("%d", database))
	if err != nil {
		return false, err
	}

	return c.boolResp(resp)
}<commit_msg>clean up select<commit_after>package redis

import "fmt"

func (c *Client) Auth(password string) (bool, error) {
	resp, err := c.exec("AUTH", password)
	if err != nil {
		return false, err
	}
	return c.boolResp(resp)
}

func (c *Client) Echo(message string) (string, error) {
	resp, err := c.exec("ECHO", message)
	if err != nil {
		return "", err
	}
	return c.bulkString(resp)
}

func (c *Client) Ping() (string, error) {
	resp, err := c.exec("PING")
	if err != nil {
		return "", err
	}
	return c.stringResp(resp)
}

func (c *Client) Quit() (bool, error) {
	resp, err := c.exec("QUIT")
	if err != nil {
		return false, err
	}
	return c.boolResp(resp)
}

func (c *Client) Select(database int) (bool, error) {
	resp, err := c.exec("SELECT", fmt.Sprintf("%d", database))
	if err != nil {
		return false, err
	}
	return c.boolResp(resp)
}
{'fraction_non_alphanumeric': 0.17876106194690267, 'fraction_numerical': 0.0, 'mean_word_length': 3.777464788732394, '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': '5343632', 'n_tokens_mistral': 680, 'n_tokens_neox': 653, 'n_words': 193}