<commit_before>#!/usr/bin/python

# this script updates the copyright license lines in all directories
# to do two things:
#   1. Removes lines like 'Copyright (c) ... Virginia Polytechnic...' and
#      ' ... Institute & State University', noting that sometimes this is
#      split across several lines
#   2. replaces lines like "Copyright 2007, ... 2012, 2013 <NAME>"
#      with an updated date

import os
import sys
import re

rootdir = sys.argv[1]

# specific files to ignore
ignore_files = ['update_copyright.py',]
<commit_msg>scripts: adding brief usage description to update_copyright script<commit_after>#!/usr/bin/python

# this script updates the copyright license lines in all directories
# to do two things:
#   1. Removes lines like 'Copyright (c) ... Virginia Polytechnic...' and
#      ' ... Institute & State University', noting that sometimes this is
#      split across several lines
#   2. replaces lines like "Copyright 2007, ... 2012, 2013 <NAME>"
#      with an updated date
# 
# usage:
#   $ python scripts/update_copyright.py <dir>
#

import os
import sys
import re

rootdir = sys.argv[1]

# specific files to ignore
ignore_files = ['update_copyright.py',]

{'fraction_non_alphanumeric': 0.10388513513513513, 'fraction_numerical': 0.02533783783783784, 'mean_word_length': 3.5229007633587788, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4710302', 'n_tokens_mistral': 357, 'n_tokens_neox': 326, 'n_words': 137}