<commit_before>package scalakurs

import scala.math.Pi

abstract class Shape(val center: Point) {
  def name: String

  def area: Double

  def circumference: Double

  def draw: Unit
}

trait Drawing extends Shape {
  def draw = s"Drawing $name with area $area and circumference $circumference with center at $center"
}

class Circle(center:Point, radius: Double) extends Shape(center) {

  def name: String = "circle"

  def area: Double = Pi * radius * radius

  def circumference: Double = Pi

  def draw {}

}

// TODO:
// class Square ...

// class Rectangle

case class Point(x: Int, y:Int)
<commit_msg>Oppgavene må kompilere. Og sirkel må ha riktig omkrets..<commit_after>package scalakurs

import scala.math.Pi

abstract class Shape(val center: Point) {
  def name: String

  def area: Double

  def circumference: Double

  def draw: Unit
}

trait Drawing extends Shape {
  def draw = s"Drawing $name with area $area and circumference $circumference with center at $center"
}

class Circle(center:Point, radius: Double) extends Shape(center) with Drawing {

  def name: String = "circle"

  def area: Double = Pi * radius * radius

  def circumference: Double = 2 * Pi * radius

}

// TODO:
// class Square ...

// class Rectangle

case class Point(x: Int, y:Int)

{'fraction_non_alphanumeric': 0.09497645211930926, 'fraction_numerical': 0.0007849293563579278, 'mean_word_length': 3.619565217391304, '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': '934912', 'n_tokens_mistral': 418, 'n_tokens_neox': 388, 'n_words': 152}