<commit_before># Speficy fish version to use during build 
# docker build -t <image> --build-arg FISH_VERSION=<version>
ARG FISH_VERSION=3.0.0
FROM ohmyfish/fish:${FISH_VERSION} as tooling

# Redeclare ARG so its value is available after FROM (cf. https://github.com/moby/moby/issues/34129#issuecomment-417609075)
ARG FISH_VERSION
RUN printf "\nBuilding \e[38;5;27mFish-%s\e[m\n\n" ${FISH_VERSION}

# Install dependencies
USER root
RUN apk add \
    --no-cache \
    coreutils \
    curl 

# Install `fishtape to run tests
USER nemo
RUN curl \
    --location \
    --output $HOME/.config/fish/functions/fisher.fish \
    --create-dirs \
    git.io/fisher
RUN fish -c 'fisher add jorgebucaran/fishtape'

# Only grab what we need to test from previous stage
FROM ohmyfish/fish:${FISH_VERSION}
COPY --from=tooling --chown=nemo /home/nemo/.config/fish /home/nemo/.config/fish

# Copy source code
WORKDIR /tmp/.pure/
COPY . /tmp/.pure/

ENTRYPOINT ["fish", "-c"]
CMD ["fishtape tests/{_pure,pure_tools_,fish_,}*.test.fish"]<commit_msg>remove typo (comma at the end of curly braces)<commit_after># Speficy fish version to use during build 
# docker build -t <image> --build-arg FISH_VERSION=<version>
ARG FISH_VERSION=3.0.0
FROM ohmyfish/fish:${FISH_VERSION} as tooling

# Redeclare ARG so its value is available after FROM (cf. https://github.com/moby/moby/issues/34129#issuecomment-417609075)
ARG FISH_VERSION
RUN printf "\nBuilding \e[38;5;27mFish-%s\e[m\n\n" ${FISH_VERSION}

# Install dependencies
USER root
RUN apk add \
    --no-cache \
    coreutils \
    curl 

# Install `fishtape to run tests
USER nemo
RUN curl \
    --location \
    --output $HOME/.config/fish/functions/fisher.fish \
    --create-dirs \
    git.io/fisher
RUN fish -c 'fisher add jorgebucaran/fishtape'

# Only grab what we need to test from previous stage
FROM ohmyfish/fish:${FISH_VERSION}
COPY --from=tooling --chown=nemo /home/nemo/.config/fish /home/nemo/.config/fish

# Copy source code
WORKDIR /tmp/.pure/
COPY . /tmp/.pure/

ENTRYPOINT ["fish", "-c"]
CMD ["fishtape tests/{_pure,pure_tools_,fish_}*.test.fish"]
{'fraction_non_alphanumeric': 0.13240917782026768, 'fraction_numerical': 0.021032504780114723, 'mean_word_length': 3.5798687089715537, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '218791', 'n_tokens_mistral': 803, 'n_tokens_neox': 752, 'n_words': 203}