<commit_before>import {
  List,
  TextField,
} from "material-ui";
import * as React from "react";
import { ng } from "../models";
import { NGNodeEditor } from "./ng-node-editor";

export interface NGEditorProps {
  ng: ng.NG;
  onUpdate: (body: ng.NG) => void;
}
// TODO:expirationDate,chain,transparent
export function NGEditor(props: NGEditorProps) {
  return <div>
    <TextField
      floatingLabelText="名前"
      value={props.ng.name}
      onChange={(_e, v) => props.onUpdate({ ...props.ng, name: v })} />
    <TextField
      floatingLabelText="トピック"
      value={props.ng.topic || ""}
      onChange={(_e, v) => props.onUpdate({ ...props.ng, topic: v || null })} />
    <List>
      <NGNodeEditor
        nestedLevel={0}
        value={props.ng.node}
        onChange={v => props.onUpdate({ ...props.ng, node: v })} />
    </List>
  </div>;
}
<commit_msg>rename<commit_after>import {
  List,
  TextField,
} from "material-ui";
import * as React from "react";
import { ng } from "../models";
import { NGNodeEditor } from "./ng-node-editor";

export interface NGEditorProps {
  ng: ng.NG;
  onUpdate: (ng: ng.NG) => void;
}
// TODO:expirationDate,chain,transparent
export function NGEditor(props: NGEditorProps) {
  return <div>
    <TextField
      floatingLabelText="名前"
      value={props.ng.name}
      onChange={(_e, v) => props.onUpdate({ ...props.ng, name: v })} />
    <TextField
      floatingLabelText="トピック"
      value={props.ng.topic || ""}
      onChange={(_e, v) => props.onUpdate({ ...props.ng, topic: v || null })} />
    <List>
      <NGNodeEditor
        nestedLevel={0}
        value={props.ng.node}
        onChange={v => props.onUpdate({ ...props.ng, node: v })} />
    </List>
  </div>;
}

{'fraction_non_alphanumeric': 0.1849912739965096, 'fraction_numerical': 0.0011634671320535194, 'mean_word_length': 2.865168539325843, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 25, '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': '4911463', 'n_tokens_mistral': 591, 'n_tokens_neox': 591, 'n_words': 128}