<commit_before>TARGET := stack0

GCC := gcc -m32
CC := $(GCC)
LD := $(GCC)

CFLAGS := -I.. -O0 -fno-stack-protector
LDFLAGS := -L.. -Wl,-rpath,/usr/local/lib -Wl,-z,execstack
LDLIBS := -lpwnable_harness32

# Setting up source and build paths
BUILD := build
SRCS := $(wildcard *.c)
OBJS := $(addprefix $(BUILD)/,$(SRCS:=.o))
DEPS := $(OBJS:.o=.d)

DOCKER_IMAGE := c0deh4cker/$(TARGET)

# Print all commands executed when VERBOSE is defined
ifdef VERBOSE
_v :=
else
_v := @
endif


# Default rule
all: $(TARGET)

# Rule for building a docker image according to the Dockerfile
docker-build: $(TARGET)
	@echo "Building docker image"
	$(_v)docker build -t $(DOCKER_IMAGE) --build-arg RUNTIME_NAME=$(TARGET) .

# Rule for starting a docker container
docker-start: docker-build
	@echo "Starting docker container"
	$(_v)-docker rm -f $(TARGET)
	$(_v)docker run --name $(TARGET) -itd -v /etc/localtime:/etc/localtime:ro -p 32101:32101 $(DOCKER_IMAGE)

# Restart is an alias for start<commit_msg>No longer displays an error message when starting a container that is not already running<commit_after>TARGET := stack0

GCC := gcc -m32
CC := $(GCC)
LD := $(GCC)

CFLAGS := -I.. -O0 -fno-stack-protector
LDFLAGS := -L.. -Wl,-rpath,/usr/local/lib -Wl,-z,execstack
LDLIBS := -lpwnable_harness32

# Setting up source and build paths
BUILD := build
SRCS := $(wildcard *.c)
OBJS := $(addprefix $(BUILD)/,$(SRCS:=.o))
DEPS := $(OBJS:.o=.d)

DOCKER_IMAGE := c0deh4cker/$(TARGET)

# Print all commands executed when VERBOSE is defined
ifdef VERBOSE
_v :=
else
_v := @
endif


# Default rule
all: $(TARGET)

# Rule for building a docker image according to the Dockerfile
docker-build: $(TARGET)
	@echo "Building docker image"
	$(_v)docker build -t $(DOCKER_IMAGE) --build-arg RUNTIME_NAME=$(TARGET) .

# Rule for starting a docker container
docker-start: docker-build
	@echo "Starting docker container"
	$(_v)docker rm -f $(TARGET) >/dev/null 2>&1 || true
	$(_v)docker run --name $(TARGET) -itd -v /etc/localtime:/etc/localtime:ro -p 32101:32101 $(DOCKER_IMAGE)

# Restart is an alias for start
{'fraction_non_alphanumeric': 0.1564461612747465, 'fraction_numerical': 0.01834862385321101, 'mean_word_length': 4.206030150753769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3995278', 'n_tokens_mistral': 810, 'n_tokens_neox': 740, 'n_words': 234}