<commit_before>#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

export PATH := ${PWD}/install/bin:${PATH}

DESTDIR := ""
PREFIX := ${HOME}/.local
QUIVER_HOME = ${PREFIX}/lib/quiver

TARGETS := \
	build/bin/quiver \
	build/bin/quiver-arrow \
	build/bin/quiver-smoke-test \
	build/exec/arrow-activemq-jms \
	build/exec/arrow-activemq-artemis-jms \
	build/exec/arrow-qpid-jms \
	build/exec/arrow-qpid-messaging-cpp \
	build/exec/arrow-qpid-messaging-python \
	build/exec/arrow-qpid-proton-python \
	build/exec/arrow-vertx-proton \
	build/exec/arrow-rhea \
	build/java/activemq-artemis-jms.jar \
	build/java/activemq-jms.jar \
	build/java/qpid-jms.jar \
	build/java/vertx-proton.jar

CCFLAGS := -Os -std=c++11 -lstdc++ -lqpid-proton -lqpidmessaging -lqpidtypes

ifdef QPID_PROTON_CPP_ENABLED
	TARGETS += build/exec/arrow-qpid-proton-cpp
	CCFLAGS += -lqpid-proton-cpp
endif

.PHONY: default
default: devel

.PHONY: help
help:
	@echo "build          Build the code"
	@echo "install        Install the code"
	@echo "clean          Clean up the source tree"
	@echo "devel          Build, install, and run a basic test in this checkout"
	@echo "test           Run the tests"

.PHONY: clean
clean:
	rm -rf build
	rm -rf install
	rm -rf java/activemq-jms/target
	rm -rf java/activemq-artemis-jms/target
	rm -rf java/jms/target
	rm -rf java/qpid-jms/target
	rm -rf java/vertx-proton/target

.PHONY: build
build: ${TARGETS}
	cp exec/amqp-test-broker build/exec

.PHONY: install
install: build
	@mkdir -p ${DESTDIR}${QUIVER_HOME}
	scripts/install-files python ${DESTDIR}${QUIVER_HOME}/python \*.py
	scripts/install-files javascript ${DESTDIR}${QUIVER_HOME}/javascript \*
	scripts/install-files build/java ${DESTDIR}${QUIVER_HOME}/java \*
	scripts/install-files build/exec ${DESTDIR}${QUIVER_HOME}/exec \*
	scripts/install-files build/bin ${DESTDIR}${PREFIX}/bin \*

.PHONY: devel
devel: PREFIX := ${PWD}/install
devel: install
	quiver-arrow send //localhost:12345/a/b/c --init-only
	quiver q0 --init-only

.PHONY: test
test: devel
	quiver-smoke-test 10

build/bin/%: bin/%.in
	@mkdir -p build/bin
	scripts/configure-file $< $@ quiver_home ${QUIVER_HOME}

build/exec/%: exec/%.in
	@mkdir -p build/exec
	scripts/configure-file $< $@ quiver_home ${QUIVER_HOME}

build/exec/%: exec/%.cpp
	@mkdir -p build/exec
	gcc ${CCFLAGS} $< -o $@

build/java/vertx-proton.jar: $(shell find java/vertx-proton/src -type f) java/vertx-proton/pom.xml
	@mkdir -p build/java
	cd java/vertx-proton && mvn clean package
	cp java/vertx-proton/target/vertx-proton-1-jar-with-dependencies.jar $@

build/java/%.jar: java/%/pom.xml $(shell find java/jms/src -type f) 
	@mkdir -p build/java
	cd java/jms && mvn install
	cd java/$* && mvn clean package
	cp java/$*/target/$*-1-jar-with-dependencies.jar $@
<commit_msg>Add a missing dep to the jms build rule<commit_after>#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

export PATH := ${PWD}/install/bin:${PATH}

DESTDIR := ""
PREFIX := ${HOME}/.local
QUIVER_HOME = ${PREFIX}/lib/quiver

TARGETS := \
	build/bin/quiver \
	build/bin/quiver-arrow \
	build/bin/quiver-smoke-test \
	build/exec/arrow-activemq-jms \
	build/exec/arrow-activemq-artemis-jms \
	build/exec/arrow-qpid-jms \
	build/exec/arrow-qpid-messaging-cpp \
	build/exec/arrow-qpid-messaging-python \
	build/exec/arrow-qpid-proton-python \
	build/exec/arrow-vertx-proton \
	build/exec/arrow-rhea \
	build/java/activemq-artemis-jms.jar \
	build/java/activemq-jms.jar \
	build/java/qpid-jms.jar \
	build/java/vertx-proton.jar

CCFLAGS := -Os -std=c++11 -lstdc++ -lqpid-proton -lqpidmessaging -lqpidtypes

ifdef QPID_PROTON_CPP_ENABLED
	TARGETS += build/exec/arrow-qpid-proton-cpp
	CCFLAGS += -lqpid-proton-cpp
endif

.PHONY: default
default: devel

.PHONY: help
help:
	@echo "build          Build the code"
	@echo "install        Install the code"
	@echo "clean          Clean up the source tree"
	@echo "devel          Build, install, and run a basic test in this checkout"
	@echo "test           Run the tests"

.PHONY: clean
clean:
	rm -rf build
	rm -rf install
	rm -rf java/activemq-jms/target
	rm -rf java/activemq-artemis-jms/target
	rm -rf java/jms/target
	rm -rf java/qpid-jms/target
	rm -rf java/vertx-proton/target

.PHONY: build
build: ${TARGETS}
	cp exec/amqp-test-broker build/exec

.PHONY: install
install: build
	@mkdir -p ${DESTDIR}${QUIVER_HOME}
	scripts/install-files python ${DESTDIR}${QUIVER_HOME}/python \*.py
	scripts/install-files javascript ${DESTDIR}${QUIVER_HOME}/javascript \*
	scripts/install-files build/java ${DESTDIR}${QUIVER_HOME}/java \*
	scripts/install-files build/exec ${DESTDIR}${QUIVER_HOME}/exec \*
	scripts/install-files build/bin ${DESTDIR}${PREFIX}/bin \*

.PHONY: devel
devel: PREFIX := ${PWD}/install
devel: install
	quiver-arrow send //localhost:12345/a/b/c --init-only
	quiver q0 --init-only

.PHONY: test
test: devel
	quiver-smoke-test 10

build/bin/%: bin/%.in
	@mkdir -p build/bin
	scripts/configure-file $< $@ quiver_home ${QUIVER_HOME}

build/exec/%: exec/%.in
	@mkdir -p build/exec
	scripts/configure-file $< $@ quiver_home ${QUIVER_HOME}

build/exec/%: exec/%.cpp
	@mkdir -p build/exec
	gcc ${CCFLAGS} $< -o $@

build/java/vertx-proton.jar: java/vertx-proton/pom.xml $(shell find java/vertx-proton/src -type f)
	@mkdir -p build/java
	cd java/vertx-proton && mvn clean package
	cp java/vertx-proton/target/vertx-proton-1-jar-with-dependencies.jar $@

build/java/%.jar: java/%/pom.xml java/jms/pom.xml $(shell find java/jms/src -type f)
	@mkdir -p build/java
	cd java/jms && mvn install
	cd java/$* && mvn clean package
	cp java/$*/target/$*-1-jar-with-dependencies.jar $@

{'fraction_non_alphanumeric': 0.1328147100424328, 'fraction_numerical': 0.004526166902404526, 'mean_word_length': 3.6215686274509804, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 5}, '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': '1604042', 'n_tokens_mistral': 2632, 'n_tokens_neox': 2522, 'n_words': 665}