code for constructing cohorts of article revisions to test for the presence of plagiarism