<commit_before>package main

import (
	"bytes"
	"crypto/aes"
	"crypto/cipher"
	"encoding/hex"
	"flag"
	"fmt"
	"io/ioutil"
	"unicode"
)

var uuid = "88308a1a0700"
var authkeyFlag = flag.String("authkey", "01234567", "authkey from /cloud")

func clean(data []byte) string {
	fields := bytes.FieldsFunc(data, func(r rune) bool {
		return !(unicode.IsDigit(r) || unicode.IsLetter(r) || unicode.IsPunct(r))
	})
	cleanData := bytes.Join(fields, []byte("?"))
	return string(cleanData)
}

func work() error {

	var err error
	//block, err := aes.NewCipher([]byte(*authkeyFlag + *authkeyFlag))
	//block, err := aes.NewCipher([]byte("00000000" + *authkeyFlag))

	//key := []byte(*authkeyFlag + "00000000")
	//key, err := hex.DecodeString("00000000" + "00000000" + "00000000" + *authkeyFlag)
	key, err := hex.DecodeString(*authkeyFlag + "00000000" + "00000000" + "00000000")

	if err != nil {
		return err
	}<commit_msg>Update decoder.go<commit_after>package main

import (
	"bytes"
	"crypto/aes"
	"crypto/cipher"
	"encoding/hex"
	"flag"
	"fmt"
	"io/ioutil"
	"unicode"
)

var uuidFlag = flag.String("uuid", "01234567890a", "uuid from /cloud")
var authkeyFlag = flag.String("authkey", "01234567", "authkey from /cloud")

func clean(data []byte) string {
	fields := bytes.FieldsFunc(data, func(r rune) bool {
		return !(unicode.IsDigit(r) || unicode.IsLetter(r) || unicode.IsPunct(r))
	})
	cleanData := bytes.Join(fields, []byte("?"))
	return string(cleanData)
}

func work() error {

	var err error
	//block, err := aes.NewCipher([]byte(*authkeyFlag + *authkeyFlag))
	//block, err := aes.NewCipher([]byte("00000000" + *authkeyFlag))

	//key := []byte(*authkeyFlag + "00000000")
	//key, err := hex.DecodeString("00000000" + "00000000" + "00000000" + *authkeyFlag)
	key, err := hex.DecodeString(*authkeyFlag + "00000000" + "00000000" + "00000000")

	if err != nil {
		return err
	}
{'fraction_non_alphanumeric': 0.19014461703267274, 'fraction_numerical': 0.08837707552222818, 'mean_word_length': 4.8193146417445485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 16, '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': '7163579', 'n_tokens_mistral': 848, 'n_tokens_neox': 691, 'n_words': 151}