<commit_before>FROM clojure:latest
MAINTAINER <NAME> "<EMAIL>"

# Add user
RUN groupadd glot
RUN useradd -m -d /home/glot -g glot -s /bin/bash glot

# Add link to clojure in a location searched by code-runner
RUN ln -s /root/.lein/self-installs/leiningen-*-standalone.jar /usr/share/java/clojure.jar

# Allow execution by glot inside root
RUN chmod 755 root

# Copy files
COPY files/runner /home/glot/

USER glot
WORKDIR /home/glot/
CMD ["/home/glot/runner"]
<commit_msg>Move lein dir to glot home<commit_after>FROM clojure:latest
MAINTAINER <NAME> "<EMAIL>"

# Add user
RUN groupadd glot
RUN useradd -m -d /home/glot -g glot -s /bin/bash glot

# Move lein dir to glot
RUN mv -f /root/.lein /home/glot/
RUN chown glot:glot /home/glot/.lein -R

# Add link to clojure in a location searched by code-runner
RUN ln -s /home/glot/.lein/self-installs/leiningen-*-standalone.jar /usr/share/java/clojure.jar

# Copy files
COPY files/runner /home/glot/

USER glot
WORKDIR /home/glot/
CMD ["/home/glot/runner"]

{'fraction_non_alphanumeric': 0.11988011988011989, 'fraction_numerical': 0.002997002997002997, 'mean_word_length': 3.5135135135135136, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7085384', 'n_tokens_mistral': 398, 'n_tokens_neox': 383, 'n_words': 122}