original_string: public static function get_context_for_userid_within_submission(int $userid, contextlist $contextlist) {
          $sql = "SELECT contextid
                    FROM {comments}
                   WHERE component = :component
                         AND commentarea = :commentarea
                         AND userid = :userid";
          $params = ['userid' => $userid, 'component' => 'assignsubmission_comments', 'commentarea' => 'submission_comments'];
          $contextlist->add_from_sql($sql, $params);
      }
code: public static function get_context_for_userid_within_submission(int $userid, contextlist $contextlist) {
          $sql = "SELECT contextid
                    FROM {comments}
                   WHERE component = :component
                         AND commentarea = :commentarea
                         AND userid = :userid";
          $params = ['userid' => $userid, 'component' => 'assignsubmission_comments', 'commentarea' => 'submission_comments'];
          $contextlist->add_from_sql($sql, $params);
      }
code_tokens: public static function get_context_for_userid_within_submission ( int $ userid , contextlist $ contextlist ) { $ sql = "SELECT contextid
                    FROM {comments}
                   WHERE component = :component
                         AND commentarea = :commentarea
                         AND userid = :userid" ; $ params = [ 'userid' => $ userid , 'component' => 'assignsubmission_comments' , 'commentarea' => 'submission_comments' ] ; $ contextlist -> add_from_sql ( $ sql , $ params ) ; }
docstring: It is possible to make a comment as a teacher without creating an entry in the submission table, so this is required
  to find those entries.
  
  @param  int $userid The user ID that we are finding contexts for.
  @param  contextlist $contextlist A context list to add sql and params to for contexts.
docstring_tokens: It is possible to make a comment as a teacher without creating an entry in the submission table so this is required to find those entries .