This counts the Java LOC but XWiki has a substantial lines in wiki pages (materialized as XML files on the file system). However the XML count also counts other types of XML files such as pom.xml files, so it's hard to get more precise information.

We also have other type of sizeable code in addition to Java, especially for the client UI part: HTML & JavaScript.