<commit_before>package de.tu_berlin.cit.intercloud.webapp.template;

import de.agilecoders.wicket.core.markup.html.bootstrap.image.GlyphIconType;
import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar;
import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarButton;
import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarComponents;
import de.tu_berlin.cit.intercloud.webapp.IntercloudWebSession;
import de.tu_berlin.cit.intercloud.webapp.pages.LoginPage;
import de.tu_berlin.cit.intercloud.webapp.pages.WelcomePage;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.model.Model;

public abstract class Template extends WebPage {
    public static String NAVBAR_ID = "navbar";

    public Template() {
        super();

        add(navbar(NAVBAR_ID));
    }

    private Navbar navbar(String markupId) {
        Navbar navbar = new Navbar(markupId);
        navbar.setBrandName(Model.of("Intercloud"));

        navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.RIGHT,
                new NavbarButton(LoginPage.class, Model.of()).setIconType(GlyphIconType.login)));
        navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
                new NavbarButton(WelcomePage.class, Model.of("Welcome")).setIconType(GlyphIconType.home)));<commit_msg>added external links to github<commit_after>package de.tu_berlin.cit.intercloud.webapp.template;

import de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapExternalLink;
import de.agilecoders.wicket.core.markup.html.bootstrap.image.GlyphIconType;
import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.Navbar;
import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarButton;
import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarComponents;
import de.agilecoders.wicket.core.markup.html.bootstrap.navbar.NavbarExternalLink;
import de.tu_berlin.cit.intercloud.webapp.IntercloudWebSession;
import de.tu_berlin.cit.intercloud.webapp.pages.LoginPage;
import de.tu_berlin.cit.intercloud.webapp.pages.WelcomePage;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.model.Model;

public abstract class Template extends WebPage {
    public static String NAVBAR_ID = "navbar";

    public Template() {
        super();

        add(navbar(NAVBAR_ID));
    }

    private Navbar navbar(String markupId) {
        Navbar navbar = new Navbar(markupId);
        navbar.setBrandName(Model.of("Intercloud"));

        navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.RIGHT,
                new NavbarButton(LoginPage.class, Model.of()).setIconType(GlyphIconType.login)));
        navbar.addComponents(NavbarComponents.transform(Navbar.ComponentPosition.LEFT,
                new NavbarButton(WelcomePage.class, Model.of("Welcome")).setIconType(GlyphIconType.home),
        		new NavbarExternalLink(Model.of("http://citlab.github.io/Intercloud/"))
                .setLabel(Model.of("Documentation"))
                .setTarget(BootstrapExternalLink.Target.blank)
                .setIconType(GlyphIconType.paperclip),
                new NavbarExternalLink(Model.of("https://github.com/citlab/Intercloud"))
                .setLabel(Model.of("Github"))
                .setTarget(BootstrapExternalLink.Target.blank)
                .setIconType(GlyphIconType.export)));
{'fraction_non_alphanumeric': 0.11358966832990901, 'fraction_numerical': 0.0, 'mean_word_length': 4.132530120481928, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6748208', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1038, 'n_words': 121}