<commit_before>// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.webcore.packaging;

import com.intellij.internal.statistic.eventLog.FeatureUsageData;
import com.intellij.internal.statistic.service.fus.collectors.FUCounterUsageLogger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Pair;
import com.intellij.util.containers.ContainerUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Map;

public class PackageManagementUsageCollector {

  private static final Map<String, String> CLASS_TO_NAME = ContainerUtil.newHashMap(
    Pair.create("com.intellij.javascript.nodejs.settings.NodePackageManagementService", "Node.js"),
    Pair.create("com.jetbrains.python.packaging.ui.PyPackageManagementService", "Python")
  );

  private PackageManagementUsageCollector() {}
<commit_msg>use ImmutableMap for constant map (IDEA-CR-56765)<commit_after>// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.webcore.packaging;

import com.google.common.collect.ImmutableMap;
import com.intellij.internal.statistic.eventLog.FeatureUsageData;
import com.intellij.internal.statistic.service.fus.collectors.FUCounterUsageLogger;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Map;

public class PackageManagementUsageCollector {

  private static final Map<String, String> CLASS_TO_NAME = ImmutableMap.of(
    "com.intellij.javascript.nodejs.settings.NodePackageManagementService", "Node.js",
    "com.jetbrains.python.packaging.ui.PyPackageManagementService", "Python"
  );

  private PackageManagementUsageCollector() {}

{'fraction_non_alphanumeric': 0.0965553235908142, 'fraction_numerical': 0.013048016701461378, 'mean_word_length': 5.89568345323741, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3025496', 'n_tokens_mistral': 600, 'n_tokens_neox': 564, 'n_words': 121}