<commit_before>'use strict';

define([ 'projectSugar' ], function() {
	var layoutServiceModule = angular.module('layoutServiceModule', []);

	layoutServiceModule.factory('layoutService', [ '$rootScope',
			function($rootScope) {
				return {
					fire : function() {
					  var $eventArea = $('.event-area'),
                $eventList = $('.event-list'),
                idx = 0;

            $(window).resize(function () {
              var eventWID = $('.event-con').width(),
                  movetxt01HEI = $('.move-txt01').height();
              $('.move-txt02').css('height',movetxt01HEI);
              $eventList.eq(0).css('margin-left' , -eventWID * 0.23);
            });
            $(window).trigger("resize");

            $('.lnb > li').on({
              mouseenter: function () {
                idx = $ (this).find ('.sub-lnb > li').length;
                var liHEI = $ (this).find ('.sub-lnb > li').innerHeight ();
                $ (this).children ('.sub-lnb').css ("height", liHEI * idx)
              },
              mouseleave: function () {
                $ (this).children ('.sub-lnb').css ('height', 0)
              }
            });

            //$eventList.eq(idx).addClass('on');
            //var slideRel = setInterval(function () {
            //  idx ++;
            //  fadeFn ($eventList, idx, 2000);
            //},4000);
            //$eventArea.on({
            //  mouseenter : function () {
            //    clearInterval(slideRel)
            //  },
            //  mouseleave : function () {
            //    slideRel = setInterval(function () {
            //      idx++;
            //      fadeFn ($eventList, idx, 2000);
            //    },4000);
            //  }
            //});
            //function fadeFn (select, index, sec) {
            //  var leng = select.length;
            //  select.eq(index).find('.event-area').fadeIn(sec)
            //      .parent('li').addClass('on')
            //      .siblings().removeClass('on').find('.event-area')
            //      .fadeOut(sec);
            //  if(index == leng){
            //    idx = 0;
            //    fadeFn (select, idx, 2000);
            //  }
            //}
					}// fire end
				};// return end<commit_msg>08.09 - mete viewport 임시 제외<commit_after>'use strict';

define([ 'projectSugar' ], function() {
	var layoutServiceModule = angular.module('layoutServiceModule', []);

	layoutServiceModule.factory('layoutService', [ '$rootScope',
			function($rootScope) {
				return {
					fire : function() {
					  var $eventArea = $('.event-area'),
                $eventList = $('.event-list'),
                idx = 0;

            $(window).resize(function () {
              var eventWID = $('.event-con').width(),
                  movetxt01HEI = $('.move-txt01').height();
              $('.move-txt02').css('height',movetxt01HEI);
              $eventList.eq(0).css('margin-left' , -eventWID * 0.23);
            });
            $(window).trigger("resize");

            $('.lnb > li').on({
              mouseenter: function () {
                idx = $ (this).find ('.sub-lnb > li').length;
                var liHEI = $ (this).find ('.sub-lnb > li').innerHeight ();
                $ (this).children ('.sub-lnb').css ("height", liHEI * idx)
              },
              mouseleave: function () {
                $ (this).children ('.sub-lnb').css ('height', 0)
              }
            });

            $eventList.eq(idx).addClass('on');
            var slideRel = setInterval(function () {
              idx ++;
              fadeFn ($eventList, idx, 2000);
            },4000);
            $eventArea.on({
              mouseenter : function () {
                clearInterval(slideRel)
              },
              mouseleave : function () {
                slideRel = setInterval(function () {
                  idx++;
                  fadeFn ($eventList, idx, 2000);
                },4000);
              }
            });
            function fadeFn (select, index, sec) {
              var leng = select.length;
              select.eq(index).find('.event-area').fadeIn(sec)
                  .parent('li').addClass('on')
                  .siblings().removeClass('on').find('.event-area')
                  .fadeOut(sec);
              if(index == leng){
                idx = 0;
                fadeFn (select, idx, 2000);
              }
            }
					}// fire end
				};// return end
{'fraction_non_alphanumeric': 0.1758093525179856, 'fraction_numerical': 0.016636690647482015, 'mean_word_length': 1.3244514106583072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4531989', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1203, 'n_words': 211}