<commit_before>import React from 'react';
import InputArea from './InputArea.jsx';
import QueryArea from './QueryArea.jsx';
import BeerPair from './BeerPair.jsx';
import Details from './Details.jsx';
import axios from 'axios';

class App extends React.Component {
  constructor() {
    super();
    this.handleBeerSearch = this.handleBeerSearch.bind(this);
    this.handleIndividalBeerSearch = this.handleIndividalBeerSearch.bind(this);
    this.state = {
      currentBeer: {},
      beerList: [],
      loading: false
    };
  }

  handleBeerSearch(beer) {
    this.setState({
      currentBeer: beer,<commit_msg>Clear beerList state on search to clear previous beers<commit_after>import React from 'react';
import InputArea from './InputArea.jsx';
import QueryArea from './QueryArea.jsx';
import BeerPair from './BeerPair.jsx';
import Details from './Details.jsx';
import axios from 'axios';

class App extends React.Component {
  constructor() {
    super();
    this.handleBeerSearch = this.handleBeerSearch.bind(this);
    this.handleIndividalBeerSearch = this.handleIndividalBeerSearch.bind(this);
    this.state = {
      currentBeer: {},
      beerList: [],
      loading: false
    };
  }

  handleBeerSearch(beer) {
    this.setState({
      currentBeer: beer,
      beerList: [],
{'fraction_non_alphanumeric': 0.12393493415956623, 'fraction_numerical': 0.0, 'mean_word_length': 3.664259927797834, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '208238', 'n_tokens_mistral': 401, 'n_tokens_neox': 400, 'n_words': 94}