<commit_before>// import "reflect-metadata";

import * as riot from "riot";

function register(name: string, tmpl: string, css: string, attrs: string, target: Function) {
  riot.tag(name, tmpl, css, attrs, function (opts) {
    const obj = Object.create(target.prototype);
    const {init} = obj;
    if(typeof init !== 'undefined'){
      // recovery original init property when mixin
      obj.init = () => this['init'] = typeof init === 'function' ? init.bind(this) : init;
    }
<commit_msg>use property instead of indexer<commit_after>// import "reflect-metadata";

import * as riot from "riot";

function register(name: string, tmpl: string, css: string, attrs: string, target: Function) {
  riot.tag(name, tmpl, css, attrs, function (opts) {
    const obj = Object.create(target.prototype);
    const {init} = obj;
    if(typeof init !== 'undefined'){
      // recovery original init property when mixin
      obj.init = () => this.init = typeof init === 'function' ? init.bind(this) : init;
    }

{'fraction_non_alphanumeric': 0.15024875621890546, 'fraction_numerical': 0.0, 'mean_word_length': 3.7009345794392523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6132423', 'n_tokens_mistral': 307, 'n_tokens_neox': 304, 'n_words': 98}