@@ -0,0 +1,1578 @@
+package galileo.samples;%0A%0Aimport java.util.ArrayList;%0A%0Aimport java.util.List;%0Aimport java.util.Random;%0A%0Aimport galileo.dataset.feature.Feature;%0Aimport galileo.query.Expression;%0Aimport galileo.query.Operation;%0Aimport galileo.query.Operator;%0Aimport galileo.query.Query;%0A%0Apublic class RandomQuery %7B%0A%0A    public static Random random = new Random();%0A%0A    public static Operator randomOperator() %7B%0A        int i = random.nextInt(Operator.values().length - 2) + 1;%0A        return Operator.fromInt(i);%0A    %7D%0A%0A    public static Feature randomFeature(String name, float min, float max) %7B%0A        float diff = max - min;%0A        float rand = random.nextFloat() * diff;%0A        float value = min + rand;%0A        return new Feature(name, value);%0A    %7D%0A%0A    public static Query randomQuery() %7B%0A        Query q = new Query();%0A%0A        List%3CFeature%3E features = new ArrayList%3C%3E();%0A        features.add(randomFeature(%22pressure%22, 1, 100));%0A        features.add(randomFeature(%22visibility%22, 1, 100));%0A        features.add(randomFeature(%22total_precipitation%22, 1, 100));%0A        features.add(randomFeature(%22temperature_surface%22, 1, 100));%0A%0A%0A        List%3CExpression%3E expressions = new ArrayList%3C%3E();%0A        for (Feature f : features) %7B%0A            expressions.add(new Expression(randomOperator(), f));%0A        %7D%0A%0A        Operation op = new Operation(expressions.toArray(%0A                    new Expression%5Bexpressions.size()%5D));%0A%0A        q.addOperation(op);%0A%0A        return q;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Query q = randomQuery();%0A        System.out.println(q);%0A    %7D%0A%7D%0A

Add random query generator sample