<commit_before># lentil - golang beanstalkd client library

## INSTALL

```bash
go get github.com/nutrun/lentil
```

Or, in $GOPATH/src:

```bash
git clone git://github.com/nutrun/lentil.git && cd lentil && go install
```

## USAGE

### Example producer:

```go
package main

import(
	"lentil"
	"log"
)

func main() {
	conn, e := lentil.Dial("0.0.0.0:11300")
	if e != nil {
		log.Fatal(e)
	}
	jobId, e := conn.Put(0, 0, 60, []byte("hello"))
	if e != nil {
		log.Fatal(e)
	}
	log.Printf("JOB ID: %d\n", jobId)
}
```

### Example consumer:

```go<commit_msg>go doc instructions<commit_after># lentil - golang beanstalkd client library

## INSTALL

```bash
go get github.com/nutrun/lentil
```

Or, in $GOPATH/src:

```bash
git clone git://github.com/nutrun/lentil.git && cd lentil && go install
```

Use godoc to view documentation. For example:

```bash
godoc -http=:6060
```

And open http://0.0.0.0:6060/pkg/lentil/ in a browser.

## USAGE

### Example producer:

```go
package main

import(
	"lentil"
	"log"
)

func main() {
	conn, e := lentil.Dial("0.0.0.0:11300")
	if e != nil {
		log.Fatal(e)
	}
	jobId, e := conn.Put(0, 0, 60, []byte("hello"))
	if e != nil {
		log.Fatal(e)
	}
	log.Printf("JOB ID: %d\n", jobId)
}
```

### Example consumer:

```go
{'fraction_non_alphanumeric': 0.20287539936102236, 'fraction_numerical': 0.03035143769968051, 'mean_word_length': 3.539855072463768, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '436963', 'n_tokens_mistral': 594, 'n_tokens_neox': 540, 'n_words': 131}