E816 refactoring plagiarism_check.rb and sentence_state.rb pull request