<commit_before>pac
===

Package management for Lua libraries.

Usage
-----

Define the dependencies in the `packages` file:

```
$ cat packages
resp 31bf5e0408f122ee4f8ae4c21c07804564a55382 https://raw.github.com/soveran/resp/master/resp.lua
```

Then run `pac install`:

```
$ pac install
installed: ./lib/resp-31bf5e0.lua
```

For loading libraries:

```lua
local pac = require("pac")
local resp = pac("resp", "31bf5e0")
```

Of course, you can avoid requiring `pac`:

```lua
local resp = require("lib.resp-31bf5e0")
```

Installation
------------

Copy `./bin/pac` to your `path`.
Copy `./lib/pac.lua` to your `package.path`.<commit_msg>Add information about pac env to README<commit_after>pac
===

Package management for Lua libraries.

Usage
-----

Define the dependencies in the `packages` file:

```
$ cat packages
resp 31bf5e0408f122ee4f8ae4c21c07804564a55382 https://raw.github.com/soveran/resp/master/resp.lua
```

Then run `pac install`:

```
$ pac install
installed: ./lib/resp-31bf5e0.lua
```

For loading libraries:

```lua
local pac = require("pac")
local resp = pac("resp", "31bf5e0")
```

Of course, you can avoid requiring `pac`:

```lua
local resp = require("lib.resp-31bf5e0")
```

Our preferred way to do it is to run `pac env`, which creates a
subshell where `./lib` is prepended to `LUA_PATH`. Once you run
it, you can require the libraries without any prefix:

```lua
local resp = require("resp-31bf5e0")
```

Installation
------------

Copy `./bin/*` to your `path`. You can use the makefile to ease
the process:

```
$ BIN=/usr/local/bin make
```

If you prefer to use the `pac` helper in your code, copy
`./lib/pac.lua` to your `package.path`.
{'fraction_non_alphanumeric': 0.16167664670658682, 'fraction_numerical': 0.05029940119760479, 'mean_word_length': 3.914705882352941, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '546037', 'n_tokens_mistral': 658, 'n_tokens_neox': 577, 'n_words': 184}