CoToRu: Automatic Generation of Network Intrusion Detection Rules from Code