<commit_before>package com.allstarcvs.tbone.elements;

import static com.allstarcvs.tbone.TBone.*;

import org.teavm.dom.core.Node;
import org.teavm.dom.events.EventListener;
import org.teavm.dom.html.HTMLElement;

import com.allstarcvs.tbone.TBone;
import com.allstarcvs.tbone.View;

@SuppressWarnings("unchecked")
public class UiNode<T extends UiNode<?>> {

	protected final HTMLElement node;
	protected long scriptFlags = 0;

	protected UiNode(final HTMLElement node) {
		this.node = node;
		scriptFlags = 0;
	}

	protected UiNode(final UiNode<?> domNode) {
		node = domNode.node;
		scriptFlags = domNode.scriptFlags;
	}

	public Node node() {
		return node;
	}

	public static UiCommon body() {
		return new UiCommon(document.getBody());
	}

	public static UiCommon element(final String tagName) {<commit_msg>add jquery() in UiNode for easier access<commit_after>package com.allstarcvs.tbone.elements;

import static com.allstarcvs.tbone.TBone.*;

import org.teavm.dom.core.Node;
import org.teavm.dom.events.EventListener;
import org.teavm.dom.html.HTMLElement;

import com.allstarcvs.tbone.TBone;
import com.allstarcvs.tbone.View;
import com.allstarcvs.tbone.wrappers.JQuery;

@SuppressWarnings("unchecked")
public class UiNode<T extends UiNode<?>> {

	protected final HTMLElement node;
	protected long scriptFlags = 0;

	protected UiNode(final HTMLElement node) {
		this.node = node;
		scriptFlags = 0;
	}

	protected UiNode(final UiNode<?> domNode) {
		node = domNode.node;
		scriptFlags = domNode.scriptFlags;
	}

	public Node node() {
		return node;
	}

	public JQuery jquery() {
		return TBone.jquery(node);
	}

	public static UiCommon body() {
		return new UiCommon(document.getBody());
	}

	public static UiCommon element(final String tagName) {
{'fraction_non_alphanumeric': 0.1109846328969835, 'fraction_numerical': 0.0022766078542970974, 'mean_word_length': 4.782894736842105, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6342218', 'n_tokens_mistral': 650, 'n_tokens_neox': 625, 'n_words': 139}