<commit_before>#pragma once
#include <windows.h>
#include <stdio.h>
#include "winmenu2.h"

char Name[] = "Wireless communication portal";
LPCSTR	lpszCommName = "COM5";
char comPort[10];//Currently selected COMM PORT
HANDLE hComm;
char str[80] = "";
bool connected = false;
OPENFILENAME ofn;// Structure that contains attachment file info
char szFile[100];
LPTSTR filePath;//String that holds path of the browsed file
HINSTANCE hInstance;

//Function prototypes
void generateViews(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
void selectCommPort(HANDLE, LPCSTR, HWND, bool&);
void connect(HANDLE&, LPCSTR, bool&);
void disconnect(HANDLE&, bool&, LPCSTR);
void createUIWindows(HWND);
void attach(void);
void availableCOM(HWND);
INT_PTR CALLBACK comDialogProc(HWND, UINT, WPARAM, LPARAM);

//Window handlers and variables
static const int WIN_LENGTH = 500;		  // Main window length
static const int WIN_WIDTH = 650;		  // Main window height

//DATA MEMBERS
static const DWORD BUFF_SIZE = 256;
static const DWORD TEXTBOX_HEIGTH = 200;
static const DWORD TEXTBOX_WIDTH = 400;
static const DWORD USERINPUT_TEXTBOX_START_X = 190;
static const DWORD USERINPUT_TEXTBOX_START_Y = 10;
static const DWORD READINPUT_TEXTBOX_START_X = 190;
static const DWORD READINPUT_TEXTBOX_START_Y = 220;
static const DWORD BUTTON_WIDTH = 100;
static const DWORD BUTTON_HEIGHT = 30;
static const DWORD DISCONNECT_BUTTON_X = 50;
static const DWORD DISCONNECT_BUTTON_Y = 150;
static const DWORD CONNECT_BUTTON_X = 50;
static const DWORD CONNECT_BUTTON_Y = 250;

HDC hdc;
TEXTMETRIC tm;
HWND userInputTextBox;
HWND readInputTextBox;
HWND hConnectButton;
HWND hDisconnectButton;
HWND browse;<commit_msg>TM: updated const variables for buttons<commit_after>#pragma once
#include <windows.h>
#include <stdio.h>
#include "winmenu2.h"

char Name[] = "Wireless communication portal";
LPCSTR	lpszCommName = "COM5";
char comPort[10];//Currently selected COMM PORT
HANDLE hComm;
char str[80] = "";
bool connected = false;
OPENFILENAME ofn;// Structure that contains attachment file info
char szFile[100];
LPTSTR filePath;//String that holds path of the browsed file
HINSTANCE hInstance;

//Function prototypes
void generateViews(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
void selectCommPort(HANDLE, LPCSTR, HWND, bool&);
void connect(HANDLE&, LPCSTR, bool&);
void disconnect(HANDLE&, bool&, LPCSTR);
void createUIWindows(HWND);
void attach(void);
void availableCOM(HWND);
INT_PTR CALLBACK comDialogProc(HWND, UINT, WPARAM, LPARAM);

//Window handlers and variables
static const int WIN_LENGTH = 500;		  // Main window length
static const int WIN_WIDTH = 650;		  // Main window height

//DATA MEMBERS
static const DWORD BUFF_SIZE = 256;
static const DWORD TEXTBOX_HEIGTH = 200;
static const DWORD TEXTBOX_WIDTH = 350;
static const DWORD USERINPUT_TEXTBOX_START_X = 240;
static const DWORD USERINPUT_TEXTBOX_START_Y = 10;
static const DWORD READINPUT_TEXTBOX_START_X = 240;
static const DWORD READINPUT_TEXTBOX_START_Y = 220;
static const DWORD BUTTON_WIDTH = 100;
static const DWORD BUTTON_HEIGHT = 30;
static const DWORD CONNECT_BUTTON_X = 50;
static const DWORD CONNECT_BUTTON_Y = 150;
static const DWORD DISCONNECT_BUTTON_X = 50;
static const DWORD DISCONNECT_BUTTON_Y = 250;
static const DWORD ATTACH_BUTTON_X = 50;
static const DWORD ATTACH_BUTTON_Y = 350;


HDC hdc;
TEXTMETRIC tm;
HWND userInputTextBox;
HWND readInputTextBox;
HWND hConnectButton;
HWND hDisconnectButton;
HWND browse;
{'fraction_non_alphanumeric': 0.08300057045065602, 'fraction_numerical': 0.029948659440958356, 'mean_word_length': 6.113590263691684, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2441007', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1121, 'n_words': 386}