<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sekegex;

import DataType.DataServer;
import java.util.Vector;
import java.security.MessageDigest;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;

/**
 *
 * @author Ivan
 */
public class Server {   
    private User activeEmployee = User.getInstance();
    private static MySQLTools DB = MySQLTools.getInstance();   
    private DataServer data;
    
    public Server(int id){
        data = activeEmployee.consultServer(id);
    }
    
     /**
     * Update the comment
     */
    public void update(){
        data=activeEmployee.consultServer(getData().id_server);
    }
      /**
     * List domains of this server
     */   
    public Vector listDomains(){
        return DB.lisDomains(getData().id_server);
    }
     /**
     * Modify server
     * @param name
     * @param access
     * @param user_ftp
     * @param password_ftp<commit_msg>Corregido error producido por cambio de nombre en función<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sekegex;

import DataType.DataServer;
import java.util.Vector;
import java.security.MessageDigest;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;

/**
 *
 * @author Ivan
 */
public class Server {   
    private User activeEmployee = User.getInstance();
    private static MySQLTools DB = MySQLTools.getInstance();   
    private DataServer data;
    
    public Server(int id){
        data = activeEmployee.consultServer(id);
    }
    
     /**
     * Update the comment
     */
    public void update(){
        data=activeEmployee.consultServer(getData().id_server);
    }
      /**
     * List domains of this server
     */   
    public Vector listDomains(){
        return DB.listDomains(getData().id_server);
    }
     /**
     * Modify server
     * @param name
     * @param access
     * @param user_ftp
     * @param password_ftp
{'fraction_non_alphanumeric': 0.09846917666528755, 'fraction_numerical': 0.0016549441456350847, 'mean_word_length': 2.881219903691814, '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': '3604279', 'n_tokens_mistral': 691, 'n_tokens_neox': 680, 'n_words': 195}