<commit_before>WP Github Activity
==================

Wordpress plugin for showing github user activity from a post, page, template or widget.

## Usage
### Shortcode
```
[github-activity user="eruonen" limit=5 cache=300]
```
- `user` The github login name whose activity list you wish to show. Default value: `eruonen`
- `limit` The maximum number of lines you wish to show (up to 30). Default value: `5`
- `cache` The number of seconds the api data should be cached (0 for no cache). Default value: `300` (5 minutes)

### Widget
Simply navigate to `/wp-admin/widgets.php` to use the widget!

### Template tag
```php
get_github_user_activity( $user = 'eruonen', $limit = 5, $cache = 300 )
```
- `$user` The github login name whose activity list you wish to show
- `$limit` The maximum number of lines you wish to show (up to 30)
- `$cache` The number of seconds the api data should be cached (0 for no cache)

Examples:
```php
// shows the five most recent github user activities for user eruonen
echo get_github_user_activity( 'eruonen' );
// shows only the latest github user activity for user eruonen
echo get_github_user_activity( 'eruonen', 1 );
// shows only the latest github user activity for user eruonen without caching the results
echo get_github_user_activity( 'eruonen', 1, 0 );
```<commit_msg>Added languages section to readme<commit_after>WP Github Activity
==================

Wordpress plugin for showing github user activity from a post, page, template or widget.

## Usage
### Shortcode
```
[github-activity user="eruonen" limit=5 cache=300]
```
- `user` The github login name whose activity list you wish to show. Default value: `eruonen`
- `limit` The maximum number of lines you wish to show (up to 30). Default value: `5`
- `cache` The number of seconds the api data should be cached (0 for no cache). Default value: `300` (5 minutes)

### Widget
Simply navigate to `/wp-admin/widgets.php` to use the widget!

### Template tag
```php
get_github_user_activity( $user = 'eruonen', $limit = 5, $cache = 300 )
```
- `$user` The github login name whose activity list you wish to show
- `$limit` The maximum number of lines you wish to show (up to 30)
- `$cache` The number of seconds the api data should be cached (0 for no cache)

Examples:
```php
// shows the five most recent github user activities for user eruonen
echo get_github_user_activity( 'eruonen' );
// shows only the latest github user activity for user eruonen
echo get_github_user_activity( 'eruonen', 1 );
// shows only the latest github user activity for user eruonen without caching the results
echo get_github_user_activity( 'eruonen', 1, 0 );
```

## Languages
The default language for this plugin is English, but there's also a Dutch translation available. 
You can add your own .mo files to the plugin's `language/` directory, or use another plugin such as WPML to translate WP GitHub Activity.

For help with adding your own languages, please read this article http://www.foxrunsoftware.net/articles/wordpress/translating-a-wordpress-plugin-step-by-step/
{'fraction_non_alphanumeric': 0.1063340991138825, 'fraction_numerical': 0.01444043321299639, 'mean_word_length': 4.613259668508287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '690854', 'n_tokens_mistral': 924, 'n_tokens_neox': 848, 'n_words': 420}