test_class.file: runelite-client/src/test/java/net/runelite/client/plugins/hiscore/HiscorePanelTest.java
test_class.identifier: HiscorePanelTest
test_case.body: @Test
  	public void testFormatLevel()
  	{
  		assertEquals("398", formatLevel(398));
  		assertEquals("5000", formatLevel(5000));
  		assertEquals("7682", formatLevel(7682));
  		assertEquals("12k", formatLevel(12398));
  		assertEquals("219k", formatLevel(219824));
  	}
test_case.class_method_signature: HiscorePanelTest.testFormatLevel()
test_case.full_signature: @Test public void testFormatLevel()
test_case.identifier: testFormatLevel
test_case.invocations: assertEquals formatLevel assertEquals formatLevel assertEquals formatLevel assertEquals formatLevel assertEquals formatLevel
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFormatLevel()
focal_class.declarator: MAX_USERNAME_LENGTH = 12
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_USERNAME_LENGTH = 12;
focal_class.type: int
focal_class.var_name: MAX_USERNAME_LENGTH
focal_class.declarator: SKILLS = ImmutableList.of(
  		ATTACK, HITPOINTS, MINING,
  		STRENGTH, AGILITY, SMITHING,
  		DEFENCE, HERBLORE, FISHING,
  		RANGED, THIEVING, COOKING,
  		PRAYER, CRAFTING, FIREMAKING,
  		MAGIC, FLETCHING, WOODCUTTING,
  		RUNECRAFT, SLAYER, FARMING,
  		CONSTRUCTION, HUNTER
  	)
focal_class.modifier: private static final
focal_class.original_string: private static final List<HiscoreSkill> SKILLS = ImmutableList.of(
  		ATTACK, HITPOINTS, MINING,
  		STRENGTH, AGILITY, SMITHING,
  		DEFENCE, HERBLORE, FISHING,
  		RANGED, THIEVING, COOKING,
  		PRAYER, CRAFTING, FIREMAKING,
  		MAGIC, FLETCHING, WOODCUTTING,
  		RUNECRAFT, SLAYER, FARMING,
  		CONSTRUCTION, HUNTER
  	);
focal_class.type: List<HiscoreSkill>
focal_class.var_name: SKILLS
focal_class.declarator: BOSSES = ImmutableList.of(
  		ABYSSAL_SIRE, ALCHEMICAL_HYDRA, BARROWS_CHESTS,
  		BRYOPHYTA, CALLISTO, CERBERUS,
  		CHAMBERS_OF_XERIC, CHAMBERS_OF_XERIC_CHALLENGE_MODE, CHAOS_ELEMENTAL,
  		CHAOS_FANATIC, COMMANDER_ZILYANA, CORPOREAL_BEAST,
  		DAGANNOTH_PRIME, DAGANNOTH_REX, DAGANNOTH_SUPREME,
  		CRAZY_ARCHAEOLOGIST, DERANGED_ARCHAEOLOGIST, GENERAL_GRAARDOR,
  		GIANT_MOLE, GROTESQUE_GUARDIANS, HESPORI,
  		KALPHITE_QUEEN, KING_BLACK_DRAGON, KRAKEN,
  		KREEARRA, KRIL_TSUTSAROTH, MIMIC,
  		NIGHTMARE, OBOR, SARACHNIS,
  		SCORPIA, SKOTIZO, THE_GAUNTLET,
  		THE_CORRUPTED_GAUNTLET, THEATRE_OF_BLOOD, THERMONUCLEAR_SMOKE_DEVIL,
  		TZKAL_ZUK, TZTOK_JAD, VENENATIS,
  		VETION, VORKATH, WINTERTODT,
  		ZALCANO, ZULRAH
  	)
focal_class.modifier: private static final
focal_class.original_string: private static final List<HiscoreSkill> BOSSES = ImmutableList.of(
  		ABYSSAL_SIRE, ALCHEMICAL_HYDRA, BARROWS_CHESTS,
  		BRYOPHYTA, CALLISTO, CERBERUS,
  		CHAMBERS_OF_XERIC, CHAMBERS_OF_XERIC_CHALLENGE_MODE, CHAOS_ELEMENTAL,
  		CHAOS_FANATIC, COMMANDER_ZILYANA, CORPOREAL_BEAST,
  		DAGANNOTH_PRIME, DAGANNOTH_REX, DAGANNOTH_SUPREME,
  		CRAZY_ARCHAEOLOGIST, DERANGED_ARCHAEOLOGIST, GENERAL_GRAARDOR,
  		GIANT_MOLE, GROTESQUE_GUARDIANS, HESPORI,
  		KALPHITE_QUEEN, KING_BLACK_DRAGON, KRAKEN,
  		KREEARRA, KRIL_TSUTSAROTH, MIMIC,
  		NIGHTMARE, OBOR, SARACHNIS,
  		SCORPIA, SKOTIZO, THE_GAUNTLET,
  		THE_CORRUPTED_GAUNTLET, THEATRE_OF_BLOOD, THERMONUCLEAR_SMOKE_DEVIL,
  		TZKAL_ZUK, TZTOK_JAD, VENENATIS,
  		VETION, VORKATH, WINTERTODT,
  		ZALCANO, ZULRAH
  	);
