<commit_before>TOP_DIR = ..

DRIVER_DIRS = drivers/hsql

SUBDIRS = dbdirect $(DRIVER_DIRS)

include $(TOP_DIR)/rules.mk

GHCFLAGS += -package-name haskelldb

HASKELLDB_MODULES = \
	  Database.HaskellDB.HDBRec \
	  Database.HaskellDB.FieldType \
	  Database.HaskellDB.PrimQuery \
	  Database.HaskellDB.Sql \
	  Database.HaskellDB.Query \
	  Database.HaskellDB.HDBRecUtils \
	  Database.HaskellDB.Optimize \
	  Database.HaskellDB.Database

DATABASE_MODULES = Database.HaskellDB

MODULES = $(HASKELLDB_MODULES) $(DATABASE_MODULES)

DATABASE_SRC = \
      $(patsubst %, $(BUILD_DIR)/%.hs, $(subst .,/,$(DATABASE_MODULES)))

HASKELLDB_SRC = \
      $(patsubst %, $(BUILD_DIR)/%.hs, $(subst .,/,$(HASKELLDB_MODULES)))

SRC = $(HASKELLDB_SRC) $(DATABASE_SRC)

OBJS = $(patsubst %.hs, %.o, $(SRC))

DRIVERS_OBJS = $(patsubst %, $(BUILD_DIR)/Database/HaskellDB/%/*.o, $(DRIVERS))

ALL_COMPILERS = $(addprefix all-,$(COMPILERS))

.PHONY: $(ALL_COMPILERS)

all: $(ALL_COMPILERS) $(DRIVER_DIRS) dbdirect

all-ghc: $(BUILD_DIR)/libHShdb.a $(BUILD_DIR)/HShdb.o

all-hugs: $(SRC) 

$(BUILD_DIR)/libHShdb.a: $(OBJS) $(DRIVER_DIRS)
	$(AR) -rc $@ $(filter %.o, $^) $(DRIVERS_OBJS)<commit_msg>removed HShdb.o depencency<commit_after>TOP_DIR = ..

DRIVER_DIRS = drivers/hsql

SUBDIRS = dbdirect $(DRIVER_DIRS)

include $(TOP_DIR)/rules.mk

GHCFLAGS += -package-name haskelldb

HASKELLDB_MODULES = \
	  Database.HaskellDB.HDBRec \
	  Database.HaskellDB.FieldType \
	  Database.HaskellDB.PrimQuery \
	  Database.HaskellDB.Sql \
	  Database.HaskellDB.Query \
	  Database.HaskellDB.HDBRecUtils \
	  Database.HaskellDB.Optimize \
	  Database.HaskellDB.Database

DATABASE_MODULES = Database.HaskellDB

MODULES = $(HASKELLDB_MODULES) $(DATABASE_MODULES)

DATABASE_SRC = \
      $(patsubst %, $(BUILD_DIR)/%.hs, $(subst .,/,$(DATABASE_MODULES)))

HASKELLDB_SRC = \
      $(patsubst %, $(BUILD_DIR)/%.hs, $(subst .,/,$(HASKELLDB_MODULES)))

SRC = $(HASKELLDB_SRC) $(DATABASE_SRC)

OBJS = $(patsubst %.hs, %.o, $(SRC))

DRIVERS_OBJS = $(patsubst %, $(BUILD_DIR)/Database/HaskellDB/%/*.o, $(DRIVERS))

ALL_COMPILERS = $(addprefix all-,$(COMPILERS))

.PHONY: $(ALL_COMPILERS)

all: $(ALL_COMPILERS) $(DRIVER_DIRS) dbdirect

all-ghc: $(BUILD_DIR)/libHShdb.a

all-hugs: $(SRC) 

$(BUILD_DIR)/libHShdb.a: $(OBJS) $(DRIVER_DIRS)
	$(AR) -rc $@ $(filter %.o, $^) $(DRIVERS_OBJS)
{'fraction_non_alphanumeric': 0.17777777777777778, 'fraction_numerical': 0.0, 'mean_word_length': 4.456876456876457, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2300364', 'n_tokens_mistral': 1023, 'n_tokens_neox': 998, 'n_words': 138}