<commit_before>using System;
using System.IO;
using Paket.Bootstrapper.HelperProxies;

namespace Paket.Bootstrapper.DownloadStrategies
{
    internal class TemporarilyIgnoreUpdatesDownloadStrategy : IHaveEffectiveStrategy
    {
        private readonly int _maxFileAgeOfPaketExeInMinutes;
        private readonly string _target;
        private readonly IFileProxy _fileProxy;

        public TemporarilyIgnoreUpdatesDownloadStrategy(
            IDownloadStrategy effectiveStrategy, 
            IFileProxy fileProxy,
            string target,
            int maxFileAgeOfPaketExeInMinutes)
        {
            if (effectiveStrategy == null)
                throw new ArgumentException("TemporarilyIgnoreUpdatesDownloadStrategy needs a non-null effective strategy");

            if (string.IsNullOrEmpty(target))
                throw new ArgumentException("TemporarilyIgnoreUpdatesDownloadStrategy needs a non-empty target");
            
            _effectiveStrategy = effectiveStrategy;
            _maxFileAgeOfPaketExeInMinutes = maxFileAgeOfPaketExeInMinutes;
            _fileProxy = fileProxy;

            _target = target;
        }

        public string GetLatestVersion (bool ignorePrerelease)
        {
            var targetVersion = string.Empty;
            try 
            {
                targetVersion = _fileProxy.GetLocalFileVersion(_target);
            } 
            catch (FileNotFoundException) 
            {
                targetVersion = string.Empty;
            }

            if (!IsOlderThanMaxFileAge())
            {
                ConsoleImpl.WriteDebug("Don't looking for new version, as last version is not older tha {0} minutes", _maxFileAgeOfPaketExeInMinutes);
                return targetVersion;<commit_msg>Minor: spelling on update message<commit_after>using System;
using System.IO;
using Paket.Bootstrapper.HelperProxies;

namespace Paket.Bootstrapper.DownloadStrategies
{
    internal class TemporarilyIgnoreUpdatesDownloadStrategy : IHaveEffectiveStrategy
    {
        private readonly int _maxFileAgeOfPaketExeInMinutes;
        private readonly string _target;
        private readonly IFileProxy _fileProxy;

        public TemporarilyIgnoreUpdatesDownloadStrategy(
            IDownloadStrategy effectiveStrategy, 
            IFileProxy fileProxy,
            string target,
            int maxFileAgeOfPaketExeInMinutes)
        {
            if (effectiveStrategy == null)
                throw new ArgumentException("TemporarilyIgnoreUpdatesDownloadStrategy needs a non-null effective strategy");

            if (string.IsNullOrEmpty(target))
                throw new ArgumentException("TemporarilyIgnoreUpdatesDownloadStrategy needs a non-empty target");
            
            _effectiveStrategy = effectiveStrategy;
            _maxFileAgeOfPaketExeInMinutes = maxFileAgeOfPaketExeInMinutes;
            _fileProxy = fileProxy;

            _target = target;
        }

        public string GetLatestVersion (bool ignorePrerelease)
        {
            var targetVersion = string.Empty;
            try 
            {
                targetVersion = _fileProxy.GetLocalFileVersion(_target);
            } 
            catch (FileNotFoundException) 
            {
                targetVersion = string.Empty;
            }

            if (!IsOlderThanMaxFileAge())
            {
                ConsoleImpl.WriteDebug("Don't look for new version, as last version is not older than {0} minutes", _maxFileAgeOfPaketExeInMinutes);
                return targetVersion;
{'fraction_non_alphanumeric': 0.051607445008460234, 'fraction_numerical': 0.0005640157924421884, 'mean_word_length': 2.239269406392694, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4944336', 'n_tokens_mistral': 897, 'n_tokens_neox': 840, 'n_words': 195}