# # Collective Knowledge (automating artifact evaluation) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) ck=None # Will be updated by CK (initialized CK kernel) # Local settings ############################################################################## # Initialize module def init(i): """ Input: {} Output: { return - return code = 0, if successful > 0, if error (error) - error text if return > 0 } """ return {'return':0} ############################################################################## # process JSON file from HOTCRP and generate table of artifacts def process_hotcrp(i): """ Input: { json_file - input JSON file from HOTCRP } Output: { return - return code = 0, if successful > 0, if error (error) - error text if return > 0 } """ jf=i.get('json_file','') if jf=='': return {'return':1, 'error':'--json_file with HOTCRP JSON file is not specified'} r=ck.load_json_file({'json_file':jf}) if r['return']>0: return r d=r['dict'] hh='
Paper | \n' hh+='Artifact available | \n' hh+='Artifact functional | \n' hh+='Artifact reusable | \n' hh+='Results reproduced | \n' hh+='Results replicated | \n' hh+='
\n'
hh+=' '+sj+') '+title+' \n' hh+=' '+xauthors+' \n' hh+=' | \n'
hh+=' \n'
if 'available' in decision:
hh+=' \n' if badges!='': badges+=',' badges+='available' hh+=' | \n'
hh+=' \n'
if 'functional' in decision:
hh+=' \n' if badges!='': badges+=',' badges+='functional' hh+=' | \n'
hh+=' \n'
if 'reusable' in decision:
hh+=' \n' if badges!='': badges+=',' badges+='reusable' hh+=' | \n'
hh+=' \n' hh+=' | \n' hh+='\n'
if 'replicated' in decision:
hh+=' \n' if badges!='': badges+=',' badges+='replicated' hh+=' | \n'
hh+='