<commit_before><!DOCTYPE html>

<html>

<head>

  <title>AWS SDK for JavaScript - Sample Application</title>

  <script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.12.min.js"></script>

</head>

<body>

  <input type="file" id="file-chooser" />

  <button id="upload-button" style="display:none">Upload to S3</button>

  <div id="fb-root"></div>

  <script type="text/javascript">
    var appId = '152929595065731';

    var roleArn = 'Yarn:aws:iam::399748833865:role/mapIoT';

  

    AWS.config.region = '(ap-northeast-1';


    var fbUserId;


    var button = document.getElementById('upload-button');

    var results = document.getElementById('results');

    button.addEventListener('click', function() {
        alert(fbUserId)
    });

    /*!

     * Login to your application using Facebook.<commit_msg>add test2<commit_after><!DOCTYPE html>

<html>

<head>

  <title>AWS SDK for JavaScript - Sample Application</title>

  <script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.12.min.js"></script>

</head>

<body>

  <input type="file" id="file-chooser" />

  <button id="upload-button" style="display:none">Upload to S3</button>

  <div id="fb-root"></div>

  <script type="text/javascript">
    var appId = '152929595065731';

    var roleArn = 'Yarn:aws:iam::399748833865:role/mapIoT';



    AWS.config.region = '(ap-northeast-1';


    var fbUserId;


    var button = document.getElementById('upload-button');

    var results = document.getElementById('results');

    button.addEventListener('click', function() {
        console.log(fbUserId)
        $.ajax({
          //crossDomain: true,
          type: "POST",
          headers: { 'X-API-KEY': '<KEY>' },
          //cache: false,
          //contentType:'application/json',
          url: "https://qrb5uht5ta.execute-api.ap-northeast-1.amazonaws.com/prod/s3iot2",
          data: JSON.stringify({
            "key1": fbUserId
          }),
          //dataType: 'json',
          success: function(ret) {

            console.log(JSON.stringify(ret));

          }
        });
      });


    });

    /*!

     * Login to your application using Facebook.
{'fraction_non_alphanumeric': 0.169165885660731, 'fraction_numerical': 0.03420805998125586, 'mean_word_length': 2.7065972222222223, 'pattern_counts': {'":': 1, '<': 34, '<?xml version=': 0, '>': 34, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4277410', 'n_tokens_mistral': 765, 'n_tokens_neox': 692, 'n_words': 124}