<commit_before># Copyright 2015 Chef Software, Inc.
#
# Author: <NAME> (<EMAIL>)

CARGO_OPTS ?=
DELIV_CLI_GIT_SHA = $(shell git rev-parse --short HEAD)
DELIV_CLI_TIME = $(shell date -u "+%Y-%m-%dT%H:%M:%SZ")
RUSTC_VERSION = $(shell rustc --version)
CARGO_ENV = DELIV_CLI_GIT_SHA="$(DELIV_CLI_GIT_SHA)"
CARGO_ENV += RUSTC_VERSION="$(RUSTC_VERSION)"
CARGO_ENV += DELIV_CLI_TIME="$(DELIV_CLI_TIME)"

UNAME = $(shell uname)

ifeq ($(UNAME),Darwin)
    OPENSSL_PREFIX = /opt/delivery-cli/embedded
    CARGO_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_PREFIX)/include
    CARGO_ENV += OPENSSL_LIB_DIR=$(OPENSSL_PREFIX)/lib
else ifeq ($(UNAME),Linux)
    OPENSSL_PREFIX = /opt/delivery-cli/embedded
    CARGO_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_PREFIX)/include
    CARGO_ENV += OPENSSL_LIB_DIR=$(OPENSSL_PREFIX)/lib
else ifeq ($(UNAME),MINGW32_NT-6.2)
    OPENSSL_PREFIX ?= C:/chef/delivery-cli/embedded
    CARGO_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_PREFIX)/include
    CARGO_ENV += OPENSSL_LIB_DIR=$(OPENSSL_PREFIX)/bin
endif

CARGO = $(CARGO_ENV) cargo

all:
	$(MAKE) build

build: openssl
	$(CARGO) $(CARGO_OPTS) build --release

openssl:
	@test -d $(OPENSSL_PREFIX) || \
         (echo "MISSING DEP: $(OPENSSL_PREFIX)" && exit 101)

clean:
	@$(CARGO) $(CARGO_OPTS) clean

check:
	$(MAKE) build
	$(MAKE) test

test:
	$(CARGO) $(CARGO_OPTS) test


.PHONY: all build clean check test<commit_msg>Use the correct path for `OPENSSL_LIB_DIR`<commit_after># Copyright 2015 Chef Software, Inc.
#
# Author: <NAME> (<EMAIL>)

CARGO_OPTS ?=
DELIV_CLI_GIT_SHA = $(shell git rev-parse --short HEAD)
DELIV_CLI_TIME = $(shell date -u "+%Y-%m-%dT%H:%M:%SZ")
RUSTC_VERSION = $(shell rustc --version)
CARGO_ENV = DELIV_CLI_GIT_SHA="$(DELIV_CLI_GIT_SHA)"
CARGO_ENV += RUSTC_VERSION="$(RUSTC_VERSION)"
CARGO_ENV += DELIV_CLI_TIME="$(DELIV_CLI_TIME)"

UNAME = $(shell uname)

ifeq ($(UNAME),Darwin)
    OPENSSL_PREFIX = /opt/delivery-cli/embedded
    CARGO_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_PREFIX)/include
    CARGO_ENV += OPENSSL_LIB_DIR=$(OPENSSL_PREFIX)
else ifeq ($(UNAME),Linux)
    OPENSSL_PREFIX = /opt/delivery-cli/embedded
    CARGO_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_PREFIX)/include
    CARGO_ENV += OPENSSL_LIB_DIR=$(OPENSSL_PREFIX)
else ifeq ($(UNAME),MINGW32_NT-6.2)
    OPENSSL_PREFIX ?= C:/chef/delivery-cli/embedded
    CARGO_ENV += OPENSSL_INCLUDE_DIR=$(OPENSSL_PREFIX)/include
    CARGO_ENV += OPENSSL_LIB_DIR=$(OPENSSL_PREFIX)/bin
endif

CARGO = $(CARGO_ENV) cargo

all:
	$(MAKE) build

build: openssl
	$(CARGO) $(CARGO_OPTS) build --release

openssl:
	@test -d $(OPENSSL_PREFIX) || \
         (echo "MISSING DEP: $(OPENSSL_PREFIX)" && exit 101)

clean:
	@$(CARGO) $(CARGO_OPTS) clean

check:
	$(MAKE) build
	$(MAKE) test

test:
	$(CARGO) $(CARGO_OPTS) test


.PHONY: all build clean check test
{'fraction_non_alphanumeric': 0.15346002151308713, 'fraction_numerical': 0.007888131946934385, 'mean_word_length': 5.227678571428571, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1098145', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1092, 'n_words': 208}