<commit_before><?php

include_once 'header.php';
include_once 'database.php';
include_once 'mail.php';
include_once 'tohtml.php';

// Not all login can be queried from ldap. Let user edit everything.
$res = updateTable( 
        "logins"
        , "login"
        , "valid_until,first_name,last_name,title,specialization" . 
             ",laboffice,joined_on,alternative_email,pi_or_host"
        , $_POST 
    );

if( $res )
{
    echo printInfo( "User details have been updated sucessfully" );
    // Now send an email to user.
    $info = getUserInfo( $_SESSION[ 'user' ] );<commit_msg>User could not change her institute details. Close #30.<commit_after><?php

include_once 'header.php';
include_once 'database.php';
include_once 'mail.php';
include_once 'tohtml.php';

// Not all login can be queried from ldap. Let user edit everything.
$res = updateTable( 
        "logins"
        , "login"
        , "valid_until,first_name,last_name,title,specialization" . 
             ",institute,laboffice,joined_on,alternative_email,pi_or_host"
        , $_POST 
    );

if( $res )
{
    echo printInfo( "User details have been updated sucessfully" );
    // Now send an email to user.
    $info = getUserInfo( $_SESSION[ 'user' ] );
{'fraction_non_alphanumeric': 0.12175324675324675, 'fraction_numerical': 0.0016233766233766235, 'mean_word_length': 3.2371134020618557, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1639132', 'n_tokens_mistral': 404, 'n_tokens_neox': 395, 'n_words': 104}