<commit_before>app.directive('welcome', ['$rootScope', 'USER',

function ($rootScope, USER) {
	"use strict";

	return {
		restrict: 'E',
		replace: true,
		templateUrl: 'welcome/welcome.directive.tpl.html',
		scope: true,
		link: function($scope) {
			$scope.isWelcomePage = false;
			$scope.USER = USER;

			$rootScope.$on('$stateChangeStart', function (event, toState) {
				if(toState.name === 'welcome') {
					$scope.isWelcomePage = true;
				}
				else {
					$scope.isWelcomePage = false;
				}
			});

			(function scrollingToBottom() {
				var jQueryWindow = jQuery(window);
				var jQueryDiagram = jQuery('.diagram');
				var jQueryGoDownButton = jQuery('.goDown');
				var jQueryGoDownButtonVisible = true;

				jQueryGoDownButton.click(function() {
					jQuery("html, body").animate({
						scrollTop: jQueryDiagram.offset().top
					}, 700);
				});

				jQueryWindow.scroll(function() {
					var belowLimit = jQueryWindow.scrollTop() > 200;

					if(!jQueryGoDownButtonVisible && !belowLimit) {
						jQueryGoDownButtonVisible = true;
						jQueryGoDownButton.fadeIn(400);
					}
					else if(jQueryGoDownButtonVisible && belowLimit) {
						jQueryGoDownButtonVisible = false;<commit_msg>Scroll to top to see login input fields.<commit_after>app.directive('welcome', ['$rootScope', 'USER',

function ($rootScope, USER) {
	"use strict";

	return {
		restrict: 'E',
		replace: true,
		templateUrl: 'welcome/welcome.directive.tpl.html',
		scope: true,
		link: function($scope) {
			$scope.isWelcomePage = false;
			$scope.USER = USER;

			$rootScope.$on('$stateChangeStart', function (event, toState) {
				if(toState.name === 'welcome') {
					$scope.isWelcomePage = true;
				}
				else {
					$scope.isWelcomePage = false;

					// Scroll to top to see login input.
					jQuery(window).scrollTop(0);
				}
			});

			(function scrollingToBottom() {
				var jQueryWindow = jQuery(window);
				var jQueryDiagram = jQuery('.diagram');
				var jQueryGoDownButton = jQuery('.goDown');
				var jQueryGoDownButtonVisible = true;

				jQueryGoDownButton.click(function() {
					jQuery("html, body").animate({
						scrollTop: jQueryDiagram.offset().top
					}, 700);
				});

				jQueryWindow.scroll(function() {
					var belowLimit = jQueryWindow.scrollTop() > 200;

					if(!jQueryGoDownButtonVisible && !belowLimit) {
						jQueryGoDownButtonVisible = true;
						jQueryGoDownButton.fadeIn(400);
					}
					else if(jQueryGoDownButtonVisible && belowLimit) {
						jQueryGoDownButtonVisible = false;
{'fraction_non_alphanumeric': 0.13955342902711323, 'fraction_numerical': 0.007575757575757576, 'mean_word_length': 3.504488330341113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4651436', 'n_tokens_mistral': 1024, 'n_tokens_neox': 772, 'n_words': 152}