<commit_before>﻿using System;
using System.Collections.Generic;
using HarryPotterUnity.Cards;
using UnityEngine;
using Random = UnityEngine.Random;

namespace HarryPotterUnity.Tween
{
    public class ShuffleDeckTween : ITweenObject
    {
        private readonly IEnumerable<BaseCard> _cards;

        private readonly Func<BaseCard, Vector3> _getTargetPosition;

        public float CompletionTime { get { return 2f; } }
        public float TimeUntilNextTween { get { return 0f; } }

        public ShuffleDeckTween(IEnumerable<BaseCard> cards, Func<BaseCard, Vector3> getTargetPosition)
        {
            _cards = cards;
            _getTargetPosition = getTargetPosition;
        }

        public void ExecuteTween()
        {
            foreach (var card in _cards)
            {
                int cardIndex = ((IList<BaseCard>) _cards).IndexOf(card);
                var targetPosition = new Vector3( card.transform.position.x, 
                                                  card.transform.position.y, 
                                                 (card.transform.parent.position.z + 16f) - cardIndex * 0.2f);

                var midPoint = Vector3.MoveTowards(card.transform.position, Camera.main.transform.position, 80f);
                midPoint.z = card.transform.position.z;
                
                iTween.MoveTo(card.gameObject, iTween.Hash("time", 0.5f,
                                                           "path", new[] {midPoint, targetPosition},
                                                           "easetype", iTween.EaseType.EaseInOutSine,
                                                           "delay", Random.Range(0f, 1.5f)
                                                           ));
            }
        }
    }
}
<commit_msg>remove unused field<commit_after>﻿using System;
using System.Collections.Generic;
using HarryPotterUnity.Cards;
using UnityEngine;
using Random = UnityEngine.Random;

namespace HarryPotterUnity.Tween
{
    public class ShuffleDeckTween : ITweenObject
    {
        private readonly IEnumerable<BaseCard> _cards;
        
        public float CompletionTime { get { return 2f; } }
        public float TimeUntilNextTween { get { return 0f; } }

        public ShuffleDeckTween(IEnumerable<BaseCard> cards, Func<BaseCard, Vector3> getTargetPosition)
        {
            _cards = cards;
        }

        public void ExecuteTween()
        {
            foreach (var card in _cards)
            {
                int cardIndex = ((IList<BaseCard>) _cards).IndexOf(card);
                var targetPosition = new Vector3( card.transform.position.x, 
                                                  card.transform.position.y, 
                                                 (card.transform.parent.position.z + 16f) - cardIndex * 0.2f);

                var midPoint = Vector3.MoveTowards(card.transform.position, Camera.main.transform.position, 80f);
                midPoint.z = card.transform.position.z;
                
                iTween.MoveTo(card.gameObject, iTween.Hash("time", 0.5f,
                                                           "path", new[] {midPoint, targetPosition},
                                                           "easetype", iTween.EaseType.EaseInOutSine,
                                                           "delay", Random.Range(0f, 1.5f)
                                                           ));
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.08266360505166476, 'fraction_numerical': 0.00947187141216992, 'mean_word_length': 1.3611111111111112, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6644141', 'n_tokens_mistral': 880, 'n_tokens_neox': 829, 'n_words': 173}