<commit_before>export var __esModule = true;

import {global} from 'angular2/src/facade/lang';

export function makeDecorator(annotationCls) {
  return function() {
    var args = arguments;
    var Reflect = global.Reflect;
    if (!(Reflect && Reflect.getMetadata)) {
      throw 'reflect-metadata shim is required when using class decorators';
    }
    var annotationInstance = Object.create(annotationCls);
    annotationCls.call(annotationInstance, args);
    return function(cls) {
      var annotations = Reflect.getMetadata('annotations', cls);
      annotations = annotations || [];
      annotations.push(annotationInstance);
      Reflect.defineMetadata('annotations', annotations, cls);
      return cls;
    }
  }
}

export function makeParamDecorator(annotationCls) {
  return function() {
    var args = arguments;
    var Reflect = global.Reflect;
    if (!(Reflect && Reflect.getMetadata)) {
      throw 'reflect-metadata shim is required when using parameter decorators';
    }
    var annotationInstance = Object.create(annotationCls);
    annotationCls.call(annotationInstance, args);
    return function(cls, unusedKey, index) {
      var parameters = Reflect.getMetadata('parameters', cls);
      parameters = parameters || [];
      // there might be gaps if some in between parameters do not have annotations.<commit_msg>fix(decorators): incorrect annotation to decorator adapter<commit_after>export var __esModule = true;

import {global} from 'angular2/src/facade/lang';

export function makeDecorator(annotationCls) {
  return function() {
    var args = arguments;
    var Reflect = global.Reflect;
    if (!(Reflect && Reflect.getMetadata)) {
      throw 'reflect-metadata shim is required when using class decorators';
    }
    var annotationInstance = Object.create(annotationCls.prototype);
    annotationCls.apply(annotationInstance, args);
    return function(cls) {
      var annotations = Reflect.getMetadata('annotations', cls);
      annotations = annotations || [];
      annotations.push(annotationInstance);
      Reflect.defineMetadata('annotations', annotations, cls);
      return cls;
    }
  }
}

export function makeParamDecorator(annotationCls) {
  return function() {
    var args = arguments;
    var Reflect = global.Reflect;
    if (!(Reflect && Reflect.getMetadata)) {
      throw 'reflect-metadata shim is required when using parameter decorators';
    }
    var annotationInstance = Object.create(annotationCls.prototype);
    annotationCls.apply(annotationInstance, args);
    return function(cls, unusedKey, index) {
      var parameters = Reflect.getMetadata('parameters', cls);
      parameters = parameters || [];
      // there might be gaps if some in between parameters do not have annotations.
{'fraction_non_alphanumeric': 0.10184849583182312, 'fraction_numerical': 0.0007249003262051468, 'mean_word_length': 3.859154929577465, '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': '1545734', 'n_tokens_mistral': 737, 'n_tokens_neox': 723, 'n_words': 206}