<commit_before>var virt = require("virt"),
    AndroidAdaptor = require("./android_adaptor");


require("./native_components/button");
require("./native_components/input");
require("./native_components/text_view");
require("./native_components/view");


var virtAndroid = exports,
    root = null;


virtAndroid.socket = null;

virtAndroid.render = function(view) {
    if (root === null) {
        root = new virt.Root();
        root.adaptor = new AndroidAdaptor(root, virtAndroid.socket);
    }

    root.render(view);

    return root;
};

virtAndroid.unmount = function() {
    if (root !== null) {
        root.unmount();
        root = null;
    }
};<commit_msg>updates<commit_after>var virt = require("virt"),
    AndroidAdaptor = require("./android_adaptor");


require("./native_components/button");
require("./native_components/input");
require("./native_components/text_view");
require("./native_components/view");


var virtAndroid = exports,
    root = null;


virtAndroid.socket = null;
virtAndroid.attachSocketMessage = null;
virtAndroid.sendSocketMessage = null;

virtAndroid.render = function(view) {
    if (root === null) {
        root = new virt.Root();
        root.adaptor = new AndroidAdaptor(root,
            virtAndroid.socket,
            virtAndroid.attachSocketMessage,
            virtAndroid.sendSocketMessage
        );
    }

    root.render(view);

    return root;
};

virtAndroid.unmount = function() {
    if (root !== null) {
        root.unmount();
        root = null;
    }
};
{'fraction_non_alphanumeric': 0.14746543778801843, 'fraction_numerical': 0.0, 'mean_word_length': 3.1530054644808745, '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': '6761159', 'n_tokens_mistral': 462, 'n_tokens_neox': 447, 'n_words': 84}