<commit_before># About baseconv [![Build Status](https://travis-ci.org/knq/baseconv.svg)](https://travis-ci.org/knq/baseconv) [![Coverage Status](https://coveralls.io/repos/knq/baseconv/badge.svg?branch=master&service=github)](https://coveralls.io/github/knq/baseconv?branch=master) #

A simple [Go](http://www.golang.org/project/) package for converting between
strings in arbitrary bases.

## Installation ##

Install the package via the following:

    go get -u github.com/knq/baseconv

## Usage ##

The baseconv package can be used similarly to the following:
```go
// example.go
package main

import (
    "fmt"

    "github.com/knq/baseconv"
)

func main() {
    valHex := "70b1d707eac2edf4c6389f440c7294b51fff57bb"
    valDec := baseconv.DecodeHex(valHex)
    val62 := baseconv.Convert(valHex, baseconv.DigitsHex, baseconv.Digits62)
    val36 := baseconv.Encode36(val62, baseconv.Digits62)

    fmt.Println("dec string: " + valDec)
    fmt.Println("62 string:  " + val62)
    fmt.Println("36 string:  " + val36)

    fmt.Printf("dec and 36 values same: %t\n", valDec == baseconv.Decode36(val36, baseconv.DigitsDec))
}
```

Example output:
```sh
$ go run example.go 
dec string: 643372930067913326838082478477533553256088688571
62 string:  g4WuOGCMWgcPa70d91BezVvvvaX
36 string:  d5wjfaew7fypqn2ka6xpofdlwns9ha3
dec and 36 values same: true
```
<commit_msg>Adding link to GoDoc page in README.md<commit_after># About baseconv [![Build Status](https://travis-ci.org/knq/baseconv.svg)](https://travis-ci.org/knq/baseconv) [![Coverage Status](https://coveralls.io/repos/knq/baseconv/badge.svg?branch=master&service=github)](https://coveralls.io/github/knq/baseconv?branch=master) #

A simple [Go](http://www.golang.org/project/) package for converting between
strings in arbitrary bases.

## Installation ##

Install the package via the following:

    go get -u github.com/knq/baseconv

## Usage ##

Please see [the GoDoc API page](http://godoc.org/github.com/knq/baseconv) for a
full API listing.

The baseconv package can be used similarly to the following:
```go
// example.go
package main

import (
    "fmt"

    "github.com/knq/baseconv"
)

func main() {
    valHex := "70b1d707eac2edf4c6389f440c7294b51fff57bb"
    valDec := baseconv.DecodeHex(valHex)
    val62 := baseconv.Convert(valHex, baseconv.DigitsHex, baseconv.Digits62)
    val36 := baseconv.Encode36(val62, baseconv.Digits62)

    fmt.Println("dec string: " + valDec)
    fmt.Println("62 string:  " + val62)
    fmt.Println("36 string:  " + val36)

    fmt.Printf("dec and 36 values same: %t\n", valDec == baseconv.Decode36(val36, baseconv.DigitsDec))
}
```

Example output:
```sh
$ go run example.go 
dec string: 643372930067913326838082478477533553256088688571
62 string:  g4WuOGCMWgcPa70d91BezVvvvaX
36 string:  d5wjfaew7fypqn2ka6xpofdlwns9ha3
dec and 36 values same: true
```

{'fraction_non_alphanumeric': 0.1332398316970547, 'fraction_numerical': 0.07994389901823282, 'mean_word_length': 4.572265625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '1129609', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1049, 'n_words': 215}