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

import './App.css'
import BookList from './Books/BookList'
import SearchBooks from './Books/SearchBooks'
import BookDetail from './Books/BookDetail'

class BooksApp extends React.Component {

    render() {
        return (

            <div className="app">
                <Route exact path="/" component={BookList}/>
                <Route exact path="/search/" component={SearchBooks}/>
                <Route exact path="/detail/:bookID" component={BookDetail}/>

            </div>
        )
    }
}

export default BooksApp<commit_msg>refactoring for stateless component<commit_after>import React from 'react'
import {Route} from 'react-router-dom'

import './App.css'
import BookList from './Books/BookList'
import SearchBooks from './Books/SearchBooks'
import BookDetail from './Books/BookDetail'

const BooksApp = () => {
  return (
      <div className="app">
        <Route exact path="/" component={BookList}/>
        <Route exact path="/search/" component={SearchBooks}/>
        <Route exact path="/detail/:bookID" component={BookDetail}/>
      </div>
  )
};

export default BooksApp
{'fraction_non_alphanumeric': 0.1380186282811177, 'fraction_numerical': 0.0, 'mean_word_length': 2.9932432432432434, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, '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': '6734385', 'n_tokens_mistral': 338, 'n_tokens_neox': 321, 'n_words': 91}