<commit_before>#############################################################################
#
# Copyright 2014 <NAME>
#
# 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.
#
#############################################################################
<commit_msg>Part of parsing incoming arg from commad-line<commit_after>#!/usr/bin/python
#############################################################################
#
# Copyright 2014 <NAME>
#
# 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.
#
#############################################################################

import os
import sys
import getopt

# Variables where saved paths to folders
parentFolder = ''
heirFolder = ''
# Boolean variables for options(printing lists with diff, compare and synchronize with each other)
isShow = False
isRecursive = False
# Use -p(parent) and -h(heir) keys to set folders passes through command-line
# If needed, use -r key compare and to synchronize folders with each other
# Set -s key for showing files and folders inside target directories with different in they are  
# In this step, parsing sys.argv with getopt
opts, args = getopt.getopt(sys.argv[1:],"rsp:h:",["ppath=","hpath="])
# and getting needed value
for opt, arg in opts:
	if opt == '-r':
		isRecursive = True 		
	elif opt == '-s':
		isShow	= True
	elif opt in ('-p', '--ppath'):
		parentFolder = arg
	elif opt in ('-h', '--hpath'):
		heirFolder = arg	
	else:
		print 'No input paths' # Here, must be more intellectual text, I think so

# Test	####################################################################################################		
print 'What we get:\n-p ', parentFolder, '\n-h ', heirFolder, '\n-r = ', isRecursive, '\n-s = ', isShow			
# End test #################################################################################################

{'fraction_non_alphanumeric': 0.25816761363636365, 'fraction_numerical': 0.006036931818181818, 'mean_word_length': 5.045064377682404, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2033193', 'n_tokens_mistral': 731, 'n_tokens_neox': 682, 'n_words': 312}