<commit_before>package com.google.auto.value.processor;

import static com.google.common.truth.Truth.assertThat;

import com.google.common.collect.ImmutableSet;
import com.google.common.reflect.ClassPath;
import com.google.common.truth.Expect;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Arrays;

/**
 * Validates the assumptions AutoValue makes about Guava immutable collection builders. We expect
 * for each public class {@code com.google.common.collect.ImmutableFoo} that:
 * <ul>
 * <li>it contains a public nested class {@code ImmutableFoo.Builder} with the same type parameters;
 * <li>there is a public static method {@code ImmutableFoo.builder()} that returns
 *     {@code ImmutableFoo.Builder};
 * <li>there is a method {@code ImmutableFoo.Builder.build()} that returns {@code ImmutableFoo};
 * <li>and there is a method in {@code ImmutableFoo.Builder} called either {@code addAll}
 *     or {@code putAll} with a single parameter to which {@code ImmutableFoo} can be assigned.
 * </ul>
 *
 * @author <EMAIL> (<NAME>)
 */
@RunWith(JUnit4.class)
public class GuavaCollectionBuildersTest {
  private static final ImmutableSet<String> NON_BUILDABLE_COLLECTIONS =
      ImmutableSet.of("ImmutableCollection", "ImmutableMapBuilder");

  @Rule public final Expect expect = Expect.create();<commit_msg>Remove references to ImmutableMapBuilder.<commit_after>package com.google.auto.value.processor;

import static com.google.common.truth.Truth.assertThat;

import com.google.common.collect.ImmutableSet;
import com.google.common.reflect.ClassPath;
import com.google.common.truth.Expect;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Arrays;

/**
 * Validates the assumptions AutoValue makes about Guava immutable collection builders. We expect
 * for each public class {@code com.google.common.collect.ImmutableFoo} that:
 * <ul>
 * <li>it contains a public nested class {@code ImmutableFoo.Builder} with the same type parameters;
 * <li>there is a public static method {@code ImmutableFoo.builder()} that returns
 *     {@code ImmutableFoo.Builder};
 * <li>there is a method {@code ImmutableFoo.Builder.build()} that returns {@code ImmutableFoo};
 * <li>and there is a method in {@code ImmutableFoo.Builder} called either {@code addAll}
 *     or {@code putAll} with a single parameter to which {@code ImmutableFoo} can be assigned.
 * </ul>
 *
 * @author <EMAIL> (<NAME>)
 */
@RunWith(JUnit4.class)
public class GuavaCollectionBuildersTest {
  private static final ImmutableSet<String> NON_BUILDABLE_COLLECTIONS =
      ImmutableSet.of("ImmutableCollection");

  @Rule public final Expect expect = Expect.create();
{'fraction_non_alphanumeric': 0.11114722131946701, 'fraction_numerical': 0.0012999675008124798, 'mean_word_length': 5.180722891566265, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4944224', 'n_tokens_mistral': 921, 'n_tokens_neox': 900, 'n_words': 263}