<commit_before>﻿using System;
using Android.Views.Animations;
using Android.Views;
using Android.Animation;
using System.Collections.Generic;

namespace EightBot.AnimExt.Droid
{
	public static class AnimationExtensions
	{

		public const long DefaultAnimationDuration = 1200;

		public static ValueAnimator Fade(this View view, FadeType fadeType = FadeType.In, long duration = DefaultAnimationDuration){

			ObjectAnimator animation = null;

			switch (fadeType) {
			case FadeType.In:
				animation = ObjectAnimator.OfFloat (view, "alpha", 1f, 0f);
				break;
			case FadeType.Out:
				animation = ObjectAnimator.OfFloat (view, "alpha", 1f, 0f);
				break;
			}

			animation.SetDuration (duration);

			animation.Start ();

			return animation;
		}

		public static ValueAnimator Spin(this View view, SpinDirection spinDirection = SpinDirection.Clockwise, long duration = DefaultAnimationDuration, ITimeInterpolator interpolator = null){
<commit_msg>Fixed fade in<commit_after>﻿using System;
using Android.Views.Animations;
using Android.Views;
using Android.Animation;
using System.Collections.Generic;

namespace EightBot.AnimExt.Droid
{
	public static class AnimationExtensions
	{

		public const long DefaultAnimationDuration = 1200;

		public static ValueAnimator Fade(this View view, FadeType fadeType = FadeType.In, long duration = DefaultAnimationDuration){

			ObjectAnimator animation = null;

			switch (fadeType) {
			case FadeType.In:
				animation = ObjectAnimator.OfFloat (view, "alpha", 0f, 1f);
				break;
			case FadeType.Out:
				animation = ObjectAnimator.OfFloat (view, "alpha", 1f, 0f);
				break;
			}

			animation.SetDuration (duration);

			animation.Start ();

			return animation;
		}

		public static ValueAnimator Spin(this View view, SpinDirection spinDirection = SpinDirection.Clockwise, long duration = DefaultAnimationDuration, ITimeInterpolator interpolator = null){

{'fraction_non_alphanumeric': 0.08508403361344538, 'fraction_numerical': 0.008403361344537815, 'mean_word_length': 4.686567164179104, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4660118', 'n_tokens_mistral': 635, 'n_tokens_neox': 528, 'n_words': 154}