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

namespace Project.Code
{
    //validation class with methods to validate string (null or empty), operation name and GPA's appropriate data type
    public class Validation
    {
        public static string Validation(string s)
        {
            if (String.IsNullOrEmpty(s))
                return "is null or empty";
            else
            { }
        }
    }
}<commit_msg>version 1.3<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Project.Code
{
    //validation class with methods to validate string (null or empty), operation name and GPA's appropriate data type
    public class Validation
    {
        public static bool ValidateString(string s)
        {
            if (string.IsNullOrEmpty(s))
                return true;
            else
                return false;
        }

        public static bool ValidateGpa(string gpa)
        {
            bool result;
            double number;
            result = double.TryParse(gpa, out number);
            return result;
        }

        public static bool ValidateOperation(string operation)
        {
            if (operation != Operations.Enlist && operation != Operations.Display)
                return true;
            else
                return false;
        }
    }
}
{'fraction_non_alphanumeric': 0.07128027681660899, 'fraction_numerical': 0.001384083044982699, 'mean_word_length': 1.874751491053678, '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': '5800269', 'n_tokens_mistral': 357, 'n_tokens_neox': 351, 'n_words': 116}