<commit_before># Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# E2E test for differential of costs

TESTS_DIR = ../..
SOURCES = src/DiffExample.current.java src/DiffExample.previous.java
COPIED = src/DiffExample.java
CLEAN_EXTRA = $(COPIED) *.class
DIFFERENTIAL_ARGS = --enable-issue-type CONFIG_IMPACT
include $(TESTS_DIR)/differential-config-impact.make
include $(TESTS_DIR)/java.make

$(CURRENT_REPORT) $(PREVIOUS_REPORT): $(JAVA_DEPS)

$(CURRENT_REPORT):
	$(QUIET)$(COPY) src/DiffExample.current.java src/DiffExample.java
	$(QUIET)$(call silent_on_success,Testing Config Impact Differential: current,\
	$(INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $(CURRENT_DIR) \
	  -- $(JAVAC) -cp $(CLASSPATH)  $(COPIED))

$(PREVIOUS_REPORT):
	$(QUIET)$(COPY) src/DiffExample.previous.java src/DiffExample.java
	$(QUIET)$(call silent_on_success,Testing Config Impact Differential: previous,\
	$(INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $(PREVIOUS_DIR) \
	  -- $(JAVAC) -cp $(CLASSPATH) $(COPIED))<commit_msg>[ConfigImpact] Add FP test due to anonymous class<commit_after># Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# E2E test for differential of costs

TESTS_DIR = ../..
SOURCES = src/DiffExample.current.java src/DiffExample.previous.java \
  src/DiffAnonymousClass.current.java src/DiffAnonymousClass.previous.java
COPIED = src/DiffExample.java src/DiffAnonymousClass.java
CLEAN_EXTRA = $(COPIED) *.class
DIFFERENTIAL_ARGS = --enable-issue-type CONFIG_IMPACT
include $(TESTS_DIR)/differential-config-impact.make
include $(TESTS_DIR)/java.make

$(CURRENT_REPORT) $(PREVIOUS_REPORT): $(JAVA_DEPS)

$(CURRENT_REPORT):
	$(QUIET)$(COPY) src/DiffExample.current.java src/DiffExample.java
	$(QUIET)$(COPY) src/DiffAnonymousClass.current.java src/DiffAnonymousClass.java
	$(QUIET)$(call silent_on_success,Testing Config Impact Differential: current,\
	$(INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $(CURRENT_DIR) \
	  -- $(JAVAC) -cp $(CLASSPATH)  $(COPIED))

$(PREVIOUS_REPORT):
	$(QUIET)$(COPY) src/DiffExample.previous.java src/DiffExample.java
	$(QUIET)$(COPY) src/DiffAnonymousClass.previous.java src/DiffAnonymousClass.java
	$(QUIET)$(call silent_on_success,Testing Config Impact Differential: previous,\
	$(INFER_BIN) --no-filtering --config-impact-analysis-only --config-impact-data-file config_data.json -o $(PREVIOUS_DIR) \
	  -- $(JAVAC) -cp $(CLASSPATH) $(COPIED))
{'fraction_non_alphanumeric': 0.14087018544935806, 'fraction_numerical': 0.0007132667617689016, 'mean_word_length': 5.219512195121951, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3526261', 'n_tokens_mistral': 980, 'n_tokens_neox': 926, 'n_words': 209}