Added an utility general.categorize
Added an utility general.categorize


Former-commit-id: 3f6a2b33b3931a3327caf9826f1e85baf41121cd
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine