<commit_before>SRCDIR = src
ATDGEN = atdgen
ATDGEN_SOURCES = $(SRCDIR)/types.ml  
ATDGEN_FLAGS = -j-std -j-custom-fields \
	"(fun a b -> Printf.printf \"Unknown field: %s\\t(%s)\\n\" b a)"	

default: build

$(SRCDIR)/%.ml: src/%.atd
	$(ATDGEN) $(ATDGEN_FLAGS) $<

# OASIS_START
# DO NOT EDIT (digest: 7000995ee357d74b16bebaa9a87a2c1a)

SETUP = ocaml setup.ml

doc: setup.data build
	$(SETUP) -doc $(DOCFLAGS)

test: setup.data build
	$(SETUP) -test $(TESTFLAGS)

all:
	$(SETUP) -all $(ALLFLAGS)

install: setup.data
	$(SETUP) -install $(INSTALLFLAGS)

uninstall: setup.data
	$(SETUP) -uninstall $(UNINSTALLFLAGS)

reinstall: setup.data
	$(SETUP) -reinstall $(REINSTALLFLAGS)

clean:
	$(SETUP) -clean $(CLEANFLAGS)

distclean:
	$(SETUP) -distclean $(DISTCLEANFLAGS)

setup.data:
	$(SETUP) -configure $(CONFIGUREFLAGS)

.PHONY: doc test all install uninstall reinstall clean distclean configure

# OASIS_STOP

build: setup.data $(ATDGEN_SOURCES)
	$(SETUP) -build $(BUILDFLAGS)

opam-release:
	$(eval TEMPLATE_DIR:=opam-template)
	$(eval RELEASE_DIR:=opam-releases)
	$(eval NAME:=$(shell oasis query name))
	$(eval VERSION:=$(shell oasis query version))
	$(eval PACKAGE:=$(NAME).$(VERSION))
	$(eval DIR:=$(RELEASE_DIR)/$(PACKAGE))
	mkdir -p $(DIR)
	tar -cjf $(RELEASE_DIR)/$(PACKAGE).tar.bz2 \
		--transform 's,^\.,$(PACKAGE),' \
		--exclude=_build \
		--exclude=.git \
		--exclude=.settings \
		--exclude=.paths \
		--exclude=.project \
		--exclude=.settings \
		--exclude=setup.data \
		--exclude=setup.log \
		--exclude=$(RELEASE_DIR) .
	for f in descr opam url; do \
		./oasis-vars "$(TEMPLATE_DIR)/$$f" > $(DIR)/$$f; \
	done
<commit_msg>Modified opam-release tar excludes to read patterns from .gitignore<commit_after>SRCDIR = src
ATDGEN = atdgen
ATDGEN_SOURCES = $(SRCDIR)/types.ml  
ATDGEN_FLAGS = -j-std -j-custom-fields \
	"(fun a b -> Printf.printf \"Unknown field: %s\\t(%s)\\n\" b a)"	

default: build

$(SRCDIR)/%.ml: src/%.atd
	$(ATDGEN) $(ATDGEN_FLAGS) $<

# OASIS_START
# DO NOT EDIT (digest: 7000995ee357d74b16bebaa9a87a2c1a)

SETUP = ocaml setup.ml

doc: setup.data build
	$(SETUP) -doc $(DOCFLAGS)

test: setup.data build
	$(SETUP) -test $(TESTFLAGS)

all:
	$(SETUP) -all $(ALLFLAGS)

install: setup.data
	$(SETUP) -install $(INSTALLFLAGS)

uninstall: setup.data
	$(SETUP) -uninstall $(UNINSTALLFLAGS)

reinstall: setup.data
	$(SETUP) -reinstall $(REINSTALLFLAGS)

clean:
	$(SETUP) -clean $(CLEANFLAGS)

distclean:
	$(SETUP) -distclean $(DISTCLEANFLAGS)

setup.data:
	$(SETUP) -configure $(CONFIGUREFLAGS)

.PHONY: doc test all install uninstall reinstall clean distclean configure

# OASIS_STOP

build: setup.data $(ATDGEN_SOURCES)
	$(SETUP) -build $(BUILDFLAGS)

opam-release:
	$(eval TEMPLATE_DIR:=opam-template)
	$(eval RELEASE_DIR:=opam-releases)
	$(eval NAME:=$(shell oasis query name))
	$(eval VERSION:=$(shell oasis query version))
	$(eval PACKAGE:=$(NAME).$(VERSION))
	$(eval DIR:=$(RELEASE_DIR)/$(PACKAGE))
	mkdir -p $(DIR)
	tar -cjf $(RELEASE_DIR)/$(PACKAGE).tar.bz2 \
		--transform 's,^\.,$(PACKAGE),' \
		--exclude-from=.gitignore \
		--exclude=.git \
		--exclude=$(RELEASE_DIR) .
	for f in descr opam url; do \
		./oasis-vars "$(TEMPLATE_DIR)/$$f" > $(DIR)/$$f; \
	done

{'fraction_non_alphanumeric': 0.184375, 'fraction_numerical': 0.0125, 'mean_word_length': 4.204878048780488, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5403382', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1261, 'n_words': 282}