<commit_before>﻿// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#include "StdAfx.h"
#include "MainApp.h"
#include "MainDlg.h"
#include "PresetsDlg.h"
#include "AboutDlg.h"
#include "FormatsDlg.h"
#include "ToolsDlg.h"

#define WM_TRAY (WM_USER + 0x10)
#define IDC_STATUSBAR 1500

#define IDC_FOLDERTREE          0x3741
#define IDC_TITLE               0x3742
#define IDC_STATUSTEXT          0x3743
#define IDC_CHECK_RECURSE       0x3744
#define IDC_BROWSE_NEW_FOLDER   0x3746

#define ID_LANGUAGE_MIN 2000
#define ID_LANGUAGE_MAX 2999

namespace dialogs
{
    static CString szLastOutputBrowse;
    static CString szLastDirectoryBrowse;
    static WNDPROC lpOldWindowProc;
    static bool bRecurseChecked = true;
    static HWND hWndBtnRecurse = nullptr;
    static HWND hWndStaticText = nullptr;

    LRESULT CALLBACK BrowseDlgWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
    {
        if (uMsg == WM_COMMAND)
        {
            if ((HIWORD(wParam) == BN_CLICKED) && ((HWND)lParam == hWndBtnRecurse))
                bRecurseChecked = ::SendMessage(hWndBtnRecurse, BM_GETCHECK, (WPARAM)0, (LPARAM)0) == BST_CHECKED;
        }
        return ::CallWindowProc(lpOldWindowProc, hWnd, uMsg, wParam, lParam);
    }

    int CALLBACK BrowseCallbackAddDir(HWND hWnd, UINT uMsg, LPARAM lp, LPARAM pData)
    {
        if (uMsg == BFFM_INITIALIZED)
        {
            CMainDlg* pDlg = (CMainDlg*)pData;<commit_msg>Formatted defines<commit_after>﻿// Copyright (c) <NAME>oltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#include "StdAfx.h"
#include "MainApp.h"
#include "MainDlg.h"
#include "PresetsDlg.h"
#include "AboutDlg.h"
#include "FormatsDlg.h"
#include "ToolsDlg.h"

#define IDC_STATUSBAR           1500
#define IDC_FOLDERTREE          0x3741
#define IDC_TITLE               0x3742
#define IDC_STATUSTEXT          0x3743
#define IDC_CHECK_RECURSE       0x3744
#define IDC_BROWSE_NEW_FOLDER   0x3746
#define ID_LANGUAGE_MIN         2000
#define ID_LANGUAGE_MAX         2999

namespace dialogs
{
    static CString szLastOutputBrowse;
    static CString szLastDirectoryBrowse;
    static WNDPROC lpOldWindowProc;
    static bool bRecurseChecked = true;
    static HWND hWndBtnRecurse = nullptr;
    static HWND hWndStaticText = nullptr;

    LRESULT CALLBACK BrowseDlgWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
    {
        if (uMsg == WM_COMMAND)
        {
            if ((HIWORD(wParam) == BN_CLICKED) && ((HWND)lParam == hWndBtnRecurse))
                bRecurseChecked = ::SendMessage(hWndBtnRecurse, BM_GETCHECK, (WPARAM)0, (LPARAM)0) == BST_CHECKED;
        }
        return ::CallWindowProc(lpOldWindowProc, hWnd, uMsg, wParam, lParam);
    }

    int CALLBACK BrowseCallbackAddDir(HWND hWnd, UINT uMsg, LPARAM lp, LPARAM pData)
    {
        if (uMsg == BFFM_INITIALIZED)
        {
            CMainDlg* pDlg = (CMainDlg*)pData;
{'fraction_non_alphanumeric': 0.08758169934640522, 'fraction_numerical': 0.026470588235294117, 'mean_word_length': 3.281118881118881, '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': '3914427', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1091, 'n_words': 264}