<commit_before>/** @jsx React.DOM */
define(['exports', 'react', 'uri', 'globals'],
function (antibody, React, URI, globals) {
    'use strict';

    var Approval = antibody.Approval = React.createClass({
        render: function() {
            var context = this.props.context;
            var statusClass = 'status-' + (context.approval_status || '').toLowerCase();
            var validations = context.validations.map(function (item) {
                return globals.panel_views.lookup(item)({context: item});
            });
            return (
                <div class={'type-antibody_approval view-item ' + statusClass}>
                    <header class="row">
                        <div class="span12">
                            <h2>Approval for {context.antibody_lot.antibody_accession}</h2>
                            <h3>Antibody against {context.target.organism.organism_name}
                                {' '}{context.target.target_label}
                                <span class={'label ' + statusClass}>
                                    {context.approval_status}
                                </span>
                            </h3>
                        </div>
                    </header>

                    <div class="panel data-display">
                        <dl class="key-value">
                            <dt>Source (vendor)</dt>
                            <dd><a href={context.antibody_lot.source.url}>{context.antibody_lot.source.source_name}</a></dd>
                            
                            <dt>Product ID</dt>
                            <dd><a href={context.antibody_lot.url}>{context.antibody_lot.product_id}</a></dd>
                            
                            <dt>Lot ID</dt>
                            <dd>{context.antibody_lot.lot_id}</dd>
                            
                            <dt>Target</dt>
                            <dd><a href={context.target['@id']}>{context.target.target_label}</a></dd><commit_msg>Add missing key to validations list items to make React happy.<commit_after>/** @jsx React.DOM */
define(['exports', 'react', 'uri', 'globals'],
function (antibody, React, URI, globals) {
    'use strict';

    var Approval = antibody.Approval = React.createClass({
        render: function() {
            var context = this.props.context;
            var statusClass = 'status-' + (context.approval_status || '').toLowerCase();
            var validations = context.validations.map(function (item) {
                return globals.panel_views.lookup(item)({context: item, key: item['@id']});
            });
            return (
                <div class={'type-antibody_approval view-item ' + statusClass}>
                    <header class="row">
                        <div class="span12">
                            <h2>Approval for {context.antibody_lot.antibody_accession}</h2>
                            <h3>Antibody against {context.target.organism.organism_name}
                                {' '}{context.target.target_label}
                                <span class={'label ' + statusClass}>
                                    {context.approval_status}
                                </span>
                            </h3>
                        </div>
                    </header>

                    <div class="panel data-display">
                        <dl class="key-value">
                            <dt>Source (vendor)</dt>
                            <dd><a href={context.antibody_lot.source.url}>{context.antibody_lot.source.source_name}</a></dd>
                            
                            <dt>Product ID</dt>
                            <dd><a href={context.antibody_lot.url}>{context.antibody_lot.product_id}</a></dd>
                            
                            <dt>Lot ID</dt>
                            <dd>{context.antibody_lot.lot_id}</dd>
                            
                            <dt>Target</dt>
                            <dd><a href={context.target['@id']}>{context.target.target_label}</a></dd>
{'fraction_non_alphanumeric': 0.127215343529983, 'fraction_numerical': 0.0029133284777858705, 'mean_word_length': 1.2198275862068966, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2222490', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1020, 'n_words': 167}