<commit_before>/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio.client.file.options;

import alluxio.CommonTestUtils;

import org.junit.Assert;
import org.junit.Test;

import java.util.Random;

/**
 * Tests for the {@link FreeOptions} class.
 */
public class FreeOptionsTest {
  /**
   * Tests that building a {@link FreeOptions} with the defaults works.
   */
  @Test
  public void defaults() {
    FreeOptions options = FreeOptions.defaults();

    Assert.assertFalse(options.isRecursive());
  }

  /**
   * Tests getting and setting fields.
   */
  @Test
  public void fields() {
    Random random = new Random();
    boolean recursive = random.nextBoolean();

    FreeOptions options = FreeOptions.defaults();
    options.setRecursive(recursive);

    Assert.assertEquals(recursive, options.isRecursive());
  }<commit_msg>[SMALLFIX] Use static imports for standard test utilities in FreeOptionsTest.java<commit_after>/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio.client.file.options;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

import alluxio.CommonTestUtils;

import org.junit.Test;

import java.util.Random;

/**
 * Tests for the {@link FreeOptions} class.
 */
public class FreeOptionsTest {
  /**
   * Tests that building a {@link FreeOptions} with the defaults works.
   */
  @Test
  public void defaults() {
    FreeOptions options = FreeOptions.defaults();

    assertFalse(options.isRecursive());
  }

  /**
   * Tests getting and setting fields.
   */
  @Test
  public void fields() {
    Random random = new Random();
    boolean recursive = random.nextBoolean();

    FreeOptions options = FreeOptions.defaults();
    options.setRecursive(recursive);

    assertEquals(recursive, options.isRecursive());
  }
{'fraction_non_alphanumeric': 0.0951335528723015, 'fraction_numerical': 0.0029271862422246614, 'mean_word_length': 3.8303886925795054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5109779', 'n_tokens_mistral': 747, 'n_tokens_neox': 727, 'n_words': 279}