<commit_before>//utils package from <NAME>
//utilities for interacting with REST apis

package vtputils

import (
	"bytes"
	"encoding/json"
	"errors"
	"io/ioutil"
	"log"
	"net/http"
	"net/url"
	"strconv"
)

//Options for Methods on the query
const (
	HTTP_PUT      = "PUT"
	HTTP_POST     = "POST"
	HTTP_JSONPOST = "JSONPOST"
	HTTP_DELETE   = "DELETE"
	HTTP_GET      = "GET"
)

func formValues(params map[string]string) url.Values {
	query := make(url.Values)
	for key, value := range params {
		query.Set(key, value)
	}
	return query
}

func buildGetUrl(params map[string]string, endpoint string) string {
	query := make(url.Values)
	for key, value := range params {
		query.Set(key, value)
	}
	result := endpoint
	if (len(params)) > 0 {
		result = endpoint + "?" + query.Encode()
	}
	return result
}
<commit_msg>fixed small bug on not user formvalues<commit_after>//utils package from <NAME>
//utilities for interacting with REST apis

package vtputils

import (
	"bytes"
	"encoding/json"
	"errors"
	"io/ioutil"
	"log"
	"net/http"
	"net/url"
	"strconv"
)

//Options for Methods on the query
const (
	HTTP_PUT      = "PUT"
	HTTP_POST     = "POST"
	HTTP_JSONPOST = "JSONPOST"
	HTTP_DELETE   = "DELETE"
	HTTP_GET      = "GET"
)

func formValues(params map[string]string) url.Values {
	query := make(url.Values)
	for key, value := range params {
		query.Set(key, value)
	}
	return query
}

func buildGetUrl(params map[string]string, endpoint string) string {
	query := formValues(params)
	result := endpoint
	if (len(params)) > 0 {
		result = endpoint + "?" + query.Encode()
	}
	return result
}

{'fraction_non_alphanumeric': 0.13190954773869346, 'fraction_numerical': 0.001256281407035176, 'mean_word_length': 3.6991150442477876, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1123814', 'n_tokens_mistral': 599, 'n_tokens_neox': 585, 'n_words': 155}