Codes are currently used by a large number of researchers to study a specific research problem or to produce results needed for a given publication. Once the work is published, some researchers decide to keep the developed codes to themselves while others make the codes available so that interested researchers can reproduce the published data.
Based on your experience, what are the benefits of sharing a source code (e.g. Matlab code or a User-Defined material model) by placing the code and the data in a public repository offered by the publisher or through a university website.