<commit_before>/*
 * Copyright (c) 2000-2004 by JetBrains s.r.o. All Rights Reserved.
 * Use is subject to license terms.
 */
package org.jetbrains.idea.devkit.module;

import com.intellij.j2ee.j2eeDom.DeploymentDescriptorMetaData;
import com.intellij.openapi.module.ModuleType;

public class PluginDescriptorMetaData implements DeploymentDescriptorMetaData {
  private final static String VERSION = "1.0";

  public String[] getAvailableVersions() {
    return new String[] {VERSION};
  }

  public String getTemplateNameAccordingToVersion(String version) {
    return "plugin.xml";
  }

  public String getDefaultVersion() {
    return VERSION;
  }

  public String getDefaultFileName() {
    return "plugin.xml";
  }

  public String getDefaultDirectoryName() {
    return "META-INF";
  }

  public String getTitle() {
    return "IntelliJ IDEA Plugin Descriptor";
  }

  public ModuleType[] getSuitableTypes() {
    return new ModuleType[] {PluginModuleType.getInstance()};
  }
}<commit_msg>added flag isDescriptorOptional() to DeploymentDescriptorMetaData<commit_after>/*
 * Copyright (c) 2000-2004 by JetBrains s.r.o. All Rights Reserved.
 * Use is subject to license terms.
 */
package org.jetbrains.idea.devkit.module;

import com.intellij.j2ee.j2eeDom.DeploymentDescriptorMetaData;
import com.intellij.openapi.module.ModuleType;

public class PluginDescriptorMetaData implements DeploymentDescriptorMetaData {
  private final static String VERSION = "1.0";

  public String[] getAvailableVersions() {
    return new String[] {VERSION};
  }

  public String getTemplateNameAccordingToVersion(String version) {
    return "plugin.xml";
  }

  public String getDefaultVersion() {
    return VERSION;
  }

  public String getDefaultFileName() {
    return "plugin.xml";
  }

  public String getDefaultDirectoryName() {
    return "META-INF";
  }

  public String getTitle() {
    return "IntelliJ IDEA Plugin Descriptor";
  }

  public ModuleType[] getSuitableTypes() {
    return new ModuleType[] {PluginModuleType.getInstance()};
  }

  public boolean isDescriptorOptional() {
    return false;
  }
}
{'fraction_non_alphanumeric': 0.09824394874228762, 'fraction_numerical': 0.011390602752728999, 'mean_word_length': 4.256857855361596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4329113', 'n_tokens_mistral': 647, 'n_tokens_neox': 613, 'n_words': 161}