<commit_before>'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import moment from 'moment';
import url from 'url';
import { content_views } from './globals';

export class SignIn extends Component {
    render() {
        var hidden = !this.props.session || this.props.session['auth.userid'];
        var disabled = !this.props.loadingComplete;
        return (
            <div id="signin-box" className="col-sm-3" hidden={hidden}>
                <h4>Data Providers</h4>
                <a href="" disabled={disabled} data-trigger="login" className="signin-button btn btn-large btn-success">Sign In</a>
                <p>No access? <a href='mailto:<EMAIL>'>Request an account</a>.</p>
                <p>Authentication by <a href="https://accounts.google.com/" target="_blank" rel="noopener noreferrer">Google</a> via <a href="https://auth0.com/" target="_blank" rel="noopener noreferrer">Auth0</a>.</p>
            </div>
        );
    }
}

var Home = module.exports.Home = createReactClass({
    propTypes: {
        demoVersion: PropTypes.bool
    },

    getInitialState: function() {
        return {
            demoVersion: this.props.demoVersion
        };
    },

    render: function() {
        if (this.props.session && this.props.session['auth.userid'] !== undefined) {
            window.location.href = '/dashboard/';
        }
        return (
            <div className="container">
                <div className="homepage-main-box panel-gray">
                    <div className="row">
                        <div className="col-sm-12">
                            <div className="project-info site-title">
                                <h1>ClinGen Curator Interfaces</h1>
                                <h4>Variant Curation &#8226; Gene Curation</h4>
                                <p className="lead">The ClinGen <strong>Variant Curation Interface</strong> is available for public use. If you would like to register for its use, please contact us at <a href="mailto:<EMAIL>"><EMAIL> <i className="icon icon-envelope"></i></a></p>
                                <p className="lead">The ClinGen <strong>Gene Curation Interface</strong> is currently restricted to use by ClinGen curators. If you would like to collaborate on gene curation, please contact ClinGen at <a href="mailto:<EMAIL>"><EMAIL> <i className="icon icon-envelope"></i></a></p>
                                <p className="lead">Any user may explore the demo version of the ClinGen interfaces without creating an account by clicking on the "Demo Login" button, found in the header at <a href="https://curation-test.clinicalgenome.org" target="_blank" rel="noopener noreferrer">curation-test.clinicalgenome.org</a>. This is a generic login and all users exploring the interface using this option will operate as the "same" curator under the display name "ClinGen Test Curator." If you wish to register to use the demo version under your own account, please email us at <a href="mailto:<EMAIL>"><EMAIL> <i className="icon icon-envelope"></i></a></p>
                                <p className="lead">ClinGen is a National Institutes of Health (NIH)-funded resource dedicated to building an authoritative central resource that defines the clinical relevance of genes and variants for use in precision medicine and research. One of the key goals of ClinGen is to implement an evidence-based consensus for curating genes and variants. For more information on the ClinGen resource, please visit the ClinGen portal at <a href="https://www.clinicalgenome.org" target="_blank" rel="noopener noreferrer">clinicalgenome.org</a></p>
                            </div>
                        </div>
                    </div>
                    <div className="row demo-access-note">
                        {this.state.demoVersion ?
                            <div>Explore a demo version of the ClinGen interfaces by clicking on the "Demo Login" button located in the header above.</div>
                            :<commit_msg>corrected wording<commit_after>'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import moment from 'moment';
import url from 'url';
import { content_views } from './globals';

export class SignIn extends Component {
    render() {
        var hidden = !this.props.session || this.props.session['auth.userid'];
        var disabled = !this.props.loadingComplete;
        return (
            <div id="signin-box" className="col-sm-3" hidden={hidden}>
                <h4>Data Providers</h4>
                <a href="" disabled={disabled} data-trigger="login" className="signin-button btn btn-large btn-success">Sign In</a>
                <p>No access? <a href='mailto:<EMAIL>'>Request an account</a>.</p>
                <p>Authentication by <a href="https://accounts.google.com/" target="_blank" rel="noopener noreferrer">Google</a> via <a href="https://auth0.com/" target="_blank" rel="noopener noreferrer">Auth0</a>.</p>
            </div>
        );
    }
}

var Home = module.exports.Home = createReactClass({
    propTypes: {
        demoVersion: PropTypes.bool
    },

    getInitialState: function() {
        return {
            demoVersion: this.props.demoVersion
        };
    },

    render: function() {
        if (this.props.session && this.props.session['auth.userid'] !== undefined) {
            window.location.href = '/dashboard/';
        }
        return (
            <div className="container">
                <div className="homepage-main-box panel-gray">
                    <div className="row">
                        <div className="col-sm-12">
                            <div className="project-info site-title">
                                <h1>ClinGen Curator Interfaces</h1>
                                <h4>Variant Curation &#8226; Gene Curation</h4>
                                <p className="lead">The ClinGen <strong>Variant Curation Interface</strong> is available for public use. If you would like to register for its use, please contact us at <a href="mailto:<EMAIL>">clingen-<EMAIL> <i className="icon icon-envelope"></i></a></p>
                                <p className="lead">The ClinGen <strong>Gene Curation Interface</strong> is currently restricted to use by ClinGen curators. If you would like to collaborate on gene curation, please contact ClinGen at <a href="mailto:<EMAIL>"><EMAIL> <i className="icon icon-envelope"></i></a></p>
                                <p className="lead">Any user may explore the demo version of the ClinGen interfaces without creating an account by clicking on the "Demo Login" button, found in the header at <a href="https://curation-test.clinicalgenome.org" target="_blank" rel="noopener noreferrer">curation-test.clinicalgenome.org</a>. This is a generic login so all users selecting this option will operate as the "same" curator under the display name "ClinGen Test Curator". If you wish to register to use the demo version under your own account, please email us at <a href="mailto:<EMAIL>"><EMAIL> <i className="icon icon-envelope"></i></a></p>
                                <p className="lead">ClinGen is a National Institutes of Health (NIH)-funded resource dedicated to building an authoritative central resource that defines the clinical relevance of genes and variants for use in precision medicine and research. One of the key goals of ClinGen is to implement an evidence-based consensus for curating genes and variants. For more information on the ClinGen resource, please visit the ClinGen portal at <a href="https://www.clinicalgenome.org" target="_blank" rel="noopener noreferrer">clinicalgenome.org</a></p>
                            </div>
                        </div>
                    </div>
                    <div className="row demo-access-note">
                        {this.state.demoVersion ?
                            <div>Explore a demo version of the ClinGen interfaces by clicking on the "Demo Login" button located in the header above.</div>
                            :
{'fraction_non_alphanumeric': 0.11424747536196618, 'fraction_numerical': 0.0036500790850468425, 'mean_word_length': 2.4771573604060912, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5987553', 'n_tokens_mistral': 2190, 'n_tokens_neox': 2082, 'n_words': 712}