A judge found a repeat, violent offender accused of attacking and trying to rape a Johns Hopkins University student on campus a danger to the community.