<commit_before>- BUGS
  1- After fitting, the fit panel is not updated with the output values of the fit.
  2- Do this:
      a) load a file
      b) fit a straight line
      c) change the scale using the "Properties" menu. 
      You will see an exception that should be fixed.



- IMPROVEMENTS
  1- After loading a new file or changing the scale using the "Properties" menu, remove any previously displayed fit from the graph.<commit_msg>more comments<commit_after>- BUGS
  1- After fitting, the fit panel is not updated with the output values of the fit.
  2- Do this:
      a) load a file
      b) fit a straight line
      c) change the scale using the "Properties" menu. 
      You will see an exception that should be fixed.

  3- Load the file line_in_x2_y.txt in miniView. Select x^2 and y for the scales. Fit it. 
      a) The fit range is wrong, it's not update for the X^2 view.
      b) the fit result is wrong
      c) Even if you update the range, the fit and the plots are wrong.
      
- NOTES that might help for bugs
  1- Make sure you are fitting the View data, not the underlying data
  2- Since you are using the log scale from matplotlib, the fit for when one of 
  		the axis is in log will NOT be a straight line
  3- Make sure that you are filling the View of the fit result correctly.
  

- IMPROVEMENTS
  1- After loading a new file or changing the scale using the "Properties" menu, remove any previously displayed fit from the graph.
{'fraction_non_alphanumeric': 0.04505119453924915, 'fraction_numerical': 0.008873720136518772, 'mean_word_length': 2.7493606138107416, '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': '7525283', 'n_tokens_mistral': 415, 'n_tokens_neox': 400, 'n_words': 249}