<commit_before># in HSQL_DIR there should be a directory (or a symlink to a directory)
# called Database that contains the compiled HSQL library
HSQL_DIR=.

LDFLAGS=-L$(HSQL_DIR)/Database -lHSsql -lodbc
CFLAGS=
GHC=ghc
GHCFLAGS=-fglasgow-exts -fallow-overlapping-instances -i../.. -i$(HSQL_DIR)

HUGS=hugs
RUNHUGS=runhugs
HUGSFLAGS=-98 +o -P:../..:$(HSQL_DIR)


.PHONY: clean

default all: test

#
# HUGS
#

hugsload: $(HSQL_DIR)/Database/ODBC/HSQL.hs  $(HSQL_DIR)/Database/ODBC/HSQL.so
	$(HUGS) $(HUGSFLAGS) HSQL_driver.hs

hugstest: $(HSQL_DIR)/Database/ODBC/HSQL.hs  $(HSQL_DIR)/Database/ODBC/HSQL.so
	$(RUNHUGS) $(HUGSFLAGS) test.hs

#
# GHC
#

%.o: %.hs
	$(GHC) $(GHCFLAGS) -c $< -o $@

%.hi: %.o
	@\:

HSQL_driver.o: $(HSQL_DIR)/Database/ODBC/HSQL.hi

test.o: HSQL_driver.hi

$(HSQL_DIR)/Database/libHSsql.a: HSQL
	$(MAKE) -f Makefile.HSQL HSQL/libHSsql.a

test: $(HSQL_DIR)/Database/libHSsql.a test.o HSQL_driver.o
	$(GHC) $(GHCFLAGS) -o $@ $^ $(LDFLAGS) -L../.. -lHDB

#
# Generic
#

HSQL Database HSQL/% Database/%: HSQL-desc.patch HSQL-hugs.patch
	$(MAKE) -f Makefile.HSQL HSQL Database

clean:
	-rm -f test *.so *.o *.hi
	$(MAKE) -f Makefile.HSQL clean
<commit_msg>Changes hugs targets to load test program<commit_after># in HSQL_DIR there should be a directory (or a symlink to a directory)
# called Database that contains the compiled HSQL library
HSQL_DIR=.

LDFLAGS=-L$(HSQL_DIR)/Database -lHSsql -lodbc
CFLAGS=
GHC=ghc
GHCFLAGS=-fglasgow-exts -fallow-overlapping-instances -i../.. -i$(HSQL_DIR)

HUGS=hugs
RUNHUGS=runhugs
HUGSFLAGS=-98 +o -P:../..:$(HSQL_DIR)


.PHONY: clean

default all: test

#
# HUGS
#

hugsload: $(HSQL_DIR)/Database/ODBC/HSQL.hs $(HSQL_DIR)/Database/ODBC/HSQL.so
	$(HUGS) $(HUGSFLAGS) test.hs

hugstest: $(HSQL_DIR)/Database/ODBC/HSQL.hs $(HSQL_DIR)/Database/ODBC/HSQL.so
	$(RUNHUGS) $(HUGSFLAGS) test.hs

#
# GHC
#

%.o: %.hs
	$(GHC) $(GHCFLAGS) -c $< -o $@

%.hi: %.o
	@\:

HSQL_driver.o: $(HSQL_DIR)/Database/ODBC/HSQL.hi

test.o: HSQL_driver.hi

$(HSQL_DIR)/Database/libHSsql.a: HSQL
	$(MAKE) -f Makefile.HSQL HSQL/libHSsql.a

test: $(HSQL_DIR)/Database/libHSsql.a test.o HSQL_driver.o
	$(GHC) $(GHCFLAGS) -o $@ $^ $(LDFLAGS) -L../.. -lHDB

#
# Generic
#

HSQL Database HSQL/% Database/%: HSQL-desc.patch HSQL-hugs.patch
	$(MAKE) -f Makefile.HSQL HSQL Database

clean:
	-rm -f test *.so *.o *.hi
	$(MAKE) -f Makefile.HSQL clean

{'fraction_non_alphanumeric': 0.182201602699283, 'fraction_numerical': 0.001687051876845213, 'mean_word_length': 3.830957230142566, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2539643', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1050, 'n_words': 220}