<commit_before>package uk.ac.surrey.soc.cress.extrawidgets.plugin.gui

import scala.Array.canBuildFrom

import org.scalatest.FunSpec
import org.scalatest.GivenWhenThen
import org.scalatest.matchers.ShouldMatchers

import Strings.CreateTab
import javax.swing.JMenuItem
import uk.ac.surrey.soc.cress.extrawidgets.plugin.NetLogoInitializer.extraWidgetsPlugin

class GUITests extends FunSpec with ShouldMatchers with GivenWhenThen {

  describe("The GUI") {

    val tm = extraWidgetsPlugin.tabsManager

    it("should add '" + CreateTab + "' to Tools menu") {
      val items = tm.toolsMenu.getMenuComponents.collect {
        case item: JMenuItem if item.getText == CreateTab ⇒
          item
      }
      items should have size 1
    }

  }

}
<commit_msg>fix gui tests still refering to (now gone) tab manager<commit_after>package uk.ac.surrey.soc.cress.extrawidgets.plugin.gui

import scala.Array.canBuildFrom

import org.scalatest.FunSpec
import org.scalatest.GivenWhenThen
import org.scalatest.matchers.ShouldMatchers

import Strings.CreateTab
import javax.swing.JMenuItem
import uk.ac.surrey.soc.cress.extrawidgets.plugin.NetLogoInitializer.extraWidgetsPlugin

class GUITests extends FunSpec with ShouldMatchers with GivenWhenThen {

  describe("The GUI") {

    val gui = extraWidgetsPlugin.gui

    it("should add '" + CreateTab + "' to Tools menu") {
      val items = gui.toolsMenu.getMenuComponents.collect {
        case item: JMenuItem if item.getText == CreateTab ⇒
          item
      }
      items should have size 1
    }

  }

}

{'fraction_non_alphanumeric': 0.08274078862314156, 'fraction_numerical': 0.001292824822236587, 'mean_word_length': 3.7195121951219514, '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': '3440352', 'n_tokens_mistral': 497, 'n_tokens_neox': 484, 'n_words': 111}