<commit_before>package scala.tools.eclipse.formatter

import org.eclipse.ui._
import org.eclipse.jface.preference._
import scalariform.formatter._
import scalariform.formatter.preferences._
import scala.tools.eclipse.ScalaPlugin

class FormatterPreferencePage extends FieldEditorPreferencePage with IWorkbenchPreferencePage {
  
  import FormatterPreferencePage._
  
  setPreferenceStore(ScalaPlugin.plugin.getPreferenceStore)

  def init(workbench: IWorkbench) {}

  override def createFieldEditors() {

    for (preference ← AllPreferences.preferences) {
      val preferenceType = preference.preferenceType
      preferenceType match {
        case BooleanPreference =>
          val field = new BooleanFieldEditor(prefix + preference.key, preference.description, org.eclipse.swt.SWT.NONE, getFieldEditorParent())
          addField(field)
        case IntegerPreference(min, max) =>
          val field = new IntegerFieldEditor(prefix + preference.key, preference.description, getFieldEditorParent())
          field.setValidRange(min, max)<commit_msg>changed unicode arrow to <-<commit_after>package scala.tools.eclipse.formatter

import org.eclipse.ui._
import org.eclipse.jface.preference._
import scalariform.formatter._
import scalariform.formatter.preferences._
import scala.tools.eclipse.ScalaPlugin

class FormatterPreferencePage extends FieldEditorPreferencePage with IWorkbenchPreferencePage {
  
  import FormatterPreferencePage._
  
  setPreferenceStore(ScalaPlugin.plugin.getPreferenceStore)

  def init(workbench: IWorkbench) {}

  override def createFieldEditors() {

    for (preference <- AllPreferences.preferences) {
      val preferenceType = preference.preferenceType
      preferenceType match {
        case BooleanPreference =>
          val field = new BooleanFieldEditor(prefix + preference.key, preference.description, org.eclipse.swt.SWT.NONE, getFieldEditorParent())
          addField(field)
        case IntegerPreference(min, max) =>
          val field = new IntegerFieldEditor(prefix + preference.key, preference.description, getFieldEditorParent())
          field.setValidRange(min, max)
{'fraction_non_alphanumeric': 0.07757404795486601, 'fraction_numerical': 0.0, 'mean_word_length': 4.414758269720102, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5715258', 'n_tokens_mistral': 569, 'n_tokens_neox': 554, 'n_words': 120}