<commit_before>Codus
=====

Tools to improve your life as Rails developer.



Javascript Organizer
--------------------

You can write your javascript functions using [yojs namespaces declaration](https://github.com/codus/yojs). Namespaces that matches your application name, current controller and current action will automatic be fired.

### Setup



- Put in your Gemfile:

```ruby
gem 'codus'
```

- Install the gem with *bundle install*

- Put in your layout: 

`<%= load_yojs(:app_name => 'yourappname') %>`

- Put in your application.js

```javascript
//= require jquery
//= require yojs
```

- Declare your functions using yojs and enjoy your life



**Options**



***app_name***

The *load_yojs* **helper method will print a javascript code, using query and yojs, that calls namespaces matching the app_name option, current controller name and current action name.



For instance, if you're in /posts/new it will call:



1. yourappname

2. yourappname.posts

3. yourappname.posts.new<commit_msg>documentation fix<commit_after>Codus
=====

Tools to improve your life as Rails developer.



Javascript Organizer
--------------------

You can write your javascript functions using [yojs namespaces declaration](https://github.com/codus/yojs). Namespaces that matches your application name, current controller and current action will automatic be fired.

### Setup



- Put in your Gemfile:

```ruby
gem 'codus'
```

- Install the gem with *bundle install*

- Put in your layout: 

`<%= load_yojs(:app_name => 'yourappname') %>`

- Put in your application.js

```javascript
//= require jquery
//= require yojs
```

- Declare your functions using yojs and enjoy your life



**Options**



***app_name***

The *load_yojs* helper method will print a javascript code, using query and yojs, that calls namespaces matching the app_name option, current controller name and current action name.



For instance, if you're in /posts/new it will call:



1. yourappname

2. yourappname.posts

3. yourappname.posts.new
{'fraction_non_alphanumeric': 0.11607142857142858, 'fraction_numerical': 0.002976190476190476, 'mean_word_length': 3.7570754716981134, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '35562', 'n_tokens_mistral': 624, 'n_tokens_neox': 570, 'n_words': 236}