<commit_before>import React from "react";
import Book from "./Book";

class BookShelf extends React.Component {
    render() {
        return (
            <div className="bookshelf">
                <h2 className="bookshelf-title">{this.props.shelfName}</h2>
                <div className="bookshelf-books">
                    <ol className="books-grid">
                        {this.props.books.map((book) => {
                            return <li>
                                <Book bookImage={book.image}
                                      bookName={book.name}
                                      bookAuthor={book.author}/>
                            </li>
                        })}
                    </ol>
                </div>
            </div>
        )
    }
}

export default BookShelf<commit_msg>refactor: book list<commit_after>import React from "react";
import Book from "./Book";

class BookShelf extends React.Component {
    render() {
        return (
            <div className="bookshelf">
                <h2 className="bookshelf-title">{this.props.shelfName}</h2>
                <div className="bookshelf-books">
                    <ol className="books-grid">
                        {this.props.books.map((book) => {
                            return <li key={book.name}>
                                <Book bookImage={book.image}
                                      bookName={book.name}
                                      bookAuthor={book.author}
                                />
                            </li>
                        })}
                    </ol>
                </div>
            </div>
        )
    }
}

export default BookShelf
{'fraction_non_alphanumeric': 0.11072056239015818, 'fraction_numerical': 0.0023432923257176333, 'mean_word_length': 0.9722863741339491, 'pattern_counts': {'":': 0, '<': 25, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6491562', 'n_tokens_mistral': 426, 'n_tokens_neox': 390, 'n_words': 74}