<commit_before># Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.

DIR:=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
TOP=$(DIR)/../..
REL_DIR=src/parser

NATIVE_OBJECT_FILES=\
	hack/heap/hh_shared.o\
	hack/utils/files.o\
	hack/utils/nproc.o\
	hack/utils/realpath.o\
	hack/utils/sysinfo.o\
	hack/utils/priorities.o\
	hack/utils/win32_support.o

RUNNER_DEPS=\
	hack/heap\
	hack/utils\
	hack/utils/collections\
	hack/utils/hh_json\
	hack/third-party/core\
	src/common\
	src/parser

all: build-parser

clean:
	cd $(TOP); \
	ocamlbuild -clean; \
	rm -f $(REL_DIR)/flow_parser.js $(REL_DIR)/tools/native_test_files

build-parser:
	cd $(TOP); \
	ocamlbuild -no-links $(REL_DIR)/parser_flow.cmxa

js:
	cd $(TOP); \<commit_msg>Fix the the ocaml parser test for TravisCI<commit_after># Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.

DIR:=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
TOP=$(DIR)/../..
REL_DIR=src/parser

NATIVE_OBJECT_FILES=\
	hack/utils/files.o\
	hack/utils/nproc.o\
	hack/utils/realpath.o\
	hack/utils/sysinfo.o\
	hack/utils/priorities.o\
	hack/utils/win32_support.o

RUNNER_DEPS=\
	hack/heap\
	hack/utils\
	hack/utils/collections\
	hack/utils/hh_json\
	hack/third-party/core\
	src/common\
	src/parser

all: build-parser

clean:
	cd $(TOP); \
	ocamlbuild -clean; \
	rm -f $(REL_DIR)/flow_parser.js $(REL_DIR)/tools/native_test_files

build-parser:
	cd $(TOP); \
	ocamlbuild -no-links $(REL_DIR)/parser_flow.cmxa

js:
	cd $(TOP); \
{'fraction_non_alphanumeric': 0.17038539553752535, 'fraction_numerical': 0.008113590263691683, 'mean_word_length': 3.774193548387097, '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': '4583781', 'n_tokens_mistral': 653, 'n_tokens_neox': 632, 'n_words': 108}