focal_class.type: List<HiscoreSkill>
focal_class.var_name: BOSSES
focal_class.declarator: ENDPOINTS = new HiscoreEndpoint[] {
  		HiscoreEndpoint.NORMAL, HiscoreEndpoint.IRONMAN, HiscoreEndpoint.HARDCORE_IRONMAN, HiscoreEndpoint.ULTIMATE_IRONMAN, HiscoreEndpoint.DEADMAN, HiscoreEndpoint.LEAGUE
  	}
focal_class.modifier: private static final
focal_class.original_string: private static final HiscoreEndpoint[] ENDPOINTS = new HiscoreEndpoint[] {
  		HiscoreEndpoint.NORMAL, HiscoreEndpoint.IRONMAN, HiscoreEndpoint.HARDCORE_IRONMAN, HiscoreEndpoint.ULTIMATE_IRONMAN, HiscoreEndpoint.DEADMAN, HiscoreEndpoint.LEAGUE
  	};
focal_class.type: HiscoreEndpoint[]
focal_class.var_name: ENDPOINTS
focal_class.declarator: client
focal_class.modifier: private final
focal_class.original_string: private final Client client;
focal_class.type: Client
focal_class.var_name: client
focal_class.declarator: config
focal_class.modifier: private final
focal_class.original_string: private final HiscoreConfig config;
focal_class.type: HiscoreConfig
focal_class.var_name: config
focal_class.declarator: nameAutocompleter
focal_class.modifier: private final
focal_class.original_string: private final NameAutocompleter nameAutocompleter;
focal_class.type: NameAutocompleter
focal_class.var_name: nameAutocompleter
focal_class.declarator: hiscoreClient
focal_class.modifier: private final
focal_class.original_string: private final HiscoreClient hiscoreClient;
focal_class.type: HiscoreClient
focal_class.var_name: hiscoreClient
focal_class.declarator: searchBar
focal_class.modifier: private final
focal_class.original_string: private final IconTextField searchBar;
focal_class.type: IconTextField
focal_class.var_name: searchBar
focal_class.declarator: skillLabels = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<HiscoreSkill, JLabel> skillLabels = new HashMap<>();
focal_class.type: Map<HiscoreSkill, JLabel>
focal_class.var_name: skillLabels
focal_class.declarator: tabGroup
focal_class.modifier: private final
focal_class.original_string: private final MaterialTabGroup tabGroup;
focal_class.type: MaterialTabGroup
focal_class.var_name: tabGroup
focal_class.declarator: selectedEndPoint
focal_class.modifier: private
focal_class.original_string: private HiscoreEndpoint selectedEndPoint;
focal_class.type: HiscoreEndpoint
focal_class.var_name: selectedEndPoint
focal_class.declarator: loading = false
focal_class.modifier: private
focal_class.original_string: private boolean loading = false;
focal_class.type: boolean
focal_class.var_name: loading
focal_class.file: runelite-client/src/main/java/net/runelite/client/plugins/hiscore/HiscorePanel.java
focal_class.identifier: HiscorePanel
focal_class.class_method_signature: HiscorePanel.HiscorePanel(@Nullable Client client,
  		HiscoreConfig config, NameAutocompleter nameAutocompleter, OkHttpClient okHttpClient)
focal_class.full_signature: @Inject public  HiscorePanel(@Nullable Client client,
  		HiscoreConfig config, NameAutocompleter nameAutocompleter, OkHttpClient okHttpClient)
focal_class.identifier: HiscorePanel
focal_class.modifiers: @Inject public
focal_class.parameters: (@Nullable Client client,
  		HiscoreConfig config, NameAutocompleter nameAutocompleter, OkHttpClient okHttpClient)
focal_class.signature:  HiscorePanel(@Nullable Client client,
  		HiscoreConfig config, NameAutocompleter nameAutocompleter, OkHttpClient okHttpClient)
