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

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.ovirt.engine.core.compat.Guid;

public class VmDeviceTest {


    public void testSelfAndIdentifyEquality() {
        Guid vmId = new Guid("b23ad6d7-0df8-4d69-b4e5-d5b5e90c2463");
        Guid deviceId = new Guid("b23ad6d7-0df8-4d69-b4e5-d5b5e90c2464");
        VmDevice device1 = createVmDevice(deviceId, vmId);
        assertTrue(device1.compareTo(device1) == 0);
        VmDevice device2 = createVmDevice(deviceId, vmId);
        assertTrue(device1.compareTo(device2) == 0);

    }

    @Test
    public void testCompareToVmIdsAreEqual() {<commit_msg>core: run VmDeviceTest.testSelfAndIdthentifyEquality<commit_after>package org.ovirt.engine.core.common.businessentities;

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.ovirt.engine.core.compat.Guid;

public class VmDeviceTest {

    @Test
    public void testSelfAndIdentifyEquality() {
        Guid vmId = new Guid("b23ad6d7-0df8-4d69-b4e5-d5b5e90c2463");
        Guid deviceId = new Guid("b23ad6d7-0df8-4d69-b4e5-d5b5e90c2464");
        VmDevice device1 = createVmDevice(deviceId, vmId);
        assertTrue(device1.compareTo(device1) == 0);
        VmDevice device2 = createVmDevice(deviceId, vmId);
        assertTrue(device1.compareTo(device2) == 0);

    }

    @Test
    public void testCompareToVmIdsAreEqual() {
{'fraction_non_alphanumeric': 0.10797799174690509, 'fraction_numerical': 0.06327372764786796, 'mean_word_length': 3.9155405405405403, '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': '7255675', 'n_tokens_mistral': 560, 'n_tokens_neox': 528, 'n_words': 81}