<commit_before>#!/usr/bin/env python
name1 = " "
name2 = " "
name2bkup = " "
out = " "
flames_list = " "

#Module to accept user input
def getnames():
    global name1, name2
    name1 = raw_input('Enter your name: ')
    name2 = raw_input('Enter the second name: ')
  
#Module to calculate the number to be used in FLAMES
def calculate():
    global name1, name2,name2bkup, out
    name1 = name1.lower()
    name2 = name2.lower()
    name2bkup = name2
    count = 0    #Initializing count, should update to use __init__ soon
    name_length = len(name1) + len(name2)
    for name1_letters in name1:
        for name2_letters in name2:
            if name1_letters==name2_letters:
                name2 = name2.replace(name2_letters,"0",1)<commit_msg>Added code to remove white spaces in between names and check for empty user input<commit_after>#!/usr/bin/env python
import sys
name1 = " "
name2 = " "
name2bkup = " "
out = " "
flames_list = " "

#Module to accept user input
def getnames():
    global name1, name2
    name1 = raw_input('Enter your name: ')
    name2 = raw_input('Enter the second name: ')
    if not name1 or not name2:
        print 'Enter a valid name, please!'
        sys.exit()
 
#Module to calculate the number to be used in FLAMES also converts string to lower case
#and strips of whitespaces inbetween the name
def calculate():
    global name1, name2,name2bkup, out
    name1 = name1.lower()
    name2 = name2.lower()
    name1 = name1.replace(' ','')
    name2 = name2.replace(' ','')
    name2bkup = name2
    count = 0    #Initializing count, should update to use __init__ soon
    name_length = len(name1) + len(name2)
    for name1_letters in name1:
        for name2_letters in name2:
            if name1_letters==name2_letters:
                name2 = name2.replace(name2_letters,"0",1)
{'fraction_non_alphanumeric': 0.10038398244651674, 'fraction_numerical': 0.036204059243006036, 'mean_word_length': 3.0087912087912088, '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': '1906890', 'n_tokens_mistral': 621, 'n_tokens_neox': 590, 'n_words': 191}