<commit_before><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" class="fl-layout-">
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>__MSG__WIDGET_PLAYGROUND__ - Listpeople</title>

        <!-- Sakai Core CSS -->
        <link rel="stylesheet" type="text/css" href="../../_css/FSS/fss-base.css" />
        <link rel="stylesheet" type="text/css" href="../../_css/sakai/sakai.base.css" />
        <link rel="stylesheet" type="text/css" href="../../_css/sakai/sakai.core.2.css" />
        <link rel="stylesheet" type="text/css" href="../../_css/sakai/sakai.3.css" />

        <!-- Sakai Page CSS -->
        <!-- <link rel="stylesheet" type="text/css" href="_css/sakai/sakai.profile.css" /> -->

        <!-- Sakai Config JS -->
        <script type="text/javascript" src="../../_configuration/widgets.js"></script>
        <script type="text/javascript" src="/var/widgets.json?callback=sakai.storeWidgets"></script>
        <script type="text/javascript" src="../../_configuration/config.js"></script>

        <!-- Core 3rd-party JS -->
        <script type="text/javascript" src="../../_lib/jquery/jquery.js"></script>
        <script type="text/javascript" src="../../_lib/jquery/jquery-ui.full.js"></script>
        <script type="text/javascript" src="../../_lib/Fluid/3akai_Infusion.js"></script>
        <script type="text/javascript" src="../../_lib/jquery/plugins/jquery.json.js"></script>
        <script type="text/javascript" src="/dev/_lib/google/html-sanitizer-minified.js"></script>

        <!-- Sakai Core JS -->
        <script type="text/javascript" src="../../_lib/sakai_util/sakai_magic.js"></script>
        <script type="text/javascript" src="../../_lib/sakai_util/i18n.js"></script>

        <!-- 3rd party JS -->
        <script type="text/javascript" src="../../_lib/sakai_util/trimpath.template.js"></script>

    </head>

    <body class="fl-centered profile_preview i18nable">

        <!-- HEADER -->
        <div class="fl-container-flex header">
            <div class="fl-fix fl-centered fixed-container">
                <div class="decor"></div>

                <!-- TITLE BAR  -->
                <div class="s3d-site-heading fl-force-left">
                    <h1 id="sitetitle">__MSG__WIDGET_PLAYGROUND__ - Listpeople</h1>
                </div>
            </div>
        </div>

        <!-- CONTENT -->
        <div class="fl-centered fixed-container" style="background: #fff; min-height: 400px;">

            <div id="widget_pickeruser" class="widget_inline"></div>
            <br><br><div id="test_response">pickeruser response:</div><br><br>
            <div id="widget_listpeople" class="widget_inline"></div>

        </div>

        <!-- FOOTER WIDGET -->
        <div id="widget_footer" class="widget_inline footercontainer"></div>

        <script>

            // Page code
            $(window).bind("pickeruser_ready", function(e, tuid){

                var pl_config = {"mode": "search", "type": "people", "spaceName": "Widget Playground", "selectable":true, "subNameInfo": "email", "sortOn": "lastName", "items": 50 };

                sakai.api.UI.pickerUser.render(tuid, pl_config);

            });

            // Page code
            $(window).bind("listpeople_ready", function(e, ltuid){
                $(window).bind("pickeruser_finished", function(e, tuid){
                    $("#test_response").html("Response:<br>"+sakai.data.pickeruser[tuid].selectCount+" users selected: ");
                    $.each(sakai.data.pickeruser[tuid]["selected"], function(index, value) {
                        $("#test_response").append(index+", ");
                    });
console.log(tuid);
console.log(ltuid);

                    var json_data = {
                        "results" : sakai.data.pickeruser[tuid]["selected"],
                        "total" : sakai.data.pickeruser[tuid].selectCount
                    };

                    var pl_query = sakai.config.URL.SEARCH_USERS + "?q=*&page=0&items=12&_=" + (Math.random() * 100000000000000000);
                    //var pl_query = "/sites/test.members.json?sort=firstName,asc&start=0&items=10&_=" + (Math.random() * 100000000000000000);
                    var pl_config = {"selectable":true, "subNameInfo": "email", "sortOn": "lastName", "sortOrder": "ascending", "items": 50, "function": "getSelection" };
                    //sakai.api.UI.listPeople.render(ltuid, pl_query, pl_config, sakai.data.pickeruser[tuid]["selected"]);
                    sakai.api.UI.listPeople.render(ltuid, pl_query, pl_config, json_data);
                });
            });

        </script>

    </body>
