package Ġcom . intellij . ml . local . models . frequency . methods Ċ Ċ import Ġcom . intellij . ml . local . models . api . Local Model Ċ Ċ class ĠMethods Frequency Local Model Ġinternal Ġconstructor ( private Ġval Ġstorage : ĠMethods Frequency Storage ) Ġ: ĠLocal Model Ġ{ ĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġconst Ġval ĠID : ĠString Ġ= Ġ" methods _ frequency " ĊĠ Ġ} ĊĊĠ Ġoverride Ġval Ġid : ĠString Ġ= ĠID ĊĊĠ Ġoverride Ġfun Ġready ToUse (): ĠBoolean Ġ= Ġstorage . isValid () Ġ&& Ġ! storage . isEmpty () ĊĊĠ Ġfun Ġtotal Methods Count (): ĠInt Ġ= Ġstorage . total Methods ĊĊĠ Ġfun Ġtotal Methods Usage s (): ĠInt Ġ= Ġstorage . total Methods Usage s ĊĊĠ Ġfun Ġget Methods By Class ( className : ĠString ): ĠMethods F requ encies ? Ġ= Ġstorage . get ( className ) Ċ }