<commit_before>(function(root, undefined) {

  "use strict";

	//vimeoData Object
	var vimeoData = {};

	vimeoData.video = {};

	vimeoData.video.url = "video";

	// makes a ajax petition and returns a jqXHR promise
	vimeoData.video.getVideoById = function(id){
		var url = vimeoData.makeUrl(this.url,id,'json');
		return vimeoData.$getJson(url);
	};


	/* vimeo-data main */

	// Check if Jquery exist
	if( !root.jQuery ){
		throw new Error('It dependes on jquery');
	}
	
	//Url and version of the api
	vimeoData.url = "http://vimeo.com/api/";
	vimeoData.apiVersion = 'v2';
	
	//Get Jquery ajax functionality
	vimeoData.$getJson = root.jQuery.getJSON;
	vimeoData.$post = root.jQuery.post;

	// Version.
	vimeoData.VERSION = '0.0.1';

	//Make URL Function
	vimeoData.makeUrl = function(api,content,format){
		return this.url + this.apiVersion + '/' + api + '/' + content + '.' + format;
	};



	// Export to the root, which is probably `window`.
	root.vimeoData = vimeoData;


}(this));<commit_msg>code review<commit_after>(function(root, undefined) {
	
	// RM: Usamos Browserify o RequireJS en CommonJS mode
	// Para tener algo reusable en NodeJS y Browser

  "use strict"; // Nice touch!

	//vimeoData Object
	
	// RM: Puedes crear un objeto mejor
	// function VimeoDataAdapter() {
	//  this.url = 
	//  this.version = 
	// }
	// VimeoDataAdapter.prototype.getById
	// VimeoDataAdapter.prototype.createUrl
	var vimeoData = {};

	vimeoData.video = {};

	vimeoData.video.url = "video";

	// makes a ajax petition and returns a jqXHR promise
	vimeoData.video.getVideoById = function(id){
		var url = vimeoData.makeUrl(this.url,id,'json');
		return vimeoData.$getJson(url);
	};


	/* vimeo-data main */

	// Check if Jquery exist
	if( !root.jQuery ){ // RM: Revisa si hay una forma de agregar deps en Browserify
		throw new Error('It dependes on jquery');
	}
	
	//Url and version of the api
	vimeoData.url = "http://vimeo.com/api/";
	vimeoData.apiVersion = 'v2';
	
	//Get Jquery ajax functionality
	vimeoData.$getJson = root.jQuery.getJSON;
	vimeoData.$post = root.jQuery.post;

	// Version.
	vimeoData.VERSION = '0.0.1';

	//Make URL Function
	vimeoData.makeUrl = function(api,content,format){
		return this.url + this.apiVersion + '/' + api + '/' + content + '.' + format;
	};



	// Export to the root, which is probably `window`.
	root.vimeoData = vimeoData;


}(this));
{'fraction_non_alphanumeric': 0.14846056516237874, 'fraction_numerical': 0.003374103753690426, 'mean_word_length': 3.304900181488203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '464311', 'n_tokens_mistral': 921, 'n_tokens_neox': 853, 'n_words': 209}