<commit_before># Comments Plugin for CakePHP #

Version 1.1

Comments plugin is a universal comment system that can be attached to any controller with a few lines of code.

## Installation ##

First created the needed tables in database. This plugin comes with two mechanisms to get your database tables setup:

1. You can use the default CakePHP schema method from the console: `cake schema create -plugin comments -name app`
2. You can use the CakeDC migrations plugin to import your database tables: `cake migration all -plugin comments`

If you choose the second method, please ensure you have first installed the [CakeDC migrations plugin](http://github.com/CakeDC/migrations) first.

Finally, you need to have some sort of `users` or `logins` table that keeps member information. This table should contain a slug field, as it is used by the comments plugin.
We recommended to use [CakeDC users plugin](http://github.com/CakeDC/users) that allow all needed for plugin features.

## Usage ##

We have Post model and want to have comments on the /posts/view page.
So we need to choose how we want to display the comments - flat, threaded, or as tree.<commit_msg>Use double dash with options and ucfirst plugin name<commit_after># Comments Plugin for CakePHP #

Version 1.1

Comments plugin is a universal comment system that can be attached to any controller with a few lines of code.

## Installation ##

First created the needed tables in database. This plugin comes with two mechanisms to get your database tables setup:

1. You can use the default CakePHP schema method from the console: `cake schema create --plugin Comments --name app`
2. You can use the CakeDC migrations plugin to import your database tables: `cake migration all --plugin Comments`

If you choose the second method, please ensure you have first installed the [CakeDC migrations plugin](http://github.com/CakeDC/migrations) first.

Finally, you need to have some sort of `users` or `logins` table that keeps member information. This table should contain a slug field, as it is used by the comments plugin.
We recommended to use [CakeDC users plugin](http://github.com/CakeDC/users) that allow all needed for plugin features.

## Usage ##

We have Post model and want to have comments on the /posts/view page.
So we need to choose how we want to display the comments - flat, threaded, or as tree.
{'fraction_non_alphanumeric': 0.05691399662731872, 'fraction_numerical': 0.003372681281618887, 'mean_word_length': 4.296875, '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': '1390850', 'n_tokens_mistral': 602, 'n_tokens_neox': 582, 'n_words': 361}