I’m not sure what would be acceptable output for a code generation tool if rewriting the examples isn’t ok and reimplementing something that performs the same function still isn’t ok. Are we automatically granting de-facto code patents on all published code now?
Don't know how you would even write code in your own style. As soon as you start altering it, the result is different. It's more/less efficient.
Non trivial include names, comments, logging, error checking, structure, ordering of operations that aren’t sequential.