<commit_before>[![Build Status](https://travis-ci.org/mbrukman/autogen.svg?branch=master)](https://travis-ci.org/mbrukman/autogen)

# autogen

Automatically generate boilerplate comments and code for new files with a single
command.

Usage:

```bash
autogen.sh -c [copyright holder] -l [license] [filename]
```

Modify an existing file in-place:

```bash
autogen.sh -i [...other params as above...]
```

To get a list of supported licenses, or to see the full set of flags, run
`autogen.sh` with no parameters.

File type or language is determined based on the full filename or extension, as
appropriate. See [`autogen.sh`](autogen.sh) for a list of recognized file types.

Sample outputs:

* [Apache 2.0, Haskell](testdata/apache-acme-hs.out)
* [3-clause BSD, Erlang](testdata/bsd3-acme-erl.out)
* [GPL 2, Ruby](testdata/gpl2-acme-rb.out)
* [LGPL 2.1, C++](testdata/lgpl2.1-acme-cpp.out)
* [MIT, Makefile](testdata/mit-acme-makefile.out)

## Editor support

For details on adding Autogen support to your editor, please see
the [`editors`](editors) directory.

## Developing

To add a few file type or feature, change [`autogen.sh`](autogen.sh) and add<commit_msg>Fix typo and close issue #10.<commit_after>[![Build Status](https://travis-ci.org/mbrukman/autogen.svg?branch=master)](https://travis-ci.org/mbrukman/autogen)

# autogen

Automatically generate boilerplate comments and code for new files with a single
command.

Usage:

```bash
autogen.sh -c [copyright holder] -l [license] [filename]
```

Modify an existing file in-place:

```bash
autogen.sh -i [...other params as above...]
```

To get a list of supported licenses, or to see the full set of flags, run
`autogen.sh` with no parameters.

File type or language is determined based on the full filename or extension, as
appropriate. See [`autogen.sh`](autogen.sh) for a list of recognized file types.

Sample outputs:

* [Apache 2.0, Haskell](testdata/apache-acme-hs.out)
* [3-clause BSD, Erlang](testdata/bsd3-acme-erl.out)
* [GPL 2, Ruby](testdata/gpl2-acme-rb.out)
* [LGPL 2.1, C++](testdata/lgpl2.1-acme-cpp.out)
* [MIT, Makefile](testdata/mit-acme-makefile.out)

## Editor support

For details on adding Autogen support to your editor, please see
the [`editors`](editors) directory.

## Developing

To add a new file type or feature, change [`autogen.sh`](autogen.sh) and add
{'fraction_non_alphanumeric': 0.13737201365187712, 'fraction_numerical': 0.00938566552901024, 'mean_word_length': 4.543735224586288, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1234186', 'n_tokens_mistral': 837, 'n_tokens_neox': 803, 'n_words': 256}