<commit_before>import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { getApisByProjectId } from '../actions/index'

import '../style/projects.scss'

class Projects extends Component {
    static propTypes = {
        projects: PropTypes.array.isRequired,
        dispatch: PropTypes.func.isRequired 
    }

    constructor(props) {
        super(props)
        
        this.chooseProject = this.chooseProject.bind(this)
    }

    chooseProject = (e) => {
        //console.log(e.target.id)
        this.props.dispatch(getApisByProjectId(e.target.id))
    }

    render() {
        return (
            <ul className='m-projects-list'>
            {<commit_msg>rm comments<commit_after>import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { getApisByProjectId } from '../actions/index'

import '../style/projects.scss'

class Projects extends Component {
    static propTypes = {
        projects: PropTypes.array.isRequired,
        dispatch: PropTypes.func.isRequired 
    }

    constructor(props) {
        super(props)
        
        this.chooseProject = this.chooseProject.bind(this)
    }

    chooseProject = (e) => {
        this.props.dispatch(getApisByProjectId(e.target.id))
    }

    render() {
        return (
            <ul className='m-projects-list'>
            {
{'fraction_non_alphanumeric': 0.11876317638791287, 'fraction_numerical': 0.0, 'mean_word_length': 2.4563106796116503, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2109786', 'n_tokens_mistral': 421, 'n_tokens_neox': 412, 'n_words': 82}