<commit_before>package quickstart;

import static jsweet.dom.Globals.alert;

public class QuickStart {

	public static void main(String[] args) {
		alert("It works!");
	}

}<commit_msg>to version 1.1.1<commit_after>package quickstart;

import java.util.function.BinaryOperator;

import jsweet.lang.Array;

/**
 * This example uses a Java map to store and display complementary colors. It
 * demonstrates that Java APIs and JavaScript APIs can be used together to build
 * programs.
 */
public class QuickStart {

	public static void main(String[] args) {
		new WrongOverloadConstructorWithVarargs<Double>().test(2);
		new WrongOverloadConstructorWithVarargs<Double>(2, (a, b) -> a + b, (a, b) -> a - b).test(2, (a, b) -> a + b,
				(a, b) -> a - b);
		// same but without varargs
		new WrongOverloadConstructorWithVarargs<Double>(2).test(2);
		// $export("trace", trace);
		System.out.println(WrongOverloadConstructorWithVarargs.trace);
	}

	public static class WrongOverloadConstructorWithVarargs<T> {

		static Array<String> trace = new Array<>();

		public WrongOverloadConstructorWithVarargs() {
		}

		@SafeVarargs
		public WrongOverloadConstructorWithVarargs(int defaultLevel, BinaryOperator<T>... precedence) {
			this(null, defaultLevel, precedence);
			trace.push("c2");
		}

		@SafeVarargs
		private WrongOverloadConstructorWithVarargs(WrongOverloadConstructorWithVarargs<T> parent, int defaultLevel,
				BinaryOperator<T>... precedence) {
			trace.push("c1");
		}

		@SafeVarargs
		public final void test(int defaultLevel, BinaryOperator<T>... precedence) {
			test(null, defaultLevel, precedence);
			trace.push("t2");
		}

		private void test(WrongOverloadConstructorWithVarargs<T> parent, int defaultLevel,
				@SuppressWarnings("unchecked") BinaryOperator<T>... precedence) {
			trace.push("t1");
		}

	}

}
{'fraction_non_alphanumeric': 0.12403951701427003, 'fraction_numerical': 0.006586169045005488, 'mean_word_length': 4.714733542319749, 'pattern_counts': {'":': 0, '<': 15, '<?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': '2876449', 'n_tokens_mistral': 630, 'n_tokens_neox': 557, 'n_words': 139}