<commit_before>package peregin.tov

import scala.swing._
import java.awt.{Color, Point, Toolkit, Dimension}
import javax.imageio.ImageIO
import peregin.tov.gui.MigPanel
import javax.swing.UIManager
import com.jgoodies.looks.plastic.{PlasticTheme, PlasticLookAndFeel, Plastic3DLookAndFeel}
import org.jdesktop.swingx.JXTitledPanel
import peregin.tov.util.Logging


object App extends SimpleSwingApplication with Logging {

  log.info("initializing...")

  initLookAndFeel()

  val frame = new MainFrame {
    class MockPanel(info: String) extends BoxPanel(Orientation.Vertical) {
      background = Color.blue
      contents += new Label(info) { foreground = Color.white }
    }
    contents = new MigPanel("ins 5, fill", "[fill]", "[][fill]") {
      val projectPanel = new MockPanel("project setup: new, open, save, export")
      add(projectPanel, "span 2, wrap")

      val videoPanel = new MockPanel("video")
      add(titled("Video", videoPanel), "pushy, width 60%")
      val telemetryPanel = new MockPanel("telemetry")
      add(titled("Telemetry Data", telemetryPanel), "pushy, width 40%, wrap")

      val dashboardPanel = new MockPanel("widgets and templates")
      add(dashboardPanel, "height 30%, span 2, wrap")

      val statusPanel = new MockPanel("ready")
      add(statusPanel, "span 2")
    }
  }

  frame.title = "Telemetry data on videos"
  frame.iconImage = loadImage("images/video.png")
  frame.size = new Dimension(1024, 768)
  center(frame)

  def top = frame

  def initLookAndFeel() {
    import PlasticLookAndFeel._
    import collection.JavaConverters._
    val theme = getInstalledThemes.asScala.map(_.asInstanceOf[PlasticTheme]).find(_.getName == "Dark Star")
    theme.foreach(setPlasticTheme)
    UIManager.setLookAndFeel(new Plastic3DLookAndFeel())
  }

  def center(w: Window) {
    val screen = Toolkit.getDefaultToolkit.getScreenSize
    val size = w.bounds<commit_msg>status bar added<commit_after>package peregin.tov

import scala.swing._
import java.awt.{Color, Point, Toolkit, Dimension}
import javax.imageio.ImageIO
import peregin.tov.gui.MigPanel
import javax.swing.UIManager
import com.jgoodies.looks.plastic.{PlasticTheme, PlasticLookAndFeel, Plastic3DLookAndFeel}
import org.jdesktop.swingx.{JXLabel, JXStatusBar, JXTitledPanel}
import peregin.tov.util.Logging


object App extends SimpleSwingApplication with Logging {

  log.info("initializing...")

  initLookAndFeel()

  val frame = new MainFrame {
    class MockPanel(info: String) extends BoxPanel(Orientation.Vertical) {
      background = Color.blue
      contents += new Label(info) { foreground = Color.white }
    }
    contents = new MigPanel("ins 5, fill", "[fill]", "[][fill]") {
      val projectPanel = new MockPanel("project setup: new, open, save, export")
      add(projectPanel, "span 2, wrap")

      val videoPanel = new MockPanel("video")
      add(titled("Video", videoPanel), "pushy, width 60%")
      val telemetryPanel = new MockPanel("telemetry")
      add(titled("Telemetry Data", telemetryPanel), "pushy, width 40%, wrap")

      val dashboardPanel = new MockPanel("widgets and templates")
      add(dashboardPanel, "height 30%, span 2, wrap")

      val statusPanel = new JXStatusBar
      statusPanel.add(new JXLabel("Ready"))
      add(Component.wrap(statusPanel), "span 2")
    }
  }

  frame.title = "Telemetry data on videos"
  frame.iconImage = loadImage("images/video.png")
  frame.size = new Dimension(1024, 768)
  center(frame)

  def top = frame

  def initLookAndFeel() {
    import PlasticLookAndFeel._
    import collection.JavaConverters._
    val theme = getInstalledThemes.asScala.map(_.asInstanceOf[PlasticTheme]).find(_.getName == "Dark Star")
    theme.foreach(setPlasticTheme)
    UIManager.setLookAndFeel(new Plastic3DLookAndFeel())
  }

  def center(w: Window) {
    val screen = Toolkit.getDefaultToolkit.getScreenSize
    val size = w.bounds
{'fraction_non_alphanumeric': 0.11510791366906475, 'fraction_numerical': 0.009763617677286743, 'mean_word_length': 4.115637319316688, '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': '4922051', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1228, 'n_words': 293}