<commit_before>package org.jcodegen.html.xmlbase;

import java.util.ArrayList;
import java.util.List;

/**
 * ...
 */
public class XMLElement extends CodeBlock {

    public final String name;
    public final String body;

    private final List<XMLAttribute> attributes = new ArrayList<XMLAttribute>();
    private final List<XMLElement> children = new ArrayList<XMLElement>();

    private final boolean selfClosing;

    private boolean onOneLine = false;

    public static final String CDATA = "CDATA";


    public XMLElement(final String name) {
        this(name, 0);
    }

    public XMLElement(final String name, final boolean selfClosing) {
        this(name, 0, selfClosing);
    }

    public XMLElement(final String name, final int indentation) {
        this(name, null, indentation);
    }

    public XMLElement(final String name, final int indentation, final boolean selfClosing) {
        this(name, null, indentation, selfClosing);
    }

    public XMLElement(final String name, final String body) {
        this(name, body, 0);
    }

    public XMLElement(final String name, final String body, final boolean selfClosing) {
        this(name, body, 0, selfClosing);
    }

    public XMLElement(final String name, final String body, final int indentation) {
        this(name, body, indentation, true);
    }

    public XMLElement(final String name, final String body, final int indentation, final boolean selfClosing) {
        super(indentation);
        this.name = name;
        this.body = body;
        this.selfClosing = selfClosing;

        if (name.equals(CDATA) && body == null)
            throw new IllegalArgumentException("CDATA element cannot be empty");
    }


    public boolean isOnOneLine() {
        return onOneLine;
    }

    public void setOnOneLine(final boolean onOneLine) {
        System.out.println("On one line : " + name);
        this.onOneLine = onOneLine;
    }<commit_msg>Removed no longer necessary System.out.println debugging call.<commit_after>package org.jcodegen.html.xmlbase;

import java.util.ArrayList;
import java.util.List;

/**
 * ...
 */
public class XMLElement extends CodeBlock {

    public final String name;
    public final String body;

    private final List<XMLAttribute> attributes = new ArrayList<XMLAttribute>();
    private final List<XMLElement> children = new ArrayList<XMLElement>();

    private final boolean selfClosing;

    private boolean onOneLine = false;

    public static final String CDATA = "CDATA";


    public XMLElement(final String name) {
        this(name, 0);
    }

    public XMLElement(final String name, final boolean selfClosing) {
        this(name, 0, selfClosing);
    }

    public XMLElement(final String name, final int indentation) {
        this(name, null, indentation);
    }

    public XMLElement(final String name, final int indentation, final boolean selfClosing) {
        this(name, null, indentation, selfClosing);
    }

    public XMLElement(final String name, final String body) {
        this(name, body, 0);
    }

    public XMLElement(final String name, final String body, final boolean selfClosing) {
        this(name, body, 0, selfClosing);
    }

    public XMLElement(final String name, final String body, final int indentation) {
        this(name, body, indentation, true);
    }

    public XMLElement(final String name, final String body, final int indentation, final boolean selfClosing) {
        super(indentation);
        this.name = name;
        this.body = body;
        this.selfClosing = selfClosing;

        if (name.equals(CDATA) && body == null)
            throw new IllegalArgumentException("CDATA element cannot be empty");
    }


    public boolean isOnOneLine() {
        return onOneLine;
    }

    public void setOnOneLine(final boolean onOneLine) {
        //System.out.println("On one line : " + name);
        this.onOneLine = onOneLine;
    }
{'fraction_non_alphanumeric': 0.09109466700688951, 'fraction_numerical': 0.002041337075784639, 'mean_word_length': 2.967611336032389, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3391866', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1087, 'n_words': 348}