<commit_before>package VASSAL.tools.swing;

import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.UIManager;

import java.awt.Component;

import javax.swing.JSplitPane;

import org.apache.commons.lang3.SystemUtils;

public class SplitPane extends JSplitPane {
  private static final long serialVersionUID = 1L;

  private int prevDividerLocation = 0;
  private int prevDividerSize = 0;

  public SplitPane(int orientation, Component first, Component second) {
    super(orientation, first, second);
    setDividerLocation(0.5);
    setContinuousLayout(true);
  }

  public void setLeftVisible(boolean vis) {
    setComponentVisible(getLeftComponent(), vis);
  }

  public void setRightVisible(boolean vis) {
    setComponentVisible(getRightComponent(), vis);
  }

  public void setTopVisible(boolean vis) {
    setComponentVisible(getTopComponent(), vis);
  }

  public void setBottomVisible(boolean vis) {
    setComponentVisible(getBottomComponent(), vis);
  }

  private void setComponentVisible(Component c, boolean vis) {
    if (c.isVisible() != vis) {
      toggleComponent(c);
    }
  } <commit_msg>Whitespace.<commit_after>package VASSAL.tools.swing;

import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.UIManager;

import java.awt.Component;

import javax.swing.JSplitPane;

import org.apache.commons.lang3.SystemUtils;

public class SplitPane extends JSplitPane {
  private static final long serialVersionUID = 1L;

  private int prevDividerLocation = 0;
  private int prevDividerSize = 0;

  public SplitPane(int orientation, Component first, Component second) {
    super(orientation, first, second);
    setDividerLocation(0.5);
    setContinuousLayout(true);
  }

  public void setLeftVisible(boolean vis) {
    setComponentVisible(getLeftComponent(), vis);
  }

  public void setRightVisible(boolean vis) {
    setComponentVisible(getRightComponent(), vis);
  }

  public void setTopVisible(boolean vis) {
    setComponentVisible(getTopComponent(), vis);
  }

  public void setBottomVisible(boolean vis) {
    setComponentVisible(getBottomComponent(), vis);
  }

  private void setComponentVisible(Component c, boolean vis) {
    if (c.isVisible() != vis) {
      toggleComponent(c);
    }
  }
{'fraction_non_alphanumeric': 0.09649502379922112, 'fraction_numerical': 0.005192557334487235, 'mean_word_length': 4.65281173594132, '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': '2493964', 'n_tokens_mistral': 695, 'n_tokens_neox': 672, 'n_words': 162}