<commit_before>export interface IMessage {
    data : IMessageData;
    name : string;
    sender : string;
}


export interface IMessageData {
}


export class Service {

    private uid : string;
    private embedderOrigin : string;
    private embedderID : string;

    constructor(public _postMessage, public $window) {
        var _self = this;

        _self.registerCallback("setup", function(data, sender) {
            _self.uid = data.uid;
            _self.embedderOrigin = data.embedderOrigin;
            _self.embedderID = data.embedderID;
        });
    }

    private registerCallback(name : string, callback : (IMessageData, string) => void) : void {
        var _self = this;

        _self.$window.addEventListener("message", function(event) {<commit_msg>trigger postResize<commit_after>export interface IMessage {
    data : IMessageData;
    name : string;
    sender : string;
}


export interface IMessageData {
}


export class Service {

    private uid : string;
    private embedderOrigin : string;
    private embedderID : string;

    constructor(public _postMessage, public $window) {
        var _self = this;

        _self.registerCallback("setup", function(data, sender) {
            _self.uid = data.uid;
            _self.embedderOrigin = data.embedderOrigin;
            _self.embedderID = data.embedderID;
        });

        _self.$window.addEventListener("resize", (event) => {
            var height = document.body.clientHeight;
            _self.postResize(height);
        });
    }

    private registerCallback(name : string, callback : (IMessageData, string) => void) : void {
        var _self = this;

        _self.$window.addEventListener("message", function(event) {
{'fraction_non_alphanumeric': 0.10168506682161534, 'fraction_numerical': 0.0, 'mean_word_length': 2.632911392405063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '7395755', 'n_tokens_mistral': 481, 'n_tokens_neox': 467, 'n_words': 113}