<commit_before>package org.jetbrains.idea.maven.core;

import com.intellij.ide.IconProvider;
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.IconLoader;
import com.intellij.psi.PsiElement;
import com.intellij.psi.xml.XmlFile;
import com.intellij.javaee.ExternalResourceManager;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.idea.maven.core.util.MavenEnv;

import javax.swing.*;

/**
 * Author: Vladislav.Kaznacheev
 */
public class MavenApplicationComponent implements ApplicationComponent, IconProvider {
  public static final Icon mavenIcon = IconLoader.getIcon("/images/mavenEmblem.png");

  @NonNls
  @NotNull
  public String getComponentName() {
    return "MavenApplicationComponent";
  }

  public void initComponent() {
    ExternalResourceManager.getInstance().addStdResource("http://maven.apache.org/POM/4.0.0","maven-v4_0_0.xsd",getClass());
  }

  public void disposeComponent() {
  }

  @Nullable
  public Icon getIcon(@NotNull final PsiElement element, final int flags) {
    if (element instanceof XmlFile && Comparing.strEqual(((XmlFile)element).getName(), MavenEnv.POM_FILE)) {
      return mavenIcon;
    }
    return null;
  }
}
<commit_msg>XML validation returns unexpected error (IDEADEV-22811)<commit_after>package org.jetbrains.idea.maven.core;

import com.intellij.ide.IconProvider;
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.IconLoader;
import com.intellij.psi.PsiElement;
import com.intellij.psi.xml.XmlFile;
import com.intellij.javaee.ExternalResourceManager;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.idea.maven.core.util.MavenEnv;

import javax.swing.*;

/**
 * Author: Vladislav.Kaznacheev
 */
public class MavenApplicationComponent implements ApplicationComponent, IconProvider {
  public static final Icon mavenIcon = IconLoader.getIcon("/images/mavenEmblem.png");

  @NonNls
  @NotNull
  public String getComponentName() {
    return "MavenApplicationComponent";
  }

  public void initComponent() {
    ExternalResourceManager.getInstance().addStdResource("http://maven.apache.org/maven-v4_0_0.xsd","maven-v4_0_0.xsd",getClass());
  }

  public void disposeComponent() {
  }

  @Nullable
  public Icon getIcon(@NotNull final PsiElement element, final int flags) {
    if (element instanceof XmlFile && Comparing.strEqual(((XmlFile)element).getName(), MavenEnv.POM_FILE)) {
      return mavenIcon;
    }
    return null;
  }
}

{'fraction_non_alphanumeric': 0.11268629589240277, 'fraction_numerical': 0.0061795710650672485, 'mean_word_length': 5.226244343891403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1093829', 'n_tokens_mistral': 882, 'n_tokens_neox': 839, 'n_words': 153}