{"size": 704, "ext": "js", "max_stars_repo_path": "service/www/3/exodus/scripts/parts_dict.js", "max_stars_repo_name": "BOBBYWY/exodusdb", "max_stars_repo_stars_event_min_datetime": "2021-01-23T14:36:34.000Z", "max_stars_repo_stars_event_max_datetime": "2021-06-07T10:02:28.000Z", "max_issues_repo_path": "service/www/3/exodus/scripts/parts_dict.js", "max_issues_repo_name": "BOBBYWY/exodusdb", "max_issues_repo_issues_event_min_datetime": "2019-08-04T19:15:56.000Z", "max_issues_repo_issues_event_max_datetime": "2019-08-04T19:15:56.000Z", "max_forks_repo_path": "service/www/3/exodus/scripts/parts_dict.js", "max_forks_repo_name": "BOBBYWY/exodusdb", "max_forks_repo_forks_event_min_datetime": "2022-01-29T22:41:01.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-29T22:41:01.000Z"}
{"max_stars_count": 4, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 22.7096774194, "max_line_length": 92, "alphanum_fraction": 0.6732954545}
function* dict_PARTS() {

 var dict=[]//of dictrecs
 var din=-1
 var di
 
 di=dict[++din]=dictrec('PART_CODE','F',0)
 
 di=dict[++din]=dictrec('PART_NAME','F',1)
 exodus_dict_text(di)
 di.required=true
 
 di=dict[++din]=dictrec('SUB_PART_CODE','F',2)
 di.filename='PARTS'
 di.unique=true
 di.validation=function () {

  if (gvalue==gkey) return yield* exodusinvalid('Sorry, parts cannot be made of each other')
 }
 
 di=dict[++din]=dictrec('SUB_PART_NAME','S','','',1)
 exodus_dict_text(di)
 di.functioncode='return yield* this.xlate("SUB_PART_CODE", "PARTS",1,"X")'
 
 di=dict[++din]=dictrec('QUANTITY','F',3,'',1)
 exodus_dict_number(di,0,0)//no decimals, minimum 0
 di.required=true
 
 return dict
 
}