<commit_before>/*------------------------------------*/
// CONFIG VARIABLE
/*------------------------------------*/
var pmgConfig = {};
pmgConfig.version = '1.4.1';
pmgConfig.toolURL = 'http://www.esri.com/public-maps-gallery/group-id-tool/index.html';
pmgConfig.tokenToolURL = 'http://www.esri.com/public-maps-gallery/token-tool/index.html';
pmgConfig.showVersion = false;
/*------------------------------------*/
// QUERY ARCGIS GROUP INFO
/*------------------------------------*/
function queryArcGISGroupInfo(obj){
	// DEFAULT VALUES
	var settings = {
		id_group : '',
		dataType : 'json',
		callback: null
    };
	// If options exist, lets merge them with our default settings
	if(obj) { 
		$.extend(settings,obj);
	}
	//EXAMPLE URL: http://www.arcgis.com/sharing/rest/community/groups/2ecb37a8c8fb4051af9c086c25503bb0
	if(settings.id_group){
		var dataString = '';
		dataString += '&f=' + settings.dataType;
		// JQUERY AJAX FUNCTION CALL
		$.ajax({
			// AJAX URL
			// As a result of the release of the ArcGIS Portal API in March 2012, the query URL "/sharing/rest/" has been added. The old query URL "/sharing/" declaration still works but was changed to reflect current practices.
			url: pmgConfig.arcgisPortalURL + pmgConfig.arcgisPortalRest + 'community/groups/' + settings.id_group + '/?token=' + pmgConfig.token,
			// DATA STRING WITH PARAMETERS
			data: dataString,
			// DATA TYPE
			dataType: 'jsonp',
			success: function(data, textStatus, jqXHR){<commit_msg>version update<commit_after>/*------------------------------------*/
// CONFIG VARIABLE
/*------------------------------------*/
var pmgConfig = {};
pmgConfig.version = '1.4.1';
pmgConfig.toolURL = 'http://www.esri.com/public-maps-gallery/group-id-tool/index.html';
pmgConfig.tokenToolURL = 'http://www.esri.com/public-maps-gallery/token-tool/index.html';
pmgConfig.showVersion = false;
/*------------------------------------*/
// QUERY ARCGIS GROUP INFO
/*------------------------------------*/
function queryArcGISGroupInfo(obj){
	// DEFAULT VALUES
	var settings = {
		id_group : '',
		dataType : 'json',
		callback: null
    };
	// If options exist, lets merge them with our default settings
	if(obj) { 
		$.extend(settings,obj);
	}
	//EXAMPLE URL: http://www.arcgis.com/sharing/rest/community/groups/2ecb37a8c8fb4051af9c086c25503bb0
	if(settings.id_group){
		var dataString = '';
		dataString += '&f=' + settings.dataType;
		dataString += '&v=' + pmgConfig.arcgisRestVersion;
		// JQUERY AJAX FUNCTION CALL
		$.ajax({
			// AJAX URL
			// As a result of the release of the ArcGIS Portal API in March 2012, the query URL "/sharing/rest/" has been added. The old query URL "/sharing/" declaration still works but was changed to reflect current practices.
			url: pmgConfig.arcgisPortalURL + pmgConfig.arcgisPortalRest + 'community/groups/' + settings.id_group + '/?token=' + pmgConfig.token,
			// DATA STRING WITH PARAMETERS
			data: dataString,
			// DATA TYPE
			dataType: 'jsonp',
			success: function(data, textStatus, jqXHR){
{'fraction_non_alphanumeric': 0.22543160690571049, 'fraction_numerical': 0.017264276228419653, 'mean_word_length': 2.4872685185185186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5314789', 'n_tokens_mistral': 1045, 'n_tokens_neox': 937, 'n_words': 229}