{"size": 1784, "ext": "js", "max_stars_repo_path": "samples/js.js", "max_stars_repo_name": "lowmess/plastic", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "samples/js.js", "max_issues_repo_name": "lowmess/plastic", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "samples/js.js", "max_forks_repo_name": "lowmess/plastic", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.3203883495, "max_line_length": 74, "alphanum_fraction": 0.6205156951}
/**
 * Comment
 *
 * comment comment comment comment comment comment comment comment comment
 * comment comment comment comment comment
 */

// Comment

import React, { Component } from 'react';
import PropTypes from 'prop-types';

var variable = 'string';
var variable2 = variable;
var myRe = /d(b+)d/g;

const json = JSON.stringify(variable, null, 2);

let localVar = 'string';

const constant = 'CONSTANT';

let numOperator = (3 + 4) / 2;
const numPlus = numOperator++;

let arr = ['one', 'two', numOperator];

let obj = {
  first: 'string',
  second: ['one', 'two', numOperator],
};

let templateLiteral = `this is a var ${variable}`;

if (localVar) {
  console.log('log');
} else {
  console.log('log');
  console.log(window.location.hash);
}

function name(param) {
  let output = param + 'string';
  return output;
}

const funcName = param => {
  return false;
};

class ComponentName extends Component {
  static propTypes = {
    param: PropTypes.string,
    children: PropTypes.node,
  };

  constructor() {
    super();
    this.state = {
      one: 'two',
    };
  }

  classProperty = () => {
    const test = 'test';
    return test;
  };

  handleClick() {
    return false;
  }

  render() {
    const { one: value } = this.state;
    const { param } = this.props;

    // some comments
    const two = name(param, param, { key: value });

    console.log(two);

    return (
      <div>
        {this.props.children}
        <button onClick={this.handleClick}>Click Me</button>
        <ComponentName2 prop1={funcName('thing')} />
      </div>
    );
  }
}

const ComponentName2 = () => {
  return <ComponentName>text text text</ComponentName>;
};

ComponentName2.propTypes = {
  prop1: PropTypes.string,
};

const arr = new Array();

export default ComponentName2;
