import os

save_path = "buchwald_train"
dir_path = "buchwald"
file_list = os.listdir(dir_path)
os.makedirs(save_path, exist_ok=True)

for file in file_list:
    if file.endswith(".csv"):










"""
instruction,input,output,history
"Here is a chemical reaction. Reactants are: CCc1cccc(CC)c1.Clc1ccc2ncccc2c1, Cc1ccc2c(cnn2C2CCCCO2)c1B(O)O. Product is: Cc1ccc2c(cnn2C2CCCCO2)c1-c1ccc2ncccc2c1. Reaction type is Suzuki Miyaura. The reaction conditions of this reaction are: Solvent: CC#N.O. Catalyst: CC(=O)O~CC(=O)O~[Pd]. Ligand: CC(C)(C)P(C(C)(C)C)C(C)(C)C. Base: [Na+].[OH-]. Functional groups information: Reactant: [CCc1cccc(CC)c1.Clc1ccc2ncccc2c1]. Functional Group: Chlorine([R]Cl). Count: 1. Reactant: [Cc1ccc2c(cnn2C2CCCCO2)c1B(O)O]. Functional Group: Alcohol([R]O). Count: 2. Reactant: [Cc1ccc2c(cnn2C2CCCCO2)c1B(O)O]. Functional Group: Ether([R]O[R]). Count: 1. Reactant: [Cc1ccc2c(cnn2C2CCCCO2)c1B(O)O]. Functional Group: BoricAcid([R]B(O)O). Count: 1. Product: [Cc1ccc2c(cnn2C2CCCCO2)c1-c1ccc2ncccc2c1]. Functional Group: Alcohol([R]O). Count: 2. Product: [Cc1ccc2c(cnn2C2CCCCO2)c1-c1ccc2ncccc2c1]. Functional Group: Ether([R]O[R]). Count: 1. New Functional Groups: None. Lost Functional Groups: Functional Group: Chlorine([R]Cl). Count: 1. Lost: 1. Functional Group: BoricAcid([R]B(O)O). Count: 1. Lost: 1. What is the yield of this reaction?",,4.76410921845962,[]
"""