<commit_before>import React from 'react';
import Helmet from "react-helmet";
import {Link} from 'react-router';
import { browserHistory } from 'react-router';


export default class Main extends React.Component {

    logout(){
        sessionStorage.clear();
        browserHistory.push('/');
    }

    componentDidMount() {
        (function () {
            /**
             * function for sidebar auto hide button
             */
            $("#menu-toggle").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("toggled");
    });
     $("#menu-toggle-2").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("toggled-2");
        $('#menu ul').hide();
    });

     function initMenu() {
      $('#menu ul').hide();
      $('#menu ul').children('.current').parent().show();
      //$('#menu ul:first').show();
      $('#menu li a').click(
        function() {
          var checkElement = $(this).next();
          if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
            return false;
            }
          if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
            $('#menu ul:visible').slideUp('normal');
            checkElement.slideDown('normal');
            return false;
            }
          }
        );
      }
    initMenu();
        })();
    }

    render() {
        return (
            <div>
                <Helmet
                    link={[
                    {"rel": "shortcut icon", "href": "/static/favicon.ico"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/bootstrap.min.css"},
                    {"rel": "stylesheet", "type":"text/css", "href": "/static/css/simple-sidebar.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/font-awesome.min.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/sweetalert.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/selectize.bootstrap3.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/fontawesome-iconpicker.min.css"}
                ]}
                />

                <nav className="navbar navbar-default no-margin navbar-fixed-bottom navbar-inverse">
                    <div className="navbar-header fixed-brand">
                        <button type="button" className="navbar-toggle collapsed" data-toggle="collapse"  id="menu-toggle">
                            <span className="glyphicon glyphicon-th-large" aria-hidden="true" />
                        </button>
                        <a className="navbar-brand" href="#">
                            <i className="fa fa-heartbeat fa-4" /> Hiren Bookmark</a><commit_msg>changed navbar position<commit_after>import React from 'react';
import Helmet from "react-helmet";
import {Link} from 'react-router';
import { browserHistory } from 'react-router';


export default class Main extends React.Component {

    logout(){
        sessionStorage.clear();
        browserHistory.push('/');
    }

    componentDidMount() {
        (function () {
            /**
             * function for sidebar auto hide button
             */
            $("#menu-toggle").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("toggled");
    });
     $("#menu-toggle-2").click(function(e) {
        e.preventDefault();
        $("#wrapper").toggleClass("toggled-2");
        $('#menu ul').hide();
    });

     function initMenu() {
      $('#menu ul').hide();
      $('#menu ul').children('.current').parent().show();
      //$('#menu ul:first').show();
      $('#menu li a').click(
        function() {
          var checkElement = $(this).next();
          if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
            return false;
            }
          if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
            $('#menu ul:visible').slideUp('normal');
            checkElement.slideDown('normal');
            return false;
            }
          }
        );
      }
    initMenu();
        })();
    }

    render() {
        return (
            <div>
                <Helmet
                    link={[
                    {"rel": "shortcut icon", "href": "/static/favicon.ico"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/bootstrap.min.css"},
                    {"rel": "stylesheet", "type":"text/css", "href": "/static/css/simple-sidebar.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/font-awesome.min.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/sweetalert.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/selectize.bootstrap3.css"},
                    {"rel": "stylesheet", "type": "text/css", "href": "/static/css/fontawesome-iconpicker.min.css"}
                ]}
                />

                <nav className="navbar navbar-default no-margin navbar-fixed-top navbar-inverse">
                    <div className="navbar-header fixed-brand">
                        <button type="button" className="navbar-toggle collapsed" data-toggle="collapse"  id="menu-toggle">
                            <span className="glyphicon glyphicon-th-large" aria-hidden="true" />
                        </button>
                        <a className="navbar-brand" href="#">
                            <i className="fa fa-heartbeat fa-4" /> Hiren Bookmark</a>
{'fraction_non_alphanumeric': 0.18657646430478902, 'fraction_numerical': 0.001424247819120527, 'mean_word_length': 1.8216976393771973, 'pattern_counts': {'":': 40, '<': 23, '<?xml version=': 0, '>': 23, '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': '890345', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1490, 'n_words': 285}