<commit_before>package io.neft.Renderer;

import android.graphics.RectF;
import android.view.Display;

import io.neft.Client.OutAction;
import io.neft.MainActivity;

public class Screen {

    public float width;
    public float height;
    public RectF rect;

    static void init(Screen screen, MainActivity app) {
        Display display = app.getWindowManager().getDefaultDisplay();

        // SCREEN_SIZE
        final float pixelRatio = app.renderer.device.pixelRatio;
        screen.width = display.getWidth() / pixelRatio;
        screen.height = display.getHeight() / pixelRatio;
        screen.rect = new RectF(0, 0, display.getWidth(), display.getHeight());

        app.client.pushAction(OutAction.SCREEN_SIZE);
        app.client.pushFloat(screen.width);
        app.client.pushFloat(screen.height);
    }

    static void register(MainActivity app) {}

}<commit_msg>Deprecated API in Screen is no longer used<commit_after>package io.neft.Renderer;

import android.graphics.RectF;
import android.util.DisplayMetrics;

import io.neft.Client.OutAction;
import io.neft.MainActivity;

public class Screen {

    public float width;
    public float height;
    public RectF rect;

    static void init(Screen screen, MainActivity app) {
        DisplayMetrics metrics = app.getResources().getDisplayMetrics();

        // SCREEN_SIZE
        final float pixelRatio = app.renderer.device.pixelRatio;
        screen.width = metrics.widthPixels / pixelRatio;
        screen.height = metrics.heightPixels / pixelRatio;
        screen.rect = new RectF(0, 0, metrics.widthPixels, metrics.heightPixels);

        app.client.pushAction(OutAction.SCREEN_SIZE);
        app.client.pushFloat(screen.width);
        app.client.pushFloat(screen.height);
    }

    static void register(MainActivity app) {}

}
{'fraction_non_alphanumeric': 0.0996126175982291, 'fraction_numerical': 0.002213613724405091, 'mean_word_length': 3.2641509433962264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3305115', 'n_tokens_mistral': 521, 'n_tokens_neox': 511, 'n_words': 117}