It's complete guess work. The only mention of 500M lines of code is from the last paragraph of The Times article: "According to one specialist, the Web site contains about 500 million lines of software code."
The specialist was talking to a reporter, who was writing for the general public, about how serious, complex, and justifiably expensive their work is. They might be including the linux kernels, dbms, etc in their line count.