<commit_before>###
# vert.x docker example using a Java verticle packaged as a fatjar
# To build:
#  docker build -t sample/vertx-java-fat .
# To run:
#   docker run -t -i -p 8080:8080 sample/vertx-java-fat
###

FROM java:8-jre

ENV CONF_FILE default-conf.json
ENV VERTICLE_FILE vertx-forge-main-1.0.0-SNAPSHOT-fat.jar
ENV DEPENDENCIES_FILE dependencies.json

# Set the location of the verticles
ENV VERTICLE_HOME /usr/verticles

EXPOSE 8080

# Copy your fat jar to the container
COPY vertx-forge-main/target/$VERTICLE_FILE $VERTICLE_HOME/
COPY vertx-forge-main/conf/$CONF_FILE $VERTICLE_HOME/
COPY $DEPENDENCIES_FILE $VERTICLE_HOME/

# Launch the verticle
WORKDIR $VERTICLE_HOME
ENTRYPOINT ["sh", "-c"]
CMD ["exec java -jar -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory $VERTICLE_FILE -conf $CONF_FILE"]<commit_msg>docker<commit_after>###
# vert.x docker example using a Java verticle packaged as a fatjar
# To build:
#  docker build -t sample/vertx-java-fat .
# To run:
#   docker run -t -i -p 8080:8080 sample/vertx-java-fat
###

FROM java:openjdk-8-jdk

ENV CONF_FILE vertx-forge-main/conf/default-conf.json
ENV VERTICLE_FILE vertx-forge-main/target/vertx-forge-main-1.0.0-SNAPSHOT-fat.jar

COPY . .
RUN ./mvnw clean package
EXPOSE 8080

ENTRYPOINT ["sh", "-c"]
CMD ["exec java -jar -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory $VERTICLE_FILE -conf $CONF_FILE"]
{'fraction_non_alphanumeric': 0.11914600550964187, 'fraction_numerical': 0.023415977961432508, 'mean_word_length': 4.441947565543071, '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': '849771', 'n_tokens_mistral': 588, 'n_tokens_neox': 546, 'n_words': 133}