<commit_before>package com.antiparagon.cvexperimenter

import scalafx.Includes._
import scalafx.geometry.{Insets, Pos}
import scalafx.scene.control.{Button, Label, ScrollPane, Tab}
import scalafx.scene.image.{Image, ImageView}
import scalafx.scene.input.MouseEvent
import scalafx.scene.layout.{BorderPane, HBox, VBox}
import scalafx.scene.paint.Color
import scalafx.scene.text.{Font, FontWeight}

/**
  * Created by wmckay on 5/14/16.
  */
class ImageEditorTab(val img : Image) extends Tab with ExperimenterTab {

  val imgSizeLabel = new Label {
    text = s"${img.getWidth.toInt}x${img.getHeight.toInt}"
    font = Font.font(null, FontWeight.Bold, 18)
    textFill = Color.Green
    padding = Insets(50)
  }


  val mousePosLabel = new Label {
    text = "x: 0 y: 0"
    font = Font.font(null, FontWeight.Bold, 18)
    textFill = Color.Green
    padding = Insets(50)
  }

  val currentFrame =  new ImageView(img)
  currentFrame.setOnMouseMoved((e : MouseEvent) => { mousePosLabel.text = s"[ ${e.getX.toInt}, ${e.getY.toInt}]"; })
  currentFrame.setOnMouseClicked((e : MouseEvent) => { println(s"[${e.getX}, ${e.getY}]"); })

  val editButton = new Button {
    text = "Edit"
    style = BUTTON_STYLE
    onAction = handle {
      println("Pushed button")
    }
  }

  content = new VBox {
    padding = Insets(20)
    style = "-fx-background-color: black"
    alignment = Pos.Center
    children = Seq(
      new HBox {
        alignment = Pos.Center
        children = new ScrollPane {
          style = BACKGROUND_STYLE
          content = new VBox {
            padding = Insets(20)
            style = BACKGROUND_STYLE
            spacing = 5
            children = Seq(
              imgSizeLabel,
              currentFrame,
              new VBox {
                alignment = Pos.Center
                padding = Insets(20)
                style = BACKGROUND_STYLE
                spacing = 5
                children = Seq(
                  mousePosLabel,
                  editButton
                )
              }
            )
          }
        }
      }
    )
  }

  override def getImg() : Image = return img

  override def getTabText(): String = text.value

}<commit_msg>rearranged ImageEditorTab<commit_after>package com.antiparagon.cvexperimenter

import scalafx.Includes._
import scalafx.geometry.{Insets, Pos}
import scalafx.scene.control.{Button, Label, ScrollPane, Tab}
import scalafx.scene.image.{Image, ImageView}
import scalafx.scene.input.MouseEvent
import scalafx.scene.layout.{BorderPane, HBox, VBox}
import scalafx.scene.paint.Color
import scalafx.scene.text.{Font, FontWeight}

/**
  * Created by wmckay on 5/14/16.
  */
class ImageEditorTab(val img : Image) extends Tab with ExperimenterTab {

  val mousePosLabel = new Label {
    text = "x: 0 y: 0"
    font = Font.font(null, FontWeight.Bold, 18)
    textFill = Color.Green
    //padding = Insets(10)
  }

  val imgSizeLabel = new Label {
    text = s"${img.getWidth.toInt}x${img.getHeight.toInt}"
    font = Font.font(null, FontWeight.Bold, 18)
    textFill = Color.Green
    padding = Insets(10)
  }

  val currentFrame =  new ImageView(img)
  currentFrame.setOnMouseMoved((e : MouseEvent) => { mousePosLabel.text = s"[ ${e.getX.toInt}, ${e.getY.toInt}]"; })
  currentFrame.setOnMouseClicked((e : MouseEvent) => { println(s"[${e.getX}, ${e.getY}]"); })

  val editButton = new Button {
    text = "Edit"
    style = BUTTON_STYLE
    onAction = handle {
      println("Pushed button")
    }
  }

  content = new VBox {
    padding = Insets(20)
    style = "-fx-background-color: black"
    alignment = Pos.Center
    children = Seq(
      new HBox {
        alignment = Pos.Center
        children = new ScrollPane {
          style = BACKGROUND_STYLE
          content = new VBox {
            padding = Insets(20)
            style = BACKGROUND_STYLE
            spacing = 5
            children = Seq(
              currentFrame,
              new VBox {
                alignment = Pos.Center
                padding = Insets(10)
                style = BACKGROUND_STYLE
                spacing = 5
                children = Seq(
                  mousePosLabel,
                  imgSizeLabel,
                  editButton
                )
              }
            )
          }
        }
      }
    )
  }

  override def getImg() : Image = return img

  override def getTabText(): String = text.value

}
{'fraction_non_alphanumeric': 0.10891763104152484, 'fraction_numerical': 0.010437939641479465, 'mean_word_length': 2.084674597620714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3020358', 'n_tokens_mistral': 1479, 'n_tokens_neox': 1351, 'n_words': 311}