<commit_before># pygments.go

A pygments wrapper for golang

## Importing

```
import github.com/pksunkara/pygments.go
```

## Usage

#### Highlighting Code

```go
pygments.Highlight("code", "lexer", "format", "encoding")
```

```go
pygments.Highlight("print \"Hello World!\"", "python", "html", "utf-8")
```

#### Provide Custom Path

```go
pygments.Binary("/path/to/pygments/binary")<commit_msg>Release v1.0<commit_after># pygments

A pygments wrapper for golang

## Importing

Run this in terminal to install the package

```
go get github.com/pksunkara/pygments
```

Use the following line in source file to import this package

```
import "github.com/pksunkara/pygments"
```

## Usage

#### Highlighting Code

```go
pygments.Highlight("code", "lexer", "format", "encoding")
```

```go
pygments.Highlight("print \"Hello World!\"", "python", "html", "utf-8")
```

#### Provide Custom Path

```go
pygments.Binary("/path/to/pygments/binary")
{'fraction_non_alphanumeric': 0.1910828025477707, 'fraction_numerical': 0.004246284501061571, 'mean_word_length': 5.163398692810458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3447981', 'n_tokens_mistral': 360, 'n_tokens_neox': 320, 'n_words': 82}