<commit_before>import React from "react";
import styled from "styled-components";
// Typography
import { SBody, MBody } from "typography";

interface ICourse {
  title: string;
  dueDate: string;
  img: string;
}

const Course: React.FC<ICourse> = ({ title, dueDate, img }) => {
  return (
    <CourseWrapper>
      <CourseImg src={img} />
      <CourseInfoWrapper>
        <MBody>{title}</MBody>
        <SBody>{dueDate}</SBody>
      </CourseInfoWrapper>
    </CourseWrapper>
  );
};

const CourseWrapper = styled.div`
  width: 21.8rem;
  height: 5rem;
  display: flex;
  & > *:not(:last-child) {
    margin-right: 0.8rem;
  }
`;

const CourseImg = styled.img`
  width: 5rem;
  height: 5rem;
`;

const CourseInfoWrapper = styled.div`
  width: 21.8rem;
  height: 5rem;
  display: flex;
  flex-direction: column;
`;

export default Course;<commit_msg>:lipstick: alt 속성이 설정되도록 수정<commit_after>import React from "react";
import styled from "styled-components";
// Typography
import { SBody, MBody } from "typography";

interface ICourse {
  title: string;
  dueDate: string;
  img: string;
}

const Course: React.FC<ICourse> = ({ title, dueDate, img }) => {
  return (
    <CourseWrapper>
      <CourseImg src={img} alt={`course-img-${title}`} />
      <CourseInfoWrapper>
        <MBody>{title}</MBody>
        <SBody>{dueDate}</SBody>
      </CourseInfoWrapper>
    </CourseWrapper>
  );
};

const CourseWrapper = styled.div`
  width: 21.8rem;
  height: 5rem;
  display: flex;
  & > *:not(:last-child) {
    margin-right: 0.8rem;
  }
`;

const CourseImg = styled.img`
  width: 5rem;
  height: 5rem;
`;

const CourseInfoWrapper = styled.div`
  width: 21.8rem;
  height: 5rem;
  display: flex;
  flex-direction: column;
`;

export default Course;
{'fraction_non_alphanumeric': 0.15137614678899083, 'fraction_numerical': 0.013761467889908258, 'mean_word_length': 3.3844221105527637, 'pattern_counts': {'":': 0, '<': 23, '<?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': '5323417', 'n_tokens_mistral': 655, 'n_tokens_neox': 633, 'n_words': 144}