<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlackJackSolution.Model
{
    public class Hand
    {
        public List<Card> handCards { set; get; }
        public int score { set; get; }
        public int numberOfCards { set; get; }

        public Hand()
        {

        }
    }
}
<commit_msg>CheckHand<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlackJackSolution.Model
{
    public class Hand
    {
        public List<Card> handCards { set; get; }
        public int total { set; get; }

        public Hand()
        {

        }
        public int CheckHand()
        {
            int handTotal = 0;
                for (int i = 0; i < handCards.Count; i++)
                {

                    handTotal += handCards[i].value;

                    if (handTotal > 21)
                    {
                        for (int j = 0; j < handCards.Count; j++)
                        {
                            if(handCards[j].value == 11)
                            {
                                handCards[j].value = 1;
                                handTotal += handCards[j].value - 11;
                                break;
                            }
                        }
                    }
                }
            this.total = handTotal;
            return total;
        }
        public int getNumberOfCards()
        {
            return handCards.Count;
        }
    }
}

{'fraction_non_alphanumeric': 0.0885997521685254, 'fraction_numerical': 0.006195786864931847, 'mean_word_length': 1.105606258148631, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '2134179', 'n_tokens_mistral': 446, 'n_tokens_neox': 418, 'n_words': 101}