<commit_before>package opticnav.web.controllers;

import opticnav.web.components.UserSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SimplePagesController {
    @Autowired
    private UserSession userSession;
    
    @RequestMapping("/")
    public String index() {
        if (this.userSession.getUser() == null) {
            return "index";
        } else {
            return "hub";
        }
    }
    
    @RequestMapping("/logout")
    public String logout() {
        this.userSession.resetUser();
        return "redirect:/";
    }
    
    @RequestMapping("/register")
    public String registerAccount() {
        return "registerAccount";
    }
    
    @RequestMapping("/about")
    public String about() {
        return "about";
    }
    
    @RequestMapping("/contact")
    public String contact() {
        return "contact";
    }
    
    @RequestMapping("/download")
    public String download() {
        return "download";
    }
    
    @RequestMapping("/help")
    public String help() {
        return "help";
    }
    @RequestMapping("/map")
    public String map() {
        return "map";
    }
    @RequestMapping("/instance")
    public String instance() {<commit_msg>WEB: deleted old/unused controller<commit_after>package opticnav.web.controllers;

import opticnav.web.components.UserSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SimplePagesController {
    @Autowired
    private UserSession userSession;
    
    @RequestMapping("/")
    public String index() {
        if (this.userSession.getUser() == null) {
            return "index";
        } else {
            return "hub";
        }
    }
    
    @RequestMapping("/logout")
    public String logout() {
        this.userSession.resetUser();
        return "redirect:/";
    }
    
    @RequestMapping("/register")
    public String registerAccount() {
        return "registerAccount";
    }
    
    @RequestMapping("/contact")
    public String contact() {
        return "contact";
    }
    
    @RequestMapping("/download")
    public String download() {
        return "download";
    }
    
    @RequestMapping("/support")
    public String support() {
        return "support";
    }
    @RequestMapping("/map")
    public String map() {
        return "map";
    }
    @RequestMapping("/instance")
    public String instance() {
{'fraction_non_alphanumeric': 0.11885098743267504, 'fraction_numerical': 0.0, 'mean_word_length': 2.6134889753566797, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7591034', 'n_tokens_mistral': 738, 'n_tokens_neox': 740, 'n_words': 155}