<commit_before>package org.jetbrains.sbt
package project.settings

import com.intellij.openapi.externalSystem.service.settings.{AbstractExternalProjectSettingsControl, AbstractExternalSystemConfigurable}
import org.jetbrains.sbt.project.settings.{SbtProjectSettings => Settings}
import org.jetbrains.sbt.project.SbtProjectSystem
import com.intellij.openapi.externalSystem.util.{PaintAwarePanel, ExternalSystemSettingsControl}
import com.intellij.openapi.project.Project

/**
 * User: <NAME>
 * Date: 11/25/13
 */
class SbtExternalSystemConfigurable(project: Project) 
  extends AbstractExternalSystemConfigurable[Settings, SbtSettingsListener, ScalaSbtSettings](project, SbtProjectSystem.Id) {
  def createProjectSettingsControl(settings: Settings): ExternalSystemSettingsControl[Settings] = {
    new AbstractExternalProjectSettingsControl[Settings](settings) {
      def resetExtraSettings(isDefaultModuleCreation: Boolean) {}

      def applyExtraSettings(settings: Settings) {}

      def isExtraSettingModified: Boolean = false

      def validate(settings: Settings): Boolean = true

      def fillExtraControls(content: PaintAwarePanel, indentLevel: Int) {}
    }
  }

  def createSystemSettingsControl(settings: ScalaSbtSettings): ExternalSystemSettingsControl[ScalaSbtSettings] = null

  def newProjectSettings(): Settings = new Settings

  def getId: String = "sbt.project.settings.configurable"

  def getHelpTopic: String = null
}<commit_msg>SbtExternalSystemConfigurable refactored<commit_after>package org.jetbrains.sbt
package project.settings

import com.intellij.openapi.externalSystem.service.settings.{AbstractExternalProjectSettingsControl, AbstractExternalSystemConfigurable}
import com.intellij.openapi.externalSystem.util.PaintAwarePanel
import com.intellij.openapi.project.Project
import org.jetbrains.sbt.project.SbtProjectSystem

/**
 * User: <NAME>
 * Date: 11/25/13
 */
class SbtExternalSystemConfigurable(project: Project) 
  extends AbstractExternalSystemConfigurable[SbtProjectSettings, SbtSettingsListener, ScalaSbtSettings](project, SbtProjectSystem.Id) {

  def createProjectSettingsControl(settings: SbtProjectSettings) = new SbtExternalProjectSettingsControl(settings)

  def createSystemSettingsControl(settings: ScalaSbtSettings) = null

  def newProjectSettings() = new SbtProjectSettings()

  def getId = "sbt.project.settings.configurable"

  def getHelpTopic: String = null
}

class SbtExternalProjectSettingsControl(settings: SbtProjectSettings)
        extends AbstractExternalProjectSettingsControl[SbtProjectSettings](settings) {

  def resetExtraSettings(isDefaultModuleCreation: Boolean) {}

  def applyExtraSettings(settings: SbtProjectSettings) {}

  def isExtraSettingModified = false

  def validate(settings: SbtProjectSettings) = true

  def fillExtraControls(content: PaintAwarePanel, indentLevel: Int) {}
}
{'fraction_non_alphanumeric': 0.0814116002795248, 'fraction_numerical': 0.0041928721174004195, 'mean_word_length': 6.9972067039106145, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5664535', 'n_tokens_mistral': 795, 'n_tokens_neox': 758, 'n_words': 142}