<commit_before>package com.jetbrains.python.sdk;

import com.intellij.openapi.util.io.FileUtil;

import java.io.File;

/**
 * @author traff
 */
public class PyPySdkFlavor extends PythonSdkFlavor {
  private PyPySdkFlavor() {
  }

  public static PyPySdkFlavor INSTANCE = new PyPySdkFlavor();

  @Override
  public boolean isValidSdkHome(String path) {
    File file = new File(path);
    return file.isFile() && FileUtil.getNameWithoutExtension(file).toLowerCase().startsWith("pypy");
  }

  @Override
  public String getVersionString(String sdkHome) {
    return getVersionFromOutput(sdkHome, "--version", "\\[(PyPy \\S+)\\]", true);
  }
}<commit_msg>fixed PY-5097 PyPy interpreter is marked as Unknown in interpreters list<commit_after>package com.jetbrains.python.sdk;

import com.intellij.openapi.util.io.FileUtil;

import java.io.File;

/**
 * @author traff
 */
public class PyPySdkFlavor extends PythonSdkFlavor {
  private PyPySdkFlavor() {
  }

  public static PyPySdkFlavor INSTANCE = new PyPySdkFlavor();

  @Override
  public boolean isValidSdkHome(String path) {
    File file = new File(path);
    return file.isFile() && FileUtil.getNameWithoutExtension(file).toLowerCase().startsWith("pypy");
  }

  @Override
  public String getVersionString(String sdkHome) {
    return getVersionFromOutput(sdkHome, "--version", "\\[(PyPy .+)\\]", true);
  }
}
{'fraction_non_alphanumeric': 0.1278471711976488, 'fraction_numerical': 0.0029390154298310064, 'mean_word_length': 4.469879518072289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7055305', 'n_tokens_mistral': 459, 'n_tokens_neox': 452, 'n_words': 97}