<commit_before>FROM debian:jessie

MAINTAINER OneAPM <<EMAIL>>

ENV DOCKER_ONEAPM_CI_AGENT yes
ENV AGENT_VERSION 1:4.5.0-1

# Install the Agent
RUN echo "deb http://apt.oneapm.com/ stable main" > /etc/apt/sources.list.d/oneapm-ci-agent.list \
 && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY> \
 && apt-get update \
 && apt-get install --no-install-recommends -y oneapm-ci-agent="${AGENT_VERSION}" \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Configure the Agent
# 1. Turn syslog off
# 2. Remove oneapm-ci-agent user from supervisor configuration
# 3. Remove oneapm-ci-agent user from init.d configuration
# 4. Fix permission on /etc/init.d/oneapm-ci-agent
# 5. Remove network check
RUN mv /etc/oneapm-ci-agent/oneapm-ci-agent.conf.example /etc/oneapm-ci-agent/oneapm-ci-agent.conf \
 && sed -i -e"s/^.*log_to_syslog:.*$/log_to_syslog: no/" /etc/oneapm-ci-agent/oneapm-ci-agent.conf \
 && sed -i "/user=oneapm-ci-agent/d" /etc/oneapm-ci-agent/supervisor.conf \
 && sed -i 's/AGENTUSER="oneapm-ci-agent"/AGENTUSER="root"/g' /etc/init.d/oneapm-ci-agent \
 && chmod +x /etc/init.d/oneapm-ci-agent \
 && rm /etc/oneapm-ci-agent/conf.d/network.yaml.default<commit_msg>change agent version to 4.5.1<commit_after>FROM debian:jessie

MAINTAINER OneAPM <<EMAIL>>

ENV DOCKER_ONEAPM_CI_AGENT yes
ENV AGENT_VERSION 1:4.5.1-1

# Install the Agent
RUN echo "deb http://apt.oneapm.com/ stable main" > /etc/apt/sources.list.d/oneapm-ci-agent.list \
 && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY> \
 && apt-get update \
 && apt-get install --no-install-recommends -y oneapm-ci-agent="${AGENT_VERSION}" \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Configure the Agent
# 1. Turn syslog off
# 2. Remove oneapm-ci-agent user from supervisor configuration
# 3. Remove oneapm-ci-agent user from init.d configuration
# 4. Fix permission on /etc/init.d/oneapm-ci-agent
# 5. Remove network check
RUN mv /etc/oneapm-ci-agent/oneapm-ci-agent.conf.example /etc/oneapm-ci-agent/oneapm-ci-agent.conf \
 && sed -i -e"s/^.*log_to_syslog:.*$/log_to_syslog: no/" /etc/oneapm-ci-agent/oneapm-ci-agent.conf \
 && sed -i "/user=oneapm-ci-agent/d" /etc/oneapm-ci-agent/supervisor.conf \
 && sed -i 's/AGENTUSER="oneapm-ci-agent"/AGENTUSER="root"/g' /etc/init.d/oneapm-ci-agent \
 && chmod +x /etc/init.d/oneapm-ci-agent \
 && rm /etc/oneapm-ci-agent/conf.d/network.yaml.default
{'fraction_non_alphanumeric': 0.17569786535303777, 'fraction_numerical': 0.009441707717569787, 'mean_word_length': 3.3595706618962433, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3887440', 'n_tokens_mistral': 1016, 'n_tokens_neox': 984, 'n_words': 189}