<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { slide as Menu } from 'react-burger-menu';
import CustomLink from './CustomLink.jsx';
import LanguagePicker from './language_picker.jsx';

const HamburgerMenu = ({ rootUrl, logoPath, exploreUrl, exploreName, userSignedIn, ifAdmin, trainingUrl, helpDisabled, askUrl, wikiEd, userPermissions, languageSwitcherEnabled, currentUser, destroyUrl, omniauthUrl }) => {
  let myDashboard;
  let forAdmin;
  let help;
  let sandbox;
  let programsDashboard;
  let languageSwitcher;
  let loggingLinks;
  let helpEnabled;
  if (languageSwitcherEnabled)
  {
    languageSwitcher = (
      <li>
        <LanguagePicker />
      </li>
    );
  }
  if (userSignedIn)
  {
    loggingLinks = (
      <span>
        <li>
          <b><a href={rootUrl} className="current-user">{currentUser}</a></b>
        </li>
        <li>
          <a href={destroyUrl} className="current-user">{I18n.t('application.log_out')}</a>
        </li>
      </span>
    );
    if (!helpDisabled) {
      helpEnabled = (
        <div className="top-nav__faq-search">
          <form target="_blank" action="/ask" acceptCharset="UTF-8" method="get">
            <input name="utf8" type="hidden" defaultValue="✓" />
            <input type="text" name="q" id="q" defaultValue="" placeholder={I18n.t('application.search')} />
            <input name="source" type="hidden" defaultValue="nav_ask_form" />
            <button type="submit">
              <i className="icon icon-search" />
            </button>
          </form>
        </div>
    );
    }
  } else {
    loggingLinks = (
      <li>
        <a href={omniauthUrl}>
          <i className="icon icon-wiki-logo" />
          {I18n.t('application.log_in')}<commit_msg>Move class '.top-nav__faq-search' to the form because the class was being removed from the div after compiling, and being replaced with class '.bm-item'<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { slide as Menu } from 'react-burger-menu';
import CustomLink from './CustomLink.jsx';
import LanguagePicker from './language_picker.jsx';

const HamburgerMenu = ({ rootUrl, logoPath, exploreUrl, exploreName, userSignedIn, ifAdmin, trainingUrl, helpDisabled, askUrl, wikiEd, userPermissions, languageSwitcherEnabled, currentUser, destroyUrl, omniauthUrl }) => {
  let myDashboard;
  let forAdmin;
  let help;
  let sandbox;
  let programsDashboard;
  let languageSwitcher;
  let loggingLinks;
  let helpEnabled;
  if (languageSwitcherEnabled)
  {
    languageSwitcher = (
      <li>
        <LanguagePicker />
      </li>
    );
  }
  if (userSignedIn)
  {
    loggingLinks = (
      <span>
        <li>
          <b><a href={rootUrl} className="current-user">{currentUser}</a></b>
        </li>
        <li>
          <a href={destroyUrl} className="current-user">{I18n.t('application.log_out')}</a>
        </li>
      </span>
    );
    if (!helpDisabled) {
      helpEnabled = (
        <div>
          <form className="top-nav__faq-search" target="_blank" action="/ask" acceptCharset="UTF-8" method="get">
            <input name="utf8" type="hidden" defaultValue="✓" />
            <input type="text" name="q" id="q" defaultValue="" placeholder={I18n.t('application.search')} />
            <input name="source" type="hidden" defaultValue="nav_ask_form" />
            <button type="submit">
              <i className="icon icon-search" />
            </button>
          </form>
        </div>
    );
    }
  } else {
    loggingLinks = (
      <li>
        <a href={omniauthUrl}>
          <i className="icon icon-wiki-logo" />
          {I18n.t('application.log_in')}
{'fraction_non_alphanumeric': 0.14646053702196907, 'fraction_numerical': 0.0043395714673176026, 'mean_word_length': 2.717741935483871, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 61, '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': '3866115', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1151, 'n_words': 255}