package Ġcom . intellij . completion . ml . experiment . rank er . local Ċ Ċ import Ġcom . intellij . openapi . application . Plugin Path Manager Ċ import Ġcom . jetbrains . completion . rank er . model . Zip Model Metadata Reader Ċ import Ġorg . junit . Test Ċ import Ġjava . io . File Ċ Ċ class ĠModel Metadata Reader From Zip Test Ġ{ ĊĠ Ġ@ Test ĊĠ Ġfun Ġtest Read Simple Zip Model () Ġ{ ĊĠĠĠ Ġval Ġpath To Zip Ġ= Ġget TestData Path (" model . zip ") ĊĠĠĠ Ġval Ġresources Reader Ġ= ĠZip Model Metadata Reader ( path To Zip ) ĊĠĠĠ Ġval Ġmodel Ġ= Ġresources Reader . read Model () ĊĠĠĠ Ġassert ( model . get Supported Languages (). contains (" python ")) ĊĠĠĠ Ġmodel . predict ( double ArrayOf ( 1 . 0 , Ġ 2 . 0 , Ġ 3 . 0 , Ġ 4 . 0 , Ġ 5 . 0 )) ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġget TestData Path ( fileName : ĠString ): ĠString Ġ{ ĊĠĠĠ Ġreturn ĠFile ( Plugin Path Manager . get Plugin Home Path (" completion - ml - ranking ") Ġ+ Ġ"/ testData /" Ġ+ ĠfileName ). absolute Path ĊĠ Ġ} Ċ }