<commit_before>package com.lucidchart.open.nark.models.records

import java.util.UUID
import com.lucidchart.open.nark.models.{TargetModel, DashboardModel}

case class Graph(
	id: UUID,
	name: String,
	dashboardId: UUID,
	sort: Int,
	typeGraph: GraphType.Value,
	deleted: Boolean
) extends AppRecord {

	def this(name: String, dashboardId: UUID, sort: Int, typeGraph: GraphType.Value, deleted: Boolean) =
		this(UUID.randomUUID(), name, dashboardId, sort, typeGraph, deleted)

	lazy val dashboard = DashboardModel.findDashboardByID(dashboardId).get
	lazy val userId = dashboard.userId
	lazy val targets = TargetModel.findTargetByGraphId(id)
}

object GraphType extends Enumeration {
	val normal  = Value(0)
	val stacked = Value(1)
}<commit_msg>text change<commit_after>package com.lucidchart.open.nark.models.records

import java.util.UUID
import com.lucidchart.open.nark.models.{TargetModel, DashboardModel}

case class Graph(
	id: UUID,
	name: String,
	dashboardId: UUID,
	sort: Int,
	typeGraph: GraphType.Value,
	deleted: Boolean
) extends AppRecord {

	def this(name: String, dashboardId: UUID, sort: Int, typeGraph: GraphType.Value, deleted: Boolean) =
		this(UUID.randomUUID(), name, dashboardId, sort, typeGraph, deleted)

	lazy val dashboard = DashboardModel.findDashboardByID(dashboardId).get
	lazy val userId = dashboard.userId
	lazy val targets = TargetModel.findTargetByGraphId(id)
}

object GraphType extends Enumeration {
	val normal  = Value(0, "Normal")
	val stacked = Value(1, "Stacked")
}
{'fraction_non_alphanumeric': 0.10498338870431893, 'fraction_numerical': 0.0026578073089701, 'mean_word_length': 5.605263157894737, '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': '5996693', 'n_tokens_mistral': 515, 'n_tokens_neox': 509, 'n_words': 129}