<commit_before>/* bgdownload.h */

#ifndef BGDOWNLOAD_H
#define BGDOWNLOAD_H

#ifdef  __cplusplus
extern "C" {
#endif

#define _DEBUG

#ifdef _DEBUG
#define _DBG_(x)	x
#else
#define _DBG_(x)
#endif

#define bgdn_log(fmt, args...) {										\
	_DBG_(																\
		printf("%s:%d: " fmt, __FILE__, __LINE__, ##args);				\
	)																	\
}

#define BGDOWNLOAD_CACHE_PARENT_PATH    "/tmp"
#define BGDOWNLOAD_CACHE_PATH "/tmp/irods_bgdncache"

#define MAX_NUM_OF_CACHES   5
#define MAX_SIZE_OF_CACHES  (1024 * 1024 * 1024)

#define MAX_BG_THREADS  5

#define DOWNLOAD_THREAD_RUNNING    1
#define DOWNLOAD_THREAD_IDLE    0

// public functions
int bgdnInitialize();
int bgdnUninitialize();

int bgdnDownload(const char *path, struct stat *stbuf);
int bgdnHasCache(const char *inPath);
int bgdnGetCachePath(const char *inPath, char *cachePath);

#ifdef  __cplusplus
}
#endif

#endif	/* BGDOWNLOAD_H */<commit_msg>Fixed configuration values for cache size<commit_after>/* bgdownload.h */

#ifndef BGDOWNLOAD_H
#define BGDOWNLOAD_H

#ifdef  __cplusplus
extern "C" {
#endif

#define _DEBUG

#ifdef _DEBUG
#define _DBG_(x)	x
#else
#define _DBG_(x)
#endif

#define bgdn_log(fmt, args...) {										\
	_DBG_(																\
		printf("%s:%d: " fmt, __FILE__, __LINE__, ##args);				\
	)																	\
}

#define BGDOWNLOAD_CACHE_PARENT_PATH    "/tmp"
#define BGDOWNLOAD_CACHE_PATH "/tmp/irods_bgdncache"

#define MAX_NUM_OF_CACHES   30
#define MAX_SIZE_OF_CACHES  (1024 * 1024 * 1024)

#define MAX_BG_THREADS  5

#define DOWNLOAD_THREAD_RUNNING    1
#define DOWNLOAD_THREAD_IDLE    0

// public functions
int bgdnInitialize();
int bgdnUninitialize();

int bgdnDownload(const char *path, struct stat *stbuf);
int bgdnHasCache(const char *inPath);
int bgdnGetCachePath(const char *inPath, char *cachePath);

#ifdef  __cplusplus
}
#endif

#endif	/* BGDOWNLOAD_H */
{'fraction_non_alphanumeric': 0.11152815013404825, 'fraction_numerical': 0.01769436997319035, 'mean_word_length': 3.859375, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2210414', 'n_tokens_mistral': 813, 'n_tokens_neox': 719, 'n_words': 169}