<commit_before>/*
 * @author max
 */
package com.intellij.openapi.vfs.newvfs;

import com.intellij.ide.startup.CacheUpdater;
import com.intellij.ide.startup.SyncSession;
import com.intellij.ide.startup.impl.FileSystemSynchronizerImpl;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VfsBundle;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.intellij.openapi.vfs.ex.VirtualFileManagerEx;
import com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl;
import com.intellij.openapi.vfs.newvfs.events.VFileEvent;
import com.intellij.openapi.vfs.newvfs.persistent.RefreshWorker;
import com.intellij.util.concurrency.Semaphore;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;

public class RefreshSessionImpl extends RefreshSession {
  private final boolean myIsAsync;
  private final boolean myIsRecursive;
  private Runnable myFinishRunnable;
  private final List<CacheUpdater> myRefreshParticipants;
  
  private List<VirtualFile> myWorkQueue = new ArrayList<VirtualFile>();
  private List<VFileEvent> myEvents = new ArrayList<VFileEvent>();
  private final Semaphore mySemaphore = new Semaphore();

  public RefreshSessionImpl(final boolean isAsync, boolean reqursively,
                            final Runnable finishRunnable,
                            final List<CacheUpdater> refreshParticipants) {
    myRefreshParticipants = refreshParticipants;
    myIsRecursive = reqursively;
    myFinishRunnable = finishRunnable;
    myIsAsync = isAsync;
  }

  public RefreshSessionImpl(final List<VFileEvent> events, final List<CacheUpdater> refreshParticipants) {
    myIsAsync = false;
    myIsRecursive = false;
    myFinishRunnable = null;<commit_msg>cleanup<commit_after>/*
 * @author max
 */
package com.intellij.openapi.vfs.newvfs;

import com.intellij.ide.startup.CacheUpdater;
import com.intellij.ide.startup.SyncSession;
import com.intellij.ide.startup.impl.FileSystemSynchronizerImpl;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VfsBundle;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.VirtualFileManager;
import com.intellij.openapi.vfs.ex.VirtualFileManagerEx;
import com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl;
import com.intellij.openapi.vfs.newvfs.events.VFileEvent;
import com.intellij.openapi.vfs.newvfs.persistent.RefreshWorker;
import com.intellij.util.concurrency.Semaphore;

import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;

public class RefreshSessionImpl extends RefreshSession {
  private final boolean myIsAsync;
  private final boolean myIsRecursive;
  private final Runnable myFinishRunnable;
  private final List<CacheUpdater> myRefreshParticipants;
  
  private List<VirtualFile> myWorkQueue = new ArrayList<VirtualFile>();
  private List<VFileEvent> myEvents = new ArrayList<VFileEvent>();
  private final Semaphore mySemaphore = new Semaphore();

  public RefreshSessionImpl(final boolean isAsync, boolean reqursively,
                            final Runnable finishRunnable,
                            final List<CacheUpdater> refreshParticipants) {
    myRefreshParticipants = refreshParticipants;
    myIsRecursive = reqursively;
    myFinishRunnable = finishRunnable;
    myIsAsync = isAsync;
  }

  public RefreshSessionImpl(final List<VFileEvent> events, final List<CacheUpdater> refreshParticipants) {
    myIsAsync = false;
    myIsRecursive = false;
    myFinishRunnable = null;
{'fraction_non_alphanumeric': 0.08415584415584415, 'fraction_numerical': 0.0, 'mean_word_length': 5.05503144654088, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6543047', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1190, 'n_words': 220}