<commit_before>package de.plushnikov.lombok;

import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess;
import com.intellij.psi.PsiFile;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import junit.framework.ComparisonFailure;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.regex.Pattern;

public abstract class LombokLightCodeInsightTestCase extends LightCodeInsightFixtureTestCase {
  private static final String LOMBOK_SRC_PATH = "./generated/src";

  @Override
  protected String getTestDataPath() {
    return ".";
  }

  @Override
  protected String getBasePath() {
    return "testData";
  }

  @Override
  public void setUp() throws Exception {
    VfsRootAccess.SHOULD_PERFORM_ACCESS_CHECK = false;
    super.setUp();
    loadFilesFrom(LOMBOK_SRC_PATH);
  }
<commit_msg>used api for VFS-Access<commit_after>package de.plushnikov.lombok;

import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess;
import com.intellij.psi.PsiFile;
import com.intellij.testFramework.fixtures.LightCodeInsightFixtureTestCase;
import junit.framework.ComparisonFailure;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.regex.Pattern;

public abstract class LombokLightCodeInsightTestCase extends LightCodeInsightFixtureTestCase {
  private static final String LOMBOK_SRC_PATH = "./generated/src";

  @Override
  protected String getTestDataPath() {
    return ".";
  }

  @Override
  protected String getBasePath() {
    return "testData";
  }

  @Override
  public void setUp() throws Exception {
    final String absoluteTestDataPath = new File(getTestDataPath(), getBasePath()).getCanonicalPath();
    final String absoluteLombokPath = new File(LOMBOK_SRC_PATH).getCanonicalPath();
    VfsRootAccess.allowRootAccess(absoluteTestDataPath, absoluteLombokPath);

    super.setUp();
    loadFilesFrom(LOMBOK_SRC_PATH);
  }

{'fraction_non_alphanumeric': 0.09618874773139746, 'fraction_numerical': 0.0, 'mean_word_length': 5.372832369942197, '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': '5218675', 'n_tokens_mistral': 719, 'n_tokens_neox': 708, 'n_words': 128}