{"source_group": "csharp", "source": "openbmb/UltraData-Stack-v3-L2/csharp", "domain": "github.com", "language": "csharp", "url": "https://github.com/KSP-RO/ProceduralSolidsLibrary/blob/8d2dbcdeaea683f7183fbd092721ba6d7cb2d905/Source/HelperClasses.cs", "id": "csharp-0-f1dc6be250fc53a5e457c6f7c1f7f40a", "text": "using UnityEngine;\n\nnamespace ProceduralSolidsLibrary\n{\n\tpublic class PropellantConfig : IConfigNode\n\t{\n\t\tpublic const string nodeName = \"SRBLIB_PROPELLANT_DEFINITION\";\n\t\tprivate const float R = 8.31446261815324f; // J / K mol\n\n\t\t[Persistent] public string name;\n\t\t[Persistent] public float burnRateCoeff;\n\t\t[Persistent] public float burnRateExponent;\n\t\t[Persistent] public float heatCapacityRatio;\n\t\t[Persistent] public float density;\n\t\t[Persistent] public float characVel;\n\n\t\t// public float CharacVel => Mathf.Sqrt(heatCapacityRatio * R * combustionTemp / molarMass) / (heatCapacityRatio * Mathf.Sqrt(Mathf.Pow(2 / (heatCapacityRatio + 1), (heatCapacityRatio + 1)/(heatCapacityRatio - 1))));\n\n\t\t/// \n\t\t/// is in kg / mol\n\t\t/// is in kg / m^3\n\t\t/// \n\t\tpublic PropellantConfig(float burnRateCoeff, float burnRateExponent, float heatCapacityRatio, float density, float characVel)//, float combustionTemp, float heatCapacityRatio, float molarMass)\n\t\t{\n\t\t\tthis.burnRateCoeff = burnRateCoeff;\n\t\t\tthis.burnRateExponent = burnRateExponent;\n\t\t\tthis.heatCapacityRatio = heatCapacityRatio;\n\t\t\tthis.density = density;\n\t\t\tthis.characVel = characVel;\n\t\t\t// this.combustionTemp = combustionTemp;\n\t\t\t// this.molarMass = molarMass;\n\t\t}\n\t\tpublic PropellantConfig() {}\n\t\tpublic PropellantConfig(ConfigNode node)\n\t\t{\n\t\t\tLoad(node);\n\t\t}\n\n\t\tpublic void Load(ConfigNode node)\n\t\t{\n\t\t\tif (! (node.name.Equals(nodeName) && node.HasValue(\"name\")))\n\t\t\t\treturn;\n\n\t\t\tConfigNode.LoadObjectFromConfig(this, node);\n\t\t}\n\n\t\tpublic void Save(ConfigNode node)\n\t\t{\n\t\t\tif (name == null) return;\n\t\t\tConfigNode.CreateConfigFromObject(this, node);\n\t\t}\n\t}\n\n\tpublic class GrainGeometryConfig : IConfigNode\n\t{\n\t\tpublic const string nodeName = \"SRBLIB_GRAINGEOMETRY_DEFINITION\";\n\t\t[Persistent] public string name;\n\t\t[Persistent] public FloatCurve thrustCurve;\n\t\t[Persistent] public float burnAreaScale;\n\t\t[Persistent] public float propellantFraction;\n\n\t\tpublic GrainGeometryConfig() {}\n\t\tpublic GrainGeometryConfig(ConfigNode node)\n\t\t{\n\t\t\tLoad(node);\n\t\t}\n\n\t\tpublic void Load(ConfigNode node)\n\t\t{\n\t\t\tif (! (node.name.Equals(nodeName) && node.HasValue(\"name\")))\n\t\t\t\treturn;\n\n\t\t\tConfigNode.LoadObjectFromConfig(this, node);\n\t\t}\n\n\t\tpublic void Save(ConfigNode node)\n\t\t{\n\t\t\tif (name == null) return;\n\t\t\tConfigNode.CreateConfigFromObject(this, node);\n\t\t}\n\t}\n\n\tpublic class CasingMaterialConfig : IConfigNode\n\t{\n\t\tpublic const string nodeName = \"SRBLIB_CASINGMATERIAL_DEFINITION\";\n\n\t\t[Persistent] public string name;\n\t\t[Persistent] public float density;\n\t\t[Persistent] public float tensileStrength;\n\t\t// [Persistent] public float corrosionSafety = 0f;\n\t\t[Persistent] public float safetyFactor = 1f;\n\t\t[Persistent] public float weldEff = 1f;\n\t\t[Persistent] public float maxThicknessFraction = 1f;\n\n\t\tpublic CasingMaterialConfig(float density, float tensileStrength, float safetyFactor = 0f, float weldEff = 1f, float maxThicknessFraction = 1f)\n\t\t{\n\t\t\tthis.density = density;\n\t\t\tthis.tensileStrength = tensileStrength;\n\t\t\tthis.safetyFactor = safetyFactor;\n\t\t\tthis.weldEff = weldEff;\n\t\t\tthis.maxThicknessFraction = maxThicknessFraction;\n\t\t}\n\t\tpublic CasingMaterialConfig() {}\n\t\tpublic CasingMaterialConfig(ConfigNode node)\n\t\t{\n\t\t\tLoad(node);\n\t\t}\n\n\t\tpublic void Load(ConfigNode node)\n\t\t{\n\t\t\tif (! (node.name.Equals(nodeName) && node.HasValue(\"name\")))\n\t\t\t\treturn;\n\n\t\t\tConfigNode.LoadObjectFromConfig(this, node);\n\t\t}\n\n\t\tpublic void Save(ConfigNode node)\n\t\t{\n\t\t\tif (name == null) return;\n\t\t\tConfigNode.CreateConfigFromObject(this, node);\n\t\t}\n\t}\n\n\tpublic class NozzleConfig : IConfigNode\n\t{\n\t\tpublic const string nodeName = \"SRBLIB_NOZZLE_DEFINITION\";\n\n\t\t[Persistent] public string name;\n\t\t[Persistent] public float nozzleCoeff; // Is this needed with atmo curve?\n\t\t[Persistent] public float designPressurePa;\n\t\t[Persistent] public FloatCurve atmosphereCurve; // Currently normalized to 1 and nozzleCoeff is used to scale\n\t\t[Persistent] public float gimbalRange = 0f;\n\n\t\tpublic NozzleConfig() { nozzleCoeff = 1f; }\n\t\tpublic NozzleConfig(float nozzleCoeff)\n\t\t{\n\t\t\tthis.nozzleCoeff = nozzleCoeff;\n\t\t}\n\t\tpublic NozzleConfig(ConfigNode node)\n\t\t{\n\t\t\tLoad(node);\n\t\t}\n\n\t\tpublic void Load(ConfigNode node)\n\t\t{\n\t\t\tif (! (node.name.Equals(nodeName) && node.HasValue(\"name\")))\n\t\t\t\treturn;\n\n\t\t\tConfigNode.LoadObjectFromConfig(this, node);\n\t\t}\n\n\t\tpublic void Save(ConfigNode node)\n\t\t{\n\t\t\tif (name == null) return;\n\t\t\tConfigNode.CreateConfigFromObject(this, node);\n\t\t}\n\t}\n}\n", "text_preview": "using UnityEngine; namespace ProceduralSolidsLibrary { public class PropellantConfig : IConfigNode { public const string nodeName = \"SRBLIB_PROPELLANT_DEFINITION\"; private const float R = 8.31446261815324f; // J / K mol [Persistent] public ", "input_sha256": "c99aa684c9de408f160bb9f1e30544611156bf42d408a6aa72c561edb6bf687d", "text_sha256": "f1dc6be250fc53a5e457c6f7c1f7f40a5d47da3da9dcc3c19efb8108bf064f00", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 2001, "input_policy": "text-and-optional-url-v1", "label_policy_version": 12, "requested_model": "decision-models/baseten-mammoth-27b-latest", "backend": "baseten", "endpoint": "https://inference.baseten.co/v1/systemone", "status": "ok", "training_eligible": true, "label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "candidate_label": null, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": null}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8707468421553173, "noise_severity": 0.08244394045144551, "missing_content_severity": 0.06664607865612182, "factual_density": 3.070680664219629, "pretraining_utility": 0.13060998988509648, "math_density": 1.1397402472143274, "code_density": 3.826837288018215, "reasoning_density": 0.08470987488944906, "education_level": 2.4237438044706816, "creative_writing_quality": -0.284950012006776}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "NONE"}, "review_reasons": [], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.03138427508596109, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9947187340522543, "secondary": 0.949795172022018, "tertiary": 0.9825439808073687, "structured_records": 0.07284801779414735, "procedural_steps": 0.0015957200043503804, "worked_solution": 0.0005105293871812965, "contextual_dialogue": 8.109815190005002e-06, "content_quality": 0.5408374713815158, "noise_severity": 0.9312967162904621, "missing_content_severity": 0.9444616011198985, "factual_density": 0.5247337514801237, "pretraining_utility": 0.502686075247174, "math_density": 0.5455816228131987, "code_density": 0.855697740015179, "reasoning_density": 0.9294084375921258, "education_level": 0.5301542292286292, "creative_writing_quality": 0.9996679292502366, "primary_topic": 0.901416601099028, "secondary_topic": 0.5064204917820075}, "probability_margin": {"primary": 0.9917580346074536, "secondary": 0.9253252288061317, "tertiary": 0.9760728752606145, "education_level": 0.2997073196186421, "creative_writing_quality": 0.9996186977484145, "primary_topic": 0.857774001579827, "secondary_topic": 0.2899150217669151}, "raw_probabilities": {"primary": {"Academic Writing": 4.404905227289045e-05, "Content Listing": 2.7100190689650385e-05, "Creative Writing": 2.173547854418749e-05, "Customer Support Page": 9.054579755094547e-06, "Q&A Forum": 1.0355916897982727e-05, "Discussion Thread": 7.365004288365455e-06, "Comment Section": 1.085043432530113e-05, "Missing Content": 2.5954785557236972e-05, "Knowledge Article": 7.590042180280262e-05, "Legal Notices": 2.4589684341033956e-05, "News Article": 3.586322385109786e-06, "Organizational Announcement": 1.0264415873134844e-05, "Nonfiction Writing": 1.0200216247619157e-05, "Organizational About Page": 1.1559990767806966e-05, "Personal About Page": 8.665273272258598e-06, "Personal Blog": 6.712448653977742e-06, "Product Page": 9.946971753674418e-06, "Spam / Ads": 7.673196810925836e-06, "Structured Data": 0.0031807521926234678, "Technical Writing": 0.9949387868000771, "Transcript / Interview": 1.2373293100279927e-05, "Tutorial / How-To Guide": 9.028862390056707e-05, "User Reviews": 5.975635233064155e-06, "Other / Unknown": 0.0014462590708263776}, "secondary": {"Academic Writing": 0.0004655400680460134, "Content Listing": 0.0003289983089873585, "Creative Writing": 0.00033340192302298973, "Customer Support Page": 0.0001410539739423575, "Q&A Forum": 0.0001326064240407635, "Discussion Thread": 0.00010597557464092438, "Comment Section": 0.000250297666024767, "Missing Content": 0.0008334424343359509, "Knowledge Article": 0.0029966910044511184, "Legal Notices": 0.00034093127919362134, "News Article": 0.00011608549846739175, "Organizational Announcement": 0.00013797022084681494, "Nonfiction Writing": 0.00014612708982403866, "Organizational About Page": 0.00015979737024468795, "Personal About Page": 0.0001356969255883433, "Personal Blog": 0.00012491762458183907, "Product Page": 0.00010662524051305911, "Spam / Ads": 0.00013384512809892896, "Structured Data": 0.02656181104830219, "Technical Writing": 0.013679891672334202, "Transcript / Interview": 0.00018961717916193, "Tutorial / How-To Guide": 0.0006285456409331605, "User Reviews": 6.3090849983669e-05, "NONE": 0.9518870398544339}, "tertiary": {"Academic Writing": 0.0001599308413891018, "Content Listing": 0.00011895908656659716, "Creative Writing": 0.00011403649171928151, "Customer Support Page": 4.932007910760213e-05, "Q&A Forum": 4.483750314215407e-05, "Discussion Thread": 3.720821542553001e-05, "Comment Section": 0.00014737074847193473, "Missing Content": 0.00045358507506462477, "Knowledge Article": 0.0009857644931824843, "Legal Notices": 0.00014936088375654933, "News Article": 4.007593334673249e-05, "Organizational Announcement": 4.584455636473488e-05, "Nonfiction Writing": 5.32092278385534e-05, "Organizational About Page": 7.281396162293664e-05, "Personal About Page": 4.170165721399958e-05, "Personal Blog": 4.413122871982358e-05, "Product Page": 4.31151793661985e-05, "Spam / Ads": 4.556968051387457e-05, "Structured Data": 0.0071984396797804655, "Technical Writing": 0.006439840298687946, "Transcript / Interview": 5.712982730317813e-05, "Tutorial / How-To Guide": 0.00036249571031040387, "User Reviews": 2.3944700710373862e-05, "NONE": 0.983271314940395}, "structured_records": {"false": 0.9271519822058527, "true": 0.07284801779414735}, "procedural_steps": {"false": 0.9984042799956496, "true": 0.0015957200043503804}, "worked_solution": {"false": 0.9994894706128187, "true": 0.0005105293871812965}, "contextual_dialogue": {"false": 0.9999918901848099, "true": 8.109815190005002e-06}, "content_quality": {"-2": 0.006085927715099867, "-1": 0.022732051326181904, "0": 0.27640221029576845, "1": 0.4839088724142007, "2": 0.2108709382487492}, "noise_severity": {"0": 0.9261473131799293, "1": 0.0678418901455667, "2": 0.0042374501049909155, "3": 0.0009662361821546808, "4": 0.0008071103873582299}, "missing_content_severity": {"0": 0.9444135717157557, "1": 0.047457739117833596, "2": 0.005772049028813011, "3": 0.0017823190697288042, "4": 0.0005743210678689487}, "factual_density": {"0": 0.006452551137992667, "1": 0.023038018900071892, "2": 0.18438572578798965, "3": 0.46562362295220583, "4": 0.32050008122174006}, "pretraining_utility": {"-2": 0.014476784592620062, "-1": 0.20412979072390727, "0": 0.4694042696455865, "1": 0.26028496028152814, "2": 0.05170419475635785}, "math_density": {"0": 0.20278090270491722, "1": 0.6003577495899719, "2": 0.10730531609885174, "3": 0.03345226099838478, "4": 0.056103770607874394}, "code_density": {"0": 0.00035000788033425596, "1": 0.0007201358348542065, "2": 0.02486788229706458, "3": 0.1198665083617565, "4": 0.8541954656259905}, "reasoning_density": {"0": 0.9407699459559209, "1": 0.03794330265340163, "2": 0.018285994327457995, "3": 0.001808444671746161, "4": 0.001192312391473235}, "education_level": {"none": 0.0017752732627471005, "0": 0.0016905368281350482, "1": 0.013672503094894869, "2": 0.6084618576905243, "3": 0.3087545380718822, "4": 0.06564529105181639}, "creative_writing_quality": {"not_applicable": 0.9997232743751971, "-2": 4.3136482360290865e-05, "-1": 7.049336014538167e-05, "0": 0.00010457662678265854, "1": 3.912495627379485e-05, "2": 1.939419924097166e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00012435881042637922, "Art & Design": 0.0002527574996384546, "Law & Crime": 0.00024638196258750975, "Education & Careers": 0.00013193813776949726, "Entertainment & Media": 0.0005973958226254134, "Fashion & Beauty": 0.00014575787082569497, "Business, Economics & Finance": 0.00015637432469599836, "Food & Dining": 0.00012574637986952395, "Games & Gaming": 0.0364879641114822, "Electronics & Hardware": 0.0003020213580689674, "Health, Healthcare & Wellness": 0.00016095106017133785, "History & Geography": 0.00019920325977899024, "Home, Pets & Hobbies": 0.00020709693819134147, "Industry & Production": 0.0008678254629730877, "Language, Literature & Philosophy": 0.0001140167277129754, "Politics & Government": 7.512799387737648e-05, "Religion & Spirituality": 0.0001274848515569721, "Science, Mathematics & Engineering": 0.04743426870769991, "Relationships & Community": 5.8642427825307684e-05, "Software Usage & Applications": 0.00038588083991846124, "Programming & Software Engineering": 0.9052082702875269, "Sports & Fitness": 0.0002573002614302415, "Vehicles & Transportation": 0.003989344431854531, "Travel & Tourism": 0.00016665394399545275, "Other / Uncovered Subject": 0.0019089393450494642, "Unknown / Insufficient Content": 0.00026829718244790295}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010817372285173506, "Art & Design": 0.001047139650606717, "Law & Crime": 0.0007964152209742634, "Education & Careers": 0.0004840622540510056, "Entertainment & Media": 0.003321342913768558, "Fashion & Beauty": 0.0004343192223380054, "Business, Economics & Finance": 0.0006828015939043689, "Food & Dining": 0.0004528838139052313, "Games & Gaming": 0.13943313802237012, "Electronics & Hardware": 0.0009444924238581631, "Health, Healthcare & Wellness": 0.0005727123008109447, "History & Geography": 0.0005643703819820979, "Home, Pets & Hobbies": 0.0006099631112201716, "Industry & Production": 0.0012274287787175293, "Language, Literature & Philosophy": 0.00029657398675851854, "Politics & Government": 0.0002965983115655078, "Religion & Spirituality": 0.0005404087041189578, "Science, Mathematics & Engineering": 0.23548929725424603, "Relationships & Community": 0.00020238244188339752, "Software Usage & Applications": 0.0007438447606094839, "Programming & Software Engineering": 0.07274664937811998, "Sports & Fitness": 0.0007310516168019221, "Vehicles & Transportation": 0.00948361370866585, "Travel & Tourism": 0.0006395297578621008, "Other / Uncovered Subject": 0.0017729241411826593, "NONE": 0.5254043190211611}}, "probabilities": {"primary": {"Academic Writing": 4.4049052272890455e-05, "Content Listing": 2.7100190689650388e-05, "Creative Writing": 2.1735478544187493e-05, "Customer Support Page": 9.054579755094548e-06, "Q&A Forum": 1.0355916897982728e-05, "Discussion Thread": 7.365004288365456e-06, "Comment Section": 1.0850434325301131e-05, "Missing Content": 2.5954785557236975e-05, "Knowledge Article": 7.590042180280264e-05, "Legal Notices": 2.458968434103396e-05, "News Article": 3.5863223851097866e-06, "Organizational Announcement": 1.0264415873134846e-05, "Nonfiction Writing": 1.0200216247619159e-05, "Organizational About Page": 1.1559990767806968e-05, "Personal About Page": 8.6652732722586e-06, "Personal Blog": 6.7124486539777425e-06, "Product Page": 9.94697175367442e-06, "Spam / Ads": 7.673196810925837e-06, "Structured Data": 0.003180752192623468, "Technical Writing": 0.9949387868000772, "Transcript / Interview": 1.2373293100279929e-05, "Tutorial / How-To Guide": 9.028862390056709e-05, "User Reviews": 5.975635233064156e-06, "Other / Unknown": 0.0014462590708263778}, "secondary": {"Academic Writing": 0.0004655400680460134, "Content Listing": 0.0003289983089873585, "Creative Writing": 0.00033340192302298973, "Customer Support Page": 0.0001410539739423575, "Q&A Forum": 0.0001326064240407635, "Discussion Thread": 0.00010597557464092438, "Comment Section": 0.000250297666024767, "Missing Content": 0.0008334424343359509, "Knowledge Article": 0.0029966910044511184, "Legal Notices": 0.00034093127919362134, "News Article": 0.00011608549846739175, "Organizational Announcement": 0.00013797022084681494, "Nonfiction Writing": 0.00014612708982403866, "Organizational About Page": 0.00015979737024468795, "Personal About Page": 0.0001356969255883433, "Personal Blog": 0.00012491762458183907, "Product Page": 0.00010662524051305911, "Spam / Ads": 0.00013384512809892896, "Structured Data": 0.02656181104830219, "Technical Writing": 0.013679891672334202, "Transcript / Interview": 0.00018961717916193, "Tutorial / How-To Guide": 0.0006285456409331605, "User Reviews": 6.3090849983669e-05, "NONE": 0.9518870398544339}, "tertiary": {"Academic Writing": 0.0001599308413891018, "Content Listing": 0.00011895908656659716, "Creative Writing": 0.00011403649171928151, "Customer Support Page": 4.932007910760213e-05, "Q&A Forum": 4.483750314215407e-05, "Discussion Thread": 3.720821542553001e-05, "Comment Section": 0.00014737074847193473, "Missing Content": 0.00045358507506462477, "Knowledge Article": 0.0009857644931824843, "Legal Notices": 0.00014936088375654933, "News Article": 4.007593334673249e-05, "Organizational Announcement": 4.584455636473488e-05, "Nonfiction Writing": 5.32092278385534e-05, "Organizational About Page": 7.281396162293664e-05, "Personal About Page": 4.170165721399958e-05, "Personal Blog": 4.413122871982358e-05, "Product Page": 4.31151793661985e-05, "Spam / Ads": 4.556968051387457e-05, "Structured Data": 0.0071984396797804655, "Technical Writing": 0.006439840298687946, "Transcript / Interview": 5.712982730317813e-05, "Tutorial / How-To Guide": 0.00036249571031040387, "User Reviews": 2.3944700710373862e-05, "NONE": 0.983271314940395}, "structured_records": {"false": 0.9271519822058527, "true": 0.07284801779414735}, "procedural_steps": {"false": 0.9984042799956496, "true": 0.0015957200043503804}, "worked_solution": {"false": 0.9994894706128187, "true": 0.0005105293871812965}, "contextual_dialogue": {"false": 0.9999918901848099, "true": 8.109815190005002e-06}, "content_quality": {"-2": 0.006085927715099865, "-1": 0.0227320513261819, "0": 0.2764022102957684, "1": 0.4839088724142006, "2": 0.21087093824874914}, "noise_severity": {"0": 0.9261473131799295, "1": 0.06784189014556671, "2": 0.004237450104990916, "3": 0.000966236182154681, "4": 0.0008071103873582301}, "missing_content_severity": {"0": 0.9444135717157557, "1": 0.047457739117833596, "2": 0.005772049028813011, "3": 0.0017823190697288042, "4": 0.0005743210678689487}, "factual_density": {"0": 0.006452551137992667, "1": 0.023038018900071892, "2": 0.18438572578798965, "3": 0.46562362295220583, "4": 0.32050008122174006}, "pretraining_utility": {"-2": 0.014476784592620064, "-1": 0.2041297907239073, "0": 0.46940426964558657, "1": 0.2602849602815282, "2": 0.05170419475635786}, "math_density": {"0": 0.20278090270491722, "1": 0.6003577495899719, "2": 0.10730531609885174, "3": 0.03345226099838478, "4": 0.056103770607874394}, "code_density": {"0": 0.00035000788033425596, "1": 0.0007201358348542065, "2": 0.02486788229706458, "3": 0.1198665083617565, "4": 0.8541954656259905}, "reasoning_density": {"0": 0.940769945955921, "1": 0.03794330265340164, "2": 0.018285994327457998, "3": 0.0018084446717461613, "4": 0.0011923123914732352}, "education_level": {"none": 0.0017752732627471007, "0": 0.0016905368281350485, "1": 0.01367250309489487, "2": 0.6084618576905244, "3": 0.30875453807188225, "4": 0.0656452910518164}, "creative_writing_quality": {"not_applicable": 0.9997232743751969, "-2": 4.313648236029086e-05, "-1": 7.049336014538166e-05, "0": 0.00010457662678265851, "1": 3.9124956273794844e-05, "2": 1.9394199240971656e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00012435881042637925, "Art & Design": 0.0002527574996384547, "Law & Crime": 0.0002463819625875098, "Education & Careers": 0.0001319381377694973, "Entertainment & Media": 0.0005973958226254136, "Fashion & Beauty": 0.000145757870825695, "Business, Economics & Finance": 0.0001563743246959984, "Food & Dining": 0.00012574637986952398, "Games & Gaming": 0.03648796411148221, "Electronics & Hardware": 0.00030202135806896746, "Health, Healthcare & Wellness": 0.00016095106017133788, "History & Geography": 0.00019920325977899027, "Home, Pets & Hobbies": 0.0002070969381913415, "Industry & Production": 0.0008678254629730878, "Language, Literature & Philosophy": 0.00011401672771297541, "Politics & Government": 7.512799387737649e-05, "Religion & Spirituality": 0.00012748485155697213, "Science, Mathematics & Engineering": 0.047434268707699914, "Relationships & Community": 5.864242782530769e-05, "Software Usage & Applications": 0.0003858808399184613, "Programming & Software Engineering": 0.905208270287527, "Sports & Fitness": 0.00025730026143024157, "Vehicles & Transportation": 0.003989344431854532, "Travel & Tourism": 0.00016665394399545278, "Other / Uncovered Subject": 0.0019089393450494644, "Unknown / Insufficient Content": 0.000268297182447903}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010817372285173506, "Art & Design": 0.001047139650606717, "Law & Crime": 0.0007964152209742634, "Education & Careers": 0.0004840622540510056, "Entertainment & Media": 0.003321342913768558, "Fashion & Beauty": 0.0004343192223380054, "Business, Economics & Finance": 0.0006828015939043689, "Food & Dining": 0.0004528838139052313, "Games & Gaming": 0.13943313802237012, "Electronics & Hardware": 0.0009444924238581631, "Health, Healthcare & Wellness": 0.0005727123008109447, "History & Geography": 0.0005643703819820979, "Home, Pets & Hobbies": 0.0006099631112201716, "Industry & Production": 0.0012274287787175293, "Language, Literature & Philosophy": 0.00029657398675851854, "Politics & Government": 0.0002965983115655078, "Religion & Spirituality": 0.0005404087041189578, "Science, Mathematics & Engineering": 0.23548929725424603, "Relationships & Community": 0.00020238244188339752, "Software Usage & Applications": 0.0007438447606094839, "Programming & Software Engineering": 0.07274664937811998, "Sports & Fitness": 0.0007310516168019221, "Vehicles & Transportation": 0.00948361370866585, "Travel & Tourism": 0.0006395297578621008, "Other / Uncovered Subject": 0.0017729241411826593, "NONE": 0.5254043190211611}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "structured_records": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "procedural_steps": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "worked_solution": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "contextual_dialogue": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "content_quality": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9856, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9856, "cached_share": null, "cache_discount_reported": null, "reported_cost_usd": null}, "response_metadata": {"model": "decision-models/baseten-mammoth-27b-latest"}, "scored_at_utc": "2026-10-25T18:29:05.084192+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "fab28238-f83e-44bf-a29b-fb616f56ca90", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ee38ab69556cb8e51a7093efe2ce46612ed07a39cb4cdd9ced26e7be92c8de0f", "source_metadata": {"uuid": "fab28238-f83e-44bf-a29b-fb616f56ca90", "repo_name": "KSP-RO/ProceduralSolidsLibrary", "relative_path": "Source/HelperClasses.cs", "category": "CONFIG", "algo_rel_score": 0.6983113884925842, "quality_score": 5.879278659820557, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 7, "repo_created_at": "2022-08-06T19:27:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8f1c776bf306276d3f2db9966d1e8b24214b4062", "size_bytes": 4525, "file_timestamp": 1687670648, "language": "c#", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8d2dbcdeaea683f7183fbd092721ba6d7cb2d905"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 7, "repo_created_at": "2022-08-06T19:27:24.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8f1c776bf306276d3f2db9966d1e8b24214b4062", "size_bytes": 4525, "file_timestamp": 1687670648, "language": "c#", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8d2dbcdeaea683f7183fbd092721ba6d7cb2d905", "url": "https://github.com/KSP-RO/ProceduralSolidsLibrary/blob/8d2dbcdeaea683f7183fbd092721ba6d7cb2d905/Source/HelperClasses.cs"}, "gpt4o_tokens": 1222, "dataset_split": "csharp", "probability_weighted_scores": {"content_quality": 0.8707468421553174, "noise_severity": 0.08244394045144551, "missing_content_severity": 0.06664607865612182, "factual_density": 3.070680664219629, "pretraining_utility": 0.13060998988509648, "math_density": 1.1397402472143274, "code_density": 3.826837288018215, "reasoning_density": 0.08470987488944906, "education_level": 2.4237438044706816, "creative_writing_quality": -0.284950012006776}, "score_applicability": {"education_level": 0.9982247267372529, "creative_writing_quality": 0.0002767256248030975}}
{"source_group": "csharp", "source": "openbmb/UltraData-Stack-v3-L2/csharp", "domain": "github.com", "language": "csharp", "url": "https://github.com/RedMeansWar/SharpQL/blob/bfe3d7ebc7950d456efda4567057818cb029dcf8/Execution/QueryExecutor.cs", "id": "csharp-0-ffb44eea1095ba737655962345d29e10", "text": "using System.Data.Common;\n\n#if NET9_0_OR_GREATER\nusing Microsoft.Data.SqlClient;\n#else\nusing System.Data.SqlClient;\n#endif\n\nusing SharpQL.Connection;\n\nnamespace SharpQL.Execution;\n\npublic static class QueryExecutor\n{\n /// \n /// Executes an SQL command against a database connection and returns the number of rows affected.\n /// \n /// The SQL command to execute against the database.\n /// An optional dictionary containing parameter names and their corresponding values to be included in the SQL command.\n /// The number of rows affected by the command.\n public static int ExecuteNonQuery(string sql, Dictionary? parameters = null)\n {\n using var connection = Db.Create();\n using var command = CreateCommand(connection, sql, parameters);\n connection.Open();\n return command.ExecuteNonQuery();\n }\n\n /// \n /// Executes an SQL command asynchronously against a database connection and returns the number of rows affected.\n /// \n /// The SQL command to execute against the database.\n /// An optional dictionary containing parameter names and their corresponding values to be included in the SQL command.\n /// A task representing the asynchronous operation, containing the number of rows affected by the command.\n public static async Task ExecuteNonQueryAsync(string sql, Dictionary? parameters = null)\n {\n using var connection = await Db.CreateAsync();\n using var command = CreateCommand(connection, sql, parameters);\n return await command.ExecuteNonQueryAsync();\n }\n\n /// \n /// Executes an SQL query and retrieves the first column of the first row in the result set returned by the query.\n /// Additional rows and columns are ignored.\n /// \n /// The SQL query to execute against the database.\n /// An optional dictionary containing parameter names and their corresponding values to be included in the query.\n /// The first column of the first row in the result set, or null if the result set is empty.\n public static object? ExecuteScalar(string sql, Dictionary? parameters = null)\n {\n using var connection = Db.Create();\n using var command = CreateCommand(connection, sql, parameters);\n connection.Open();\n return command.ExecuteScalar();\n }\n\n /// \n /// Asynchronously executes an SQL query and retrieves the first column of the first row in the result set returned by the query.\n /// Additional rows and columns are ignored.\n /// \n /// The SQL query to execute against the database.\n /// An optional dictionary containing parameter names and their corresponding values to be included in the query.\n /// A task representing the asynchronous operation, containing the first column of the first row in the result set, or null if the result set is empty.\n public static async Task