NEW YORK, March 27: Some parts of Twitter’s source code — the fundamental computer code on which the social network runs — were leaked online, the social media company said in a legal filing on Sunday that was first reported by The New York Times.