<commit_before>SmartSqlite
=============

A C++11 wrapper around SQLite3.

Using from Qt Creator
---------------------

* open CMakeLists.txt in Qt Creator
* set the build directory to `build-smartsqlite`
* choose the Unix generator (Windows: MinGW generator)


Using from the shell
--------------------

* `cd` to the directory where you want to build the libs
* `cmake /path/to/smartsqlite`
* `make`
* run `test/smartsqlite_tests`

License
-------

```
Copyright 2014–2015 <NAME> (Kullo GmbH)
          2014–2015 <NAME> (Kullo GmbH)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```<commit_msg>Rewrite readme<commit_after>SmartSqlite
=============

SmartSqlite is a C++11 wrapper around SQLite3.
We call it "smart" because of the consistent use of smart pointers.

A copy of SQLite is shipped with this library,
thanks [Richard](https://www.sqlite.org/crew.html)!


Get started
-----------

```
$ git clone --recursive https://github.com/kullo/smartsqlite.git
$ cmake .
$ make
$ ctest
```


Versions
----------------

SmartSqlite has a linear versioning and the API might break at any time.

Version     | SQLite version | Changes in SmartSqlite
----------- | -------------- | ----------------------
v1          | 3.9.2          | Initial version.


Compiler support
----------------

* GCC 4.8+
* Clang 3.4+
* MSVC 2013+


Contibutions
----------------

Contibutions respecting the library's license
are highly welcome via Github issues and pull requests.


Users
----------------

This library is used by

* [Kullo](https://www.kullo.net/) on Windows, Linux, OS X, Android and iOS.

Please add yourself the the list using PRs.


License
-------

```
Copyright 2014–2015 <NAME> (Kullo GmbH)
          2014–2015 <NAME> (Kullo GmbH)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
{'fraction_non_alphanumeric': 0.14306516199490354, 'fraction_numerical': 0.021113942482708408, 'mean_word_length': 2.8813559322033897, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 3, 'lorem ipsum': 0, 'www.': 4, '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': '1234278', 'n_tokens_mistral': 833, 'n_tokens_neox': 741, 'n_words': 335}