<commit_before>import React    from "react";
import * as Lib from "../../lib/components";

const Namespace     = Lib.Namespace;
const Relation      = Lib.Relation;

const Row           = Lib.Form.Row;
const TextField     = Lib.Form.TextField;
const Empty         = Lib.Form.Empty;
const Combobox      = Lib.Form.Combobox;
const TextAreaField = Lib.Form.TextAreaField;
const CheckboxField = Lib.Form.CheckboxField;

const StorableForm = Lib.Common.StorableForm;

class FormNivel1 extends React.Component {
  render() {
    return <StorableForm
      name      = "form"
      namespace = "Nivel1"
      mode      = {StorableForm.MODE.VIEW} >
        <Relation with = {this.props.search} />
        <Row>
          <TextField
            title      = "Id"
            titleWidth = "80"
            name       = "niv1_id"
            width      = "150"
            readOnly   = {true}
          />
        </Row>
        <Row>
          <Combobox
            title      = "Tipo"
            titleWidth = "80"
            width      = "auto"
            name       = "tipo_id"
            idValue    = "tipo_id"
            textValue  = "name"<commit_msg>Form Nivel 1. Se añade isId al campo niv1_id<commit_after>import React    from "react";
import * as Lib from "../../lib/components";

const Namespace     = Lib.Namespace;
const Relation      = Lib.Relation;

const Row           = Lib.Form.Row;
const TextField     = Lib.Form.TextField;
const Empty         = Lib.Form.Empty;
const Combobox      = Lib.Form.Combobox;
const TextAreaField = Lib.Form.TextAreaField;
const CheckboxField = Lib.Form.CheckboxField;

const StorableForm = Lib.Common.StorableForm;

class FormNivel1 extends React.Component {
  render() {
    return <StorableForm
      name      = "form"
      namespace = "Nivel1"
      mode      = {StorableForm.MODE.VIEW} >
        <Relation with = {this.props.search} />
        <Row>
          <TextField
            title      = "Id"
            titleWidth = "80"
            name       = "niv1_id"
            width      = "150"
            readOnly   = {true}
            isId       = {true}
          />
        </Row>
        <Row>
          <Combobox
            title      = "Tipo"
            titleWidth = "80"
            width      = "auto"
            name       = "tipo_id"
            idValue    = "tipo_id"
            textValue  = "name"
{'fraction_non_alphanumeric': 0.10410495133305121, 'fraction_numerical': 0.009310198899703767, 'mean_word_length': 1.5501618122977345, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '2116565', 'n_tokens_mistral': 722, 'n_tokens_neox': 707, 'n_words': 167}