package chobit;
public class UwU {
/*
* l -> w r -> w n -> ny ove -> uv ! -> UwU
*/
public String convertToUwU(String str1) {
String uwu = str1;
uwu = uwu.replace("l", "w");
uwu = uwu.replace("r", "w");
uwu = uwu.replace("no", "nyo");
uwu = uwu.replace("ne", "nye");
uwu = uwu.replace("ni", "nyi");
uwu = uwu.replace("nu", "nyu");
uwu = uwu.replace("na", "nya");
uwu = uwu.replace("ove", "uv");
uwu = uwu.replace("!", "^w^");
return uwu;
}
}
Below is partial code of a unit testing generator I developed where data is collected from a database or is generated randomly. That library will be integrated with the AI I'm developing. All one need do is select the assembly file which is the dll of class UwU and the code will execute. The process is called Reflection and you can dynamically on the fly compile code or use existing libraries where you just reference the location of it. So Symbolic AI's wouldn't have a problem integrating this process but with an NN there are some issues.
/// <summary>
/// creates objects with parameters in their constructors
/// </summary>
/// <param name="fileName"></param>
/// <param name="assemblyLocation"></param>
/// <returns></returns>
private static List<dynamic> CreateAndInitializeProperties(ViableMapAndData aMap, string assemblyLocation)
{
Assembly anAssembly = Assembly.LoadFrom(assemblyLocation);
return CreateAndInitializeProperties(aMap, anAssembly);
}
/// <summary>
/// creates objects without parameters in their constructors
/// </summary>
/// <param name="fileName"></param>
/// <param name="assemblyLocation"></param>
/// <returns></returns>
public static List<dynamic> CreateAndInitializePropertiesWoParams(string fileName, string assemblyLocation)
{
Assembly anAssembly = Assembly.LoadFrom(assemblyLocation);
return CreateAndInitializePropertiesWoParams(fileName, anAssembly);
}
/// <summary>
/// creates objects with or wihtout parameters in their constructors
/// </summary>
/// <param name="fileName"></param>
/// <param name="anAssembly"></param>
private static List<dynamic> CreateAndInitializeProperties(ViableMapAndData aMap, Assembly anAssembly)
{
List<dynamic> results = new List<dynamic>();
List<Object[]> parameterList = ParameterExtruder.BuildParameterArrayList(aMap, ".ctor");
if (parameterList.Count > 0)
{
foreach (Object[] parameters in parameterList)
results.AddRange(CreateAndInitializeProperties(aMap, anAssembly, parameters));
}
else
results.AddRange(CreateAndInitializeProperties(aMap, anAssembly, null));
return results;
}
/// <summary>
/// creates objects without parameters in their constructors
/// </summary>
/// <param name="fileName"></param>
/// <param name="anAssembly"></param>
/// <returns></returns>
private static List<dynamic> CreateAndInitializeProperties(ViableMapAndData aMap, Assembly anAssembly, object[] parameters)
{
List<dynamic> result = new List<dynamic>();
var propertyStore = aMap.StoredData.Where(x => x.MapType.Equals(DataMapType.PropertyColumnMap)).FirstOrDefault();
foreach (DataRow aRow in propertyStore.ActualData.Rows)
{
dynamic aObject = InI.CreateObjectFromAssembly(anAssembly, aMap.TheMap.ClassName, parameters);
InI.InitializeProperties(aObject, aMap.TheMap, aRow);
result.Add(aObject);
}
return result;
}
(https://i.imgur.com/JzRpNFP.png) (https://i.imgur.com/JzRpNFP.png)