<commit_before>$(function() {
    var onAmazonLoginReady = function() {
            amazon.Login.setClientId("amzn1.application-oa2-client.86174d2cae1d4fe9950b7f31f4d1e3aa");
        },
        sdkScriptEl = document.createElement('script');

    sdkScriptEl.type = "text/javascript";
    sdkScriptEl.async = true;
    sdkScriptEl.id = "amazon-login-sdk";
    sdkScriptEl.src = "https://api-cdn.amazon.com/sdk/login1.js";
    document.getElementById("amazon-root").appendChild(sdkScriptEl);

    document.getElementById("amazon-signin").onclick = function() {
        options = { scope : 'profile' };
        amazon.Login.authorize(options)
            .onComplete(function(authResult) {
                if (authResult.status === "complete") {
                    var expiresInMs = parseInt(authResult.expires_in) * 1000;
                    $("#amazon-signin").hide();
                    $(document).trigger("tokenReceived.s3Demo");

                    amazon.Login.retrieveProfile(function(response) {
                        s3DemoGlobals.userName = response.profile.Name;
                    });

                    s3DemoGlobals.assumeRoleWithWebIdentity({
                        idToken: authResult.access_token,
                        roleArn: "arn:aws:iam::776099607611:role/demo-s3-noserver-amazon",
                        providerId: "www.amazon.com"
                    });

                    setTimeout(function() {
                        alert("Token expired. You must sign in again.");
                        $(document).trigger("tokenExpired.s3Demo");<commit_msg>docs($example): #1047 - remove AWS SDK URL protocol<commit_after>$(function() {
    var onAmazonLoginReady = function() {
            amazon.Login.setClientId("amzn1.application-oa2-client.86174d2cae1d4fe9950b7f31f4d1e3aa");
        },
        sdkScriptEl = document.createElement('script');

    sdkScriptEl.type = "text/javascript";
    sdkScriptEl.async = true;
    sdkScriptEl.id = "amazon-login-sdk";
    sdkScriptEl.src = "//api-cdn.amazon.com/sdk/login1.js";
    document.getElementById("amazon-root").appendChild(sdkScriptEl);

    document.getElementById("amazon-signin").onclick = function() {
        options = { scope : 'profile' };
        amazon.Login.authorize(options)
            .onComplete(function(authResult) {
                if (authResult.status === "complete") {
                    var expiresInMs = parseInt(authResult.expires_in) * 1000;
                    $("#amazon-signin").hide();
                    $(document).trigger("tokenReceived.s3Demo");

                    amazon.Login.retrieveProfile(function(response) {
                        s3DemoGlobals.userName = response.profile.Name;
                    });

                    s3DemoGlobals.assumeRoleWithWebIdentity({
                        idToken: authResult.access_token,
                        roleArn: "arn:aws:iam::776099607611:role/demo-s3-noserver-amazon",
                        providerId: "www.amazon.com"
                    });

                    setTimeout(function() {
                        alert("Token expired. You must sign in again.");
                        $(document).trigger("tokenExpired.s3Demo");
{'fraction_non_alphanumeric': 0.12437655860349127, 'fraction_numerical': 0.02743142144638404, 'mean_word_length': 1.9576036866359448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '103035', 'n_tokens_mistral': 955, 'n_tokens_neox': 851, 'n_words': 107}