<commit_before>(function($) {

	$.fn.navigationMenu = function() {

		var isiPad = navigator.userAgent.toLowerCase().indexOf("ipad");

		if(isiPad > -1){

			console.log('ipad');

  		}else{

  			console.log('web');

  		}


		$('.navLinksContainer li>a').click(function(){

			$(this).parent().addClass('active');

			if($(this).next().length == 1){

				if($('.navBack').length == 0){

					$(this).addClass('hasChildren');

					$( ".hasChildren" ).after( "  <a class='navBack' href='#'>Back</a>" );

				}

				$('.navLinksContainer li').each(function(){

					if(!$(this).hasClass('active')){

						if(!$(this).parent().hasClass('children')){

							$(this).animate({

								'marginLeft': '-70px'

							},200,function(){

								$(this).hide();

								$('.children').show();

								$('.children').animate({

									'marginLeft':'10px'

								},400);

							});

						}

					}

				});

			}

		});

		$(document).on("click", ".navBack",function() {

			$('.navBack').remove();

			$('.children').animate({

				'marginLeft':'-120px'

			},300,function(){

				$('.hasChildren').removeClass('hasChildren');

				$('.children').hide();

				$('.navLinksContainer li').each(function(){

					if(!$(this).hasClass('active')){

						if(!$(this).parent().hasClass('children')){

							$(this).show();

							$(this).animate({

								'marginLeft': '0px'

							},200,function(){

								$('.navLinksContainer li').removeClass('active');

							});

						}

					}

				});

			});

		});

	}	

})(jQuery);<commit_msg>udpated animation<commit_after>(function($) {

	$.fn.navigationMenu = function() {

		var isiPad = navigator.userAgent.toLowerCase().indexOf("ipad");

		if(isiPad > -1){

			console.log('ipad');

  		}else{

  			console.log('web');

  		}

  		var heightAdjust = 0;

		$('.navLinksContainer li>a').click(function(){

			$(this).parent().addClass('active');

			if($(this).next().length == 1){

				if($('.navBack').length == 0){

					$(this).addClass('hasChildren');

					$( ".hasChildren" ).after( "  <a class='navBack' href='#'>Back</a>" );

				}

				$('.navLinksContainer li').each(function(){

					var height = $(this).height();

					if(!$(this).hasClass('active')){

						if(!$(this).parent().hasClass('children')){

							$(this).animate({

								'marginLeft': '-70px'

							},200,function(){	

								var x = $('.active').index();

								heightAdjust = height * x;

								$('.active').animate({

									'marginTop':'-'+heightAdjust+'px'

								},300,function(){

									$('.active .children').show();

									$('.active .children').animate({

										'marginLeft':'10px'

									},400);

								});

							});

						}

					}

				});

			}

		});

		$(document).on("click", ".navBack",function() {

			$('.navBack').remove();

			$('.children').animate({

				'marginLeft':'-120px'

			},300,function(){

				$('.active').animate({

					'marginTop':'0px'

				},300,function(){

					$('.hasChildren').removeClass('hasChildren');

					$('.children').hide();

					$('.navLinksContainer li').each(function(){

						if(!$(this).hasClass('active')){

							if(!$(this).parent().hasClass('children')){

								$(this).show();

								$(this).animate({

									'marginLeft': '0px'

								},200,function(){

									$('.navLinksContainer li').removeClass('active');

								});

							}

						}

					});
				});

			});

		});

	}	

})(jQuery);
{'fraction_non_alphanumeric': 0.2490544079138784, 'fraction_numerical': 0.01571137620017457, 'mean_word_length': 2.357421875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '2695530', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1109, 'n_words': 133}