weights current element . by matching it with positive candidates and weighting child nodes . since it 's impossible to predict which exactly names , ids or class names will be used in html , major role is played by child nodes concode_field_sep Pattern NODES concode_elem_sep Pattern POSITIVE concode_elem_sep Pattern UNLIKELY concode_elem_sep Pattern NEGATIVE concode_elem_sep Pattern NEGATIVE_STYLE concode_field_sep int calcWeightForChild concode_elem_sep Collection<Element> getNodes concode_elem_sep Collection<Element> getMetas concode_elem_sep Document removeScriptsAndStyles concode_elem_sep Document removeSelectsAndOptions concode_elem_sep String extractContent concode_elem_sep String extractContent concode_elem_sep int weightChildNodes concode_elem_sep void prepareDocument concode_elem_sep int calcWeight
int function ( Element arg0 , String arg1 ) { int loc0 = calcWeight ( arg0 ) ; loc0 += ( int ) Math . round ( arg0 . ownText ( ) . length ( ) / 100.0 * 10 ) ; loc0 += weightChildNodes ( arg0 , arg1 ) ; return loc0 ; }