<commit_before>(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
function Auth(t,e){if(!arguments.length||arguments.length<2)throw new SMSGHError("Auth requires both `clientId` and `clientSecret`");return this instanceof Auth?(this.clientId=t,this.clientSecret=e,void(this.basicAuth=utils.encode(this.clientId+":"+this.clientSecret))):new Auth(t,e)}var utils=require("./utils"),SMSGHError=require("./error");module.exports=Auth;

},{"./error":2,"./utils":8}],2:[function(require,module,exports){
function SMSGHError(r){Error.call(this),this.message="SMSGHJS: "+r,this.stack=(new Error).stack}var util=require("util");util.inherits(SMSGHError,Error),SMSGHError.prototype.name="SMSGHError",SMSGHError.prototype.toString=function(){return this.message},module.exports=SMSGHError;

},{"util":16}],3:[function(require,module,exports){
var request=require("superagent"),SMSGHError=require("./error"),httpClient={},reqArr=["get","post","put","del","head"];reqArr.forEach(function(e){httpClient[e]=function(r,t){if(!r.url)throw new SMSGHError("No URL was specified for the request. Provide `url` in the options object");r.headers||(r.headers={});var n=request[e](r.url),o=t&&"function"==typeof t?t:function(){};n.set(r.headers),r.data&&n.send(r.data),n.end(function(e,r){return e?o(e,r):void o(null,r)})}}),module.exports=httpClient;

},{"./error":2,"superagent":17}],4:[function(require,module,exports){
function isAnImportantParamMissing(e){for(var t=0,s=Message._importantParams.length;s>t;t++){var r=e[Message._importantParams[t]];if(null===r||void 0===r)return!0}}function Message(e){if(!(this instanceof Message))return new Message(e);if(this.type=e.type||0,this.clientReference=e.clientReference||null,this.direction=e.direction||"out",this.flashMessage=e.flash||null,this.messageId=e.messageId||null,this.networkId=e.networkId||null,this.rate=e.rate||null,this.registeredDelivery=e.registeredDelivery||null,this.status=e.status||null,this.time=e.time||null,this.udh=e.udh||null,this.units=e.units||null,this.updateTime=e.updateTime||null,isAnImportantParamMissing(e))throw new SMSGHError("Important message option missing. Required options are: `from`, `to` and  `content`");var t=0,s=Message._importantParams.length;for(t=0;s>t;t++)this[Message._importantParams[t]]=e[Message._importantParams[t]]}var SMSGHError=require("./error");Message.prototype.toJSON=function(){var e={},t=this;for(var s in t)if(t.hasOwnProperty(s)&&t[s]&&"function"!=typeof t[s]){var r=t[s];"to"===s&&(r=~r.indexOf("+")?r:"+"+r),e[s.charAt(0).toUpperCase()+s.substr(1)]=r}return e},Message.castToMessageObj=function(e){return new Message(e)},Message._importantParams=["content","from","to"],module.exports=Message;

},{"./error":2}],5:[function(require,module,exports){
function SendMessage(e,s){return this instanceof SendMessage?(this._noopCallback=function(){},this._headers={Accept:"application/json",Authorization:"Basic "+e.basicAuth},this.versionNumber=s||"v3",this.lastQueryTime=0,void this.setContextPath()):new SendMessage(e,s)}var util=require("util"),httpClient=require("./httpclient"),Message=require("./message"),utils=require("./utils"),SMSGHError=require("./error");SendMessage.prototype._callbackProvider=function(e){return e&&"function"==typeof e?e:this._noopCallback},SendMessage.prototype.setContextPath=function(e){e=e||this.versionNumber,SendMessage.BASE_URL=util.format(SendMessage.BASE_URL_PLC,e)},SendMessage.prototype.send=function(e,s){e instanceof Message||(e=Message.castToMessageObj(e)),s=this._callbackProvider(s),httpClient.post({url:SendMessage.BASE_URL,headers:utils.merge(this._headers,{"Content-Type":"application/json"}),data:e.toJSON()},function(e,t){return e?s(e,t):((201===t.status||2===(t.status/100|0))&&s(null,t.body),void s(null,t))})},SendMessage.prototype.sendQuickMessage=function(e,s,t,n){var i=new Message({from:e,to:s,content:t});this.send(i,n)},SendMessage.prototype.sendScheduledMessage=function(e,s){if(e instanceof Message||(e=Message.castToMessageObj(e)),!e.time)throw new SMSGHError("A scheduled message object must have a time value");this.send(e,s)},SendMessage.prototype.getMessage=function(e,s){s=this._callbackProvider(s),httpClient.get({headers:this._headers,url:SendMessage.BASE_URL+"/"+e},function(e,t){return e?s(e,t):void s(null,t.body)})},SendMessage.prototype.queryMessage=function(e,s){if(this.lastQueryTime&&~~((Date.now()-this.lastQueryTime)/1e3)<5)throw new SMSGHError("Query must be within 5 second intervals");this.lastQueryTime=Date.now(),s=this._callbackProvider(s),httpClient.get({url:SendMessage.BASE_URL+"?"+utils.serialize(e),headers:this._headers},function(e,t){return e?s(e,t):void s(null,t)})},SendMessage.prototype.rescheduleMessage=function(e,s,t){if(!e)throw new SMSGHError("Provide the message id of the message to be rescheduled");t=this._callbackProvider(t),httpClient.put({url:SendMessage.BASE_URL+"/"+e,headers:utils.merge(this._headers,{"Content-Type":"application/json"}),data:{Time:s}},function(e,s){return e?t(e,s):void t(null,s)})},SendMessage.prototype.cancel=function(e,s){s=this._callbackProvider(s),httpClient.del({url:SendMessage.BASE_URL+"/"+e,headers:this._headers},function(e,t){return e?s(e,t):void s(null,t)})},SendMessage.BASE_URL_PLC="https://api.smsgh.com/%s/messages",SendMessage.BASE_URL="",module.exports=SendMessage;<commit_msg>Build file for browser<commit_after>(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
function Auth(t,e){if(!arguments.length||arguments.length<2)throw new SMSGHError("Auth requires both `clientId` and `clientSecret`");return this instanceof Auth?(this.clientId=t,this.clientSecret=e,void(this.basicAuth=utils.encode(this.clientId+":"+this.clientSecret))):new Auth(t,e)}var utils=require("./utils"),SMSGHError=require("./error");module.exports=Auth;

},{"./error":2,"./utils":8}],2:[function(require,module,exports){
function SMSGHError(r){Error.call(this),this.message="SMSGHJS: "+r,this.stack=(new Error).stack}var util=require("util");util.inherits(SMSGHError,Error),SMSGHError.prototype.name="SMSGHError",SMSGHError.prototype.toString=function(){return this.message},module.exports=SMSGHError;

},{"util":16}],3:[function(require,module,exports){
var request=require("superagent"),SMSGHError=require("./error"),httpClient={},reqArr=["get","post","put","del","head"];reqArr.forEach(function(e){httpClient[e]=function(r,t){if(!r.url)throw new SMSGHError("No URL was specified for the request. Provide `url` in the options object");r.headers||(r.headers={});var n=request[e](r.url),o=t&&"function"==typeof t?t:function(){};n.set(r.headers),r.data&&n.send(r.data),n.end(function(e,r){return e?o(e,r):void o(null,r)})}}),module.exports=httpClient;

},{"./error":2,"superagent":17}],4:[function(require,module,exports){
function isAnImportantParamMissing(e){for(var t=0,s=Message._importantParams.length;s>t;t++){var r=e[Message._importantParams[t]];if(null===r||void 0===r)return!0}}function Message(e){if(!(this instanceof Message))return new Message(e);if(this.type=e.type||0,this.clientReference=e.clientReference||null,this.direction=e.direction||"out",this.flashMessage=e.flash||null,this.messageId=e.messageId||null,this.networkId=e.networkId||null,this.rate=e.rate||null,this.registeredDelivery=e.registeredDelivery||null,this.status=e.status||null,this.time=e.time||null,this.udh=e.udh||null,this.units=e.units||null,this.updateTime=e.updateTime||null,isAnImportantParamMissing(e))throw new SMSGHError("Important message option missing. Required options are: `from`, `to` and  `content`");var t=0,s=Message._importantParams.length;for(t=0;s>t;t++)this[Message._importantParams[t]]=e[Message._importantParams[t]]}var SMSGHError=require("./error");Message.prototype.toJSON=function(){var e={},t=this;for(var s in t)if(t.hasOwnProperty(s)&&t[s]&&"function"!=typeof t[s]){var r=t[s];"to"===s&&(r=~r.indexOf("+")?r:"+"+r),e[s.charAt(0).toUpperCase()+s.substr(1)]=r}return e},Message.castToMessageObj=function(e){return new Message(e)},Message._importantParams=["content","from","to"],module.exports=Message;

},{"./error":2}],5:[function(require,module,exports){
function SendMessage(e,s){return this instanceof SendMessage?(this._noopCallback=function(){},this._headers={Accept:"application/json",Authorization:"Basic "+e.basicAuth},this.versionNumber=s||"v3",this.lastQueryTime=0,void this.setContextPath()):new SendMessage(e,s)}var util=require("util"),httpClient=require("./httpclient"),Message=require("./message"),utils=require("./utils"),SMSGHError=require("./error");SendMessage.prototype._callbackProvider=function(e){return e&&"function"==typeof e?e:this._noopCallback},SendMessage.prototype.setContextPath=function(e){e=e||this.versionNumber,SendMessage.BASE_URL=util.format(SendMessage.BASE_URL_PLC,e)},SendMessage.prototype.send=function(e,s){e instanceof Message||(e=Message.castToMessageObj(e)),s=this._callbackProvider(s),httpClient.post({url:SendMessage.BASE_URL,headers:utils.merge(this._headers,{"Content-Type":"application/json"}),data:e.toJSON()},function(e,t){return e?s(e,t):201===t.status||2===(t.status/100|0)?s(null,t.body):void s(null,t)})},SendMessage.prototype.sendQuickMessage=function(e,s,t,n){var i=new Message({from:e,to:s,content:t});this.send(i,n)},SendMessage.prototype.sendScheduledMessage=function(e,s){if(e instanceof Message||(e=Message.castToMessageObj(e)),!e.time)throw new SMSGHError("A scheduled message object must have a time value");this.send(e,s)},SendMessage.prototype.getMessage=function(e,s){s=this._callbackProvider(s),httpClient.get({headers:this._headers,url:SendMessage.BASE_URL+"/"+e},function(e,t){return e?s(e,t):void s(null,t.body)})},SendMessage.prototype.queryMessage=function(e,s){if(this.lastQueryTime&&~~((Date.now()-this.lastQueryTime)/1e3)<5)throw new SMSGHError("Query must be within 5 second intervals");this.lastQueryTime=Date.now(),s=this._callbackProvider(s),httpClient.get({url:SendMessage.BASE_URL+"?"+utils.serialize(e),headers:this._headers},function(e,t){return e?s(e,t):void s(null,t)})},SendMessage.prototype.rescheduleMessage=function(e,s,t){if(!e)throw new SMSGHError("Provide the message id of the message to be rescheduled");t=this._callbackProvider(t),httpClient.put({url:SendMessage.BASE_URL+"/"+e,headers:utils.merge(this._headers,{"Content-Type":"application/json"}),data:{Time:s}},function(e,s){return e?t(e,s):void t(null,s)})},SendMessage.prototype.cancel=function(e,s){s=this._callbackProvider(s),httpClient.del({url:SendMessage.BASE_URL+"/"+e,headers:this._headers},function(e,t){return e?s(e,t):void s(null,t)})},SendMessage.BASE_URL_PLC="https://api.smsgh.com/%s/messages",SendMessage.BASE_URL="",module.exports=SendMessage;
{'fraction_non_alphanumeric': 0.22120737647877523, 'fraction_numerical': 0.0071329157967988865, 'mean_word_length': 15.23870056497175, 'pattern_counts': {'":': 18, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4286954', 'n_tokens_mistral': 4076, 'n_tokens_neox': 4031, 'n_words': 310}