<commit_before>#include <windows.h>
#include <stdio.h>

BOOL CALLBACK findWindowCallback(HWND hwnd, LPARAM lParam);
BOOL CALLBACK findTextboxCallback(HWND hwnd, LPARAM lParam);

const char *TV_WINDOW_TITLES[] = {
	"TeamViewer QuickSupport",
	"TeamViewer",
	NULL
};

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int iCmdShow) {
	char id[30] = {0};
	int rc;

	EnumWindows(findWindowCallback, (LPARAM) id);

	if (strlen(id) > 0) {
		printf("%s\n", id);
		rc = 0;
	}
	else rc = 1;
<commit_msg>getid.c: fixed some compiler warnings (implicit function decls)<commit_after>#include <windows.h>
#include <stdio.h>

BOOL CALLBACK findWindowCallback(HWND hwnd, LPARAM lParam);
BOOL CALLBACK findTextboxCallback(HWND hwnd, LPARAM lParam);

BOOL isTeamviewerId(char *buff);
BOOL isTeamviewerPassword(char *buff);

const char *TV_WINDOW_TITLES[] = {
	"TeamViewer QuickSupport",
	"TeamViewer",
	NULL
};

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pCmdLine, int iCmdShow) {
	char id[30] = {0};
	int rc;

	EnumWindows(findWindowCallback, (LPARAM) id);

	if (strlen(id) > 0) {
		printf("%s\n", id);
		rc = 0;
	}
	else rc = 1;

{'fraction_non_alphanumeric': 0.12980358667805295, 'fraction_numerical': 0.010247651579846286, 'mean_word_length': 5.511111111111111, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '7157484', 'n_tokens_mistral': 461, 'n_tokens_neox': 447, 'n_words': 115}