@jannem As someone who works in academia (a sysadmin in a computer science department), I have to cough sadly. Most research code is not shared and also not usable, partly because it's not what graduate students and researchers are measured on and care about.
(Grad students are measured on graduating with their degree and publications, researchers on publications and grants. Polishing software for release takes away from both sides of this. It happens, but.)