<commit_before>// Golang API for cex.io trading
// Author: <EMAIL>
// BTC: 1Q2BDvd5zWW8znK7cBdaRTA9hBSLJJZzoy
// Date: 09/03/2014
// Version: 0.2

package cexio

import (
    "fmt"
    "net/http"
    "net/url"
    "io/ioutil"
    "log"
    "time"
    "strconv"
    "strings"
    "crypto/hmac"
    "crypto/sha256"
    "encoding/hex"
)

type CexKey struct {
    username string
    api_key string
    api_secret string
}

func (cexapi CexKey) Nonce() string {
    return strconv.FormatInt(time.Now().UnixNano(), 10)
}

func (cexapi CexKey) ToHmac256(message string, secret string) string {
    key := []byte(secret)
    h := hmac.New(sha256.New, key)
    h.Write([]byte(message))
    return strings.ToUpper(hex.EncodeToString(h.Sum(nil)))<commit_msg>Delete fmt<commit_after>// Golang API for cex.io trading
// Author: <EMAIL>
// BTC: 1Q2BDvd5zWW8znK7cBdaRTA9hBSLJJZzoy
// Date: 09/03/2014
// Version: 0.2

package cexio

import (
    "net/http"
    "net/url"
    "io/ioutil"
    "log"
    "time"
    "strconv"
    "strings"
    "crypto/hmac"
    "crypto/sha256"
    "encoding/hex"
)

type CexKey struct {
    username string
    api_key string
    api_secret string
}

func (cexapi CexKey) Nonce() string {
    return strconv.FormatInt(time.Now().UnixNano(), 10)
}

func (cexapi CexKey) ToHmac256(message string, secret string) string {
    key := []byte(secret)
    h := hmac.New(sha256.New, key)
    h.Write([]byte(message))
    return strings.ToUpper(hex.EncodeToString(h.Sum(nil)))
{'fraction_non_alphanumeric': 0.14160485502360082, 'fraction_numerical': 0.03641267700606878, 'mean_word_length': 3.088154269972452, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1604215', 'n_tokens_mistral': 627, 'n_tokens_neox': 586, 'n_words': 121}