<commit_before>import React from 'react'
import {Link} from 'react-router-dom'

function setArticleLink(title) {
  return encodeURIComponent(title)
}

const ArticleCard = ({channel, article}) => {
  return (
    <div className="card">
      <Link to={`/newsfeed/${channel.source_id}/${setArticleLink(article.title)}`} className="article-link">
        <h3>{article.title}</h3>
        <img src={article.urlToImage} className="image"/>
      </Link>
    </div>
  )
}

export default ArticleCard<commit_msg>Refactor link to cover entire card<commit_after>import React from 'react'
import {Link} from 'react-router-dom'

function setArticleLink(title) {
  return encodeURIComponent(title)
}

const ArticleCard = ({channel, article}) => {
  return (
    <Link to={`/newsfeed/${channel.source_id}/${setArticleLink(article.title)}`} className="article-link">
      <div className="card">
        <h3>{article.title}</h3>
        <img src={article.urlToImage} className="image"/>
      </div>
    </Link>
  )
}

export default ArticleCard
{'fraction_non_alphanumeric': 0.15906886517943744, 'fraction_numerical': 0.0038797284190106693, 'mean_word_length': 4.16, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '2347416', 'n_tokens_mistral': 325, 'n_tokens_neox': 326, 'n_words': 66}