<commit_before>Changes LXC Wrapper
-------------------

Handles automating launching containers for running Changes builds.

Run Changes Build
=================

Provision and use ubuntu minimal install::

    $ changes-lxc-wrapper --project foo --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Use a snapshot rather than bootstrapping a fresh container, add ``--snapshot``::

    $ changes-lxc-wrapper --project foo --snapshot 0001 --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Or if you want to use a snapshot from another project, use ``--variant`` instead::

    $ changes-lxc-wrapper --project foo --variant bar-1000 --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Creating a snapshot
===================

This will create a ``meta.tar.xz`` and a ``rootfs.tar.xz``::

    $ changes-lxc-wrapper --project foo --variant 0002 --save-snapshot

To rebuild the cached Ubuntu minimal install base rootfs, pass ``--flush-cache``

Run Command
===========<commit_msg>list requirements<commit_after>Changes LXC Wrapper
-------------------

Handles automating launching containers for running Changes builds.

Requirements
============

- LXC 1.0
- AWS CLI Tools (for snapshot integration)

Run Changes Build
=================

Provision and use ubuntu minimal install::

    $ changes-lxc-wrapper --project foo --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Use a snapshot rather than bootstrapping a fresh container, add ``--snapshot``::

    $ changes-lxc-wrapper --project foo --snapshot 0001 --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Or if you want to use a snapshot from another project, use ``--variant`` instead::

    $ changes-lxc-wrapper --project foo --variant bar-1000 --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Creating a snapshot
===================

This will create a ``meta.tar.xz`` and a ``rootfs.tar.xz``::

    $ changes-lxc-wrapper --project foo --variant 0002 --save-snapshot

To rebuild the cached Ubuntu minimal install base rootfs, pass ``--flush-cache``

Run Command
===========
{'fraction_non_alphanumeric': 0.1625393966681675, 'fraction_numerical': 0.06573615488518686, 'mean_word_length': 3.778494623655914, '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': '2293661', 'n_tokens_mistral': 775, 'n_tokens_neox': 672, 'n_words': 210}