Loading acorn-lib/assets/constants/accept.txt +1 −46 Original line number Diff line number Diff line ACORN AMD AOCL ASCR airflows? applications? bioeconomy Loading @@ -11,23 +7,15 @@ biofuels? biomass biomonitoring bioproducts? BLAS CBI CPUs? coproduct cyber [Cc]ybersecurity DOE deliverables? disable downscaled? drywell FAIR fluence GEARS GIS GPS GSHS GPUs? geometrical geoprocessing Loading @@ -36,58 +24,25 @@ geospatial geotag(ged)? glovebox(es)? graphene HPC HPE hackathons? IBM INSET IOTA IPs? IRI ISO JACC LLMs? LLVM Mantid MDNorm MKL MPI MRI misconfigurations? multimodal NERSC NOx operationalize OLCF ORNL organoiodides? parallel_for parallel_reduce Perlmutter PIPE POI QIS QSC RAJA REDC Raman regionalizations? reusability SANSR EDS SEM Situ SNS STAR socioeconomics? sorbents? spaceborne superfluidity telematics timeframes? TSUSG uncrewed No newline at end of file UAS USA XLOOP XPS No newline at end of file acorn-lib/assets/constants/acronyms.csv +40 −42 Original line number Diff line number Diff line ACORN,Accessible Content Optimization for Research Needs AMD,Advanced Micro Devices Accessible Content Optimization for Research Needs,ACORN Advanced Micro Devices,AMD AOCL ASCR,Advanced Scientific Computing Research BLAS,Basic Linear Algebra Subprograms Advanced Scientific Computing Research,ASCR Basic Linear Algebra Subprograms,BLAS CBI CPU,Computer Processing Unit DOE,Department of Energy FAIR,Findable Accessible Interoperable and Reusable GEARS,Global Evaluation Analysis Research and Security GIS,Geographic Information System GPS,Global Positioning System GSHS,Geospatial Science and Human Security GPU,Graphics Processing Unit HPC,High Performance Computing HPE,Hewlett Packard Enterprise IBM,International Business Machines INSET,In-Pile Steady State Extreme Temperature IOTA,Iodine Off-gas Testing and Abatement IP,Internet Protocol Computer Processing Unit,CPU Findable Accessible Interoperable and Reusable,FAIR Global Evaluation Analysis Research and Security,GEARS Geographic Information System,GIS Global Positioning System,GPS Graphics Processing Unit,GPU High Performance Computing,HPC Hewlett Packard Enterprise,HPE Heating Ventilation and Air Conditioning,HVAC International Business Machines,IBM In-Pile Steady State Extreme Temperature,INSET Iodine Off-gas Testing and Abatement,IOTA Internet Protocol,IP IRI ISO,In Support Of JACC,Julia for ACCelerators LLM,Large Language Model LLVM,Low Level Virtual Machine MDNorm,Multi-Dimensional Normalization MKL,Math Kernel Library MPI,Message Passing Interface MRI,Magnetic Resonance Imaging NERSC,National Energy Research Scientific Computing Center NOx,Nitric Oxide and Nitrogen Dioxide OLCF,Oak Ridge Leadership Computing Facility ORNL,Oak Ridge National Laboratory PIPE,Parallel Integration and Processing Engine POI,Point of Interest In Support Of,ISO Julia for ACCelerators,JACC Large Language Model,LLM Low Level Virtual Machine,LLVM Multi-Dimensional Normalization,MDNorm Math Kernel Library,MKL Message Passing Interface,MPI Magnetic Resonance Imaging,MRI National Energy Research Scientific Computing Center,NERSC Nitric Oxide and Nitrogen Dioxide,NOx Oak Ridge Leadership Computing Facility,OLCF Parallel Integration and Processing Engine,PIPE Point of Interest,POI RAJA REDC,Radiochemical Engineering Development Center SANSR,Situational Awareness of Network System Roles EDS,Energy Dispersive X-ray Spectroscopy SEM,Scanning Electron Microscopy SNS,Spallation Neutron Source Radiochemical Engineering Development Center,REDC Situational Awareness of Network System Roles,SANSR Energy Dispersive X-ray Spectroscopy,EDS Scanning Electron Microscopy,SEM Spallation Neutron Source,SNS STAR TSEA,Transport Security and Analysis UAS,Unmanned Aerial System USA,United States of America XLOOP,Extreme-Scale Experiment-in-the-Loop XPS,X-ray Photoelectron Spectroscopy No newline at end of file Transport Security and Analysis,TSEA Unmanned Aerial System,UAS United States of America,USA Extreme-Scale Experiment-in-the-Loop,XLOOP X-ray Photoelectron Spectroscopy,XPS No newline at end of file acorn-lib/src/analyzer/mod.rs +6 −2 Original line number Diff line number Diff line Loading @@ -228,8 +228,12 @@ impl StaticAnalyzer for Vale { } match File::create(format!("{}/accept.txt", parent)) { | Ok(mut file) => { // TODO: Concatenate acronyms (acronyms, sponsors, partners, organizations) to accept file let content = Constant::read_lines("accept.txt").join("\n"); // TODO: Concatenate organization alternative names to accept file let acronyms = Constant::get_last_values("acronyms"); let partners = Constant::get_last_values("partners"); let sponsors = Constant::get_last_values("sponsors"); let words = Constant::read_lines("accept.txt"); let content = acronyms.chain(partners).chain(sponsors).chain(words).collect::<Vec<String>>().join("\n"); file.write_all(content.as_bytes()).expect("Unable to write to accept.txt"); } | Err(why) => panic!("=> {} Create accept.txt - {}", Label::fail(), why), Loading acorn-lib/src/schema/mod.rs +1 −1 Original line number Diff line number Diff line Loading @@ -832,7 +832,7 @@ fn print_resolution(output: Option<String>, value: String, name: String) { }; } fn resolve_from_csv_asset(name: String, value: String) -> Option<String> { let data = Constant::csv(format!("{}.csv", name).as_str()); let data = Constant::csv(&name); resolve_from_list_of_lists(value, data) } fn resolve_from_list_of_lists(value: String, data: Vec<Vec<String>>) -> Option<String> { Loading acorn-lib/src/util/mod.rs +11 −2 Original line number Diff line number Diff line Loading @@ -204,16 +204,25 @@ impl Constant { | Some(value) => String::from_utf8_lossy(value.data.as_ref()).into(), | None => { error!(file_name, "=> {} Import Constant asset", Label::fail()); unimplemented!() panic!("Unable to import {}", file_name) } } } pub fn get_last_values(file_name: &str) -> impl Iterator<Item = String> { Constant::csv(file_name) .into_iter() .map(|x| match x.last() { | Some(value) => value.to_string(), | None => "".to_string(), }) .filter(|x| !x.is_empty()) } pub fn read_lines(file_name: &str) -> Vec<String> { let data = Constant::from_asset(file_name); data.lines().map(String::from).collect() } pub fn csv(file_name: &str) -> Vec<Vec<String>> { Constant::read_lines(file_name) Constant::read_lines(format!("{}.csv", file_name).as_str()) .into_iter() .map(|x| x.split(",").map(String::from).collect()) .collect() Loading Loading
acorn-lib/assets/constants/accept.txt +1 −46 Original line number Diff line number Diff line ACORN AMD AOCL ASCR airflows? applications? bioeconomy Loading @@ -11,23 +7,15 @@ biofuels? biomass biomonitoring bioproducts? BLAS CBI CPUs? coproduct cyber [Cc]ybersecurity DOE deliverables? disable downscaled? drywell FAIR fluence GEARS GIS GPS GSHS GPUs? geometrical geoprocessing Loading @@ -36,58 +24,25 @@ geospatial geotag(ged)? glovebox(es)? graphene HPC HPE hackathons? IBM INSET IOTA IPs? IRI ISO JACC LLMs? LLVM Mantid MDNorm MKL MPI MRI misconfigurations? multimodal NERSC NOx operationalize OLCF ORNL organoiodides? parallel_for parallel_reduce Perlmutter PIPE POI QIS QSC RAJA REDC Raman regionalizations? reusability SANSR EDS SEM Situ SNS STAR socioeconomics? sorbents? spaceborne superfluidity telematics timeframes? TSUSG uncrewed No newline at end of file UAS USA XLOOP XPS No newline at end of file
acorn-lib/assets/constants/acronyms.csv +40 −42 Original line number Diff line number Diff line ACORN,Accessible Content Optimization for Research Needs AMD,Advanced Micro Devices Accessible Content Optimization for Research Needs,ACORN Advanced Micro Devices,AMD AOCL ASCR,Advanced Scientific Computing Research BLAS,Basic Linear Algebra Subprograms Advanced Scientific Computing Research,ASCR Basic Linear Algebra Subprograms,BLAS CBI CPU,Computer Processing Unit DOE,Department of Energy FAIR,Findable Accessible Interoperable and Reusable GEARS,Global Evaluation Analysis Research and Security GIS,Geographic Information System GPS,Global Positioning System GSHS,Geospatial Science and Human Security GPU,Graphics Processing Unit HPC,High Performance Computing HPE,Hewlett Packard Enterprise IBM,International Business Machines INSET,In-Pile Steady State Extreme Temperature IOTA,Iodine Off-gas Testing and Abatement IP,Internet Protocol Computer Processing Unit,CPU Findable Accessible Interoperable and Reusable,FAIR Global Evaluation Analysis Research and Security,GEARS Geographic Information System,GIS Global Positioning System,GPS Graphics Processing Unit,GPU High Performance Computing,HPC Hewlett Packard Enterprise,HPE Heating Ventilation and Air Conditioning,HVAC International Business Machines,IBM In-Pile Steady State Extreme Temperature,INSET Iodine Off-gas Testing and Abatement,IOTA Internet Protocol,IP IRI ISO,In Support Of JACC,Julia for ACCelerators LLM,Large Language Model LLVM,Low Level Virtual Machine MDNorm,Multi-Dimensional Normalization MKL,Math Kernel Library MPI,Message Passing Interface MRI,Magnetic Resonance Imaging NERSC,National Energy Research Scientific Computing Center NOx,Nitric Oxide and Nitrogen Dioxide OLCF,Oak Ridge Leadership Computing Facility ORNL,Oak Ridge National Laboratory PIPE,Parallel Integration and Processing Engine POI,Point of Interest In Support Of,ISO Julia for ACCelerators,JACC Large Language Model,LLM Low Level Virtual Machine,LLVM Multi-Dimensional Normalization,MDNorm Math Kernel Library,MKL Message Passing Interface,MPI Magnetic Resonance Imaging,MRI National Energy Research Scientific Computing Center,NERSC Nitric Oxide and Nitrogen Dioxide,NOx Oak Ridge Leadership Computing Facility,OLCF Parallel Integration and Processing Engine,PIPE Point of Interest,POI RAJA REDC,Radiochemical Engineering Development Center SANSR,Situational Awareness of Network System Roles EDS,Energy Dispersive X-ray Spectroscopy SEM,Scanning Electron Microscopy SNS,Spallation Neutron Source Radiochemical Engineering Development Center,REDC Situational Awareness of Network System Roles,SANSR Energy Dispersive X-ray Spectroscopy,EDS Scanning Electron Microscopy,SEM Spallation Neutron Source,SNS STAR TSEA,Transport Security and Analysis UAS,Unmanned Aerial System USA,United States of America XLOOP,Extreme-Scale Experiment-in-the-Loop XPS,X-ray Photoelectron Spectroscopy No newline at end of file Transport Security and Analysis,TSEA Unmanned Aerial System,UAS United States of America,USA Extreme-Scale Experiment-in-the-Loop,XLOOP X-ray Photoelectron Spectroscopy,XPS No newline at end of file
acorn-lib/src/analyzer/mod.rs +6 −2 Original line number Diff line number Diff line Loading @@ -228,8 +228,12 @@ impl StaticAnalyzer for Vale { } match File::create(format!("{}/accept.txt", parent)) { | Ok(mut file) => { // TODO: Concatenate acronyms (acronyms, sponsors, partners, organizations) to accept file let content = Constant::read_lines("accept.txt").join("\n"); // TODO: Concatenate organization alternative names to accept file let acronyms = Constant::get_last_values("acronyms"); let partners = Constant::get_last_values("partners"); let sponsors = Constant::get_last_values("sponsors"); let words = Constant::read_lines("accept.txt"); let content = acronyms.chain(partners).chain(sponsors).chain(words).collect::<Vec<String>>().join("\n"); file.write_all(content.as_bytes()).expect("Unable to write to accept.txt"); } | Err(why) => panic!("=> {} Create accept.txt - {}", Label::fail(), why), Loading
acorn-lib/src/schema/mod.rs +1 −1 Original line number Diff line number Diff line Loading @@ -832,7 +832,7 @@ fn print_resolution(output: Option<String>, value: String, name: String) { }; } fn resolve_from_csv_asset(name: String, value: String) -> Option<String> { let data = Constant::csv(format!("{}.csv", name).as_str()); let data = Constant::csv(&name); resolve_from_list_of_lists(value, data) } fn resolve_from_list_of_lists(value: String, data: Vec<Vec<String>>) -> Option<String> { Loading
acorn-lib/src/util/mod.rs +11 −2 Original line number Diff line number Diff line Loading @@ -204,16 +204,25 @@ impl Constant { | Some(value) => String::from_utf8_lossy(value.data.as_ref()).into(), | None => { error!(file_name, "=> {} Import Constant asset", Label::fail()); unimplemented!() panic!("Unable to import {}", file_name) } } } pub fn get_last_values(file_name: &str) -> impl Iterator<Item = String> { Constant::csv(file_name) .into_iter() .map(|x| match x.last() { | Some(value) => value.to_string(), | None => "".to_string(), }) .filter(|x| !x.is_empty()) } pub fn read_lines(file_name: &str) -> Vec<String> { let data = Constant::from_asset(file_name); data.lines().map(String::from).collect() } pub fn csv(file_name: &str) -> Vec<Vec<String>> { Constant::read_lines(file_name) Constant::read_lines(format!("{}.csv", file_name).as_str()) .into_iter() .map(|x| x.split(",").map(String::from).collect()) .collect() Loading