<commit_before>function getContent(req::Request, res::Response)
  registerPage = Page("main.html","register.html",Dict())
  Response(getParsedContent(registerPage))
end

function postContent(req::Request, res::Response)
  # Check all values of post requests
  for n in eachindex(foo)
    global pseudo = foo[n][1] == "pseudo" ? foo[n][2] : !is_null(pseudo) ? pseudo : ""
    global password = foo[n][1] == "password" ? foo[n][2] : !is_null(password) ? password : ""
    global mail = foo[n][1] == "mail" ? foo[n][2] : !is_null(mail) ? mail : ""
  end
  registerPage = Page("main.html","register.html",Dict())
  if !is_null(pseudo) && !is_null(password) && !is_null(mail)
    # etc...
   else
    critical("Have you defined all inputs ?")
   end
  Response(getParsedContent(registerPage))
end<commit_msg>Revert "Fix last commit of registerController.jl"<commit_after>function getContent(req::Request, res::Response)
  registerPage = Page("main.html","register.html",Dict())
  Response(getParsedContent(registerPage))
end

function postContent(req::Request, res::Response)
  for n in eachindex(foo)
    global pseudo = foo[n][1] == "pseudo" ? foo[n][2] : isdefined(:pseudo) ? pseudo : ""
    global password = foo[n][1] == "password" ? foo[n][2] : isdefined(:password) ? password : ""
    global mail = foo[n][1] == "mail" ? foo[n][2] : isdefined(:mail) ? mail : ""
  end
  registerPage = Page("main.html","register.html",Dict())
  if !is_null(pseudo) && !is_null(password) && !is_null(mail)
    println("pseudo: ", pseudo)
    println("password: ", password)
    println("mail: ", mail)
   else
    critical("Have you defined all inputs ?")
   end
  Response(getParsedContent(registerPage))
end
{'fraction_non_alphanumeric': 0.1772002362669817, 'fraction_numerical': 0.0070880094506792675, 'mean_word_length': 5.05, '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': '1862456', 'n_tokens_mistral': 569, 'n_tokens_neox': 562, 'n_words': 119}