<commit_before>package dsmoq.pages;

import dsmoq.Page;
import dsmoq.framework.types.PageContent;
import js.bootstrap.BootstrapButton;
import js.html.Element;
import js.support.ControllableStream;
import js.jsviews.JsViews;
import dsmoq.framework.View;
import js.jqhx.JqHtml;
import js.jqhx.JQuery;
import dsmoq.models.Service;

class ProfilePage {
    public static function create(): PageContent<Page> {
        return {
            navigation: new ControllableStream(),
            invalidate: function (container: Element) {
                var root = new JqHtml(container);

                if (Service.instance.profile.isGuest) {
                    container.innerHTML = "unauthorized";
                } else {
                    var data = {
                        basics: {
                            name: Service.instance.profile.name,
                            fullname: Service.instance.profile.fullname,
                            organization: Service.instance.profile.organization,
                            title: Service.instance.profile.title,
                            description: Service.instance.profile.description,
                            image: Service.instance.profile.image,
                            errors: {
                                name: "",
                                fullname: "",
                                organization: "",
                                title: "",
                                description: "",
                                image: "",
                            }<commit_msg>[Client]import整理<commit_after>package dsmoq.pages;

import dsmoq.framework.types.PageContent;
import dsmoq.framework.View;
import dsmoq.models.Service;
import dsmoq.Page;
import js.bootstrap.BootstrapButton;
import js.html.Element;
import js.jqhx.JqHtml;
import js.jsviews.JsViews;
import js.support.ControllableStream;

class ProfilePage {
    public static function create(): PageContent<Page> {
        return {
            navigation: new ControllableStream(),
            invalidate: function (container: Element) {
                var root = new JqHtml(container);

                if (Service.instance.profile.isGuest) {
                    container.innerHTML = "unauthorized";
                } else {
                    var data = {
                        basics: {
                            name: Service.instance.profile.name,
                            fullname: Service.instance.profile.fullname,
                            organization: Service.instance.profile.organization,
                            title: Service.instance.profile.title,
                            description: Service.instance.profile.description,
                            image: Service.instance.profile.image,
                            errors: {
                                name: "",
                                fullname: "",
                                organization: "",
                                title: "",
                                description: "",
                                image: "",
                            }
{'fraction_non_alphanumeric': 0.08301282051282051, 'fraction_numerical': 0.0, 'mean_word_length': 1.2437095614665707, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3094764', 'n_tokens_mistral': 726, 'n_tokens_neox': 691, 'n_words': 134}