<commit_before># Categorizr.js

Categorizr.js is a port of bjankord’s categorizr.php script. There is planned
support for use within node.js and express as well as with the browser.

## Usage

Currently categorizr has a standard ender.js implementation for usage within
an ender build (has not been published to npm, yet) or drop in with your current
library scripts.

It works by adding a class to the html element of your current device.

## API

`is(deviceType)` – deviceType &lt;string&gt; of tv|desktop|tablet|mobile. Returns true/false based on current device.

`isDesktop()` `isTablet()` `isTV()` `isMobile()` – sugar around the previous method.

`getType()` — returns current device type

`setType()` – sets current device type and updates html class.

`categorizeType(real, faked)` – Sets a device type as another. E.g. `categorizr.categorizeType('tv', 'desktop')` sets all tv devices to be desktop.

## Roadmap

* Get Brett Jankord’s blessing on the port.
* Publish to npm for ender consumption
* Tests and community feedback
* Integration with Modernizr
* Integration with node.js and express

## Committing

Edit `src/*.js` files.
Run `make` in terminal.

You’ll need the devDependencies and installed for smoosh.


<commit_msg>Add link to demo<commit_after># Categorizr.js

Categorizr.js is a port of bjankord’s categorizr.php script. There is planned
support for use within node.js and express as well as with the browser.

## Demo

Check out a demo at [skookum.github.com/categorizr.js](http://skookum.github.com/categorizr.js)

## Usage

Currently categorizr has a standard ender.js implementation for usage within
an ender build (has not been published to npm, yet) or drop in with your current
library scripts.

It works by adding a class to the html element of your current device.

## API

`is(deviceType)` – deviceType &lt;string&gt; of tv|desktop|tablet|mobile. Returns true/false based on current device.

`isDesktop()` `isTablet()` `isTV()` `isMobile()` – sugar around the previous method.

`getType()` — returns current device type

`setType()` – sets current device type and updates html class.

`categorizeType(real, faked)` – Sets a device type as another. E.g. `categorizr.categorizeType('tv', 'desktop')` sets all tv devices to be desktop.

## Roadmap

* Get <NAME>’s blessing on the port.
* Publish to npm for ender consumption
* Tests and community feedback
* Integration with Modernizr
* Integration with node.js and express

## Committing

Edit `src/*.js` files.
Run `make` in terminal.

You’ll need the devDependencies and installed for smoosh.



{'fraction_non_alphanumeric': 0.09101471727343145, 'fraction_numerical': 0.0, 'mean_word_length': 4.554838709677419, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1710347', 'n_tokens_mistral': 811, 'n_tokens_neox': 788, 'n_words': 347}