<commit_before>package com.nekopiano.scala.processing.sandbox.sample

import com.nekopiano.scala.processing.ScalaPApplet
import processing.core.PApplet

/**
 * Ported from https://processing.org/examples/bouncybubbles.html
 * Created on 2015/11/23.
 */
class BouncyBubbles extends ScalaPApplet {
  import BouncyBubbles._

  val balls:Set[Ball] = {
    // in parallel
    val localBalls = (0 to numBalls).par.map(i => {
      new Ball(random(width), random(height), random(30, 70), i)
    }).seq.toSet
    localBalls.foreach(_.others = localBalls)
    localBalls
  }

  override def settings(): Unit = {
    size(640, 360)
  }

  override def setup() {
    noStroke()
    fill(255, 204)
  }<commit_msg>Fix missing sp5 val.<commit_after>package com.nekopiano.scala.processing.sandbox.sample

import com.nekopiano.scala.processing.ScalaPApplet
import processing.core.PApplet

/**
 * Ported from https://processing.org/examples/bouncybubbles.html
 * Created on 2015/11/23.
 */
class BouncyBubbles extends ScalaPApplet {
  import BouncyBubbles._

  implicit val sp5 = this

  val balls:Set[Ball] = {
    // in parallel
    val localBalls = (0 to numBalls).par.map(i => {
      new Ball(random(width), random(height), random(30, 70), i)
    }).seq.toSet
    localBalls.foreach(_.others = localBalls)
    localBalls
  }

  override def settings(): Unit = {
    size(640, 360)
  }

  override def setup() {
    noStroke()
    fill(255, 204)
  }
{'fraction_non_alphanumeric': 0.12534818941504178, 'fraction_numerical': 0.036211699164345405, 'mean_word_length': 3.3944954128440368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '985939', 'n_tokens_mistral': 554, 'n_tokens_neox': 498, 'n_words': 105}