<commit_before># Java tools Makefile

# "make all"       - Make the various tools
# "make jdep"      - Make the Java class file dependency analyzer tool
# "make clean"     - Remove object and executable files

# C++ compiler
CPP = g++ -g

# The directory where built executables go
BIN_DIR = ./bin

O_DIR = ./o

DIRS = $(BIN_DIR) $(O_DIR)

all: jdep touchp test

jdep: $(DIRS) $(BIN_DIR)/jdep

touchp: $(BIN_DIR) $(BIN_DIR)/touchp

$(BIN_DIR):
	mkdir -p $(BIN_DIR)

$(O_DIR):
	mkdir -p $(O_DIR)

$(O_DIR)/%.o : %.cpp
	$(CPP) -c -ferror-limit=6 -o $@ $^

OBJS = $(O_DIR)/jdep.o \
	$(O_DIR)/BytesDecoder.o  \
	$(O_DIR)/ClassFile.o \
	$(O_DIR)/ClassFileAnalyzer.o \
	$(O_DIR)/FileReader.o

$(BIN_DIR)/jdep: $(OBJS)
	$(CPP) -o $@ $^

$(BIN_DIR)/touchp: touchp.sh
	cp touchp.sh $@
	chmod +x $@

.PHONY: all jdep touchp clean

clean:
	rm -rf $(BIN_DIR)/jdep $(BIN_DIR)/touchp

DEVROOT = badger_exp

EXCLUDES = -e org.springframework

test: jdep
	rm -rf testdata/deps/*
	rm -rf testdata/origdeps/*
	jdep $(EXCLUDES) -d testdata/deps -c $(DEVROOT)/test-classes -j $(DEVROOT)/server/test \
		$(DEVROOT)/test-classes/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.class
	origjdep $(EXCLUDES) -d testdata/origdeps -c $(DEVROOT)/test-classes -j $(DEVROOT)/server/test \
		$(DEVROOT)/test-classes/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.class
	diff -q testdata/deps/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.d \
	        testdata/origdeps/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.d
<commit_msg>Add one more test case.<commit_after># Java tools Makefile

# "make all"       - Make the various tools
# "make jdep"      - Make the Java class file dependency analyzer tool
# "make clean"     - Remove object and executable files

# C++ compiler
CPP = g++ -g

# The directory where built executables go
BIN_DIR = ./bin

O_DIR = ./o

DIRS = $(BIN_DIR) $(O_DIR)

all: jdep touchp test

jdep: $(DIRS) $(BIN_DIR)/jdep

touchp: $(BIN_DIR) $(BIN_DIR)/touchp

$(BIN_DIR):
	mkdir -p $(BIN_DIR)

$(O_DIR):
	mkdir -p $(O_DIR)

$(O_DIR)/%.o : %.cpp
	$(CPP) -c -ferror-limit=6 -o $@ $^

OBJS = $(O_DIR)/jdep.o \
	$(O_DIR)/BytesDecoder.o  \
	$(O_DIR)/ClassFile.o \
	$(O_DIR)/ClassFileAnalyzer.o \
	$(O_DIR)/FileReader.o

$(BIN_DIR)/jdep: $(OBJS)
	$(CPP) -o $@ $^

$(BIN_DIR)/touchp: touchp.sh
	cp touchp.sh $@
	chmod +x $@

.PHONY: all jdep touchp clean

clean:
	rm -rf $(BIN_DIR)/jdep $(BIN_DIR)/touchp

EXCLUDES = -e org.springframework

test: jdep
	rm -rf testdata/deps/*
	rm -rf testdata/origdeps/*
	jdep $(EXCLUDES) -d testdata/deps -c badger_exp/test-classes -j badger_exp/server/test \
		badger_exp/test-classes/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.class
	origjdep $(EXCLUDES) -d testdata/origdeps -c badger_exp/test-classes -j badger_exp/server/test \
		badger_exp/test-classes/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.class
	diff -q testdata/deps/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.d \
	        testdata/origdeps/com/redsealsys/srm/server/analysis/AbstractTestByConfigFile.d

	jdep $(EXCLUDES) -d testdata/deps -c badger_exp/server/classes -j badger_exp/server/src \
		badger_exp/server/classes/com/redsealsys/srm/server/analysis/NetmapWorker.class
	origjdep $(EXCLUDES) -d testdata/origdeps -c badger_exp/server/classes -j badger_exp/server/src \
		badger_exp/server/classes/com/redsealsys/srm/server/analysis/NetmapWorker.class
	diff -q testdata/deps/com/redsealsys/srm/server/analysis/NetmapWorker.d \
	        testdata/origdeps/com/redsealsys/srm/server/analysis/NetmapWorker.d

	jdep $(EXCLUDES) -d testdata/deps -c badger_exp/server/classes -j badger_exp/server/src \
		badger_exp/server/classes/com/redsealsys/srm/server/analysis/compactTree/CompactTreeTrafficFlow.class
	origjdep $(EXCLUDES) -d testdata/origdeps -c badger_exp/server/classes -j badger_exp/server/src \
		badger_exp/server/classes/com/redsealsys/srm/server/analysis/compactTree/CompactTreeTrafficFlow.class
	diff -q testdata/deps/com/redsealsys/srm/server/analysis/compactTree/CompactTreeTrafficFlow.d \
	        testdata/origdeps/com/redsealsys/srm/server/analysis/compactTree/CompactTreeTrafficFlow.d









{'fraction_non_alphanumeric': 0.14523809523809525, 'fraction_numerical': 0.0004761904761904762, 'mean_word_length': 3.8848837209302327, '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': '2569991', 'n_tokens_mistral': 1702, 'n_tokens_neox': 1646, 'n_words': 306}