<commit_before>package org.jetbrains.plugins.groovy.lang.surroundWith.descriptors;

import com.intellij.lang.surroundWith.Surrounder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.groovy.lang.surroundWith.surrounders.GroovySurrounderByParametrizedClosure;
import org.jetbrains.plugins.groovy.lang.surroundWith.surrounders.surroundersImpl.blocks.open.*;
import org.jetbrains.plugins.groovy.lang.surroundWith.surrounders.surroundersImpl.expressions.*;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * User: Dmitry.Krasilschikov
 * Date: 22.05.2007
 */
public class GroovyStmtsSurroundDescriptor extends GroovySurroundDescriptor {
  private static Surrounder[] stmtsSurrounders = new Surrounder[]{
      new GroovyWithWithStatementsSurrounder(),

      new GroovyWithIfSurrounder(),
      new GroovyWithIfElseSurrounder(),

      new GroovyWithTryCatchSurrounder(),
      new GroovyWithTryFinallySurrounder(),
      new GroovyWithTryCatchFinallySurrounder(),

      new GroovyWithWhileSurrounder(),

      new GroovySurrounderByParametrizedClosure(),
  };

      /********** ***********/
  private static Surrounder[] exprSurrounders = new Surrounder[]{
      new GroovyWithBracketsExprSurrounder(),
      new GroovyWithTypeCastSurrounder(),

      new GroovyWithWithExprSurrounder(),

      new GroovyWithIfExprSurrounder(),
      new GroovyWithIfElseExprSurrounder(),

      new GroovyWithWhileExprSurrounder()
  };

  public static Surrounder[] getStmtsSurrounders() {
    return stmtsSurrounders;
  }

  public static Surrounder[] getExprSurrounders() {
    return exprSurrounders;
  }

  @NotNull
  public Surrounder[] getSurrounders() {
    List<Surrounder> surroundersList = new ArrayList<Surrounder>();
    surroundersList.addAll(Arrays.asList(stmtsSurrounders));
    surroundersList.addAll(Arrays.asList(exprSurrounders));
    return surroundersList.toArray(new Surrounder[0]);
  }
}<commit_msg>expessions before statements<commit_after>package org.jetbrains.plugins.groovy.lang.surroundWith.descriptors;

import com.intellij.lang.surroundWith.Surrounder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.plugins.groovy.lang.surroundWith.surrounders.GroovySurrounderByParametrizedClosure;
import org.jetbrains.plugins.groovy.lang.surroundWith.surrounders.surroundersImpl.blocks.open.*;
import org.jetbrains.plugins.groovy.lang.surroundWith.surrounders.surroundersImpl.expressions.*;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * User: Dmitry.Krasilschikov
 * Date: 22.05.2007
 */
public class GroovyStmtsSurroundDescriptor extends GroovySurroundDescriptor {
  private static Surrounder[] stmtsSurrounders = new Surrounder[]{
      new GroovyWithWithStatementsSurrounder(),

      new GroovyWithIfSurrounder(),
      new GroovyWithIfElseSurrounder(),

      new GroovyWithTryCatchSurrounder(),
      new GroovyWithTryFinallySurrounder(),
      new GroovyWithTryCatchFinallySurrounder(),

      new GroovyWithWhileSurrounder(),

      new GroovySurrounderByParametrizedClosure(),
  };

      /********** ***********/
  private static Surrounder[] exprSurrounders = new Surrounder[]{
      new GroovyWithBracketsExprSurrounder(),
      new GroovyWithTypeCastSurrounder(),

      new GroovyWithWithExprSurrounder(),

      new GroovyWithIfExprSurrounder(),
      new GroovyWithIfElseExprSurrounder(),

      new GroovyWithWhileExprSurrounder()
  };

  public static Surrounder[] getStmtsSurrounders() {
    return stmtsSurrounders;
  }

  public static Surrounder[] getExprSurrounders() {
    return exprSurrounders;
  }

  @NotNull
  public Surrounder[] getSurrounders() {
    List<Surrounder> surroundersList = new ArrayList<Surrounder>();
    surroundersList.addAll(Arrays.asList(exprSurrounders));
    surroundersList.addAll(Arrays.asList(stmtsSurrounders));
    return surroundersList.toArray(new Surrounder[0]);
  }
}
{'fraction_non_alphanumeric': 0.10256410256410256, 'fraction_numerical': 0.00456968773800457, 'mean_word_length': 5.127527216174183, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6083399', 'n_tokens_mistral': 1322, 'n_tokens_neox': 1224, 'n_words': 186}