<commit_before>//-------------------------------------
//-- Init
//-------------------------------------

//= **require     bower_components/foo/bar
//= **require     components/common/scripts/foobar
//= **jshtml      components/common/templates/foobar
//= **jshtml_tree components/common/templates

(() => {
	'use strict';

	const local = {};


	//-- Cache data instantly
	local.cache = () => {

		// tmpl
		/**
		$.views.helpers({
			konstan: (key) => { return _.get(konstan, key); },
			trans:   (key) => { return app.translation[key]; }
		});
		/**/

		app.lazyload.register({
			'image': {
				firstPass: ($this, options) => {
					$this.attr('src', options.url);
				}
			},

			'bg-image': {
				firstPass: ($this, options) => {
					$this.css('background-image', `url('${options.url}')`);
				}
			},

			'SAMPLE': {
				preprocess: ($this/* , options */) => {
					setTimeout(() => { $this.addClass('placeholder'); }, 1000);
				},
				firstPass: ($this, options) => {
					if (options.url) {
						$this.find(`${__.component('main-image')} > img`).attr('src', options.url);
					}
				},
				secondPass: ($this, options) => {
					if (options.hoverUrl && !Modernizr.touchevents) {
						const $hover = $this.find(__.component('main-image'));
						$hover.css('background-image', `url('${options.hoverUrl}')`);

						$hover.imagesLoaded({ background:true })<commit_msg>trans -> translate<commit_after>//-------------------------------------
//-- Init
//-------------------------------------

//= **require     bower_components/foo/bar
//= **require     components/common/scripts/foobar
//= **jshtml      components/common/templates/foobar
//= **jshtml_tree components/common/templates

(() => {
	'use strict';

	const local = {};


	//-- Cache data instantly
	local.cache = () => {

		// tmpl
		/**
		$.views.helpers({
			konstan:   (key) => { return _.get(konstan, key); },
			translate: (key) => { return app.translation[key]; }
		});
		/**/

		app.lazyload.register({
			'image': {
				firstPass: ($this, options) => {
					$this.attr('src', options.url);
				}
			},

			'bg-image': {
				firstPass: ($this, options) => {
					$this.css('background-image', `url('${options.url}')`);
				}
			},

			'SAMPLE': {
				preprocess: ($this/* , options */) => {
					setTimeout(() => { $this.addClass('placeholder'); }, 1000);
				},
				firstPass: ($this, options) => {
					if (options.url) {
						$this.find(`${__.component('main-image')} > img`).attr('src', options.url);
					}
				},
				secondPass: ($this, options) => {
					if (options.hoverUrl && !Modernizr.touchevents) {
						const $hover = $this.find(__.component('main-image'));
						$hover.css('background-image', `url('${options.hoverUrl}')`);

						$hover.imagesLoaded({ background:true })
{'fraction_non_alphanumeric': 0.26960607155764366, 'fraction_numerical': 0.0028912179255511385, 'mean_word_length': 2.295238095238095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, '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': '5003430', 'n_tokens_mistral': 1099, 'n_tokens_neox': 894, 'n_words': 141}