Since we focus on generating the code for every method, we train/test the code prediction task at method level-each method is similar to a sentence and each token in the method is equivalent to a word.
we ignore the code outside the method scope like global variables, class declarations, etc.