Code of the article:
"Predator avoidance and foraging for food shape synchrony and response to perturbations in trophic metacommunities"
Pierre Quévreux, Rémi Pigeault, and Michel Loreau
Theoretical and Experimental Ecology Station, UPR 2001, CNRS, 09200 Moulis, France