<commit_before>package com.ing.baker.il

import com.ing.baker.il.petrinet.{Node, Place, RecipePetriNet, Transition}
import com.ing.baker.petrinet.api._
import dot._

import scala.language.higherKinds
import scalax.collection.Graph
import scalax.collection.edge.WLDiEdge
import scalax.collection.io.dot.{DotAttr, _}
import scalax.collection.io.dot.implicits._

object RecipeVisualizer {

  type RecipePetriNetGraph = Graph[Either[Place[_], Transition[_]], WLDiEdge]

  private val ingredientAttributes: List[DotAttr] = List(
    DotAttr("shape", "circle"),
    DotAttr("color", "\"#FF6200\""),
    DotAttr("style", "filled")
  )

  private val providedIngredientAttributes: List[DotAttr] = List(
    DotAttr("shape", "circle"),
    DotAttr("color", "\"#3b823a\""),
    DotAttr("style", "filled")
  )

  private val missingIngredientAttributes: List[DotAttr] = List(
    DotAttr("shape", "circle"),
    DotAttr("style", "filled"),
    DotAttr("color", "\"#EE0000\""),
    DotAttr("penwidth", "5.0")
  )

  private val eventAttributes: List[DotAttr] = List(
    DotAttr("shape", "diamond"),
    DotAttr("margin", 0.3D),
    DotAttr("style", "rounded, filled"),
    DotAttr("color", "\"#767676\"")
  )

  private val sensoryEventAttributes: List[DotAttr] = List(
    DotAttr("shape", "diamond"),
    DotAttr("margin", 0.3D),
    DotAttr("style", "rounded, filled"),
    DotAttr("fillcolor", "\"#60A6DA\""),
    DotAttr("color", "\"#525199\""),
    DotAttr("penwidth", "12.0")
  )

  private val eventFiredAttributes: List[DotAttr] = List(
    DotAttr("shape", "diamond"),
    DotAttr("margin", 0.3D),<commit_msg>Reduce border width for sensory events<commit_after>package com.ing.baker.il

import com.ing.baker.il.petrinet.{Node, Place, RecipePetriNet, Transition}
import com.ing.baker.petrinet.api._
import dot._

import scala.language.higherKinds
import scalax.collection.Graph
import scalax.collection.edge.WLDiEdge
import scalax.collection.io.dot.{DotAttr, _}
import scalax.collection.io.dot.implicits._

object RecipeVisualizer {

  type RecipePetriNetGraph = Graph[Either[Place[_], Transition[_]], WLDiEdge]

  private val ingredientAttributes: List[DotAttr] = List(
    DotAttr("shape", "circle"),
    DotAttr("color", "\"#FF6200\""),
    DotAttr("style", "filled")
  )

  private val providedIngredientAttributes: List[DotAttr] = List(
    DotAttr("shape", "circle"),
    DotAttr("color", "\"#3b823a\""),
    DotAttr("style", "filled")
  )

  private val missingIngredientAttributes: List[DotAttr] = List(
    DotAttr("shape", "circle"),
    DotAttr("style", "filled"),
    DotAttr("color", "\"#EE0000\""),
    DotAttr("penwidth", "5.0")
  )

  private val eventAttributes: List[DotAttr] = List(
    DotAttr("shape", "diamond"),
    DotAttr("margin", 0.3D),
    DotAttr("style", "rounded, filled"),
    DotAttr("color", "\"#767676\"")
  )

  private val sensoryEventAttributes: List[DotAttr] = List(
    DotAttr("shape", "diamond"),
    DotAttr("margin", 0.3D),
    DotAttr("style", "rounded, filled"),
    DotAttr("fillcolor", "\"#60A6DA\""),
    DotAttr("color", "\"#525199\""),
    DotAttr("penwidth", "8.0")
  )

  private val eventFiredAttributes: List[DotAttr] = List(
    DotAttr("shape", "diamond"),
    DotAttr("margin", 0.3D),
{'fraction_non_alphanumeric': 0.17901234567901234, 'fraction_numerical': 0.023148148148148147, 'mean_word_length': 4.607266435986159, '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': '6274807', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1096, 'n_words': 212}