<commit_msg>SAKIII-448 work on listpeople widget<commit_after><!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" class="fl-layout-">
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>__MSG__WIDGET_PLAYGROUND__ - Listpeople</title>

        <!-- Sakai Core CSS -->
        <link rel="stylesheet" type="text/css" href="../../_css/FSS/fss-base.css" />
        <link rel="stylesheet" type="text/css" href="../../_css/sakai/sakai.base.css" />
        <link rel="stylesheet" type="text/css" href="../../_css/sakai/sakai.core.2.css" />
        <link rel="stylesheet" type="text/css" href="../../_css/sakai/sakai.3.css" />

        <!-- Sakai Page CSS -->
        <!-- <link rel="stylesheet" type="text/css" href="_css/sakai/sakai.profile.css" /> -->

        <!-- Sakai Config JS -->
        <script type="text/javascript" src="../../_configuration/widgets.js"></script>
        <script type="text/javascript" src="/var/widgets.json?callback=sakai.storeWidgets"></script>
        <script type="text/javascript" src="../../_configuration/config.js"></script>

        <!-- Core 3rd-party JS -->
        <script type="text/javascript" src="../../_lib/jquery/jquery.js"></script>
        <script type="text/javascript" src="../../_lib/jquery/jquery-ui.full.js"></script>
        <script type="text/javascript" src="../../_lib/Fluid/3akai_Infusion.js"></script>
        <script type="text/javascript" src="../../_lib/jquery/plugins/jquery.json.js"></script>
        <script type="text/javascript" src="/dev/_lib/google/html-sanitizer-minified.js"></script>

        <!-- Sakai Core JS -->
        <script type="text/javascript" src="../../_lib/sakai_util/sakai_magic.js"></script>
        <script type="text/javascript" src="../../_lib/sakai_util/i18n.js"></script>

        <!-- 3rd party JS -->
        <script type="text/javascript" src="../../_lib/sakai_util/trimpath.template.js"></script>

    </head>

    <body class="fl-centered profile_preview i18nable">

        <!-- HEADER -->
        <div class="fl-container-flex header">
            <div class="fl-fix fl-centered fixed-container">
                <div class="decor"></div>

                <!-- TITLE BAR  -->
                <div class="s3d-site-heading fl-force-left">
                    <h1 id="sitetitle">__MSG__WIDGET_PLAYGROUND__ - Listpeople</h1>
                </div>
            </div>
        </div>

        <!-- CONTENT -->
        <div class="fl-centered fixed-container" style="background: #fff; min-height: 400px;">

            <div id="widget_pickeruser" class="widget_inline"></div>
            <br><br><div id="test_response">pickeruser response:</div><br><br>
            <div id="widget_listpeople" class="widget_inline"></div>

        </div>

        <!-- FOOTER WIDGET -->
        <div id="widget_footer" class="widget_inline footercontainer"></div>

        <script>

            // Page code
            $(window).bind("pickeruser_ready", function(e, tuid){

                var pl_config = {"mode": "search", "type": "people", "spaceName": "Widget Playground", "selectable":true, "subNameInfo": "email", "sortOn": "lastName", "items": 50 };

                sakai.api.UI.pickerUser.render(tuid, pl_config);

            });

            // Page code
            $(window).bind("listpeople_ready", function(e, ltuid){
                $(window).bind("pickeruser_finished", function(e, tuid){
                    $("#test_response").html("Response:<br>"+sakai.data.pickeruser[tuid].selectCount+" users selected: ");
                    $.each(sakai.data.pickeruser[tuid]["selected"], function(index, value) {
                        $("#test_response").append(index+", ");
                    });

                    var json_data = {
                        "results" : sakai.data.pickeruser[tuid]["selected"],
                        "total" : sakai.data.pickeruser[tuid].selectCount
                    };

                    var pl_query = sakai.config.URL.SEARCH_USERS + "?q=*&page=0&items=12&_=" + (Math.random() * 100000000000000000);
                    //var pl_query = "/sites/test.members.json?sort=firstName,asc&start=0&items=10&_=" + (Math.random() * 100000000000000000);
                    var pl_config = {"selectable":true, "subNameInfo": "email", "sortOn": "lastName", "sortOrder": "ascending", "items": 50, "function": "getSelection" };
                    //sakai.api.UI.listPeople.render(ltuid, pl_query, pl_config, sakai.data.pickeruser[tuid]["selected"]);
                    sakai.api.UI.listPeople.render(ltuid, pl_query, pl_config, json_data);
                });
            });

        </script>

    </body>

{'fraction_non_alphanumeric': 0.19194616534928435, 'fraction_numerical': 0.014633625293740654, 'mean_word_length': 2.2420360110803323, 'pattern_counts': {'":': 26, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 4, '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': '1989066', 'n_tokens_mistral': 3012, 'n_tokens_neox': 2791, 'n_words': 430}