<commit_before>import React from 'react'

import preload from '../data.json'

import ShowCard from './ShowCard'

const Search = () => (
  <div className="search">
    <div>
      {preload.shows.map(show => <ShowCard key={show.imdbID} show={show} />)}
    </div>
  </div>
)

export default Search<commit_msg>refactor(State features added in Search page):<commit_after>import React, { Component } from 'react'

import preload from '../data.json'

import ShowCard from './ShowCard'

class Search extends Component {
  constructor(props) {
    super(props)

    this.state = {
      searchTerm: 'this is some sort of debug statement'
    }

    this.handleSearchTermChange = this.handleSearchTermChange.bind(this)
  }

  handleSearchTermChange(event) {
    this.setState({ searchTerm: event.target.value })
  }

  render() {
    return (
      <div className="search">
        <header>
          <h1>svideo</h1>
          <input
            onChange={this.handleSearchTermChange}
            value={this.state.searchTerm}
            type="text"
            placeholder="Search"
          />
        </header>
        <div>
          {preload.shows.map(show => (
            <ShowCard key={show.imdbID} show={show} />
          ))}
        </div>
      </div>
    )
  }
}

export default Search
{'fraction_non_alphanumeric': 0.13488372093023257, 'fraction_numerical': 0.0015503875968992248, 'mean_word_length': 2.3795811518324608, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 21, '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': '4841154', 'n_tokens_mistral': 395, 'n_tokens_neox': 392, 'n_words': 86}