<commit_before>var selected= new Array();
window.onload=function(){
    Parse.initialize("<KEY>", "<KEY>");

    if(Parse.User.current()){
        getFriends(layout);
    }
    else if(!$.jStorage.get("password") || !$.jStorage.get("email")){
        window.location = "./api_auth.html";
    }
    else{
        Parse.User.logIn( $.jStorage.get("email"), $.jStorage.get("password") , {
            success: function(user) {
                getFriends(layout);
            },
            error: function(user, error) {
                // The login failed. Check error to see why.
                alert("Error: " + error.code + " " + error.message);
            }
        });
    }
    
    $("#sendButton").click(function(){
        pffile = new Parse.File("audio.ogg", { base64: $.jStorage.get("audio") });
        pffile.save().then(function() {
        console.log("Audio saved");
        var objs = Parse.Object.extend("TestObject");
        var audioObj = new objs();
       for(var i=0; i<selected.length;++i){
        audioObj.set("audioFile", pffile);
        audioObj.set("from", Parse.User.current().id);
        audioObj.set("to", selected[i]);
        audioObj.set("unread", true);
        audioObj.save().then(function() {
         // The file has been saved to Parse.
         console.log("Save successful");
            }, function(error) {
      // The file either could not be read, or could not be saved to Parse.
            });}
            
    }, function(error) {
    // The file either could not be read, or could not be saved to Parse.
          });
});<commit_msg>send list redirects to frontPage<commit_after>var selected= new Array();
window.onload=function(){
    Parse.initialize("X4yCp0K91ZN0qD93vNENXrmmfeG8uvzmQjH7WIfT", "O<KEY>");

    if(Parse.User.current()){
        getFriends(layout);
    }
    else if(!$.jStorage.get("password") || !$.jStorage.get("email")){
        window.location = "./api_auth.html";
    }
    else{
        Parse.User.logIn( $.jStorage.get("email"), $.jStorage.get("password") , {
            success: function(user) {
                getFriends(layout);
            },
            error: function(user, error) {
                // The login failed. Check error to see why.
                alert("Error: " + error.code + " " + error.message);
            }
        });
    }
    
    $("#sendButton").click(function(){
        pffile = new Parse.File("audio.ogg", { base64: $.jStorage.get("audio") });
        pffile.save().then(function() {
        console.log("Audio saved");
        var objs = Parse.Object.extend("TestObject");
        var audioObj = new objs();
       for(var i=0; i<selected.length;++i){
        audioObj.set("audioFile", pffile);
        audioObj.set("from", Parse.User.current().id);
        audioObj.set("to", selected[i]);
        audioObj.set("unread", true);
        audioObj.save().then(function() {
         // The file has been saved to Parse.
         console.log("Save successful");
        window.location = "./frontPage.html";
            }, function(error) {
      // The file either could not be read, or could not be saved to Parse.
            });}
            
    }, function(error) {
    // The file either could not be read, or could not be saved to Parse.
          });
});
{'fraction_non_alphanumeric': 0.16590423909728577, 'fraction_numerical': 0.004574565416285453, 'mean_word_length': 2.076923076923077, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, 'https://': 0, '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': '2303630', 'n_tokens_mistral': 978, 'n_tokens_neox': 967, 'n_words': 210}