<commit_before>#!/bin/sh -e

# Copyright 2013 tsuru authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

for f in `grep "Copyright 2012" -r . -l | grep -v check-license.sh`
do
	date=`git log -1 --format="%ad" --date=short -- $f`
	if [ `echo "$date" | grep ^2013` ]
	then
		echo $f $date
	fi
done<commit_msg>misc/check-license: exit with non-zero status when fail<commit_after>#!/bin/sh -e

# Copyright 2013 tsuru authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

status=0

for f in `grep "Copyright 2012" -r . -l | grep -v check-license.sh`
do
	date=`git log -1 --format="%ad" --date=short -- $f`
	if [ `echo "$date" | grep ^2013` ]
	then
		echo $f $date
		status=1
	fi
done

exit $status
{'fraction_non_alphanumeric': 0.13278495887191538, 'fraction_numerical': 0.03290246768507638, 'mean_word_length': 3.176470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5409697', 'n_tokens_mistral': 335, 'n_tokens_neox': 300, 'n_words': 123}