<commit_before>package org.ovirt.engine.core.common.businessentities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.validation.Valid;

import org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType;
import org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.compat.NGuid;
import org.ovirt.engine.core.compat.StringHelper;
import org.ovirt.engine.core.compat.Version;

public class VM extends IVdcQueryable implements Serializable, BusinessEntity<Guid>, HasStoragePool<Guid>, Nameable {
    private static final long serialVersionUID = -4078140531074414263L;
    @Valid
    private VmStatic vmStatic;

    private VmDynamic vmDynamic;
    private VmStatistics vmStatistics;
    private VmPayload vmPayload;
    private boolean balloonEnabled = true;

    @Valid
    private List<Snapshot> snapshots = new ArrayList<Snapshot>();
    private boolean runOnce = false;

    public String getUserDefinedProperties() {
        return vmStatic.getUserDefinedProperties();
    }

    public void setUserDefinedProperties(String userDefinedProperties) {
        vmStatic.setUserDefinedProperties(userDefinedProperties);
    }

    public String getPredefinedProperties() {
        return vmStatic.getPredefinedProperties();
    }

    public String getCustomProperties() {
        return vmStatic.getCustomProperties();
    }

    public void setCustomProperties(String customProperties) {
        vmStatic.setCustomProperties(customProperties);
    }

    public void setPredefinedProperties(String predefinedProperties) {
        vmStatic.setPredefinedProperties(predefinedProperties);
    }

    public VM() {
        this(new VmStatic(), new VmDynamic(), new VmStatistics());
    }

    public VM(VmStatic vmStatic, VmDynamic vmDynamic, VmStatistics vmStatistics) {
        this.setStaticData(vmStatic);
        this.setDynamicData(vmDynamic);
        this.setStatisticsData(vmStatistics);
        this.setImages(new ArrayList<DiskImage>());
        this.setInterfaces(new ArrayList<VmNetworkInterface>());
        this.setDiskMap(new HashMap<Guid, Disk>());
        this.setCdPath("");
        this.setFloppyPath("");
        this.setRunAndPause(false);
        this.setDiskSize(0);
    }

    public VM(Guid vm_guid, String vm_name, int vm_mem_size_mb, Guid vmt_guid, VmOsType vm_os, String vm_description,
            Guid vds_group_id, String vds_group_name, String vds_group_description, String vmt_name,
            int vmt_mem_size_mb, VmOsType vmt_os, Date vmt_creation_date, int vmt_child_count,
            int vmt_num_of_cpus, int vmt_num_of_sockets, int vmt_cpu_per_socket, String vmt_description, int status,
            String vm_ip, String vm_host, Integer vm_pid, Date vm_last_up_time,
            Date vm_last_boot_time, String guest_cur_user_name, Date guest_last_login_time,
            Date guest_last_logout_time, String guest_os, Double cpu_user, Double cpu_sys, Integer vm_if_id_1, String vm_if_name_1,
            Integer vm_line_rate_1, java.math.BigDecimal rx_dropped_1, java.math.BigDecimal rx_rate_1,
            java.math.BigDecimal tx_dropped_1, java.math.BigDecimal tx_rate_1, Integer vm_if_id_2, String vm_if_name_2,
            Integer vm_line_rate_2, java.math.BigDecimal rx_dropped_2, java.math.BigDecimal rx_rate_2,
            java.math.BigDecimal tx_dropped_2, java.math.BigDecimal tx_rate_2, Double elapsed_time,
            Integer usage_network_percent, Integer usage_mem_percent, Integer usage_cpu_percent, Guid run_on_vds,
            Guid migrating_to_vds, String app_list, Integer display, String vm_domain, Date vm_creation_date,
            String run_on_vds_name, String time_zone, Boolean acpi_enable, Integer session, String display_ip,
            Integer display_type, Boolean kvm_enable, Integer boot_sequence, String vmt_time_zone,
            Integer display_secure_port, Integer utc_diff, boolean is_stateless, String vds_cpu_name,
            boolean fail_back, BootSequence default_boot_sequence, VmType vm_type,
            int minAllocatedMem) {
        this();

        this.setId(vm_guid);
        this.setVmName(vm_name);
        this.setVmMemSizeMb(vm_mem_size_mb);
        this.setVmtGuid(vmt_guid);
        this.setVmDomain(vm_domain);
        this.setVmOs(vm_os);
        this.setVmCreationDate(vm_creation_date);
        this.setVmDescription(vm_description);
        this.setVdsGroupId(vds_group_id);
        this.setVdsGroupName(vds_group_name);
        this.setVdsGroupDescription(vds_group_description);
        this.setVmtName(vmt_name);
        this.setVmtMemSizeMb(vmt_mem_size_mb);
        this.setVmtOs(vmt_os);
        this.setVmtCreationDate(vmt_creation_date);
        this.setVmtChildCount(vmt_child_count);
        this.setVmtNumOfCpus(vmt_num_of_cpus);
        this.setVmtDescription(vmt_description);
        this.setVmtTimeZone(vmt_time_zone);
        this.setStatus(VMStatus.forValue(status));
        this.setVmIp(vm_ip);
        this.setVmHost(vm_host);
        this.setVmPid(vm_pid);
        this.setLastStartTime(vm_last_boot_time);
        this.setGuestCurrentUserName(guest_cur_user_name);
        this.setGuestLastLoginTime(guest_last_login_time);
        this.setGuestLastLogoutTime(guest_last_logout_time);
        this.setGuestOs(guest_os);
        this.setCpuUser(cpu_user);
        this.setCpuSys(cpu_sys);
        this.setElapsedTime(elapsed_time);
        this.setUsageNetworkPercent(usage_network_percent);
        this.setUsageMemPercent(usage_mem_percent);
        this.setUsageCpuPercent(usage_cpu_percent);
        this.setRunOnVds(run_on_vds);
        this.setMigratingToVds(migrating_to_vds);
        this.setAppList(app_list);
        this.setDisplay(display);
        this.setRunOnVdsName(run_on_vds_name);
        this.setTimeZone(time_zone);
        this.setAcpiEnable(acpi_enable);
        this.setSession(SessionState.forValue(session));
        this.setDisplayIp(display_ip);
        this.setDisplayType(DisplayType.forValue(display_type));
        this.setKvmEnable(kvm_enable);
        this.setBootSequence(BootSequence.forValue(boot_sequence));
        this.setVmtTimeZone(vmt_time_zone);
        this.setDisplaySecurePort(display_secure_port);
        this.setUtcDiff(utc_diff);
        this.setStateless(is_stateless);
        this.setVdsGroupCpuName(vds_cpu_name);
        this.setFailBack(fail_back);
        this.setDefaultBootSequence(default_boot_sequence);
        this.setVmType(vm_type);
        this.setMinAllocatedMem(minAllocatedMem);
    }

