<commit_before>package de.peeeq.wurstscript.intermediatelang;

import com.google.common.collect.ImmutableList;
import de.peeeq.wurstscript.types.WurstType;
import de.peeeq.wurstscript.types.WurstTypeString;

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

public class ILconstTuple extends ILconstAbstract {

    private ILconst[] values;

    public ILconstTuple(ILconst... values) {
        this.values = values;
    }


    @Override
    public String print() {
        StringBuilder sb = new StringBuilder();
        sb.append("(");
        boolean first = true;
        for (ILconst v : values) {
            if (!first) {<commit_msg>fixed tuple evaluation in interpreter<commit_after>package de.peeeq.wurstscript.intermediatelang;

import com.google.common.collect.ImmutableList;
import de.peeeq.wurstscript.types.WurstType;
import de.peeeq.wurstscript.types.WurstTypeString;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

public class ILconstTuple extends ILconstAbstract {

    private final ILconst[] values;

    public ILconstTuple(ILconst... values) {
        this.values = Arrays.stream(values)
                .flatMap(c -> {
                    if (c instanceof ILconstTuple) {
                        return Arrays.stream(((ILconstTuple) c).values);
                    } else {
                        return Stream.of(c);
                    }
                }).toArray(ILconst[]::new);
    }


    @Override
    public String print() {
        StringBuilder sb = new StringBuilder();
        sb.append("(");
        boolean first = true;
        for (ILconst v : values) {
            if (!first) {
{'fraction_non_alphanumeric': 0.10519951632406288, 'fraction_numerical': 0.0, 'mean_word_length': 2.405349794238683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5741968', 'n_tokens_mistral': 480, 'n_tokens_neox': 479, 'n_words': 105}