<commit_before>var pageContentManager = {

	// internal meta data.
	contentInstance: null,
	urlPrefix: '',
	viewFilesPatterns: {},
	clientManager: null,

	// events.
	beforeLoad: function() {},
	afterLoad: function() {},
	afterAllSuccess: function() {},
	onFail: function() { console.log('Something wrong happend.') },

	config: function(options) {
		this.contentInstance = options.contentInstance;

		if (typeof options.urlPrefix == 'string') {
			this.urlPrefix = options.urlPrefix;
		}

		if (typeof options['beforeLoad'] == 'function') {
			this.beforeLoad = options.beforeLoad;
		}

		if (typeof options['afterLoad'] == 'function') {
			this.afterLoad = options.afterLoad;
		}

		if (typeof options['afterAllSuccess'] == 'function') {
			this.afterAllSuccess = options.afterAllSuccess;
		}

		this.clientManager = options.clientManager;
	},
	load: function(url, onSuccessCallback) {
		
		if (typeof onSuccessCallback == 'undefined') {
			onSuccessCallback = function(){};
		}
		
		that = this;
		that.beforeLoad();

		this.clientManager.get(that.urlPrefix + url, {
			success: function(response) {

				// is there view pattern for place where it could download file.
				for (viewFilePattern in that.viewFilesPatterns) {
					if (url.match(viewFilePattern)) {<commit_msg>Add "url" param to "beforeLoad" callback function in pageContentManager<commit_after>var pageContentManager = {

	// internal meta data.
	contentInstance: null,
	urlPrefix: '',
	viewFilesPatterns: {},
	clientManager: null,

	// events.
	beforeLoad: function() {},
	afterLoad: function() {},
	afterAllSuccess: function() {},
	onFail: function() { console.log('Something wrong happend.') },

	config: function(options) {
		this.contentInstance = options.contentInstance;

		if (typeof options.urlPrefix == 'string') {
			this.urlPrefix = options.urlPrefix;
		}

		if (typeof options['beforeLoad'] == 'function') {
			this.beforeLoad = options.beforeLoad;
		}

		if (typeof options['afterLoad'] == 'function') {
			this.afterLoad = options.afterLoad;
		}

		if (typeof options['afterAllSuccess'] == 'function') {
			this.afterAllSuccess = options.afterAllSuccess;
		}

		this.clientManager = options.clientManager;
	},
	load: function(url, onSuccessCallback) {
		
		if (typeof onSuccessCallback == 'undefined') {
			onSuccessCallback = function(){};
		}
		
		that = this;
		that.beforeLoad(url);

		this.clientManager.get(that.urlPrefix + url, {
			success: function(response) {

				// is there view pattern for place where it could download file.
				for (viewFilePattern in that.viewFilesPatterns) {
					if (url.match(viewFilePattern)) {
{'fraction_non_alphanumeric': 0.13690248565965582, 'fraction_numerical': 0.0, 'mean_word_length': 4.18019801980198, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4915566', 'n_tokens_mistral': 878, 'n_tokens_neox': 771, 'n_words': 180}