It is the job of the U.S. Immigration and Customs Enforcement to determine — case by case — whether people arrested for immigration offenses ought to be detained, released on bond or just trusted to show up in court. For years, ICE has used an algorithm to help make this decision, one that weighs factors such as ties to the community, criminal history and past or present substance abuse.