Is it again too trivial?
I don't know. That's my function's length.
> do you count comments?
No comments, no blank lines.
> can I codegolf a few lines to get below the limit?
You bet. But, if you copy my reference implementation, you need to get the license as well.
However, the research is on the open. Read it, implement it. That's no problem.
But, CoPilot is not reading my paper. It's reproducing my function verbatim, which is under a license which has share-alike mechanics.