<commit_before># This file is part of RTSLib.
# Copyright (c) 2011-2014 by Datera, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#     Unless required by applicable law or agreed to in writing, software
#     distributed under the License 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.
#

NAME = rtslib
GIT_BRANCH = $$(git branch | grep \* | tr -d \*)
VERSION = $$(basename $$(git describe --tags | tr - .))

all:
	@echo "Usage:"
	@echo
	@echo "  make deb         - Builds debian packages."
	@echo "  make debinstall  - Builds and installs debian packages."
	@echo "                     (requires sudo access)"
	@echo "  make rpm         - Builds rpm packages."
	@echo "  make release     - Generates the release tarball."
	@echo
	@echo "  make test   	  - Runs the safe tests suite."
	@echo "  make test-all 	  - Runs all tests, including dangerous system test."
	@echo "                     This WILL mess-up your system target configuration!"
	@echo "                     Requires sudo access to root privileges."
	@echo
	@echo "  make clean       - Cleanup the local repository build files."
	@echo "  make cleanall    - Also remove dist/*"

test:
	@echo "Running the safe tests suite..."
	@(PYTHONPATH=$$(pwd); cd tests/safe ; python -u -m unittest discover)

test-all: test
	@echo "Will run the DESTRUCTIVE system tests suite now."
	@echo "This requires sudo access to root privileges."
	@echo "These tests WILL mess-up your system target configuration!"
	@echo "Type CTRL-C to abort now or enter to continue..."
	@read X
	@(PYTHONPATH=$$(pwd); cd tests/system ; sudo python -m unittest discover)

clean:
	@rm -fv ${NAME}/*.pyc test/*.pyc ${NAME}/*.html .swp
	@rm -frv doc
	@rm -frv ${NAME}.egg-info MANIFEST build
	@rm -frv debian/tmp
	@rm -fv build-stamp
	@rm -fv dpkg-buildpackage.log dpkg-buildpackage.version
	@rm -frv *.rpm
	@rm -fv debian/files debian/*.log debian/*.substvars
	@rm -frv debian/${NAME}-doc/ debian/python2.5-${NAME}/
	@rm -frv debian/python2.6-${NAME}/ debian/python-${NAME}/
	@rm -frv results
	@rm -fv rpm/*.spec *.spec rpm/sed* sed*
	@rm -frv ${NAME}-*
	@find . -name *~ -exec rm -v {} \;
	@echo "Finished cleanup."

cleanall: clean
	@rm -frv dist
<commit_msg>make clean removes editor leftovers: #*#<commit_after># This file is part of RTSLib.
# Copyright (c) 2011-2014 by Datera, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#     Unless required by applicable law or agreed to in writing, software
#     distributed under the License 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.
#

NAME = rtslib
GIT_BRANCH = $$(git branch | grep \* | tr -d \*)
VERSION = $$(basename $$(git describe --tags | tr - .))

all:
	@echo "Usage:"
	@echo
	@echo "  make deb         - Builds debian packages."
	@echo "  make debinstall  - Builds and installs debian packages."
	@echo "                     (requires sudo access)"
	@echo "  make rpm         - Builds rpm packages."
	@echo "  make release     - Generates the release tarball."
	@echo
	@echo "  make test   	  - Runs the safe tests suite."
	@echo "  make test-all 	  - Runs all tests, including dangerous system test."
	@echo "                     This WILL mess-up your system target configuration!"
	@echo "                     Requires sudo access to root privileges."
	@echo
	@echo "  make clean       - Cleanup the local repository build files."
	@echo "  make cleanall    - Also remove dist/*"

test:
	@echo "Running the safe tests suite..."
	@(PYTHONPATH=$$(pwd); cd tests/safe ; python -u -m unittest discover)

test-all: test
	@echo "Will run the DESTRUCTIVE system tests suite now."
	@echo "This requires sudo access to root privileges."
	@echo "These tests WILL mess-up your system target configuration!"
	@echo "Type CTRL-C to abort now or enter to continue..."
	@read X
	@(PYTHONPATH=$$(pwd); cd tests/system ; sudo python -m unittest discover)

clean:
	@rm -fv ${NAME}/*.pyc test/*.pyc ${NAME}/*.html .swp
	@rm -frv doc
	@rm -frv ${NAME}.egg-info MANIFEST build
	@rm -frv debian/tmp
	@rm -fv build-stamp
	@rm -fv dpkg-buildpackage.log dpkg-buildpackage.version
	@rm -frv *.rpm
	@rm -fv debian/files debian/*.log debian/*.substvars
	@rm -frv debian/${NAME}-doc/ debian/python2.5-${NAME}/
	@rm -frv debian/python2.6-${NAME}/ debian/python-${NAME}/
	@rm -frv results
	@rm -fv rpm/*.spec *.spec rpm/sed* sed*
	@rm -frv ${NAME}-*
	@find . -name *~ -exec rm -v {} \;
	@find . -name \#*\# -exec rm -v {} \;
	@echo "Finished cleanup."

cleanall: clean
	@rm -frv dist

{'fraction_non_alphanumeric': 0.12466229255113856, 'fraction_numerical': 0.0061752219220378235, 'mean_word_length': 2.8650260999254287, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1703178', 'n_tokens_mistral': 1755, 'n_tokens_neox': 1660, 'n_words': 648}