<commit_before>package com.axellience.vuegwt.client.jsnative.types;

import com.axellience.vuegwt.client.jsnative.JsPredicate;
import com.axellience.vuegwt.client.jsnative.JsTools;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

import java.util.Iterator;

/**
 * Source: https://github.com/ltearno/angular2-gwt/
 */
@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Array" )
public class JsArray<T>
{
    @JsOverlay
    @SafeVarargs
    public static <T> JsArray<T> of( T... array )
    {
        JsArray<T> result = new JsArray<>();
        for( T item : array )
            result.push( item );
        return result;
    }

    @JsOverlay
    public static <T> JsArray<T> empty()
    {
        return new JsArray<>();
    }

    @JsMethod
    public native void push( T item );

    @JsMethod<commit_msg>Add length to JsArray<commit_after>package com.axellience.vuegwt.client.jsnative.types;

import com.axellience.vuegwt.client.jsnative.JsPredicate;
import com.axellience.vuegwt.client.jsnative.JsTools;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;

import java.util.Iterator;

/**
 * Source: https://github.com/ltearno/angular2-gwt/
 */
@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Array" )
public class JsArray<T>
{
    public int length;

    @JsOverlay
    @SafeVarargs
    public static <T> JsArray<T> of( T... array )
    {
        JsArray<T> result = new JsArray<>();
        for( T item : array )
            result.push( item );
        return result;
    }

    @JsOverlay
    public static <T> JsArray<T> empty()
    {
        return new JsArray<>();
    }

    @JsMethod
    public native void push( T item );

    @JsMethod
{'fraction_non_alphanumeric': 0.11791497975708502, 'fraction_numerical': 0.0010121457489878543, 'mean_word_length': 3.2607758620689653, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '6988739', 'n_tokens_mistral': 657, 'n_tokens_neox': 657, 'n_words': 141}