<commit_before>import React from 'react';
import url from 'url';


const GenomeBrowser = React.createClass({
    propTypes: {
        files: React.PropTypes.array.isRequired, // Array of files to represent
        assembly: React.PropTypes.array.isRequired, // Assembly to use with browser
        region: React.PropTypes.string, // Region to use with browser
    },

    contextTypes: {
        location_href: React.PropTypes.string,
        localInstance: React.PropTypes.bool,
    },

    componentDidMount: function () {
        require.ensure(['dalliance'], (require) => {
            const Dalliance = require('dalliance').browser;

            // Get the current domain name.
            const urlInfo = url.parse(this.context.location_href);
            const domainName = this.context.localInstance ? 'https://www.encodeproject.org' : `${urlInfo.protocol}//${urlInfo.host}`;

            const browser = new Dalliance({
                maxHeight: 1000,
                noPersist: true,
                noPersistView: true,
                noTrackAdder: true,
                maxWorkers: 4,
                noHelp: true,
                chr: '22',
                viewStart: 29890000,
                viewEnd: 30050000,
                cookieKey: 'human-grc_h37-fp',
                coordSystem: {
                    speciesName: 'Human',<commit_msg>Testing if production files work better than demo<commit_after>import React from 'react';
import url from 'url';


const GenomeBrowser = React.createClass({
    propTypes: {
        files: React.PropTypes.array.isRequired, // Array of files to represent
        assembly: React.PropTypes.array.isRequired, // Assembly to use with browser
        region: React.PropTypes.string, // Region to use with browser
    },

    contextTypes: {
        location_href: React.PropTypes.string,
        localInstance: React.PropTypes.bool,
    },

    componentDidMount: function () {
        require.ensure(['dalliance'], (require) => {
            const Dalliance = require('dalliance').browser;

            // Get the current domain name.
            // const urlInfo = url.parse(this.context.location_href);
            // const domainName = this.context.localInstance ? 'https://www.encodeproject.org' : `${urlInfo.protocol}//${urlInfo.host}`;
            const domainName = 'https://www.encodeproject.org';

            const browser = new Dalliance({
                maxHeight: 1000,
                noPersist: true,
                noPersistView: true,
                noTrackAdder: true,
                maxWorkers: 4,
                noHelp: true,
                chr: '22',
                viewStart: 29890000,
                viewEnd: 30050000,
                cookieKey: 'human-grc_h37-fp',
                coordSystem: {
                    speciesName: 'Human',
{'fraction_non_alphanumeric': 0.1051699716713881, 'fraction_numerical': 0.017705382436260624, 'mean_word_length': 1.8826530612244898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 3, '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': '6712300', 'n_tokens_mistral': 800, 'n_tokens_neox': 736, 'n_words': 179}