<commit_before>#!/bin/bash

## ------------------------------------------------
## PubNub 3.1 Real-time Cloud Push API - JAVASCRIPT
## ------------------------------------------------

## ----------------------------------------------------
##
## TESTLING - PubNub JavaScript API for Web Browsers
##            uses Testling Cloud Service
##            for QA and Deployment.
##
## http://www.testling.com/
## You need this to run './test.sh' unit test.
##
## ----------------------------------------------------

if [ -z "$1" ]
then
    echo -e "\n\tUSER:PASSWD Required: http://testling.com/\n"
    exit
fi

browsers='firefox/3.6,chrome/14.0,iexplore/8.0,iexplore/9.0'
noinstrument='pubnub-3.1.js'

tar -cf- test.js pubnub-3.1.js | \
    curl -u $1 -sSNT- \
    "testling.com/?noinstrument=$noinstrument&browsers=$browsers"
<commit_msg>updated JS Unit Tests for Testling usage.<commit_after>#!/bin/bash

## ------------------------------------------------
## PubNub 3.1 Real-time Cloud Push API - JAVASCRIPT
## ------------------------------------------------

## ----------------------------------------------------
##
## TESTLING - PubNub JavaScript API for Web Browsers
##            uses Testling Cloud Service
##            for QA and Deployment.
##
## http://www.testling.com/
## You need this to run './test.sh' unit test.
##
## ----------------------------------------------------

if [ -z "$1" ]
then
    echo -e "\n\tUSER:PASSWD Required: http://testling.com/\n"
    exit
fi

browsers='firefox/10.0,chrome/17.0,iexplore/8.0,iexplore/9.0,safari/5.1'
noinstrument='pubnub-3.1.js'

tar -cf- test.js pubnub-3.1.js | \
    curl -u $1 -sSNT- \
    "testling.com/?noinstrument=$noinstrument&browsers=$browsers"

{'fraction_non_alphanumeric': 0.36596736596736595, 'fraction_numerical': 0.02156177156177156, 'mean_word_length': 1.2893333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4500092', 'n_tokens_mistral': 559, 'n_tokens_neox': 541, 'n_words': 114}