Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Fixed, amongst a bunch of other things in that translation. Yikes.
This fixes a faulty logic in the
containsmethod.Rust:
Sample tests don't compile due to a missing
}.Rust translation submitted for review.
your haircut.
Once I can be bothered to author the tests, which I couldn't for the past 2 years :D
Boy, have I got news for you
I must have been hallucinating then.
approved
In the python translation, the same typo issue cropped again in the sample tests, which was previously overlooked. This is fixed now.
In the previous fork, I forgot to also fix the typo in the sample tests. This is done now.
Rust translation published for review.
@dfhwze I left some notes for you to peruse.
Notes
entropyin the Python translation is wrong. It useschoices(alpha, k = entropy), which is random selection with replacement. This selection is then fed intochoose_tokens, which again useschoices(tokens, k = quantity)to do another random sampling with replacement. Since this is pointless, I believe that the intended use ofentropywas to choose a subset of unique characters from the alphabet. I've implemented it to such effect in this translation.do_testfunction appears complex. It isn't, just a lot of code. It works.<1s. Feel free to tweak batch sizes or lengths.*EA announcer voice*
AD. It's in the name.
I know.
Loading more items...