<commit_before># 0 - 100
age = 29

# male = 1, female 10
gender = 10

# 2 single, 4 relationship,  6 open relationship, 8 it's complicated, 10 I'm a pizza, 0 depends
status = 4

# 0 - 10 (%)
ignorance = 1

# euros
money_have = 1000
money_wants = 10
money_spent = -200

money = (money_have - money_spent) - money_wants

def money_score(money):
	if money == 0:
		return 2
	elif money > 0:
		return 0
	elif money < 0 and money >= -1000:
		return 5
	else:
		return 10


# klout score
popularity_online = 64

# number of real friends
# 0 - 2 = 0, 3 - 5 = 4, 6+ = 10
rl_friends = 0


def age_calc(age):
	if age <= 10:
		return 2
	elif age >= 11 and age <= 20:
		return 8
	elif age >= 21 and age <= 30:
		return 4
	elif age >= 31 and age <= 50:
		return 10
	elif age >= 51:
		return 0
	else:
		return 0

def klout_calc(score):
	if score <= 40:
		return 0
	elif score > 40 and score <= 50:
		return 4
	elif score > 50 and score <= 60:
		return 6
	elif score > 60 and score <= 80:
		return 8
	elif score > 80:
		return 10
	else:
		return 0

my_score = age_calc(age) + gender + status - ignorance + money_score(money) + klout_calc(popularity_online) + rl_friends
max_score = 10 * 6

print "Your complexity score is:"
print (my_score / float(max_score)) * 100<commit_msg>complicators as a list<commit_after>
# list of variables that need to be taken into account
complicators = ["age", "gender", "status", "ignorance", "money", "popularity_online", "rl_friends"]



# 0 - 100
age = 29

# male = 1, female 10
gender = 10

# 2 single, 4 relationship,  6 open relationship, 8 it's complicated, 10 I'm a pizza, 0 depends
status = 4

# 0 - 10 (%)
ignorance = 1

# euros
money_have = 1000
money_wants = 10
money_spent = -200

money = (money_have - money_spent) - money_wants

def money_score(money):
	if money == 0:
		return 2
	elif money > 0:
		return 0
	elif money < 0 and money >= -1000:
		return 5
	else:
		return 10


# klout score
popularity_online = 64

# number of real friends
# 0 - 2 = 0, 3 - 5 = 4, 6+ = 10
rl_friends = 0


def age_calc(age):
	if age <= 10:
		return 2
	elif age >= 11 and age <= 20:
		return 8
	elif age >= 21 and age <= 30:
		return 4
	elif age >= 31 and age <= 50:
		return 10
	elif age >= 51:
		return 0
	else:
		return 0

def klout_calc(score):
	if score <= 40:
		return 0
	elif score > 40 and score <= 50:
		return 4
	elif score > 50 and score <= 60:
		return 6
	elif score > 60 and score <= 80:
		return 8
	elif score > 80:
		return 10
	else:
		return 0

def overall_score(*complicators):
	my_score = age_calc(age) + gender + status - ignorance + money_score(money) + klout_calc(popularity_online) + rl_friends
	max_score = 10 * 6
	result = (my_score / float(max_score)) * 100
	return result

print "Your complexity score is:"
print overall_score(*complicators)
{'fraction_non_alphanumeric': 0.10655147588192944, 'fraction_numerical': 0.07775377969762419, 'mean_word_length': 3.166416791604198, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '5960310', 'n_tokens_mistral': 1278, 'n_tokens_neox': 996, 'n_words': 392}