<commit_before># -*- coding: utf-8 -*-
# My modules
import genetics
import cities
# General modules
import sys
import random
import matplotlib.pyplot as plt
import math

### System DEFAULT parameters:
time   = 10**3 # number of generations
popNo  = 10**3 # population size
heurNo = 5     # number of heruristic solutions
xmen   = 0.001 # probabilty of mutation

### System optional command line parameter:
for a in sys.argv:
    if a in ['--population','--pop','-population','-pop']:
        popNo = int(sys.argv[sys.argv.index(a)+1])
    if a in ['--probability','--prob','-probability','-prob']:
        xmen = float(sys.argv[sys.argv.index(a)+1])
    if a in ['--time','--t','-t']:
        time = int(sys.argv[sys.argv.index(a)+1])

# Load the CSV file with Countries and coordinates
countries = cities.loadCountries('SA') # South America

# Calculate the distance between countries
countryNo = len(countries)<commit_msg>Added --type parameter to choose continent<commit_after># -*- coding: utf-8 -*-
# My modules
import genetics
import cities
# General modules
import sys
import random
import matplotlib.pyplot as plt
import math

### System DEFAULT parameters:
time   = 10**3  # number of generations
popNo  = 10**3  # population size
heurNo = 5      # number of heruristic solutions
xmen   = 0.001  # probabilty of mutation
continent = 'SA'# South America

### System optional command line parameter:
for a in sys.argv:
    if a in ['--population','--pop','-population','-pop']:
        popNo = int(sys.argv[sys.argv.index(a)+1])
    if a in ['--probability','--prob','-probability','-prob']:
        xmen = float(sys.argv[sys.argv.index(a)+1])
    if a in ['--time','--t','-t']:
        time = int(sys.argv[sys.argv.index(a)+1])
    if a in ['--type']:
        allowed = ['AS','SA','NA','AO','EU','AF','ALL']
        continent = sys.argv[sys.argv.index(a)+1]
        if continent.strip() not in allowed:
            sys.exit("""Wrong parameter! \n --type can be one of {}""".format(allowed))


# Load the CSV file with Countries and coordinates
countries = cities.loadCountries(continent) # South America

# Calculate the distance between countries
countryNo = len(countries)
{'fraction_non_alphanumeric': 0.15719523373052247, 'fraction_numerical': 0.014207149404216315, 'mean_word_length': 3.5196687370600412, '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': '1586874', 'n_tokens_mistral': 706, 'n_tokens_neox': 672, 'n_words': 210}