<commit_before><!DOCTYPE HTML>
<!--
  Verti by HTML5 UP
  html5up.net | @n33co
  Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
  <head>
    <title>Jot - Crowdsourced Authoring</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.dropotron.min.js"></script>
    <script src="js/skel.min.js"></script>
    <script src="js/skel-layers.min.js"></script>
    <script src="js/init.js"></script>
    <script src="js/parse/functions.js"></script>
    <script src="js/parse/parse-1.2.19.js"></script>
    <noscript>
      <link rel="stylesheet" href="css/skel.css" />
      <link rel="stylesheet" href="css/style.css" />
      <link rel="stylesheet" href="css/style-desktop.css" />
    </noscript>
    <!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
    <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script>
  </head>
  <body class="homepage">

    <!-- Header -->
    <div id="header-wrapper">
      <header id="header" class="container">

        <!-- Logo -->
        <div>
          <img src="./images/logo.png" height="150" width="150">
          <h1>Create. Write. Publish. Print.</h1>
          <span>A <i>novel</i> way to write books.</span>
        </div>

        <!-- Nav -->
          <nav id="nav">
            <ul>
              <li><a href="index.html">Home</a></li>
              <li>
                <a href="">Catalog</a>
                <ul>
                  <li><a href="#">All</a></li>
                  <li><a href="#">Fiction</a></li>
                  <li><a href="#">Non-Fiction</a></li>
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Adventure</a></li>
                  <li><a href="#">Mystery</a></li>
                  <li><a href="#">Romance</a></li>
                </ul>
              </li>
              <li class="current"><a href="profile.html">Profile</a></li>
              <li><a href="writing.html">Write</a></li>
              <li><a href="create.html">Sign Up</a></li>
            </ul>
          </nav>

      </header>
    </div>


    <!-- logging in -->
    <div id="messagesDiv"></div>
    <div id="banner-wrapper">
      <div id="banner" class="box container" style="padding: 1em">
        <div class="row">
          <div class="12u">
            <form id="fileupload" name="fileupload" enctype="multipart/form-data" method="post">
              <fieldset>
                <h3> Username - </h3> <h3 id="userstuff"><script> var user = Parse.User.current(); user.fetch().then(function(fetchedUser){ var name = fetchedUser.getUsername(); }); $('#userstuff').html("name");
                </script> </h3>
                  <h3> Profile Picture - </h3> <script> var img = document.createElement("img");
img.src = JSON.stringify(Parse.User.current().get("picture"));
document.appendChild(img); </script>
                    <input type="file" name="fileselect" id="fileselect"></input>
              <a href="#" class="button" id="uploadbutton">Update</a>
              </fieldset>
            </form>
          </div>
        </div>
      </div>
    </div>
    <br>

    <!-- parse code -->
    <script>
$(window).load(function() {
  Parse.initialize("zZBe1MJTg2fRmx62W2jJgEpSaTczz5kEdUV3tEvY", "q9XV1z0y1YAHI8aGtW<KEY>");
});
$(function() {
  var file;

  // Set an event listener on the Choose File field.
  $('#fileselect').bind("change", function(e) {
    var files = e.target.files || e.dataTransfer.files;
    // Our file var now holds the selected file
    file = files[0];
  });

  // This function is called when the user clicks on Upload to Parse. It will create the REST API request to upload this image to Parse.
  $('#uploadbutton').click(function() {
    var serverUrl = 'https://api.parse.com/1/files/' + file.name;

    $.ajax({
      type: "POST",
      beforeSend: function(request) {
        request.setRequestHeader("X-Parse-Application-Id", 'zZBe1MJTg2fRmx62W2jJgEpSaTczz5kEdUV3tEvY');
        request.setRequestHeader("X-Parse-REST-API-Key", '<KEY>');
        request.setRequestHeader("Content-Type", file.type);
      },
      url: serverUrl,
      data: file,
      processData: false,
      contentType: false,
      success: function(data) {
        var user = Parse.User.current();
        alert("you can find object at "+data.url);
        user.set("picture", data.url);
        user.save();
      },
      error: function(data) {
        var obj = jQuery.parseJSON(data);
        alert(obj.error);
      }
    });
  });


});

    </script>
  </body>
