<commit_before>export var metadata = {
  group: "builtin-trailing"
};

export function Flow(node) {
  this.dangerouslyRemove();
}

export function ClassProperty(node) {
  node.typeAnnotation = null;
  if (!node.value) this.dangerouslyRemove();
}

export function Class(node) {
  node.implements = null;
}

export function Func/*tion*/(node) {
  for (var i = 0; i < node.params.length; i++) {
    var param = node.params[i];
    param.optional = false;
  }
}

export function TypeCastExpression(node) {
  return node.expression;
}

export function ImportDeclaration(node) {
  if (node.isType) this.dangerouslyRemove();
}

export function ExportDeclaration(node) {
  if (this.get("declaration").isTypeAlias()) this.dangerouslyRemove();
}<commit_msg>recurse into type casts when trying to get it's expression - fixes #facebook/react-native#1526<commit_after>import * as t from "../../../types";

export var metadata = {
  group: "builtin-trailing"
};

export function Flow(node) {
  this.dangerouslyRemove();
}

export function ClassProperty(node) {
  node.typeAnnotation = null;
  if (!node.value) this.dangerouslyRemove();
}

export function Class(node) {
  node.implements = null;
}

export function Func/*tion*/(node) {
  for (var i = 0; i < node.params.length; i++) {
    var param = node.params[i];
    param.optional = false;
  }
}

export function TypeCastExpression(node) {
  do {
    node = node.expression;
  } while(t.isTypeCastExpression(node));
  return node;
}

export function ImportDeclaration(node) {
  if (node.isType) this.dangerouslyRemove();
}

export function ExportDeclaration(node) {
  if (this.get("declaration").isTypeAlias()) this.dangerouslyRemove();
}
{'fraction_non_alphanumeric': 0.14123957091775924, 'fraction_numerical': 0.003575685339690107, 'mean_word_length': 4.416129032258064, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4435646', 'n_tokens_mistral': 550, 'n_tokens_neox': 532, 'n_words': 128}