<commit_before>package com.intellij.ide.projectView.impl;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;

public class PsiFileUrl extends AbstractUrl {

  private static final String ELEMENT_TYPE = "psiFile";

  public PsiFileUrl(String url, String moduleName) {
    super(url, moduleName, ELEMENT_TYPE);
  }

  public Object[] createPath(Project project) {
    return new Object[]{PsiManager.getInstance(project).findFile(VirtualFileManager.getInstance().findFileByUrl(url))};
  }

  protected AbstractUrl createUrl(String moduleName, String url) {
      return new PsiFileUrl(url, moduleName);<commit_msg>SCR 44983<commit_after>package com.intellij.ide.projectView.impl;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiManager;

public class PsiFileUrl extends AbstractUrl {

  private static final String ELEMENT_TYPE = "psiFile";

  public PsiFileUrl(String url, String moduleName) {
    super(url, moduleName, ELEMENT_TYPE);
  }

  public Object[] createPath(Project project) {
    final VirtualFile fileByUrl = VirtualFileManager.getInstance().findFileByUrl(url);
    if (fileByUrl == null || !fileByUrl.isValid()){
      return null;
    }
    return new Object[]{PsiManager.getInstance(project).findFile(fileByUrl)};
  }

  protected AbstractUrl createUrl(String moduleName, String url) {
      return new PsiFileUrl(url, moduleName);
{'fraction_non_alphanumeric': 0.10168471720818291, 'fraction_numerical': 0.0030084235860409147, 'mean_word_length': 5.420849420849421, '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': '253182', 'n_tokens_mistral': 523, 'n_tokens_neox': 515, 'n_words': 106}