<commit_before>/* @flow */

import {
  standardTransforms,
  standardDisplayOrder,
  registerTransform
} from "@nteract/transforms";
import PlotlyTransform from "@nteract/transform-plotly";
import { VegaLite1, VegaLite2, Vega2, Vega3 } from "@nteract/transform-vega";

// We can easily add other transforms here:
const additionalTransforms: Array<any> = [
  PlotlyTransform,
  VegaLite1,
  VegaLite2,
  Vega2,
  Vega3
];

export const { transforms, displayOrder } = additionalTransforms.reduce(
  registerTransform,
  {
    transforms: standardTransforms,
    displayOrder: standardDisplayOrder
  }
);<commit_msg>update transforms format<commit_after>/* @flow */

import React from "react";
import { Media } from "@nteract/outputs";
import PlotlyTransform from "@nteract/transform-plotly";
import { VegaLite1, VegaLite2, Vega2, Vega3 } from "@nteract/transform-vega";

PlotlyTransform.defaultProps = {
  ...PlotlyTransform.defaultProps,
  mediaType: PlotlyTransform.MIMETYPE
};

VegaLite1.defaultProps = {
  ...VegaLite1.defaultProps,
  mediaType: VegaLite1.MIMETYPE
};

VegaLite2.defaultProps = {
  ...VegaLite2.defaultProps,
  mediaType: VegaLite2.MIMETYPE
};

Vega2.defaultProps = {
  ...Vega2.defaultProps,
  mediaType: Vega2.MIMETYPE
};

Vega3.defaultProps = {
  ...Vega3.defaultProps,
  mediaType: Vega3.MIMETYPE
};

// We can easily add other transforms here:
export const MediaComponents: Array<any> = [
  <PlotlyTransform />,
  <VegaLite1 />,
  <VegaLite2 />,
  <Vega2 />,
  <Vega3 />,
  <Media.Json />,
  <Media.JavaScript />,
  <Media.HTML />,
  <Media.Markdown />,
  <Media.LaTeX />,
  <Media.SVG />,
  <Media.Image />,
  <Media.Plain />
];
{'fraction_non_alphanumeric': 0.1368038740920097, 'fraction_numerical': 0.01694915254237288, 'mean_word_length': 4.19811320754717, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '4028820', 'n_tokens_mistral': 597, 'n_tokens_neox': 606, 'n_words': 111}