private static Object run(String expr,Map<String,Object> variables){
  StellarProcessor processor=new StellarProcessor();
  Object ret=processor.parse(expr,null,StellarFunctions.FUNCTION_RESOLVER(),Context.EMPTY_CONTEXT());
  byte[] raw=SerDeUtils.toBytes(ret);
  Object actual=SerDeUtils.fromBytes(raw,Object.class);
  if (ret instanceof StatisticsProvider) {
    StatisticsProvider left=(StatisticsProvider)ret;
    StatisticsProvider right=(StatisticsProvider)actual;
    tolerantAssertEquals(null,left,right);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    tolerantAssertEquals(null,left,right,1e-3);
    for (double d=10.0; d < 100.0; d+=10) {
      final double pctile=d;
      tolerantAssertEquals(null,left,right,1e-2);
    }
  }
  return ret;
}

private static Object run ( String expr , Map < String , Object > variables ) { StellarProcessor processor = new StellarProcessor ( ) ; Object ret = processor . parse ( expr , null , StellarFunctions . FUNCTION_RESOLVER ( ) , Context . EMPTY_CONTEXT ( ) ) ; byte [ ] raw = SerDeUtils . toBytes ( ret ) ; Object actual = SerDeUtils . fromBytes ( raw , Object . class ) ; if ( ret instanceof StatisticsProvider ) { StatisticsProvider left = ( StatisticsProvider ) ret ; StatisticsProvider right = ( StatisticsProvider ) actual ; tolerantAssertEquals ( null , left , right ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; tolerantAssertEquals ( null , left , right , 1e-3 ) ; for ( double d = 10.0 ; d < 100.0 ; d += 10 ) { final double pctile = d ; tolerantAssertEquals ( null , left , right , 1e-2 ) ; } } return ret ; }
runs a stellar expression .
