<commit_before># Copyright 2016-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
#     http://aws.amazon.com/apache2.0/
#
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

PYTHON2:=$(shell command -v python2 --version 2> /dev/null)
PYTHON3:=$(shell command -v python3 --version 2> /dev/null)
SHELL:=/bin/bash
VERSION:=1.1.4
BASENAME=ec2rl-$(VERSION)

ifdef PYTHON3
	PYTHON:=python3
	COVERAGE:=coverage3
else ifdef PYTHON2
	PYTHON:=python2
	COVERAGE:=coverage2
else
	$(error "Did not find required python3 or python2 executable!")
	exit 1
endif

python: prep pythonbase
	@echo "Creating ec2rl.tgz..."
	tar -czf ec2rl.tgz --exclude="python" -C /tmp $(BASENAME)
	sha256sum ec2rl.tgz > ec2rl.tgz.sha256
	@echo "Done!"

bundledpython: prep pythonbase
	@cp -ap python /tmp/$(BASENAME)
	@echo "Creating ec2rl-bundled.tgz..."
	tar -czf ec2rl-bundled.tgz -C /tmp $(BASENAME)
	sha256sum ec2rl-bundled.tgz > ec2rl-bundled.tgz.sha256
	@echo "Done!"<commit_msg>Update version in Makefile to 1.1.5.<commit_after># Copyright 2016-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
#     http://aws.amazon.com/apache2.0/
#
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.

PYTHON2:=$(shell command -v python2 --version 2> /dev/null)
PYTHON3:=$(shell command -v python3 --version 2> /dev/null)
SHELL:=/bin/bash
VERSION:=1.1.5
BASENAME=ec2rl-$(VERSION)

ifdef PYTHON3
	PYTHON:=python3
	COVERAGE:=coverage3
else ifdef PYTHON2
	PYTHON:=python2
	COVERAGE:=coverage2
else
	$(error "Did not find required python3 or python2 executable!")
	exit 1
endif

python: prep pythonbase
	@echo "Creating ec2rl.tgz..."
	tar -czf ec2rl.tgz --exclude="python" -C /tmp $(BASENAME)
	sha256sum ec2rl.tgz > ec2rl.tgz.sha256
	@echo "Done!"

bundledpython: prep pythonbase
	@cp -ap python /tmp/$(BASENAME)
	@echo "Creating ec2rl-bundled.tgz..."
	tar -czf ec2rl-bundled.tgz -C /tmp $(BASENAME)
	sha256sum ec2rl-bundled.tgz > ec2rl-bundled.tgz.sha256
	@echo "Done!"
{'fraction_non_alphanumeric': 0.11595783351508543, 'fraction_numerical': 0.03816793893129771, 'mean_word_length': 4.182674199623352, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1382377', 'n_tokens_mistral': 1028, 'n_tokens_neox': 934, 'n_words': 326}