<commit_before>Plugins for Adminer
===================

Usefull plugins for Adminer database tool (http://www.adminer.org/).

## Plugins

### AdminerJsonPreview

Displays JSON data preview as a table.

<img src="http://pematon.github.io/screenshots/json-preview.png" width="728px" />

## How to use

1. [Download](http://www.adminer.org/#download) and install Adminer tool.

2. Download plugins you want and place them to plugins folder.

File structure will be:
```
- plugins
	- AdminerJsonPreview.php
	- ...
- adminer.php
```

3. Create index.php file and [configure plugins](http://www.adminer.org/plugins/#use).

```php
<?php

	function adminer_object()
	{
		// required to run any plugin
		include_once "./plugins/plugin.php";

		// autoloader
		foreach (glob("plugins/*.php") as $filename) {
			include_once "./$filename";
		}

		$plugins = array(
			// specify enabled plugins here
			new AdminerTheme(),
		);

		return new AdminerPlugin($plugins);
	}

	// include original Adminer or Adminer Editor
	include "./adminer.php";
```

Final file structure will be:
```
- plugins
	- AdminerJsonPreview.php
	- ...
	- plugin.php
- adminer.php
- index.php
```

## All-in-one
You can try our custom configuration in all-in-one bundle: [github.com/pematon/adminer-custom](https://github.com/pematon/adminer-custom)<commit_msg>Added AdminerSimpleMenu plugin<commit_after>Plugins for Adminer
===================

Usefull plugins for Adminer database tool (http://www.adminer.org/).

- [AdminerJsonPreview](https://github.com/pematon/adminer-plugins#adminerjsonpreview)
- [AdminerSimpleMenu](https://github.com/pematon/adminer-plugins#adminersimplemenu)
- [How to use](https://github.com/pematon/adminer-plugins#howtouse)

You can also try our custom Adminer configuration in **all-in-one bundle**: [github.com/pematon/adminer-custom](https://github.com/pematon/adminer-custom)

## AdminerJsonPreview

Displays JSON data preview as a table.

<img src="http://pematon.github.io/screenshots/json-preview.png" width="728px" />

## AdminerSimpleMenu

Displays only one prefered action in table list.
Get rid of schizophrenic decisions between selecting data and showing table structure. Optimize your workflow!

## How to use

1. [Download](http://www.adminer.org/#download) and install Adminer tool.

2. Download plugins you want and place them to plugins folder.

File structure will be:
```
- plugins
	- AdminerJsonPreview.php
	- ...
- adminer.php
```

3. Create index.php file and [configure plugins](http://www.adminer.org/plugins/#use).

```php
<?php

	function adminer_object()
	{
		// required to run any plugin
		include_once "./plugins/plugin.php";

		// autoloader
		foreach (glob("plugins/*.php") as $filename) {
			include_once "./$filename";
		}

		$plugins = array(
			// specify enabled plugins here
			new AdminerTheme(),
		);

		return new AdminerPlugin($plugins);
	}

	// include original Adminer or Adminer Editor
	include "./adminer.php";
```

Final file structure will be:
```
- plugins
	- AdminerJsonPreview.php
	- ...
	- plugin.php
- adminer.php
- index.php
```
{'fraction_non_alphanumeric': 0.1486178861788618, 'fraction_numerical': 0.003902439024390244, 'mean_word_length': 3.859399684044234, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 5, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3882969', 'n_tokens_mistral': 1037, 'n_tokens_neox': 969, 'n_words': 258}