<commit_before>## Kaku
Kaku is a simple, lightweight Weblog content management system written in PHP. It was designed to run well on older hardware, such as the Raspberry Pi.

## Credits
Code by <NAME>.

Bookmark icons by <NAME> (from Iconfinder).

## License
See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).

## Installation
Edit the database configurations in `includes/configuration.php`, then view `index.php` in a Web browser. Tables will be created automatically. If errors appear, check your database configurations and run `index.php` again. If no errors appear, you have successfully installed Kaku, and are free to delete `install.php`.

## URL Rewrite
In order to use Kaku with pretty URLs, you will need to configure your Web server accordingly.

On Nginx, use the following:

```
rewrite ^(.*)/feed$ $1/feed.php;
rewrite ^(.*)/post/(.*)$ $1/?post_url=$2;
rewrite ^(.*)/page/([0-9]+)$ $1/?page_number=$2;
rewrite ^(.*)/page/(.*)$ $1/?page_url=$2;
```

On Apache, use the following in your .htaccess file wherever you installed Kaku:

```
RewriteEngine On
RewriteRule ^feed$ feed.php
RewriteRule ^post/(.*)$ ?post_url=$1
RewriteRule ^page/([0-9]+)$ ?page_number=$1
RewriteRule ^page/(.*)$ ?page_url=$1 [QSA]
```

You should also redirect 404 errors to `error.php?code=404` on both Nginx and Apache.

## Requirements
PHP >= 5.5

MySQL >= 5.0

## Development
Please look at the [wiki](https://github.com/ecj2/kaku/wiki) for development information.<commit_msg>Use absolute rewrite rules in Nginx<commit_after>## Kaku
Kaku is a simple, lightweight Weblog content management system written in PHP. It was designed to run well on older hardware, such as the Raspberry Pi.

## Credits
Code by <NAME>.

Bookmark icons by <NAME> (from Iconfinder).

## License
See the [LICENSE](LICENSE.md) file for license rights and limitations (MIT).

## Installation
Edit the database configurations in `includes/configuration.php`, then view `index.php` in a Web browser. Tables will be created automatically. If errors appear, check your database configurations and run `index.php` again. If no errors appear, you have successfully installed Kaku, and are free to delete `install.php`.

## URL Rewrite
In order to use Kaku with pretty URLs, you will need to configure your Web server accordingly.

On Nginx, use the following for your Kaku directory:

```
rewrite ^feed$ feed.php;
rewrite ^post/(.*)$ ?post_url=$1;
rewrite ^page/([0-9]+)$ ?page_number=$1;
rewrite ^page/(.*)$ ?page_url=$1;
```

On Apache, use the following in your .htaccess file wherever you installed Kaku:

```
RewriteEngine On
RewriteRule ^feed$ feed.php
RewriteRule ^post/(.*)$ ?post_url=$1
RewriteRule ^page/([0-9]+)$ ?page_number=$1
RewriteRule ^page/(.*)$ ?page_url=$1 [QSA]
```

You should also redirect 404 errors to `error.php?code=404` on both Nginx and Apache.

## Requirements
PHP >= 5.5

MySQL >= 5.0

## Development
Please look at the [wiki](https://github.com/ecj2/kaku/wiki) for development information.
{'fraction_non_alphanumeric': 0.12699468085106383, 'fraction_numerical': 0.015292553191489361, 'mean_word_length': 4.74236641221374, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '152517', 'n_tokens_mistral': 967, 'n_tokens_neox': 897, 'n_words': 378}