<commit_before>package main

import (
	"encoding/json"
	"fmt"
	"github.com/garyburd/redigo/redis"
	"io/ioutil"
	"log"
	"math/rand"
	"net/http"
	"net/url"
	"strconv"
	"strings"
	"time"
)

func sendCommand(method, token string, params url.Values) ([]byte, error) {
	url := fmt.Sprintf("https://api.telegram.org/bot%s/%s?%s",
		token, method, params.Encode())

	timeout := 35 * time.Second

	client := http.Client{
		Timeout: timeout,
	}

	resp, err := client.Get(url)
	if err != nil {
		return []byte{}, err
	}
	resp.Close = true
	defer resp.Body.Close()
	json, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return []byte{}, err
	}

	return json, nil
}

func (bot *Bot) Commands(command string, chat int) {
	markov := Markov{20}
	word := strings.Split(command, " ")

	seed := strings.Join(word[1:], " ") // Removes the initial command

	if word[0] == "/chobot" && len(word) >= 2 {
		text := markov.Generate(seed, bot.Connection)
		bot.Say(text, chat)
	} /* else if word[0] == "/chorate" {
		n, err := strconv.Atoi(word[1])
		if err != nil || n <= 0 || n > 100 {
			bot.Say("please use a number between 1 and 100", chat)
		} else {
			bot.Chance = n
			log.Printf("bot rate set to %v\n", bot.Chance)
			bot.Say("Rate setted ", chat)
		}
	}*/

}
<commit_msg>Remove commented out command '/chorate'<commit_after>package main

import (
	"encoding/json"
	"fmt"
	"github.com/garyburd/redigo/redis"
	"io/ioutil"
	"log"
	"math/rand"
	"net/http"
	"net/url"
	"strconv"
	"strings"
	"time"
)

func sendCommand(method, token string, params url.Values) ([]byte, error) {
	url := fmt.Sprintf("https://api.telegram.org/bot%s/%s?%s",
		token, method, params.Encode())

	timeout := 35 * time.Second

	client := http.Client{
		Timeout: timeout,
	}

	resp, err := client.Get(url)
	if err != nil {
		return []byte{}, err
	}
	resp.Close = true
	defer resp.Body.Close()
	json, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return []byte{}, err
	}

	return json, nil
}

func (bot *Bot) Commands(command string, chat int) {
	markov := Markov{20}
	word := strings.Split(command, " ")

	seed := strings.Join(word[1:], " ") // Removes the initial command

	if word[0] == "/chobot" && len(word) >= 2 {
		text := markov.Generate(seed, bot.Connection)
		bot.Say(text, chat)
	} 
}

{'fraction_non_alphanumeric': 0.18592297476759628, 'fraction_numerical': 0.010624169986719787, 'mean_word_length': 3.538152610441767, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '3027888', 'n_tokens_mistral': 945, 'n_tokens_neox': 884, 'n_words': 211}