<commit_before>/**
 Copyright 2016 Autodesk,Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 */
import React from 'react';
import { Button, GlobalNav } from '../react-hig';

import 'hig-vanilla/dist/hig.css';
import './index.css';

import logo from './images/bim-logo.png';
// import profileImage from './images/profileImage.png';
import { projects, accounts } from './fixtures/topNavFixtures';
import { modules, submodules, links } from './fixtures/sideNavFixtures';

import ButtonSection from './sections/ButtonSection';
import DropdownSection from './sections/DropdownSection';
import IconButtonSection from './sections/IconButtonSection';
import CheckboxSection from './sections/CheckboxSection';
import RadioButtonSection from './sections/RadioButtonSection';
import RangeSection from './sections/RangeSection';
import TextFieldSection from './sections/TextFieldSection';
import TextAreaSection from './sections/TextAreaSection';
import PasswordFieldSection from './sections/PasswordFieldSection';
import SpacerSection from './sections/SpacerSection';
import ModalSection from './sections/ModalSection';
import TypographySection from './sections/TypographySection';
import TableSection from "./sections/TableSection";
import TextLinkSection from "./sections/TextLinkSection";
import FlyoutSection from "./sections/FlyoutSection"

class Playground extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeModuleId: '1-2-5'
    };
  }

  navigate = (id) => {
    console.log('Go to', id);
    this.setState({ activeModuleId: id });
  }

  onClickOutside = () => {
    console.log("clicked outside")
  }

  render() {
    const topNavProps = {
      logo,
      onLogoClick: function() { console.log('Logo clicked'); }
    }
    const sideNavProps = {
      superHeaderLabel: "HIG",
      headerLabel: "Playground",
      links: links,
      onLogoClick: event => {
        event.preventDefault();
        console.log('Logo clicked');
      },
      searchable: true
    };
    
    return (
      <GlobalNav
        accounts={accounts}
        modules={modules}
        onModuleChange={this.navigate}
        projects={projects}
        sideNav={sideNavProps}
        submodules={submodules}
        topNav={topNavProps}
        activeModuleId={this.state.activeModuleId}
      >
        <section>
          <h3>Tabs</h3>
          <Button title="Add tab before" onClick={this.addTabBefore} />
          <Button title="Add tab after" onClick={this.addTabAfter} />
          <Button title="Remove tab" onClick={this.removeTab} />
        </section>
        <ButtonSection />
        <IconButtonSection />
        <CheckboxSection />
        <PasswordFieldSection />
        <RadioButtonSection />
        <RangeSection />
        <SpacerSection />
        <TextFieldSection />
        <TextAreaSection />
        <ModalSection />
        <DropdownSection />
        <TypographySection />
        <TableSection/>
<<<<<<< 3236b5740fc222bdfcce7c2d5c960a67e42de2c2
        <TextLinkSection/>
        <Flyout />
=======
        <FlyoutSection />
>>>>>>> cleaning up flyout section
      </GlobalNav>
    );
  }
}

export default Playground;
<commit_msg>remove unncessary function in index.js<commit_after>/**
 Copyright 2016 Autodesk,Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 */
import React from 'react';
import { Button, GlobalNav } from '../react-hig';

import 'hig-vanilla/dist/hig.css';
import './index.css';

import logo from './images/bim-logo.png';
// import profileImage from './images/profileImage.png';
import { projects, accounts } from './fixtures/topNavFixtures';
import { modules, submodules, links } from './fixtures/sideNavFixtures';

import ButtonSection from './sections/ButtonSection';
import DropdownSection from './sections/DropdownSection';
import IconButtonSection from './sections/IconButtonSection';
import CheckboxSection from './sections/CheckboxSection';
import RadioButtonSection from './sections/RadioButtonSection';
import RangeSection from './sections/RangeSection';
import TextFieldSection from './sections/TextFieldSection';
import TextAreaSection from './sections/TextAreaSection';
import PasswordFieldSection from './sections/PasswordFieldSection';
import SpacerSection from './sections/SpacerSection';
import ModalSection from './sections/ModalSection';
import TypographySection from './sections/TypographySection';
import TableSection from "./sections/TableSection";
import TextLinkSection from "./sections/TextLinkSection";
import FlyoutSection from "./sections/FlyoutSection"

class Playground extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      activeModuleId: '1-2-5'
    };
  }

  navigate = (id) => {
    console.log('Go to', id);
    this.setState({ activeModuleId: id });
  }
  
  render() {
    const topNavProps = {
      logo,
      onLogoClick: function() { console.log('Logo clicked'); }
    }
    const sideNavProps = {
      superHeaderLabel: "HIG",
      headerLabel: "Playground",
      links: links,
      onLogoClick: event => {
        event.preventDefault();
        console.log('Logo clicked');
      },
      searchable: true
    };
    
    return (
      <GlobalNav
        accounts={accounts}
        modules={modules}
        onModuleChange={this.navigate}
        projects={projects}
        sideNav={sideNavProps}
        submodules={submodules}
        topNav={topNavProps}
        activeModuleId={this.state.activeModuleId}
      >
        <section>
          <h3>Tabs</h3>
          <Button title="Add tab before" onClick={this.addTabBefore} />
          <Button title="Add tab after" onClick={this.addTabAfter} />
          <Button title="Remove tab" onClick={this.removeTab} />
        </section>
        <ButtonSection />
        <IconButtonSection />
        <CheckboxSection />
        <PasswordFieldSection />
        <RadioButtonSection />
        <RangeSection />
        <SpacerSection />
        <TextFieldSection />
        <TextAreaSection />
        <ModalSection />
        <DropdownSection />
        <TypographySection />
        <TableSection/>
<<<<<<< 3236b5740fc222bdfcce7c2d5c960a67e42de2c2
        <TextLinkSection/>
        <Flyout />
=======
        <FlyoutSection />
>>>>>>> cleaning up flyout section
      </GlobalNav>
    );
  }
}

export default Playground;

{'fraction_non_alphanumeric': 0.11683520087455589, 'fraction_numerical': 0.009838753757857338, 'mean_word_length': 3.1632536973833902, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7143946', 'n_tokens_mistral': 2008, 'n_tokens_neox': 1953, 'n_words': 539}