<commit_before>Dragdealer.js
===
Drag-based JavaScript component, embracing endless UI solutions

[![Build Status](https://travis-ci.org/skidding/dragdealer.png?branch=master)](https://travis-ci.org/skidding/dragdealer)

Specs & (sweet) demos: __http://skidding.github.io/dragdealer__

## Running tests

Dragdealer has CI set up through [Travis CI](https://travis-ci.org) and [Sauce Labs](https://saucelabs.com) (who both offer their outstanding services for free to open-source projects.) Any pull-request will be tested automatically after each commit.

You can also run the tests by hand, of course.

### Fire up the browser

Just load index.html in a browser of choice and pull the top slider to the right or access URL with the `/#runner` hashtag directly. Example: http://skidding.github.io/dragdealer/#runner

You can start a web server using the `./node_modules/.bin/grunt dev` task, which will make the project available at [localhost:9999](http://localhost:9999)

### Sauce Labs

If you have SauceLabs credentials (SAUCE_USERNAME and SAUCE_ACCESS_KEY), run the `./node_modules/.bin/grunt test` grunt task and everything will be taken care of.

## Minifying

`./node_modules/.bin/uglifyjs src/dragdealer.js -o lib/dragdealer.min.js`
<commit_msg>Add instructions for installing in README #28<commit_after>Dragdealer.js
===
Drag-based JavaScript component, embracing endless UI solutions

[![Build Status](https://travis-ci.org/skidding/dragdealer.png?branch=master)](https://travis-ci.org/skidding/dragdealer)

Specs & (sweet) demos: __http://skidding.github.io/dragdealer__

## Install

The basic way to install Dragdealer is to include the [minified](https://raw.github.com/skidding/dragdealer/master/lib/dragdealer.min.js)
script into your web page.

### Node package

It can also be installed through [npm](https://www.npmjs.org/package/dragdealer),
using something like [browserify.](https://github.com/substack/node-browserify)

```js
var Dragdealer = require('dragdealer').Dragdealer;
```

## Running tests

Dragdealer has CI set up through [Travis CI](https://travis-ci.org) and [Sauce Labs](https://saucelabs.com) (who both offer their outstanding services for free to open-source projects.) Any pull-request will be tested automatically after each commit.

You can also run the tests by hand, of course.

### Fire up the browser

Just load index.html in a browser of choice and pull the top slider to the right or access URL with the `/#runner` hashtag directly. Example: http://skidding.github.io/dragdealer/#runner

You can start a web server using the `./node_modules/.bin/grunt dev` task, which will make the project available at [localhost:9999](http://localhost:9999)

### Sauce Labs

If you have SauceLabs credentials (SAUCE_USERNAME and SAUCE_ACCESS_KEY), run the `./node_modules/.bin/grunt test` grunt task and everything will be taken care of.

## Minifying

`./node_modules/.bin/uglifyjs src/dragdealer.js -o lib/dragdealer.min.js`

{'fraction_non_alphanumeric': 0.1121242823370483, 'fraction_numerical': 0.0060790273556231, 'mean_word_length': 4.807843137254902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 11, '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': '579751', 'n_tokens_mistral': 929, 'n_tokens_neox': 893, 'n_words': 308}