<commit_before>#include <proto/exec.h>
#include <proto/amisslmaster.h>
#include <libraries/amisslmaster.h>
#include <stdio.h>

int main(void)
{
	struct Library *AmiSSLMasterBase;

#if 0
	struct Library *base1;
	struct Library *base2;

	base1 = OpenLibrary("amisslmaster.library", 0);
	base2 = OpenLibrary("amisslmaster.library", 0);

	if(base1 != NULL && base2 != NULL)
	{
		AmiSSLMasterBase = base1;
		printf("checking base %08lx...", AmiSSLMasterBase); kprintf("checking base %08lx...\n", AmiSSLMasterBase);
		InitAmiSSLMaster(AMISSL_V097g, TRUE); kprintf(" done\n");
		printf(" done\n");

		AmiSSLMasterBase = base2;
		printf("checking base %08lx...", AmiSSLMasterBase); kprintf("checking base %08lx...\n", AmiSSLMasterBase);
		InitAmiSSLMaster(AMISSL_V2, TRUE); kprintf(" done\n");
		printf(" done\n");
	}

	if(base1 != NULL)
		CloseLibrary(base1);

	if(base2 != NULL)
		CloseLibrary(base2);
#endif

#if 1
	if((AmiSSLMasterBase = OpenLibrary("amisslmaster.library", 0)) != NULL)
	{
		printf("checking base %08lx...", AmiSSLMasterBase); kprintf("checking base %08lx...\n", AmiSSLMasterBase);
		InitAmiSSLMaster(AMISSL_V097g, TRUE);
		printf(" done\n"); kprintf(" done\n");
		CloseLibrary(AmiSSLMasterBase);
	}
#endif

	return 0;
}<commit_msg>* src/mastertest.c: print out the obtained library bases before doing the actual tests.<commit_after>#include <proto/exec.h>
#include <proto/amisslmaster.h>
#include <libraries/amisslmaster.h>
#include <stdio.h>

int main(void)
{
	struct Library *AmiSSLMasterBase;

#if 1
{
	printf("single base test\n");
	AmiSSLMasterBase = OpenLibrary("amisslmaster.library", 0);
	printf("base %08lx\n", AmiSSLMasterBase);
	if(AmiSSLMasterBase != NULL)
	{
		printf("checking base %08lx...", AmiSSLMasterBase);
		InitAmiSSLMaster(AMISSL_V097g, TRUE);
		printf(" done\n");
		CloseLibrary(AmiSSLMasterBase);
	}
	printf("single base test finished\n");
}
#endif

#if 1
{
	struct Library *base1;
	struct Library *base2;

	printf("multi base test\n");
	base1 = OpenLibrary("amisslmaster.library", 0);
	printf("base1 %08lx\n", base1);
	base2 = OpenLibrary("amisslmaster.library", 0);
	printf("base2 %08lx\n", base2);

	if(base1 != NULL && base2 != NULL)
	{
		AmiSSLMasterBase = base1;
		printf("checking base %08lx...", AmiSSLMasterBase);
		InitAmiSSLMaster(AMISSL_V097g, TRUE);
		printf(" done\n");

		AmiSSLMasterBase = base2;
		printf("checking base %08lx...", AmiSSLMasterBase);
		InitAmiSSLMaster(AMISSL_V2, FALSE);
		printf(" done\n");
	}

	if(base1 != NULL)
		CloseLibrary(base1);

	if(base2 != NULL)
		CloseLibrary(base2);
	printf("multi base test finished\n");
}
#endif

	return 0;
}
{'fraction_non_alphanumeric': 0.16258607498087221, 'fraction_numerical': 0.029839326702371844, 'mean_word_length': 5.196682464454977, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5853790', 'n_tokens_mistral': 1075, 'n_tokens_neox': 975, 'n_words': 206}