<commit_before># Run tor browser in a container
#
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
#     -v /dev/snd:/dev/snd \
#     -e DISPLAY=unix$DISPLAY \
#     jess/tor-browser
#
FROM debian:jessie
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update && apt-get install -y \
    ca-certificates \
    curl \
    libasound2 \
    libdbus-glib-1-2 \
    libgtk2.0-0 \
    libxrender1 \
    libxt6 \
    xz-utils \
    && rm -rf /var/lib/apt/lists/*

ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
    && chown -R user:user $HOME

ENV LANG C.UTF-8

ENV TOR_VERSION 4.5

RUN curl -sSL "https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz" | tar -v -C /usr/local/bin -xJ --strip-components 1 

# good fonts
COPY local.conf /etc/fonts/local.conf

WORKDIR $HOME
USER user
<commit_msg>updating tor-browser to 4.5.1 to keep up with sec updates<commit_after># Run tor browser in a container
#
# docker run -v /tmp/.X11-unix:/tmp/.X11-unix \
#     -v /dev/snd:/dev/snd \
#     -e DISPLAY=unix$DISPLAY \
#     jess/tor-browser
#
FROM debian:jessie
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update && apt-get install -y \
    ca-certificates \
    curl \
    libasound2 \
    libdbus-glib-1-2 \
    libgtk2.0-0 \
    libxrender1 \
    libxt6 \
    xz-utils \
    && rm -rf /var/lib/apt/lists/*

ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
    && chown -R user:user $HOME

ENV LANG C.UTF-8

ENV TOR_VERSION 4.5.1

RUN curl -sSL "https://www.torproject.org/dist/torbrowser/${TOR_VERSION}/tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz" | tar -v -C /usr/local/bin -xJ --strip-components 1 

# good fonts
COPY local.conf /etc/fonts/local.conf

WORKDIR $HOME
USER user

{'fraction_non_alphanumeric': 0.15051311288483465, 'fraction_numerical': 0.02280501710376283, 'mean_word_length': 2.4411764705882355, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3063619', 'n_tokens_mistral': 734, 'n_tokens_neox': 694, 'n_words': 163}