   <i>Note that sorting by machine learning is currently available only for the Actions tab.</i>
  ]]></description>

  <depends optional="true" config-file="vcs-feature-provider.xml">Git4Idea</depends>

  <extensions defaultExtensionNs="com.intellij">
    <searchEverywhereMlService implementation="com.intellij.ide.actions.searcheverywhere.ml.SearchEverywhereMlSessionService"/>
    <statistic.eventLog.eventLoggerProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.logger.SearchEverywhereEventLoggerProvider"
      order="first"/>

    <advancedSetting default="true" id="searcheverywhere.ml.sort.action"
                     groupKey="advanced.setting.searcheverywhere.ml.name"
                     bundle="messages.searchEverywhereMlBundle"/>
    <advancedSetting default="false" id="searcheverywhere.ml.sort.files"
                     groupKey="advanced.setting.searcheverywhere.ml.name"
                     bundle="messages.searchEverywhereMlBundle"/>

    <registryKey defaultValue="false"
                 description="When enabled ML experiments with actions order won't be performed"
                 key="search.everywhere.force.disable.experiment.action.ml"/>
    <registryKey defaultValue="false"
                 description="When enabled ML experiments with files order won't be performed"
                 key="search.everywhere.force.disable.experiment.files.ml"/>
    <registryKey defaultValue="false"
                 description="When enabled ML logs and experiments in Search Everywhere will be disabled"
                 key="search.everywhere.force.disable.logging.ml"/>
    <registryKey defaultValue="-1"
                 description="Defines the experiment group number. Negative value will be ignored."
                 key="search.everywhere.ml.experiment.group"/>

    <registryKey defaultValue=""
                 description="Path to the local action-ranking model."
                 key="search.everywhere.ml.action.model.path"/>
    <registryKey defaultValue=""
                 description="Path to the local file-ranking model."
                 key="search.everywhere.ml.files.model.path"/>

    <statistician key="searchEverywhere"
                  implementationClass="com.intellij.ide.actions.searcheverywhere.ml.features.statistician.SearchEverywhereFileStatistician"/>
    <statistician key="searchEverywhere"
                  implementationClass="com.intellij.ide.actions.searcheverywhere.ml.features.statistician.SearchEverywhereActionStatistician"/>
    <statistician key="searchEverywhere"
                  implementationClass="com.intellij.ide.actions.searcheverywhere.ml.features.statistician.SearchEverywhereSymbolStatistician"/>

    <statistics.validation.customValidationRule
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereRunConfigurationFeaturesProvider$RunConfigurationTypeValidator"/>
    <statistics.counterUsagesCollector
      implementationClass="com.intellij.ide.actions.searcheverywhere.ml.SearchEverywhereMLStatisticsCollector"/>
  </extensions>

  <extensionPoints>
    <extensionPoint name="searchEverywhereElementFeaturesProvider"
                    interface="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereElementFeaturesProvider"
                    dynamic="true"/>

    <extensionPoint name="elementKeyForIdProvider"
                    interface="com.intellij.ide.actions.searcheverywhere.ml.id.ElementKeyForIdProvider"
                    dynamic="true"/>

    <extensionPoint name="rankingModelLoader"
                    interface="com.intellij.ide.actions.searcheverywhere.ml.model.SearchEverywhereMLRankingModelLoader"
                    dynamic="true"/>
  </extensionPoints>

  <extensions defaultExtensionNs="com.intellij.searcheverywhere.ml">
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereGeneralActionFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereActionFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereOptionFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereClassOrFileFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereFileFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereClassFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereCommonFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereSymbolFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywhereRunConfigurationFeaturesProvider"/>
    <searchEverywhereElementFeaturesProvider
      implementation="com.intellij.ide.actions.searcheverywhere.ml.features.SearchEverywherePsiElementFeaturesProvider"/>

    <elementKeyForIdProvider implementation="com.intellij.ide.actions.searcheverywhere.ml.id.ActionKeyProvider"/>
    <elementKeyForIdProvider implementation="com.intellij.ide.actions.searcheverywhere.ml.id.PsiElementKeyProvider"/>
    <elementKeyForIdProvider implementation="com.intellij.ide.actions.searcheverywhere.ml.id.RunConfigurationsKeyProvider"/>

    <rankingModelLoader
      implementation="com.intellij.ide.actions.searcheverywhere.ml.model.SearchEverywhereActionsRankingModelLoader"/>
    <rankingModelLoader
      implementation="com.intellij.ide.actions.searcheverywhere.ml.model.SearchEverywhereFilesRankingModelLoader"/>
  </extensions>

  <applicationListeners>
    <listener class="com.intellij.filePrediction.features.history.FileHistoryManagerWrapper$ProjectClosureListener"
              topic="com.intellij.openapi.project.ProjectManagerListener"/>
  </applicationListeners>
  <projectListeners>
    <listener class="com.intellij.filePrediction.features.history.FileHistoryManagerWrapper$EditorManagerListener"
              topic="com.intellij.openapi.fileEditor.FileEditorManagerListener"/>
  </projectListeners>
  <actions>
    <action id="com.intellij.ide.actions.searcheverywhere.ml.actions.OpenFeaturesInScratchFileAction"
            class="com.intellij.ide.actions.searcheverywhere.ml.actions.OpenFeaturesInScratchFileAction">
      <add-to-group group-id="MaintenanceGroup" anchor="last"/>
      <keyboard-shortcut keymap="$default" first-keystroke="shift ctrl alt 1"/>
    </action>
  </actions>
  <resource-bundle>messages.searchEverywhereMlBundle</resource-bundle>
</idea-plugin>PK