<commit_before># SAML Client
---------
Author: <NAME>   
Level: Intermediate
Technologies: Javascript, Cordova, RHMAP  
Summary: A demonstration of how to synchronize a single collection with RHMAP.
Community Project : [Feed Henry](http://feedhenry.org)
Target Product: RHMAP
Product Versions: RHMAP 3.8.0+
Source: https://github.com/feedhenry-templates/sync-cordova-app  
Prerequisites: fh-js-sdk : 3.0.+, cordova 4.0+

## What is it?

This application shows how you can use SAML with the RHMAP platform, it should be used in combination with the [SAML service](https://github.com/feedhenry-templates/saml-service) and the [SAML could app](https://github.com/feedhenry-templates/saml-cloud-app) have a look at the [notes](https://github.com/feedhenry-templates/saml-service/blob/master/NOTES.md) how to setup the service.  Refer to [fhconfig.json](www/fhconfig.json) for configuraiton.

If you do not have access to a RHMAP instance, you can sign up for a free instance at [https://openshift.feedhenry.com/](https://openshift.feedhenry.com/).

## How do I run it?  

### RHMAP Studio

This application and its cloud services are available as a project template in RHMAP as part of the "SAML Example Project" template.

### Local Clone (ideal for Open Source Development)
If you wish to contribute to this template, the following information may be helpful; otherwise, RHMAP and its build facilities are the preferred solution.

###  Prerequisites  
 * fh-js-sdk : 3.0.+
 * cordova: 4.0+

## Build instructions
 * Edit [fhconfig.json](www/fhconfig.json) to include the relevant information from RHMAP.  
 * cordova serve  
 
## How does it work?

Click the "Sign In" button to sign in via your configured SAML IdP, this will open a webbrowser that you can use to login
<commit_msg>include npm dependencies browserify explanation<commit_after># SAML Client
---------
Author: <NAME>   
Level: Intermediate
Technologies: Javascript, Cordova, RHMAP  
Summary: A demonstration of how to synchronize a single collection with RHMAP.
Community Project : [Feed Henry](http://feedhenry.org)
Target Product: RHMAP
Product Versions: RHMAP 3.8.0+
Source: https://github.com/feedhenry-templates/sync-cordova-app  
Prerequisites: fh-js-sdk : 3.0.+, cordova 4.0+

## What is it?

This application shows how you can use SAML with the RHMAP platform, it should be used in combination with the [SAML service](https://github.com/feedhenry-templates/saml-service) and the [SAML could app](https://github.com/feedhenry-templates/saml-cloud-app) have a look at the [notes](https://github.com/feedhenry-templates/saml-service/blob/master/NOTES.md) how to setup the service.  Refer to [fhconfig.json](www/fhconfig.json) for configuraiton.

If you do not have access to a RHMAP instance, you can sign up for a free instance at [https://openshift.feedhenry.com/](https://openshift.feedhenry.com/).

## How do I run it?  

### RHMAP Studio

This application and its cloud services are available as a project template in RHMAP as part of the "SAML Example Project" template.

### Local Clone (ideal for Open Source Development)
If you wish to contribute to this template, the following information may be helpful; otherwise, RHMAP and its build facilities are the preferred solution.

###  Prerequisites  
 * fh-js-sdk : 3.0.+
 * cordova: 4.0+

## Build instructions
 * npm install
 * Edit [fhconfig.json](www/fhconfig.json) to include the relevant information from RHMAP.  
 * cordova serve  

The `fh-js-sdk` and other development dependencies are defined in [package.json](package.json) and included in a [browserified script](www/js/main.js).
Code used in this template is not browserified, in order for you to be able to experiment with it on the studio. 
The [init.js](www/js/init.js) file is browserified and acts as a bridge between template script and npm dependencies.
 
## How does it work?

Click the "Sign In" button to sign in via your configured SAML IdP, this will open a webbrowser that you can use to login

{'fraction_non_alphanumeric': 0.0965965965965966, 'fraction_numerical': 0.0055055055055055055, 'mean_word_length': 4.238532110091743, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 6, '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': '6375311', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1152, 'n_words': 486}