<commit_before><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Include SDK JS</title>
    <script type="text/javascript" src="blipWebSdk.js"></script>
</head>

<body>
    <div class="container">
        <div class="column">

            <div class="row">
                <div class="col-xs-12">
                    <div class="jumbotron">
                        <h1>BlipWebSDK (BLiP Chat) Sandbox</h1>
                        <p>Use buttons bellow to see different behaviours of BLiP Chat</p>

                        <button onclick="buildSDK(BlipWebSDK.AuthType.GUEST)">Build SDK as GUEST (Default)</button>
                        <button onclick="buildSDK(BlipWebSDK.AuthType.LOGIN)">Build SDK as LOGIN</button>
                        <button onclick="buildSDK(BlipWebSDK.AuthType.DEV)">Build SDK as DEV</button>
                        <button onclick="changeSDK()">Change SDK Template</button>
                        <button onclick="sendMessage()">Send test message</button>
                        <button onclick="destroySDK()">Destroy SDK</button>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <div class="jumbotron">
                        <h1>Customize Widget</h1>
                        <p>Enter values for Title, Icon Path and Widget Color and click on build to see entered values applied</p>

                        <form>
                            Title: <input type="text" id="title">
                            <br> Icon Path: <input type="text" id="iconPath">
                            <br> Widget Color: <input type="text" id="widgetColor">
                            <br> Hide Menu: <input type="radio" name="hideMenu" value="true">True <input type="radio" name="hideMenu" value="false">False
                            <br>
                        </form>

                        <button onclick="applyValues()">Apply Values</button>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <div class="jumbotron">
                        <h1>For authentication type DEV</h1>
                        <p>Enter the name and email of the client (We will create a random identifier and password for them)</p>

                        <form>
                            Full Name: <input type="text" id="fullName">
                            <br> Email: <input type="text" id="email">
                            <br> Id: <input type="text" id="userId" value="391f4be0-ae0a-43fa-919a-a729df697a42" disabled="disabled">
                            <br> Password: <input type="text" id="userPass" value="<PASSWORD>" disabled="disabled">
                            <br>
                        </form>
                    </div>
                </div>
            </div>

        </div>


    </div>
    <div id="sdk-target" style="height:550px; width: 50%"> </div>

    <script>
    var sendMessage;
    var destroySDK;
    var buildSDK;
    var currentTemplate;
    var blipsdk;
    (function () {
        window.onload = function () {

            var apiKey = 'YOUR-APIKEY';

            var options = {
                config: {
                    authType: BlipWebSDK.AuthType.GUEST
                },
                window: {
                    target: 'sdk-target',
                    //hideMenu: true,
                    //title: 'BLiP Chat Title Sample',
                    //iconPath: 'https://takenetomni.blob.core.windows.net/media-db/blip.png',
                    //widgetColor: '#00FF00'
                }
            }

            sendMessage = function () {
                blipsdk.sendMessage('teste');
            }

            destroySDK = function () {
                blipsdk.destroy();
            }

            buildSDK = function (authType) {
                if (blipsdk) {
                    blipsdk.destroy();
                }

                options.window.target = currentTemplate;
                options.config.authType = authType;
                options.config.user = {
                    id: document.getElementById('userId').value, // Required
                    password: document.getElementById('<PASSWORD>').value, // Required
                    name: document.getElementById('fullName').value ? document.getElementById('fullName').value : '', // Optional
                    email: document.getElementById('email').value ? document.getElementById('email').value : ''// Optional
                };

                blipsdk = new BlipWebSDK.ChatBuilder()
                .withApiKey(apiKey)
                blipsdk.build(options);
            }

            changeSDK = function () {

                if (currentTemplate !== undefined) {
                    currentTemplate = undefined;
                } else {
                    currentTemplate = 'sdk-target';
                }
<commit_msg>Enable id and password input fields for test application<commit_after><!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Include SDK JS</title>
    <script type="text/javascript" src="blipWebSdk.js"></script>
</head>

<body>
    <div class="container">
        <div class="column">

            <div class="row">
                <div class="col-xs-12">
                    <div class="jumbotron">
                        <h1>BlipWebSDK (BLiP Chat) Sandbox</h1>
                        <p>Use buttons bellow to see different behaviours of BLiP Chat</p>

                        <button onclick="buildSDK(BlipWebSDK.AuthType.GUEST)">Build SDK as GUEST (Default)</button>
                        <button onclick="buildSDK(BlipWebSDK.AuthType.LOGIN)">Build SDK as LOGIN</button>
                        <button onclick="buildSDK(BlipWebSDK.AuthType.DEV)">Build SDK as DEV</button>
                        <button onclick="changeSDK()">Change SDK Template</button>
                        <button onclick="sendMessage()">Send test message</button>
                        <button onclick="destroySDK()">Destroy SDK</button>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <div class="jumbotron">
                        <h1>Customize Widget</h1>
                        <p>Enter values for Title, Icon Path and Widget Color and click on build to see entered values applied</p>

                        <form>
                            Title: <input type="text" id="title">
                            <br> Icon Path: <input type="text" id="iconPath">
                            <br> Widget Color: <input type="text" id="widgetColor">
                            <br> Hide Menu: <input type="radio" name="hideMenu" value="true">True <input type="radio" name="hideMenu" value="false">False
                            <br>
                        </form>

                        <button onclick="applyValues()">Apply Values</button>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <div class="jumbotron">
                        <h1>For authentication type DEV</h1>
                        <p>Enter the name and email of the client (We will create a random identifier and password for them)</p>

                        <form>
                            Full Name: <input type="text" id="fullName">
                            <br> Email: <input type="text" id="email">
                            <br> Id: <input type="text" id="userId" value="">
                            <br> Password: <input type="text" id="<PASSWORD>Pass" value="">
                            <br>
                        </form>
                    </div>
                </div>
            </div>

        </div>


    </div>
    <div id="sdk-target" style="height:550px; width: 50%"> </div>

    <script>
    var sendMessage;
    var destroySDK;
    var buildSDK;
    var currentTemplate;
    var blipsdk;
    (function () {
        window.onload = function () {


            var options = {
                config: {
                    authType: BlipWebSDK.AuthType.GUEST
                },
                window: {
                    target: 'sdk-target',
                    //hideMenu: true,
                    //title: 'BLiP Chat Title Sample',
                    //iconPath: 'https://takenetomni.blob.core.windows.net/media-db/blip.png',
                    //widgetColor: '#00FF00'
                }
            }

            sendMessage = function () {
                blipsdk.sendMessage('teste');
            }

            destroySDK = function () {
                blipsdk.destroy();
            }

            buildSDK = function (authType) {
                if (blipsdk) {
                    blipsdk.destroy();
                }

                options.window.target = currentTemplate;
                options.config.authType = authType;
                options.config.user = {
                    id: document.getElementById('userId').value ? document.getElementById('userId').value : '391f4be0-ae0a-43fa-919a-a729df697a42', // Required
                    password: document.getElementById('userPass').value ? document.getElementById('userPass').value : '<PASSWORD>', // Required
                    name: document.getElementById('fullName').value ? document.getElementById('fullName').value : '', // Optional
                    email: document.getElementById('email').value ? document.getElementById('email').value : ''// Optional
                };

                blipsdk = new BlipWebSDK.ChatBuilder()
                .withApiKey(apiKey)
                blipsdk.build(options);
            }

            changeSDK = function () {

                if (currentTemplate !== undefined) {
                    currentTemplate = undefined;
                } else {
                    currentTemplate = 'sdk-target';
                }

{'fraction_non_alphanumeric': 0.12265150785239426, 'fraction_numerical': 0.008285962038732055, 'mean_word_length': 1.3590909090909091, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 175, 'https://': 2, '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': '7176759', 'n_tokens_mistral': 2809, 'n_tokens_neox': 2547, 'n_words': 579}