    public VmPauseStatus getVmPauseStatus() {
        return this.vmDynamic.getPauseStatus();
    }

    public void setVmPauseStatus(VmPauseStatus aPauseStatus) {
        this.vmDynamic.setPauseStatus(aPauseStatus);
    }

    @Override
    public Guid getId() {
        return this.vmStatic.getId();
    }

    @Override
    public void setId(Guid value) {
        this.vmStatic.setId(value);
        this.vmDynamic.setId(value);
        this.vmStatistics.setId(value);
    }

    public String getVmName() {
        return this.vmStatic.getVmName();
    }

    public void setVmName(String value) {
        this.vmStatic.setVmName(value);
    }

    public int getMemSizeMb() {<commit_msg>engine: remove unused VM constructor<commit_after>package org.ovirt.engine.core.common.businessentities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.validation.Valid;

import org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType;
import org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface;
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.compat.NGuid;
import org.ovirt.engine.core.compat.StringHelper;
import org.ovirt.engine.core.compat.Version;

public class VM extends IVdcQueryable implements Serializable, BusinessEntity<Guid>, HasStoragePool<Guid>, Nameable {
    private static final long serialVersionUID = -4078140531074414263L;
    @Valid
    private VmStatic vmStatic;

    private VmDynamic vmDynamic;
    private VmStatistics vmStatistics;
    private VmPayload vmPayload;
    private boolean balloonEnabled = true;

    @Valid
    private List<Snapshot> snapshots = new ArrayList<Snapshot>();
    private boolean runOnce = false;

    public String getUserDefinedProperties() {
        return vmStatic.getUserDefinedProperties();
    }

    public void setUserDefinedProperties(String userDefinedProperties) {
        vmStatic.setUserDefinedProperties(userDefinedProperties);
    }

    public String getPredefinedProperties() {
        return vmStatic.getPredefinedProperties();
    }

    public String getCustomProperties() {
        return vmStatic.getCustomProperties();
    }

    public void setCustomProperties(String customProperties) {
        vmStatic.setCustomProperties(customProperties);
    }

    public void setPredefinedProperties(String predefinedProperties) {
        vmStatic.setPredefinedProperties(predefinedProperties);
    }

    public VM() {
        this(new VmStatic(), new VmDynamic(), new VmStatistics());
    }

    public VM(VmStatic vmStatic, VmDynamic vmDynamic, VmStatistics vmStatistics) {
        this.setStaticData(vmStatic);
        this.setDynamicData(vmDynamic);
        this.setStatisticsData(vmStatistics);
        this.setImages(new ArrayList<DiskImage>());
        this.setInterfaces(new ArrayList<VmNetworkInterface>());
        this.setDiskMap(new HashMap<Guid, Disk>());
        this.setCdPath("");
        this.setFloppyPath("");
        this.setRunAndPause(false);
        this.setDiskSize(0);
    }

    public VmPauseStatus getVmPauseStatus() {
        return this.vmDynamic.getPauseStatus();
    }

    public void setVmPauseStatus(VmPauseStatus aPauseStatus) {
        this.vmDynamic.setPauseStatus(aPauseStatus);
    }

    @Override
    public Guid getId() {
        return this.vmStatic.getId();
    }

    @Override
    public void setId(Guid value) {
        this.vmStatic.setId(value);
        this.vmDynamic.setId(value);
        this.vmStatistics.setId(value);
    }

    public String getVmName() {
        return this.vmStatic.getVmName();
    }

    public void setVmName(String value) {
        this.vmStatic.setVmName(value);
    }

    public int getMemSizeMb() {
{'fraction_non_alphanumeric': 0.0869979059584999, 'fraction_numerical': 0.005139920045688178, 'mean_word_length': 3.598249452954048, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3233899', 'n_tokens_mistral': 3277, 'n_tokens_neox': 3206, 'n_words': 537}