<commit_before>import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { fetchTask } from '../actions/taskActions';

class Tasklist extends React.Component {

	handleClick(e){
		e.stopPropagation();
		this.props.fetchTask(this.props.tasklist._id);
	}

	render(){

		const { _id, tasklistName, createTime, dueDate, priority } = this.props.tasklist;

		return(
			<div onClick={this.handleClick.bind(this)} className="list-group-item tasklist clearfix">
				<div className="tasklist-priority priority-1"></div>
	      <h4 title={tasklistName} className="list-group-item-heading">{tasklistName}</h4>
	      <label className="label label-warning" >优先级: {priority}</label>
	      <label className="label label-danger" >截止日期: {dueDate}</label>
		    <div className="label-wrapper">
		    	<span className="badge">标签1</span>
			    <span className="badge">label2</span>
			    <span className="badge">label3</span>
			    <span className="badge">labe2</span>
			    <span className="badge">lab标签1e2labe2</span>
		    </div>
	      <small className="tasklist-footer">创建时间: {createTime}</small>
		  </div>
		);
	}
}

const mapDispatchToProps = dispatch => ({
	fetchTask: tasklistId => dispatch(fetchTask(tasklistId))
});

export default connect(null, mapDispatchToProps)(Tasklist);<commit_msg>left border color now is same to priority<commit_after>import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { fetchTask } from '../actions/taskActions';

class Tasklist extends React.Component {

	handleClick(e){
		e.stopPropagation();
		if(this.props.tasklist._id == this.props.currentTasklistId){return;}
		this.props.fetchTask(this.props.tasklist._id);
	}

	render(){

		const { _id, tasklistName, createTime, dueDate, priority } = this.props.tasklist;

		return(
			<div onClick={this.handleClick.bind(this)} className="list-group-item tasklist clearfix">
				<div className={`tasklist-priority priority-${priority}`}></div>
	      <h4 title={tasklistName} className="list-group-item-heading">{tasklistName}</h4>
	      <label className="label label-warning" >优先级: {priority}</label>
	      <label className="label label-danger" >截止日期: {dueDate}</label>
		    <div className="label-wrapper">
		    	<span className="badge">标签1</span>
			    <span className="badge">label2</span>
			    <span className="badge">label3</span>
			    <span className="badge">labe2</span>
			    <span className="badge">lab标签1e2labe2</span>
		    </div>
	      <small className="tasklist-footer">创建时间: {createTime}</small>
		  </div>
		);
	}
}

const mapStateToProps = state => ({
	currentTasklistId: state.taskboard.task.currentTasklistId
});

const mapDispatchToProps = dispatch => ({
	fetchTask: tasklistId => dispatch(fetchTask(tasklistId))
});

export default connect(mapStateToProps, mapDispatchToProps)(Tasklist);
{'fraction_non_alphanumeric': 0.15631469979296067, 'fraction_numerical': 0.006556245686680469, 'mean_word_length': 4.532442748091603, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 56, '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': '1992390', 'n_tokens_mistral': 997, 'n_tokens_neox': 934, 'n_words': 173}