<commit_before>#
# Makefile for driver to Sedna (Java API)
#

PP = ../..

OUTPUT = out
SRC_PATH = src/ru/ispras/sedna/driver
DOC_PATH = javadoc
JAR_PATH = lib
ERR_PATH = $(PP)/kernel/common/errdbg

VPATH = $(SRC_PATH)

JAVAC   = javac -d $(OUTPUT)
JAVADOC = javadoc -d $(DOC_PATH)

GENERATED = $(SRC_PATH)/ErrorCodes.java $(SRC_PATH)/Debug.java

include $(PP)/Makefile.include


all: $(OUTPUT) $(JAR_PATH)/sednadriver.jar $(DOC_PATH)/index.html
	@echo ===================================================================
	@echo Java Driver Done
	@echo ===================================================================

$(OUTPUT): 
	-$(MKDIR) $(OUTPUT)
	-$(MKDIR) $(JAR_PATH)

$(SRC_PATH)/ErrorCodes.java: $(ERR_PATH)/gen_error_codes.c $(ERR_PATH)/error.codes
	NO_DEP=1; export NO_DEP; $(MAKE) -C $(ERR_PATH) generated
	cp -f $(ERR_PATH)/ErrorCodes.java $(SRC_PATH)

$(SRC_PATH)/Debug.java: Debug.java.m4
	$(M4) -DEL_DEBUG=$(EL_DEBUG) $^ >$@

$(JAR_PATH)/sednadriver.jar: $(GENERATED) \
                             DriverException.java \
                             ResultType.java \
                             NetOps.java \
                             SednaSerializedResult.java \
                             SednaSerializedResultImpl.java \
                             SednaStatement.java \
                             SednaStatementImpl.java \
                             SednaConnection.java \
                             SednaConnectionImpl.java \
                             DatabaseManager.java
	$(JAVAC) $^
	jar cvf $(JAR_PATH)/sednadriver.jar -C $(OUTPUT) ru

$(DOC_PATH)/index.html: $(GENERATED) \
                        ResultType.java \
                        NetOps.java \
                        SednaSerializedResult.java \
                        SednaSerializedResultImpl.java \
                        SednaStatement.java \
                        SednaStatementImpl.java \
                        SednaConnection.java \
                        SednaConnectionImpl.java \
                        DatabaseManager.java
	$(JAVADOC) $^

clean:
	-$(REMOVE) -f $(GENERATED)
	-$(REMOVE) -rf $(OUTPUT)
	-$(REMOVE) -rf $(DOC_PATH)
	-$(REMOVE) -rf $(JAR_PATH)<commit_msg>java driver docs compilation fix, debug info added<commit_after>#
# Makefile for driver to Sedna (Java API)
#

PP = ../..

include $(PP)/Makefile.include

OUTPUT = out
SRC_PATH = src/ru/ispras/sedna/driver
DOC_PATH = javadoc
JAR_PATH = lib
ERR_PATH = $(PP)/kernel/common/errdbg

VPATH = $(SRC_PATH)

JAVAC   = javac -d $(OUTPUT)
JAVADOC = javadoc -d $(DOC_PATH)

GENERATED = $(SRC_PATH)/ErrorCodes.java $(SRC_PATH)/Debug.java

ifeq ("$(ACTIVE_CONFIGURATION)","Debug")
JAVAC += -g
endif

all: $(OUTPUT) $(JAR_PATH)/sednadriver.jar $(DOC_PATH)/index.html
	@echo ===================================================================
	@echo Java Driver Done
	@echo ===================================================================

$(OUTPUT): 
	-$(MKDIR) $(OUTPUT)
	-$(MKDIR) $(JAR_PATH)

$(SRC_PATH)/ErrorCodes.java: $(ERR_PATH)/gen_error_codes.c $(ERR_PATH)/error.codes
	NO_DEP=1; export NO_DEP; $(MAKE) -C $(ERR_PATH) generated
	cp -f $(ERR_PATH)/ErrorCodes.java $(SRC_PATH)

$(SRC_PATH)/Debug.java: Debug.java.m4
	$(M4) -DEL_DEBUG=$(EL_DEBUG) $^ >$@

$(JAR_PATH)/sednadriver.jar: $(GENERATED) \
                             DriverException.java \
                             ResultType.java \
                             NetOps.java \
                             SednaSerializedResult.java \
                             SednaSerializedResultImpl.java \
                             SednaStatement.java \
                             SednaStatementImpl.java \
                             SednaConnection.java \
                             SednaConnectionImpl.java \
                             DatabaseManager.java
	$(JAVAC) $^
	jar cvf $(JAR_PATH)/sednadriver.jar -C $(OUTPUT) ru

$(DOC_PATH)/index.html: $(GENERATED) \
                        DriverException.java \
                        ResultType.java \
                        NetOps.java \
                        SednaSerializedResult.java \
                        SednaSerializedResultImpl.java \
                        SednaStatement.java \
                        SednaStatementImpl.java \
                        SednaConnection.java \
                        SednaConnectionImpl.java \
                        DatabaseManager.java
	$(JAVADOC) $^

clean:
	-$(REMOVE) -f $(GENERATED)
	-$(REMOVE) -rf $(OUTPUT)
	-$(REMOVE) -rf $(DOC_PATH)
	-$(REMOVE) -rf $(JAR_PATH)
{'fraction_non_alphanumeric': 0.17671747294013695, 'fraction_numerical': 0.0013253810470510272, 'mean_word_length': 1.824703680598877, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2056110', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1337, 'n_words': 234}