<commit_before>package org.jetbrains.plugins.scala.annotator.importsTracker


import collection.mutable._
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.project.Project
import lang.psi.api.ScalaFile
import lang.psi.api.toplevel.imports.usages.ImportUsed

/**
 * User: <NAME>
 * Date: 15.06.2009
 */

class ImportTracker {
  private val usedImports: Map[ScalaFile, Set[ImportUsed]] = new HashMap[ScalaFile, Set[ImportUsed]]
  private val unusedImports: Map[ScalaFile, Set[ImportUsed]] = new HashMap[ScalaFile, Set[ImportUsed]]

  def registerUsedImports(file: ScalaFile, used: Set[ImportUsed]) {
    usedImports.get(file) match {
      case None => usedImports += Tuple(file, used)
      case Some(set: Set[ImportUsed]) => set ++= used
    }<commit_msg>author name changed<commit_after>package org.jetbrains.plugins.scala.annotator.importsTracker


import collection.mutable._
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.project.Project
import lang.psi.api.ScalaFile
import lang.psi.api.toplevel.imports.usages.ImportUsed

/**
 * @author Ilyas
 */

class ImportTracker {
  private val usedImports: Map[ScalaFile, Set[ImportUsed]] = new HashMap[ScalaFile, Set[ImportUsed]]
  private val unusedImports: Map[ScalaFile, Set[ImportUsed]] = new HashMap[ScalaFile, Set[ImportUsed]]

  def registerUsedImports(file: ScalaFile, used: Set[ImportUsed]) {
    usedImports.get(file) match {
      case None => usedImports += Tuple(file, used)
      case Some(set: Set[ImportUsed]) => set ++= used
    }
{'fraction_non_alphanumeric': 0.11787315823190263, 'fraction_numerical': 0.005124919923126201, 'mean_word_length': 5.223107569721115, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, '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': '7153260', 'n_tokens_mistral': 512, 'n_tokens_neox': 498, 'n_words': 102}