<commit_before>﻿using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace RohlikAPISharp.Tests
{
    [TestClass]
    public class RohlikovacTests
    {
        private string[] GetCredentials()
        {
            string filePath = @"..\..\..\loginPassword.txt";
            if (!File.Exists(filePath))
            {
                throw new FileNotFoundException("Test needs credentials. Create 'loginPassword.txt' in solution root directory. Enter <EMAIL>:yourPassword on first line.");
            }
            var passwordString = File.ReadAllText(filePath);
            return passwordString.Split(':');
        }

        [TestMethod]
        public void RunTest()
        {
            var login = GetCredentials();<commit_msg>Ignore test which requires credentials<commit_after>﻿using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace RohlikAPISharp.Tests
{
    [TestClass]
    public class RohlikovacTests
    {
        private string[] GetCredentials()
        {
            string filePath = @"..\..\..\loginPassword.txt";
            if (!File.Exists(filePath))
            {
                throw new FileNotFoundException("Test needs credentials. Create 'loginPassword.txt' in solution root directory. Enter <EMAIL>:yourPassword on first line.");
            }
            var passwordString = File.ReadAllText(filePath);
            return passwordString.Split(':');
        }

        [TestMethod]
        [Ignore]
        public void RunTest()
        {
            var login = GetCredentials();
{'fraction_non_alphanumeric': 0.10243277848911651, 'fraction_numerical': 0.0, 'mean_word_length': 2.176829268292683, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3082588', 'n_tokens_mistral': 400, 'n_tokens_neox': 387, 'n_words': 96}