<commit_before>import * as React from 'react';
const styles = require('./styles.module.css');
interface ILoginProps extends React.ClassAttributes<Login> {
  abc ?: string;
}
/**
 * Login
 */
class Login extends React.Component<{}, {}> {
  public render() {
    return (
      <form className={styles.loginForm}>
        <div>Name <input type="text" name="username" /></div>
        <div>Password <input type="password" name="password" /></div>
        <input type="submit" />
      </form>
    );
  }
}
export default Login;<commit_msg>login <commit_after>import * as React from 'react';
import axios from 'axios';
import {isEmpty} from 'lodash';
const styles = require('./styles.module.css');
interface ILoginProps extends React.ClassAttributes<Login> {
  abc ?: string;
}
/**
 * Login
 */
class Login extends React.Component<{}, {}> {
  /*private login() {
    // debugger;
    console.log("login");
    axios.get('http://localhost:3000/user?username=Mohit').then(function (response) {
      console.log(response.data);
    });
  }*/
  public render() {
    return (
      <form className={styles.loginForm} onSubmit={(): void => {
            axios.get('http://localhost:3000/user?username='+this.refs.userNameRef.value+'&password='+this.refs.passwordRef.value)
            .then(function (response) {
              console.log(response.data);
            });
          }}>
        <div>Name <input type="text" ref= "userNameRef" name="username" /></div>
        <div>Password <input type="password" ref="passwordRef" name="password" /></div>
        <button type="submit">submit</button>
      </form>
    );
  }
}
export default Login;
{'fraction_non_alphanumeric': 0.17682926829268292, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 3.207692307692308, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 27, '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': '7124581', 'n_tokens_mistral': 501, 'n_tokens_neox': 488, 'n_words': 104}