<commit_before>﻿using System;
using System.IO;
using System.IO.Compression;
using System.Threading.Tasks;
using GitMind.ApplicationHandling;
using GitMind.Common.Tracking;
using GitMind.Utils.OsSystem;


namespace GitMind.Utils.Git.Private
{
	[SingleInstance]
	internal class GitEnvironmentService : IGitEnvironmentService
	{
		private static string GitDefaultCmdPath => @"git.exe";

		//private static readonly string GitVersion = "2.16.2.windows.1";
		//private static string gitUri =
		//	"https://github.com/git-for-windows/git/releases/download/v2.16.2.windows.1/MinGit-2.16.2-64-bit.zip";

		// Git releases at: https://github.com/git-for-windows/git/releases/
		//public static readonly string GitVersion = "2.17.1.windows.2";
		//private static string gitUri =
		//	"https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.2/MinGit-2.17.1.2-64-bit.zip";
		public static readonly string GitVersion = "2.20.0.windows.1";
		private static string gitUri =
			"https://github.com/git-for-windows/git/releases/download/v2.20.1.windows.1/MinGit-2.20.1-64-bit.zip";



		private readonly ICmd2 cmd;

		private string gitCmdPath = null;


		public GitEnvironmentService(ICmd2 cmd)
		{
			this.cmd = cmd;
		}


		private static string GitFolderPath => Path.Combine(ProgramInfo.DataFolderPath, "Git", GitVersion);


		private static string GitFolderExePath(string gitFolderPath) =>
			Path.Combine(gitFolderPath, "cmd", "git.exe");<commit_msg>Adjust expected git version<commit_after>﻿using System;
using System.IO;
using System.IO.Compression;
using System.Threading.Tasks;
using GitMind.ApplicationHandling;
using GitMind.Common.Tracking;
using GitMind.Utils.OsSystem;


namespace GitMind.Utils.Git.Private
{
	[SingleInstance]
	internal class GitEnvironmentService : IGitEnvironmentService
	{
		private static string GitDefaultCmdPath => @"git.exe";

		//private static readonly string GitVersion = "2.16.2.windows.1";
		//private static string gitUri =
		//	"https://github.com/git-for-windows/git/releases/download/v2.16.2.windows.1/MinGit-2.16.2-64-bit.zip";

		// Git releases at: https://github.com/git-for-windows/git/releases/
		//public static readonly string GitVersion = "2.17.1.windows.2";
		//private static string gitUri =
		//	"https://github.com/git-for-windows/git/releases/download/v2.17.1.windows.2/MinGit-2.17.1.2-64-bit.zip";
		public static readonly string GitVersion = "2.20.1.windows.1";
		private static string gitUri =
			"https://github.com/git-for-windows/git/releases/download/v2.20.1.windows.1/MinGit-2.20.1-64-bit.zip";



		private readonly ICmd2 cmd;

		private string gitCmdPath = null;


		public GitEnvironmentService(ICmd2 cmd)
		{
			this.cmd = cmd;
		}


		private static string GitFolderPath => Path.Combine(ProgramInfo.DataFolderPath, "Git", GitVersion);


		private static string GitFolderExePath(string gitFolderPath) =>
			Path.Combine(gitFolderPath, "cmd", "git.exe");
{'fraction_non_alphanumeric': 0.1366120218579235, 'fraction_numerical': 0.03483606557377049, 'mean_word_length': 4.067474048442906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4733727', 'n_tokens_mistral': 1100, 'n_tokens_neox': 971, 'n_words': 184}