I think stackoverflow is a better platform for asking such question but I'm only opening this thread to increase visibility.
Here is the original: [https://stackoverflow.com/q/60582785/12029705](https://stackoverflow.com/q/60582785/12029705) The code is about stable matching.
