<commit_before># Workbench

The RPI Workbench is a JavaScript Single-Page Application frontend to the GeoCENS Data Service.

## Development Environment

TODO

## Testing

TODO

## Deploying

TODO

## License

Copyright GeoSensor Web Lab, <NAME>, 2013. All rights reserved.<commit_msg>Add instructions for generator<commit_after># Workbench

The RPI Workbench is a JavaScript Single-Page Application frontend to the GeoCENS Data Service.

## Development Environment

TODO

### generate.html

This page will generate a JSON array of dummy record objects, with random data for values. The array can then be uploaded into the Data Service using `bin/push` or `bin/ppush`.

### `push` and `ppush`

These two scripts in the `bin` directory can take a JSON file containing an array from the `generate.html` page and upload each record individually into the Data Service. `ppush` is the parallelized version of `push`, and runs about three times faster on my development machine. If `ppush` uploads too fast for some reason, try `push` instead.

1. Create JSON array of records using `generate.html`
2. Save JSON string to file in root directory, say `f.json`
3. From the command line, run `ppush` on the file with a known endpoint URL (MUST point to the records resource for a datastream):

	$ bin/ppush --file=f.json --url="http://dataservice.geocens.ca/users/<user_id>/sensors/<sensor_id>/datastreams/<datastream_id>/records"

4. Watch as the POST requests are completed, "200 OK" means the Data Service received the request
5. Verify the records uploaded by doing a GET request to "http://dataservice.geocens.ca/users/<user_id>/sensors/<sensor_id>/datastreams/<datastream_id>/records"
6. Delete `f.json`

## Testing

TODO

## Deploying

TODO

## License

Copyright GeoSensor Web Lab, <NAME>, 2013. All rights reserved.
{'fraction_non_alphanumeric': 0.08379272326350606, 'fraction_numerical': 0.009371554575523704, 'mean_word_length': 4.5504587155963305, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4843499', 'n_tokens_mistral': 541, 'n_tokens_neox': 517, 'n_words': 236}