Max, no need to protest, it's not a rip-off, it's a remake. Siu Fai Mak, the writer of Infernal Affairs, even received writing credit for the movie, see IMDb site. One notable stat:
"The word "fuck" and its derivatives are said 237 times throughout the film"