</html>
<commit_msg>reverting buggy profile change<commit_after><!DOCTYPE HTML>
<!--
  Verti by HTML5 UP
  html5up.net | @n33co
  Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
  <head>
    <title>Jot - Crowdsourced Authoring</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.dropotron.min.js"></script>
    <script src="js/skel.min.js"></script>
    <script src="js/skel-layers.min.js"></script>
    <script src="js/init.js"></script>
    <script src="js/parse/functions.js"></script>
    <script src="js/parse/parse-1.2.19.js"></script>
    <noscript>
      <link rel="stylesheet" href="css/skel.css" />
      <link rel="stylesheet" href="css/style.css" />
      <link rel="stylesheet" href="css/style-desktop.css" />
    </noscript>
    <!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
    <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script>
  </head>
  <body class="homepage">

    <!-- Header -->
    <div id="header-wrapper">
      <header id="header" class="container">

        <!-- Logo -->
        <div>
          <img src="./images/logo.png" height="150" width="150">
          <h1>Create. Write. Publish. Print.</h1>
          <span>A <i>novel</i> way to write books.</span>
        </div>

        <!-- Nav -->
          <nav id="nav">
            <ul>
              <li><a href="index.html">Home</a></li>
              <li>
                <a href="">Catalog</a>
                <ul>
                  <li><a href="#">All</a></li>
                  <li><a href="#">Fiction</a></li>
                  <li><a href="#">Non-Fiction</a></li>
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Adventure</a></li>
                  <li><a href="#">Mystery</a></li>
                  <li><a href="#">Romance</a></li>
                </ul>
              </li>
              <li class="current"><a href="profile.html">Profile</a></li>
              <li><a href="writing.html">Write</a></li>
              <li><a href="create.html">Sign Up</a></li>
            </ul>
          </nav>

      </header>
    </div>


    <!-- logging in -->
    <div id="messagesDiv"></div>
    <div id="banner-wrapper">
      <div id="banner" class="box container" style="padding: 1em">
        <div class="row">
          <div class="12u">
            <form id="fileupload" name="fileupload" enctype="multipart/form-data" method="post">
              <fieldset>
                    <input type="file" name="fileselect" id="fileselect"></input>
              <a href="#" class="button" id="uploadbutton">Update</a>
              </fieldset>
            </form>
          </div>
        </div>
      </div>
    </div>
    <br>

    <!-- parse code -->
    <script>
$(window).load(function() {
  Parse.initialize("zZBe1MJTg2fRmx62W2jJgEpSaTczz5kEdUV3tEvY", "q9XV1z0y1YAHI8aGtWFKD3UkPIkwRaOPtFLVwOWF");
});
$(function() {
  var file;

  // Set an event listener on the Choose File field.
  $('#fileselect').bind("change", function(e) {
    var files = e.target.files || e.dataTransfer.files;
    // Our file var now holds the selected file
    file = files[0];
  });

  // This function is called when the user clicks on Upload to Parse. It will create the REST API request to upload this image to Parse.
  $('#uploadbutton').click(function() {
    var serverUrl = 'https://api.parse.com/1/files/' + file.name;

    $.ajax({
      type: "POST",
      beforeSend: function(request) {
        request.setRequestHeader("X-Parse-Application-Id", 'zZBe1MJTg2fRmx62W2jJgEpSaTczz5kEdUV3tEvY');
        request.setRequestHeader("X-Parse-REST-API-Key", '<KEY>');
        request.setRequestHeader("Content-Type", file.type);
      },
      url: serverUrl,
      data: file,
      processData: false,
      contentType: false,
      success: function(data) {
        var user = Parse.User.current();
        alert("you can find object at "+data.url);
        user.set("picture", data.url);
        user.save();
      },
      error: function(data) {
        var obj = jQuery.parseJSON(data);
        alert(obj.error);
      }
    });
  });


});

    </script>
  </body>
</html>

{'fraction_non_alphanumeric': 0.1903367496339678, 'fraction_numerical': 0.011399288851704664, 'mean_word_length': 2.0310618066561013, 'pattern_counts': {'":': 0, '<': 284, '<?xml version=': 0, '>': 284, 'https://': 4, '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': '3694039', 'n_tokens_mistral': 3221, 'n_tokens_neox': 3031, 'n_words': 592}