<commit_before>var request = require("request");
var _ = require("underscore");

function Datapoints(options){
	var self = this;

	options = _.extend({
		version: "1"
	}, options || {});

	if (!options.key)
		throw Error("DataPoints: Please provide API - KEY");

	if (!options.secret)
		throw Error("DataPoints: Please provide API - SECRET");

	var version = options.version;
	var key 	= options.key;
	var secret 	= options.secret;
	var serverUrl = "https://datapoints.global";
	if (options.url)
		serverUrl = options.url;

	var API_END_POINT = serverUrl+"/api/"+version+"/"+key+"/"+secret+"/";

	//###########################################################<commit_msg>changing default URL to api.datapoints.global<commit_after>var request = require("request");
var _ = require("underscore");

function Datapoints(options){
	var self = this;

	options = _.extend({
		version: "1"
	}, options || {});

	if (!options.key)
		throw Error("DataPoints: Please provide API - KEY");

	if (!options.secret)
		throw Error("DataPoints: Please provide API - SECRET");

	var version = options.version;
	var key 	= options.key;
	var secret 	= options.secret;
	var serverUrl = "https://api.datapoints.global";
	if (options.url)
		serverUrl = options.url;

	var API_END_POINT = serverUrl+"/api/"+version+"/"+key+"/"+secret+"/";

	//###########################################################
{'fraction_non_alphanumeric': 0.23909883720930233, 'fraction_numerical': 0.0014534883720930232, 'mean_word_length': 4.785714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4387924', 'n_tokens_mistral': 452, 'n_tokens_neox': 427, 'n_words': 104}