<commit_before>var url = "http://localhost:8080";

// ACCOUNT
$('#connect').click(function() {
    handleAuthClick();
});
$('#delete-account').click(function() {
    var authResult = gapi.auth.getToken();
    apiAccount('DELETE', authResult.access_token)
});

// DIRECTORY
$('#directory').click(function() {
    var authResult = gapi.auth.getToken();
    var address = $('#input-directory').val();
    apiDirectory('GET', authResult.access_token, address); 
});

// NOTIFICATION
$('#notificationsList').click(function() {
    var authResult = gapi.auth.getToken();
    apiNotification('GET', authResult.access_token); 
});
$('#add-notification').click(function() {
    var authResult = gapi.auth.getToken();
    var notification = $('#input-notification').val();
    apiNotification('POST', authResult.access_token, notification); 
});
$('#delete-notification').click(function() {
    var authResult = gapi.auth.getToken();
    var notification = $('#input-notification').val();
    apiNotification('DELETE', authResult.access_token, notification); 
});

// ADDRESS
$('#addressesList').click(function() {
    var authResult = gapi.auth.getToken();
    apiAddress('GET', authResult.access_token); 
});
$('#add-address').click(function() {
    var authResult = gapi.auth.getToken();
    var address = $('#input-address').val();
    apiAddress('POST', authResult.access_token, address); 
});
$('#delete-address').click(function() {
    var authResult = gapi.auth.getToken();
    console.log(authResult);
    var address = $('#input-address').val();
    apiAddress('DELETE', authResult.access_token, address); 
});<commit_msg>Correction de la syntaxe du code + ajout URL Google<commit_after>var url = "http://localhost:8080";
//var url = "http://poubatal.appspot.com";

// ACCOUNT
$('#connect').click(function() {
    handleAuthClick();
});
$('#delete-account').click(function() {
    var authResult = gapi.auth.getToken();
    apiAccount('DELETE', authResult.access_token);
});

// DIRECTORY
$('#directory').click(function() {
    var authResult = gapi.auth.getToken();
    var address = $('#input-directory').val();
    apiDirectory('GET', authResult.access_token, address);
});

// NOTIFICATION
$('#notificationsList').click(function() {
    var authResult = gapi.auth.getToken();
    apiNotification('GET', authResult.access_token);
});
$('#add-notification').click(function() {
    var authResult = gapi.auth.getToken();
    var notification = $('#input-notification').val();
    apiNotification('POST', authResult.access_token, notification);
});
$('#delete-notification').click(function() {
    var authResult = gapi.auth.getToken();
    var notification = $('#input-notification').val();
    apiNotification('DELETE', authResult.access_token, notification);
});

// ADDRESS
$('#addressesList').click(function() {
    var authResult = gapi.auth.getToken();
    apiAddress('GET', authResult.access_token);
});
$('#add-address').click(function() {
    var authResult = gapi.auth.getToken();
    var address = $('#input-address').val();
    apiAddress('POST', authResult.access_token, address);
});
$('#delete-address').click(function() {
    var authResult = gapi.auth.getToken();
    console.log(authResult);
    var address = $('#input-address').val();
    apiAddress('DELETE', authResult.access_token, address);
});
{'fraction_non_alphanumeric': 0.19397308367466354, 'fraction_numerical': 0.0023405500292568754, 'mean_word_length': 4.164652567975831, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4769257', 'n_tokens_mistral': 984, 'n_tokens_neox': 1010, 'n_words': 167}