I have written the following code using pygments to get info on a string:
from pygments.lexers.jvm import JavaLexer
import pygments.lexers.jvm
t = 'float s = 0.5; System.out.println("Hello World");'
lexer = JavaLexer()
lexer.analyse_text(t)
I get a value of 0.0 as a result of running this code while it should be something greater than 0 since quite a lot of the code is java-specific. Where exactly am I going wrong?