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

namespace WebImageDownloader
{
    class Model
    {
        private static Model instance = null;

        private Model()
        {
            // Prevent creation
        }

        public static Model GetInstance()
        {
            if (instance == null)
            {
                instance = new Model();
            }

            return instance;
        }
    }
}<commit_msg>Adds method for downloading an URL<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebImageDownloader
{
    class Model
    {
        private static Model _instance = null;

        private Model()
        {
            // Prevent creation
        }

        public static Model GetInstance()
        {
            return _instance ?? (_instance = new Model());
        }

        public void DownloadUrl(string url)
        {
            var uri = new Uri(url);
            // Get the name to use when creating directory for this page
            var name = uri.Segments[uri.Segments.Length - 1];
        }
    }
}
{'fraction_non_alphanumeric': 0.08042242079610074, 'fraction_numerical': 0.0008123476848090983, 'mean_word_length': 1.7256637168141593, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '329767', 'n_tokens_mistral': 317, 'n_tokens_neox': 307, 'n_words': 95}