<commit_before>//
// $Id: $

package {

public class Thane
{
    public static function requestHeartbeat (heart :Function) :void
    {
        if (-1 == _hearts.indexOf(heart)) {
            _hearts.push(heart);
        }
    }

    private static function heartbeat () :void
    {
        for each (var heart :Function in _hearts) {
                try {
                    heart();
                } catch (err :Error) {
                    trace("Heartbeat error: " + err);
                }
            }
    }

    private static var _hearts :Array = new Array();
}
}<commit_msg>Grr. Emacs doesn't like for each at all.<commit_after>//
// $Id: $

package {

public class Thane
{
    public static function requestHeartbeat (heart :Function) :void
    {
        if (-1 == _hearts.indexOf(heart)) {
            _hearts.push(heart);
        }
    }

    private static function heartbeat () :void
    {
        for each (var heart :Function in _hearts) {
            try {
                heart();
            } catch (err :Error) {
                trace("Heartbeat error: " + err);
            }
        }
    }

    private static var _hearts :Array = new Array();
}
}
{'fraction_non_alphanumeric': 0.11508951406649616, 'fraction_numerical': 0.0017050298380221654, 'mean_word_length': 1.5085470085470085, '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': '6588904', 'n_tokens_mistral': 350, 'n_tokens_neox': 330, 'n_words': 95}