package Ġcom . intellij . file Prediction . predictor . model Ċ Ċ import Ġcom . intellij . internal . ml . Decision Function Ċ import Ġcom . intellij . internal . ml . Feature Mapper Ċ Ċ class ĠTest File Prediction Model Provider ( private Ġval Ġpredict : Ġ( Double Array ?) Ġ-> ĠDouble ) Ġ: ĠFile Prediction Model Provider Ġ{ ĊĠ Ġoverride Ġfun ĠgetModel (): ĠDecision Function Ġ{ ĊĠĠĠ Ġreturn ĠTest File Prediction Decision Function ( predict ) ĊĠ Ġ} Ċ } Ċ Ċ class ĠTest File Prediction Decision Function ( private Ġval Ġpredictor : Ġ( Double Array ?) Ġ-> ĠDouble ) Ġ: ĠDecision Function Ġ{ ĊĠ Ġoverride Ġfun Ġpredict ( features : ĠDouble Array ?): ĠDouble Ġ= Ġpredictor . invoke ( features ) ĊĊĠ Ġoverride Ġfun Ġversion (): ĠString ? Ġ= Ġnull ĊĊĠ Ġoverride Ġfun Ġget Required Features (): ĠMutable List < String > Ġ= Ġarray ListOf () ĊĊĠ Ġoverride Ġfun Ġget Features Order (): ĠArray < Feature Mapper > Ġ= Ġempty Array () ĊĊĠ Ġoverride Ġfun Ġget Unknown Features ( features : ĠMutable Collection < String >): ĠMutable List < String > Ġ= Ġarray ListOf () Ċ }