<commit_before>'use strict';
var React = require('react');
var globals = require('./globals');
var { DbxrefList, dbxref } = require('./dbxref');

var Panel = module.exports.Panel = React.createClass({
    render: function() {
        var context = this.props.context;
        var itemClass = globals.itemClass(context, 'view-detail key-value');
        return (
            <div className="panel">
                <dl className={itemClass}>
                    <div data-test="name">
                        <dt>Platform name</dt>
                        <dd><a href={context.url}>{context.title}</a></dd>
                    </div>

                    <div data-test="obiid">
                        <dt>OBI ID</dt>
                        <dd><dbxref value={context.term_id} /></dd>
                    </div>

                    <div data-test="externalresources">
                        <dt>External resources</dt>
                        <dd>
                            {context.dbxrefs.length ?
                                <DbxrefList values={context.dbxrefs} />
                            : <em>None submitted</em> }
                        </dd>
                    </div>
                </dl>
            </div>
        );
    }
});

globals.panel_views.register(Panel, 'Platform');
<commit_msg>Just display term without dbxref<commit_after>'use strict';
var React = require('react');
var globals = require('./globals');
var { DbxrefList, dbxref } = require('./dbxref');

var Panel = module.exports.Panel = React.createClass({
    render: function() {
        var context = this.props.context;
        var itemClass = globals.itemClass(context, 'view-detail key-value');
        return (
            <div className="panel">
                <dl className={itemClass}>
                    <div data-test="name">
                        <dt>Platform name</dt>
                        <dd><a href={context.url}>{context.title}</a></dd>
                    </div>

                    <div data-test="obiid">
                        <dt>OBI ID</dt>
                        <dd>{context.term_id}</dd>
                    </div>

                    <div data-test="externalresources">
                        <dt>External resources</dt>
                        <dd>
                            {context.dbxrefs.length ?
                                <DbxrefList values={context.dbxrefs} />
                            : <em>None submitted</em> }
                        </dd>
                    </div>
                </dl>
            </div>
        );
    }
});

globals.panel_views.register(Panel, 'Platform');

{'fraction_non_alphanumeric': 0.1361216730038023, 'fraction_numerical': 0.0, 'mean_word_length': 1.210924369747899, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, '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': '2545924', 'n_tokens_mistral': 704, 'n_tokens_neox': 660, 'n_words': 126}