focal_class.class_method_signature: HiscorePanel.shutdown()
focal_class.full_signature:  void shutdown()
focal_class.identifier: shutdown
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void shutdown()
focal_class.class_method_signature: HiscorePanel.onActivate()
focal_class.full_signature: @Override public void onActivate()
focal_class.identifier: onActivate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onActivate()
focal_class.class_method_signature: HiscorePanel.makeHiscorePanel(HiscoreSkill skill)
focal_class.full_signature: private JPanel makeHiscorePanel(HiscoreSkill skill)
focal_class.identifier: makeHiscorePanel
focal_class.modifiers: private
focal_class.parameters: (HiscoreSkill skill)
focal_class.return: JPanel
focal_class.signature: JPanel makeHiscorePanel(HiscoreSkill skill)
focal_class.class_method_signature: HiscorePanel.lookup(String username)
focal_class.full_signature: public void lookup(String username)
focal_class.identifier: lookup
focal_class.modifiers: public
focal_class.parameters: (String username)
focal_class.return: void
focal_class.signature: void lookup(String username)
focal_class.class_method_signature: HiscorePanel.lookup()
focal_class.full_signature: private void lookup()
focal_class.identifier: lookup
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void lookup()
focal_class.class_method_signature: HiscorePanel.applyHiscoreResult(HiscoreResult result)
focal_class.full_signature: private void applyHiscoreResult(HiscoreResult result)
focal_class.identifier: applyHiscoreResult
focal_class.modifiers: private
focal_class.parameters: (HiscoreResult result)
focal_class.return: void
focal_class.signature: void applyHiscoreResult(HiscoreResult result)
focal_class.class_method_signature: HiscorePanel.addInputKeyListener(KeyListener l)
focal_class.full_signature:  void addInputKeyListener(KeyListener l)
focal_class.identifier: addInputKeyListener
focal_class.parameters: (KeyListener l)
focal_class.return: void
focal_class.signature: void addInputKeyListener(KeyListener l)
focal_class.class_method_signature: HiscorePanel.removeInputKeyListener(KeyListener l)
focal_class.full_signature:  void removeInputKeyListener(KeyListener l)
focal_class.identifier: removeInputKeyListener
focal_class.parameters: (KeyListener l)
focal_class.return: void
focal_class.signature: void removeInputKeyListener(KeyListener l)
focal_class.class_method_signature: HiscorePanel.detailsHtml(HiscoreResult result, HiscoreSkill skill)
focal_class.full_signature: private String detailsHtml(HiscoreResult result, HiscoreSkill skill)
focal_class.identifier: detailsHtml
focal_class.modifiers: private
focal_class.parameters: (HiscoreResult result, HiscoreSkill skill)
focal_class.return: String
focal_class.signature: String detailsHtml(HiscoreResult result, HiscoreSkill skill)
focal_class.class_method_signature: HiscorePanel.sanitize(String lookup)
focal_class.full_signature: private static String sanitize(String lookup)
focal_class.identifier: sanitize
focal_class.modifiers: private static
focal_class.parameters: (String lookup)
focal_class.return: String
focal_class.signature: String sanitize(String lookup)
focal_class.class_method_signature: HiscorePanel.resetEndpoints()
focal_class.full_signature: private void resetEndpoints()
focal_class.identifier: resetEndpoints
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetEndpoints()
focal_class.class_method_signature: HiscorePanel.selectWorldEndpoint()
focal_class.full_signature: private HiscoreEndpoint selectWorldEndpoint()
focal_class.identifier: selectWorldEndpoint
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: HiscoreEndpoint
focal_class.signature: HiscoreEndpoint selectWorldEndpoint()
focal_class.class_method_signature: HiscorePanel.formatLevel(int level)
focal_class.full_signature: @VisibleForTesting static String formatLevel(int level)
focal_class.identifier: formatLevel
focal_class.modifiers: @VisibleForTesting static
focal_class.parameters: (int level)
focal_class.return: String
focal_class.signature: String formatLevel(int level)
focal_class.class_method_signature: HiscorePanel.pad(String str, HiscoreSkillType type)
focal_class.full_signature: private static String pad(String str, HiscoreSkillType type)
focal_class.identifier: pad
focal_class.modifiers: private static
focal_class.parameters: (String str, HiscoreSkillType type)
focal_class.return: String
focal_class.signature: String pad(String str, HiscoreSkillType type)
focal_class.superclass: extends PluginPanel
focal_method.body: @VisibleForTesting
  	static String formatLevel(int level)
  	{
  		if (level < 10000)
  		{
  			return Integer.toString(level);
  		}
  		else
  		{
  			return (level / 1000) + "k";
  		}
  	}
focal_method.class_method_signature: HiscorePanel.formatLevel(int level)
focal_method.full_signature: @VisibleForTesting static String formatLevel(int level)
focal_method.identifier: formatLevel
focal_method.invocations: toString
focal_method.modifiers: @VisibleForTesting static
focal_method.parameters: (int level)
focal_method.return: String
focal_method.signature: String formatLevel(int level)