<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Microsoft.Win32;
using System.Collections;
using System.Text.RegularExpressions;
using Microsoft.VisualBasic.FileIO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        private DateTime start_timer;

        public Form1()
        {
            InitializeComponent();

            String saved_path = RegistryHelper.GetSetting("Settings", "RootFolder", "");
            if (saved_path == "")
            {
                textBox1.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            }
            else
            {
                textBox1.Text = saved_path;
            }

            showStatus("Stopped", false);
            numericUpDown1.Value = Convert.ToInt32(RegistryHelper.GetSetting("Settings", "Interval", "60"));
            numericUpDown2.Value = Convert.ToInt32(RegistryHelper.GetSetting("Settings", "Cleanup", "10080"));

            GetSettingIntoCheckbox("Settings", "RecycleBin", "1", checkBox2);
        }

        public void HandleAutoStart() {
            GetSettingIntoCheckbox("Settings", "AutoStart", "0", checkBox1);<commit_msg>Remove the button "Purge old images now" from the UI<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Microsoft.Win32;
using System.Collections;
using System.Text.RegularExpressions;
using Microsoft.VisualBasic.FileIO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        private DateTime start_timer;

        public Form1()
        {
            InitializeComponent();

            String saved_path = RegistryHelper.GetSetting("Settings", "RootFolder", "");
            if (saved_path == "")
            {
                textBox1.Text = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            }
            else
            {
                textBox1.Text = saved_path;
            }

            showStatus("Stopped", false);
            numericUpDown1.Value = Convert.ToInt32(RegistryHelper.GetSetting("Settings", "Interval", "60"));
            numericUpDown2.Value = Convert.ToInt32(RegistryHelper.GetSetting("Settings", "Cleanup", "10080"));

            GetSettingIntoCheckbox("Settings", "RecycleBin", "1", checkBox2);

            // hide this button; it's useful only during debugging
            button4.Visible = false;
        }

        public void HandleAutoStart() {
            GetSettingIntoCheckbox("Settings", "AutoStart", "0", checkBox1);
{'fraction_non_alphanumeric': 0.10520760028149191, 'fraction_numerical': 0.017241379310344827, 'mean_word_length': 2.7114882506527413, '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': '6116907', 'n_tokens_mistral': 763, 'n_tokens_neox': 728, 'n_words': 160}