<commit_before># ![gitql](https://rawgit.com/gitql/gitql/master/gitql-logo.svg)

[![Build Status](https://travis-ci.org/gitql/gitql.svg?branch=master)](https://travis-ci.org/gitql/gitql) [![codecov](https://codecov.io/gh/gitql/gitql/branch/master/graph/badge.svg)](https://codecov.io/gh/gitql/gitql) [![GoDoc](https://godoc.org/github.com/gitql/gitql?status.svg)](https://godoc.org/github.com/gitql/gitql)

**gitql** is a SQL interface to Git repositories, written in Go.

**WARNING: gitql is still in a very early stage of development. It is considered experimental.**

## Installation

Check the [Releases](https://github.com/gitql/gitql/releases) page to download
the gitql binary.

## Usage

```
Usage:
  gitql [OPTIONS] <query | version>

Help Options:
  -h, --help  Show this help message

Available commands:
  query    Execute a SQL query a repository.
  version  Show the version information.
```

For example:

```bash
$ cd my_git_repo
$ gitql query 'SELECT hash, author_email, author_name FROM commits LIMIT 2;' 
SELECT hash, author_email, author_name FROM commits LIMIT 2;
+------------------------------------------+--------------------+---------------+
|                   HASH                   |   AUTHOR EMAIL     |  AUTHOR NAME  |
+------------------------------------------+--------------------+---------------+
| 02e0aa0ef807d2ae4d02ecdbe37681db9e812544 | <NAME>   | <EMAIL> |
| 034cb63f77f4a0d30d26dabb999d348be6640df7 | <NAME> | <EMAIL> |
+------------------------------------------+--------------------+---------------+
```

## Tables

*TODO*

## SQL syntax

gitql supports a subset of the SQL standard, currently including:

* `SELECT`
* `WHERE`
* `ORDER BY` (with `ASC` and `DESC`)
* `LIMIT`

## License

gitql is licensed under the
https://github.com/gitql/gitql/blob/master/LICENSE[MIT License].
<commit_msg>fix readme license link<commit_after># ![gitql](https://rawgit.com/gitql/gitql/master/gitql-logo.svg)

[![Build Status](https://travis-ci.org/gitql/gitql.svg?branch=master)](https://travis-ci.org/gitql/gitql) [![codecov](https://codecov.io/gh/gitql/gitql/branch/master/graph/badge.svg)](https://codecov.io/gh/gitql/gitql) [![GoDoc](https://godoc.org/github.com/gitql/gitql?status.svg)](https://godoc.org/github.com/gitql/gitql)

**gitql** is a SQL interface to Git repositories, written in Go.

**WARNING: gitql is still in a very early stage of development. It is considered experimental.**

## Installation

Check the [Releases](https://github.com/gitql/gitql/releases) page to download
the gitql binary.

## Usage

```
Usage:
  gitql [OPTIONS] <query | version>

Help Options:
  -h, --help  Show this help message

Available commands:
  query    Execute a SQL query a repository.
  version  Show the version information.
```

For example:

```bash
$ cd my_git_repo
$ gitql query 'SELECT hash, author_email, author_name FROM commits LIMIT 2;' 
SELECT hash, author_email, author_name FROM commits LIMIT 2;
+------------------------------------------+--------------------+---------------+
|                   HASH                   |   AUTHOR EMAIL     |  AUTHOR NAME  |
+------------------------------------------+--------------------+---------------+
| 02e0aa0ef807d2ae4d02ecdbe37681db9e812544 | <NAME>   | <EMAIL> |
| 034cb63f77f4a0d30d26dabb999d348be6640df7 | <NAME> | <EMAIL> |
+------------------------------------------+--------------------+---------------+
```

## Tables

*TODO*

## SQL syntax

gitql supports a subset of the SQL standard, currently including:

* `SELECT`
* `WHERE`
* `ORDER BY` (with `ASC` and `DESC`)
* `LIMIT`

## License

gitql is licensed under the [MIT License](https://github.com/gitql/gitql/blob/master/LICENSE).

{'fraction_non_alphanumeric': 0.2552960347637154, 'fraction_numerical': 0.026615969581749048, 'mean_word_length': 2.3240072202166067, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1287467', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1154, 'n_words': 273}