A computer program product for implementing a mixed reality apparatus to automatically and dynamically generate output based on source code, wherein the computer program product comprises at least one non-transitory computer-readable medium having computer-readable program code portions embodied therein, the computer-readable program code portions which when executed by a processing device are configured to cause the processor to perform the following operations:
- identify at least one source code statement;
- apply the at least one source code statement to a source code output machine learning model and train the source code output machine learning model with the at least one source code statement;
- generate at least one input data for the at least one source code statement, wherein the at least one input data is associated with an at least one expected output data;
- apply the at least one input data to the source code output machine learning model;
- output, by the source code output machine learning model, the at least one sample output data associated with the at least one input data applied to the source code output machine learning model;
- compare the at least one sample output data and the at least one expected output data and determine whether the at least one source code statement is valid,
- wherein, in an instance where the at least one sample output data does not match the at least one expected output data, determine the at least one source code statement is invalid, or
- wherein, in an instance where the at least one sample output data does match the at least one expected output data, determine the at least one source code statement is valid;
- transmit the at least one sample output data to a mixed reality apparatus as a secure rendering, wherein the secure rendering comprising the at least one sample output data at the mixed reality apparatus is based on a user identifier associated with the mixed reality apparatus comprising a security attribute that identifies a security clearance of a user of the mixed reality apparatus, and wherein the secure rendering of the at least one sample output data comprises:
- triggering, based on the security clearance and based on the validation of the at least one source code statement a, the secure rendering at the mixed reality apparatus,
- wherein, in an instance where the security clearance allows a viewing of the at least one source code statement for the user and the at least one source code statement is determined to be invalid, the secure rendering shows the at least one source code statement, the at least one input data, and the at least one sample output data at the mixed reality apparatus, or
- wherein, in an instance where the security clearance only allows a viewing of the at least one sample output data for the user and the at least one source code statement is valid, the at least one input data and the at least one sample output data at the mixed reality apparatus;
- replace, based on the validity of the at least one source code statement, the at least one source code statement with the source code output machine learning model;
- identify secondary input data;
- apply, based on the replacement of the at least one source code statement with the source code output machine learning model, the secondary input data to the source code machine learning model;
- and
- generate, in response to the application of the secondary input data, a secondary output data from the source code output machine learning model.