<commit_before>package com.github.K0zka.kerub.model

import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonTypeName
import com.fasterxml.jackson.annotation.JsonView
import com.github.K0zka.kerub.model.views.Detailed
import com.github.K0zka.kerub.model.views.Simple
import org.hibernate.search.annotations.DocumentId
import org.hibernate.search.annotations.Field
import org.hibernate.search.annotations.Indexed
import java.util.UUID

Indexed
JsonTypeName("vm")
data class VirtualMachine constructor(
		override
		JsonView(Simple::class)
		DocumentId
		JsonProperty("id")
		val id: UUID = UUID.randomUUID(),
		/**
		 * Name of the VM, which is not necessarily a unique identifier, but helps to find the VM.
		 */
		Field
		JsonView(Simple::class)
		JsonProperty("name")
		val name: String,
		/**
		 * The number of vCPUs of the VM.
		 */
		Field
		JsonView(Detailed::class)
		JsonProperty("nrOfCpus")
		val nrOfCpus: Int = 1,
		/**
		 * Memory allocation, a range (minimum-maximum)
		 */
		Field
		JsonView(Simple::class)
		JsonProperty("memoryMb")
		val memoryMb: Range<Int> = Range(1024, 2048),
		/**
		 * List of expectations against the VM.
		 */
		Field
		JsonView(Detailed::class)
		JsonProperty("expectations")
		val expectations: List<Expectation> = listOf(),
		/**
		 * Storage devices of the VM
		 */
		Field
		JsonView(Detailed::class)
		JsonProperty("storagedevices")
		val storageDevices: List<StorageDevice> = listOf()
                         )
: Entity<UUID>

<commit_msg>javadoc added<commit_after>package com.github.K0zka.kerub.model

import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonTypeName
import com.fasterxml.jackson.annotation.JsonView
import com.github.K0zka.kerub.model.views.Detailed
import com.github.K0zka.kerub.model.views.Simple
import org.hibernate.search.annotations.DocumentId
import org.hibernate.search.annotations.Field
import org.hibernate.search.annotations.Indexed
import java.util.UUID

/**
 * A virtual machine.
 */
Indexed
JsonTypeName("vm")
data class VirtualMachine constructor(
		override
		JsonView(Simple::class)
		DocumentId
		JsonProperty("id")
		val id: UUID = UUID.randomUUID(),
		/**
		 * Name of the VM, which is not necessarily a unique identifier, but helps to find the VM.
		 */
		Field
		JsonView(Simple::class)
		JsonProperty("name")
		val name: String,
		/**
		 * The number of vCPUs of the VM.
		 */
		Field
		JsonView(Detailed::class)
		JsonProperty("nrOfCpus")
		val nrOfCpus: Int = 1,
		/**
		 * Memory allocation, a range (minimum-maximum)
		 */
		Field
		JsonView(Simple::class)
		JsonProperty("memoryMb")
		val memoryMb: Range<Int> = Range(1024, 2048),
		/**
		 * List of expectations against the VM.
		 */
		Field
		JsonView(Detailed::class)
		JsonProperty("expectations")
		val expectations: List<Expectation> = listOf(),
		/**
		 * Storage devices of the VM
		 */
		Field
		JsonView(Detailed::class)
		JsonProperty("storagedevices")
		val storageDevices: List<StorageDevice> = listOf()
                         )
: Entity<UUID>


{'fraction_non_alphanumeric': 0.11369426751592357, 'fraction_numerical': 0.007643312101910828, 'mean_word_length': 3.962085308056872, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '3955139', 'n_tokens_mistral': 1120, 'n_tokens_neox': 970, 'n_words': 226}