<commit_before>(function() {
	/**
	 * This namespace holds all available mock objects that are used in bcapi unit tests.
	 * 
	 * @namespace BCAPI.Mocks
	 */
	var Mocks = {};
	
	/**
	 * This namespace holds mock classes meant to replace BCAPI.Helper classes.
	 * 
	 * @namespace BCAPI.Mocks.Helper
	 */
	Mocks.Helper = {};
	
	/**
	 * This method mocks {@link BCAPI.Helper.Site} namespace.
	 * 
	 * @param {String} genericToken Generic token we want to return from {@link BCAPI.Helper.Site.getGenericToken} 
	 * @param {String} siteToken Site token we want to return from {@link BCAPI.Helper.Site.getSiteToken}
	 * @param {String} rootUrl Root url we want to return from {@link BCAPI.Helper.Site.getRootUrl}
	 * @function
	 * @memberOf BCAPI.Mocks.Helper
	 * 
	 * @example
	 * describe("Simple tests", function() {
	 *  var oldSiteHelper;
	 * 
	 * 	beforeEach(function() {
	 * 		oldSiteHelper = BCAPI.Helper.Site;
	 * 		BCAPI.Mocks.Helper.Site("genericToken123", "siteToken12<PASSWORD>", "https://simple.base.url.com/");
	 * 	});
	 * 
	 * 	it("Simple test case", function() {
	 * 		expect(BCAPI.Helper.Site.getGenericToken()).toBe(genericToken123);
	 * 		expect(BCAPI.Helper.Site.getSiteToken()).toBe(siteToken123);
	 * 		expect(BCAPI.Helper.Site.getRootUrl()).toBe("https://simple.base.url.com/");
	 * 	});
	 * });
	 */
	Mocks.Helper.Site= function(genericToken, siteToken, rootUrl) {
		spyOn(BCAPI.Helper.Site, "getGenericToken").andReturn(genericToken);
		spyOn(BCAPI.Helper.Site, "getSiteToken").andReturn(siteToken);
		spyOn(BCAPI.Helper.Site, "getRootUrl").andReturn(rootUrl);
	};
	
	/**
	 * This namespace holds mock classes compatbible with BCAPI.Models specification.
	 * 
	 * @namespace BCAPI.Mocks.Models
	 */
	Mocks.Models = {};	
	
	/**
	 * This class provides a very simple mock model used in unit tests. It also provides
	 * a very good example of what is required to implement for adding a new model to sdk.
	 * 
	 * @name PersonModel
	 * @class
	 * @memberOf BCAPI.Mocks.Models
	 * @example
	 * var model = new BCAPI.Mocks.Models({
	 * 	firstName: "John",
	 * 	lastName: "Doe"
	 * });
	 */
	Mocks.Models.PersonModel = BCAPI.Models.Model.extend({
		defaults: {
			firstName: "first_name_default",
			lastName: "last_name_default"
		},
		endpoint: function() {
			return "/api/v2/persons";
		},
		idAttribute: "idCustom"
	});
	
	BCAPI.Mocks = Mocks;
})();<commit_msg>I improved person model mock documentation.<commit_after>(function() {
	/**
	 * This namespace holds all available mock objects that are used in bcapi unit tests.
	 * 
	 * @namespace BCAPI.Mocks
	 */
	var Mocks = {};
	
	/**
	 * This namespace holds mock classes meant to replace BCAPI.Helper classes.
	 * 
	 * @namespace BCAPI.Mocks.Helper
	 */
	Mocks.Helper = {};
	
	/**
	 * This method mocks {@link BCAPI.Helper.Site} namespace.
	 * 
	 * @param {String} genericToken Generic token we want to return from {@link BCAPI.Helper.Site.getGenericToken} 
	 * @param {String} siteToken Site token we want to return from {@link BCAPI.Helper.Site.getSiteToken}
	 * @param {String} rootUrl Root url we want to return from {@link BCAPI.Helper.Site.getRootUrl}
	 * @function
	 * @memberOf BCAPI.Mocks.Helper
	 * 
	 * @example
	 * describe("Simple tests", function() {
	 *  var oldSiteHelper;
	 * 
	 * 	beforeEach(function() {
	 * 		oldSiteHelper = BCAPI.Helper.Site;
	 * 		BCAPI.Mocks.Helper.Site("genericToken123", "siteToken12345", "https://simple.base.url.com/");
	 * 	});
	 * 
	 * 	it("Simple test case", function() {
	 * 		expect(BCAPI.Helper.Site.getGenericToken()).toBe(genericToken123);
	 * 		expect(BCAPI.Helper.Site.getSiteToken()).toBe(siteToken123);
	 * 		expect(BCAPI.Helper.Site.getRootUrl()).toBe("https://simple.base.url.com/");
	 * 	});
	 * });
	 */
	Mocks.Helper.Site= function(genericToken, siteToken, rootUrl) {
		spyOn(BCAPI.Helper.Site, "getGenericToken").andReturn(genericToken);
		spyOn(BCAPI.Helper.Site, "getSiteToken").andReturn(siteToken);
		spyOn(BCAPI.Helper.Site, "getRootUrl").andReturn(rootUrl);
	};
	
	/**
	 * This namespace holds mock classes compatbible with BCAPI.Models specification.
	 * 
	 * @namespace BCAPI.Mocks.Models
	 */
	Mocks.Models = {};	
	
	/**
	 * This class provides a very simple mock model used in unit tests. It also provides
	 * a very good example of what is required to implement for adding a new model to sdk.
	 * 
	 * @name PersonModel
	 * @class
	 * @memberOf BCAPI.Mocks.Models
	 * @example
	 * var model = new BCAPI.Mocks.Models.PersonModel({
	 * 	firstName: "John",
	 * 	lastName: "Doe"
	 * });
	 */
	Mocks.Models.PersonModel = BCAPI.Models.Model.extend({
		defaults: {
			firstName: "first_name_default",
			lastName: "last_name_default"
		},
		endpoint: function() {
			return "/api/v2/persons";
		},
		idAttribute: "idCustom"
	});
	
	BCAPI.Mocks = Mocks;
})();
{'fraction_non_alphanumeric': 0.14515119916579772, 'fraction_numerical': 0.005630865484880084, 'mean_word_length': 3.5850860420650097, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '3667620', 'n_tokens_mistral': 1723, 'n_tokens_neox': 1533, 'n_words': 363}