<commit_before>#!/bin/bash

set -euxo pipefail

DOCKERFILE="Dockerfile.gocd-agent"
AGENT_IMAGE="gocd-agent"
SERVER_URL="https://192.168.10.127:8154/go"

echo "Starting gocd-agent..."

# Build docker image for the gocd-agent
docker build    --tag $AGENT_IMAGE \
                --file ./$DOCKERFILE .

# Start gocd-agent and forward socket (so that the host-docker engine can be invoked from inside)
docker run  --detach \
            --volume //var/run/docker.sock://var/run/docker.sock \
            --env GO_SERVER_URL=$SERVER_URL \
            $AGENT_IMAGE

echo "Agent started!"<commit_msg>Fixed start-agent script to prompt for server IP instead of hardcoding it.<commit_after>#!/bin/bash

set -euxo pipefail

DOCKERFILE="Dockerfile.gocd-agent"
AGENT_IMAGE="gocd-agent"
read -p "Server ip: " ip
SERVER_URL="https://$ip:8154/go"

echo "Starting gocd-agent..."

# Build docker image for the gocd-agent
docker build    --tag $AGENT_IMAGE \
                --file ./$DOCKERFILE .

# Start gocd-agent and forward socket (so that the host-docker engine can be invoked from inside)
docker run  --detach \
            --volume //var/run/docker.sock://var/run/docker.sock \
            --env GO_SERVER_URL=$SERVER_URL \
            $AGENT_IMAGE

echo "Agent started!"

$SHELL
{'fraction_non_alphanumeric': 0.12509834775767112, 'fraction_numerical': 0.014948859166011016, 'mean_word_length': 2.697674418604651, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1506337', 'n_tokens_mistral': 460, 'n_tokens_neox': 427, 'n_words': 112}