<commit_before>/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 * @providesModule HeaderLinks
 */

var React = require('React');
var AlgoliaDocSearch = require('AlgoliaDocSearch');

var HeaderLinks = React.createClass({
  linksInternal: [
    {section: 'docs', href: 'docs/getting-started.html', text: 'Docs'},
    {section: 'support', href: 'support.html', text: 'Support'},
    {section: 'showcase', href: 'showcase.html', text: 'Showcase'},
    {section: 'blog', href: 'blog/', text: 'Blog'},
  ],
  linksExternal: [
    {section: 'github', href: 'https://github.com/facebook/react-native', text: 'GitHub'},
    {section: 'react', href: 'http://facebook.github.io/react', text: 'React'},
    {
      section: 'survey',
      href: 'https://www.facebook.com/survey?oid=681969738611332',
      text: 'Take Our Docs Survey'
    }
  ],

  makeLinks: function(links) {
    var surveyStyle = {
      color: '#2AFF48',
    };
    return links.map(function(link) {
      return (
        <li key={link.section}>
          <a
            href={link.href}
            style={link.section === 'survey' ? surveyStyle : null}
            className={link.section === this.props.section ? 'active' : ''}>
            {link.text}
          </a>
        </li>
      );
    }, this);
  },

  render: function() {<commit_msg>Revert "Add docs survey link to site header"<commit_after>/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 * @providesModule HeaderLinks
 */

var React = require('React');
var AlgoliaDocSearch = require('AlgoliaDocSearch');

var HeaderLinks = React.createClass({
  linksInternal: [
    {section: 'docs', href: 'docs/getting-started.html', text: 'Docs'},
    {section: 'support', href: 'support.html', text: 'Support'},
    {section: 'showcase', href: 'showcase.html', text: 'Showcase'},
    {section: 'blog', href: 'blog/', text: 'Blog'},
  ],
  linksExternal: [
    {section: 'github', href: 'https://github.com/facebook/react-native', text: 'GitHub'},
    {section: 'react', href: 'http://facebook.github.io/react', text: 'React'},
  ],

  makeLinks: function(links) {
    return links.map(function(link) {
      return (
        <li key={link.section}>
          <a
            href={link.href}
            className={link.section === this.props.section ? 'active' : ''}>
            {link.text}
          </a>
        </li>
      );
    }, this);
  },

  render: function() {
{'fraction_non_alphanumeric': 0.16059147180192573, 'fraction_numerical': 0.008940852819807428, 'mean_word_length': 2.99039780521262, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4597672', 'n_tokens_mistral': 919, 'n_tokens_neox': 889, 'n_words': 254}