<commit_before>import React, {Component} from 'react';
import './App.css';
import axios from 'axios';
import TopBar from './TopBar';

class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      movies: []
    }
  }

  // updateMovies(movies){
  //   this.setState({movies: movies});
  // }

  componentWillMount() {
    axios.get('/api/movies').then(response => {
      this.setState({movies: response.data});
      // this.updateMovies(response.data)
    }).catch(error => {<commit_msg>Remove unused code<commit_after>import React, {Component} from 'react';
import './App.css';
import axios from 'axios';
import TopBar from './TopBar';

class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      movies: []
    }
  }


  componentWillMount() {
    axios.get('/api/movies').then(response => {
      this.setState({movies: response.data});
    }).catch(error => {
{'fraction_non_alphanumeric': 0.17005347593582887, 'fraction_numerical': 0.0, 'mean_word_length': 3.197309417040359, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7073372', 'n_tokens_mistral': 301, 'n_tokens_neox': 299, 'n_words': 62}